/* [project]/app/inter_715a3d3a.module.css [app-client] (css) */
@font-face {
  font-family: inter;
  src: url("../media/inter_latin-s.p.2bn3s6zvc0dyp.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 500;
}

@font-face {
  font-family: inter Fallback;
  src: local(Arial);
  ascent-override: 89.79%;
  descent-override: 22.36%;
  line-gap-override: 0.0%;
  size-adjust: 107.89%;
}

.inter_715a3d3a-module__OM1s4a__className {
  font-family: inter, inter Fallback;
}

.inter_715a3d3a-module__OM1s4a__variable {
  --font-inter: "inter", "inter Fallback";
}

/* [project]/app/mono_ea014d32.module.css [app-client] (css) */
@font-face {
  font-family: mono;
  src: url("../media/jetbrains_mono_latin-s.p.1bkzbscqrt8rl.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 500;
}

@font-face {
  font-family: mono Fallback;
  src: local(Arial);
  ascent-override: 77.57%;
  descent-override: 22.82%;
  line-gap-override: 0.0%;
  size-adjust: 131.49%;
}

.mono_ea014d32-module__oiMcTa__className {
  font-family: mono, mono Fallback;
}

.mono_ea014d32-module__oiMcTa__variable {
  --font-jetbrains-mono: "mono", "mono Fallback";
}

/* [project]/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --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-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
      --tw-ease: initial;
      --tw-content: "";
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, 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;
    --color-rose-500: #ff2357;
    --color-black: #000;
    --spacing: .25rem;
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --font-weight-medium: 500;
    --radius-sm: .25rem;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
    --blur-sm: 8px;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-primary: var(--primary);
  }

  @supports (color: lab(0% 0 0)) {
    :root, :host {
      --color-rose-500: lab(56.101% 79.4328 31.4532);
    }
  }
}

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

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

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

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

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

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

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

  b, strong {
    font-weight: bolder;
  }

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

  small {
    font-size: 80%;
  }

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

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

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

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

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

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

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

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

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

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

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

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

  ::placeholder {
    opacity: 1;
  }

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

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

  textarea {
    resize: vertical;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@layer components;

@layer utilities {
  .pointer-events-none {
    pointer-events: none;
  }

  .collapse {
    visibility: collapse;
  }

  .invisible {
    visibility: hidden;
  }

  .visible {
    visibility: visible;
  }

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

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .inset-0 {
    inset: 0;
  }

  .inset-y-0 {
    inset-block: 0;
  }

  .top-0 {
    top: 0;
  }

  .top-full {
    top: 100%;
  }

  .right-0 {
    right: 0;
  }

  .right-2 {
    right: calc(var(--spacing) * 2);
  }

  .bottom-full {
    bottom: 100%;
  }

  .left-0 {
    left: 0;
  }

  .isolate {
    isolation: isolate;
  }

  .z-0 {
    z-index: 0;
  }

  .z-10 {
    z-index: 10;
  }

  .z-30 {
    z-index: 30;
  }

  .z-40 {
    z-index: 40;
  }

  .z-50 {
    z-index: 50;
  }

  .z-\[-1\] {
    z-index: -1;
  }

  .container {
    width: 100%;
  }

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

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

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

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

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

  .-mx-2 {
    margin-inline: calc(var(--spacing) * -2);
  }

  .ml-auto {
    margin-left: auto;
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

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

  .table {
    display: table;
  }

  .h-2 {
    height: calc(var(--spacing) * 2);
  }

  .h-3 {
    height: calc(var(--spacing) * 3);
  }

  .h-3\.5 {
    height: calc(var(--spacing) * 3.5);
  }

  .h-5 {
    height: calc(var(--spacing) * 5);
  }

  .h-6 {
    height: calc(var(--spacing) * 6);
  }

  .h-full {
    height: 100%;
  }

  .w-1\.5 {
    width: calc(var(--spacing) * 1.5);
  }

  .w-2 {
    width: calc(var(--spacing) * 2);
  }

  .w-2\/3 {
    width: 66.6667%;
  }

  .w-3 {
    width: calc(var(--spacing) * 3);
  }

  .w-3\.5 {
    width: calc(var(--spacing) * 3.5);
  }

  .w-5 {
    width: calc(var(--spacing) * 5);
  }

  .w-6 {
    width: calc(var(--spacing) * 6);
  }

  .w-10 {
    width: calc(var(--spacing) * 10);
  }

  .w-80 {
    width: calc(var(--spacing) * 80);
  }

  .w-full {
    width: 100%;
  }

  .w-max {
    width: max-content;
  }

  .max-w-\[85vw\] {
    max-width: 85vw;
  }

  .max-w-\[min\(92vw\,20rem\)\] {
    max-width: min(92vw, 20rem);
  }

  .min-w-0 {
    min-width: 0;
  }

  .min-w-full {
    min-width: 100%;
  }

  .flex-1 {
    flex: 1;
  }

  .shrink-0 {
    flex-shrink: 0;
  }

  .grow {
    flex-grow: 1;
  }

  .border-collapse {
    border-collapse: collapse;
  }

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

  .animate-pulse {
    animation: var(--animate-pulse);
  }

  .cursor-col-resize {
    cursor: col-resize;
  }

  .cursor-default {
    cursor: default;
  }

  .cursor-grab {
    cursor: grab;
  }

  .cursor-not-allowed {
    cursor: not-allowed;
  }

  .cursor-pointer {
    cursor: pointer;
  }

  .touch-none {
    touch-action: none;
  }

  .resize {
    resize: both;
  }

  .appearance-none {
    appearance: none;
  }

  .flex-col {
    flex-direction: column;
  }

  .place-items-center {
    place-items: center;
  }

  .items-center {
    align-items: center;
  }

  .justify-center {
    justify-content: center;
  }

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

  .justify-start {
    justify-content: flex-start;
  }

  .gap-2\.5 {
    gap: calc(var(--spacing) * 2.5);
  }

  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }

  .truncate {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .overflow-auto {
    overflow: auto;
  }

  .overflow-hidden {
    overflow: hidden;
  }

  .rounded {
    border-radius: .25rem;
  }

  .rounded-full {
    border-radius: 3.40282e38px;
  }

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

  .rounded-md {
    border-radius: var(--radius-md);
  }

  .rounded-xl {
    border-radius: var(--radius-xl);
  }

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

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

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

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

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

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

  .border-border {
    border-color: var(--border);
  }

  .border-border\/60 {
    border-color: var(--border);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-border\/60 {
      border-color: color-mix(in oklab, var(--border) 60%, transparent);
    }
  }

  .border-muted-foreground\/50 {
    border-color: var(--muted);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .border-muted-foreground\/50 {
      border-color: color-mix(in oklab, var(--muted) 50%, transparent);
    }
  }

  .border-primary {
    border-color: var(--primary);
  }

  .bg-background {
    background-color: var(--surface);
  }

  .bg-black\/35 {
    background-color: #00000059;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-black\/35 {
      background-color: color-mix(in oklab, var(--color-black) 35%, transparent);
    }
  }

  .bg-black\/40 {
    background-color: #0006;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .bg-black\/40 {
      background-color: color-mix(in oklab, var(--color-black) 40%, transparent);
    }
  }

  .bg-muted {
    background-color: var(--surface-subtle);
  }

  .bg-popover {
    background-color: var(--surface-elevated);
  }

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

  .bg-transparent {
    background-color: #0000;
  }

  .p-0 {
    padding: 0;
  }

  .p-1 {
    padding: var(--spacing);
  }

  .p-4 {
    padding: calc(var(--spacing) * 4);
  }

  .p-10 {
    padding: calc(var(--spacing) * 10);
  }

  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }

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

  .py-1 {
    padding-block: var(--spacing);
  }

  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }

  .pr-7 {
    padding-right: calc(var(--spacing) * 7);
  }

  .pl-2 {
    padding-left: calc(var(--spacing) * 2);
  }

  .text-center {
    text-align: center;
  }

  .text-left {
    text-align: left;
  }

  .text-right {
    text-align: right;
  }

  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  .leading-\[1\.1\] {
    --tw-leading: 1.1;
    line-height: 1.1;
  }

  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }

  .break-normal {
    overflow-wrap: normal;
    word-break: normal;
  }

  .whitespace-normal {
    white-space: normal;
  }

  .text-foreground {
    color: var(--foreground);
  }

  .text-muted {
    color: var(--surface-subtle);
  }

  .text-muted-foreground {
    color: var(--muted);
  }

  .text-muted-foreground\/60 {
    color: var(--muted);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .text-muted-foreground\/60 {
      color: color-mix(in oklab, var(--muted) 60%, transparent);
    }
  }

  .text-popover-foreground {
    color: var(--foreground);
  }

  .text-primary-foreground {
    color: var(--primary-foreground);
  }

  .text-rose-500 {
    color: var(--color-rose-500);
  }

  .opacity-60 {
    opacity: .6;
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .shadow-2xl {
    --tw-shadow: 0 25px 50px -12px var(--tw-shadow-color, #00000040);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .shadow-sm {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .shadow-xl {
    --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, #0000001a), 0 8px 10px -6px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .ring {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

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

  .drop-shadow {
    --tw-drop-shadow-size: drop-shadow(0 1px 2px var(--tw-drop-shadow-color, #0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color, #0000000f));
    --tw-drop-shadow: drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);
    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\:drop-shadow\(0_10px_18px_rgba\(0\,0\,0\,0\.14\)\)\] {
    filter: drop-shadow(0 10px 18px #00000024);
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .backdrop-blur-sm {
    --tw-backdrop-blur: blur(var(--blur-sm));
    -webkit-backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
    backdrop-filter: var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );
  }

  .transition {
    transition-property: color, background-color, border-color, 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-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .duration-200 {
    --tw-duration: .2s;
    transition-duration: .2s;
  }

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

  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }

  .select-all {
    -webkit-user-select: all;
    user-select: all;
  }

  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }

  .placeholder\:text-muted-foreground\/40::placeholder {
    color: var(--muted);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .placeholder\:text-muted-foreground\/40::placeholder {
      color: color-mix(in oklab, var(--muted) 40%, transparent);
    }
  }

  @media (hover: hover) {
    .hover\:border-muted-foreground:hover {
      border-color: var(--muted);
    }
  }

  @media (hover: hover) {
    .hover\:bg-muted:hover {
      background-color: var(--surface-subtle);
    }
  }

  @media (hover: hover) {
    .hover\:bg-muted\/50:hover {
      background-color: var(--surface-subtle);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-muted\/50:hover {
        background-color: color-mix(in oklab, var(--surface-subtle) 50%, transparent);
      }
    }
  }

  @media (hover: hover) {
    .hover\:bg-primary\/40:hover {
      background-color: var(--primary);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-primary\/40:hover {
        background-color: color-mix(in oklab, var(--primary) 40%, transparent);
      }
    }
  }

  @media (hover: hover) {
    .hover\:bg-primary\/90:hover {
      background-color: var(--primary);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-primary\/90:hover {
        background-color: color-mix(in oklab, var(--primary) 90%, transparent);
      }
    }
  }

  @media (hover: hover) {
    .hover\:bg-rose-500\/10:hover {
      background-color: #ff23571a;
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-rose-500\/10:hover {
        background-color: color-mix(in oklab, var(--color-rose-500) 10%, transparent);
      }
    }
  }

  @media (hover: hover) {
    .hover\:text-foreground:hover {
      color: var(--foreground);
    }
  }

  .focus\:bg-muted:focus {
    background-color: var(--surface-subtle);
  }

  .focus\:text-foreground:focus {
    color: var(--foreground);
  }

  .focus\:ring-1:focus {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .focus\:ring-ring:focus {
    --tw-ring-color: var(--primary);
  }

  .focus-visible\:ring-2:focus-visible {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .focus-visible\:ring-ring:focus-visible {
    --tw-ring-color: var(--primary);
  }

  .focus-visible\:ring-offset-2:focus-visible {
    --tw-ring-offset-width: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  }

  .focus-visible\:ring-offset-background:focus-visible {
    --tw-ring-offset-color: var(--surface);
  }

  .focus-visible\:outline-none:focus-visible {
    --tw-outline-style: none;
    outline-style: none;
  }

  .focus-visible\:ring-inset:focus-visible {
    --tw-ring-inset: inset;
  }

  .active\:cursor-grabbing:active {
    cursor: grabbing;
  }

  .disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
  }

  .disabled\:opacity-60:disabled {
    opacity: .6;
  }

  .data-\[active\=true\]\:bg-muted\/70[data-active="true"] {
    background-color: var(--surface-subtle);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .data-\[active\=true\]\:bg-muted\/70[data-active="true"] {
      background-color: color-mix(in oklab, var(--surface-subtle) 70%, transparent);
    }
  }

  .data-\[drop\=true\]\:before\:absolute[data-drop="true"]:before {
    content: var(--tw-content);
    position: absolute;
  }

  .data-\[drop\=true\]\:before\:inset-y-0[data-drop="true"]:before {
    content: var(--tw-content);
    inset-block: 0;
  }

  .data-\[drop\=true\]\:before\:left-0[data-drop="true"]:before {
    content: var(--tw-content);
    left: 0;
  }

  .data-\[drop\=true\]\:before\:w-0\.5[data-drop="true"]:before {
    content: var(--tw-content);
    width: calc(var(--spacing) * .5);
  }

  .data-\[drop\=true\]\:before\:bg-primary[data-drop="true"]:before {
    content: var(--tw-content);
    background-color: var(--primary);
  }

  .data-\[dropend\=true\]\:after\:absolute[data-dropend="true"]:after {
    content: var(--tw-content);
    position: absolute;
  }

  .data-\[dropend\=true\]\:after\:inset-y-0[data-dropend="true"]:after {
    content: var(--tw-content);
    inset-block: 0;
  }

  .data-\[dropend\=true\]\:after\:right-0[data-dropend="true"]:after {
    content: var(--tw-content);
    right: 0;
  }

  .data-\[dropend\=true\]\:after\:w-0\.5[data-dropend="true"]:after {
    content: var(--tw-content);
    width: calc(var(--spacing) * .5);
  }

  .data-\[dropend\=true\]\:after\:bg-primary[data-dropend="true"]:after {
    content: var(--tw-content);
    background-color: var(--primary);
  }

  .data-\[selected\=true\]\:bg-primary\/5[data-selected="true"] {
    background-color: var(--primary);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .data-\[selected\=true\]\:bg-primary\/5[data-selected="true"] {
      background-color: color-mix(in oklab, var(--primary) 5%, transparent);
    }
  }

  @media (min-width: 40rem) {
    .sm\:p-6 {
      padding: calc(var(--spacing) * 6);
    }
  }

  .\[\&_svg\]\:h-4 svg {
    height: calc(var(--spacing) * 4);
  }

  .\[\&_svg\]\:w-4 svg {
    width: calc(var(--spacing) * 4);
  }
}

:root {
  --text-body: 14px;
  --leading-body: 22px;
  --text-supporting: 13px;
  --leading-supporting: 20px;
  --text-micro: 12px;
  --leading-micro: 16px;
  --background: #fafafa;
  --foreground: #171717;
  --surface: #fff;
  --surface-subtle: #f5f5f5;
  --surface-elevated: #fff;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --muted: #737373;
  --muted-strong: #525252;
  --primary: #166534;
  --primary-hover: #14532d;
  --primary-foreground: #fff;
  --primary-subtle: #f0fdf4;
  --success: #15803d;
  --warning: #a16207;
  --danger: #b91c1c;
  --info: #0369a1;
  --focus: #16653447;
  --shadow-float: 0 18px 50px #17171724, 0 2px 8px #17171714;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

[data-theme="dark"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --background: #171717;
  --foreground: #f2f2f2;
  --surface: #191919;
  --surface-subtle: #202020;
  --surface-elevated: #232323;
  --border: #292929;
  --border-strong: #373737;
  --muted: #919191;
  --muted-strong: #c4c4c4;
  --primary: #78a485;
  --primary-hover: #89b295;
  --primary-foreground: #101713;
  --primary-subtle: #78a4851f;
  --success: #78a485;
  --warning: #c2a66a;
  --danger: #d48686;
  --info: #80a6bd;
  --focus: #78a48538;
  --shadow-float: 0 24px 70px #00000057, 0 2px 10px #00000038;
}

[data-theme="dark"] .sidebar, [data-theme="dark"] .topbar {
  background: var(--background);
}

[data-theme="dark"] .pulse-mark {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--foreground);
}

[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea, [data-theme="dark"] .control {
  background: var(--surface-subtle);
}

[data-theme="dark"] .pulse-message.user {
  box-shadow: inset 0 0 0 1px var(--border-strong);
  background: #2b2b2b;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-inter), Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3, strong, button, label, th {
  font-weight: 500;
}

small {
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

img {
  max-width: 100%;
}

::selection {
  background: var(--primary-subtle);
  color: var(--foreground);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100dvh;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 30;
  width: 224px;
  transition: width .18s var(--ease-out), padding .18s var(--ease-out);
  flex-direction: column;
  padding: 16px 12px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.sidebar-head {
  justify-content: space-between;
  align-items: center;
  height: 42px;
  padding: 0 8px;
  display: flex;
}

.sidebar-content {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.sidebar-footer {
  flex: none;
}

.sidebar-rail {
  background: none;
  border: 0;
  width: 10px;
  padding: 0;
  position: absolute;
  inset: 0 -5px 0 auto;
}

.sidebar-rail:after {
  content: "";
  background: var(--border-strong);
  opacity: 0;
  border-radius: 1px;
  width: 1px;
  transition: opacity .14s;
  position: absolute;
  inset: 10px auto 10px 4px;
}

.sidebar-rail:hover:after, .sidebar-rail:focus-visible:after {
  opacity: 1;
}

.pulse-logo {
  letter-spacing: .28em;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
}

.pulse-mark {
  background: var(--foreground);
  width: 29px;
  height: 29px;
  color: var(--surface);
  letter-spacing: 0;
  border-radius: 8px;
  place-items: center;
  font-family: inherit;
  font-size: 18px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.pulse-mark:after {
  content: "";
  background: var(--primary);
  width: 13px;
  height: 4px;
  position: absolute;
  top: 13px;
  left: 3px;
  transform: skewX(-25deg);
}

.organization-switcher {
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  transition: border-color .16s ease, transform .14s var(--ease-out);
  border-radius: 10px;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 9px;
  margin: 14px 0 18px;
  padding: 9px;
  display: grid;
}

.organization-switcher:hover {
  border-color: var(--border-strong);
}

.organization-switcher:active, .button:active, .icon-button:active, .ask-trigger:active, .search-trigger:active {
  transform: scale(.97);
}

.organization-switcher span:last-child, .account-copy {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.organization-switcher strong, .account-copy strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.organization-switcher small, .account-copy small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  overflow: hidden;
}

.store-mark {
  background: var(--surface-subtle);
  width: 32px;
  height: 32px;
  color: var(--muted-strong);
  border-radius: 8px;
  place-items: center;
  font-weight: 500;
  display: grid;
}

.sidebar-nav {
  gap: 3px;
  display: grid;
}

.sidebar-nav a {
  height: 40px;
  color: var(--muted-strong);
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-weight: 400;
  transition: background-color .14s, color .14s;
  display: flex;
}

.sidebar-nav a:hover {
  background: var(--surface-subtle);
  color: var(--foreground);
}

.sidebar-nav a.active {
  background: var(--surface-subtle);
  color: var(--foreground);
  font-weight: 500;
}

.sidebar-nav a.active svg {
  color: var(--primary);
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.account-row {
  width: 100%;
  min-width: 0;
  height: 48px;
  color: var(--foreground);
  text-align: left;
  transition: background-color .14s ease, transform .14s var(--ease-out);
  background: none;
  border: 0;
  border-radius: 8px;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 9px;
  padding: 0 8px;
  display: grid;
}

.account-row:hover, .account-row[data-popup-open] {
  background: var(--surface-subtle);
}

.account-row:active {
  transform: scale(.98);
}

.account-more {
  color: var(--muted);
}

.account-menu-positioner {
  z-index: 80;
}

.account-menu-popup {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  width: 256px;
  box-shadow: var(--shadow-float);
  color: var(--foreground);
  transform-origin: var(--transform-origin);
  transition: opacity .14s ease, transform .17s var(--ease-out);
  border-radius: 10px;
  outline: none;
  padding: 6px;
}

.account-menu-popup[data-starting-style], .account-menu-popup[data-ending-style] {
  opacity: 0;
  transform: translateX(-4px)scale(.98);
}

.account-menu-header {
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  display: grid;
}

.account-menu-header > span {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.account-menu-header strong, .account-menu-header small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.account-menu-header small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  margin-top: 1px;
}

.account-menu-item {
  height: 38px;
  color: var(--muted-strong);
  cursor: default;
  border-radius: 8px;
  outline: none;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  transition: background-color .12s, color .12s;
  display: flex;
}

.account-menu-item svg {
  color: var(--muted);
}

.account-menu-item:hover, .account-menu-item[data-highlighted] {
  background: var(--surface-subtle);
  color: var(--foreground);
}

.account-menu-item:hover svg, .account-menu-item[data-highlighted] svg {
  color: var(--foreground);
}

.account-menu-separator {
  background: var(--border);
  height: 1px;
  margin: 5px -6px;
}

.app-main {
  min-height: 100dvh;
  transition: margin-left .18s var(--ease-out);
  margin-left: 224px;
}

.sidebar-is-collapsed .sidebar {
  width: 60px;
  padding-left: 8px;
  padding-right: 8px;
}

.sidebar-is-collapsed .app-main {
  margin-left: 60px;
}

.sidebar-is-collapsed .sidebar-head {
  justify-content: center;
  padding: 0;
}

.sidebar-is-collapsed .pulse-logo {
  gap: 0;
}

.sidebar-is-collapsed .pulse-logo > span:last-child, .sidebar-is-collapsed .organization-switcher > span:last-child, .sidebar-is-collapsed .sidebar-nav a > span, .sidebar-is-collapsed .account-copy, .sidebar-is-collapsed .account-more {
  display: none;
}

.sidebar-is-collapsed .organization-switcher {
  background: none;
  border-color: #0000;
  grid-template-columns: 28px;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 14px 4px 16px;
  padding: 4px;
}

.sidebar-is-collapsed .organization-switcher:hover {
  background: var(--surface-subtle);
  border-color: #0000;
}

.sidebar-is-collapsed .sidebar-nav {
  gap: 2px;
}

.sidebar-is-collapsed .sidebar-nav a {
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 4px;
  padding: 0;
}

.sidebar-is-collapsed .sidebar-footer {
  padding-top: 10px;
}

.sidebar-is-collapsed .account-row {
  grid-template-columns: 28px;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 4px;
  padding: 4px;
}

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

.search-trigger {
  width: min(360px, 35vw);
  height: 36px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  text-align: left;
  transition: transform .14s var(--ease-out), border-color .14s ease;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  display: flex;
}

.search-trigger span {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

kbd {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 4px;
  padding: 2px 5px;
  font-family: inherit;
  font-size: 10px;
}

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

.ask-trigger, .icon-button {
  border: 1px solid var(--border);
  background: var(--surface);
  height: 36px;
  transition: transform .14s var(--ease-out), border-color .14s ease, background-color .14s ease;
  border-radius: 8px;
}

.ask-trigger {
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  display: flex;
}

.icon-button {
  place-items: center;
  width: 36px;
  padding: 0;
  display: inline-grid;
}

.icon-button:hover, .ask-trigger:hover {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
}

.main-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 24px 56px;
}

.mobile-nav, .mobile-only {
  display: none;
}

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

.page-header h1 {
  letter-spacing: -.025em;
  font-size: 28px;
  line-height: 36px;
}

.eyebrow {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  margin-bottom: 4px;
}

.page-description {
  max-width: 68ch;
  color: var(--muted);
  margin-top: 5px;
}

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

.section-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
  display: flex;
}

.section-header h2 {
  font-size: 16px;
  line-height: 24px;
}

.section-header p {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  margin-top: 2px;
}

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

.button {
  white-space: nowrap;
  min-height: 40px;
  transition: transform .14s var(--ease-out), background-color .16s ease, border-color .16s ease, color .16s ease;
  border: 1px solid #0000;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13px;
  display: inline-flex;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.button-secondary {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--border);
}

.button-secondary:hover, .button-ghost:hover {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}

.button-ghost {
  color: var(--muted-strong);
  background: none;
}

.button-danger {
  background: var(--danger);
  color: #fff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}

.badge {
  white-space: nowrap;
  width: fit-content;
  min-height: 22px;
  font-size: var(--text-micro);
  font-weight: 500;
  line-height: var(--leading-micro);
  border: 1px solid #0000;
  border-radius: 999px;
  flex-shrink: 0;
  align-items: center;
  padding: 2px 8px;
  display: inline-flex;
}

.badge-neutral {
  background: var(--surface-subtle);
  color: var(--muted-strong);
  border-color: var(--border);
}

.badge-brand {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

@supports (color: color-mix(in lab, red, red)) {
  .badge-brand {
    border-color: color-mix(in srgb, var(--primary) 18%, transparent);
  }
}

.badge-success {
  background: var(--surface-subtle);
  color: var(--muted-strong);
  border-color: var(--border);
}

.badge-warning {
  background: var(--warning);
}

@supports (color: color-mix(in lab, red, red)) {
  .badge-warning {
    background: color-mix(in srgb, var(--warning) 11%, transparent);
  }
}

.badge-warning {
  color: var(--warning);
  border-color: var(--warning);
}

@supports (color: color-mix(in lab, red, red)) {
  .badge-warning {
    border-color: color-mix(in srgb, var(--warning) 20%, transparent);
  }
}

.badge-danger {
  background: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .badge-danger {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
  }
}

.badge-danger {
  color: var(--danger);
  border-color: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .badge-danger {
    border-color: color-mix(in srgb, var(--danger) 20%, transparent);
  }
}

.avatar {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--muted-strong);
  border-radius: 999px;
  flex: none;
  place-items: center;
  font-weight: 500;
  display: inline-grid;
  position: relative;
  overflow: hidden;
}

.avatar-image, .avatar-fallback {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.avatar-image {
  object-fit: cover;
  display: block;
}

.avatar-fallback {
  place-items: center;
  display: grid;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.avatar-md {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 15px;
}

.success-notice {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--muted-strong);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  display: flex;
}

.success-notice svg {
  color: var(--success);
}

.field {
  gap: 7px;
  display: grid;
}

.field-label {
  color: var(--muted-strong);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  font-weight: 500;
}

.field input, .field select, .field textarea, .control {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  width: 100%;
  min-height: 40px;
  color: var(--foreground);
  border-radius: 8px;
  outline: none;
  padding: 9px 11px;
  transition: border-color .14s, box-shadow .14s;
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field input:focus, .field select:focus, .field textarea:focus, .control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.field-hint, .field-warning {
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  font-weight: 400;
}

.field-hint {
  color: var(--muted);
}

.field-warning {
  color: var(--warning);
}

.metric-grid {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
  overflow: hidden;
}

.metric-link {
  border-right: 1px solid var(--border);
  align-content: center;
  gap: 3px;
  min-height: 108px;
  padding: 16px 18px;
  transition: background-color .14s;
  display: grid;
  position: relative;
}

.metric-link:last-child {
  border-right: 0;
}

.metric-link:hover, .metric-link.active {
  background: var(--surface-subtle);
}

.metric-button {
  border: 0;
  border-right: 1px solid var(--border);
  width: 100%;
  color: var(--foreground);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
}

.metric-button:last-child {
  border-right: 0;
}

.metric-button:focus-visible {
  z-index: 1;
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.metric-link > span {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.metric-link > strong {
  letter-spacing: -.02em;
  font-family: inherit;
  font-size: 22px;
  line-height: 30px;
}

.metric-link > small {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.metric-link > svg {
  color: var(--muted);
  opacity: 0;
  transition: opacity .14s, transform .14s;
  position: absolute;
  top: 14px;
  right: 14px;
  transform: translateX(-3px);
}

.metric-link:hover > svg {
  opacity: 1;
  transform: translateX(0);
}

.split-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: 16px;
  display: grid;
}

.timeline-list {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  max-height: min(60vh, 560px);
  overflow-y: auto;
}

.timeline-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 74px 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px 18px;
  display: grid;
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-time {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  padding-top: 3px;
}

.icon-tile {
  background: var(--surface-subtle);
  width: 32px;
  height: 32px;
  color: var(--muted-strong);
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.icon-tile.brand {
  background: var(--primary-subtle);
  color: var(--primary);
}

.timeline-copy h3 {
  font-size: 13px;
  line-height: 20px;
}

.timeline-copy p {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  margin-top: 2px;
}

.timeline-copy a {
  color: var(--muted-strong);
  font-weight: 500;
}

.timeline-impact {
  font-family: inherit;
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  padding-top: 3px;
}

.timeline-impact.positive {
  color: var(--success);
}

.briefing {
  padding: 20px;
}

.briefing-head {
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  display: flex;
}

.briefing-head .icon-tile {
  background: var(--primary-subtle);
  color: var(--primary);
}

.briefing-head h2 {
  font-size: 14px;
  line-height: 20px;
}

.briefing-head span {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  margin-left: auto;
}

.briefing-summary {
  width: 100%;
  max-width: none;
  font-family: inherit;
  font-size: var(--text-supporting);
  font-weight: 400;
  line-height: var(--leading-supporting);
  text-wrap: pretty;
}

.evidence-links {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  display: flex;
}

.evidence-links a {
  border: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  border-radius: 8px;
  padding: 6px 9px;
  transition: border-color .14s, color .14s;
}

.evidence-links a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.attention-list {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  max-height: min(60vh, 560px);
  padding: 4px 16px;
  overflow-y: auto;
}

.attention-item {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 14px 0;
  display: grid;
}

.attention-item:last-child {
  border-bottom: 0;
}

.attention-item h3 {
  font-size: 14px;
  line-height: 20px;
}

.attention-item p {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  margin-top: 2px;
}

.active-orders-card {
  padding: 4px 16px;
}

.active-order-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  display: grid;
}

.active-order-row:last-child {
  border-bottom: 0;
}

.active-order-details {
  gap: 2px;
  min-width: 0;
  display: grid;
}

.active-order-details strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  overflow: hidden;
}

.active-order-details small {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.order-action-split {
  justify-self: end;
  display: flex;
}

.order-action-primary {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  min-height: 34px;
  color: var(--foreground);
  font: inherit;
  font-size: var(--text-micro);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  padding: 0 12px;
  font-weight: 500;
  transition: background-color .14s, border-color .14s;
}

.order-action-primary:hover {
  background: var(--surface-subtle);
}

.order-action-primary[data-has-caret="false"] {
  border-radius: 8px;
}

.order-action-caret {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  width: 30px;
  min-height: 34px;
  color: var(--muted-strong);
  cursor: pointer;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  place-items: center;
  transition: background-color .14s, color .14s;
  display: grid;
}

.order-action-caret:hover, .order-action-caret[data-popup-open] {
  background: var(--surface-subtle);
  color: var(--foreground);
}

.order-action-menu-positioner {
  z-index: 80;
}

.order-action-menu-popup {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  min-width: 176px;
  box-shadow: var(--shadow-float);
  color: var(--foreground);
  transform-origin: var(--transform-origin);
  transition: opacity .14s ease, transform .17s var(--ease-out);
  border-radius: 10px;
  outline: none;
  padding: 6px;
}

.order-action-menu-popup[data-starting-style], .order-action-menu-popup[data-ending-style] {
  opacity: 0;
  transform: translateY(-4px)scale(.98);
}

.order-action-menu-item {
  height: 36px;
  color: var(--muted-strong);
  font-size: var(--text-micro);
  cursor: default;
  border-radius: 8px;
  outline: none;
  align-items: center;
  padding: 0 10px;
  transition: background-color .12s, color .12s;
  display: flex;
}

.order-action-menu-item:hover, .order-action-menu-item[data-highlighted] {
  background: var(--surface-subtle);
  color: var(--foreground);
}

.attention-item a {
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  margin-top: 6px;
  font-weight: 500;
  display: inline-flex;
}

.table-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  border-bottom: 1px solid var(--border);
  height: 42px;
  color: var(--muted);
  text-align: left;
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  white-space: nowrap;
  padding: 0 14px;
}

td {
  border-bottom: 1px solid var(--border);
  height: 56px;
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  white-space: nowrap;
  padding: 8px 14px;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--surface-subtle);
}

.receipt-history-card {
  overflow: hidden;
}

.receipt-history-card .table-wrap {
  border: 0;
  border-radius: 0;
}

.receipt-history-row {
  cursor: pointer;
  outline: none;
  transition: background-color .14s;
}

.receipt-history-card .pulse-motion-table tbody tr:hover {
  background: none;
}

.receipt-history-row:focus-visible {
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.receipt-history-row td:first-child strong {
  color: var(--foreground);
  font-weight: 500;
}

.receipt-history-action {
  color: var(--muted);
  text-align: right;
}

.receipt-history-action span {
  opacity: 0;
  transition: opacity .14s;
}

.receipt-history-action svg {
  opacity: .55;
  transition: opacity .14s, transform .14s;
  transform: translateX(-2px);
}

.receipt-history-row:hover .receipt-history-action span, .receipt-history-row:focus-visible .receipt-history-action span {
  opacity: 1;
}

.receipt-history-row:hover .receipt-history-action svg, .receipt-history-row:focus-visible .receipt-history-action svg {
  opacity: 1;
  transform: translateX(0);
}

.order-status-control {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-height: 34px;
  color: var(--foreground);
  font: inherit;
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 28px 6px 9px;
  transition: border-color .14s, background-color .14s, color .14s;
}

.order-status-control[data-status="created"] {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
  color: var(--muted-strong);
}

.order-status-control[data-status="out_for_delivery"] {
  border-color: var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  .order-status-control[data-status="out_for_delivery"] {
    border-color: color-mix(in srgb, var(--info) 30%, var(--border));
  }
}

.order-status-control[data-status="out_for_delivery"] {
  background: var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  .order-status-control[data-status="out_for_delivery"] {
    background: color-mix(in srgb, var(--info) 9%, var(--surface));
  }
}

.order-status-control[data-status="out_for_delivery"] {
  color: var(--info);
}

.order-status-control[data-status="delivery_failed"] {
  border-color: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .order-status-control[data-status="delivery_failed"] {
    border-color: color-mix(in srgb, var(--danger) 30%, var(--border));
  }
}

.order-status-control[data-status="delivery_failed"] {
  background: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .order-status-control[data-status="delivery_failed"] {
    background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  }
}

.order-status-control[data-status="delivery_failed"] {
  color: var(--danger);
}

.order-status-control[data-status="delivered"] {
  border-color: var(--success);
}

@supports (color: color-mix(in lab, red, red)) {
  .order-status-control[data-status="delivered"] {
    border-color: color-mix(in srgb, var(--success) 28%, var(--border));
  }
}

.order-status-control[data-status="delivered"] {
  background: var(--success);
}

@supports (color: color-mix(in lab, red, red)) {
  .order-status-control[data-status="delivered"] {
    background: color-mix(in srgb, var(--success) 8%, var(--surface));
  }
}

.order-status-control[data-status="delivered"] {
  color: var(--success);
}

.order-status-control:hover:not(:disabled) {
  filter: saturate(.9);
  border-color: currentColor;
}

.order-status-control:disabled {
  cursor: default;
  opacity: 1;
}

.receipt-morph-scroll .order-tracking {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  width: min(100%, 620px);
  margin: 0 auto 16px;
  padding: 18px 20px;
}

.order-tracking > div {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

.order-tracking > div > strong {
  font-size: var(--text-supporting);
}

.order-tracking ol {
  align-items: flex-start;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.order-tracking li {
  color: var(--muted-strong);
  flex: 1;
  grid-template-rows: 14px auto;
  gap: 7px;
  display: grid;
  position: relative;
}

.order-tracking li:not(:last-child):after {
  content: "";
  background: var(--border-strong);
  height: 1px;
  position: absolute;
  top: 6px;
  left: 7px;
  right: -7px;
}

.order-tracking-marker {
  z-index: 1;
  border: 3px solid var(--surface);
  background: var(--muted);
  width: 13px;
  height: 13px;
  box-shadow: 0 0 0 1px var(--border-strong);
  border-radius: 999px;
  position: relative;
}

.order-tracking li[data-status="out_for_delivery"] .order-tracking-marker {
  background: var(--info);
  box-shadow: 0 0 0 1px var(--info);
}

@supports (color: color-mix(in lab, red, red)) {
  .order-tracking li[data-status="out_for_delivery"] .order-tracking-marker {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--info) 50%, var(--border-strong));
  }
}

.order-tracking li[data-status="delivery_failed"] .order-tracking-marker {
  background: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .order-tracking li[data-status="delivery_failed"] .order-tracking-marker {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 50%, var(--border-strong));
  }
}

.order-tracking li[data-status="delivered"] .order-tracking-marker {
  background: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

@supports (color: color-mix(in lab, red, red)) {
  .order-tracking li[data-status="delivered"] .order-tracking-marker {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--success) 50%, var(--border-strong));
  }
}

.order-tracking li[data-status="out_for_delivery"] strong {
  color: var(--info);
}

.order-tracking li[data-status="delivery_failed"] strong {
  color: var(--danger);
}

.order-tracking li[data-status="delivered"] strong {
  color: var(--success);
}

.order-tracking li > div {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-right: 14px;
  display: flex;
}

.order-tracking li strong {
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.order-tracking li small {
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
}

.order-tracking li small.order-tracking-meta {
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  display: flex;
}

.order-tracking-meta span {
  overflow-wrap: anywhere;
  min-width: 0;
}

.receipt-morph-dialog {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  outline: none;
  flex-direction: column;
  width: min(900px, 100vw - 32px);
  max-height: min(900px, 100dvh - 32px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 24px 70px #00000038;
}

.receipt-morph-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 15px 16px 15px 20px;
  display: flex;
}

.receipt-morph-header > div:first-child {
  min-width: 0;
}

.receipt-morph-header h2 {
  margin-top: 1px;
  font-size: 18px;
  line-height: 24px;
}

.receipt-morph-header p {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

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

.receipt-morph-actions .icon-button {
  flex: none;
}

.receipt-morph-scroll {
  background: var(--surface-subtle);
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding: 24px;
  overflow: auto;
}

.receipt-morph-paper {
  min-height: 720px;
  box-shadow: 0 14px 34px #17171714;
}

.member-cell {
  align-items: center;
  gap: 9px;
  display: flex;
}

.member-cell span:last-child {
  flex-direction: column;
  display: flex;
}

.member-cell small {
  color: var(--muted);
}

.mono {
  font-family: var(--font-jetbrains-mono), "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.text-positive {
  color: var(--success);
}

.text-negative {
  color: var(--danger);
}

.text-muted {
  color: var(--muted);
}

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

.product-hero {
  grid-template-columns: 190px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 24px;
  padding: 20px;
  display: grid;
}

.product-image {
  aspect-ratio: 1;
  background: #ededed;
  border-radius: 8px;
  overflow: hidden;
}

.product-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.product-title h1 {
  font-size: 24px;
  line-height: 32px;
}

.product-title p {
  color: var(--muted);
}

.stock-number {
  text-align: right;
}

.stock-number strong {
  letter-spacing: -.025em;
  font-family: inherit;
  font-size: 34px;
  line-height: 40px;
  display: block;
}

.stock-number span {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.detail-grid {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
  display: grid;
  overflow: hidden;
}

.detail-grid > div {
  border-right: 1px solid var(--border);
  padding: 14px 16px;
}

.detail-grid > div:last-child {
  border-right: 0;
}

.detail-grid span {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  display: block;
}

.detail-grid strong {
  margin-top: 3px;
  font-size: 14px;
  display: block;
}

.inventory-actions {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  display: grid;
}

.action-choice {
  border: 1px solid var(--border);
  border-radius: 8px;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 12px;
  transition: border-color .14s, background-color .14s;
  display: grid;
}

.action-choice:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.action-choice span {
  flex-direction: column;
  display: flex;
}

.action-choice small {
  color: var(--muted);
}

.inventory-overview-section {
  margin-top: 20px;
}

.inventory-catalog {
  overflow: hidden;
}

.inventory-toolbar {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
}

.inventory-search {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  width: min(340px, 46%);
  height: 38px;
  color: var(--muted);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  display: flex;
}

.inventory-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.inventory-search input {
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
}

.inventory-search input::placeholder {
  color: var(--muted);
}

.native-select {
  min-width: 164px;
  height: 38px;
  color: var(--muted-strong);
  align-items: center;
  display: inline-flex;
  position: relative;
}

.native-select select {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  height: 100%;
  color: var(--foreground);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  border-radius: 8px;
  outline: 0;
  padding: 0 34px 0 11px;
  transition: border-color .14s, box-shadow .14s, background-color .14s;
}

.native-select select:hover {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
}

.native-select select:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.native-select > svg {
  pointer-events: none;
  color: var(--muted);
  position: absolute;
  right: 11px;
}

.inventory-list-head, .inventory-product-row {
  grid-template-columns: minmax(230px, 1.55fr) 82px 112px minmax(128px, .8fr) 94px 90px 18px;
  align-items: center;
  gap: 14px;
  display: grid;
}

.inventory-list-head {
  border-bottom: 1px solid var(--border);
  min-height: 40px;
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  padding: 0 16px;
}

.inventory-product-row {
  border-bottom: 1px solid var(--border);
  min-height: 70px;
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  padding: 10px 16px;
  transition: background-color .14s;
}

.inventory-product-row:last-child {
  border-bottom: 0;
}

.inventory-product-row:hover {
  background: var(--surface-subtle);
}

.inventory-product-row > svg {
  color: var(--muted);
  opacity: 0;
  transition: opacity .14s, transform .14s;
  transform: translateX(-3px);
}

.inventory-product-row:hover > svg {
  opacity: 1;
  transform: translateX(0);
}

.inventory-on-hand, .inventory-movement-cell, .inventory-last-movement {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.inventory-on-hand strong, .inventory-movement-cell strong, .inventory-last-movement strong {
  color: var(--foreground);
  font-family: inherit;
}

.inventory-on-hand small, .inventory-movement-cell small, .inventory-last-movement small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.inventory-product-cell {
  align-items: center;
  gap: 11px;
  min-width: 0;
  display: flex;
}

.inventory-product-cell > img, .inventory-product-placeholder {
  object-fit: cover;
  background: #ededed;
  border-radius: 8px;
  flex: none;
  width: 44px;
  height: 44px;
}

.inventory-product-placeholder {
  background: var(--surface-subtle);
  color: var(--muted);
  place-items: center;
  display: grid;
}

.inventory-product-cell > span:last-child {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.inventory-product-cell strong, .inventory-product-cell small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.inventory-product-cell strong {
  color: var(--foreground);
}

.inventory-product-cell small {
  color: var(--muted);
}

.inventory-empty {
  min-height: 180px;
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  display: flex;
}

.empty-state {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  padding: 40px 24px;
  display: flex;
}

.empty-state-illustration {
  object-fit: contain;
  filter: grayscale();
  width: 220px;
  height: 220px;
  margin-bottom: 4px;
}

[data-theme="dark"] .empty-state-illustration {
  opacity: .72;
  filter: grayscale() invert(.82);
}

.empty-state > strong {
  color: var(--foreground);
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
}

.empty-state > p {
  max-width: 410px;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin: 6px 0 20px;
}

.empty-state-compact {
  min-height: 300px;
  padding: 28px 20px;
}

.empty-state-compact .empty-state-illustration {
  width: 132px;
  height: 132px;
}

.empty-state-compact > strong {
  font-size: 18px;
  line-height: 26px;
}

.empty-state-compact > p {
  max-width: 340px;
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  margin-bottom: 16px;
}

.inventory-empty strong {
  color: var(--foreground);
}

.linked-record-empty {
  min-height: 110px;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 18px;
  display: flex;
}

.product-image-placeholder {
  background: var(--surface-subtle);
  width: 100%;
  height: 100%;
  color: var(--muted);
  place-items: center;
  display: grid;
}

.product-edit-dialog {
  width: min(100%, 680px);
}

.product-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-edit-grid .field:last-child {
  grid-column: 1 / -1;
}

.capture-layout {
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

.capture-preview {
  padding: 12px;
  position: sticky;
  top: 82px;
}

.capture-preview img {
  object-fit: cover;
  border-radius: 8px;
  width: 100%;
  max-height: 660px;
}

.capture-source-empty {
  border: 1px dashed var(--border-strong);
  min-height: 390px;
  color: var(--muted);
  text-align: center;
  border-radius: 8px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 40px;
  display: grid;
}

.capture-source-empty strong {
  color: var(--text);
  font-size: var(--text-body);
  font-weight: 500;
}

.capture-source-empty p {
  max-width: 310px;
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.capture-meta {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  display: flex;
}

.review-panel {
  padding: 20px;
}

.review-banner {
  background: var(--surface-subtle);
  color: var(--muted-strong);
  border-radius: 8px;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  display: flex;
}

.review-banner p {
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.extraction-warnings {
  gap: 6px;
  margin: -8px 0 18px;
  display: grid;
}

.extraction-warnings span {
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  align-items: flex-start;
  gap: 7px;
  display: flex;
}

.extraction-warnings svg {
  flex: none;
  margin-top: 2px;
}

.barcode-reader-host {
  opacity: 0;
  pointer-events: none;
  width: 320px;
  height: 240px;
  position: fixed;
  top: 0;
  left: -10000px;
  overflow: hidden;
}

.manual-capture-layout {
  max-width: 920px;
  display: block;
}

.manual-entry-intro {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.manual-entry-intro p {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  margin: 4px 0 0;
}

.identifier-field {
  align-items: stretch;
  display: flex;
}

.identifier-field input {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  min-width: 0;
}

.identifier-field button {
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--foreground);
  font: inherit;
  font-size: var(--text-supporting);
  cursor: pointer;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  flex: none;
  padding: 0 12px;
  font-weight: 500;
}

.identifier-field button:hover:not(:disabled) {
  background: var(--surface-elevated);
}

.identifier-field button:disabled {
  color: var(--muted);
  cursor: default;
}

.form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid;
}

.field-span-2 {
  grid-column: span 2;
}

.confidence {
  color: var(--muted-strong);
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  display: inline-flex;
}

.confidence.medium {
  color: var(--warning);
}

.review-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  position: sticky;
  bottom: 0;
}

.review-footer > div {
  gap: 8px;
  display: flex;
}

.sale-attribution {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(100%, 1040px);
  margin: 0 auto 12px;
  padding: 11px 12px;
  display: flex;
}

.sale-attribution-copy {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.sale-attribution-copy > span {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.sale-attribution-copy small, .sale-attribution-field small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.sale-attribution-field {
  align-items: center;
  gap: 10px;
  display: flex;
}

.sale-attribution-field select {
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 230px;
  min-height: 38px;
  color: var(--foreground);
  border-radius: 8px;
  padding: 7px 30px 7px 10px;
}

.sale-attribution-field select:disabled {
  opacity: .72;
  cursor: not-allowed;
}

.operational-draft-banner {
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  display: flex;
}

.operational-draft-banner > span:nth-child(2) {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.operational-draft-banner small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-supporting);
}

.sale-shell {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  width: min(100%, 1040px);
  margin: 0 auto;
  display: grid;
}

.sale-panel, .summary-panel {
  padding: 18px;
}

.customer-chip {
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  display: flex;
}

.customer-chip span:nth-child(2) {
  flex-direction: column;
  flex: 1;
  display: flex;
}

.customer-chip small {
  color: var(--muted);
}

.customer-add-trigger {
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  width: min(100%, 360px);
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  display: grid;
}

.customer-add-trigger:hover {
  background: var(--surface-subtle);
  border-style: solid;
}

.customer-add-trigger > span:nth-child(2) {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.customer-add-trigger small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.customer-add-trigger > svg {
  color: var(--muted);
}

.sale-customer-dialog {
  width: min(100%, 520px);
}

.customer-picker-search {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 11px;
  display: flex;
}

.customer-picker-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.sale-new-customer-trigger {
  margin-top: 12px;
}

.customer-picker-search > svg {
  color: var(--muted);
  flex: none;
}

.customer-picker-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  color: var(--foreground);
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
}

.customer-picker-results {
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 330px;
  margin-top: 12px;
  overflow-y: auto;
}

.customer-picker-results > button {
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-height: 62px;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  grid-template-columns: 34px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: grid;
}

.customer-picker-results > button:last-of-type {
  border-bottom: 0;
}

.customer-picker-results > button:hover {
  background: var(--surface-subtle);
}

.customer-picker-results > button > span:nth-child(2) {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.customer-picker-results > button small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.customer-picker-results > button > svg {
  color: var(--muted);
}

.customer-picker-empty {
  text-align: center;
  flex-direction: column;
  gap: 3px;
  padding: 24px 14px;
  display: flex;
}

.customer-picker-empty span {
  color: var(--muted);
  font-size: var(--text-supporting);
}

.sale-item {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  display: grid;
}

.sale-item-image {
  object-fit: cover;
  background: #ededed;
  border-radius: 8px;
  width: 48px;
  height: 48px;
}

.sale-item-placeholder {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  width: 48px;
  height: 48px;
  color: var(--muted);
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.sale-item-name {
  flex-direction: column;
  display: flex;
}

.sale-item-name small {
  color: var(--muted);
}

.quantity-control {
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  display: flex;
}

.quantity-control button {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  width: 28px;
  height: 28px;
}

.quantity-control button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.quantity-control > small {
  font-size: var(--text-micro);
  margin-left: 2px;
}

.sale-price {
  text-align: right;
  font-family: inherit;
}

.sale-order-section {
  margin-top: 24px;
}

.sale-order-section .section-header {
  align-items: center;
  margin-bottom: 10px;
}

.sale-add-item-trigger {
  width: 100%;
  max-width: none;
}

.sale-services-section {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 22px;
}

.sale-section-empty {
  color: var(--muted);
  font-size: var(--text-supporting);
  padding: 5px 0 11px;
}

.sale-service-item:first-of-type {
  border-top: 0;
}

.sale-item-end {
  align-items: center;
  gap: 10px;
  display: flex;
}

.sale-item-remove {
  width: 30px;
  height: 30px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.sale-item-remove:hover {
  background: var(--surface-subtle);
  color: var(--foreground);
}

.sale-product-dialog {
  width: min(100%, 640px);
}

.product-picker-notice {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--muted-strong);
  font-size: var(--text-micro);
  line-height: var(--leading-supporting);
  border-radius: 10px;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
}

.product-picker-notice svg {
  flex: none;
  margin-top: 1px;
}

.product-picker-results {
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 390px;
  margin-top: 12px;
  overflow-y: auto;
}

.product-picker-results > button {
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  width: 100%;
  min-height: 72px;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  grid-template-columns: 44px minmax(0, 1fr) minmax(104px, auto) 20px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  display: grid;
}

.product-picker-results > button:last-of-type {
  border-bottom: 0;
}

.product-picker-results > button:hover:not(:disabled) {
  background: var(--surface-subtle);
}

.product-picker-results > button:disabled {
  cursor: not-allowed;
}

.product-picker-results > button.is-unavailable {
  background: var(--surface-subtle);
  color: var(--muted);
}

.product-picker-results > button.is-unavailable .product-picker-image {
  filter: grayscale();
  opacity: .56;
}

.product-picker-results img, .product-picker-image {
  object-fit: cover;
  background: #ededed;
  border-radius: 8px;
  width: 44px;
  height: 44px;
}

.product-picker-details, .product-picker-meta {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.product-picker-details strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.product-picker-results small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.product-picker-meta {
  text-align: right;
  align-items: flex-end;
}

.product-picker-meta .out-of-stock {
  color: var(--muted-strong);
}

.table-heading-stack {
  white-space: normal;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
  display: inline-flex;
}

@media (max-width: 620px) {
  .operational-draft-banner {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .operational-draft-banner > span:nth-child(2) {
    flex-basis: calc(100% - 52px);
  }

  .operational-draft-banner .button {
    flex: auto;
  }

  .product-picker-results > button {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 10px;
  }

  .product-picker-results img, .product-picker-image {
    width: 40px;
    height: 40px;
  }

  .product-picker-meta {
    text-align: left;
    grid-column: 2;
    align-items: flex-start;
  }

  .product-picker-results > button > svg {
    grid-area: 1 / 3 / span 2;
  }
}

.summary-panel {
  height: fit-content;
  position: sticky;
  top: 82px;
}

.summary-rows {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  gap: 9px;
  margin: 16px 0;
  padding: 16px 0;
  display: grid;
}

.summary-row {
  color: var(--muted-strong);
  justify-content: space-between;
  display: flex;
}

.summary-total {
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 18px;
  display: flex;
}

.payment-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin: 10px 0 18px;
  display: grid;
}

.payment-grid button {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
  line-height: 1.25;
}

.payment-grid button.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
  color: var(--primary);
}

.full-width {
  width: 100%;
}

.sales-metrics {
  margin-bottom: 22px;
}

.analytics-metrics {
  margin-bottom: 18px;
}

.analytics-fulfillment-section {
  margin-top: 18px;
}

.analytics-fulfillment-section .section-header {
  margin-bottom: 10px;
}

.analytics-fulfillment-metrics {
  background: var(--surface);
}

.sales-workspace {
  display: block;
}

.sales-ledger-card {
  overflow: hidden;
}

.sales-ledger-toolbar {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
}

.sales-ledger-toolbar .inventory-search {
  width: min(330px, 44%);
}

.sales-ledger-filters {
  gap: 8px;
  display: flex;
}

.sales-ledger-filters .native-select {
  min-width: 142px;
}

.sales-ledger-head, .sales-ledger-row {
  grid-template-columns: 94px minmax(210px, 1fr) 112px 116px 16px;
  align-items: center;
  gap: 12px;
  display: grid;
}

.sales-ledger-head {
  border-bottom: 1px solid var(--border);
  min-height: 40px;
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  padding: 0 16px;
}

.sales-ledger-row {
  border: 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  min-height: 74px;
  color: var(--foreground);
  text-align: left;
  background: none;
  padding: 10px 16px;
  transition: background-color .14s;
}

.sales-ledger-row:last-child {
  border-bottom: 0;
}

.sales-ledger-row:hover, .sales-ledger-row.selected {
  background: var(--surface-subtle);
}

.sales-ledger-row.selected {
  box-shadow: inset 2px 0 0 var(--muted-strong);
}

.sales-ledger-row > svg {
  color: var(--muted);
}

.sales-ledger-total {
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  display: flex;
}

.sales-ledger-total small {
  min-height: var(--leading-micro);
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  white-space: nowrap;
}

.sales-ledger-total small s {
  -webkit-text-decoration-color: var(--muted);
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
}

.sales-ledger-total strong {
  white-space: nowrap;
}

.sales-ledger-id, .sales-ledger-customer > span {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.sales-ledger-id small, .sales-ledger-customer small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.sales-ledger-customer {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.sales-ledger-customer strong, .sales-ledger-customer small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.sales-ledger-empty {
  min-height: 190px;
  color: var(--muted);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  display: flex;
}

.sales-ledger-empty strong {
  color: var(--foreground);
}

.sales-ledger-list {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  max-height: min(62vh, 720px);
  overflow-y: auto;
}

.sales-ledger-pagination {
  border-top: 1px solid var(--border);
  min-height: 48px;
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  display: flex;
}

.sales-ledger-pagination > div {
  gap: 6px;
  display: flex;
}

.sales-ledger-pagination .button {
  min-height: 30px;
  padding: 0 10px;
}

.sale-record-panel {
  padding: 16px;
}

.sale-record-drawer {
  background: var(--surface);
  width: min(460px, 100vw - 16px);
  max-width: calc(100vw - 8px);
  box-shadow: -18px 0 54px #00000024;
}

.sale-record-drawer-backdrop {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #0a0a0a47;
}

.sale-record-drawer-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-height: 82px;
  padding: 18px 18px 16px;
  display: flex;
}

.sale-record-drawer-title {
  gap: 1px;
  min-width: 0;
  display: grid;
}

.sale-record-drawer-title > span, .sale-record-drawer-title p {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.sale-record-drawer-title h2 {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 1px 0;
  font-size: 19px;
  line-height: 27px;
  overflow: hidden;
}

.sale-record-drawer-controls {
  align-items: center;
  gap: 8px;
  display: flex;
}

.sale-record-drawer-controls .icon-button {
  flex: none;
}

.sale-record-drawer-body {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sale-record-drawer-body .sale-record-panel {
  min-height: 100%;
  padding: 4px 18px 20px;
}

.sale-record-drawer-body .sale-record-immutable {
  margin-top: 14px;
}

.sale-record-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.sale-record-head > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.sale-record-head > div > span, .sale-record-head small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.sale-record-head > div > strong {
  margin: 2px 0;
  font-size: 17px;
}

.sale-record-immutable {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--muted-strong);
  border-radius: 8px;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px;
  display: flex;
}

.sale-record-immutable > span {
  flex-direction: column;
  display: flex;
}

.sale-record-immutable small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.sale-record-details {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  display: grid;
}

.sale-record-details > div {
  border-bottom: 1px solid var(--border);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  display: flex;
}

.sale-record-details span {
  color: var(--muted);
}

.sale-record-details strong {
  text-align: right;
  max-width: 62%;
}

.sale-record-details .sale-record-net {
  color: var(--foreground);
  padding-top: 12px;
}

.sale-record-details .sale-record-net strong {
  font-size: 16px;
}

.sale-record-actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  display: grid;
}

.sale-record-links {
  justify-content: space-between;
  gap: 8px;
  margin: 8px -8px 0;
  display: flex;
}

.sale-record-links .button {
  min-height: 34px;
  padding: 0 8px;
}

.sale-adjustments {
  border-top: 1px solid var(--border);
  margin: 12px -16px -16px;
}

.sale-adjustments-title {
  align-items: center;
  gap: 8px;
  padding: 13px 16px 7px;
  display: flex;
}

.sale-adjustments > p {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  padding: 4px 16px 16px;
}

.sale-adjustment-row {
  border-top: 1px solid var(--border);
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 11px 16px;
  display: grid;
}

.sale-adjustment-row > span:nth-child(2) {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.sale-adjustment-row small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.sale-adjustment-row > strong {
  font-size: var(--text-supporting);
  color: var(--danger);
  padding-top: 3px;
}

.sale-adjustment-dialog {
  width: min(100%, 500px);
}

.sale-adjustment-dialog.item-return-dialog {
  width: min(100%, 640px);
  max-height: min(88vh, 760px);
  overflow-y: auto;
}

.sale-adjustment-dialog-head {
  align-items: flex-start;
  gap: 11px;
  display: flex;
}

.sale-adjustment-dialog-head p {
  margin-top: 2px;
}

.return-line-picker {
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  overflow: hidden;
}

.return-line-picker-head {
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  padding: 9px 12px;
  display: grid;
}

.return-line-picker-head span:last-child {
  text-align: right;
}

.return-line {
  border-top: 1px solid var(--border);
  background: var(--surface);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  padding: 12px;
  display: grid;
}

.return-line.selected {
  background: var(--surface-subtle);
}

.return-line-main {
  cursor: pointer;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.return-line-main input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex: none;
}

.return-line-main > span {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.return-line-main strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.return-line-main small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.return-quantity-control {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 8px;
  grid-template-columns: 30px 28px 30px;
  align-self: center;
  align-items: center;
  display: grid;
  overflow: hidden;
}

.return-quantity-control button {
  width: 30px;
  height: 30px;
  color: var(--foreground);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

.return-quantity-control button:hover:not(:disabled) {
  background: var(--surface-hover);
}

.return-quantity-control button:disabled {
  color: var(--muted);
  cursor: default;
}

.return-quantity-control span {
  text-align: center;
  font-size: var(--text-supporting);
  font-weight: 500;
}

.return-outcome {
  border-top: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 236px;
  align-items: center;
  gap: 12px;
  padding: 9px 0 0 26px;
  display: grid;
}

.return-outcome .native-select {
  width: 100%;
}

.return-lines-empty {
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 2px;
  padding: 18px 12px;
  display: flex;
}

.return-lines-empty span {
  color: var(--muted);
  font-size: var(--text-supporting);
}

.return-refund-summary {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 10px;
  padding: 11px 12px;
  display: grid;
}

.return-refund-summary > div {
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 0;
  display: flex;
}

.return-refund-summary .return-refund-total {
  border-top: 1px solid var(--border);
  color: var(--foreground);
  margin-top: 5px;
  padding-top: 10px;
}

.return-refund-total strong {
  font-size: 17px;
}

.return-refund-summary > small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  margin-top: 5px;
}

.manage-return-reasons-trigger {
  color: var(--muted-strong);
  font: inherit;
  font-size: var(--text-supporting);
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  justify-self: start;
  margin-top: -7px;
  padding: 0;
  font-weight: 500;
  text-decoration: underline;
}

.return-inspection-note {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  border-radius: 8px;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 11px;
  display: flex;
}

.return-reasons-layer {
  z-index: 70;
}

.return-reasons-dialog {
  width: min(100%, 480px);
}

.return-reason-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 18px;
  display: grid;
  overflow: hidden;
}

.return-reason-list > div {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 8px 7px 12px;
  display: flex;
}

.return-reason-list > div:last-child {
  border-bottom: 0;
}

.return-reason-list button {
  width: 30px;
  height: 30px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.return-reason-list button:hover:not(:disabled) {
  background: var(--surface-subtle);
  color: var(--danger);
}

.return-reason-list button:disabled {
  opacity: .35;
  cursor: default;
}

.return-reason-add {
  gap: 6px;
  margin-top: 16px;
  display: grid;
}

.return-reason-add > label {
  color: var(--muted-strong);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  font-weight: 500;
}

.return-reason-add > div {
  gap: 8px;
  display: flex;
}

.return-reason-add input {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  min-width: 0;
  min-height: 40px;
  color: var(--foreground);
  border-radius: 8px;
  outline: none;
  flex: 1;
  padding: 9px 11px;
}

.service-manage-list > div {
  grid-template-columns: minmax(0, 1fr) 92px auto;
  gap: 8px;
  display: grid;
}

.service-manage-list input {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  min-height: 34px;
  color: var(--foreground);
  font: inherit;
  border-radius: 6px;
  padding: 6px 9px;
}

.return-reason-add .service-price-input {
  flex: 0 0 92px;
}

.receipt-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 18px;
  display: grid;
}

.receipt-printer {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 12px;
  width: min(100%, 650px);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 12px 32px #1717170f;
}

.receipt-printer-head {
  min-height: 58px;
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  display: flex;
}

.receipt-printer-head > span:first-child {
  align-items: center;
  gap: 9px;
  display: flex;
}

.receipt-printer-head strong {
  color: var(--foreground);
  font-size: var(--text-body);
}

.receipt-printer-head > span:first-child > span {
  background: var(--surface);
  color: var(--muted-strong);
  border-radius: 999px;
  padding: 3px 7px;
}

.receipt-printer-slot {
  background: var(--border-strong);
  border-radius: 999px;
  width: calc(100% - 28px);
  height: 8px;
  margin: 0 auto;
  box-shadow: inset 0 2px 4px #17171724;
}

.receipt-printer-canvas {
  min-height: 760px;
  margin-top: -2px;
  position: relative;
  overflow: hidden;
}

.receipt-ready-state {
  z-index: 2;
  text-align: center;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 220px 28px 28px;
  display: flex;
  position: absolute;
  inset: 0;
}

.receipt-ready-state .icon-tile {
  margin-bottom: 14px;
}

.receipt-ready-state > strong {
  font-size: 18px;
}

.receipt-ready-state > p {
  color: var(--muted);
  margin-top: 4px;
}

.receipt-ready-state .button {
  margin-top: 20px;
}

.receipt-ready-state > small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  margin-top: 11px;
}

.receipt-paper-reveal {
  transform-origin: top;
  will-change: clip-path;
  width: calc(100% - 24px);
  margin: 0 auto 12px;
  transition: clip-path 95ms linear, opacity .16s;
  transform: translateY(0);
}

.receipt-paper {
  border-top: 0;
  border-radius: 0 0 10px 10px;
  width: 100%;
  min-height: 760px;
  margin: 0;
  box-shadow: 0 14px 28px #17171714;
}

.receipt-printer-foot {
  border-top: 1px solid var(--border);
  min-height: 48px;
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: flex;
}

.receipt-printer-complete .receipt-printer-foot {
  color: var(--muted-strong);
}

.receipt-printing-dot {
  background: var(--primary);
  border-radius: 999px;
  width: 6px;
  height: 6px;
  animation: .76s ease-in-out infinite alternate receipt-printing-pulse;
}

@keyframes receipt-printing-pulse {
  from {
    opacity: .35;
    transform: scale(.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.receipt-page {
  color: #171717;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 10px;
  width: min(100%, 620px);
  min-height: 760px;
  margin: 0 auto;
  padding: 42px 48px;
  box-shadow: 0 18px 45px #17171714;
}

.receipt-brand {
  justify-content: center;
  align-items: center;
  gap: 12px;
  display: flex;
}

.receipt-brand-mark {
  color: #fff;
  background: #171717;
  border-radius: 8px;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 20px;
  font-weight: 500;
  display: grid;
}

.receipt-brand span {
  flex-direction: column;
  display: flex;
}

.receipt-brand strong {
  letter-spacing: .12em;
}

.receipt-brand small {
  color: #737373;
}

.receipt-heading {
  border-bottom: 1px solid #dedede;
  justify-content: space-between;
  margin: 34px 0 22px;
  padding-bottom: 18px;
  display: flex;
}

.receipt-heading h1 {
  font-size: 22px;
}

.receipt-heading span {
  text-align: right;
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  color: #737373;
}

.receipt-customer {
  margin-bottom: 26px;
}

.receipt-customer span {
  color: #737373;
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  display: block;
}

.receipt-attribution {
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  border-top: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
  justify-content: space-between;
  gap: 16px;
  margin: -12px 0 24px;
  padding: 10px 0;
  display: flex;
}

.receipt-attribution span {
  color: #737373;
}

.receipt-table th, .receipt-table td {
  color: #171717;
  padding-left: 0;
  padding-right: 0;
}

.receipt-table th {
  color: #737373;
}

.receipt-table th:last-child, .receipt-table td:last-child {
  text-align: right;
}

.receipt-totals {
  gap: 8px;
  width: 260px;
  margin: 18px 0 30px auto;
  display: grid;
}

.receipt-totals div {
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  justify-content: space-between;
  display: flex;
}

.receipt-totals .receipt-payment-method {
  color: #525252;
  border-top: 1px solid #dedede;
  margin-top: 4px;
  padding-top: 12px;
}

.receipt-totals .total {
  border-top: 1px solid #dedede;
  padding-top: 10px;
  font-size: 16px;
}

.receipt-return-policy {
  color: #525252;
  font-size: var(--text-supporting);
  border-top: 1px solid #dedede;
  margin-top: 28px;
  padding: 16px 0 0;
  line-height: 1.55;
}

.receipt-return-policy strong {
  color: #171717;
  margin-bottom: 5px;
  font-weight: 500;
  display: block;
}

.receipt-return-policy p {
  max-width: 58ch;
}

.receipt-footer {
  text-align: center;
  color: #737373;
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  border-top: 1px solid #dedede;
  margin-top: 64px;
  padding-top: 18px;
}

.receipt-return-policy + .receipt-footer {
  margin-top: 28px;
}

.barcode {
  background: repeating-linear-gradient(90deg, #171717 0 2px, #0000 2px 4px, #171717 4px 5px, #0000 5px 8px);
  width: 190px;
  height: 42px;
  margin: 14px auto 8px;
}

.receipt-actions {
  gap: 10px;
  padding: 16px;
  display: grid;
}

.receipt-actions .button {
  width: 100%;
}

.receipt-generation-setting {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
}

.receipt-generation-setting > span {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.receipt-generation-setting small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.receipt-generation-setting .settings-switch {
  justify-self: end;
}

.receipt-actions-divider {
  background: var(--border);
  height: 1px;
  margin: 6px 0;
}

.delivery-state {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 8px;
  padding: 12px;
}

.delivery-state p {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.receipt-logo-actions {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  display: flex;
}

.customer-hero {
  align-items: center;
  gap: 14px;
  padding: 20px;
  display: flex;
}

.customer-hero-copy {
  flex: 1;
}

.customer-hero-copy h1 {
  font-size: 22px;
}

.customer-hero-copy p {
  color: var(--muted);
}

.customer-metrics {
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(4, 1fr);
  display: grid;
}

.customer-metrics > div {
  border-right: 1px solid var(--border);
  padding: 14px 20px;
}

.customer-metrics > div:last-child {
  border-right: 0;
}

.customer-metrics span {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  display: block;
}

.customer-metrics strong {
  margin-top: 3px;
  font-size: 17px;
  display: block;
}

.tabs {
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  gap: 20px;
  margin: 18px 0 0;
  display: flex;
  overflow-x: auto;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  height: 40px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  flex: none;
  padding: 0 2px;
  transition: color .14s, border-color .14s;
}

.tabs button:hover {
  color: var(--muted-strong);
}

.tabs button.active {
  color: var(--foreground);
  border-bottom-color: var(--primary);
}

.tabs button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
  border-radius: 8px 8px 0 0;
}

.customer-tab-panel {
  outline: none;
  min-height: 280px;
  animation: .16s ease-out customer-panel-in;
}

.customer-tab-panel:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

.customer-tab-section {
  margin-top: 16px;
}

.customer-tab-section > .section-header {
  min-height: 44px;
  margin-bottom: 10px;
}

.customer-timeline-full .timeline-row {
  grid-template-columns: 78px 36px minmax(0, 1fr) auto;
}

.customer-record-list {
  overflow: hidden;
}

.customer-record-row, .customer-receipt-row {
  border-bottom: 1px solid var(--border);
  min-height: 76px;
  color: var(--foreground);
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  transition: background-color .14s;
  display: grid;
}

.customer-record-row {
  grid-template-columns: 36px 118px minmax(0, 1fr) 112px 16px;
}

.customer-receipt-row {
  grid-template-columns: 36px minmax(0, 1fr) auto 112px 92px;
}

.customer-record-row:last-child, .customer-receipt-row:last-child {
  border-bottom: 0;
}

.customer-record-row:hover, .customer-receipt-row:hover {
  background: var(--surface-subtle);
}

.customer-record-date, .customer-record-copy {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.customer-record-date small, .customer-record-copy small {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.customer-record-date strong, .customer-record-copy strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.customer-record-amount {
  font-variant-numeric: tabular-nums;
  justify-self: end;
}

.customer-record-row > svg {
  color: var(--muted);
}

.customer-record-action {
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  white-space: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.customer-note-history {
  overflow: hidden;
}

.customer-note-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 88px;
  padding: 16px;
  display: grid;
}

.customer-note-row:last-child {
  border-bottom: 0;
}

.customer-note-row p {
  max-width: 72ch;
  color: var(--muted-strong);
  text-wrap: pretty;
}

.customer-note-row small {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  margin-top: 6px;
  display: block;
}

@keyframes customer-panel-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 16px;
  margin-top: 16px;
  display: grid;
}

.note-card {
  padding: 16px;
}

.note-card p {
  color: var(--muted-strong);
}

.note-card small {
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

.purchase-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  display: grid;
}

.purchase-row:last-child {
  border-bottom: 0;
}

.purchase-row span {
  flex-direction: column;
  display: flex;
}

.purchase-row small {
  color: var(--muted);
}

.customer-directory-section {
  margin-top: 20px;
}

.customer-directory {
  overflow: hidden;
}

.customer-list-head, .customer-directory-row {
  grid-template-columns: minmax(220px, 1.7fr) 90px 64px 112px 100px minmax(120px, .9fr) 18px;
  align-items: center;
  gap: 14px;
  display: grid;
}

.customer-list-head {
  border-bottom: 1px solid var(--border);
  min-height: 40px;
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  padding: 0 16px;
}

.customer-directory-row {
  border-bottom: 1px solid var(--border);
  min-height: 70px;
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  padding: 10px 16px;
  transition: background-color .14s;
}

.customer-directory-row:last-child {
  border-bottom: 0;
}

.customer-directory-row:hover {
  background: var(--surface-subtle);
}

.customer-directory-row > strong {
  color: var(--foreground);
}

.customer-directory-row > svg {
  color: var(--muted);
  opacity: 0;
  transition: opacity .14s, transform .14s;
  transform: translateX(-3px);
}

.customer-directory-row:hover > svg {
  opacity: 1;
  transform: translateX(0);
}

.customer-directory-name {
  align-items: center;
  gap: 11px;
  min-width: 0;
  display: flex;
}

.customer-directory-name > span:last-child {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.customer-directory-name strong, .customer-directory-name small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.customer-directory-name strong {
  color: var(--foreground);
}

.customer-directory-name small {
  color: var(--muted);
}

.customer-import-dialog {
  width: min(100%, 520px);
}

.import-drop {
  border: 1px dashed var(--border-strong);
  background: var(--surface-subtle);
  text-align: center;
  cursor: pointer;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 144px;
  margin-top: 18px;
  padding: 20px;
  transition: border-color .14s, background-color .14s;
  display: flex;
}

.import-drop:hover {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.import-drop > span:last-child {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.import-guidance {
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
  padding: 12px;
  display: flex;
}

.import-guidance > span, .import-guidance small {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.import-guidance small {
  border-top: 1px solid var(--border);
  margin-top: 5px;
  padding-top: 8px;
}

.dialog-backdrop {
  z-index: 60;
  background: #0a0a0a7a;
  place-items: center;
  padding: 16px;
  display: grid;
  position: fixed;
  inset: 0;
}

.dialog {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  width: min(100%, 460px);
  box-shadow: var(--shadow-float);
  border-radius: 12px;
  padding: 20px;
}

.dialog h2 {
  font-size: 18px;
}

.dialog p {
  color: var(--muted);
  margin-top: 4px;
}

.dialog-form {
  gap: 14px;
  margin-top: 18px;
  display: grid;
}

.dialog-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  display: flex;
}

.alert-dialog-backdrop {
  z-index: 70;
  opacity: 1;
  background: #0a0a0a8f;
  transition: opacity .16s;
  position: fixed;
  inset: 0;
}

.alert-dialog-viewport {
  z-index: 71;
  place-items: center;
  padding: 16px;
  display: grid;
  position: fixed;
  inset: 0;
}

.alert-dialog-content {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  width: min(100%, 440px);
  box-shadow: var(--shadow-float);
  transform-origin: center;
  transition: opacity .17s ease, transform .19s var(--ease-out);
  border-radius: 12px;
  padding: 20px;
  transform: scale(1)translateY(0);
}

.alert-dialog-backdrop[data-starting-style], .alert-dialog-backdrop[data-ending-style] {
  opacity: 0;
}

.alert-dialog-content[data-starting-style], .alert-dialog-content[data-ending-style] {
  opacity: 0;
  transform: scale(.985)translateY(4px);
}

.alert-dialog-header {
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  display: grid;
}

.alert-dialog-media {
  border: 1px solid var(--danger);
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .alert-dialog-media {
    border: 1px solid color-mix(in srgb, var(--danger) 18%, var(--border));
  }
}

.alert-dialog-media {
  background: var(--danger);
  border-radius: 10px;
}

@supports (color: color-mix(in lab, red, red)) {
  .alert-dialog-media {
    background: color-mix(in srgb, var(--danger) 9%, transparent);
  }
}

.alert-dialog-media {
  color: var(--danger);
}

.alert-dialog-title {
  letter-spacing: -.015em;
  font-size: 17px;
  line-height: 24px;
}

.alert-dialog-description {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  text-wrap: pretty;
  margin-top: 4px;
}

.alert-dialog-footer {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  display: flex;
}

.sale-submit-dialog {
  width: min(100%, 500px);
  padding: 24px;
}

.sale-submit-dialog .alert-dialog-header {
  gap: 14px;
}

.sale-submit-dialog .alert-dialog-title {
  font-size: 18px;
  line-height: 25px;
}

.sale-submit-dialog .alert-dialog-description {
  margin-top: 6px;
  line-height: 20px;
}

.sale-submit-dialog .sale-record-details {
  margin-top: 22px;
}

.sale-submit-dialog .sale-record-details > div {
  align-items: center;
  min-height: 46px;
  padding: 11px 2px;
}

.sale-submit-dialog .sale-record-details .sale-record-net {
  min-height: 52px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.sale-submit-dialog .alert-dialog-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 18px;
}

.sale-submit-dialog .alert-dialog-footer .button {
  min-height: 40px;
}

.member-remove-trigger {
  color: var(--muted);
}

.member-remove-trigger:hover {
  border-color: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .member-remove-trigger:hover {
    border-color: color-mix(in srgb, var(--danger) 22%, var(--border));
  }
}

.member-remove-trigger:hover {
  background: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .member-remove-trigger:hover {
    background: color-mix(in srgb, var(--danger) 8%, transparent);
  }
}

.member-remove-trigger:hover {
  color: var(--danger);
}

.protected-member {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.analytics-period-trigger {
  justify-content: space-between;
  min-width: 138px;
}

.analytics-period-trigger svg {
  color: var(--muted);
  transition: transform .18s var(--ease-out);
}

.analytics-period-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.analytics-period-menu {
  background: var(--surface-elevated);
  width: 196px;
  color: var(--foreground);
  padding: 6px;
}

.analytics-period-option {
  width: 100%;
  min-height: 38px;
  color: var(--muted-strong);
  text-align: left;
  transition: background-color .13s ease, color .13s ease, transform .13s var(--ease-out);
  background: none;
  border: 0;
  border-radius: 8px;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  display: grid;
}

.analytics-period-option:hover, .analytics-period-option:focus-visible {
  background: var(--surface-subtle);
  color: var(--foreground);
  outline: 0;
}

.analytics-period-option:active {
  transform: scale(.98);
}

.analytics-period-option svg {
  color: var(--primary);
}

.pulse-motion-table {
  border-color: var(--border);
  background: var(--surface);
  border-radius: 10px;
}

.motion-table-card > .pulse-motion-table {
  border: 0;
  border-radius: 0;
}

.pulse-motion-table > div {
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.pulse-motion-table thead th {
  background: var(--surface-subtle);
}

.pulse-motion-table tbody tr[data-active="true"] {
  box-shadow: inset 2px 0 0 var(--muted-strong);
}

.pulse-motion-table td {
  font-variant-numeric: tabular-nums;
}

.motion-table-primary {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.motion-table-primary > span:last-child {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.motion-table-primary strong, .motion-table-primary small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.motion-table-primary small, .motion-table-secondary {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.motion-table-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 500;
}

.motion-table-number {
  text-align: right;
  justify-content: flex-end;
}

.analytics-kpi-grid {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  display: grid;
  overflow: hidden;
}

.analytics-kpi {
  border-right: 1px solid var(--border);
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  padding: 18px;
  transition: background-color .14s;
  display: flex;
}

.analytics-kpi:last-child {
  border-right: 0;
}

.analytics-kpi:hover {
  background: var(--surface-subtle);
}

.analytics-kpi > span {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.analytics-kpi > strong {
  letter-spacing: -.025em;
  margin-top: 4px;
  font-size: 24px;
  line-height: 32px;
}

.analytics-kpi > small {
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  display: flex;
}

.analytics-kpi > small.positive {
  color: var(--muted-strong);
}

.analytics-kpi > small.positive svg {
  color: var(--success);
}

.analytics-kpi > small.negative {
  color: var(--danger);
}

.analytics-kpi > small em {
  color: var(--muted);
  font-style: normal;
}

.analytics-insight {
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  display: flex;
}

.analytics-insight > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.analytics-insight p {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.analytics-insight .evidence-links {
  flex: none;
  margin-top: 0;
}

.analytics-primary-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
  gap: 16px;
  margin-top: 16px;
  display: grid;
}

.analytics-secondary-grid {
  grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr);
  gap: 16px;
  margin-top: 16px;
  display: grid;
}

.analytics-chart-card, .analytics-mix-card, .category-performance, .top-products-card {
  padding: 18px;
  overflow: hidden;
}

.analytics-card-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-height: 56px;
  display: flex;
}

.analytics-card-head > div {
  flex-direction: column;
  display: flex;
}

.analytics-card-head span {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
}

.analytics-card-head strong {
  font-size: 20px;
  line-height: 28px;
}

.analytics-card-head small {
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  align-items: center;
  gap: 4px;
  display: flex;
}

.analytics-card-head small svg {
  color: var(--success);
}

.chart-metric-tabs {
  border: 1px solid var(--border);
  border-radius: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  display: grid;
  overflow: hidden;
}

.chart-metric-tabs button {
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  transition: background-color .14s, color .14s;
  display: flex;
}

.chart-metric-tabs button:last-child {
  border-right: 0;
}

.chart-metric-tabs button:hover {
  background: var(--surface-subtle);
}

.chart-metric-tabs button.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.chart-metric-tabs span {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.chart-metric-tabs strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}

.revenue-chart-wrap {
  outline: none;
  height: 260px;
  margin: 12px -6px 0;
}

.revenue-chart-wrap .recharts-wrapper, .revenue-chart-wrap .recharts-surface {
  outline: none;
}

.revenue-chart-wrap .recharts-curve.recharts-area-curve {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.analytics-chart-tooltip {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  min-width: 116px;
  box-shadow: var(--shadow-float);
  color: var(--foreground);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  border-radius: 8px;
  padding: 9px 10px;
}

.analytics-chart-tooltip > span {
  color: var(--muted);
  margin-bottom: 5px;
  display: block;
}

.analytics-chart-tooltip > div {
  align-items: center;
  gap: 7px;
  display: flex;
}

.analytics-chart-tooltip i {
  background: var(--primary);
  border-radius: 999px;
  flex: none;
  width: 7px;
  height: 7px;
}

.analytics-chart-tooltip strong {
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  font-variant-numeric: tabular-nums;
}

.analytics-card-footer {
  border-top: 1px solid var(--border);
  min-height: 38px;
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  display: flex;
}

.analytics-card-footer a {
  color: var(--muted-strong);
  align-items: center;
  gap: 5px;
  font-weight: 500;
  display: inline-flex;
}

.customer-mix-visual {
  place-items: center;
  min-height: 220px;
  display: grid;
}

.mix-ring {
  --returning-rate: 47.5%;
  background: conic-gradient(var(--primary) 0 var(--returning-rate), var(--border) var(--returning-rate) 100%);
  border-radius: 999px;
  place-items: center;
  width: 164px;
  height: 164px;
  display: grid;
  position: relative;
}

.mix-ring:after {
  content: "";
  background: var(--surface);
  border-radius: 999px;
  width: 116px;
  height: 116px;
  position: absolute;
}

.mix-ring > span {
  z-index: 1;
  flex-direction: column;
  align-items: center;
  display: flex;
  position: relative;
}

.mix-ring strong {
  font-size: 24px;
  line-height: 32px;
}

.mix-ring small {
  color: var(--muted);
}

.mix-legend {
  gap: 8px;
  margin-bottom: 18px;
  display: grid;
}

.mix-legend > div {
  font-size: var(--text-supporting);
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  display: grid;
}

.legend-dot {
  border-radius: 999px;
  width: 8px;
  height: 8px;
}

.legend-dot.brand {
  background: var(--primary);
}

.legend-dot.neutral {
  background: var(--border-strong);
}

.delivery-operations-card {
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 20px;
  display: grid;
}

.delivery-rate-visual {
  justify-items: center;
  gap: 10px;
  display: grid;
}

.delivery-rate-ring {
  width: 164px;
  height: 164px;
}

.delivery-rate-visual > span {
  text-align: center;
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.delivery-rate-visual small {
  color: var(--muted);
  font-size: var(--text-supporting);
}

.delivery-journey-card {
  border-left: 1px solid var(--border);
  gap: 14px;
  min-width: 0;
  padding-left: 24px;
  display: grid;
}

.delivery-journey-label small {
  color: var(--muted);
  font-size: var(--text-supporting);
  margin-top: 2px;
  display: block;
}

.delivery-journey-chart-wrap {
  height: 40px;
}

.delivery-attention-stat {
  border-top: 1px solid var(--border);
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  display: flex;
}

.delivery-attention-stat small {
  color: var(--muted);
  font-size: var(--text-supporting);
  margin-top: 2px;
  display: block;
}

.category-list {
  gap: 14px;
  margin-top: 18px;
  display: grid;
}

.category-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 12px;
  display: grid;
}

.category-row > div:first-child {
  font-size: var(--text-supporting);
  grid-column: span 2;
  justify-content: space-between;
  gap: 12px;
  display: flex;
}

.category-track {
  background: var(--surface-subtle);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.category-track span {
  background: var(--primary);
  border-radius: 999px;
  height: 100%;
  display: block;
}

.category-row > small {
  color: var(--muted);
  font-size: var(--text-micro);
}

.top-products-list {
  margin: 14px -18px -18px;
}

.top-products-head, .top-product-row {
  grid-template-columns: minmax(160px, 1fr) 70px 120px;
  align-items: center;
  gap: 14px;
  display: grid;
}

.top-products-head {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 38px;
  color: var(--muted);
  font-size: var(--text-micro);
  padding: 0 18px;
}

.top-products-head button {
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  transition: color .14s;
}

.top-products-head button:hover {
  color: var(--muted-strong);
}

.top-products-head button.active {
  color: var(--primary);
  font-weight: 600;
}

.top-product-row {
  border-bottom: 1px solid var(--border);
  min-height: 58px;
  font-size: var(--text-supporting);
  padding: 8px 18px;
  transition: background-color .14s;
}

.top-product-row:last-child {
  border-bottom: 0;
}

.top-product-row:hover {
  background: var(--surface-subtle);
}

.top-product-row > span:first-child {
  align-items: center;
  gap: 10px;
  display: flex;
}

.top-product-row em {
  background: var(--surface-subtle);
  width: 22px;
  height: 22px;
  color: var(--muted);
  font-size: var(--text-micro);
  border-radius: 8px;
  place-items: center;
  font-style: normal;
  display: grid;
}

.top-product-row > span:nth-child(2), .top-product-row > strong:last-child {
  text-align: right;
}

.ask-pulse-scrim {
  z-index: 45;
  -webkit-backdrop-filter: blur(.5px);
  backdrop-filter: blur(.5px);
  background: #0a0a0a2e;
  border: 0;
  animation: .16s ease-out ask-scrim-enter;
  position: fixed;
  inset: 0;
}

.ask-pulse-panel {
  z-index: 50;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  width: min(420px, 100vw - 36px);
  height: min(600px, 100dvh - 96px);
  box-shadow: var(--shadow-float);
  transform-origin: 100% 100%;
  animation: ask-panel-enter .22s var(--ease-out);
  border-radius: 12px;
  flex-direction: column;
  display: flex;
  position: fixed;
  bottom: 18px;
  right: 18px;
  overflow: hidden;
}

@keyframes ask-scrim-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ask-panel-enter {
  from {
    opacity: 0;
    transform: translateY(28px)scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.ask-pulse-header {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 12px 10px 14px;
  display: grid;
}

.ask-pulse-header > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.ask-pulse-header > div > span {
  align-items: center;
  gap: 8px;
  display: flex;
}

.ask-pulse-header small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  overflow: hidden;
}

.pulse-message-scroller {
  flex: 1;
  min-height: 0;
  position: relative;
}

.pulse-message-viewport {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  height: 100%;
  overflow-y: auto;
}

.pulse-message-content {
  flex-direction: column;
  gap: 22px;
  min-height: 100%;
  padding: 20px 18px 28px;
  display: flex;
}

.ask-scroll-button {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  width: 32px;
  height: 32px;
  color: var(--muted-strong);
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s var(--ease-out), transform .16s var(--ease-out);
  border-radius: 8px;
  place-items: center;
  display: grid;
  position: absolute;
  bottom: 10px;
  right: 16px;
  transform: translateY(4px)scale(.96);
  box-shadow: 0 3px 10px #1717171a;
}

.ask-scroll-button[data-active="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0)scale(1);
}

.ask-empty-state {
  text-align: center;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  min-height: 238px;
  padding: 28px 24px 20px;
  display: flex;
}

.ask-empty-icon {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  width: 46px;
  height: 46px;
  color: var(--muted-strong);
  border-radius: 12px;
  place-items: center;
  margin-bottom: 18px;
  display: grid;
}

.ask-empty-state h2 {
  letter-spacing: -.02em;
  font-size: 20px;
  line-height: 28px;
}

.ask-empty-state p {
  max-width: 31ch;
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  text-wrap: pretty;
  margin-top: 7px;
}

.pulse-message {
  flex-direction: column;
  display: flex;
}

.pulse-message.user {
  background: var(--surface-subtle);
  border: 0;
  border-radius: 12px;
  align-self: flex-end;
  width: min(82%, 326px);
  padding: 11px 14px;
}

@supports (color: color-mix(in lab, red, red)) {
  .pulse-message.user {
    background: color-mix(in srgb, var(--surface-subtle) 82%, var(--border));
  }
}

.pulse-message.user {
  color: var(--foreground);
}

.pulse-message.assistant {
  background: none;
  border: 0;
  align-self: stretch;
  gap: 7px;
  width: 100%;
  padding: 0 4px;
}

.pulse-message-role {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  align-items: center;
  gap: 6px;
  font-weight: 500;
  display: flex;
}

.pulse-message-mark {
  background: var(--surface-subtle);
  width: 20px;
  height: 20px;
  color: var(--muted-strong);
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.pulse-message p {
  color: var(--foreground);
  font-size: var(--text-supporting);
  text-wrap: pretty;
  line-height: 1.62;
}

.pulse-message.assistant p {
  max-width: 40ch;
}

.streaming-caret {
  vertical-align: -.12em;
  background: var(--muted-strong);
  width: 1.5px;
  height: 1em;
  margin-left: 2px;
  animation: .76s step-end infinite pulse-caret;
  display: inline-block;
}

@keyframes pulse-caret {
  0%, 48% {
    opacity: 1;
  }

  49%, 100% {
    opacity: 0;
  }
}

.pulse-message-evidence {
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 5px;
  display: flex;
}

.pulse-message-evidence a {
  color: var(--muted-strong);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  background: none;
  border: 0;
  align-items: center;
  gap: 3px;
  padding: 0;
  font-weight: 500;
  display: inline-flex;
}

.pulse-message-evidence a:hover {
  color: var(--foreground);
}

.ask-composer {
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 1px var(--border);
  border: 1px solid #0000;
  border-radius: 10px;
  align-items: flex-end;
  gap: 7px;
  margin: 0 12px;
  padding: 8px;
  display: flex;
}

.ask-composer:focus-within {
  border-color: var(--border-strong);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.ask-composer-entry {
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  display: flex;
}

.ask-composer textarea {
  resize: none;
  width: 100%;
  max-height: 112px;
  color: var(--foreground);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  background: none;
  border: 0;
  outline: 0;
  padding: 3px 2px;
}

.ask-composer .button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
}

.ask-mic-button {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 32px;
  min-width: 32px;
  height: 32px;
  color: var(--muted-strong);
  transition: color .14s ease, background-color .14s ease, border-color .14s ease, transform .14s var(--ease-out);
  border-radius: 999px;
  align-self: flex-end;
  place-items: center;
  margin-bottom: 3px;
  display: grid;
}

.ask-mic-button:hover {
  border-color: var(--border-strong);
  color: var(--foreground);
}

.ask-mic-button:active {
  transform: scale(.96);
}

.ask-mic-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.ask-mic-button[aria-pressed="true"] {
  border-color: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .ask-mic-button[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
  }
}

.ask-mic-button[aria-pressed="true"] {
  background: var(--danger);
}

@supports (color: color-mix(in lab, red, red)) {
  .ask-mic-button[aria-pressed="true"] {
    background: color-mix(in srgb, var(--danger) 10%, var(--surface));
  }
}

.ask-mic-button[aria-pressed="true"] {
  color: var(--danger);
}

.ask-listening-status {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  padding: 1px 2px 2px;
  font-size: 11px;
  line-height: 16px;
  display: flex;
}

.ask-listening-status i {
  background: var(--danger);
  border-radius: 999px;
  width: 6px;
  height: 6px;
  animation: 1.2s ease-in-out infinite listening-indicator;
}

@keyframes listening-indicator {
  0%, 100% {
    opacity: .35;
    transform: scale(.86);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.ask-pulse-footnote {
  color: var(--muted);
  text-align: center;
  padding: 7px 14px 11px;
  font-size: 11px;
  line-height: 16px;
}

.service-picker {
  gap: 8px;
  margin-top: 16px;
  display: grid;
}

.service-picker label {
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
}

.service-picker label:hover {
  background: var(--surface-subtle);
}

.service-picker label > span {
  gap: 2px;
  display: grid;
}

.service-picker label small {
  color: var(--muted);
}

.import-preview {
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 320px;
  margin-top: 16px;
  display: grid;
  overflow: auto;
}

.import-preview > div {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 12px;
  padding: 11px 12px;
  display: grid;
}

.import-preview > div:last-child {
  border-bottom: 0;
}

.import-preview span, .import-preview small {
  color: var(--muted);
  text-overflow: ellipsis;
  overflow: hidden;
}

.settings-profile-photo {
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 56px;
  height: 56px;
}

.search-backdrop {
  align-items: flex-start;
  padding-top: min(15vh, 120px);
}

.command-search {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  width: min(620px, 100vw - 32px);
  overflow: hidden;
  box-shadow: 0 18px 60px #0000002e;
}

.command-search > label {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  display: flex;
}

.command-search input {
  width: 100%;
  color: var(--foreground);
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
}

.command-results {
  max-height: 400px;
  padding: 6px;
  display: grid;
  overflow: auto;
}

.command-results button {
  color: var(--foreground);
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  grid-template-columns: 22px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  display: grid;
}

.command-results button:hover, .command-results button:focus-visible {
  background: var(--surface-subtle);
  outline: none;
}

.command-results button svg:last-child {
  color: var(--muted);
}

.command-results p {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.public-receipt-shell {
  background: var(--background);
  place-items: center;
  min-height: 100vh;
  padding: 32px 16px;
  display: grid;
}

.public-receipt {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  width: min(620px, 100%);
  padding: 32px;
}

.public-receipt header {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  display: grid;
}

.public-receipt header > span {
  gap: 3px;
  display: grid;
}

.public-receipt small {
  color: var(--muted);
}

.public-receipt-number {
  text-align: right;
}

.public-receipt-meta {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 0;
  display: grid;
}

.public-receipt-meta div {
  gap: 5px;
  display: grid;
}

.public-receipt table {
  border-collapse: collapse;
  width: 100%;
}

.public-receipt th, .public-receipt td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 12px 8px;
}

.public-receipt th:last-child, .public-receipt td:last-child {
  text-align: right;
}

.public-receipt-total {
  justify-content: space-between;
  padding: 20px 8px;
  font-size: 18px;
  display: flex;
}

.public-receipt footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  font-size: 12px;
  display: flex;
}

@media (prefers-reduced-motion: reduce) {
  .sale-record-drawer-backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .receipt-paper-reveal {
    transition: opacity .16s;
  }

  .receipt-printing-dot {
    animation: none;
  }

  .streaming-caret, .ask-listening-status i {
    opacity: 1;
    animation: none;
  }
}

.pulse-toast {
  border: 1px solid var(--border) !important;
  background: var(--surface-elevated) !important;
  color: var(--foreground) !important;
  box-shadow: var(--shadow-float) !important;
  font-family: var(--font-inter), Inter, ui-sans-serif, system-ui, sans-serif !important;
  border-radius: 10px !important;
}

.pulse-toast-title {
  font-weight: 500 !important;
}

.pulse-toast-description {
  color: var(--muted) !important;
  font-size: var(--text-supporting) !important;
  line-height: var(--leading-supporting) !important;
}

.pulse-toast-close {
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--muted-strong) !important;
}

.feedback-widget {
  z-index: 38;
  position: fixed;
  bottom: 18px;
  right: 18px;
}

.feedback-trigger {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  height: 38px;
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  transition: transform .14s var(--ease-out), color .14s ease, border-color .14s ease, background-color .14s ease;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  display: inline-flex;
  box-shadow: 0 5px 18px #17171714;
}

.feedback-trigger:hover {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
  color: var(--foreground);
}

.feedback-trigger:active, .feedback-close:active, .feedback-footer button:active, .feedback-done:active {
  transform: scale(.97);
}

.feedback-panel {
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  width: min(336px, 100vw - 32px);
  box-shadow: var(--shadow-float);
  transform-origin: 100% 100%;
  animation: feedback-enter .19s var(--ease-out);
  border-radius: 12px;
  overflow: hidden;
}

@keyframes feedback-enter {
  from {
    opacity: 0;
    transform: translateY(10px)scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.feedback-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 16px 13px;
  display: flex;
}

.feedback-header h2, .feedback-result h2 {
  font-size: 15px;
  line-height: 22px;
}

.feedback-header p, .feedback-result p {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  margin-top: 2px;
}

.feedback-close {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 30px;
  height: 30px;
  color: var(--muted-strong);
  transition: transform .14s var(--ease-out), background-color .14s ease, border-color .14s ease;
  border-radius: 8px;
  flex: none;
  place-items: center;
  padding: 0;
  display: grid;
}

.feedback-close:hover {
  border-color: var(--border-strong);
  background: var(--surface-subtle);
}

.feedback-field {
  padding: 14px 14px 0;
  display: block;
}

.feedback-field textarea {
  resize: none;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  width: 100%;
  min-height: 132px;
  color: var(--foreground);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  border-radius: 8px;
  outline: 0;
  padding: 11px 12px;
  transition: border-color .14s, box-shadow .14s, background-color .14s;
}

.feedback-field textarea::placeholder {
  color: var(--muted);
}

.feedback-field textarea:focus {
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--focus);
}

.feedback-error {
  color: var(--danger);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  padding: 8px 14px 0;
}

.feedback-footer {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
  display: flex;
}

.feedback-footer > span {
  color: var(--muted);
  font-size: var(--text-micro);
  font-variant-numeric: tabular-nums;
}

.feedback-footer button, .feedback-done {
  background: var(--primary);
  min-height: 36px;
  color: var(--primary-foreground);
  font-size: var(--text-supporting);
  transition: transform .14s var(--ease-out), background-color .14s ease, opacity .14s ease;
  border: 0;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  display: inline-flex;
}

.feedback-footer button:hover, .feedback-done:hover {
  background: var(--primary-hover);
}

.feedback-footer button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.feedback-spinner {
  animation: .7s linear infinite feedback-spin;
}

@keyframes feedback-spin {
  to {
    transform: rotate(360deg);
  }
}

.feedback-result {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 252px;
  padding: 26px 22px;
  display: flex;
}

.feedback-result-icon {
  background: var(--primary-subtle);
  width: 42px;
  height: 42px;
  color: var(--primary);
  border-radius: 10px;
  place-items: center;
  margin-bottom: 13px;
  display: grid;
}

.feedback-result p {
  max-width: 31ch;
}

.feedback-done {
  width: 100%;
  margin-top: 20px;
}

.settings-tabs {
  border-bottom: 1px solid var(--border);
  align-items: center;
  gap: 4px;
  margin: -8px 0 20px;
  padding-bottom: 10px;
  display: flex;
  overflow-x: auto;
}

.settings-tabs a {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  border-radius: 8px;
  flex: none;
  padding: 6px 10px;
  transition: background-color .14s, color .14s;
}

.settings-tabs a:hover {
  background: var(--surface-subtle);
  color: var(--foreground);
}

.settings-tabs a.active {
  background: var(--surface-subtle);
  color: var(--foreground);
  font-weight: 500;
}

.settings-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .72fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

.settings-stack {
  gap: 16px;
  min-width: 0;
  display: grid;
}

.settings-card {
  padding: 20px;
}

.settings-org-section {
  margin-top: 16px;
}

.settings-profile-head {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 4px 0 18px;
  display: grid;
}

.settings-profile-head > span, .settings-org-row > span:last-child, .settings-session-row > span:nth-child(2), .plan-renewal > span, .included-list span, .billing-detail-row > span, .invoice-row > span:nth-child(2), .notification-copy, .automation-list > div > span, .delivery-identity > span:nth-child(2), .settings-permission-note > span {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.settings-profile-head small, .settings-org-row small, .settings-session-row small, .plan-renewal small, .included-list small, .billing-detail-row small, .invoice-row small, .notification-copy small, .automation-list small, .delivery-identity small, .settings-permission-note small {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  font-weight: 400;
}

.settings-form {
  gap: 16px;
  margin-top: 18px;
  display: grid;
}

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

.settings-form-actions {
  justify-content: flex-end;
  padding-top: 2px;
  display: flex;
}

.settings-org-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 2px 0 16px;
  display: grid;
}

.settings-org-row .store-mark {
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
}

.settings-org-logo {
  object-fit: contain;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  width: 38px;
  height: 38px;
}

.settings-logo-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: .48;
}

.currency-control {
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  display: grid;
  position: relative;
}

.currency-control > span {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 8px;
  place-items: center;
  height: 40px;
  font-size: 18px;
  display: grid;
}

.currency-control .native-select {
  min-width: 0;
}

.native-select select:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: var(--muted-strong);
  background: var(--surface-subtle);
}

.settings-permission-note {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--muted-strong);
  border-radius: 8px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin-top: 18px;
  padding: 12px;
  display: grid;
}

.settings-permission-note > svg {
  color: var(--muted);
  margin-top: 2px;
}

.settings-session-row, .delivery-identity {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  display: grid;
}

.settings-icon {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  width: 34px;
  height: 34px;
  color: var(--muted-strong);
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.settings-inline-link {
  color: var(--muted-strong);
  font-size: var(--text-supporting);
  margin-top: 16px;
  font-weight: 500;
  display: inline-flex;
}

.settings-inline-link:hover {
  color: var(--foreground);
}

.billing-layout {
  grid-template-columns: minmax(380px, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

.plan-card {
  padding: 22px;
}

.plan-card-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.plan-card-head h2 {
  font-size: 20px;
  line-height: 28px;
}

.plan-price {
  align-items: flex-end;
  gap: 12px;
  margin-top: 28px;
  display: flex;
}

.plan-price strong {
  letter-spacing: -.035em;
  font-size: 42px;
  line-height: 44px;
}

.plan-price span {
  color: var(--muted);
  font-size: var(--text-supporting);
  padding-bottom: 3px;
  line-height: 18px;
}

.plan-summary {
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  margin-top: 16px;
}

.plan-renewal {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: 8px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 13px;
  display: grid;
}

.plan-renewal > svg {
  color: var(--muted);
}

.plan-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  display: flex;
}

.included-list {
  gap: 0;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.included-list li {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 0;
  display: grid;
}

.included-list li:last-child {
  border-bottom: 0;
}

.included-list svg {
  color: var(--muted);
  margin-top: 2px;
}

.billing-detail-row {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  display: flex;
}

.billing-detail-row:last-child {
  border-bottom: 0;
}

.invoice-card {
  margin-top: 16px;
}

.invoice-row {
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  display: grid;
}

.invoice-row > strong {
  font-variant-numeric: tabular-nums;
}

.notification-card {
  overflow: hidden;
}

.notification-table-head, .notification-row {
  grid-template-columns: 34px minmax(0, 1fr) 76px 76px;
  align-items: center;
  gap: 12px;
  display: grid;
}

.notification-table-head {
  border-bottom: 1px solid var(--border);
  min-height: 42px;
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  padding: 0 18px;
}

.notification-table-head span:first-child {
  grid-column: 1 / 3;
}

.notification-table-head span:not(:first-child) {
  text-align: center;
}

.notification-row {
  border-bottom: 1px solid var(--border);
  min-height: 72px;
  padding: 11px 18px;
}

.notification-row:last-child {
  border-bottom: 0;
}

.settings-switch {
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  border-radius: 999px;
  justify-self: center;
  width: 38px;
  height: 22px;
  padding: 2px;
  transition: background-color .14s, border-color .14s;
  position: relative;
}

.settings-switch > span {
  background: var(--surface-elevated);
  width: 16px;
  height: 16px;
  transition: transform .16s var(--ease-out), background-color .14s ease;
  border-radius: 999px;
  display: block;
  transform: translateX(0);
  box-shadow: 0 1px 2px #17171729;
}

.settings-switch[aria-checked="true"] {
  border-color: var(--primary);
  background: var(--primary);
}

.settings-switch[aria-checked="true"] > span {
  background: var(--primary-foreground);
  transform: translateX(16px);
}

.settings-switch:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.receipt-policy-setting {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 0;
  display: grid;
}

.receipt-policy-setting > span {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.receipt-policy-setting small {
  color: var(--muted);
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
}

.receipt-policy-days {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  display: grid;
}

.receipt-policy-days input {
  border-radius: 8px 0 0 8px;
}

.receipt-policy-days span {
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  min-width: 62px;
  color: var(--muted);
  font-size: var(--text-supporting);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  align-self: stretch;
  place-items: center;
  padding: 0 12px;
  display: grid;
}

.notification-secondary {
  margin-top: 16px;
}

.automation-list {
  display: grid;
}

.automation-list > div {
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  display: grid;
}

.automation-list > div:last-child {
  border-bottom: 0;
}

.auth-shell {
  background: var(--background);
  place-items: center;
  min-height: 100dvh;
  padding: 32px 18px;
  display: grid;
}

.auth-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  width: min(100%, 430px);
  padding: 28px;
}

.auth-logo {
  letter-spacing: .26em;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
}

.auth-heading {
  margin-top: 30px;
}

.auth-heading h1 {
  letter-spacing: -.025em;
  font-size: 28px;
  line-height: 36px;
}

.auth-heading > p:last-child {
  color: var(--muted);
  font-size: var(--text-supporting);
  line-height: var(--leading-supporting);
  margin-top: 7px;
}

.auth-provider {
  width: 100%;
  margin-top: 24px;
}

.auth-divider {
  color: var(--muted);
  font-size: var(--text-micro);
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  display: flex;
}

.auth-divider:before, .auth-divider:after {
  content: "";
  background: var(--border);
  flex: 1;
  height: 1px;
}

.auth-form {
  gap: 15px;
  margin-top: 24px;
  display: grid;
}

.auth-provider + .auth-divider + .auth-form {
  margin-top: 0;
}

.auth-input {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 11px;
  transition: border-color .14s, box-shadow .14s;
  display: flex;
}

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

.auth-input > svg {
  color: var(--muted);
  flex: none;
}

.field .auth-input input {
  min-height: 0;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.auth-help {
  color: var(--muted-strong);
  font-size: var(--text-micro);
  justify-self: end;
  margin-top: -5px;
  font-weight: 500;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-switch {
  color: var(--muted);
  text-align: center;
  font-size: var(--text-supporting);
  margin-top: 22px;
}

.auth-switch a {
  color: var(--foreground);
  font-weight: 500;
}

.auth-legal {
  color: var(--muted);
  text-align: center;
  font-size: var(--text-micro);
  line-height: var(--leading-micro);
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-link:nth-child(2) {
    border-right: 0;
  }

  .metric-link:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .split-layout, .profile-grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    grid-template-columns: 150px 1fr 130px;
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid > div:nth-child(2) {
    border-right: 0;
  }

  .detail-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .inventory-list-head, .inventory-product-row {
    grid-template-columns: minmax(220px, 1.5fr) 76px 104px minmax(120px, .8fr) 88px 18px;
  }

  .inventory-list-head > span:nth-child(5), .inventory-product-row > span:nth-child(5) {
    display: none;
  }

  .customer-list-head, .customer-directory-row {
    grid-template-columns: minmax(190px, 1.5fr) 86px 60px 106px 88px 18px;
  }

  .customer-list-head > span:nth-child(6), .customer-directory-row > span:nth-child(6) {
    display: none;
  }

  .analytics-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-kpi:nth-child(2) {
    border-right: 0;
  }

  .analytics-kpi:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .analytics-primary-grid, .analytics-secondary-grid {
    grid-template-columns: 1fr;
  }

  .analytics-insight {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .analytics-insight .evidence-links {
    width: 100%;
    margin-left: 0;
    padding-left: 44px;
  }

  .sales-workspace {
    grid-template-columns: 1fr;
  }

  .sales-workspace > aside {
    position: static;
  }

  .settings-layout, .billing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-grid;
  }

  .sidebar {
    transition: transform .22s var(--ease-out);
    box-shadow: var(--shadow-float);
    transform: translateX(-100%);
  }

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

  .sidebar-scrim {
    z-index: 25;
    background: #0a0a0a70;
    border: 0;
    position: fixed;
    inset: 0;
  }

  .app-main, .sidebar-is-collapsed .app-main {
    margin-left: 0;
  }

  .sidebar-is-collapsed .sidebar {
    width: 224px;
    padding: 16px 12px;
  }

  .sidebar-is-collapsed .sidebar-head {
    justify-content: space-between;
    padding: 0 8px;
  }

  .sidebar-is-collapsed .pulse-logo {
    gap: 10px;
  }

  .sidebar-is-collapsed .pulse-logo > span:last-child, .sidebar-is-collapsed .organization-switcher > span:last-child, .sidebar-is-collapsed .sidebar-nav a > span, .sidebar-is-collapsed .account-copy {
    display: flex;
  }

  .sidebar-is-collapsed .account-more {
    display: block;
  }

  .sidebar-is-collapsed .organization-switcher {
    justify-content: initial;
    border-color: var(--border);
    background: var(--surface);
    grid-template-columns: 32px 1fr;
    width: 100%;
    height: auto;
    margin: 14px 0 18px;
    padding: 9px;
  }

  .sidebar-is-collapsed .sidebar-nav {
    gap: 3px;
  }

  .sidebar-is-collapsed .sidebar-nav a {
    justify-content: flex-start;
    width: auto;
    margin: 0;
    padding: 0 10px;
  }

  .sidebar-is-collapsed .account-row {
    justify-content: initial;
    grid-template-columns: 30px minmax(0, 1fr) 22px;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 8px;
  }

  .topbar {
    height: 56px;
    padding: 0 12px;
  }

  .search-trigger {
    flex: 1;
    width: auto;
  }

  .search-trigger kbd, .search-trigger span, .ask-trigger span {
    display: none;
  }

  .ask-trigger {
    justify-content: center;
    width: 36px;
    padding: 0;
  }

  .topbar-actions .icon-button:last-child {
    display: none;
  }

  .main-content {
    padding: 20px 16px 96px;
  }

  .mobile-nav {
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 7px 8px env(safe-area-inset-bottom);
    border-top: 1px solid var(--border);
    background: var(--surface);
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    display: grid;
    position: fixed;
    inset: auto 0 0;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .mobile-nav {
      background: color-mix(in srgb, var(--surface) 94%, transparent);
    }
  }

  .mobile-nav {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 24;
  }

  .mobile-nav a, .mobile-nav button {
    height: 48px;
    color: var(--muted);
    background: none;
    border: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    display: flex;
  }

  .mobile-nav .active {
    color: var(--primary);
  }

  .mobile-nav .mobile-create {
    background: var(--primary);
    width: 48px;
    height: 48px;
    color: var(--primary-foreground);
    border-radius: 12px;
    justify-self: center;
    transform: translateY(-18px);
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .page-actions {
    width: 100%;
    overflow-x: auto;
  }

  .page-header h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-link {
    min-height: 98px;
    padding: 14px;
  }

  .metric-link > strong {
    font-size: 18px;
  }

  .timeline-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .timeline-time {
    grid-area: 2 / 2;
    padding: 0;
  }

  .timeline-impact {
    grid-column: 2;
    padding: 0;
  }

  .capture-layout, .sale-shell, .receipt-layout, .product-edit-grid {
    grid-template-columns: 1fr;
  }

  .product-edit-grid .field:last-child {
    grid-column: auto;
  }

  .capture-preview, .summary-panel {
    position: static;
  }

  .capture-preview img {
    max-height: 440px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .review-footer {
    flex-direction: column;
  }

  .review-footer > div, .review-footer .button, .sale-shell {
    width: 100%;
  }

  .sale-attribution {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .sale-attribution-field {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .sale-attribution-field select {
    width: 100%;
    min-width: 0;
  }

  .summary-panel {
    padding-bottom: 12px;
  }

  .summary-panel .button-primary {
    min-height: 48px;
  }

  .sales-ledger-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sales-ledger-toolbar .inventory-search {
    width: 100%;
  }

  .sales-ledger-filters {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .sales-ledger-filters .native-select {
    width: 100%;
    min-width: 0;
  }

  .sales-ledger-head {
    display: none;
  }

  .sales-ledger-list {
    max-height: none;
    overflow: visible;
  }

  .sales-ledger-row {
    grid-template-columns: minmax(0, 1fr) auto 16px;
    gap: 8px 12px;
    padding: 13px 14px;
  }

  .sales-ledger-id {
    grid-column: 1;
  }

  .sales-ledger-customer {
    grid-area: 2 / 1 / auto / -1;
  }

  .sales-ledger-total {
    grid-area: 1 / 2;
  }

  .sales-ledger-row > .badge {
    grid-area: 2 / 2;
    align-self: center;
  }

  .sales-ledger-row > svg {
    grid-area: 1 / 3 / 3;
  }

  .sale-record-actions {
    grid-template-columns: 1fr;
  }

  .sale-adjustment-dialog.item-return-dialog {
    max-height: calc(100dvh - 32px);
  }

  .return-line-picker-head {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .return-line {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .return-outcome {
    grid-template-columns: 1fr;
    padding-left: 26px;
  }

  .receipt-page {
    min-height: auto;
    padding: 28px 22px;
  }

  .receipt-actions {
    grid-template-columns: 1fr 1fr;
  }

  .receipt-actions .delivery-state {
    grid-column: span 2;
  }

  .customer-hero {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .customer-hero .page-actions {
    width: auto;
    margin-left: auto;
  }

  .customer-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .customer-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .customer-metrics > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .customer-tab-section > .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-tab-section > .section-header .button {
    width: 100%;
  }

  .customer-timeline-full .timeline-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .customer-record-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .customer-record-row .customer-record-date {
    grid-area: 2 / 2;
  }

  .customer-record-row .customer-record-copy {
    grid-area: 1 / 2;
  }

  .customer-record-row .customer-record-amount {
    grid-area: 1 / 3;
  }

  .customer-record-row > svg {
    grid-area: 2 / 3;
    justify-self: end;
  }

  .customer-receipt-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .customer-receipt-row .customer-record-copy {
    grid-column: 2 / 4;
  }

  .customer-receipt-row .badge {
    grid-area: 2 / 2;
    justify-self: start;
  }

  .customer-receipt-row .customer-record-amount {
    grid-area: 2 / 3;
  }

  .customer-receipt-row .customer-record-action {
    display: none;
  }

  .product-hero {
    grid-template-columns: 92px 1fr;
    gap: 14px;
  }

  .stock-number {
    text-align: left;
    border-top: 1px solid var(--border);
    grid-column: span 2;
    align-items: baseline;
    gap: 8px;
    padding-top: 12px;
    display: flex;
  }

  .stock-number strong {
    font-size: 26px;
  }

  .inventory-actions {
    grid-template-columns: 1fr;
  }

  .inventory-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .inventory-search, .native-select {
    width: 100%;
  }

  .inventory-list-head {
    display: none;
  }

  .inventory-product-row {
    grid-template-columns: minmax(0, 1fr) auto 18px;
    gap: 10px;
    padding: 13px 14px;
  }

  .inventory-product-row > span:not(.inventory-product-cell):not(.inventory-on-hand) {
    display: none;
  }

  .inventory-on-hand {
    grid-area: 1 / 2;
    align-self: start;
    align-items: flex-end;
  }

  .inventory-product-row > svg {
    opacity: 1;
    grid-area: 1 / 3;
    align-self: center;
    transform: none;
  }

  .customer-list-head {
    display: none;
  }

  .customer-directory-row {
    grid-template-columns: minmax(0, 1fr) auto 18px;
    gap: 10px;
    padding: 13px 14px;
  }

  .customer-directory-row > span:not(.customer-directory-name), .customer-directory-row > strong:first-of-type, .customer-directory-row > span:nth-child(5), .customer-directory-row > span:nth-child(6) {
    display: none;
  }

  .customer-directory-row > strong:nth-of-type(2) {
    grid-area: 1 / 2;
    align-self: start;
  }

  .customer-directory-row > svg {
    opacity: 1;
    grid-area: 1 / 3;
    align-self: center;
    transform: none;
  }

  .analytics-period-trigger {
    min-width: 132px;
  }

  .analytics-kpi {
    min-height: 118px;
    padding: 14px;
  }

  .analytics-kpi > strong {
    font-size: 20px;
    line-height: 28px;
  }

  .analytics-kpi > small {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 10px;
  }

  .analytics-kpi > small em {
    width: 100%;
  }

  .analytics-insight .evidence-links {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }

  .analytics-chart-card, .analytics-mix-card, .category-performance, .top-products-card {
    padding: 14px;
  }

  .revenue-chart-wrap {
    height: 220px;
  }

  .analytics-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-metric-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .delivery-operations-card {
    grid-template-columns: 1fr;
  }

  .delivery-journey-card {
    border-left: 0;
    padding-top: 4px;
    padding-left: 0;
  }

  .chart-metric-tabs button:nth-child(2) {
    border-right: 0;
  }

  .chart-metric-tabs button:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .top-products-list {
    margin-bottom: -14px;
    margin-left: -14px;
    margin-right: -14px;
  }

  .top-products-head, .top-product-row {
    grid-template-columns: minmax(130px, 1fr) 50px 104px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .table-wrap {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-left: -16px;
    margin-right: -16px;
  }

  .ask-pulse-panel {
    transform-origin: bottom;
    width: calc(100vw - 24px);
    height: min(560px, 100dvh - 104px);
    bottom: 76px;
    right: 12px;
  }

  .ask-empty-state {
    min-height: 200px;
  }

  .feedback-widget {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .feedback-panel {
    width: calc(100vw - 24px);
  }

  .settings-card, .plan-card {
    padding: 16px;
  }

  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .settings-profile-head {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .settings-profile-head .avatar {
    width: 46px;
    height: 46px;
  }

  .settings-profile-head .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .notification-table-head {
    display: none;
  }

  .notification-row {
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 13px 14px;
  }

  .notification-row:after {
    content: "In-app   Email";
    color: var(--muted);
    letter-spacing: .02em;
    word-spacing: 10px;
    grid-area: 2 / 3 / auto / 5;
    font-size: 9px;
  }

  .notification-copy {
    align-self: start;
  }

  .notification-row .settings-switch {
    grid-row: 1;
  }

  .invoice-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .invoice-row .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .plan-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .auth-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 640px) {
  .receipt-morph-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .receipt-morph-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .receipt-morph-actions {
    width: 100%;
  }

  .receipt-morph-actions .button {
    flex: 1;
  }

  .receipt-morph-scroll {
    padding: 12px;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .receipt-morph-dialog, .receipt-morph-dialog * {
    visibility: visible !important;
  }

  .receipt-morph-dialog {
    width: 100% !important;
    max-height: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    position: fixed !important;
    inset: 0 !important;
    overflow: visible !important;
  }

  .receipt-morph-header {
    display: none !important;
  }

  .receipt-morph-scroll {
    background: #fff !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .receipt-morph-paper {
    width: 100% !important;
    min-height: auto !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
}

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

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

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

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

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

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

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

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

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

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

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@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-backdrop-blur {
  syntax: "*";
  inherits: false
}

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

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

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

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

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

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

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

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

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

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

@property --tw-content {
  syntax: "*";
  inherits: false;
  initial-value: "";
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

/*# sourceMappingURL=app_1n74zbj._.css.map*/