/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -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-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --container-sm: 24rem;
    --container-md: 28rem;
    --container-lg: 32rem;
    --container-2xl: 42rem;
    --container-3xl: 48rem;
    --container-4xl: 56rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-wide: 0.025em;
    --leading-snug: 1.375;
    --leading-relaxed: 1.625;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -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;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring: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 {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .\@container {
    container-type: inline-size;
  }
  .pointer-events-none {
    pointer-events: none;
  }
  .collapse {
    visibility: collapse;
  }
  .invisible {
    visibility: hidden;
  }
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .sticky {
    position: sticky;
  }
  .inset-0 {
    inset: 0px;
  }
  .inset-y-0 {
    inset-block: 0px;
  }
  .top-full {
    top: 100%;
  }
  .right-0 {
    right: 0px;
  }
  .right-2 {
    right: calc(var(--spacing) * 2);
  }
  .bottom-full {
    bottom: 100%;
  }
  .left-0 {
    left: 0px;
  }
  .left-2 {
    left: calc(var(--spacing) * 2);
  }
  .left-3 {
    left: calc(var(--spacing) * 3);
  }
  .z-30 {
    z-index: 30;
  }
  .z-40 {
    z-index: 40;
  }
  .z-50 {
    z-index: 50;
  }
  .order-last {
    order: 9999;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .mx-auto {
    margin-inline: auto;
  }
  .my-5 {
    margin-block: calc(var(--spacing) * 5);
  }
  .-mt-2 {
    margin-top: calc(var(--spacing) * -2);
  }
  .mt-0\.5 {
    margin-top: calc(var(--spacing) * 0.5);
  }
  .mt-1 {
    margin-top: var(--spacing);
  }
  .mt-1\.5 {
    margin-top: calc(var(--spacing) * 1.5);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-2\.5 {
    margin-top: calc(var(--spacing) * 2.5);
  }
  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }
  .mt-3\.5 {
    margin-top: calc(var(--spacing) * 3.5);
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mt-5 {
    margin-top: calc(var(--spacing) * 5);
  }
  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }
  .mt-auto {
    margin-top: auto;
  }
  .mr-1\.5 {
    margin-right: calc(var(--spacing) * 1.5);
  }
  .mr-auto {
    margin-right: auto;
  }
  .mb-0 {
    margin-bottom: 0px;
  }
  .mb-1 {
    margin-bottom: var(--spacing);
  }
  .mb-1\.5 {
    margin-bottom: calc(var(--spacing) * 1.5);
  }
  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }
  .mb-2\.5 {
    margin-bottom: calc(var(--spacing) * 2.5);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-3\.5 {
    margin-bottom: calc(var(--spacing) * 3.5);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .mb-5 {
    margin-bottom: calc(var(--spacing) * 5);
  }
  .mb-6 {
    margin-bottom: calc(var(--spacing) * 6);
  }
  .mb-7 {
    margin-bottom: calc(var(--spacing) * 7);
  }
  .mb-8 {
    margin-bottom: calc(var(--spacing) * 8);
  }
  .mb-9 {
    margin-bottom: calc(var(--spacing) * 9);
  }
  .ml-0\.5 {
    margin-left: calc(var(--spacing) * 0.5);
  }
  .ml-1 {
    margin-left: var(--spacing);
  }
  .ml-auto {
    margin-left: auto;
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .h-1\.5 {
    height: calc(var(--spacing) * 1.5);
  }
  .h-2 {
    height: calc(var(--spacing) * 2);
  }
  .h-3 {
    height: calc(var(--spacing) * 3);
  }
  .h-4 {
    height: calc(var(--spacing) * 4);
  }
  .h-5 {
    height: calc(var(--spacing) * 5);
  }
  .h-6 {
    height: calc(var(--spacing) * 6);
  }
  .h-8 {
    height: calc(var(--spacing) * 8);
  }
  .h-9 {
    height: calc(var(--spacing) * 9);
  }
  .h-10 {
    height: calc(var(--spacing) * 10);
  }
  .h-11 {
    height: calc(var(--spacing) * 11);
  }
  .h-12 {
    height: calc(var(--spacing) * 12);
  }
  .h-\[34px\] {
    height: 34px;
  }
  .h-\[110px\] {
    height: 110px;
  }
  .h-full {
    height: 100%;
  }
  .h-screen {
    height: 100vh;
  }
  .max-h-72 {
    max-height: calc(var(--spacing) * 72);
  }
  .max-h-96 {
    max-height: calc(var(--spacing) * 96);
  }
  .min-h-0 {
    min-height: 0px;
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .w-3 {
    width: calc(var(--spacing) * 3);
  }
  .w-4 {
    width: calc(var(--spacing) * 4);
  }
  .w-5 {
    width: calc(var(--spacing) * 5);
  }
  .w-6 {
    width: calc(var(--spacing) * 6);
  }
  .w-7 {
    width: calc(var(--spacing) * 7);
  }
  .w-8 {
    width: calc(var(--spacing) * 8);
  }
  .w-9 {
    width: calc(var(--spacing) * 9);
  }
  .w-11 {
    width: calc(var(--spacing) * 11);
  }
  .w-12 {
    width: calc(var(--spacing) * 12);
  }
  .w-20 {
    width: calc(var(--spacing) * 20);
  }
  .w-24 {
    width: calc(var(--spacing) * 24);
  }
  .w-28 {
    width: calc(var(--spacing) * 28);
  }
  .w-32 {
    width: calc(var(--spacing) * 32);
  }
  .w-36 {
    width: calc(var(--spacing) * 36);
  }
  .w-40 {
    width: calc(var(--spacing) * 40);
  }
  .w-44 {
    width: calc(var(--spacing) * 44);
  }
  .w-48 {
    width: calc(var(--spacing) * 48);
  }
  .w-52 {
    width: calc(var(--spacing) * 52);
  }
  .w-56 {
    width: calc(var(--spacing) * 56);
  }
  .w-60 {
    width: calc(var(--spacing) * 60);
  }
  .w-72 {
    width: calc(var(--spacing) * 72);
  }
  .w-80 {
    width: calc(var(--spacing) * 80);
  }
  .w-96 {
    width: calc(var(--spacing) * 96);
  }
  .w-\[34px\] {
    width: 34px;
  }
  .w-\[180px\] {
    width: 180px;
  }
  .w-\[200px\] {
    width: 200px;
  }
  .w-full {
    width: 100%;
  }
  .max-w-2xl {
    max-width: var(--container-2xl);
  }
  .max-w-3xl {
    max-width: var(--container-3xl);
  }
  .max-w-4xl {
    max-width: var(--container-4xl);
  }
  .max-w-\[42rem\] {
    max-width: 42rem;
  }
  .max-w-\[220px\] {
    max-width: 220px;
  }
  .max-w-\[1060px\] {
    max-width: 1060px;
  }
  .max-w-full {
    max-width: 100%;
  }
  .max-w-lg {
    max-width: var(--container-lg);
  }
  .max-w-md {
    max-width: var(--container-md);
  }
  .max-w-sm {
    max-width: var(--container-sm);
  }
  .min-w-0 {
    min-width: 0px;
  }
  .min-w-48 {
    min-width: calc(var(--spacing) * 48);
  }
  .min-w-\[12rem\] {
    min-width: 12rem;
  }
  .min-w-\[220px\] {
    min-width: 220px;
  }
  .flex-1 {
    flex: 1;
  }
  .flex-shrink-0 {
    flex-shrink: 0;
  }
  .grow {
    flex-grow: 1;
  }
  .-translate-x-full {
    --tw-translate-x: -100%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .translate-x-0 {
    --tw-translate-x: 0px;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .-translate-y-1\/2 {
    --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .scale-x-\[-1\] {
    --tw-scale-x: -1;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .cursor-pointer {
    cursor: pointer;
  }
  .resize {
    resize: both;
  }
  .list-none {
    list-style-type: none;
  }
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .items-baseline {
    align-items: baseline;
  }
  .items-center {
    align-items: center;
  }
  .items-end {
    align-items: flex-end;
  }
  .items-start {
    align-items: flex-start;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .gap-1 {
    gap: var(--spacing);
  }
  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-2\.5 {
    gap: calc(var(--spacing) * 2.5);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-3\.5 {
    gap: calc(var(--spacing) * 3.5);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .gap-5 {
    gap: calc(var(--spacing) * 5);
  }
  .gap-6 {
    gap: calc(var(--spacing) * 6);
  }
  :where(.space-y-0\.5 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 0.5) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 0.5) * calc(1 - var(--tw-space-y-reverse)));
  }
  :where(.space-y-1 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(var(--spacing) * var(--tw-space-y-reverse));
    margin-block-end: calc(var(--spacing) * calc(1 - var(--tw-space-y-reverse)));
  }
  :where(.space-y-2 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
  }
  :where(.space-y-2\.5 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 2.5) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 2.5) * calc(1 - var(--tw-space-y-reverse)));
  }
  :where(.space-y-3 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
  }
  :where(.space-y-10 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 10) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 10) * calc(1 - var(--tw-space-y-reverse)));
  }
  .gap-x-4 {
    column-gap: calc(var(--spacing) * 4);
  }
  .gap-x-6 {
    column-gap: calc(var(--spacing) * 6);
  }
  .gap-y-1 {
    row-gap: var(--spacing);
  }
  :where(.divide-y > :not(:last-child)) {
    --tw-divide-y-reverse: 0;
    border-bottom-style: var(--tw-border-style);
    border-top-style: var(--tw-border-style);
    border-top-width: calc(1px * var(--tw-divide-y-reverse));
    border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  }
  .self-start {
    align-self: flex-start;
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .overflow-x-auto {
    overflow-x: auto;
  }
  .overflow-x-hidden {
    overflow-x: hidden;
  }
  .overflow-y-auto {
    overflow-y: auto;
  }
  .overscroll-contain {
    overscroll-behavior: contain;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .rounded-\[10px\] {
    border-radius: 10px;
  }
  .rounded-\[14px\] {
    border-radius: 14px;
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-xl {
    border-radius: var(--radius-xl);
  }
  .rounded-t-md {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-t {
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .object-cover {
    object-fit: cover;
  }
  .p-0 {
    padding: 0px;
  }
  .p-2 {
    padding: calc(var(--spacing) * 2);
  }
  .p-2\.5 {
    padding: calc(var(--spacing) * 2.5);
  }
  .p-3 {
    padding: calc(var(--spacing) * 3);
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .p-5 {
    padding: calc(var(--spacing) * 5);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .p-8 {
    padding: calc(var(--spacing) * 8);
  }
  .p-\[18px\] {
    padding: 18px;
  }
  .p-\[22px\] {
    padding: 22px;
  }
  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .px-5 {
    padding-inline: calc(var(--spacing) * 5);
  }
  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }
  .py-1 {
    padding-block: var(--spacing);
  }
  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-2\.5 {
    padding-block: calc(var(--spacing) * 2.5);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .py-3\.5 {
    padding-block: calc(var(--spacing) * 3.5);
  }
  .py-4 {
    padding-block: calc(var(--spacing) * 4);
  }
  .py-6 {
    padding-block: calc(var(--spacing) * 6);
  }
  .py-10 {
    padding-block: calc(var(--spacing) * 10);
  }
  .py-12 {
    padding-block: calc(var(--spacing) * 12);
  }
  .py-16 {
    padding-block: calc(var(--spacing) * 16);
  }
  .pt-1 {
    padding-top: var(--spacing);
  }
  .pt-3 {
    padding-top: calc(var(--spacing) * 3);
  }
  .pt-4 {
    padding-top: calc(var(--spacing) * 4);
  }
  .pt-6 {
    padding-top: calc(var(--spacing) * 6);
  }
  .pb-1 {
    padding-bottom: var(--spacing);
  }
  .pb-2 {
    padding-bottom: calc(var(--spacing) * 2);
  }
  .pb-3 {
    padding-bottom: calc(var(--spacing) * 3);
  }
  .text-center {
    text-align: center;
  }
  .text-left {
    text-align: left;
  }
  .text-right {
    text-align: right;
  }
  .align-middle {
    vertical-align: middle;
  }
  .font-mono {
    font-family: var(--font-mono);
  }
  .font-sans {
    font-family: var(--font-sans);
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .text-\[10px\] {
    font-size: 10px;
  }
  .text-\[11px\] {
    font-size: 11px;
  }
  .text-\[12px\] {
    font-size: 12px;
  }
  .text-\[13px\] {
    font-size: 13px;
  }
  .text-\[15px\] {
    font-size: 15px;
  }
  .leading-relaxed {
    --tw-leading: var(--leading-relaxed);
    line-height: var(--leading-relaxed);
  }
  .leading-snug {
    --tw-leading: var(--leading-snug);
    line-height: var(--leading-snug);
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .font-normal {
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .tracking-wide {
    --tw-tracking: var(--tracking-wide);
    letter-spacing: var(--tracking-wide);
  }
  .break-words {
    overflow-wrap: break-word;
  }
  .break-all {
    word-break: break-all;
  }
  .whitespace-nowrap {
    white-space: nowrap;
  }
  .whitespace-pre-wrap {
    white-space: pre-wrap;
  }
  .lowercase {
    text-transform: lowercase;
  }
  .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,);
  }
  .line-through {
    text-decoration-line: line-through;
  }
  .no-underline {
    text-decoration-line: none;
  }
  .underline {
    text-decoration-line: underline;
  }
  .underline-offset-2 {
    text-underline-offset: 2px;
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .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));
  }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-transform {
    transition-property: transform, translate, scale, rotate;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .duration-200 {
    --tw-duration: 200ms;
    transition-duration: 200ms;
  }
  .empty\:hidden:empty {
    display: none;
  }
  @media (width >= 40rem) {
    .sm\:block {
      display: block;
    }
    .sm\:w-64 {
      width: calc(var(--spacing) * 64);
    }
    .sm\:max-w-80 {
      max-width: calc(var(--spacing) * 80);
    }
    .sm\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sm\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .sm\:p-4 {
      padding: calc(var(--spacing) * 4);
    }
  }
  @media (width >= 48rem) {
    .md\:col-span-2 {
      grid-column: span 2 / span 2;
    }
    .md\:flex {
      display: flex;
    }
    .md\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  @media (width >= 64rem) {
    .lg\:relative {
      position: relative;
    }
    .lg\:z-auto {
      z-index: auto;
    }
    .lg\:hidden {
      display: none;
    }
    .lg\:w-60 {
      width: calc(var(--spacing) * 60);
    }
    .lg\:w-\[60px\] {
      width: 60px;
    }
    .lg\:translate-x-0 {
      --tw-translate-x: 0px;
      translate: var(--tw-translate-x) var(--tw-translate-y);
    }
    .lg\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lg\:grid-cols-\[1\.55fr_1fr\] {
      grid-template-columns: 1.55fr 1fr;
    }
    .lg\:p-6 {
      padding: calc(var(--spacing) * 6);
    }
  }
  @media (width >= 80rem) {
    .xl\:hidden {
      display: none;
    }
    .xl\:w-56 {
      width: calc(var(--spacing) * 56);
    }
    .xl\:w-80 {
      width: calc(var(--spacing) * 80);
    }
    .xl\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .xl\:flex-row {
      flex-direction: row;
    }
  }
  @container (width >= 28rem) {
    .\@md\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  @container (width >= 48rem) {
    .\@3xl\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
}
:root {
  --brand-50: #FFF7ED;
  --brand-75: #FFF3E8;
  --brand-100: #FFEDD5;
  --brand-200: #FED7AA;
  --brand-300: #FDBA74;
  --brand-400: #FB923C;
  --brand-500: #F97316;
  --brand-600: #EA580C;
  --brand-700: #C2410C;
  --brand-800: #9A3412;
  --brand-900: #7C2D12;
  --brand-green-50: #F1F6E9;
  --brand-green-100: #EFF2DC;
  --brand-green-200: #DDE4B9;
  --brand-green-500: #94A43F;
  --brand-green-600: #7B8A33;
  --brand-green-700: #5F6B27;
  --brand-500-rgb: 249, 115, 22;
  --error-500-rgb: 239, 68, 68;
  --success-500-rgb: 148, 164, 63;
  --info-500-rgb: 59, 130, 246;
  --warning-500-rgb: 234, 179, 8;
  --accent-teal-rgb: 20, 184, 166;
  --scrim-rgb: 0, 0, 0;
  --platform-telegram: #26A5E4;
  --platform-instagram: #E4405F;
  --platform-messenger: #0084FF;
  --platform-whatsapp: #25D366;
  --platform-sms: #6366F1;
  --platform-email: #57534E;
  --brand-font-display: Georgia, 'Times New Roman', serif;
  --brand-font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --brand-font-mono: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Consolas', monospace;
  --primary: var(--brand-500);
  --primary-hover: var(--brand-600);
  --primary-soft: var(--brand-50);
  --primary-muted: var(--brand-100);
  --primary-ring: var(--brand-200);
  --primary-tint: var(--brand-75);
  --primary-tint-border: #FBD3AF;
  --primary-rgb: var(--brand-500-rgb);
  --cta: var(--brand-600);
  --cta-hover: var(--brand-700);
  --ink: var(--neutral-900);
  --selected-fill: var(--neutral-150);
  --neutral-950: #171412;
  --neutral-900: #1C1917;
  --neutral-800: #292524;
  --neutral-700: #44403C;
  --neutral-600: #57534E;
  --neutral-500: #78716C;
  --neutral-400: #A8A29E;
  --neutral-300: #D6D3D1;
  --neutral-200: #E7E5E4;
  --neutral-150: #EFEDE9;
  --neutral-125: #F4F2EE;
  --neutral-100: #F5F5F4;
  --neutral-75: #FBFAF8;
  --neutral-50: #FAFAF9;
  --surface-0: #FFFFFF;
  --surface-page: #F7F6F2;
  --surface-1: var(--neutral-50);
  --surface-2: var(--neutral-100);
  --surface-3: var(--neutral-200);
  --surface-sunken: var(--neutral-75);
  --border: var(--neutral-150);
  --border-hover: var(--neutral-300);
  --divider: var(--neutral-125);
  --border-strong: var(--neutral-200);
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-tertiary: var(--neutral-500);
  --text-ghost: var(--neutral-400);
  --text-inverse: #FFFFFF;
  --color-illustration-border: var(--neutral-200);
  --color-illustration-card: #FFFFFF;
  --color-illustration-element: var(--neutral-200);
  --color-illustration-secondary-element: var(--neutral-100);
  --color-illustration-accent: var(--brand-500);
  --success-500: var(--brand-green-500);
  --success-50: var(--brand-green-50);
  --success-700: var(--brand-green-700);
  --warning-500: #EAB308;
  --warning-50: #FEFCE8;
  --warning-700: #A16207;
  --warning-200: #FDE68A;
  --error-500: #EF4444;
  --error-50: #FEF2F2;
  --error-700: #B91C1C;
  --error-600: #DC2626;
  --error-rgb: var(--error-500-rgb);
  --success-rgb: var(--success-500-rgb);
  --info-rgb: var(--info-500-rgb);
  --warning-rgb: var(--warning-500-rgb);
  --info-500: #3B82F6;
  --info-50: #EFF6FF;
  --info-700: #1D4ED8;
  --accent-teal: #14B8A6;
  --accent-teal-soft: #F0FDFA;
  --accent-sky: #0EA5E9;
  --accent-sky-soft: #F0F9FF;
  --accent-rose: #F43F5E;
  --accent-rose-soft: #FFF1F2;
  --accent-amber: #F59E0B;
  --accent-amber-soft: #FFFBEB;
  --accent-indigo: #6366F1;
  --accent-indigo-soft: #EEF2FF;
  --accent-emerald: #10B981;
  --accent-emerald-soft: #ECFDF5;
  --flow-group-content: var(--accent-sky);
  --flow-group-content-soft: var(--accent-sky-soft);
  --flow-group-logic: var(--accent-indigo);
  --flow-group-logic-soft: var(--accent-indigo-soft);
  --flow-group-actions: var(--accent-teal);
  --flow-group-actions-soft: var(--accent-teal-soft);
  --flow-group-other: var(--neutral-400);
  --flow-group-other-soft: var(--surface-2);
  --shadow-xs: 0 1px 2px rgba(23,20,18,0.05);
  --shadow-sm: 0 1px 3px rgba(23,20,18,0.08), 0 1px 2px rgba(23,20,18,0.04);
  --shadow-md: 0 4px 6px rgba(23,20,18,0.06), 0 2px 4px rgba(23,20,18,0.04);
  --shadow-lg: 0 10px 15px rgba(23,20,18,0.08), 0 4px 6px rgba(23,20,18,0.04);
  --shadow-xl: 0 20px 25px rgba(23,20,18,0.08), 0 8px 10px rgba(23,20,18,0.04);
  --shadow-primary: 0 4px 14px rgba(var(--brand-500-rgb), 0.28);
  --shadow-toast: 0 12px 30px rgba(23, 20, 18, 0.32);
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-control: 0.625rem;
  --radius-xl: 0.75rem;
  --radius-tile: 0.875rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  --fs-display: 1.75rem;
  --fs-title: 1.0625rem;
  --fs-body-lg: 0.9375rem;
  --fs-body: 0.8125rem;
  --fs-sm: 0.75rem;
  --fs-xs: 0.6875rem;
  --fs-2xs: 0.625rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 350ms;
  --chevron-neutral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2378716C' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  --chevron-neutral-sm: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2378716C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --font-display: var(--brand-font-display);
  --font-body: var(--brand-font-body);
  --font-mono: var(--brand-font-mono);
}
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.auth-bg {
  background-color: var(--surface-1);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--brand-500-rgb), 0.08), transparent), radial-gradient(ellipse 60% 40% at 100% 100%, rgba(var(--accent-teal-rgb), 0.04), transparent);
}
:root {
  --mobile-bar-h: 60px;
}
.sidebar {
  background: var(--surface-0);
  border-right: 1px solid var(--border);
}
.sidebar-ws {
  border-bottom: 1px solid var(--divider);
}
.sidebar-ws-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  border-bottom-right-radius: var(--radius-lg);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}
.sidebar-ws-btn:hover {
  background: rgba(var(--scrim-rgb), 0.04);
}
.sidebar-back {
  color: var(--text-secondary);
}
.sidebar-back:hover {
  color: var(--text-primary);
}
.sidebar-back .sidebar-ws-name {
  font-weight: 600;
}
.sidebar-back-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}
.sidebar-ws-name {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-body-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-ws-chevron {
  flex-shrink: 0;
  color: var(--text-ghost);
  transition: transform var(--dur-fast) ease;
}
.sidebar-ws-chevron.open {
  transform: rotate(180deg);
}
.sidebar-menu {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.sidebar-menu-ws {
  padding: 4px;
}
.sidebar-menu-account {
  overflow: hidden;
}
.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border-radius: var(--radius-lg);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.sidebar-menu-item:hover {
  background: rgba(var(--scrim-rgb), 0.04);
  color: var(--text-primary);
}
.sidebar-menu-item.is-current {
  background: var(--surface-sunken);
  color: var(--text-primary);
  font-weight: 600;
}
.sidebar-menu-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-menu-check {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-ghost);
}
.sidebar-menu-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  color: var(--text-ghost);
}
.sidebar-menu-mark-new {
  border: 1px dashed var(--border-strong);
}
.sidebar-menu-divider {
  margin: 4px -4px 0;
  padding: 4px 4px 0;
  border-top: 1px solid var(--divider);
}
.sidebar-menu-identity {
  padding: 14px 14px 10px;
}
.sidebar-menu-identity-email, .sidebar-menu-identity-org {
  display: block;
  font-size: var(--fs-body);
}
.sidebar-menu-identity-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-tertiary);
}
.sidebar-menu-identity-org {
  margin-top: 2px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
}
.sidebar-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 12px 12px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}
.sidebar-menu-cta:hover {
  background: rgba(var(--scrim-rgb), 0.04);
}
.sidebar-menu-section {
  border-top: 1px solid var(--divider);
}
.sidebar-menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.sidebar-menu-row:hover {
  background: rgba(var(--scrim-rgb), 0.04);
  color: var(--text-primary);
}
.sidebar-menu-row svg, .sidebar-menu-cta svg {
  color: var(--text-ghost);
}
.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px;
}
.sidebar-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  margin-bottom: 1px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.sidebar-nav-item:hover {
  background: rgba(var(--scrim-rgb), 0.04);
  color: var(--text-primary);
}
.sidebar-nav-item.active {
  background: var(--selected-fill);
  color: var(--ink);
  font-weight: 600;
}
.sidebar-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-section-label {
  font-size: var(--fs-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-ghost);
  padding: 14px 10px 4px;
}
.sidebar-section-label-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-section-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-ghost);
  opacity: 0;
  transition: opacity var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.sidebar-section-label-wrap:hover .sidebar-section-action, .sidebar-section-action:focus-visible {
  opacity: 1;
}
.sidebar-section-action:hover {
  background: rgba(var(--scrim-rgb), 0.06);
  color: var(--text-secondary);
}
.sidebar-channel-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.sidebar-channel-chip {
  width: 20px;
  height: 20px;
}
.sidebar-channel-mark.is-off .pi-chip {
  filter: grayscale(1);
  opacity: 0.55;
}
.sidebar-nav-pinned {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--divider);
}
.sidebar-connect {
  padding-top: 10px;
}
.sidebar-connect-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  color: var(--text-tertiary);
}
.sidebar-connect-plus, .sidebar-channel-flag {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  box-shadow: 0 0 0 1.5px var(--surface-0);
  color: var(--text-inverse);
}
.sidebar-connect-plus {
  background: var(--ink);
}
.sidebar-channel-flag {
  background: var(--warning-500);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}
.sidebar-footer {
  flex-shrink: 0;
  padding: 12px;
  border-top: 1px solid var(--divider);
}
.sidebar-footer-expanded {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sidebar-footer-collapsed {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sidebar-account {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: none;
  background: transparent;
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}
.sidebar-account:hover {
  background: rgba(var(--scrim-rgb), 0.04);
}
.sidebar-account-name {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-account-meta {
  font-size: var(--fs-2xs);
  color: var(--text-ghost);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  color: var(--text-ghost);
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.sidebar-toggle:hover {
  background: var(--surface-2);
  color: var(--text-secondary);
}
.sidebar-badge {
  margin-left: auto;
  flex-shrink: 0;
  min-width: 16px;
  padding: 1px 6px;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--text-inverse);
  font-size: var(--fs-2xs);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
@media (min-width: 1024px) {
  .sidebar-collapsed .sidebar-nav .sidebar-nav-item, .sidebar-collapsed .sidebar-footer .sidebar-nav-item, html.sidebar-is-collapsed .sidebar-initial .sidebar-nav .sidebar-nav-item, html.sidebar-is-collapsed .sidebar-initial .sidebar-footer .sidebar-nav-item {
    justify-content: center;
    padding: 8px;
    gap: 0;
  }
  .sidebar-collapsed .sidebar-nav .sidebar-nav-label, .sidebar-collapsed .sidebar-footer .sidebar-nav-label, .sidebar-collapsed .sidebar-section-label, .sidebar-collapsed .sidebar-ws-name, .sidebar-collapsed .sidebar-ws-chevron, html.sidebar-is-collapsed .sidebar-initial .sidebar-nav .sidebar-nav-label, html.sidebar-is-collapsed .sidebar-initial .sidebar-footer .sidebar-nav-label, html.sidebar-is-collapsed .sidebar-initial .sidebar-section-label, html.sidebar-is-collapsed .sidebar-initial .sidebar-ws-name, html.sidebar-is-collapsed .sidebar-initial .sidebar-ws-chevron {
    display: none;
  }
  .sidebar-collapsed .sidebar-connect, .sidebar-collapsed .sidebar-section-label-wrap, html.sidebar-is-collapsed .sidebar-initial .sidebar-connect, html.sidebar-is-collapsed .sidebar-initial .sidebar-section-label-wrap {
    display: none;
  }
  .sidebar-collapsed .sidebar-ws-btn, html.sidebar-is-collapsed .sidebar-initial .sidebar-ws-btn {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
  }
  .sidebar-collapsed .sidebar-nav, .sidebar-collapsed .sidebar-footer, html.sidebar-is-collapsed .sidebar-initial .sidebar-nav, html.sidebar-is-collapsed .sidebar-initial .sidebar-footer {
    padding: 8px;
  }
  .sidebar-collapsed .sidebar-footer-expanded, html.sidebar-is-collapsed .sidebar-initial .sidebar-footer-expanded {
    display: none;
  }
  .sidebar-collapsed .sidebar-footer-collapsed, html.sidebar-is-collapsed .sidebar-initial .sidebar-footer-collapsed {
    display: flex;
  }
  .sidebar-collapsed .sidebar-menu-account, html.sidebar-is-collapsed .sidebar-initial .sidebar-menu-account {
    right: auto;
    width: 240px;
  }
  .sidebar-collapsed .sidebar-nav .sidebar-badge, .sidebar-collapsed .sidebar-footer .sidebar-badge, html.sidebar-is-collapsed .sidebar-initial .sidebar-nav .sidebar-badge, html.sidebar-is-collapsed .sidebar-initial .sidebar-footer .sidebar-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    margin-left: 0;
    height: 15px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}
@media (max-width: 1023px) {
  .sidebar {
    box-shadow: var(--shadow-xl);
  }
  .sidebar-nav-item {
    min-height: 44px;
    padding: 10px 12px;
  }
  .sidebar-footer .sidebar-toggle {
    display: none;
  }
}
.sidebar-backdrop {
  background: rgba(var(--scrim-rgb), 0.3);
}
.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--mobile-bar-h);
  flex-shrink: 0;
  padding: 0 12px;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .mobile-topbar {
    display: none;
  }
}
.tabs {
  display: flex;
  align-items: stretch;
  gap: 24px;
  height: 44px;
  flex-shrink: 0;
  padding: 0 24px;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs-inline {
  padding: 0;
  background: transparent;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.tab:hover {
  color: var(--text-primary);
}
.tab.active, .tab[aria-current="page"], .tab[aria-selected="true"] {
  font-weight: 700;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.tab:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}
.tab-count {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-ghost);
  font-variant-numeric: tabular-nums;
}
.sidebar-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
img.sidebar-logo-mark {
  background: transparent;
}
.sidebar-logo-mark-sm {
  width: 28px;
  height: 28px;
}
.card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
}
.card-row + .card-row {
  border-top: 1px solid var(--divider);
}
.tile {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
}
.tile-selected {
  background: var(--surface-0);
  border: 1.5px solid var(--ink);
}
.page-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.page-lede {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--text-tertiary);
}
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}
.page-header-text {
  flex: 1 1 18rem;
  min-width: 0;
  max-width: 40rem;
}
.page-header .page-lede {
  margin-top: 6px;
}
.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.section-title {
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--text-primary);
}
.section-eyebrow {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-ghost);
}
.figure {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.figure-label {
  font-size: var(--fs-body);
  color: var(--text-tertiary);
}
.btn-pill-primary, .btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn-pill-primary {
  background: var(--cta);
  color: var(--text-inverse);
  border: none;
  box-shadow: var(--shadow-primary);
}
.btn-pill-primary:hover {
  background: var(--cta-hover);
}
.btn-pill-primary:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.btn-pill-primary:disabled, .btn-pill-primary[aria-disabled="true"] {
  background: var(--primary-tint);
  color: var(--brand-700);
  border: 1px solid var(--primary-tint-border);
  box-shadow: none;
  cursor: default;
}
.btn-pill-secondary:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.btn-danger-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--error-700);
  text-decoration: none;
  cursor: pointer;
}
.btn-danger-link:hover {
  text-decoration: underline;
}
.btn-pill-secondary {
  background: var(--surface-0);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-pill-secondary:hover {
  border-color: var(--border-hover);
}
.btn-pill-sm {
  height: 36px;
  padding: 0 16px;
  font-size: var(--fs-body);
}
.btn-icon-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-0);
  color: var(--text-tertiary);
  cursor: pointer;
}
.btn-icon-round:hover {
  background: var(--surface-page);
  color: var(--text-primary);
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  overflow: hidden;
}
.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: var(--fs-sm);
}
.avatar-xs {
  width: 20px;
  height: 20px;
  font-size: 9px;
}
.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.125rem;
}
.avatar-brand {
  background: var(--brand-green-500);
  color: var(--text-inverse);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-2xl);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.empty-state-title {
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--text-primary);
}
.empty-state-body {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
  max-width: 30rem;
}
.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: var(--radius-xl);
  background: var(--surface-0);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
}
.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.empty-state-bare {
  background: transparent;
  border: 0;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}
.list-row + .list-row {
  border-top: 1px solid var(--divider);
}
.list-row:hover {
  background: var(--surface-sunken);
}
.list-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-xl);
  background: var(--surface-page);
  color: var(--text-tertiary);
}
.list-row-icon-live {
  background: var(--success-50);
  color: var(--success-700);
}
.list-row-title {
  font-size: var(--fs-body-lg);
  font-weight: 600;
  color: var(--text-primary);
}
.list-row-meta {
  font-size: var(--fs-body);
  color: var(--text-tertiary);
  margin-top: 3px;
}
.list-row-figure {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.list-row-figure-label {
  font-size: var(--fs-xs);
  color: var(--text-ghost);
}
.row-menu-panel {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  min-width: 200px;
}
.row-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.row-menu-item:hover {
  background: var(--surface-page);
  color: var(--text-primary);
}
.row-menu-item-danger {
  color: var(--error-700);
}
.row-menu-item-danger:hover {
  background: var(--error-50);
  color: var(--error-700);
}
.row-menu-sep {
  height: 1px;
  margin: 4px 0;
  background: var(--divider);
}
.status-pill:has(> .status-pill-dot) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: currentColor;
  flex-shrink: 0;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--neutral-400);
}
.dot-success {
  background: var(--success-500);
}
.dot-warning {
  background: var(--warning-500);
}
.dot-info {
  background: var(--info-500);
}
.dot-error {
  background: var(--error-500);
}
.dot-neutral {
  background: var(--neutral-400);
}
.health {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-body);
  font-weight: 600;
}
.health-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
}
.health-ok {
  color: var(--success-700);
}
.health-ok .health-dot {
  background: var(--success-500);
}
.health-bad {
  color: var(--error-700);
}
.health-bad .health-dot {
  background: var(--error-500);
}
.health-off {
  color: var(--text-tertiary);
}
.health-off .health-dot {
  background: var(--neutral-300);
}
.health-warn {
  color: var(--warning-700);
}
.health-warn .health-dot {
  background: var(--warning-500);
}
.focus-ring:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.btn-neutral {
  transition: background var(--dur-fast) ease;
}
.btn-neutral:hover {
  background: var(--neutral-200) !important;
}
.btn-neutral-surface:hover {
  background: var(--neutral-50) !important;
}
.btn-neutral-100 {
  transition: background var(--dur-fast) ease;
}
.btn-neutral-100:hover {
  background: var(--neutral-100) !important;
}
.btn-danger-soft {
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.btn-danger-soft:hover {
  background: var(--error-500) !important;
  color: white !important;
}
.btn-danger-soft-bg {
  transition: background var(--dur-fast) ease;
}
.btn-danger-soft-bg:hover {
  background: var(--error-50) !important;
}
.card-hover-lift {
  transition: box-shadow var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.card-hover-lift:hover {
  box-shadow: var(--shadow-lg) !important;
  border-color: transparent !important;
  transform: translateY(-2px);
}
.btn-surface-1:hover {
  background: var(--surface-1) !important;
}
.btn-surface-2:hover {
  background: var(--surface-2) !important;
}
.btn-error-darker {
  transition: background var(--dur-fast) ease;
}
.btn-error-darker:hover {
  background: var(--error-600) !important;
}
.btn-opacity:hover {
  opacity: 0.9;
}
.btn-text-hover-primary {
  transition: color var(--dur-fast) ease;
}
.btn-text-hover-primary:hover {
  color: var(--text-primary) !important;
}
.btn-icon-hover {
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.btn-icon-hover:hover {
  background: var(--surface-2) !important;
  color: var(--text-primary) !important;
}
.btn-surface-neutral-50 {
  transition: background var(--dur-fast) ease;
}
.btn-surface-neutral-50:hover {
  background: var(--neutral-50) !important;
}
.btn-amber {
  transition: background var(--dur-fast) ease;
}
.btn-amber:hover {
  background: var(--warning-200) !important;
}
.btn-danger-tint {
  transition: background var(--dur-fast) ease;
}
.btn-danger-tint:hover {
  background: rgba(var(--error-rgb), 0.08) !important;
}
.input-focus {
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.input-focus:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-ring) !important;
}
.input-focus:not(:focus) {
  border-color: var(--border);
  box-shadow: none;
}
.input-focus-surface {
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}
.input-focus-surface:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-ring) !important;
  background: var(--surface-0) !important;
}
.input-focus-surface:not(:focus) {
  border-color: var(--border);
  box-shadow: none;
  background: var(--surface-1);
}
.form-input-styled {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  color: var(--text-primary);
  transition: all var(--dur-fast) ease;
  outline: none;
  width: 100%;
}
.form-input-styled::placeholder {
  color: var(--text-ghost);
}
.form-input-styled:hover {
  border-color: var(--border-hover);
}
.form-input-styled:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.form-input-styled.is-error {
  border-color: var(--error-500);
}
.form-input-styled.is-error:focus {
  box-shadow: 0 0 0 3px rgba(var(--error-rgb), 0.15);
}
.field + .field, .field + .field-check {
  margin-top: 1.25rem;
}
.field-inline {
  margin-top: 0;
}
.field-label {
  display: block;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.field-label-optional {
  margin-left: 0.375rem;
  font-weight: 500;
  color: var(--text-ghost);
}
.field-hint {
  display: block;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--text-tertiary);
  margin-top: 0.375rem;
}
.field-error {
  display: block;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--error-700);
  margin-top: 0.375rem;
}
.section-note {
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--text-tertiary);
}
.field .form-input-styled {
  max-width: none;
}
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.field-check-inline {
  margin-bottom: 0;
}
.field-check-body {
  min-width: 0;
}
.field-check .field-label {
  margin-bottom: 0;
  cursor: pointer;
}
.field-check input[type="checkbox"], .field-check .switch {
  margin-top: 2px;
  flex-shrink: 0;
}
.field-swatch {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.field-swatch-well {
  width: 44px;
  height: 40px;
  flex-shrink: 0;
  padding: 3px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-0);
  cursor: pointer;
}
.field-swatch-well::-webkit-color-swatch-wrapper {
  padding: 0;
}
.field-swatch-well::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}
.field-swatch-well::-moz-color-swatch {
  border: none;
  border-radius: 6px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
}
.form-actions-bare {
  border-top: 0;
  padding-top: 0;
}
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  letter-spacing: 0.005em;
  background: var(--cta);
  color: var(--text-inverse);
  box-shadow: var(--shadow-primary);
  width: 100%;
}
.btn-brand:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}
.btn-brand:active {
  transform: translateY(0);
}
.btn-brand.btn-inline, .btn-outline.btn-inline, .btn-social.btn-inline {
  width: auto;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  background: var(--surface-0);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
  border: 1.5px solid var(--border-strong);
  width: 100%;
}
.btn-outline:hover {
  background: var(--surface-1);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.app-content .btn-outline.btn-inline {
  height: 36px;
  padding: 0 16px;
  border-width: 1px;
  font-size: var(--fs-body);
  box-shadow: none;
}
.app-content .btn-outline.btn-inline:hover {
  transform: none;
  box-shadow: none;
}
.btn-outline.btn-danger-soft {
  color: var(--error-700);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) ease;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
}
.btn-link:hover {
  background: var(--surface-2);
  text-decoration: underline;
}
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  background: var(--surface-0);
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
  width: 100%;
  text-decoration: none;
}
.btn-social:hover {
  background: var(--surface-1);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.divider-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-ghost);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-card input[type="text"], .auth-card input[type="email"], .auth-card input[type="password"], .auth-card input[type="url"], .auth-card input[type="tel"], .auth-card select, .auth-card textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  color: var(--text-primary);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.auth-card input:focus, .auth-card select:focus, .auth-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.auth-card input[readonly] {
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: not-allowed;
}
.auth-card input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--brand-green-500);
}
.auth-card button[type="submit"]:not([class]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  background: var(--cta);
  color: var(--text-inverse);
  box-shadow: var(--shadow-primary);
  transition: all var(--dur-base) var(--ease-out);
}
.auth-card button[type="submit"]:not([class]):hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}
.auth-prose {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.auth-prose h1, .auth-prose h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.auth-prose p {
  margin-bottom: 1rem;
}
.auth-prose a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-prose ul {
  margin: 0 0 1rem 1.125rem;
  list-style: disc;
}
.auth-prose label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.auth-prose .errorlist {
  list-style: none;
  margin: 0.375rem 0 0;
  padding: 0;
  color: var(--error-700);
  font-size: 0.75rem;
}
.auth-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
@media (max-width: 480px) {
  .auth-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
}
.alert-error {
  background: var(--error-50);
  border: 1px solid rgba(var(--error-rgb), 0.2);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  color: var(--error-700);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.alert-success {
  background: var(--success-50);
  border: 1px solid rgba(var(--success-rgb), 0.2);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  color: var(--success-700);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.alert-warning {
  background: var(--warning-50);
  border: 1px solid rgba(var(--warning-rgb), 0.2);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  color: var(--warning-700);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.alert-info {
  background: var(--info-50);
  border: 1px solid rgba(var(--info-rgb), 0.2);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  color: var(--info-700);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.form-datetime {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  color: var(--text-primary);
  outline: none;
  width: 100%;
  transition: all var(--dur-fast) ease;
  appearance: none;
  -webkit-appearance: none;
}
.form-datetime::placeholder {
  color: var(--text-ghost);
  font-weight: 400;
}
.form-datetime:hover {
  border-color: var(--border-hover);
}
.form-datetime:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.form-datetime.flatpickr-input + .form-datetime {
  cursor: pointer;
}
.flatpickr-calendar {
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after, .flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after {
  display: none;
}
.flatpickr-months {
  padding: 0.25rem 0.25rem 0;
}
.flatpickr-months .flatpickr-month {
  height: 36px;
}
.flatpickr-current-month {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
}
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
  padding: 6px;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) ease;
}
.flatpickr-months .flatpickr-prev-month:hover, .flatpickr-months .flatpickr-next-month:hover {
  background: var(--surface-2);
}
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg {
  fill: var(--text-secondary);
}
span.flatpickr-weekday {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-ghost);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.flatpickr-day {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: all var(--dur-fast) ease;
  max-width: 36px;
  height: 36px;
  line-height: 32px;
}
.flatpickr-day:hover {
  background: var(--surface-2);
  border-color: transparent;
}
.flatpickr-day.today:not(.selected) {
  border-color: var(--border-hover);
  background: transparent;
}
.flatpickr-day.today:not(.selected):hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
}
.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-inverse);
}
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
  color: var(--text-ghost);
}
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
  color: var(--neutral-300);
}
.flatpickr-time {
  border-top: 1px solid var(--border);
}
.flatpickr-time input {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.flatpickr-time .flatpickr-am-pm {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.flatpickr-time .flatpickr-am-pm:hover, .flatpickr-time .flatpickr-am-pm:focus {
  background: var(--surface-2);
}
.flatpickr-time input:hover, .flatpickr-time input:focus {
  background: var(--surface-1);
}
.flatpickr-time .numInputWrapper span.arrowUp::after {
  border-bottom-color: var(--text-secondary);
}
.flatpickr-time .numInputWrapper span.arrowDown::after {
  border-top-color: var(--text-secondary);
}
.bb-checkbox {
  accent-color: var(--brand-green-500);
}
.bb-checkbox:focus-visible {
  outline: 2px solid var(--brand-green-200);
  outline-offset: 1px;
}
.bb-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--chevron-neutral);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 1rem;
  padding-right: 2.5rem;
}
.switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.switch-track {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--neutral-300);
  transition: background var(--dur-fast) ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--surface-0);
  box-shadow: 0 1px 2px rgba(var(--scrim-rgb), 0.2);
  transition: transform var(--dur-fast) ease;
}
.switch input:checked + .switch-track {
  background: var(--success-500);
}
.switch input:checked + .switch-track::after {
  transform: translateX(18px);
}
.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.switch:has(input:disabled) {
  cursor: not-allowed;
}
.switch input:disabled + .switch-track {
  opacity: 0.4;
}
.switch-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .switch-track, .switch-track::after {
    transition: none;
  }
}
.bb-filter-select {
  padding: 6px 28px 6px 10px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-600);
  background: var(--surface-0);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
  flex-shrink: 0;
  background-image: var(--chevron-neutral-sm);
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.bb-filter-select.has-icon {
  padding-left: 28px;
}
.bb-filter-trigger {
  background-image: none;
  padding-right: 10px;
}
.bb-filter-select:hover {
  border-color: var(--border-hover);
}
.bb-filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.15);
}
.bb-filter-select.is-active {
  border-color: var(--ink);
  color: var(--ink);
}
.bb-filter-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--neutral-500);
  pointer-events: none;
}
.bb-select-panel {
  background: var(--surface-0);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}
.bb-option-selected {
  background: var(--selected-fill);
  color: var(--ink) !important;
  font-weight: 600;
}
.bb-option-reset-active {
  color: var(--ink) !important;
}
.bb-option-reset-idle {
  color: var(--text-tertiary) !important;
}
.bb-filters-scroll::-webkit-scrollbar {
  display: none;
}
.pi-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
}
.pi-telegram {
  background: var(--platform-telegram);
}
.pi-instagram {
  background: var(--platform-instagram);
}
.pi-messenger {
  background: var(--platform-messenger);
}
.pi-whatsapp {
  background: var(--platform-whatsapp);
}
.pi-sms {
  background: var(--platform-sms);
}
.pi-email {
  background: var(--platform-email);
}
.pi-unknown {
  background: var(--neutral-400);
}
.pi-chip > .bb-platform-icon {
  max-width: 70%;
  max-height: 70%;
}
.bb-platform-icon .bb-glyph-chip {
  display: none;
}
.pi-chip > .bb-platform-icon .bb-glyph-chip {
  display: inline;
}
.pi-chip > .bb-platform-icon .bb-glyph-mark {
  display: none;
}
.pi-chip-md {
  border-radius: var(--radius-xl);
}
.pi-chip-hero {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-2xl);
}
.status-pill {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text-secondary);
}
.status-pill .status-pill-dot {
  background: var(--pill-dot, var(--neutral-400));
}
.status-pill-success, .status-pill-active, .status-pill-approved, .status-pill-sent, .status-pill-subscribed {
  background: var(--success-50);
  color: var(--success-700);
  --pill-dot: var(--success-500);
}
.status-pill-warning, .status-pill-offline, .status-pill-paused, .status-pill-needs_reauth, .status-pill-pending {
  background: var(--warning-50);
  color: var(--warning-700);
  --pill-dot: var(--warning-500);
}
.status-pill-info, .status-pill-sending, .status-pill-scheduled {
  background: var(--info-50);
  color: var(--info-700);
  --pill-dot: var(--info-500);
}
.status-pill-error, .status-pill-failed, .status-pill-rejected, .status-pill-cancelled, .status-pill-opted_out {
  background: var(--error-50);
  color: var(--error-700);
  --pill-dot: var(--error-500);
}
.status-pill-neutral, .status-pill-draft, .status-pill-disabled {
  background: var(--surface-2);
  color: var(--text-secondary);
}
.status-pill-archived {
  background: var(--surface-2);
  color: var(--text-tertiary);
}
.status-pill[class*="status-pill-"]:not(:has(> .status-pill-dot))::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: var(--radius-full);
  background: var(--pill-dot, var(--neutral-400));
  vertical-align: 1px;
}
.pi-ink-telegram {
  color: var(--platform-telegram);
}
.pi-ink-instagram {
  color: var(--platform-instagram);
}
.pi-ink-messenger {
  color: var(--platform-messenger);
}
.pi-ink-whatsapp {
  color: var(--platform-whatsapp);
}
.pi-ink-sms {
  color: var(--platform-sms);
}
.pi-ink-email {
  color: var(--platform-email);
}
.search-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.search-field > svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-ghost);
  pointer-events: none;
}
.search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-0);
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.search-input::placeholder {
  color: var(--text-ghost);
}
.search-input:hover {
  border-color: var(--border-hover);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface-0);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.filter-trigger > svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.filter-trigger:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.filter-trigger:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.filter-trigger.is-active {
  border-color: var(--ink);
  color: var(--ink);
}
.filter-trigger-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--text-inverse);
  font-size: var(--fs-2xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.filter-popover {
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 16px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-lg);
}
.filter-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.filter-popover-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}
.filter-section + .filter-section {
  margin-top: 14px;
}
.filter-section-title {
  margin-bottom: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.filter-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.filter-pill:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.filter-pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-inverse);
}
.filter-pill-count {
  font-weight: 500;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.filter-popover-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}
.filter-popover-foot > :last-child {
  flex: 1;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 6px 0 10px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.filter-chip:hover {
  background: var(--surface-3);
}
.filter-chip:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 1px;
}
.filter-chip-key {
  font-weight: 500;
  color: var(--text-tertiary);
}
.filter-chip > svg {
  width: 12px;
  height: 12px;
  color: var(--text-tertiary);
}
.filter-clear {
  padding: 0 4px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.filter-clear:hover {
  color: var(--text-primary);
}
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.summary-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--surface-0);
  color: inherit;
  text-decoration: none;
  font-family: inherit;
  text-align: left;
}
button.summary-card, a.summary-card {
  cursor: pointer;
  transition: border-color var(--dur-fast) ease;
}
button.summary-card:hover, a.summary-card:hover {
  border-color: var(--border-hover);
}
.summary-card[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.summary-card-value {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.summary-card-label {
  font-size: var(--fs-body);
  color: var(--text-secondary);
}
.data-table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-body);
}
.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 16px;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-tertiary);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
  color: var(--text-primary);
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover td {
  background: var(--surface-sunken);
}
.data-table .is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table-title {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}
a.data-table-title:hover {
  text-decoration: underline;
}
.data-table-meta {
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}
.meter {
  display: flex;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--surface-2);
}
.meter-fill {
  height: 100%;
  background: var(--neutral-400);
}
.meter-success {
  background: var(--success-500);
}
.meter-info {
  background: var(--info-500);
}
.meter-error {
  background: var(--error-500);
}
.meter-label {
  margin-top: 4px;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.step-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.step-dots > span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--neutral-700);
}
.option-cards {
  display: grid;
  gap: 10px;
}
.option-cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-tile);
  background: var(--surface-0);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.option-card:hover {
  border-color: var(--border-hover);
}
summary.btn-pill-secondary::-webkit-details-marker {
  display: none;
}
.option-card > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.option-card:has(> input:checked), .option-card.is-selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.option-card:has(> input:focus-visible), .option-card:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.option-card:has(> input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
.option-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
  color: var(--text-secondary);
}
.option-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.option-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.option-card-text {
  margin-top: 2px;
  font-size: var(--fs-body);
  color: var(--text-tertiary);
}
.option-card-meta {
  flex-shrink: 0;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.option-card-radio {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  transition: border var(--dur-fast) ease;
}
.option-card:has(> input:checked) .option-card-radio, .option-card.is-selected .option-card-radio {
  border: 5px solid var(--ink);
}
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.stepper-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-tertiary);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}
button.stepper-step, a.stepper-step {
  cursor: pointer;
}
button.stepper-step:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.stepper-step:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.stepper-step.is-current {
  font-weight: 700;
  color: var(--text-primary);
}
.stepper-step.is-done {
  font-weight: 600;
  color: var(--text-primary);
}
.stepper-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stepper-index > svg {
  width: 13px;
  height: 13px;
}
.stepper-step.is-current .stepper-index {
  background: var(--ink);
  color: var(--text-inverse);
}
.stepper-step.is-done .stepper-index {
  background: var(--success-500);
  color: var(--text-inverse);
}
.stepper-label {
  display: flex;
  flex-direction: column;
}
.stepper-sub {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-tertiary);
}
.stepper-link {
  flex: 1;
  min-width: 16px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--border);
}
.stepper-link.is-done {
  background: var(--success-500);
}
.stepper-vertical {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.stepper-vertical .stepper-step {
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  white-space: normal;
}
.stepper-vertical .stepper-step.is-current {
  background: var(--surface-0);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.stepper-vertical .stepper-link {
  display: none;
}
@media (max-width: 767px) {
  .stepper:not(.stepper-vertical) .stepper-step:not(.is-current) .stepper-label {
    display: none;
  }
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.tpl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--surface-0);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.tpl-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}
.tpl-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.editor-bar-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-tertiary);
  text-decoration: none;
}
.editor-bar-back:hover {
  color: var(--text-primary);
}
.editor-bar-sep {
  color: var(--text-ghost);
}
.editor-bar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) 300px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1023px) {
  .wizard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.wizard-main {
  min-width: 0;
}
.wizard-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
}
.wizard-lede {
  margin: 4px 0 18px;
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--text-tertiary);
}
.wizard-hint {
  font-size: var(--fs-body);
  color: var(--text-tertiary);
}
.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.wizard-actions > .btn-pill-secondary:first-of-type {
  margin-right: auto;
}
.bc-preview-chat {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--surface-0);
}
.chat-thread {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-page);
}
.chat-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: var(--fs-body);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.chat-bubble-out {
  background: var(--surface-0);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-button {
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.side-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--surface-0);
}
.side-panel + .side-panel {
  margin-top: 12px;
}
.side-panel-title {
  margin-bottom: 10px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.summary-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: var(--fs-body);
}
.summary-list dt {
  color: var(--text-tertiary);
}
.summary-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  overflow-wrap: anywhere;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-body);
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
}
.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
}
.check-item.is-ok .check-mark {
  background: var(--success-500);
  color: var(--text-inverse);
}
.check-item.is-ok {
  color: var(--text-primary);
}
.check-item.is-todo .check-mark {
  background: var(--warning-50);
  color: var(--warning-700);
  border: 1px solid var(--warning-200);
}
.check-item.is-bad .check-mark {
  background: var(--error-50);
  color: var(--error-700);
  border: 1px solid var(--error-500);
}
@keyframes bb-toast-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#bb-toast-host {
  position: fixed;
  z-index: 200;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.bb-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem 0.625rem 0.75rem;
  border-radius: var(--radius-xl);
  max-width: min(28rem, calc(100vw - 2rem));
  background: var(--neutral-900);
  color: var(--text-inverse);
  box-shadow: var(--shadow-toast);
  animation: bb-toast-pop var(--dur-slow) var(--ease-out);
  pointer-events: auto;
}
.bb-toast-icon {
  display: flex;
  flex-shrink: 0;
  margin-top: 1px;
}
.bb-toast-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
}
.bb-toast-body {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--neutral-400);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.bb-toast-dismiss {
  flex-shrink: 0;
  margin-left: 0.25rem;
  color: var(--neutral-400);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
  transition: color var(--dur-fast) ease;
}
.bb-toast-dismiss:hover {
  color: var(--text-inverse);
}
.bb-toast-success .bb-toast-icon {
  color: var(--success-500);
}
.bb-toast-info .bb-toast-icon {
  color: var(--info-500);
}
.bb-toast-warn .bb-toast-icon {
  color: var(--warning-500);
}
.bb-toast-error {
  background: var(--error-700);
}
.bb-toast-error .bb-toast-icon {
  color: var(--error-50);
}
.bb-toast-error .bb-toast-body {
  color: var(--error-50);
  opacity: 0.85;
}
@keyframes bb-modal-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.modal-pop {
  animation: bb-modal-pop var(--dur-base) var(--ease-out);
}
.bb-modal {
  margin: auto;
  width: min(28rem, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface-0);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.bb-modal[open] {
  display: flex;
  flex-direction: column;
  animation: bb-modal-pop var(--dur-base) var(--ease-out);
}
.bb-modal-lg {
  width: min(36rem, calc(100vw - 32px));
}
.bb-modal::backdrop {
  background: rgba(var(--scrim-rgb), 0.35);
}
.bb-modal[open]::backdrop {
  animation: bb-modal-scrim var(--dur-base) ease;
}
@keyframes bb-modal-scrim {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bb-modal[open], .bb-modal[open]::backdrop {
    animation: none;
  }
}
.bb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0 24px;
}
.bb-modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.bb-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px 4px;
}
.bb-modal-body .form-input-styled {
  width: 100%;
}
.bb-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 16px 24px 22px;
}
@keyframes bb-collapse-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.anim-collapse {
  animation: bb-collapse-in var(--dur-base) ease;
}
.notif-item {
  transition: background var(--dur-fast) ease;
}
.notif-item.is-unread {
  background: var(--surface-sunken);
}
.notif-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--text-tertiary);
}
.notif-icon svg {
  width: 16px;
  height: 16px;
}
.notif-icon-info {
  background: var(--surface-2);
  color: var(--text-secondary);
}
.notif-icon-success {
  background: var(--success-50);
  color: var(--success-700);
}
.notif-icon-warn {
  background: var(--warning-50);
  color: var(--warning-700);
}
.notif-icon-error {
  background: var(--error-50);
  color: var(--error-700);
}
#media-detail:empty {
  width: 0;
  padding: 0;
  overflow: hidden;
}
.media-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-1);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.media-dropzone.is-dragging {
  border-color: var(--ink);
  background: var(--surface-2);
}
.media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.media-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}
.media-card[aria-current="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.media-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--text-ghost);
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-meta {
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}
.media-meta-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-0);
  color: var(--text-secondary);
  cursor: pointer;
}
.media-pill:hover {
  border-color: var(--border-hover);
}
.media-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-inverse);
}
.media-folder {
  display: block;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.media-folder:hover {
  background: var(--surface-1);
}
.media-folder.is-active {
  background: var(--selected-fill);
  color: var(--ink);
  font-weight: 600;
}
.media-folder-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-lg);
}
.media-folder-row .media-folder {
  flex: 1 1 auto;
  min-width: 0;
}
.media-folder-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}
.media-folder-row:hover .media-folder-actions, .media-folder-row:focus-within .media-folder-actions {
  opacity: 1;
}
.media-folder-action {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-ghost);
  cursor: pointer;
}
.media-folder-action:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}
.media-quota-bar {
  height: 0.375rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  overflow: hidden;
}
.media-quota-fill {
  height: 100%;
  background: var(--ink);
}
#flow-builder {
  --xy-background-color: var(--surface-page);
  --xy-background-pattern-color: var(--neutral-300);
  --xy-edge-stroke: var(--border-hover);
  --xy-edge-stroke-selected: var(--ink);
  --xy-edge-stroke-width: 1.5;
  --xy-edge-label-background-color: var(--surface-0);
  --xy-edge-label-color: var(--text-secondary);
  --xy-connectionline-stroke: var(--accent-sky);
  --xy-handle-background-color: var(--surface-0);
  --xy-handle-border-color: var(--border-hover);
  --xy-node-background-color: var(--surface-0);
  --xy-node-color: var(--text-primary);
  --xy-node-border: 1px solid var(--border);
  --xy-node-border-radius: var(--radius-lg);
  --xy-node-boxshadow-hover: var(--shadow-md);
  --xy-node-boxshadow-selected: 0 0 0 2px var(--ink), var(--shadow-md);
  --xy-controls-button-background-color: var(--surface-0);
  --xy-controls-button-background-color-hover: var(--surface-2);
  --xy-controls-button-border-color: var(--border);
  --xy-controls-button-color: var(--text-secondary);
  --xy-controls-button-color-hover: var(--text-primary);
  --xy-controls-box-shadow: var(--shadow-md);
  --xy-minimap-background-color: var(--surface-0);
  --xy-minimap-mask-background-color: rgba(var(--scrim-rgb), 0.06);
  --xy-minimap-node-background-color: var(--border-hover);
  --xy-selection-background-color: var(--accent-sky-soft);
  --xy-selection-border: 1px dashed var(--accent-sky);
  --xy-attribution-background-color: transparent;
  --flow-accent: var(--flow-group-other);
  --flow-accent-soft: var(--flow-group-other-soft);
}
.fb-mount {
  display: flex;
  flex-direction: column;
}
.fb-shell {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}
.fb-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 56px;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-0);
  font-size: var(--fs-body);
}
.fb-toolbar-identity {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  flex: 1 1 18rem;
}
.fb-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.fb-toolbar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-tertiary);
  text-decoration: none;
}
.fb-toolbar-back svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fb-toolbar-back:hover {
  color: var(--text-primary);
}
.fb-toolbar-sep {
  color: var(--text-ghost);
}
.fb-flow-name {
  min-width: 0;
  padding: 0.25rem 0.375rem;
  margin: 0 -0.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: none;
  text-align: left;
  cursor: text;
}
.fb-flow-name:hover {
  border-color: var(--border-strong);
}
.fb-flow-name:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 1px;
}
.fb-flow-name-text {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-flow-name-input {
  width: min(22rem, 40vw);
  height: 32px;
  padding: 0 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
}
.fb-flow-name-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.fb-save-state {
  flex-shrink: 0;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  white-space: nowrap;
}
.fb-problems-menu, .fb-overflow {
  position: relative;
}
.fb-problems-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2rem;
  padding: 0 0.625rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
}
.fb-problems-button:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.fb-problems-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--success-500);
}
.fb-problems-button-error {
  color: var(--error-700);
  border-color: var(--error-500);
}
.fb-problems-button-error .fb-problems-dot {
  background: var(--error-500);
}
.fb-problems-button-warning .fb-problems-dot {
  background: var(--warning-500);
}
.fb-problems-popover, .fb-overflow-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-lg);
}
.fb-problems-popover {
  width: min(24rem, calc(100vw - 2rem));
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.75rem;
}
.fb-problems-popover .fb-problems {
  max-height: none;
  padding: 0;
  border-top: 0;
}
.fb-overflow-menu {
  width: 16rem;
  padding: 0.25rem;
}
.fb-overflow-menu a {
  display: block;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  color: var(--text-primary);
  text-decoration: none;
}
.fb-overflow-menu a:hover {
  background: var(--surface-2);
}
.fb-flow-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.625rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  color: var(--text-primary);
  font-size: var(--fs-body);
  font-weight: 700;
  white-space: nowrap;
}
.fb-flow-status-success {
  background: var(--success-50);
  border-color: var(--success-50);
}
.fb-flow-status-warning {
  background: var(--surface-2);
}
.fb-flow-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--neutral-400);
}
.fb-flow-status-success .fb-flow-status-dot {
  background: var(--success-500);
}
.fb-toolbar-divider {
  width: 1px;
  height: 1.25rem;
  background: var(--border-strong);
}
.fb-toolbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.fb-toolbar-icon svg, .bb-split svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fb-toolbar-icon:hover:not(:disabled), .fb-toolbar-icon[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--text-primary);
}
.fb-toolbar-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.fb-toolbar-icon:focus-visible, .bb-split :focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: 2px;
}
.fb-toolbar .btn-link {
  padding: 0.35rem 0.5rem;
  color: var(--text-secondary);
}
.fb-toolbar .btn-link:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.fb-toolbar .fb-badge-warning {
  background: var(--surface-2);
  color: var(--text-secondary);
}
.fb-toolbar-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
}
.bb-split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  height: 2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  color: var(--text-secondary);
}
.bb-split-main, .bb-split-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.bb-split-main {
  border-right: 1px solid var(--border);
}
.bb-split-toggle {
  width: 1.65rem;
}
.bb-split-main:hover, .bb-split-toggle:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.bb-split-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 50;
  width: 14rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  box-shadow: var(--shadow-lg);
}
.bb-split-menu button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  text-align: left;
  cursor: pointer;
}
.bb-split-menu button:hover, .bb-split-menu button[aria-current="true"] {
  background: var(--surface-2);
}
.bb-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
}
.bb-icon-action:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.bb-icon-action:focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: 2px;
}
.bb-icon-action svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.import-ask {
  border-color: var(--border);
  scroll-margin-top: 5rem;
}
.import-ask.is-unanswered {
  border-color: var(--error-500);
  background: var(--error-50);
}
.import-ask-flag {
  display: inline-block;
  margin-right: 0.375rem;
  padding: 0.0625rem 0.375rem;
  border-radius: var(--radius-full);
  background: var(--error-500);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 700;
  vertical-align: 0.05em;
}
.import-ask-problem {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--error-700);
}
.import-todo {
  margin-top: 0.625rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--error-700);
}
.import-todo a {
  font-weight: 600;
  text-decoration: underline;
}
.fb-editor {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-0);
}
.fb-editor-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
}
.fb-trigger-sidebar {
  width: 14rem;
  flex: 0 0 auto;
  overflow-y: auto;
  padding: 1rem 0.875rem;
  border-right: 1px solid var(--border);
  background: var(--surface-0);
}
.fb-right-sidebar {
  width: 19.5rem;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--border);
  background: var(--surface-0);
}
.fb-outline-steps {
  margin-top: 1.125rem;
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
}
.fb-inspector-tabs {
  padding: 0 1rem;
  height: 44px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--divider);
}
.fb-inspector-tabs .tab {
  font-size: var(--fs-body);
}
.fb-link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.fb-link-button:hover {
  color: var(--text-primary);
}
.fb-editor-section {
  margin-top: 1.25rem;
}
.fb-editor-section:first-child {
  margin-top: 0;
}
.fb-section-label {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 0.5rem;
}
.fb-editor-start {
  margin-top: 1.25rem;
  padding: 0.875rem;
  border-radius: var(--radius-tile);
  background: var(--surface-sunken);
}
.fb-editor-start-title {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text-primary);
}
.fb-editor-start-body {
  margin-top: 0.25rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-tertiary);
}
.fb-trigger-section {
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--surface-1);
}
.fb-trigger-heading {
  margin-bottom: 0.5rem;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text-primary);
}
.fb-trigger-empty {
  margin-top: 0.25rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-tertiary);
}
.fb-trigger-list {
  margin-top: 0.5rem;
}
.fb-trigger-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}
.fb-trigger-row:last-child {
  margin-bottom: 0;
}
.fb-trigger-row.is-off {
  opacity: 0.65;
}
.fb-trigger-name {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
}
.fb-trigger-off {
  margin-left: 0.375rem;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-secondary);
}
.fb-trigger-detail {
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--text-tertiary);
}
.fb-steplist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.fb-steplist-item:hover {
  background: var(--surface-2);
}
.fb-steplist-item.is-selected {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.fb-steplist-item:focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: 1px;
}
.fb-steplist-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
}
.fb-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  background: var(--neutral-200);
  color: var(--text-primary);
  font-size: var(--fs-2xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fb-step-eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.fb-step-flag {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0.0625rem 0.375rem;
  border-radius: var(--radius-full);
  background: var(--error-50);
  color: var(--error-700);
  font-size: var(--fs-2xs);
  font-weight: 600;
}
.fb-edit-head {
  padding: 0 0 0.75rem;
}
.fb-edit-caption {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-ghost);
}
.fb-edit-title {
  display: block;
  font-size: var(--fs-body-lg);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}
.fb-step-problems {
  margin-bottom: 0.75rem;
}
.fb-step-problem {
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.375rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.fb-step-problem-error {
  background: var(--error-50);
  color: var(--error-700);
}
.fb-step-problem-warning {
  background: var(--warning-50);
  color: var(--warning-700);
}
.fb-step-delete {
  margin-top: 0;
  padding: 0.25rem 0;
  background: none;
  border: 0;
  color: var(--error-700);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}
.fb-step-delete:hover {
  text-decoration: underline;
}
.fb-node-trigger {
  --flow-accent: var(--brand-green-500);
  --flow-accent-soft: var(--brand-green-50);
  cursor: pointer;
}
.fb-node-trigger .fb-node-title:only-child, .fb-node-trigger.is-empty {
  border-style: dashed;
}
.fb-node-trigger.is-quiet .fb-node-title {
  color: var(--text-secondary);
}
.fb-node-warn {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--warning-700);
}
.fb-trigger-section.is-selected {
  border-color: var(--brand-green-500);
  background: var(--brand-green-50);
}
.fb-add-wide {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-tile);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
}
.fb-add-wide:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}
.fb-add-wide:focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: 1px;
}
.fb-adders {
  margin-top: 1rem;
}
.fb-adders-label {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-ghost);
  padding-top: 0.875rem;
  border-top: 1px solid var(--border-inner);
}
.fb-adder-group {
  margin-top: 0.75rem;
}
.fb-adder-group-label {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 0.3125rem;
}
.fb-add-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.fb-add-chip {
  padding: 0.3125rem 0.625rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.fb-add-chip:hover {
  border-style: solid;
  border-color: var(--border-hover);
  background: var(--surface-2);
  color: var(--text-primary);
}
.fb-add-chip:focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: 1px;
}
.fb-row-controls {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}
.fb-row-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  color: var(--text-secondary);
  font-size: var(--fs-xs);
  line-height: 1;
  cursor: pointer;
}
.fb-row-btn:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.fb-row-btn:focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: 1px;
}
.fb-row-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.fb-row-btn.is-danger:hover:not(:disabled) {
  border-color: var(--error-500);
  background: var(--error-50);
  color: var(--error-700);
}
.fb-step-rule {
  border: 0;
  border-top: 1px solid var(--border-inner);
  margin: 1.25rem 0 0.75rem;
}
.fb-canvas {
  position: relative;
}
.fb-addstep {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.fb-zoom {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  box-shadow: var(--shadow-sm);
}
.fb-zoom button {
  width: 2.25rem;
  height: 1.875rem;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.fb-zoom button + button {
  border-top: 1px solid var(--divider);
}
.fb-zoom button:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.fb-zoom .fb-zoom-level {
  font-size: var(--fs-2xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fb-edge-insert {
  position: absolute;
  z-index: 6;
  pointer-events: all;
}
.fb-edge-insert-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  font-size: 14px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0.85;
}
.fb-edge-insert-button:hover, .fb-edge-insert-button[aria-expanded="true"] {
  border-color: var(--ink);
  color: var(--ink);
  opacity: 1;
}
.fb-edge-insert-menu {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
}
.fb-addstep-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--text-inverse);
  font-size: var(--fs-body);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.fb-addstep-button:hover {
  background: var(--neutral-800);
}
.fb-addstep-button:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.fb-addstep-menu {
  width: 17.5rem;
  max-height: 22rem;
  overflow-y: auto;
  margin-bottom: 0.625rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--surface-0);
  box-shadow: var(--shadow-lg);
}
.fb-addstep-group {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin: 0.625rem 0 0.25rem 0.375rem;
}
.fb-addstep-group:first-child {
  margin-top: 0.125rem;
}
.fb-addstep-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4375rem 0.5rem;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  font-size: var(--fs-body);
  text-align: left;
  cursor: pointer;
}
.fb-addstep-item:hover {
  background: var(--surface-2);
}
.fb-addstep-item:focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: -2px;
}
.fb-addstep-hint {
  font-size: var(--fs-2xs);
  color: var(--text-tertiary);
}
.fb-addstep-swatch {
  width: 0.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  background: var(--flow-accent);
}
.fb-preview {
  flex: 0 0 auto;
  max-height: 40%;
  overflow-y: auto;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-0);
}
.fb-phone {
  padding: 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 1.5rem;
  background: var(--surface-sunken);
}
.fb-phone-screen {
  min-height: 7rem;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.75rem;
  border-radius: 1.125rem;
  background: var(--surface-0);
}
.fb-phone-empty {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-tertiary);
}
.fb-phone-turn {
  margin-bottom: 0.625rem;
}
.fb-phone-bubble {
  display: inline-block;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem 1rem 1rem 0.25rem;
  background: var(--neutral-100);
  color: var(--text-primary);
  font-size: var(--fs-body);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fb-phone-placeholder {
  opacity: 0.75;
  font-style: italic;
}
.fb-phone-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.375rem;
}
.fb-phone-button {
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}
.fb-phone-attachment {
  padding: 1.25rem;
  margin-bottom: 0.625rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-tile);
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  text-align: center;
}
.fb-preview-note {
  margin-top: 0.625rem;
  font-size: var(--fs-2xs);
  line-height: 1.5;
  color: var(--text-tertiary);
}
.fb-preview-note code {
  font-size: var(--fs-2xs);
}
.fb-node {
  width: 15rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--surface-0);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}
.fb-node.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), var(--shadow-md);
}
.fb-node.is-invalid {
  border-color: var(--error-500);
}
.fb-node-content {
  --flow-accent: var(--flow-group-content);
  --flow-accent-soft: var(--flow-group-content-soft);
  --flow-ink: var(--info-700);
}
.fb-node-logic {
  --flow-accent: var(--flow-group-logic);
  --flow-accent-soft: var(--flow-group-logic-soft);
  --flow-ink: #3730A3;
}
.fb-node-actions {
  --flow-accent: var(--flow-group-actions);
  --flow-accent-soft: var(--flow-group-actions-soft);
  --flow-ink: #0F766E;
}
.fb-node-other {
  --flow-accent: var(--flow-group-other);
  --flow-accent-soft: var(--flow-group-other-soft);
  --flow-ink: var(--text-tertiary);
}
.fb-node-note {
  border-left-width: 1px;
  background: var(--warning-50);
  border-color: var(--warning-200);
  box-shadow: none;
}
.fb-node-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
  min-height: 0.875rem;
}
.fb-node-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--flow-ink);
}
.fb-node-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--flow-accent);
  flex-shrink: 0;
}
.fb-node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--flow-accent-soft);
  color: var(--flow-accent);
}
.fb-node-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fb-node-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
}
.fb-node-body {
  padding: 0.25rem 0 0;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}
.fb-node-footer {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--divider);
  font-size: var(--fs-2xs);
}
.fb-entry-flag {
  display: inline-flex;
  align-items: center;
  padding: 0.0625rem 0.3125rem;
  border-radius: var(--radius-full);
  background: var(--neutral-700);
  color: var(--text-inverse);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.fb-pill {
  display: inline-block;
  max-width: 100%;
  padding: 0.0625rem 0.375rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-pill-quick {
  border-style: dashed;
}
.fb-pill-rate {
  color: var(--text-tertiary);
}
.fb-handle-label {
  padding: 0.0625rem 0.3125rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-0);
  color: var(--text-tertiary);
  font-size: 0.625rem;
  white-space: nowrap;
}
.fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  padding: 0.0625rem 0.3125rem;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 600;
}
.fb-badge-error {
  background: var(--error-50);
  color: var(--error-700);
}
.fb-badge-warning {
  background: var(--warning-50);
  color: var(--warning-700);
}
.fb-field {
  margin-bottom: 0.75rem;
}
.fb-field-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}
.fb-field-help {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.fb-field-error {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: var(--error-700);
}
.fb-subgroup {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}
.fb-empty {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.fb-rich-text {
  min-height: 12rem;
  max-height: 28rem;
  overflow-y: auto;
  text-align: left;
  white-space: normal;
}
.fb-rich-text:focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: 1px;
}
.fb-rich-text > :first-child {
  margin-top: 0;
}
.fb-rich-text img {
  max-width: 100%;
  height: auto;
}
.fb-rich-text blockquote {
  margin: 0.5rem 0;
  padding-left: 0.75rem;
  border-left: 3px solid var(--border);
  color: var(--text-secondary);
}
.fb-rich-text ul, .fb-rich-text ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}
.fb-rich-text ul {
  list-style: disc;
}
.fb-rich-text ol {
  list-style: decimal;
}
.fb-rich-text h1, .fb-rich-text h2, .fb-rich-text h3, .fb-rich-text h4 {
  margin: 0.5rem 0;
  font-weight: 600;
}
.fb-rich-text a {
  color: var(--info-700);
  text-decoration: underline;
}
.fb-problems {
  max-height: 12rem;
  overflow-y: auto;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--surface-0);
}
.fb-problem {
  display: block;
  width: 100%;
  padding: 0.375rem 0.5rem;
  margin-bottom: 0.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-hover);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
}
.fb-problem-error {
  border-left-color: var(--error-500);
}
.fb-problem-warning {
  border-left-color: var(--warning-500);
}
.fb-problem-action {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-primary);
  font-weight: 600;
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .fb-trigger-sidebar {
    width: 15rem;
  }
  .fb-right-sidebar {
    width: 21rem;
  }
}
@media (max-width: 1199px) {
  .fb-shell {
    flex-direction: column;
    overflow-y: auto;
  }
  .fb-trigger-sidebar, .fb-right-sidebar {
    width: 100%;
    flex: 0 0 auto;
    border-left: 0;
    border-right: 0;
  }
  .fb-trigger-sidebar {
    border-bottom: 1px solid var(--border);
  }
  .fb-canvas {
    flex: 0 0 28rem;
    min-height: 28rem;
  }
  .fb-right-sidebar {
    overflow: visible;
  }
  .fb-preview {
    max-height: none;
  }
  .fb-editor {
    min-height: 18rem;
  }
  .fb-editor-body {
    max-height: 36rem;
  }
}
.fb-problem-code {
  font-family: var(--brand-font-mono);
  font-size: 0.625rem;
  color: var(--text-ghost);
}
.fb-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.5rem;
}
.fb-asset {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  text-align: left;
  cursor: pointer;
}
.fb-asset:hover {
  border-color: var(--border-hover);
}
.fb-asset.is-selected {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 2px var(--accent-sky-soft);
}
.fb-asset-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  object-fit: cover;
}
.ib-filters {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ib-tabs {
  gap: 4px;
  height: auto;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--border);
}
.ib-tabs .tab {
  height: 36px;
  padding: 0 10px;
  font-size: var(--fs-body);
  color: var(--text-secondary);
}
.ib-tabs .tab-count {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}
.ib-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}
.ib-toolbar .search-field {
  margin: 0;
}
.ib-toolbar .search-input {
  height: 34px;
}
.ib-toolbar .filter-trigger {
  height: 34px;
  padding: 0 10px;
}
.ib-chips {
  padding: 0 12px;
}
.ib-chips .filter-chips {
  margin: 0 0 10px;
}
.ib-shortcuts {
  align-items: center;
  gap: 14px;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}
.ib-empty-state {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.ib-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface-0);
  color: var(--text-secondary);
}
.ib-empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ib-empty-body {
  max-width: 20rem;
  margin-top: 6px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-secondary);
}
.ib-empty-body b {
  color: var(--text-primary);
}
.ib-empty-action {
  margin-top: 16px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.ib-empty-action:hover {
  border-color: var(--border-hover);
}
.ib-empty-action:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.ib-shell {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface-0);
  overflow: hidden;
}
.ib-shell form {
  margin-top: 0;
  margin-bottom: 0;
}
.ib-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 0 0 21.5rem;
  border-right: 1px solid var(--border);
  background: var(--surface-0);
}
.ib-rail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.ib-main {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}
.ib-row-wrap {
  position: relative;
  border-bottom: 1px solid var(--divider);
}
.ib-row-select {
  position: absolute;
  top: 23px;
  left: 25px;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}
.ib-row-wrap:hover .ib-row-select, .ib-row-select:focus-visible, .ib-row-select:checked, .is-selecting .ib-row-select {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: none) {
  .ib-row-select {
    top: 23px;
    left: 10px;
    opacity: 1;
    pointer-events: auto;
  }
  .ib-row-wrap .ib-row {
    padding-left: 36px;
  }
}
.ib-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 12px;
  width: 100%;
  text-align: left;
  color: inherit;
  text-decoration: none;
  padding: 12px 14px;
  background: var(--surface-0);
  cursor: pointer;
}
.ib-row > * {
  grid-column: 2;
}
.ib-row > .ib-row-avatar {
  grid-column: 1;
  grid-row: 1 / -1;
}
.ib-row-body {
  display: block;
  min-width: 0;
}
.ib-row-body > * {
  display: block;
}
.ib-row-body > .ib-row-top, .ib-row-body > .ib-row-meta {
  display: flex;
}
.ib-row:hover {
  background: var(--surface-sunken);
}
.ib-row.is-current {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border-hover);
}
.ib-row:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: -2px;
}
.ib-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--neutral-200);
  color: var(--neutral-700);
  font-size: var(--fs-body);
  font-weight: 600;
}
.ib-avatar-md {
  width: 36px;
  height: 36px;
}
.ib-row-avatar {
  position: relative;
  display: flex;
  align-self: start;
  width: 38px;
  height: 38px;
}
.ib-row-channel {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--surface-0);
  box-sizing: content-box;
}
.ib-row.is-current .ib-row-channel {
  border-color: var(--surface-2);
}
.ib-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ib-row-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}
.ib-row.is-unread .ib-row-name {
  font-weight: 700;
}
.ib-row-time {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}
.ib-row-preview {
  margin-top: 2px;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ib-row.is-unread .ib-row-preview {
  color: var(--text-primary);
  font-weight: 500;
}
.ib-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: var(--fs-xs);
}
.ib-row-tag {
  padding: 1px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  color: var(--neutral-700);
}
.ib-row-assignee {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}
.ib-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--ink);
  flex-shrink: 0;
}
.ib-thread {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  background: var(--surface-0);
}
.ib-thread-empty {
  background: var(--surface-sunken);
}
.ib-thread-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: var(--surface-sunken);
}
.ib-thread-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-0);
}
.ib-thread-title {
  flex: 1 1 11rem;
  min-width: 0;
}
.ib-thread-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.ib-thread-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}
.ib-sub-chip {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
}
.ib-thread-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.ib-assignee {
  height: 32px;
  min-height: 32px;
  max-width: 12rem;
  padding-left: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background-color: var(--surface-0);
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--text-primary);
}
.ib-head-btn {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  cursor: pointer;
}
.ib-head-btn:hover {
  border-color: var(--border-hover);
}
.ib-head-btn:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.ib-info-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  color: var(--text-secondary);
  cursor: pointer;
}
.ib-info-toggle.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--text-inverse);
}
.ib-info-toggle:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.ib-messages {
  padding: 18px;
}
.ib-message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ib-day {
  align-self: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.ib-msg {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}
.ib-msg-in {
  align-self: flex-start;
  align-items: flex-start;
}
.ib-msg-out {
  align-self: flex-end;
  align-items: flex-end;
}
.ib-bubble {
  max-width: 100%;
  padding: 9px 13px;
  border-radius: var(--radius-tile);
  font-size: 0.875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  border: 1px solid transparent;
}
.ib-text {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ib-bubble-in {
  background: var(--surface-0);
  border-color: var(--border);
  color: var(--text-primary);
}
.ib-bubble-auto {
  background: var(--neutral-150);
  color: var(--text-primary);
}
.ib-bubble-out {
  background: var(--neutral-800);
  color: var(--text-inverse);
}
.ib-bubble-out .ib-chip {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
}
.ib-bubble-note {
  background: var(--warning-50);
  color: var(--warning-700);
  border-color: var(--warning-500);
}
.ib-bubble-failed {
  border-color: var(--error-500);
}
.ib-bubble-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}
.ib-bubble-error {
  font-size: 0.6875rem;
  color: var(--error-700);
}
.ib-bubble-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.ib-media {
  max-width: 18rem;
  max-height: 18rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.ib-tombstone {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-ghost);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.5rem;
  background: var(--surface-1);
}
.ib-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 0.6875rem;
  color: var(--text-secondary);
}
.ib-label-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 1px 8px;
  border-radius: 9999px;
  font-size: 0.6875rem;
  color: var(--chip-ink, var(--text-secondary));
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in srgb, var(--chip-ink, var(--text-secondary)) 70%, var(--neutral-900));
  }
  background: var(--chip-ink, var(--surface-2));
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--chip-ink, var(--surface-2)) 14%, var(--surface-2));
  }
}
.ib-side .ib-label-chip {
  padding: 2px 10px;
  font-size: var(--fs-sm);
}
.ib-label-chip form {
  display: inline;
}
.ib-label-dot {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--chip-ink, var(--neutral-300));
}
.ib-row-labels {
  font-size: 0.6875rem;
}
.ib-deferred {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}
.ib-deferred-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  background: var(--surface-2);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.ib-deferred-failed {
  background: var(--error-50);
  color: var(--error-700);
}
.ib-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.ib-popover {
  position: absolute;
  left: 18px;
  bottom: calc(100% - 8px);
  z-index: 20;
  width: min(24rem, calc(100% - 36px));
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-tile);
  background: var(--surface-0);
  box-shadow: var(--shadow-lg);
}
.ib-popover-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ib-popover-text {
  margin: 2px 0 12px;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--text-secondary);
}
.ib-field-label {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
}
.ib-field-label span {
  font-weight: 400;
  color: var(--text-tertiary);
}
.ib-popover input:not([type="hidden"]), .ib-popover select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 36px;
}
.ib-popover-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.ib-remind-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 480px) {
  .ib-remind-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ib-remind-field {
  min-width: 0;
}
.ib-ink-btn, .ib-plain-btn {
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.ib-ink-btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--text-inverse);
}
.ib-ink-btn:hover {
  background: var(--neutral-800);
}
.ib-ink-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.ib-plain-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface-0);
  color: var(--text-primary);
}
.ib-plain-btn:hover {
  border-color: var(--border-hover);
}
.ib-ink-btn:focus-visible, .ib-plain-btn:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.ib-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.ib-picker {
  width: min(26rem, calc(100% - 36px));
  max-height: 20rem;
  padding: 8px;
  overflow-y: auto;
}
.ib-picker-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
}
.ib-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ib-picker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.375rem 0.5rem;
  text-align: left;
  font-size: 0.75rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.ib-picker-item:hover {
  background: var(--surface-2);
}
.ib-picker-thumb {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 0.25rem;
}
.ib-picker-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ib-picker-kind {
  color: var(--text-ghost);
}
.ib-picker-warn {
  color: var(--warning-700);
}
.ib-rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ib-rule {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-bottom: 0;
}
.ib-rule + .ib-rule {
  border-top: 1px solid var(--divider);
}
.ib-rule:hover {
  background: var(--surface-sunken);
}
.ib-rule-handle {
  cursor: grab;
  color: var(--text-ghost);
  user-select: none;
  padding-top: 2px;
}
.ib-rule-body {
  flex: 1 1 auto;
  min-width: 0;
}
.ib-rule-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}
.ib-rule-clauses, .ib-rule-actions {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.ib-rule-actions {
  color: var(--text-tertiary);
}
.ib-rule-test-results {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.75rem;
}
.ib-keyword {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.375rem;
}
.ib-status {
  position: sticky;
  top: 0;
  z-index: 2;
}
.ib-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  color: var(--neutral-700);
}
.ib-status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: var(--neutral-400);
}
.ib-banner-open .ib-status-dot {
  background: var(--success-500);
}
.ib-banner-paused {
  background: var(--warning-50);
  color: var(--warning-700);
}
.ib-banner-paused .ib-status-dot {
  background: var(--warning-500);
}
.ib-banner-blocked {
  background: var(--error-50);
  color: var(--error-700);
}
.ib-banner-blocked .ib-status-dot {
  background: var(--error-500);
}
.ib-banner-info {
  background: var(--surface-2);
  color: var(--text-secondary);
}
.ib-banner-action {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text-primary);
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ib-banner-paused .ib-banner-action, .ib-banner-blocked .ib-banner-action {
  color: inherit;
}
#inbox-composer {
  flex: 0 0 auto;
}
.ib-compose-wrap {
  position: relative;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-0);
}
.ib-composer-readonly {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}
.ib-compose-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.ib-compose-hint {
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--text-tertiary);
}
.ib-seg {
  display: flex;
  gap: 6px;
}
.ib-seg-btn {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.ib-seg-btn[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--text-inverse);
}
.ib-seg-btn:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.ib-compose-box {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface-0);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.ib-compose-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}
.ib-compose-box.is-note {
  background: var(--warning-50);
  border-color: var(--warning-200);
}
.ib-compose-input {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 2.9em;
  max-height: 12rem;
  padding: 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-primary);
  field-sizing: content;
}
.ib-compose-input::placeholder {
  color: var(--text-ghost);
}
.ib-compose-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.ib-tool {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  font: inherit;
  font-size: var(--fs-body);
  color: var(--text-primary);
  cursor: pointer;
}
.ib-tool:hover, .ib-tool[aria-expanded="true"] {
  background: var(--neutral-200);
}
.ib-tool:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.ib-compose-actions .ib-send-btn {
  height: 34px;
  min-width: 4.5rem;
  padding: 0 20px;
  font-weight: 700;
}
.ib-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 0 16.5rem;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  border-left: 1px solid var(--border);
  background: var(--surface-0);
}
.ib-side.is-closed {
  display: none;
}
.ib-side-section {
  position: relative;
}
.ib-side-close {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--text-tertiary);
  cursor: pointer;
}
.ib-side-close:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.ib-side-close:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 0;
}
@media (max-width: 1023px) {
  .ib-side {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    width: min(18rem, 100%);
    box-shadow: var(--shadow-xl);
  }
  .ib-side:not(.is-open) {
    display: none;
  }
  .ib-side-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
.ib-side-label {
  margin: 0 0 8px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.ib-side-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  font-size: var(--fs-body);
}
.ib-side-grid dt {
  color: var(--text-tertiary);
}
.ib-side-grid dd {
  margin: 0;
  min-width: 0;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.ib-side-grid .ib-side-good {
  color: var(--success-700);
  font-weight: 600;
}
.ib-side-grid .ib-side-bad {
  color: var(--error-700);
  font-weight: 600;
}
.ib-side-muted {
  font-size: var(--fs-body);
  color: var(--text-tertiary);
}
.ib-side-link {
  display: inline-block;
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ib-side-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ib-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  font-size: var(--fs-sm);
  color: var(--text-primary);
}
.ib-tag form {
  display: inline-flex;
}
.ib-chip-x {
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--fs-body);
  line-height: 1;
  color: var(--text-tertiary);
  cursor: pointer;
}
.ib-chip-x:hover {
  color: var(--text-primary);
}
.ib-add {
  position: relative;
}
.ib-add-chip {
  padding: 2px 10px;
  border: 1px dashed var(--neutral-300);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  cursor: pointer;
}
.ib-add-chip:hover {
  border-color: var(--neutral-400);
}
.ib-add-chip:focus-visible {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.ib-add-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 11rem;
  max-height: 15rem;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface-0);
  box-shadow: var(--shadow-lg);
}
.ib-add-option {
  padding: 6px 10px;
  border: 0;
  border-radius: var(--radius-lg);
  background: none;
  font: inherit;
  font-size: var(--fs-body);
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
}
.ib-add-option:hover, .ib-add-option:focus-visible {
  background: var(--surface-2);
  outline: none;
}
.ib-side-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}
.ib-side-card + .ib-side-card {
  margin-top: 8px;
}
.ib-side-card b {
  color: var(--text-primary);
}
.ib-side-card-paused {
  border-color: var(--warning-200);
  background: var(--warning-50);
}
.ib-side-action {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ib-side-action-danger {
  color: var(--error-700);
}
@media (max-width: 1279px) {
  .ib-shell {
    flex-direction: column;
  }
  .ib-rail {
    flex: 1 1 auto;
    border-right: 0;
  }
  .ib-main {
    flex: 1 1 auto;
  }
  .ib-shell:has(.ib-thread-header) .ib-rail {
    display: none;
  }
  .ib-shell:not(:has(.ib-thread-header)) > .ib-main {
    display: none;
  }
}
.ib-empty {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
.ib-tick {
  font-size: 0.6875rem;
  color: var(--text-ghost);
}
.ib-tick-read {
  color: var(--info-700);
}
.ib-tick-failed {
  color: var(--error-700);
}
.crm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.crm-toolbar form {
  margin-bottom: 0;
}
.crm-filters {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}
.crm-filters-head, .crm-filters-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.crm-filters-foot {
  margin-top: 0.5rem;
}
.crm-filters-save {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.crm-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.crm-rule-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.crm-rule-remove {
  border: 0;
  background: transparent;
  color: var(--text-ghost);
  font-size: 1.125rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
}
.crm-rule-remove:hover {
  color: var(--error-700);
}
.crm-bulkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}
.crm-bulkbar form {
  margin-bottom: 0;
}
.crm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}
.crm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  margin-right: 0.25rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
}
.crm-chip-remove {
  border: 0;
  background: transparent;
  color: var(--text-ghost);
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0;
}
.crm-chip-remove:hover {
  color: var(--error-700);
}
.crm-typeahead {
  position: relative;
}
.crm-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.crm-suggestion:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.crm-suggestion-new {
  color: var(--text-primary);
  font-weight: 600;
}
.crm-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .crm-detail {
    flex-direction: row;
    align-items: flex-start;
  }
  .crm-detail-main {
    flex: 1 1 auto;
    min-width: 0;
  }
  .crm-detail-side {
    flex: 0 0 22rem;
  }
}
.crm-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}
.crm-panel h2 {
  margin-bottom: 0.5rem;
}
.crm-danger-zone {
  border-color: var(--error-500);
}
.crm-danger-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.crm-danger-form input[type="text"] {
  width: auto;
  max-width: 12rem;
}
.crm-inline-field {
  margin-bottom: 0.625rem;
}
.crm-inline-field form {
  margin-bottom: 0;
}
.crm-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}
.crm-avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--text-tertiary);
  font-weight: 700;
  font-size: 0.875rem;
}
.crm-channel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
.crm-channel:first-of-type {
  border-top: 0;
}
.crm-channel form {
  margin-bottom: 0;
}
.crm-channel-state {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.crm-automation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.crm-msg {
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.375rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--border);
  background: var(--surface-1);
}
.crm-msg-in {
  border-left-color: var(--info-500);
}
.crm-msg-out {
  border-left-color: var(--neutral-400);
}
.crm-msg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-ghost);
  margin-bottom: 0.125rem;
}
.crm-msg-body {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
@layer base {
  .app-content h1 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  .app-content h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }
  .app-content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  .app-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
  }
  .app-content a {
    color: var(--text-primary);
  }
  .app-content a:not([class]) {
    text-decoration: underline;
    text-decoration-color: var(--border-hover);
    text-underline-offset: 2px;
  }
  .app-content a:not([class]):hover {
    text-decoration-color: currentColor;
  }
  .app-content hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
  }
  .app-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
  .app-content th {
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-ghost);
    padding: 0 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .app-content td {
    padding: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
  }
  .app-content label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
  }
  .app-content input[type="text"], .app-content input[type="email"], .app-content input[type="password"], .app-content input[type="url"], .app-content select, .app-content textarea {
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-0);
    color: var(--text-primary);
    max-width: 26rem;
    width: 100%;
  }
  .app-content input:focus, .app-content select:focus, .app-content textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
  }
  .app-content input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--brand-green-500);
  }
  .app-content button:not([class]), .app-content input[type="submit"]:not([class]) {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-full);
    background: var(--surface-0);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--dur-fast) ease;
  }
  .app-content button:not([class]):hover, .app-content input[type="submit"]:not([class]):hover {
    background: var(--surface-1);
    border-color: var(--border-hover);
  }
  .app-content ul:not([class]) {
    margin: 0 0 1rem 1.125rem;
    list-style: disc;
    font-size: 0.875rem;
    color: var(--text-secondary);
  }
  .app-content form {
    margin-bottom: 1rem;
  }
  .app-content .errorlist {
    list-style: none;
    margin: 0.375rem 0 0;
    padding: 0;
    color: var(--error-700);
    font-size: 0.75rem;
  }
  .app-content .muted {
    font-size: var(--fs-body);
    color: var(--text-tertiary);
  }
  .app-content code {
    font-family: var(--font-mono);
    font-size: 0.8125em;
    padding: 0.0625rem 0.3125rem;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-primary);
    overflow-wrap: anywhere;
  }
}
.bb-drawer {
  background: var(--surface-0);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}
.bb-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 0.7rem;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.bb-chip:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}
.bb-chip-selected, .bb-chip-selected:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-inverse);
}
.bc-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  padding: 1rem;
}
.bc-panel + .bc-panel {
  margin-top: 0.75rem;
}
.bc-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.bc-panel-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.bc-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.bc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.bc-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  padding: 0.625rem;
}
.bc-block + .bc-block {
  margin-top: 0.5rem;
}
.bc-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}
.bc-block-kind {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.bc-remove {
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  cursor: pointer;
}
.bc-remove:hover {
  color: var(--error-700);
}
.bc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.bc-row + .bc-row {
  margin-top: 0.375rem;
}
.bc-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  padding: 0.75rem;
}
.bc-preview-figure {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.bc-reason {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.bc-reason-count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
}
.bc-reason-names {
  font-size: 0.6875rem;
  color: var(--text-ghost);
}
.bc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.5rem;
}
.bc-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  padding: 0.625rem 0.75rem;
}
.bc-tile-figure {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.2;
}
.bc-tile-label {
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.bc-bar {
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  overflow: hidden;
}
.bc-bar-fill {
  height: 100%;
  background: var(--success-500);
  transition: width var(--dur-base) ease;
}
.bc-bar-indeterminate {
  width: 40%;
  animation: bc-bar-sweep 1.4s ease-in-out infinite;
}
@keyframes bc-bar-sweep {
  0% {
    margin-left: -40%;
  }
  100% {
    margin-left: 100%;
  }
}
.an-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}
.an-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: inherit;
}
a.an-card:hover {
  border-color: var(--border-hover);
}
.an-card-figure {
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.15;
}
.an-card-label {
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.an-card-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.an-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  padding: 1rem;
  margin-top: 1rem;
}
.an-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.an-panel-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.an-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.an-range {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.an-range-option {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--surface-0);
}
.an-range-option + .an-range-option {
  border-left: 1px solid var(--border);
}
.an-range-option:hover {
  background: var(--surface-1);
}
.an-range-current {
  background: var(--ink);
  color: var(--text-inverse);
  font-weight: 600;
}
.an-chart {
  position: relative;
  height: 15rem;
}
.an-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.an-table th {
  text-align: left;
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.an-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.an-table td.an-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.an-table th.an-num {
  text-align: right;
}
.an-muted {
  color: var(--text-tertiary);
}
.cn-page {
  width: 100%;
  max-width: 680px;
}
.cn-page .alert-error, .cn-page .alert-warning {
  margin-bottom: 1.25rem;
}
.cn-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: cn-step;
}
.cn-step {
  counter-increment: cn-step;
  position: relative;
  padding: 0 0 20px 42px;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}
.cn-step:last-child {
  padding-bottom: 0;
}
.cn-step::before {
  content: counter(cn-step);
  position: absolute;
  left: 0;
  top: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--surface-0);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cn-step::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 31px;
  bottom: 3px;
  width: 1px;
  background: var(--divider);
}
.cn-step:last-child::after {
  display: none;
}
.cn-form input[type="text"], .cn-form input[type="email"], .cn-form input[type="password"], .cn-form input[type="url"], .cn-form input[type="tel"], .cn-form select, .cn-form textarea {
  width: 100%;
  max-width: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  color: var(--text-primary);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.cn-form input:hover, .cn-form select:hover, .cn-form textarea:hover {
  border-color: var(--border-hover);
}
.cn-form input:focus, .cn-form select:focus, .cn-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.cn-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
}
.cn-copy .cn-copy-value {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.cn-provider {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
}
.cn-provider:not(.tile-selected):hover {
  border-color: var(--border-hover);
}
.cn-provider-name {
  display: block;
  font-size: var(--fs-body-lg);
  font-weight: 600;
}
.cn-provider-note {
  display: block;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--text-tertiary);
  margin-top: 3px;
}
.cn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-tertiary);
  text-decoration: none;
}
.cn-back:hover {
  color: var(--text-primary);
}
.plan-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.plan-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
}
.plan-card-current {
  border: 1.5px solid var(--ink);
  background: var(--surface-0);
}
.plan-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.plan-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.plan-card-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
}
.plan-card-name {
  font-size: var(--fs-title);
  font-weight: 700;
  color: var(--text-primary);
}
.plan-card-tagline {
  font-size: var(--fs-body);
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.plan-price-amount {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.plan-price-cadence {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
}
.plan-price-note {
  flex-basis: 100%;
  font-size: var(--fs-body);
  color: var(--text-tertiary);
}
.plan-pricing {
  position: relative;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
.plan-pricing > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.plan-interval {
  display: inline-flex;
  padding: 3px;
  margin-bottom: 0.875rem;
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
}
.plan-interval label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.plan-save {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.0625rem 0.375rem;
  border-radius: var(--radius-full);
  background: var(--success-50);
  color: var(--success-700);
}
.plan-pricing .plan-price {
  display: none;
}
.plan-pricing > input[value="monthly"]:checked ~ .plan-price[data-interval="monthly"], .plan-pricing > input[value="yearly"]:checked ~ .plan-price[data-interval="yearly"] {
  display: flex;
}
.plan-pricing > input[value="monthly"]:checked ~ .plan-interval label[for^="interval-monthly"], .plan-pricing > input[value="yearly"]:checked ~ .plan-interval label[for^="interval-yearly"] {
  background: var(--surface-0);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}
.plan-pricing > input[type="radio"]:focus-visible ~ .plan-interval {
  outline: 2px solid var(--primary-ring);
  outline-offset: 2px;
}
.plan-card-actions {
  margin-bottom: 1.25rem;
}
.plan-card-features {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.plan-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--text-secondary);
}
.plan-card-features li > svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--success-700);
}
.plan-usage {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}
.plan-usage tr + tr td {
  border-top: 1px solid var(--divider);
}
.plan-usage td {
  padding: 0.625rem 0.5rem;
  font-size: var(--fs-body-lg);
  color: var(--text-primary);
  border-bottom: 0;
  vertical-align: middle;
}
.plan-usage-icon {
  width: 2rem;
  color: var(--text-ghost);
  line-height: 0;
}
.plan-usage-figure {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan-usage-near td {
  background: var(--warning-50);
}
.plan-usage-near .plan-usage-figure, .plan-usage-near .plan-usage-icon {
  color: var(--warning-700);
}
.plan-usage-at td {
  background: var(--error-50);
}
.plan-usage-at .plan-usage-figure, .plan-usage-at .plan-usage-icon {
  color: var(--error-700);
}
@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-scale-x {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-y {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-z {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-divide-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@property --tw-ordinal {
  syntax: "*";
  inherits: false;
}
@property --tw-slashed-zero {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-figure {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false;
}
@property --tw-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-duration {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-scale-x: 1;
      --tw-scale-y: 1;
      --tw-scale-z: 1;
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-divide-y-reverse: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-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-duration: initial;
    }
  }
}
