/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --font-weight-semibold: 600;
    --radius-sm: 0.25rem;
    --radius-lg: 0.5rem;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --default-transition-duration: 0.2s;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-shade-06: var(--shade-06);
    --color-shade-07: var(--shade-07);
    --color-surface-01: var(--shade-01);
    --color-surface-02: var(--shade-02);
    --color-surface-03: var(--shade-03);
    --color-primary: var(--shade-09);
    --color-secondary: var(--shade-06);
    --color-tertiary: #a8a8a8;
    --color-s-01: var(--shade-04);
    --color-s-02: var(--shade-05);
    --color-green: #55b93e;
    --color-orange: #e36323;
    --color-red: #fe5938;
    --color-blue: #3582ff;
    --font-quicksand: "Quicksand", "Baloo Bhaijaan 2", system-ui, -apple-system, sans-serif;
    --font-baloo-bhaijaan: "Baloo Bhaijaan 2", "Quicksand", system-ui, -apple-system, sans-serif;
    --text-h4: 1.75rem;
    --text-h5: 1.5rem;
    --text-body-sm: 0.6875rem;
    --text-body-sm--line-height: 1rem;
    --text-body-sm--letter-spacing: -0.01em;
    --text-body-sm--font-weight: 400;
    --text-body-md: 0.75rem;
    --text-body-md--line-height: 1rem;
    --text-body-md--letter-spacing: -0.01em;
    --text-body-md--font-weight: 400;
    --text-body-lg: 0.8125rem;
    --text-heading: 0.875rem;
    --text-title: 0.9375rem;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-floating: 0 8px 32px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .inset-0 {
    inset: 0px;
  }
  .start-0 {
    inset-inline-start: calc(var(--spacing) * 0);
  }
  .start-55 {
    inset-inline-start: calc(var(--spacing) * 55);
  }
  .end-0 {
    inset-inline-end: calc(var(--spacing) * 0);
  }
  .top-0 {
    top: 0px;
  }
  .bottom-0 {
    bottom: 0px;
  }
  .z-10 {
    z-index: 10;
  }
  .z-20 {
    z-index: 20;
  }
  .z-40 {
    z-index: 40;
  }
  .container {
    width: 100%;
    @media (width >= 480px) {
      max-width: 480px;
    }
    @media (width >= 767px) {
      max-width: 767px;
    }
    @media (width >= 1023px) {
      max-width: 1023px;
    }
    @media (width >= 1259px) {
      max-width: 1259px;
    }
    @media (width >= 1419px) {
      max-width: 1419px;
    }
    @media (width >= 1719px) {
      max-width: 1719px;
    }
    @media (width >= 1899px) {
      max-width: 1899px;
    }
  }
  .ms-auto {
    margin-inline-start: auto;
  }
  .me-2 {
    margin-inline-end: calc(var(--spacing) * 2);
  }
  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .size-5 {
    width: calc(var(--spacing) * 5);
    height: calc(var(--spacing) * 5);
  }
  .size-11 {
    width: calc(var(--spacing) * 11);
    height: calc(var(--spacing) * 11);
  }
  .h-7 {
    height: calc(var(--spacing) * 7);
  }
  .h-20 {
    height: calc(var(--spacing) * 20);
  }
  .h-\[calc\(100svh-5rem\)\] {
    height: calc(100svh - 5rem);
  }
  .w-55 {
    width: calc(var(--spacing) * 55);
  }
  .w-auto {
    width: auto;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .flex-col {
    flex-direction: column;
  }
  .items-center {
    align-items: center;
  }
  .justify-center {
    justify-content: center;
  }
  .gap-0\.5 {
    gap: calc(var(--spacing) * 0.5);
  }
  .gap-1 {
    gap: var(--spacing);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .overflow-y-auto {
    overflow-y: auto;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-e {
    border-inline-end-style: var(--tw-border-style);
    border-inline-end-width: 1px;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .border-s-01 {
    border-color: var(--color-s-01);
  }
  .bg-shade-07\/40 {
    background-color: var(--color-shade-07);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-shade-07) 40%, transparent);
    }
  }
  .bg-surface-01 {
    background-color: var(--color-surface-01);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-5 {
    padding-inline: calc(var(--spacing) * 5);
  }
  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }
  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }
  .ps-55 {
    padding-inline-start: calc(var(--spacing) * 55);
  }
  .pt-20 {
    padding-top: calc(var(--spacing) * 20);
  }
  .pb-3 {
    padding-bottom: calc(var(--spacing) * 3);
  }
  .pb-5 {
    padding-bottom: calc(var(--spacing) * 5);
  }
  .font-quicksand {
    font-family: var(--font-quicksand);
  }
  .text-body-md {
    font-size: var(--text-body-md);
    line-height: var(--tw-leading, var(--text-body-md--line-height));
    letter-spacing: var(--tw-tracking, var(--text-body-md--letter-spacing));
    font-weight: var(--tw-font-weight, var(--text-body-md--font-weight));
  }
  .text-body-sm {
    font-size: var(--text-body-sm);
    line-height: var(--tw-leading, var(--text-body-sm--line-height));
    letter-spacing: var(--tw-tracking, var(--text-body-sm--letter-spacing));
    font-weight: var(--tw-font-weight, var(--text-body-sm--font-weight));
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .text-primary {
    color: var(--color-primary);
  }
  .text-secondary {
    color: var(--color-secondary);
  }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .\[webhook\:all\] {
    webhook: all;
  }
  .empty\:hidden:empty {
    display: none;
  }
  @media (width < 1023px) {
    .max-lg\:start-0 {
      inset-inline-start: calc(var(--spacing) * 0);
    }
    .max-lg\:block {
      display: block;
    }
    .max-lg\:flex {
      display: flex;
    }
    .max-lg\:hidden {
      display: none;
    }
    .max-lg\:inline-flex {
      display: inline-flex;
    }
    .max-lg\:items-center {
      align-items: center;
    }
    .max-lg\:px-4 {
      padding-inline: calc(var(--spacing) * 4);
    }
    .max-lg\:py-6 {
      padding-block: calc(var(--spacing) * 6);
    }
    .max-lg\:ps-0 {
      padding-inline-start: 0px;
    }
  }
  @media (width < 767px) {
    .max-md\:gap-2 {
      gap: calc(var(--spacing) * 2);
    }
  }
  .\[\&_span\]\:h-0\.5 span {
    height: calc(var(--spacing) * 0.5);
  }
  .\[\&_span\]\:w-6 span {
    width: calc(var(--spacing) * 6);
  }
  .\[\&_span\]\:rounded-full span {
    border-radius: calc(infinity * 1px);
  }
  .\[\&_span\]\:bg-primary span {
    background-color: var(--color-primary);
  }
}
:root {
  --shade-01: #fcfcfc;
  --shade-01_95: rgba(252, 252, 252, 0.95);
  --shade-02: #f8f7f7;
  --shade-03: #f1f1f1;
  --shade-04: #ececec;
  --shade-05: #e2e2e2;
  --shade-06: #7b7b7b;
  --shade-06_30: rgba(123, 123, 123, 0.3);
  --shade-06_50: rgba(123, 123, 123, 0.5);
  --shade-07: #323232;
  --shade-07_05: rgba(50, 50, 50, 0.05);
  --shade-07_10: rgba(50, 50, 50, 0.1);
  --shade-08: #222222;
  --shade-08_05: rgba(34, 34, 34, 0.05);
  --shade-08_10: rgba(34, 34, 34, 0.1);
  --shade-09: #121212;
  --shade-09_05: rgba(18, 18, 18, 0.05);
  --shade-09_10: rgba(18, 18, 18, 0.1);
  --shade-09_35: rgba(18, 18, 18, 0.35);
  --box-shadow-toolbar: 0px 1px 4px -4px rgba(0, 0, 0, 0.075), 0px 8px 16px -12px rgba(0, 0, 0, 0.125);
  --box-shadow-prompt-input: inset 0 2px 0 0 #ffffff, 0px 18px 24px -20px rgba(0, 0, 0, 0.125),
    0px 8px 16px -12px rgba(0, 0, 0, 0.075);
  --box-shadow-depth-01: 0 6px 3px 0 rgba(0, 0, 0, 0.01), 0 3px 3px 0 rgba(0, 0, 0, 0.02),
    0 1px 1px 0 rgba(0, 0, 0, 0.02);
  --box-shadow-popover: 0 153px 61px 0 rgba(0, 0, 0, 0.01), 0 86px 52px 0 rgba(0, 0, 0, 0.04),
    0 38px 38px 0 rgba(0, 0, 0, 0.06), 0 10px 21px 0 rgba(0, 0, 0, 0.07);
  --radius: 1rem;
  color-scheme: light;
}
[data-theme="dark"] {
  color-scheme: dark;
  --shade-01: #0d0d0d;
  --shade-01_95: rgba(13, 13, 13, 0.95);
  --shade-02: #141414;
  --shade-03: #1c1c1c;
  --shade-04: #262626;
  --shade-05: #303030;
  --shade-06: #999999;
  --shade-06_30: rgba(153, 153, 153, 0.3);
  --shade-06_50: rgba(153, 153, 153, 0.5);
  --shade-07: #d6d6d6;
  --shade-07_05: rgba(214, 214, 214, 0.05);
  --shade-07_10: rgba(214, 214, 214, 0.1);
  --shade-08: #e6e6e6;
  --shade-08_05: rgba(230, 230, 230, 0.05);
  --shade-08_10: rgba(230, 230, 230, 0.1);
  --shade-09: #f5f5f5;
  --shade-09_05: rgba(245, 245, 245, 0.05);
  --shade-09_10: rgba(245, 245, 245, 0.1);
  --shade-09_35: rgba(245, 245, 245, 0.35);
  --box-shadow-toolbar: 0px 1px 4px -4px rgba(0, 0, 0, 0.3), 0px 8px 16px -12px rgba(0, 0, 0, 0.4);
  --box-shadow-prompt-input: inset 0 2px 0 0 rgba(255, 255, 255, 0.04), 0px 18px 24px -20px rgba(0, 0, 0, 0.4),
    0px 8px 16px -12px rgba(0, 0, 0, 0.2);
  --box-shadow-depth-01: 0 6px 3px 0 rgba(0, 0, 0, 0.04), 0 3px 3px 0 rgba(0, 0, 0, 0.06),
    0 1px 1px 0 rgba(0, 0, 0, 0.06);
  --box-shadow-popover: 0 153px 61px 0 rgba(0, 0, 0, 0.02), 0 86px 52px 0 rgba(0, 0, 0, 0.06),
    0 38px 38px 0 rgba(0, 0, 0, 0.1), 0 10px 21px 0 rgba(0, 0, 0, 0.12);
  --radius: 1rem;
}
@layer base {
  html {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  button {
    cursor: pointer;
  }
  :lang(ar) {
    font-family: var(--font-baloo-bhaijaan), sans-serif;
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}
@layer components {
  .center {
    max-width: 70rem;
    width: 100%;
    margin-inline: auto;
    padding-inline: 2.5rem;
  }
  @media (width < 1259px) {
    .center {
      padding-inline: 1.25rem;
    }
  }
  .app-scrollbar, .app-scrollbar-thin {
    scrollbar-gutter: stable;
    scrollbar-color: var(--shade-05) transparent;
    overscroll-behavior: contain;
  }
  .app-scrollbar-thin {
    scrollbar-width: thin;
  }
  .app-scrollbar::-webkit-scrollbar, .app-scrollbar-thin::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  .app-scrollbar::-webkit-scrollbar-track, .app-scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
  }
  .app-scrollbar::-webkit-scrollbar-thumb, .app-scrollbar-thin::-webkit-scrollbar-thumb {
    background: var(--shade-05);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: content-box;
  }
  .app-scrollbar:hover::-webkit-scrollbar-thumb, .app-scrollbar-thin:hover::-webkit-scrollbar-thumb {
    background: var(--shade-06);
    background-clip: content-box;
  }
  .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.1875rem;
    border-radius: 0.75rem;
    font-size: var(--text-body-md);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
    color: var(--shade-09);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
  }
  .nav-link:hover {
    background: var(--color-surface-03);
  }
  .nav-link.active {
    background: var(--color-surface-03);
    border-color: var(--color-s-01);
  }
  .nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    margin-inline-end: 0.75rem;
    border-radius: 0.5rem;
    color: var(--color-secondary);
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
  }
  .nav-icon svg {
    fill: currentColor;
  }
  .nav-link.active .nav-icon {
    background: var(--shade-01);
    box-shadow: 0 0 4px 0 rgba(18, 18, 18, 0.1);
    color: var(--shade-09);
  }
  .btn-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: transparent;
    border-radius: 0.625rem;
    color: var(--color-secondary);
    transition: background-color 0.2s, color 0.2s;
  }
  .btn-icon:hover {
    background: var(--color-surface-03);
    color: var(--shade-09);
  }
  .btn-icon svg {
    fill: currentColor;
  }
  .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding-inline: 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25rem;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
  }
  .btn > * {
    position: relative;
    z-index: 1;
  }
  .btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
  }
  .btn:not(.btn-outline):not(.btn-ghost):hover::after {
    opacity: 1;
  }
  .btn:disabled, a.btn[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
  }
  .btn-primary {
    background: linear-gradient(to bottom, #e5e5e5, #e2e2e2);
    color: var(--shade-09);
    box-shadow: 0 3px 4px -1px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.33), 0 0 0 1px #d4d4d4;
  }
  .btn-primary::after {
    background: rgba(255, 255, 255, 0.3);
  }
  .btn-secondary {
    background: linear-gradient(to bottom, var(--shade-07), var(--shade-08));
    color: var(--shade-01);
    box-shadow: inset 0 0.5px 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px -1px rgba(13, 13, 13, 0.5), inset 0 -1px 1.2px 0.35px #121212, 0 0 0 1px #333;
  }
  .btn-secondary::after {
    background: rgba(255, 255, 255, 0.08);
  }
  .btn-red {
    background: linear-gradient(to bottom, #fe5938, #e8431f);
    color: var(--shade-01);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.33), 0 0 0 1px #c93a18, 0 3px 4px -1px rgba(254, 89, 56, 0.9);
  }
  .btn-red::after {
    background: rgba(255, 255, 255, 0.1);
  }
  .btn-outline {
    background: var(--shade-01);
    color: var(--shade-09);
    box-shadow: inset 0 1px 0 0 #fff;
    border: 1.5px solid var(--color-s-02);
  }
  .btn-outline:hover {
    background: var(--color-surface-03);
  }
  .btn-outline::after, .btn-ghost::after {
    content: none;
  }
  .btn-ghost {
    background: transparent;
    color: var(--color-secondary);
  }
  .btn-ghost:hover {
    background: var(--color-surface-03);
    color: var(--shade-09);
  }
  .btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  .btn-sm {
    height: 2rem;
    padding-inline: 1rem;
    border-radius: 0.625rem;
    font-size: var(--text-body-md);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
  }
  .lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding-inline: 1rem;
    border-radius: 9999px;
    font-size: var(--text-body-md);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
    color: var(--color-secondary);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
  }
  .lang-switch:hover {
    background: var(--color-surface-03);
    color: var(--shade-09);
  }
  .field {
    width: 100%;
    height: 3rem;
    padding-inline: 1.375rem;
    border: 1.5px solid var(--color-s-01);
    border-radius: 0.75rem;
    background: var(--shade-01);
    color: var(--shade-09);
    font-size: var(--text-body-lg);
    font-family: inherit;
    line-height: 1rem;
    transition: border-color 0.2s;
  }
  .field:focus {
    outline: none;
    border-color: var(--color-s-02);
  }
  .field::placeholder {
    color: var(--color-tertiary);
  }
  select.field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M11.371 12.38c-.757.827-1.985.827-2.742 0l-3.36-3.668a1.07 1.07 0 0 1 0-1.418c.359-.392.94-.392 1.299 0l3.36 3.668c.04.044.104.044.144 0l3.36-3.668c.359-.392.94-.392 1.299 0a1.07 1.07 0 0 1 0 1.418l-3.36 3.668z' fill='%237b7b7b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-inline-end: 2.75rem;
  }
  html[dir="rtl"] select.field {
    background-position: left 1rem center;
  }
  .search-box {
    position: relative;
    margin-bottom: 1.25rem;
  }
  .search-box .search-icon {
    position: absolute;
    inset-inline-start: 1.125rem;
    top: 50%;
    width: 1.25rem;
    height: 1.25rem;
    transform: translateY(-50%);
    fill: var(--color-secondary);
    pointer-events: none;
  }
  .search-box input {
    padding-inline-start: 3.25rem;
  }
  .product-card, .style-card {
    position: relative;
    border-radius: 1rem;
    background: var(--color-surface-02);
    padding: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .product-card:hover, .style-card:hover {
    transform: scale(1.03);
  }
  .product-card img, .style-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.75rem;
    background: var(--color-surface-03);
  }
  .product-name, .style-name {
    padding: 0.5rem 0.375rem 0.25rem;
    font-size: var(--text-body-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
    color: var(--shade-09);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-card.selected, .style-card.selected {
    box-shadow: inset 0 0 0 1.5px var(--color-shade-06), inset 0 0 0 4px var(--color-surface-01);
  }
  .product-grid, .style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  @media (min-width: 480px) {
    .product-grid, .style-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (min-width: 767px) {
    .product-grid, .style-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  .grid-empty {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--color-secondary);
    font-size: var(--text-body-md);
    line-height: 1rem;
  }
  .picker-product-name {
    font-size: var(--text-h4);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 2.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .picker-subtitle {
    margin-bottom: 1.25rem;
    color: var(--color-secondary);
    font-size: var(--text-body-md);
    line-height: 1.25rem;
  }
  .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  @media (min-width: 480px) {
    .image-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  @media (min-width: 767px) {
    .image-grid {
      grid-template-columns: repeat(6, 1fr);
    }
  }
  .image-card {
    position: relative;
    border-radius: 0.75rem;
    background: var(--color-surface-02);
    padding: 0.25rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .image-card:hover {
    transform: scale(1.03);
  }
  .image-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    background: var(--color-surface-03);
  }
  .image-card.selected {
    box-shadow: inset 0 0 0 1.5px var(--color-shade-06), inset 0 0 0 4px var(--color-surface-01);
  }
  .image-card.selected::after {
    content: "";
    position: absolute;
    inset-inline-end: 0.5rem;
    top: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: var(--shade-09);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23fff'%3E%3Cpath d='M8.1 13.5 4.6 10l1.4-1.4 2.1 2.1 5.9-5.9L15.4 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.875rem;
    box-shadow: 0 1px 4.2px -1px rgba(13, 13, 13, 0.4);
  }
  .stepper-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 40rem;
    margin-inline: auto;
    margin-bottom: 2.5rem;
  }
  .step-btn {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem;
    border: none;
    background: transparent;
    border-radius: 0.75rem;
    cursor: pointer;
  }
  .step-btn:disabled {
    cursor: default;
  }
  .step-btn:focus-visible {
    outline: 2px solid var(--shade-09_35);
    outline-offset: 2px;
  }
  .step-dot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--color-surface-03);
    color: var(--color-secondary);
    font-size: var(--text-body-md);
    font-weight: 600;
    line-height: 1rem;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.11), inset 0 2px 0.8px 0 rgba(255, 255, 255, 0.27), inset 0 -1px 0.6px 0 rgba(0, 0, 0, 0.2), 0 1px 4.2px -1px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  }
  .step-btn.active .step-dot {
    background: var(--shade-09);
    color: var(--shade-01);
    box-shadow: 0 2px 4px -1px rgba(13, 13, 13, 0.5), 0 0 0 0.25rem var(--shade-09_05);
  }
  .step-btn.done .step-dot {
    background: rgba(85, 185, 62, 0.12);
    color: var(--color-green);
    font-size: 0;
  }
  .step-btn.done .step-dot::after {
    content: "";
    width: 0.875rem;
    height: 0.875rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2355b93e'%3E%3Cpath d='M8.1 13.5 4.6 10l1.4-1.4 2.1 2.1 5.9-5.9L15.4 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  .step-btn.done:hover .step-dot {
    background: rgba(85, 185, 62, 0.2);
  }
  .step-btn:active:not(:disabled) .step-dot {
    transform: scale(0.96);
  }
  .step-label {
    font-size: var(--text-body-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
    color: var(--color-secondary);
    white-space: nowrap;
    transition: color 0.2s;
  }
  .step-btn.active .step-label {
    color: var(--shade-09);
    font-weight: 700;
  }
  .step-line {
    flex: 1;
    min-width: 1rem;
    height: 2px;
    margin-top: calc(1.375rem - 1px);
    border-radius: 9999px;
    background: var(--color-s-02);
    position: relative;
    overflow: hidden;
  }
  .step-line::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--color-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html[dir="rtl"] .step-line::after {
    transform-origin: right;
  }
  .step-line.done::after {
    transform: scaleX(1);
  }
  @media (width < 767px) {
    .stepper-header {
      gap: 0.5rem;
    }
    .step-label {
      display: none;
    }
  }
  .step-panel {
    display: none;
    max-width: 45rem;
    margin-inline: auto;
  }
  .step-panel.active {
    display: block;
  }
  .step-panel.active > * {
    animation: framly-fade-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .step-panel.active > *:nth-child(2) {
    animation-delay: 0.05s;
  }
  .step-panel.active > *:nth-child(3) {
    animation-delay: 0.1s;
  }
  .step-panel.active > *:nth-child(4) {
    animation-delay: 0.15s;
  }
  .step-panel.active > *:nth-child(5) {
    animation-delay: 0.2s;
  }
  .step-panel.active > *:nth-child(6) {
    animation-delay: 0.25s;
  }
  .step-title {
    margin-bottom: 1.5rem;
    font-size: var(--text-h4);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 2.25rem;
    text-wrap: balance;
  }
  .upload-section {
    margin-top: 0.5rem;
    border: 1.5px dashed var(--color-s-02);
    border-radius: 1rem;
    background: linear-gradient( to bottom, rgba(248, 247, 247, 0.7), rgba(252, 252, 252, 0.6) );
    box-shadow: inset 0 1px 0 0 #fff;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
  }
  .upload-section:hover {
    border-color: var(--color-secondary);
  }
  .upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: var(--text-body-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
  }
  .upload-label svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--color-secondary);
  }
  .upload-section input[type="file"] {
    display: none;
  }
  .upload-hint {
    margin-top: 0.75rem;
    text-align: center;
    font-size: var(--text-body-sm);
    line-height: 1rem;
    color: var(--color-secondary);
  }
  .preview-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .preview-box {
    width: 13rem;
    border: 1px solid var(--color-s-01);
    border-radius: 1rem;
    background: var(--color-surface-02);
    padding: 0.5rem;
  }
  .preview-box img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.75rem;
    background: var(--color-surface-03);
  }
  .preview-label {
    padding-top: 0.5rem;
    text-align: center;
    font-size: var(--text-body-sm);
    line-height: 1rem;
    color: var(--color-secondary);
  }
  .preview-arrow {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--color-secondary);
  }
  html[dir="rtl"] .preview-arrow {
    transform: rotate(180deg);
  }
  .options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 14rem;
    flex: 1 1 12rem;
  }
  .option-group label {
    font-size: var(--text-body-md);
    font-weight: 600;
    line-height: 1rem;
    color: var(--color-secondary);
  }
  .prompt-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 30rem;
    margin-top: 1.5rem;
  }
  .prompt-group label {
    font-size: var(--text-body-md);
    font-weight: 600;
    line-height: 1rem;
    color: var(--color-secondary);
  }
  textarea.field {
    height: auto;
    min-height: 5rem;
    padding-block: 0.875rem;
    line-height: 1.5rem;
    resize: vertical;
  }
  .load-more {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
  }
  .apply-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  .apply-options .option-group {
    flex: 1 1 14rem;
    max-width: 20rem;
    text-align: start;
  }
  .check-option {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    height: 3rem;
    padding-inline: 1.25rem;
    border: 1.5px solid var(--color-s-01);
    border-radius: 0.75rem;
    background: var(--shade-01);
    font-size: var(--text-body-md);
    font-weight: 600;
    line-height: 1rem;
    color: var(--color-secondary);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s;
  }
  .check-option:hover {
    border-color: var(--color-s-02);
  }
  .check-option input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--shade-09);
    cursor: pointer;
  }
  .modal-credits {
    width: min(34rem, 100%);
  }
  .credits-subtitle {
    margin: -0.75rem 0 1.25rem;
    font-size: var(--text-body-lg);
    line-height: 1.5rem;
    color: var(--color-secondary);
  }
  .credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
  }
  .credit-pack {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    background: var(--color-surface-02);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
  }
  .credit-pack:hover {
    border-color: var(--color-s-02);
    transform: scale(1.02);
  }
  .pack-units {
    font-size: var(--text-title);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.5rem;
  }
  .pack-name {
    min-height: 2rem;
    font-size: var(--text-body-md);
    line-height: 1rem;
    color: var(--color-secondary);
  }
  .pack-price {
    font-size: var(--text-body-lg);
    font-weight: 700;
    line-height: 1.25rem;
  }
  .pack-period {
    font-size: var(--text-body-sm);
    font-weight: 500;
    color: var(--color-secondary);
  }
  .pack-buy {
    margin-top: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    background: var(--shade-09);
    color: var(--shade-01);
    font-size: var(--text-body-md);
    font-weight: 600;
    line-height: 1rem;
  }
  .progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 1rem;
    text-align: center;
  }
  .progress-text {
    font-size: var(--text-title);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.5rem;
  }
  .progress-hint {
    font-size: var(--text-body-md);
    line-height: 1rem;
    color: var(--color-secondary);
  }
  .progress-elapsed {
    font-size: var(--text-body-md);
    line-height: 1rem;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
  }
  .regenerate-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  .result-container {
    max-width: 35rem;
    margin-inline: auto;
    text-align: center;
  }
  .result-image {
    border-radius: 1.25rem;
    background: var(--color-surface-03);
    padding: 0.625rem;
    margin-bottom: 1.5rem;
  }
  .result-image img {
    display: block;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--color-s-02);
    background: var(--shade-01);
    animation: framly-fade-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .result-container .error-banner, .result-container .success-msg {
    margin-bottom: 1.25rem;
  }
  .error-banner, .success-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    background: var(--shade-09);
    color: var(--shade-01);
    font-size: var(--text-body-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
    box-shadow: var(--shadow-floating);
  }
  .error-banner::before, .success-msg::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
  }
  .error-banner::before {
    background: var(--color-red);
  }
  .success-msg::before {
    background: var(--color-green);
  }
  .product-grid .error-banner, .style-grid .error-banner {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .usage-badge {
    display: inline-flex;
    align-items: center;
    height: 2.25rem;
    padding-inline: 1rem;
    border-radius: 9999px;
    background: var(--color-surface-03);
    border: 1px solid var(--color-s-01);
    box-shadow: inset 0 1px 0 0 #fff;
    font-size: var(--text-body-md);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
    empty-cells: hide;
  }
  .usage-badge:empty {
    display: none;
  }
  .usage-badge.exceeded {
    color: #e8431f;
    border-color: rgba(254, 89, 56, 0.3);
  }
  .style-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }
  .category-tab {
    display: inline-flex;
    align-items: center;
    height: 2.25rem;
    padding-inline: 1.25rem;
    border-radius: 9999px;
    font-size: var(--text-body-md);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
    color: var(--color-secondary);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }
  .category-tab:hover {
    background: var(--color-surface-03);
    color: var(--shade-09);
  }
  .category-tab.active {
    background: var(--shade-09);
    color: var(--shade-01);
  }
  .history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  @media (min-width: 767px) {
    .history-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (min-width: 1023px) {
    .history-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  .history-card {
    border-radius: 1rem;
    background: var(--color-surface-02);
    padding: 0.5rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
  }
  .history-card:hover {
    transform: scale(1.02);
  }
  .history-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.75rem;
    background: var(--color-surface-03);
  }
  .history-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    padding: 0.625rem 0.375rem 0.25rem;
  }
  .history-style {
    font-size: var(--text-body-md);
    font-weight: 600;
    line-height: 1rem;
  }
  .history-date {
    font-size: var(--text-body-sm);
    line-height: 1rem;
    color: var(--color-secondary);
  }
  .history-status {
    margin-inline-start: auto;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    font-size: var(--text-body-sm);
    font-weight: 600;
    line-height: 1rem;
  }
  .history-status.completed {
    background: rgba(85, 185, 62, 0.12);
    color: var(--color-green);
  }
  .history-status.failed {
    background: rgba(254, 89, 56, 0.12);
    color: #e8431f;
  }
  .history-status.pending {
    background: rgba(255, 183, 58, 0.16);
    color: var(--color-orange);
  }
  .history-status.processing {
    background: rgba(53, 130, 255, 0.12);
    color: var(--color-blue);
  }
  .history-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-secondary);
    font-size: var(--text-title);
    letter-spacing: -0.02em;
  }
  .history-actions {
    display: flex;
    justify-content: center;
    padding: 0 0.375rem 0.5rem;
  }
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(13, 13, 13, 0.4);
  }
  .modal {
    width: min(42.5rem, 100%);
    max-height: min(37.5rem, calc(100vh - 3rem));
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--color-surface-01);
    border: 1px solid var(--color-s-01);
    box-shadow: var(--shadow-floating);
  }
  .modal-title {
    margin-bottom: 1.25rem;
    font-size: var(--text-h4);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 2.25rem;
  }
  .modal .error-banner, .modal .success-msg {
    margin-top: 1.25rem;
  }
  .modal-actions {
    margin-top: 1.5rem;
  }
  .upgrade-cta {
    display: inline-flex;
    align-items: center;
    height: 2.25rem;
    padding-inline: 1rem;
    border-radius: 9999px;
    background: var(--shade-09);
    color: var(--shade-01);
    font-size: var(--text-body-md);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
    text-decoration: none;
    box-shadow: var(--shadow-floating);
    transition: transform 0.2s;
  }
  .upgrade-cta:hover {
    transform: scale(1.03);
  }
  .auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: var(--shade-01);
  }
  .auth-message {
    font-size: var(--text-body-lg);
    line-height: 1rem;
    color: var(--color-secondary);
  }
  .auth-error {
    max-width: 28rem;
    margin-inline: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: rgba(254, 89, 56, 0.08);
    border: 1px solid rgba(254, 89, 56, 0.25);
    color: #e8431f;
    font-size: var(--text-body-lg);
    line-height: 1.5rem;
    text-align: center;
  }
  .spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2.5px solid var(--color-s-02);
    border-top-color: var(--shade-09);
    animation: framly-spin 0.8s linear infinite;
  }
  .skeleton {
    position: relative;
    overflow: hidden;
    background: var(--color-surface-03);
  }
  .skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.6), transparent );
    animation: framly-shimmer 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  html[dir="rtl"] .skeleton::after {
    transform: translateX(100%);
    animation-name: framly-shimmer-rtl;
  }
  .sk-card {
    border-radius: 1rem;
    background: var(--color-surface-02);
    padding: 0.5rem;
  }
  .sk-img {
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
  }
  .sk-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 0.5rem;
  }
  .sk-line {
    height: 0.75rem;
    margin: 0.75rem 0.375rem 0.5rem;
    border-radius: 9999px;
  }
  .skeleton-pill {
    width: 7rem;
    height: 2.25rem;
    border-radius: 9999px;
  }
  .result-skeleton {
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
  }
  .generate-skeleton {
    width: min(100%, 18rem);
    border-radius: 0.75rem;
  }
  .grid-enter > * {
    animation: framly-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .grid-enter > *:nth-child(2) {
    animation-delay: 0.04s;
  }
  .grid-enter > *:nth-child(3) {
    animation-delay: 0.08s;
  }
  .grid-enter > *:nth-child(4) {
    animation-delay: 0.12s;
  }
  .grid-enter > *:nth-child(5) {
    animation-delay: 0.16s;
  }
  .grid-enter > *:nth-child(6) {
    animation-delay: 0.2s;
  }
  .grid-enter > *:nth-child(7) {
    animation-delay: 0.24s;
  }
  .grid-enter > *:nth-child(8) {
    animation-delay: 0.28s;
  }
  .grid-enter > *:nth-child(9) {
    animation-delay: 0.32s;
  }
  .grid-enter > *:nth-child(10) {
    animation-delay: 0.36s;
  }
  .grid-enter > *:nth-child(11) {
    animation-delay: 0.4s;
  }
  .grid-enter > *:nth-child(12) {
    animation-delay: 0.44s;
  }
  .grid-enter > *:nth-child(n + 13) {
    animation-delay: 0.48s;
  }
  @keyframes framly-spin {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes framly-shimmer {
    to {
      transform: translateX(100%);
    }
  }
  @keyframes framly-shimmer-rtl {
    to {
      transform: translateX(-100%);
    }
  }
  @keyframes framly-fade-in {
    0% {
      opacity: 0;
      transform: translateY(16px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .skeleton::after, .grid-enter > *, .result-image img, .toast, .toast.toast-out {
      animation: none;
    }
    .modal-overlay, .modal-overlay .modal, .modal-overlay.modal-closing .modal, .btn, .category-tab, .check-option, .credit-pack, .upgrade-cta, .nav-link {
      transition: none;
    }
  }
  @media (max-width: 767px) {
    :root {
      --text-body-sm: 0.75rem;
      --text-body-md: 0.8125rem;
      --text-body-md-str: 0.8125rem;
      --text-body-lg: 0.875rem;
      --text-body-lg-str: 0.875rem;
      --text-p-sm: 0.875rem;
      --text-p-md: 0.9375rem;
      --text-heading: 0.9375rem;
      --text-heading-str: 0.9375rem;
      --text-title: 1rem;
      --text-title-str: 1rem;
      --text-title-lg: 1.25rem;
    }
    .app-sidebar button:not(.keep-size) {
      min-height: 2.75rem;
    }
    .app-sidebar input, .app-sidebar select, .app-sidebar textarea {
      font-size: 16px;
    }
  }
  .product-card img, .style-card img, .image-card img, .history-card img, .preview-box img {
    outline: 1px solid rgba(0, 0, 0, 0.08);
    outline-offset: -1px;
  }
  .result-image img {
    outline: 1px solid rgba(0, 0, 0, 0.08);
    outline-offset: -1px;
    border: none;
  }
  .btn:active:not(:disabled) {
    transform: scale(0.96);
  }
  .btn {
    transition: opacity 0.2s, transform 0.15s;
  }
  .category-tab:active {
    transform: scale(0.96);
  }
  .check-option:active {
    transform: scale(0.96);
  }
  .credit-pack:active {
    transform: scale(0.96);
  }
  .upgrade-cta:active {
    transform: scale(0.96);
  }
  .nav-link:active {
    transform: scale(0.97);
  }
  .field:focus-visible {
    outline: none;
    border-color: var(--shade-09);
    box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.08);
  }
  .btn:focus-visible {
    outline: 2px solid var(--shade-09_35);
    outline-offset: 2px;
  }
  .category-tab:focus-visible {
    outline: 2px solid var(--shade-09_35);
    outline-offset: 2px;
  }
  .check-option:focus-visible {
    outline: 2px solid var(--shade-09_35);
    outline-offset: 2px;
  }
  .credit-pack:focus-visible {
    outline: 2px solid var(--shade-09_35);
    outline-offset: 2px;
  }
  .lang-switch:focus-visible {
    outline: 2px solid var(--shade-09_35);
    outline-offset: 2px;
  }
  .product-card:focus-visible, .style-card:focus-visible, .image-card:focus-visible {
    outline: 2px solid var(--shade-09_35);
    outline-offset: 2px;
  }
  .nav-link {
    min-height: 2.5rem;
  }
  .lang-switch {
    min-height: 2.5rem;
  }
  .category-tab {
    min-height: 2.5rem;
  }
  .usage-badge {
    min-height: 2.5rem;
  }
  .modal-title, .history-empty {
    text-wrap: balance;
  }
  #toast-container {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
  }
  .toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    background: var(--shade-09);
    color: var(--shade-01);
    font-size: var(--text-body-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
    box-shadow: var(--shadow-floating);
    cursor: pointer;
    animation: toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .toast::before {
    content: "";
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
  }
  .toast-success::before {
    background: var(--color-green);
  }
  .toast-error::before {
    background: var(--color-red);
  }
  .toast-info::before {
    background: var(--color-blue);
  }
  .toast.toast-out {
    animation: toast-out 0.2s ease forwards;
  }
  @keyframes toast-in {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes toast-out {
    from {
      opacity: 1;
      transform: translateY(0);
    }
    to {
      opacity: 0;
      transform: translateY(-8px);
    }
  }
  .upload-section.dragging {
    border-color: var(--shade-09);
    background: var(--shade-09_05);
  }
  .prompt-count {
    align-self: flex-end;
    font-size: var(--text-body-sm);
    line-height: 1rem;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
  }
  .prompt-count.near-limit {
    color: var(--color-orange);
  }
  .prompt-count.at-limit {
    color: var(--color-red);
  }
  .option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
  }
  .option-chip {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding-inline: 0.75rem;
    border-radius: 9999px;
    background: var(--color-surface-03);
    font-size: var(--text-body-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1rem;
    color: var(--shade-09);
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .option-chip:hover {
    background: var(--color-s-01);
  }
  .scroll-sentinel {
    height: 1px;
    width: 100%;
  }
  .scroll-loading {
    display: flex;
    justify-content: center;
    padding: 1rem;
  }
  .search-box.searching .search-icon {
    animation: framly-spin 0.8s linear infinite;
  }
  .compare-container {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    touch-action: none;
    margin-bottom: 1.5rem;
  }
  .compare-before, .compare-after {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0.75rem;
  }
  .compare-after {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
  }
  html[dir="rtl"] .compare-after {
    clip-path: inset(0 0 0 var(--pos, 50%));
  }
  .compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 2;
    margin: 0;
  }
  .compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    width: 3px;
    background: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 3;
  }
  html[dir="rtl"] .compare-divider {
    left: auto;
    right: var(--pos, 50%);
    transform: translateX(50%);
  }
  .compare-handle {
    position: absolute;
    top: 50%;
    left: var(--pos, 50%);
    transform: translate(-50%, -50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 4;
  }
  html[dir="rtl"] .compare-handle {
    left: auto;
    right: var(--pos, 50%);
    transform: translate(50%, -50%);
  }
  .compare-handle svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--shade-07);
  }
  .compare-label {
    position: absolute;
    bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: var(--text-body-sm);
    font-weight: 600;
    pointer-events: none;
    z-index: 5;
  }
  .compare-label-before {
    inset-inline-start: 1rem;
  }
  .compare-label-after {
    inset-inline-end: 1rem;
  }
  .lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(13, 13, 13, 0.85);
  }
  .lightbox-content {
    position: relative;
    width: min(50rem, 100%);
    max-height: min(45rem, calc(100vh - 3rem));
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--color-surface-01);
    border: 1px solid var(--color-s-01);
    box-shadow: var(--shadow-floating);
  }
  .lightbox-image {
    width: 100%;
    border-radius: 0.75rem;
    background: var(--color-surface-03);
    margin-bottom: 1rem;
  }
  .lightbox-image img {
    display: block;
    width: 100%;
    border-radius: 0.75rem;
  }
  .lightbox-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: var(--text-body-md);
    color: var(--color-secondary);
  }
  .lightbox-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  .history-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 1rem;
    text-align: center;
  }
  .history-empty-icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-tertiary);
  }
  .history-empty-title {
    font-size: var(--text-h5);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 2rem;
    text-wrap: balance;
  }
  .history-empty-desc {
    font-size: var(--text-body-lg);
    line-height: 1.5rem;
    color: var(--color-secondary);
    max-width: 20rem;
  }
  .history-card.img-error img {
    display: none;
  }
  .history-card.img-error::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
    background: var(--color-surface-03);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23a8a8a8'%3E%3Cpath d='M2 5.5A1.5 1.5 0 013.5 4h13A1.5 1.5 0 0118 5.5v9a1.5 1.5 0 01-1.5 1.5h-13A1.5 1.5 0 012 14.5v-9zM6.25 8a.75.75 0 110-1.5.75.75 0 010 1.5zm2.5-1.5a.75.75 0 100 1.5.75.75 0 000-1.5zM5 13.5l2.25-3 1.75 2 2.5-3 3.5 4H5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 3rem;
  }
  .history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .modal-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .modal-overlay.modal-visible {
    opacity: 1;
    pointer-events: auto;
  }
  .modal-overlay .modal {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  }
  .modal-overlay.modal-visible .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  .modal-overlay.modal-closing {
    opacity: 0;
    pointer-events: none;
  }
  .modal-overlay.modal-closing .modal {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
  }
}
@media (width < 1023px) {
  .app-sidebar {
    inset-inline-start: -100%;
    z-index: 50;
    width: 15.5rem;
    box-shadow: var(--box-shadow-popover);
    transition: inset-inline-start 0.3s;
  }
  .app-sidebar.open {
    inset-inline-start: 0;
  }
  .sidebar-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
  }
}
@media (width < 767px) {
  .app-sidebar {
    width: 100%;
  }
}
[data-theme="dark"] .btn-primary {
  background: linear-gradient(to bottom, #3a3a3a, #333333);
  color: var(--shade-09);
  box-shadow: 0 3px 4px -1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px #444444;
}
[data-theme="dark"] .btn-outline {
  box-shadow: none;
}
[data-theme="dark"] .nav-link.active .nav-icon {
  background: var(--shade-02);
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .step-dot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 2px 0.8px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0.6px 0 rgba(0, 0, 0, 0.2), 0 1px 4.2px -1px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .step-btn.active .step-dot {
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.5), 0 0 0 0.25rem var(--shade-09_05);
}
[data-theme="dark"] .upload-section {
  background: var(--shade-02);
  border-color: var(--shade-04);
  box-shadow: none;
}
[data-theme="dark"] .usage-badge {
  box-shadow: none;
}
[data-theme="dark"] .skeleton::after {
  background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.04), transparent );
}
[data-theme="dark"] .product-card img, [data-theme="dark"] .style-card img, [data-theme="dark"] .image-card img, [data-theme="dark"] .history-card img, [data-theme="dark"] .preview-box img, [data-theme="dark"] .result-image img {
  outline-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .field:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 245, 245, 0.08);
}
[data-theme="dark"] .category-tab:focus-visible, [data-theme="dark"] .check-option:focus-visible, [data-theme="dark"] .credit-pack:focus-visible, [data-theme="dark"] .lang-switch:focus-visible, [data-theme="dark"] .product-card:focus-visible, [data-theme="dark"] .style-card:focus-visible, [data-theme="dark"] .image-card:focus-visible {
  outline-color: var(--shade-09_35);
}
[data-theme="dark"] .nav-link.active {
  border-color: var(--shade-05);
}
[data-theme="dark"] .history-status.completed {
  color: #6fd654;
}
[data-theme="dark"] .history-status.failed {
  color: #ff7a5c;
}
[data-theme="dark"] .history-status.pending {
  color: #ffc96b;
}
[data-theme="dark"] .history-status.processing {
  color: #6ba3ff;
}
[data-theme="dark"] .usage-badge.exceeded {
  color: #ff7a5c;
}
[data-theme="dark"] .auth-error {
  background: rgba(255, 122, 92, 0.08);
  border-color: rgba(255, 122, 92, 0.2);
  color: #ff7a5c;
}
[data-theme="dark"] .credit-pack:hover {
  border-color: var(--shade-04);
}
[data-theme="dark"] .spinner {
  border-top-color: var(--shade-09);
}
[data-theme="dark"] .sidebar-overlay {
  background: rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .history-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}
[data-theme="dark"] .toast, [data-theme="dark"] .error-banner, [data-theme="dark"] .success-msg {
  border: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .compare-label {
  background: rgba(0, 0, 0, 0.7);
}
.lightbox-overlay {
  background: rgba(0, 0, 0, 0.9);
}
@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-font-weight {
  syntax: "*";
  inherits: false;
}
@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;
}
@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-font-weight: initial;
      --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;
    }
  }
}
