/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
@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-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-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-scale-x: 1;
      --tw-scale-y: 1;
      --tw-scale-z: 1;
      --tw-animation-delay: 0s;
      --tw-animation-direction: normal;
      --tw-animation-duration: initial;
      --tw-animation-fill-mode: none;
      --tw-animation-iteration-count: 1;
      --tw-enter-blur: 0;
      --tw-enter-opacity: 1;
      --tw-enter-rotate: 0;
      --tw-enter-scale: 1;
      --tw-enter-translate-x: 0;
      --tw-enter-translate-y: 0;
      --tw-exit-blur: 0;
      --tw-exit-opacity: 1;
      --tw-exit-rotate: 0;
      --tw-exit-scale: 1;
      --tw-exit-translate-x: 0;
      --tw-exit-translate-y: 0;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: "Inter Variable", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --color-red-600: oklch(57.7% .245 27.325);
    --color-emerald-600: oklch(59.6% .145 163.225);
    --color-blue-600: oklch(54.6% .245 262.881);
    --color-gray-100: oklch(96.7% .003 264.542);
    --color-white: #fff;
    --spacing: .25rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: "Inter Variable", sans-serif;
    --default-mono-font-family: var(--font-mono);
    --expo-out: linear(0 0%, .1684 2.66%, .3165 5.49%, .446 8.52%, .5581 11.78%, .6535 15.29%, .7341 19.11%, .8011 23.3%, .8557 27.93%, .8962 32.68%, .9283 38.01%, .9529 44.08%, .9711 51.14%, .9833 59.06%, .9915 68.74%, 1 100%);
    --font-lecturis: "Lecturis", "Helvetica Neue", Arial, sans-serif;
  }
}

@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;
    -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;
  }

  * {
    border-color: var(--border);
    outline-color: var(--ring);
  }

  @supports (color: color-mix(in lab, red, red)) {
    * {
      outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
    }
  }

  body {
    background-color: var(--background);
    color: var(--foreground);
  }

  html {
    font-family: Inter Variable, sans-serif;
  }

  ::view-transition-group(root) {
    animation-timing-function: var(--expo-out);
  }

  ::view-transition-new(root) {
    transform-origin: 0 0;
    animation: 1s both scale;
    -webkit-mask: url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\"><defs><filter id=\"blur\"><feGaussianBlur stdDeviation=\"2\"/></filter></defs><circle cx=\"0\" cy=\"0\" r=\"18\" fill=\"white\" filter=\"url("%23blur")\"/></svg>") 0 0 / 0 no-repeat content-box border-box;
    mask: url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 40 40\"><defs><filter id=\"blur\"><feGaussianBlur stdDeviation=\"2\"/></filter></defs><circle cx=\"0\" cy=\"0\" r=\"18\" fill=\"white\" filter=\"url("%23blur")\"/></svg>") 0 0 / 0 no-repeat content-box border-box;
  }

  ::view-transition-old(root) {
    transform-origin: 0 0;
    z-index: -1;
    animation: 1s both scale;
  }

  .dark::view-transition-old(root) {
    transform-origin: 0 0;
    z-index: -1;
    animation: 1s both scale;
  }

  @keyframes scale {
    to {
      -webkit-mask-size: 350vmax;
      mask-size: 350vmax;
    }
  }
}

@layer components;

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

  .pointer-events-none {
    pointer-events: none;
  }

  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .inset-0 {
    inset: 0;
  }

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

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

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

  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }

  .mr-auto {
    margin-right: auto;
  }

  .mb-5 {
    margin-bottom: calc(var(--spacing) * 5);
  }

  .\!ml-0 {
    margin-left: 0 !important;
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .table {
    display: table;
  }

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

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

  .min-h-\[60vh\] {
    min-height: 60vh;
  }

  .min-h-screen {
    min-height: 100vh;
  }

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

  .w-\[90px\] {
    width: 90px;
  }

  .w-\[110px\] {
    width: 110px;
  }

  .w-full {
    width: 100%;
  }

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

  .min-w-\[200px\] {
    min-width: 200px;
  }

  .flex-1 {
    flex: 1;
  }

  .flex-\[0\.4\] {
    flex: .4;
  }

  .flex-\[0\.45\] {
    flex: .45;
  }

  .flex-\[1\.4\] {
    flex: 1.4;
  }

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

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

  .shrink {
    flex-shrink: 1;
  }

  .grow {
    flex-grow: 1;
  }

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

  .cursor-pointer {
    cursor: pointer;
  }

  .resize {
    resize: both;
  }

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

  .flex-wrap {
    flex-wrap: wrap;
  }

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

  .justify-between {
    justify-content: space-between;
  }

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

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

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

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

  .overflow-hidden {
    overflow: hidden;
  }

  .overflow-x-hidden {
    overflow-x: hidden;
  }

  .rounded-2xl {
    border-radius: calc(var(--radius) * 1.8);
  }

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

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

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

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

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

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

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

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

  .\!px-3 {
    padding-inline: calc(var(--spacing) * 3) !important;
  }

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

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

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

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

  .\!py-0 {
    padding-block: 0 !important;
  }

  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }

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

  .py-6 {
    padding-block: calc(var(--spacing) * 6);
  }

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

  .font-lecturis {
    font-family: var(--font-lecturis);
  }

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

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

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

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

  .text-\[10px\] {
    font-size: 10px;
  }

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

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

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

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

  .italic {
    font-style: italic;
  }

  .no-underline {
    text-decoration-line: none;
  }

  .opacity-0 {
    opacity: 0;
  }

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

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

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

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

  .transition-opacity\! {
    transition-property: opacity !important;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)) !important;
    transition-duration: var(--tw-duration, var(--default-transition-duration)) !important;
  }

  .transition-transform {
    transition-property: transform, translate, scale, rotate;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .duration-150 {
    --tw-duration: .15s;
    transition-duration: .15s;
  }

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

  .duration-500 {
    --tw-duration: .5s;
    transition-duration: .5s;
  }

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

  .running {
    animation-play-state: running;
  }

  @media (hover: hover) {
    .hover\:bg-gray-100:hover {
      background-color: var(--color-gray-100);
    }

    .hover\:underline:hover {
      text-decoration-line: underline;
    }
  }

  .focus-visible\:outline-2:focus-visible {
    outline-style: var(--tw-outline-style);
    outline-width: 2px;
  }

  .focus-visible\:outline-offset-2:focus-visible {
    outline-offset: 2px;
  }

  .active\:scale-95:active {
    --tw-scale-x: 95%;
    --tw-scale-y: 95%;
    --tw-scale-z: 95%;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }

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

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

  .data-\[ready\=true\]\:opacity-100[data-ready="true"] {
    opacity: 1;
  }

  @media not all and (min-width: 640px) {
    .max-\[640px\]\:\!pt-2 {
      padding-top: calc(var(--spacing) * 2) !important;
    }

    .max-\[640px\]\:\!pr-3 {
      padding-right: calc(var(--spacing) * 3) !important;
    }

    .max-\[640px\]\:\!pb-24 {
      padding-bottom: calc(var(--spacing) * 24) !important;
    }

    .max-\[640px\]\:\!pb-\[calc\(16px_\+_env\(safe-area-inset-bottom\)\)\] {
      padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }

    .max-\[640px\]\:\!pl-\[72px\] {
      padding-left: 72px !important;
    }
  }

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

    .sm\:py-6 {
      padding-block: calc(var(--spacing) * 6);
    }

    .sm\:py-8 {
      padding-block: calc(var(--spacing) * 8);
    }
  }

  @media (min-width: 48rem) {
    .md\:flex {
      display: flex;
    }

    .md\:hidden {
      display: none;
    }

    .md\:w-auto {
      width: auto;
    }

    .md\:w-full {
      width: 100%;
    }

    .md\:flex-none {
      flex: none;
    }

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

    .md\:flex-wrap {
      flex-wrap: wrap;
    }

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

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

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

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

@property --tw-animation-delay {
  syntax: "*";
  inherits: false;
  initial-value: 0s;
}

@property --tw-animation-direction {
  syntax: "*";
  inherits: false;
  initial-value: normal;
}

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

@property --tw-animation-fill-mode {
  syntax: "*";
  inherits: false;
  initial-value: none;
}

@property --tw-animation-iteration-count {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-enter-blur {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-enter-opacity {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-enter-rotate {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-enter-scale {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-enter-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-enter-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-blur {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-opacity {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-exit-rotate {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-scale {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-exit-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@font-face {
  font-family: Inter Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2") format("woff2-variations");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Inter Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2") format("woff2-variations");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Inter Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2") format("woff2-variations");
  unicode-range: U+1F??;
}

@font-face {
  font-family: Inter Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-greek-wght-normal-CkhJZR-_.woff2") format("woff2-variations");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: Inter Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2") format("woff2-variations");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Inter Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2") format("woff2-variations");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-latin-wght-normal-Dx4kXJAl.woff2") format("woff2-variations");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html, body, #root {
  background-color: var(--spa-bg, #eef2f8);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.hidden-mobile {
  display: flex;
}

.show-mobile {
  display: none;
}

@media (max-width: 959px) {
  .hidden-mobile {
    display: none !important;
  }

  .show-mobile {
    display: flex !important;
  }
}

:root {
  --background: oklch(100% 0 0);
  --foreground: oklch(14.5% 0 0);
  --card: oklch(100% 0 0);
  --card-foreground: oklch(14.5% 0 0);
  --popover: oklch(100% 0 0);
  --popover-foreground: oklch(14.5% 0 0);
  --primary: oklch(20.5% 0 0);
  --primary-foreground: oklch(98.5% 0 0);
  --secondary: oklch(97% 0 0);
  --secondary-foreground: oklch(20.5% 0 0);
  --muted: oklch(97% 0 0);
  --muted-foreground: oklch(55.6% 0 0);
  --accent: oklch(97% 0 0);
  --accent-foreground: oklch(20.5% 0 0);
  --destructive: oklch(57.7% .245 27.325);
  --border: oklch(92.2% 0 0);
  --input: oklch(92.2% 0 0);
  --ring: oklch(70.8% 0 0);
  --chart-1: oklch(87% 0 0);
  --chart-2: oklch(55.6% 0 0);
  --chart-3: oklch(43.9% 0 0);
  --chart-4: oklch(37.1% 0 0);
  --chart-5: oklch(26.9% 0 0);
  --radius: .625rem;
  --sidebar: oklch(98.5% 0 0);
  --sidebar-foreground: oklch(14.5% 0 0);
  --sidebar-primary: oklch(20.5% 0 0);
  --sidebar-primary-foreground: oklch(98.5% 0 0);
  --sidebar-accent: oklch(97% 0 0);
  --sidebar-accent-foreground: oklch(20.5% 0 0);
  --sidebar-border: oklch(92.2% 0 0);
  --sidebar-ring: oklch(70.8% 0 0);
}

.dark {
  --background: oklch(14.5% 0 0);
  --foreground: oklch(98.5% 0 0);
  --card: oklch(20.5% 0 0);
  --card-foreground: oklch(98.5% 0 0);
  --popover: oklch(20.5% 0 0);
  --popover-foreground: oklch(98.5% 0 0);
  --primary: oklch(92.2% 0 0);
  --primary-foreground: oklch(20.5% 0 0);
  --secondary: oklch(26.9% 0 0);
  --secondary-foreground: oklch(98.5% 0 0);
  --muted: oklch(26.9% 0 0);
  --muted-foreground: oklch(70.8% 0 0);
  --accent: oklch(26.9% 0 0);
  --accent-foreground: oklch(98.5% 0 0);
  --destructive: oklch(70.4% .191 22.216);
  --border: oklch(100% 0 0 / .1);
  --input: oklch(100% 0 0 / .15);
  --ring: oklch(55.6% 0 0);
  --chart-1: oklch(87% 0 0);
  --chart-2: oklch(55.6% 0 0);
  --chart-3: oklch(43.9% 0 0);
  --chart-4: oklch(37.1% 0 0);
  --chart-5: oklch(26.9% 0 0);
  --sidebar: oklch(20.5% 0 0);
  --sidebar-foreground: oklch(98.5% 0 0);
  --sidebar-primary: oklch(48.8% .243 264.376);
  --sidebar-primary-foreground: oklch(98.5% 0 0);
  --sidebar-accent: oklch(26.9% 0 0);
  --sidebar-accent-foreground: oklch(98.5% 0 0);
  --sidebar-border: oklch(100% 0 0 / .1);
  --sidebar-ring: oklch(55.6% 0 0);
}

@font-face {
  font-family: Lecturis;
  src: url("/fonts/FHLecturisTest-Light.woff2") format("woff2"), url("/fonts/FHLecturisTest-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Lecturis;
  src: url("/fonts/FHLecturisTest-Regular.woff2") format("woff2"), url("/fonts/FHLecturisTest-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Lecturis;
  src: url("/fonts/FHLecturisTest-Bold.woff2") format("woff2"), url("/fonts/FHLecturisTest-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@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-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

@property --tw-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-scale-x {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-scale-y {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-scale-z {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
/* ============================================================================
   Serenity Spa — calendar workspace design system
   A premium, dark, glassmorphic aesthetic. Self-contained (no external assets).
   ========================================================================== */
:root {
  --spa-bg: #eef2f8;
  --spa-bg-2: #f5f8fc;
  --spa-surface: rgba(255, 255, 255, 0.68);
  --spa-surface-2: rgba(255, 255, 255, 0.85);
  --spa-surface-3: rgba(255, 255, 255, 0.96);
  --spa-border: rgba(15, 23, 42, 0.08);
  --spa-border-strong: rgba(15, 23, 42, 0.16);
  --spa-text: #0f172a;
  --spa-text-2: #475569;
  --spa-text-3: #94a3b8;
  --spa-accent: #10b981;      /* emerald */
  --spa-accent-2: #7c3aed;    /* violet  */
  --spa-gold: #d97706;
  --spa-danger: #e11d48;
  --spa-radius: 16px;
  --rail-w: 264px;
  --panel-w: 340px;
  --topbar-h: 62px;
  --slot-h: 20px;             /* height of one 15-min slot (day/week) */
  --slot-w: 40px;             /* width of one 15-min slot (day timeline) */
  --res-col-w: 210px;         /* employee column width in day timeline */
  --wk-line: rgba(15, 23, 42, 0.06);        /* week grid: 15-min lines */
  --wk-line-strong: rgba(15, 23, 42, 0.12); /* week grid: hour lines */
  --font: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
}

.spa-app,
.spa-app * {
  box-sizing: border-box;
}

/* snappy taps on phones: drop the 300ms double-tap-zoom delay on controls */
.spa-app button, .spa-app a, .spa-app input, .spa-app select, .spa-app textarea,
.spa-app .evt, .spa-app .wk-evt, .spa-app .wk-dayhead, .spa-app .mo-cell,
.spa-app .mini-day, .spa-app .spa-card, .spa-app .spa-pick, .spa-app .spa-tab,
.spa-app .spa-nav-item, .spa-app .spa-nav-fab { touch-action: manipulation; }
.spa-app {
  font-family: var(--font);
  color: var(--spa-text);
  height: 100%;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, rgba(124, 58, 237, 0.09), transparent 55%),
    radial-gradient(900px 700px at 90% 110%, rgba(56, 189, 248, 0.08), transparent 60%),
    linear-gradient(180deg, var(--spa-bg-2), var(--spa-bg));
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr;
}

/* thin, elegant scrollbars everywhere in the app */
.spa-app ::-webkit-scrollbar, .spa-shell ::-webkit-scrollbar { width: 9px; height: 9px; }
.spa-app ::-webkit-scrollbar-thumb, .spa-shell ::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.spa-app ::-webkit-scrollbar-thumb:hover, .spa-shell ::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.32); background-clip: content-box; }
.spa-app ::-webkit-scrollbar-track { background: transparent; }

/* ───────────────────────────────────────────────── topbar */
.spa-topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-bottom: 1px solid var(--spa-border);
  box-shadow: 0 1px 20px rgba(15, 23, 42, 0.05);
  z-index: 40;
}
.spa-brand { display: flex; align-items: center; gap: 11px; user-select: none; }
.spa-brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; color: #ffffff;
  background: linear-gradient(140deg, var(--spa-accent), #10b981 55%, #059669);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255,255,255,0.35);
}
.spa-brand-name { font-weight: 700; letter-spacing: -0.3px; font-size: 15.5px; }
.spa-brand-sub { font-size: 11px; color: var(--spa-text-3); margin-top: -2px; letter-spacing: 0.2px; }

.spa-seg {
  display: flex; align-items: center; gap: 2px;
  background: var(--spa-surface); border: 1px solid var(--spa-border);
  padding: 3px; border-radius: 12px; margin-left: auto;
}
/* date-nav + view switcher: inline on desktop, collapsible sheet on phones */
.spa-top-controls { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }

/* phone-only controls (view/date toggle, staff toggle): hidden until ≤640px */
.spa-phone-only { display: none; }

/* spinner used on toggle buttons when tapped ("revolver" feedback) */
@keyframes spa-revolve { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spa-revolve { animation: spa-revolve 0.5s cubic-bezier(0.34, 1.2, 0.64, 1); }
@keyframes spa-sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.spa-seg button {
  border: 0; background: transparent; color: var(--spa-text-2);
  font: inherit; font-size: 12.5px; font-weight: 550;
  padding: 6px 13px; border-radius: 9px; cursor: pointer;
  transition: all 0.16s ease; text-transform: capitalize;
}
.spa-seg button:hover { color: var(--spa-text); background: var(--spa-surface-2); }
.spa-seg button.active {
  color: #ffffff;
  background: linear-gradient(140deg, var(--spa-accent), #10b981);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.spa-navbtn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--spa-border);
  background: var(--spa-surface); color: var(--spa-text-2); cursor: pointer;
  transition: all 0.15s ease;
}
.spa-navbtn:hover { color: var(--spa-text); background: var(--spa-surface-2); border-color: var(--spa-border-strong); }
.spa-range-label { font-weight: 650; font-size: 14.5px; min-width: 150px; text-align: center; letter-spacing: -0.2px; }
.spa-today-btn {
  padding: 7px 15px; border-radius: 10px; font-weight: 600; font-size: 12.5px;
  border: 1px solid var(--spa-border-strong); background: var(--spa-surface);
  color: var(--spa-text); cursor: pointer; transition: all 0.15s;
}
.spa-today-btn:hover { background: var(--spa-surface-2); }

.spa-user {
  display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 12px;
  border-radius: 12px; border: 1px solid var(--spa-border); background: var(--spa-surface);
}
.spa-avatar {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 700; font-size: 12px; color: #fff;
  background: linear-gradient(140deg, var(--spa-accent-2), #7c3aed);
}
.spa-iconbtn {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: var(--spa-text-2);
  cursor: pointer; transition: all 0.15s;
}
.spa-iconbtn:hover { color: var(--spa-danger); background: rgba(251, 113, 133, 0.12); }

/* ───────────────────────────────────────────────── body layout */
.spa-body {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr var(--panel-w);
  min-height: 0;
  overflow: hidden;
}
.spa-body.no-rail { grid-template-columns: 1fr var(--panel-w); }
@media (max-width: 980px) { .spa-body.no-rail { grid-template-columns: 1fr; } }

/* staff search inside the scheduler corner */
.sch-corner { gap: 8px; }
.sch-staff-search {
  border: 0; outline: 0; background: transparent; font: inherit; font-size: 12.5px;
  color: var(--spa-text); width: 100%; font-weight: 500;
}
.sch-staff-search::placeholder { color: var(--spa-text-3); }

/* ───────────────────────────────────────────────── side surfaces */
.spa-side {
  min-height: 0; overflow: hidden; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.018);
}
.spa-rail { border-right: 1px solid var(--spa-border); }
.spa-panel { border-left: 1px solid var(--spa-border); }

.spa-side-head {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px;
}
.spa-side-title { font-weight: 650; font-size: 13.5px; letter-spacing: -0.2px; }
.spa-side-count {
  margin-left: auto; font-size: 11px; font-weight: 650; color: var(--spa-text-2);
  background: var(--spa-surface-2); padding: 2px 9px; border-radius: 99px;
}
.spa-search {
  margin: 0 14px 10px; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 11px;
  background: var(--spa-surface); border: 1px solid var(--spa-border);
}
.spa-search input {
  border: 0; outline: 0; background: transparent; color: var(--spa-text);
  font: inherit; font-size: 13px; width: 100%;
}
.spa-search input::placeholder { color: var(--spa-text-3); }

.spa-tabs { display: flex; gap: 4px; padding: 0 12px 8px; }
.spa-tab {
  flex: 1; text-align: center; font-size: 11.5px; font-weight: 600;
  padding: 7px 4px; border-radius: 9px; cursor: pointer; color: var(--spa-text-2);
  border: 1px solid transparent; transition: all 0.15s; white-space: nowrap;
}
.spa-tab:hover { color: var(--spa-text); background: var(--spa-surface); }
.spa-tab.active { color: var(--spa-text); background: var(--spa-surface-2); border-color: var(--spa-border); }

.spa-list { flex: 1; overflow-y: auto; padding: 4px 10px 16px; display: flex; flex-direction: column; gap: 6px; }

.spa-card {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px;
  border-radius: 12px; border: 1px solid var(--spa-border); background: var(--spa-surface);
  cursor: grab; transition: transform 0.12s ease, background 0.15s, border-color 0.15s;
  user-select: none;
}
.spa-card:hover { background: var(--spa-surface-2); border-color: var(--spa-border-strong); transform: translateY(-1px); }
.spa-card:active { cursor: grabbing; }
.spa-card.dragging { opacity: 0.5; }
.spa-chip-avatar {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff;
}
.spa-card-body { min-width: 0; flex: 1; }
.spa-card-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spa-card-sub { font-size: 11.5px; color: var(--spa-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.spa-card-meta { font-size: 11px; font-weight: 650; color: var(--spa-text-2); flex-shrink: 0; }

.spa-empty { color: var(--spa-text-3); font-size: 12.5px; text-align: center; padding: 26px 10px; }

/* summary tiles (right panel today) */
.spa-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 14px 12px; }
.spa-tile {
  border-radius: 13px; border: 1px solid var(--spa-border); padding: 11px 13px;
  background: linear-gradient(160deg, var(--spa-surface-2), var(--spa-surface));
}
.spa-tile-label { font-size: 11px; color: var(--spa-text-2); font-weight: 600; }
.spa-tile-value { font-size: 20px; font-weight: 750; margin-top: 3px; letter-spacing: -0.5px; }

/* ───────────────────────────────────────────────── center */
.spa-center { min-height: 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; }

/* Day timeline scheduler */
.sch { flex: 1; overflow: auto; position: relative; }
.sch-grid { position: relative; }
.sch-corner {
  position: sticky; top: 0; left: 0; z-index: 6;
  width: var(--res-col-w); height: 46px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border-right: 1px solid var(--spa-border); border-bottom: 1px solid var(--spa-border);
  display: flex; align-items: center; padding: 0 16px; font-size: 12px; font-weight: 650; color: var(--spa-text-2);
}
.sch-timehead {
  position: sticky; top: 0; z-index: 5; height: 46px; display: flex;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--spa-border);
}
.sch-hour {
  flex: 0 0 calc(var(--slot-w) * 4); width: calc(var(--slot-w) * 4);
  border-right: 1px solid var(--spa-border);
  font-size: 11.5px; font-weight: 600; color: var(--spa-text-2);
  display: flex; align-items: center; padding-left: 8px;
}
.sch-row { display: flex; border-bottom: 1px solid var(--spa-border); position: relative; }
.sch-rowhead {
  position: sticky; left: 0; z-index: 4; width: var(--res-col-w); flex-shrink: 0;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border-right: 1px solid var(--spa-border);
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
}
.sch-lane { position: relative; flex: 1; }
.sch-lane-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    repeating-linear-gradient(to right, transparent 0, transparent calc(var(--slot-w) - 1px), var(--spa-border) calc(var(--slot-w) - 1px), var(--spa-border) var(--slot-w)),
    repeating-linear-gradient(to right, transparent 0, transparent calc(var(--slot-w) * 4 - 1px), var(--spa-border-strong) calc(var(--slot-w) * 4 - 1px), var(--spa-border-strong) calc(var(--slot-w) * 4));
}
/* subtle current-time tint on each lane (the animated marker lives in .sch-now) */
.sch-lane.now::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; z-index: 0;
  left: var(--now-left, -10px);
  background: rgba(244, 63, 94, 0.18);
}

/* a booking block on the day timeline (absolute inside a lane) */
.evt {
  position: absolute; top: 4px; bottom: 4px; z-index: 2;
  border-radius: 10px; padding: 6px 9px; overflow: hidden; cursor: grab;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28),
              inset 0 -14px 22px -16px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
}
.evt:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.3); z-index: 3; }
.evt:active { cursor: grabbing; }
.evt.dragging { opacity: 0.85; z-index: 20; box-shadow: 0 14px 34px rgba(0,0,0,0.55); }
.evt-title { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.evt-ref-row { line-height: 1; margin-bottom: 2px; max-width: 100%; overflow: hidden; }
.evt-ref {
  display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: 0.3px; line-height: 1.3;
  padding: 1.5px 6px; border-radius: 6px; max-width: 100%;
  background: color-mix(in srgb, currentColor 20%, transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top;
}
.wz-ref {
  font-size: 12px; font-weight: 800; letter-spacing: 0.3px; color: var(--spa-accent);
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.28);
  padding: 2px 10px; border-radius: 99px; white-space: nowrap;
}
.evt-sub { font-size: 10.5px; font-weight: 600; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evt-handle { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 4; }
.evt-invoiced { position: absolute; top: 5px; right: 8px; opacity: 0.9; }
.evt.ghost { opacity: 0.5; border: 2px dashed rgba(255,255,255,0.6); background: rgba(255,255,255,0.08) !important; box-shadow: none; pointer-events: none; }

/* hover tooltip for a booking */
.evt-tip {
  position: fixed; z-index: 130; pointer-events: none; overflow: hidden;
  border-radius: 18px; background: #fff; border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 56px -16px color-mix(in srgb, var(--c) 50%, rgba(24, 39, 75, 0.55)),
              0 0 0 1px rgba(15, 23, 42, 0.04);
  font-family: var(--font); animation: spa-pop 0.14s ease;
}
.evt-tip-top { display: flex; align-items: center; gap: 8px; padding: 11px 14px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08); }
.evt-tip-ref { font-size: 13px; font-weight: 850; letter-spacing: 0.3px; }
.evt-tip-state { margin-left: auto; font-size: 9.5px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.4px; padding: 3px 9px; border-radius: 99px; }
.evt-tip-body { padding: 12px 14px 13px; }
.evt-tip-cust { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.evt-tip-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
.evt-tip-name { font-size: 14px; font-weight: 760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evt-tip-serv { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--spa-accent-2); font-weight: 650; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evt-tip-serv svg { flex-shrink: 0; }
.evt-tip-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--spa-text); padding: 4px 0; }
.evt-tip-row svg { color: var(--spa-text-3); flex-shrink: 0; }
.evt-tip-dur { margin-left: auto; font-size: 10.5px; font-weight: 750; color: var(--spa-text-2); background: rgba(15,23,42,0.05); padding: 2px 9px; border-radius: 99px; }
.evt-tip-note { font-size: 11.5px; color: var(--spa-text-2); background: rgba(15,23,42,0.03); border-radius: 10px; padding: 8px 11px; margin: 8px 0 2px; font-style: italic; }
.evt-tip-total {
  display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding: 10px 12px; border-radius: 12px;
  font-size: 13px; color: var(--spa-text-2); font-weight: 650;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), color-mix(in srgb, var(--c) 7%, transparent));
}
.evt-tip-total b { font-size: 16px; color: var(--spa-text); font-weight: 850; }
.evt-tip-inv { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; font-weight: 700; color: var(--spa-accent-2); }

/* week / time-grid */
.wk { flex: 1; overflow: auto; }
.wk-grid { display: grid; grid-template-columns: 64px repeat(7, 1fr); position: relative; min-width: 760px; }
.wk-corner, .wk-dayhead {
  position: sticky; top: 0; z-index: 5; height: 56px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--spa-border);
}
.wk-dayhead { display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid var(--spa-border); cursor: pointer; }
.wk-dayhead:hover { background: var(--spa-surface); }
.wk-dow { font-size: 11px; color: var(--spa-text-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.wk-dom { font-size: 18px; font-weight: 700; margin-top: 2px; }
.wk-dayhead.today .wk-dom { color: #06120d; background: var(--spa-accent); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-top: 0; }
.wk-timecol { border-right: 1px solid var(--spa-border); }
.wk-timelabel { height: calc(var(--slot-h) * 4); font-size: 11px; color: var(--spa-text-3); text-align: right; padding-right: 8px; transform: translateY(-6px); }
.wk-col { border-left: 1px solid var(--spa-border); position: relative; }
.wk-col .slotline { height: var(--slot-h); border-bottom: 1px dashed rgba(255,255,255,0.05); }
.wk-col .slotline.hour { border-bottom: 1px solid var(--spa-border); }
.wk-evt {
  position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 4px 7px; overflow: hidden;
  z-index: 2; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.wk-evt-title { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-evt-sub { font-size: 10px; font-weight: 600; opacity: 0.85; }

/* month grid */
.mo { flex: 1; overflow: auto; padding: 10px 14px 16px; display: flex; flex-direction: column; }
.mo-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 0 2px 8px; }
.mo-dow div { font-size: 11px; font-weight: 650; color: var(--spa-text-2); text-transform: uppercase; letter-spacing: 0.4px; }
.mo-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 8px; flex: 1; min-height: 0; }
.mo-cell {
  border: 1px solid var(--spa-border); border-radius: 13px; background: var(--spa-surface);
  padding: 8px 9px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.mo-cell:hover { background: var(--spa-surface-2); border-color: var(--spa-border-strong); transform: translateY(-1px); }
.mo-cell.dim { opacity: 0.4; }
.mo-cell.today { border-color: var(--spa-accent); box-shadow: 0 0 0 1px var(--spa-accent) inset; }
.mo-date { font-size: 13px; font-weight: 650; }
.mo-cell.today .mo-date { color: var(--spa-accent); }
.mo-chip {
  font-size: 10.5px; font-weight: 650; border-radius: 6px; padding: 2px 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.mo-more { font-size: 10.5px; color: var(--spa-text-2); font-weight: 600; }

/* quarter / year mini months */
.mini-wrap { flex: 1; overflow: auto; padding: 16px; }
.mini-grid { display: grid; gap: 16px; }
.mini-grid.q { grid-template-columns: repeat(3, 1fr); }
.mini-grid.y { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mini {
  border: 1px solid var(--spa-border); border-radius: 16px; padding: 14px;
  background: var(--spa-surface); display: flex; flex-direction: column; gap: 8px;
}
.mini-title { font-weight: 700; font-size: 14px; }
.mini-dows, .mini-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mini-dows div { font-size: 9.5px; color: var(--spa-text-3); text-align: center; font-weight: 600; }
.mini-day {
  aspect-ratio: 1; border-radius: 7px; display: grid; place-items: center; position: relative;
  font-size: 11px; color: var(--spa-text-2); cursor: pointer; transition: background 0.12s;
}
.mini-day:hover { background: var(--spa-surface-2); color: var(--spa-text); }
.mini-day.dim { opacity: 0.28; }
.mini-day.today { background: var(--spa-accent); color: #06120d; font-weight: 700; }
.mini-dot {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
}
.mini-count {
  position: absolute; top: 1px; right: 3px; font-size: 8px; font-weight: 700;
  color: var(--spa-accent);
}

/* ───────────────────────────────────────────────── modal / wizard */
.spa-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(15, 23, 42, 0.30); backdrop-filter: blur(6px);
  padding: 18px; animation: spa-fade 0.18s ease;
}
@keyframes spa-fade { from { opacity: 0; } to { opacity: 1; } }
.spa-modal {
  width: 100%; max-width: 520px; max-height: 90vh; overflow: auto;
  border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.9);
  background: #ffffff;
  box-shadow: 0 40px 90px -24px rgba(24, 39, 75, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.04);
  animation: spa-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes spa-pop { from { transform: translateY(12px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
/* toast slides up into view from below its resting position (bottom of screen) */
@keyframes spa-toast-up { from { transform: translate(-50%, 150%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.spa-modal-head {
  position: relative; padding: 22px 22px 16px; display: flex; align-items: center; gap: 13px;
  background:
    radial-gradient(420px 120px at 12% 0%, rgba(52, 211, 153, 0.14), transparent 70%),
    radial-gradient(420px 120px at 100% 0%, rgba(124, 58, 237, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0));
  border-bottom: 1px solid var(--spa-border);
}
.spa-modal-head > div:first-child { box-shadow: 0 10px 22px -6px rgba(16, 185, 129, 0.5); }
.spa-modal-title { font-size: 19px; font-weight: 780; letter-spacing: -0.4px; }
.spa-modal-sub { font-size: 12.5px; color: var(--spa-text-2); margin-top: 2px; font-weight: 550; }
.spa-modal-body { padding: 14px 22px 8px; }
.spa-modal-foot { padding: 14px 22px 20px; display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--spa-border); margin-top: 6px; }

.spa-steps { display: flex; gap: 7px; padding: 14px 22px 4px; }
.spa-step { flex: 1; height: 5px; border-radius: 99px; background: rgba(15, 23, 42, 0.08); transition: background 0.25s ease, box-shadow 0.25s ease; }
.spa-step.active { background: linear-gradient(90deg, var(--spa-accent), var(--spa-accent-2)); box-shadow: 0 2px 10px -2px rgba(16, 185, 129, 0.5); }

.spa-label { font-size: 11.5px; font-weight: 650; color: var(--spa-text-2); margin: 12px 0 6px; display: block; letter-spacing: 0.2px; }
.spa-input, .spa-select {
  width: 100%; padding: 11px 13px; border-radius: 12px; font: inherit; font-size: 13.5px;
  color: var(--spa-text); background: var(--spa-surface); border: 1px solid var(--spa-border); outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.spa-input:focus, .spa-select:focus { border-color: var(--spa-accent); background: var(--spa-surface-2); }
.spa-select option { background: #ffffff; color: var(--spa-text); }
textarea.spa-input { resize: vertical; min-height: 64px; }

.spa-pick-list { max-height: 340px; overflow: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.spa-pick {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--spa-border); background: #fff;
  transition: transform 0.13s ease, border-color 0.14s, box-shadow 0.16s, background 0.14s;
}
.spa-pick:hover { border-color: var(--spa-border-strong); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(24, 39, 75, 0.28); }
.spa-pick.selected { border-color: var(--spa-accent); background: rgba(52, 211, 153, 0.09); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.14); }
.spa-pick-title { font-size: 13.5px; font-weight: 650; }
.spa-pick-sub { font-size: 11.5px; color: var(--spa-text-2); margin-top: 1px; }
.spa-pick-right { margin-left: auto; text-align: right; font-size: 12.5px; font-weight: 750; color: var(--spa-accent); }

.btn {
  border: 0; font: inherit; font-weight: 650; font-size: 13.5px; padding: 11px 18px;
  border-radius: 12px; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { color: #ffffff; background: linear-gradient(140deg, var(--spa-accent), #10b981); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { color: var(--spa-text); background: var(--spa-surface-2); border: 1px solid var(--spa-border); }
.btn-ghost:hover { background: var(--spa-surface-3); }
.btn-gold { color: #1a1405; background: linear-gradient(140deg, var(--spa-gold), #eab308); }
.btn-danger { color: var(--spa-danger); background: rgba(251, 113, 133, 0.12); border: 1px solid rgba(251,113,133,0.25); }
.btn-danger:hover { background: rgba(251, 113, 133, 0.2); }
.btn.mr-auto { margin-right: auto; }

.spa-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.3px;
}
.pill-draft { background: rgba(15,23,42,0.07); color: var(--spa-text-2); }
.pill-posted { background: rgba(52, 211, 153, 0.16); color: var(--spa-accent); }
.pill-paid { background: rgba(52, 211, 153, 0.16); color: var(--spa-accent); }
.pill-done { background: rgba(167, 139, 250, 0.16); color: var(--spa-accent-2); }
.pill-cancel { background: rgba(225, 29, 72, 0.12); color: var(--spa-danger); }

/* small button variant */
.btn.btn-sm { padding: 5px 10px; font-size: 12px; gap: 5px; }

/* linked invoices panel inside the booking wizard */
.wz-invoices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.wz-inv-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border: 1px solid var(--spa-border); border-radius: 12px; padding: 8px 10px;
  background: var(--spa-surface);
}
.wz-inv-cancelled { opacity: 0.6; }
.wz-inv-posted { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.05); }
.wz-inv-main {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  background: none; border: 0; cursor: pointer; padding: 0; color: var(--spa-text);
  font-weight: 700; font-size: 13px;
}
.wz-inv-name { white-space: nowrap; }
.wz-inv-amt { margin-left: auto; font-weight: 800; }
.wz-inv-acts { display: flex; align-items: center; gap: 6px; }

/* posted-invoice lock banner */
.wz-lock {
  display: flex; align-items: center; gap: 9px; margin: 2px 0 12px;
  padding: 10px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600;
  color: #9a6a00; background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.32);
}
.wz-qty button:disabled { opacity: 0.4; cursor: not-allowed; }

/* restrict-to-staff toggle */
.wz-toggle {
  display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 2px;
  padding: 11px 13px; border-radius: 12px; cursor: pointer;
  background: var(--spa-surface); border: 1px solid var(--spa-border);
}
.wz-toggle input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--spa-accent); cursor: pointer; }
.wz-toggle input:disabled { cursor: not-allowed; }
.wz-toggle b { display: block; font-size: 13px; color: var(--spa-text); }
.wz-toggle small { display: block; font-size: 11.5px; color: var(--spa-text-2); margin-top: 2px; line-height: 1.4; }

/* invoice state badge that adapts to a coloured card (colour set inline) */
.inv-chip {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.4px; padding: 3px 9px; border-radius: 99px;
  border: 1px solid; backdrop-filter: blur(2px);
}

/* toast */
.spa-toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200;
  padding: 12px 20px; border-radius: 13px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--spa-border-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5); animation: spa-toast-up 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: center; gap: 10px; max-width: 90vw;
}
.spa-toast.err { border-color: rgba(251,113,133,0.4); }
.spa-toast.ok { border-color: rgba(52,211,153,0.4); }
.spa-toast.info { border-color: rgba(59,130,246,0.45); }

/* spinner */
.spa-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(15,23,42,0.10); border-top-color: var(--spa-accent); animation: spa-spin 0.8s linear infinite; }
@keyframes spa-spin { to { transform: rotate(360deg); } }
.spa-loading { flex: 1; display: grid; place-items: center; }

/* mobile drawers */
.spa-mobile-toggle { display: none; }
.spa-scrim { display: none; }

@media (max-width: 1180px) {
  :root { --panel-w: 300px; --rail-w: 230px; }
}
@media (max-width: 980px) {
  .spa-body { grid-template-columns: 1fr; }
  .spa-side {
    position: fixed; top: var(--topbar-h); bottom: 0; width: 300px; z-index: 60;
    background: #ffffff; transition: transform 0.25s ease;
  }
  .spa-rail { left: 0; transform: translateX(-102%); border-right: 1px solid var(--spa-border-strong); }
  .spa-panel { right: 0; transform: translateX(102%); border-left: 1px solid var(--spa-border-strong); }
  .spa-rail.open { transform: none; }
  .spa-panel.open { transform: none; }
  .spa-scrim.show { display: block; position: fixed; inset: var(--topbar-h) 0 0; background: rgba(0,0,0,0.5); z-index: 55; }
  .spa-mobile-toggle { display: grid; }
}
@media (max-width: 640px) {
  .spa-range-label { min-width: 90px; font-size: 12.5px; }
  .spa-brand-sub { display: none; }
  .spa-brand { flex: 1 1 auto; min-width: 0; }
  .spa-brand-name { font-size: 14px; }

  /* collapse the date nav + view switcher into a slide-down sheet */
  .spa-top-controls { display: none; }
  .spa-top-controls.open {
    display: flex; flex-direction: column; gap: 10px;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 45;
    padding: 12px 14px 16px;
    background: var(--spa-surface-3);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--spa-border-strong);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.20);
    animation: spa-sheet-in 0.18s ease;
  }
  .spa-top-controls.open .spa-top-nav { width: 100%; justify-content: space-between; margin-left: 0; }
  .spa-top-controls.open .spa-seg { margin-left: 0; width: 100%; }
  .spa-top-controls.open .spa-seg button { flex: 1; }

  /* phone-only toggle button that reveals the controls sheet */
  .spa-phone-only { display: grid; place-items: center; }
  .spa-top-controls-btn { margin-left: 4px; }
}
@media (max-width: 420px) {
  .spa-brand-name, .spa-brand-sub { display: none; }
}

.hide-sm { display: inline; }
@media (max-width: 620px) { .hide-sm { display: none !important; } }

/* ============================================================================
   App shell + navigation rail
   ========================================================================== */
.spa-shell {
  height: 100vh; height: 100dvh; width: 100vw; overflow: hidden;
  display: grid; grid-template-columns: 84px 1fr;
  font-family: var(--font); color: var(--spa-text);
  background:
    radial-gradient(1100px 600px at 8% -6%, rgba(52, 211, 153, 0.09), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(167, 139, 250, 0.10), transparent 55%),
    linear-gradient(180deg, var(--spa-bg-2), var(--spa-bg));
}
.spa-shell-content { min-width: 0; height: 100vh; height: 100dvh; overflow: hidden; }

.spa-nav {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px; overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-right: 1px solid var(--spa-border);
}
.spa-nav-brand {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  color: #ffffff; margin-bottom: 10px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--spa-accent), #10b981 55%, #059669);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.spa-nav-items { display: flex; flex-direction: column; gap: 6px; flex: 1; width: 100%; align-items: center; }
.spa-nav-item {
  position: relative; width: 66px; padding: 6px 4px 5px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: var(--spa-text-3); background: transparent; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 10px; font-weight: 650; letter-spacing: 0.1px;
  transition: color 0.16s ease;
}
.spa-nav-ico {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.18s ease, color 0.16s ease;
}
.spa-nav-lbl { opacity: 0.95; }
.spa-nav-item:hover { color: color-mix(in srgb, var(--c) 60%, var(--spa-text)); }
.spa-nav-item:hover .spa-nav-ico {
  background: color-mix(in srgb, var(--c) 22%, transparent);
  transform: translateY(-2px);
}
.spa-nav-item.active { color: var(--c); }
.spa-nav-item.active .spa-nav-ico {
  color: #fff;
  background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 62%, #000));
  border-color: transparent;
  box-shadow: 0 10px 20px -6px var(--c), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}
.spa-nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 24px; border-radius: 3px;
  background: var(--c); box-shadow: 0 0 10px var(--c);
}
.spa-nav-item.logout { color: var(--spa-text-3); }
.spa-nav-item.logout:hover { color: var(--spa-danger); background: rgba(251, 113, 133, 0.12); }

.spa-nav-foot { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--spa-border); }
.spa-nav-user {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px;
  padding: 8px 4px; border-radius: 14px; border: 1px solid transparent;
  background: transparent; cursor: pointer; font: inherit; transition: background 0.15s, border-color 0.15s;
}
.spa-nav-user:hover { background: var(--spa-surface-2); border-color: var(--spa-border); }

.spa-nav-scrim { position: fixed; inset: 0; z-index: 125; }
.spa-nav-menu {
  position: fixed; left: 14px; bottom: 66px; z-index: 135; width: 210px;
  background: #ffffff; border: 1px solid var(--spa-border-strong); border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(24, 39, 75, 0.35); overflow: hidden;
  animation: spa-pop 0.16s ease;
}
.spa-nav-menu-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--spa-border); }
.spa-nav-menu-name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spa-nav-menu-sub { font-size: 11.5px; color: var(--spa-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.spa-nav-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px 14px;
  border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--spa-danger); cursor: pointer; transition: background 0.14s;
}
.spa-nav-menu-item:hover { background: rgba(225, 29, 72, 0.08); }
@media (max-width: 640px) { .spa-nav-menu { left: 8px; width: 190px; } }
.spa-nav-avatar {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #fff;
  background: linear-gradient(140deg, var(--spa-accent-2), #7c3aed);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.spa-nav-uname {
  font-size: 10.5px; font-weight: 700; color: var(--spa-text-2); max-width: 68px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; letter-spacing: 0.1px;
}
@media (max-width: 640px) { .spa-nav-uname { display: none; } .spa-nav-avatar { width: 32px; height: 32px; } }

/* FAB + scrim are only shown on phones (see the ≤640px block below) */
.spa-nav-fab { display: none; }
.spa-nav-rail-scrim { display: none; }

/* tablet / landscape phones: keep a slim, icon-only rail */
@media (max-width: 980px) and (min-width: 641px) {
  .spa-shell { grid-template-columns: 68px 1fr; }
  .spa-nav-item .spa-nav-lbl { display: none; }
  .spa-nav-item { width: 56px; }
  .spa-nav-brand { width: 44px; height: 44px; }
}

/* phones: turn the rail into an off-canvas drawer so content gets full width
   and the (now visible) icons + labels are easy to tap */
@media (max-width: 640px) {
  .spa-shell { grid-template-columns: 1fr; }
  .spa-shell-content { height: 100dvh; }
  .spa-nav {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 120;
    width: 250px; max-width: 84vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-right: 1px solid var(--spa-border-strong);
    box-shadow: 14px 0 50px rgba(15, 23, 42, 0.35);
    transform: translateX(-102%);
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  /* items tile side-by-side: max 2 per line */
  .spa-nav-items {
    display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 8px; width: 100%;
  }
  .spa-nav-item { width: 100%; }
  .spa-nav.open { transform: none; }
  .spa-nav-rail-scrim.show {
    display: block; position: fixed; inset: 0; z-index: 115;
    background: rgba(15, 23, 42, 0.45);
  }
  .spa-nav-fab {
    display: grid; place-items: center; position: fixed; z-index: 110;
    left: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5); cursor: pointer; color: #fff;
    background: linear-gradient(140deg, var(--spa-accent), #10b981 55%, #059669);
    box-shadow: 0 14px 30px -8px rgba(16, 185, 129, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.14s ease;
  }
  .spa-nav-fab:active { transform: scale(0.92); }
}

/* phone drawer surfaces must stay opaque in dark mode */
@media (max-width: 640px) {
  [data-theme="dark"] .spa-nav { background: #101a2b; }
}

/* ============================================================================
   Home dashboard
   ========================================================================== */
.home {
  height: 100vh; height: 100dvh; width: 100%; box-sizing: border-box;
  overflow-y: auto; overflow-x: hidden;
  padding: 30px 34px 44px;
}
.home-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 28px; border-radius: 22px; margin-bottom: 22px;
  box-sizing: border-box;
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(16, 185, 129, 0.20), transparent 70%),
    radial-gradient(560px 240px at 100% 100%, rgba(124, 58, 237, 0.16), transparent 72%),
    linear-gradient(160deg, #ffffff, #f2f7ff);
  border: 1px solid var(--spa-border);
  box-shadow: 0 24px 50px -24px rgba(24, 39, 75, 0.28);
}
.home-hello {
  font-size: 28px; font-weight: 800; letter-spacing: -0.7px;
  background: linear-gradient(92deg, #0f172a 15%, #047857 55%, #6d28d9 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-sub { font-size: 14px; color: var(--spa-text-2); margin-top: 5px; }

.home-kpis {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px;
}
@media (max-width: 1280px) { .home-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .home-kpis { grid-template-columns: repeat(2, 1fr); } }
.home-kpi {
  display: flex; align-items: center; gap: 13px; padding: 16px 16px;
  border-radius: 18px; border: 1px solid var(--spa-border); cursor: pointer; text-align: left;
  background: linear-gradient(160deg, var(--spa-surface-2), var(--spa-surface));
  transition: transform 0.14s ease, border-color 0.16s, box-shadow 0.16s; font: inherit; color: inherit;
}
.home-kpi:hover { transform: translateY(-3px); border-color: var(--spa-border-strong); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32); }
.home-kpi-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #06120d; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.home-kpi-value { font-size: 21px; font-weight: 770; letter-spacing: -0.5px; line-height: 1.1; }
.home-kpi-label { font-size: 12px; color: var(--spa-text-2); margin-top: 4px; font-weight: 550; display: flex; align-items: center; gap: 7px; }

/* soft light-grey count badge (reads well on white) */
.count-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px;
  font-size: 11px; font-weight: 750; line-height: 1; color: var(--spa-text-2);
  background: rgba(15, 23, 42, 0.06); border: 1px solid rgba(15, 23, 42, 0.05);
  padding: 3px 8px; border-radius: 99px;
}

.home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.home-section {
  border-radius: 20px; border: 1px solid var(--spa-border); overflow: hidden;
  background: linear-gradient(180deg, var(--spa-surface), rgba(255, 255, 255, 0.015));
}
.home-section-head {
  display: flex; align-items: center; gap: 9px; padding: 15px 18px 12px;
  font-size: 13.5px; font-weight: 680; border-bottom: 1px solid var(--spa-border); color: var(--spa-text);
}
.home-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 620; color: var(--spa-accent); background: transparent; border: 0; cursor: pointer;
}
.home-link:hover { text-decoration: underline; }
.home-section-body { padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.home-row { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; transition: background 0.14s; }
.home-row:hover { background: var(--spa-surface); }
.home-row-body { min-width: 0; flex: 1; }
.home-row-title { font-size: 13px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-row-sub { font-size: 11.5px; color: var(--spa-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.home-row-meta { font-size: 13px; font-weight: 720; }

/* ============================================================================
   Entity pages
   ========================================================================== */
.ent { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.ent-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 30px 18px; border-bottom: 1px solid var(--spa-border);
}
.ent-title-wrap { display: flex; align-items: center; gap: 14px; }
.ent-title-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #06120d; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.ent-title { font-size: 22px; font-weight: 760; letter-spacing: -0.5px; }
.ent-count { font-size: 12.5px; color: var(--spa-text-2); margin-top: 2px; }
.ent-search {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; min-width: 280px;
  background: var(--spa-surface); border: 1px solid var(--spa-border); color: var(--spa-text-2);
}
.ent-search input { border: 0; outline: 0; background: transparent; color: var(--spa-text); font: inherit; font-size: 14px; width: 100%; }
.ent-search input::placeholder { color: var(--spa-text-3); }
.ent-body { flex: 1; overflow-y: auto; padding: 20px 30px 40px; }

.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ent-card {
  display: flex; gap: 13px; padding: 16px; border-radius: 18px; border: 1px solid var(--spa-border);
  background: linear-gradient(160deg, var(--spa-surface-2), var(--spa-surface));
  transition: transform 0.14s ease, border-color 0.16s, box-shadow 0.16s;
}
.ent-card:hover { transform: translateY(-3px); border-color: var(--spa-border-strong); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3); }
.ent-card .spa-chip-avatar { width: 46px; height: 46px; font-size: 15px; flex-shrink: 0; }
.ent-card-body { min-width: 0; flex: 1; }
.ent-card-title { font-size: 15px; font-weight: 680; letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent-card-sub { font-size: 12px; color: var(--spa-accent-2); font-weight: 600; margin: 2px 0 6px; }
.ent-card-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--spa-text-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent-card-line.muted { color: var(--spa-text-3); }
.ent-price { margin-top: 8px; font-size: 17px; font-weight: 760; color: var(--spa-accent); }

.ent-table-total { font-size: 13px; color: var(--spa-text-2); margin-bottom: 12px; }
.ent-table { border: 1px solid var(--spa-border); border-radius: 16px; overflow: hidden; }
.ent-tr {
  display: grid; grid-template-columns: 2fr 1.4fr 1fr 0.9fr 1fr; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--spa-border); font-size: 13px;
}
.ent-tr:last-child { border-bottom: 0; }
.ent-tr:not(.ent-th):hover { background: var(--spa-surface); }
.ent-th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--spa-text-3); font-weight: 700; background: var(--spa-surface); }
.ent-td-strong { display: flex; align-items: center; gap: 10px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent-tr .muted { color: var(--spa-text-3); }
@media (max-width: 760px) {
  .ent-tr { grid-template-columns: 1.6fr 1fr 0.9fr; }
  .ent-tr > :nth-child(3), .ent-tr > :nth-child(4) { display: none; }
}

/* invoice page tiles + rows */
.inv-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 820px) { .inv-tiles { grid-template-columns: repeat(2, 1fr); } }
.inv-tile { border-radius: 16px; border: 1px solid var(--spa-border); padding: 14px 16px; background: linear-gradient(160deg, var(--spa-surface-2), var(--spa-surface)); }
.inv-tile-hero { background: linear-gradient(160deg, rgba(52,211,153,0.14), rgba(52,211,153,0.03)); border-color: rgba(52,211,153,0.25); }
.inv-tile-label { font-size: 11.5px; color: var(--spa-text-2); font-weight: 600; }
.inv-tile-value { font-size: 20px; font-weight: 770; letter-spacing: -0.5px; margin-top: 4px; display: flex; align-items: baseline; gap: 8px; }
.inv-tile-count { font-size: 11px; color: var(--spa-text-2); font-weight: 750; background: rgba(15, 23, 42, 0.06); border: 1px solid rgba(15, 23, 42, 0.05); padding: 3px 8px; border-radius: 99px; }
.ent-tr.inv-row { grid-template-columns: 1.8fr 1.3fr 1fr 0.9fr 1fr 0.8fr; }
.inv-post { padding: 5px 12px !important; font-size: 12px !important; }
@media (max-width: 760px) {
  .ent-tr.inv-row { grid-template-columns: 1.5fr 1fr 0.9fr 0.8fr; }
  .ent-tr.inv-row > :nth-child(3), .ent-tr.inv-row > :nth-child(6) { display: none; }
}

/* bookings list */
.bk-status {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 99px; text-transform: capitalize;
}
.bk-draft { background: rgba(255,255,255,0.09); color: var(--spa-text-2); }
.bk-confirmed { background: rgba(59,130,246,0.16); color: #60a5fa; }
.bk-done { background: rgba(52,211,153,0.16); color: var(--spa-accent); }
.bk-cancelled { background: rgba(251,113,133,0.14); color: var(--spa-danger); }
.bk-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
.ent-tr.bk-row { grid-template-columns: 24px 1.4fr 1.4fr 1.1fr 1.2fr 0.9fr 0.9fr; }
@media (max-width: 900px) {
  .ent-tr.bk-row { grid-template-columns: 20px 1.4fr 1.2fr 0.9fr; }
  .ent-tr.bk-row > :nth-child(4), .ent-tr.bk-row > :nth-child(5), .ent-tr.bk-row > :nth-child(7) { display: none; }
}

/* booking wizard — service cart */
.wz-cart { border: 1px solid var(--spa-border); border-radius: 16px; overflow: hidden; margin-top: 4px; background: #fff; box-shadow: 0 8px 20px -14px rgba(24,39,75,0.25); }
.wz-cart-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--spa-border); }
.wz-cart-item:last-child { border-bottom: 0; }
.wz-cart-name { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-cart-sub { font-size: 11.5px; color: var(--spa-text-2); margin-top: 1px; }
.wz-qty { display: flex; align-items: center; gap: 2px; background: var(--spa-surface-2); border: 1px solid var(--spa-border); border-radius: 9px; padding: 2px; }
.wz-qty button { width: 24px; height: 24px; border: 0; background: transparent; color: var(--spa-text); font-size: 16px; font-weight: 700; cursor: pointer; border-radius: 6px; line-height: 1; }
.wz-qty button:hover { background: var(--spa-surface-3); }
.wz-qty span { min-width: 22px; text-align: center; font-size: 13px; font-weight: 700; }
.wz-remove { width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: transparent; color: var(--spa-text-3); cursor: pointer; border-radius: 8px; }
.wz-remove:hover { color: var(--spa-danger); background: rgba(225,29,72,0.1); }
.wz-cart-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 12.5px; font-weight: 700; color: #06432f;
  background: linear-gradient(90deg, rgba(52,211,153,0.16), rgba(124,58,237,0.12)); border-top: 1px solid var(--spa-border); }
.wz-cart-total b { font-size: 16px; color: var(--spa-accent); }
.wz-summary { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 16px; margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(52,211,153,0.10), rgba(124,58,237,0.08)); border: 1px solid rgba(52,211,153,0.22); }

/* two-column colourful service picker */
.wz-svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 250px; overflow-y: auto; padding: 2px; margin-top: 4px; }
.wz-chip {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 3px;
  padding: 11px 12px 10px; border-radius: 14px; cursor: pointer; font: inherit;
  background: color-mix(in srgb, var(--c) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 26%, transparent);
  transition: transform 0.12s ease, box-shadow 0.15s, background 0.14s, border-color 0.14s;
}
.wz-chip:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 15%, #fff); box-shadow: 0 12px 22px -12px var(--c); }
.wz-chip.in { background: color-mix(in srgb, var(--c) 20%, #fff); border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 30%, transparent); }
.wz-chip-name { font-size: 12.5px; font-weight: 700; color: var(--spa-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 26px; }
.wz-chip-meta { font-size: 10.5px; font-weight: 650; display: flex; align-items: center; gap: 4px; color: color-mix(in srgb, var(--c) 45%, var(--spa-text-2)); }
.wz-chip-add { position: absolute; top: 9px; right: 9px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--c); box-shadow: 0 3px 8px -2px var(--c); }

/* attractive animated "now" marker on the day scheduler */
.sch-now { position: absolute; top: 46px; bottom: 0; width: 0; z-index: 15; pointer-events: none; }
.sch-now::before {
  content: ""; position: absolute; top: 14px; bottom: 0; left: -11px; width: 22px;
  background: linear-gradient(90deg, transparent, rgba(244,63,94,0.10), transparent);
}
.sch-now-line {
  position: absolute; top: 14px; bottom: 0; left: -1.25px; width: 2.5px; border-radius: 3px;
  background: linear-gradient(180deg, #fb7185 0%, #f43f5e 45%, rgba(244,63,94,0));
  box-shadow: 0 0 14px rgba(244,63,94,0.85);
}
.sch-now-line::after {
  content: ""; position: absolute; inset: 0; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0) 30%);
  opacity: 0.6; animation: sch-now-shine 2.4s ease-in-out infinite;
}
@keyframes sch-now-shine { 0%,100% { opacity: 0.25; } 50% { opacity: 0.7; } }
.sch-now-dot {
  position: absolute; top: 8px; left: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #fb7185 45%, #e11d48 100%);
  box-shadow: 0 0 0 4px rgba(244,63,94,0.22), 0 0 14px rgba(244,63,94,0.9);
  animation: sch-now-pulse 1.8s ease-in-out infinite;
}
@keyframes sch-now-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(244,63,94,0.22), 0 0 14px rgba(244,63,94,0.85); } 50% { box-shadow: 0 0 0 9px rgba(244,63,94,0.04), 0 0 22px rgba(244,63,94,0.55); } }
.sch-now-pill {
  position: absolute; top: -7px; left: 9px; z-index: 16;
  font-size: 10.5px; font-weight: 850; color: #fff; white-space: nowrap; letter-spacing: 0.3px;
  padding: 3px 11px 3px 10px; border-radius: 99px;
  background: linear-gradient(135deg, #fb7185, #f43f5e 55%, #e11d48);
  box-shadow: 0 8px 18px -5px rgba(244,63,94,0.7), inset 0 1px 0 rgba(255,255,255,0.45);
}
.sch-now-pill::before {
  content: ""; position: absolute; left: -5px; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-right-color: #fb7185;
}

/* ============================================================================
   Calendar views on phones
   The day timeline + week grid read their track widths from CSS vars (see
   DayScheduler.jsx / WeekView.jsx), so we tune them per breakpoint and let
   the grids fit the screen instead of scaling the desktop layout down. The
   day timeline keeps its horizontal momentum scroll with a sticky staff
   column (standard for day views); the week grid collapses to fit all
   seven days on screen with no horizontal scroll.
   ========================================================================== */
@media (max-width: 640px) {
  :root { --slot-w: 32px; --res-col-w: 140px; }

  /* day timeline: sticky staff column + touch-friendly horizontal scroll */
  .sch {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
  }
  .sch-corner { width: var(--res-col-w); padding: 0 8px; gap: 6px; }
  .sch-rowhead { width: var(--res-col-w); padding: 6px 8px; gap: 8px; }
  .sch-rowhead .spa-chip-avatar { width: 28px; height: 28px; font-size: 11px; }
  .sch-rowhead .spa-card-title { font-size: 11px; }
  .sch-rowhead .spa-card-sub { display: none; }
  .sch-hour { padding-left: 5px; font-size: 10.5px; }

  /* week grid fits the phone width — all seven days, no horizontal scroll */
  .wk { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .wk-grid { min-width: 0; grid-template-columns: 40px repeat(7, minmax(0, 1fr)); }
  .wk-corner, .wk-dayhead { height: 46px; }
  .wk-dayhead { padding: 0 1px; }
  .wk-dow { font-size: 9px; }
  .wk-dom { font-size: 15px; }
  .wk-dayhead.today .wk-dom { width: 24px; height: 24px; }
  .wk-timecol { width: 40px; }
  .wk-timelabel { font-size: 9px; padding-right: 4px; }
  .wk-evt { padding: 1px 2px; border-radius: 6px; }
  .wk-evt-title { font-size: 9px; line-height: 1.15; }
  .wk-evt-sub { display: none; }

  /* month + mini months trim down to stay crisp on small screens */
  .mo { padding: 8px 8px 14px; }
  .mo-grid { gap: 5px; }
  .mo-dow { gap: 5px; padding: 0 0 5px; }
  .mo-cell { padding: 5px 5px; gap: 3px; border-radius: 10px; }
  .mo-date { font-size: 11px; }
  .mini-grid.q { grid-template-columns: 1fr; }   /* one readable month per row */
  .mini-grid.y { grid-template-columns: 1fr; }

  /* day-view staff/name column collapses behind a toggle (phone only) */
  .sch-staff-toggle {
    position: sticky; right: 0; z-index: 8; margin-left: auto; align-self: center;
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--spa-border-strong); background: var(--spa-surface-3);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: var(--spa-text-2); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
  }
  .sch-staff-toggle:active { color: var(--spa-accent); border-color: var(--spa-accent); }
  html.no-staff { --res-col-w: 0 !important; }
  html.no-staff .sch-corner,
  html.no-staff .sch-rowhead { display: none; }
}
@media (max-width: 420px) {
  :root { --slot-w: 28px; --res-col-w: 100px; }
  .sch-corner, .sch-rowhead { padding: 0 6px; }
  .wk-grid { grid-template-columns: 34px repeat(7, minmax(0, 1fr)); }
  .wk-timecol { width: 34px; }
  .wk-dom { font-size: 14px; }
  .mo-dow div { font-size: 10px; }
}

/* detail modal */
.dm-rows { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 4px; }
.dm-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 2px; border-bottom: 1px solid var(--spa-border); }
.dm-row:last-child { border-bottom: 0; }
.dm-row-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--spa-text-2); font-weight: 600; }
.dm-row-value { font-size: 13.5px; font-weight: 600; text-align: right; max-width: 62%; word-break: break-word; }
.dm-inv-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.dm-inv-total { font-size: 22px; font-weight: 780; letter-spacing: -0.5px; }
.dm-lines { border: 1px solid var(--spa-border); border-radius: 12px; overflow: hidden; margin: 12px 0; }
.dm-line { display: grid; grid-template-columns: 1fr 44px 90px; gap: 8px; padding: 9px 12px; font-size: 12.5px; border-bottom: 1px solid var(--spa-border); }
.dm-line:last-child { border-bottom: 0; }
.dm-line-h { background: var(--spa-surface-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--spa-text-3); font-weight: 700; }
.dm-totals { display: flex; flex-direction: column; gap: 6px; padding: 6px 4px 2px; }
.dm-totals > div { display: flex; justify-content: space-between; font-size: 13px; color: var(--spa-text-2); }
.dm-totals > div b { color: var(--spa-text); font-weight: 700; }
.dm-grand { border-top: 1px solid var(--spa-border); padding-top: 8px; margin-top: 2px; font-size: 15px !important; }
.dm-grand b { font-size: 16px; }

/* ============================================================================
   Responsive — phones (entity pages, modals)
   ========================================================================== */
@media (max-width: 760px) {
  .ent-head { padding: 18px 16px 14px; }
  .ent-body { padding: 14px 16px 32px; }
  .ent-search { min-width: 0; width: 100%; }
  .home { padding: 20px 16px 84px; }
  .home-hero { padding: 20px 18px; flex-direction: column; align-items: flex-start; gap: 14px; box-sizing: border-box; }
  .home-hero .btn { width: 100%; justify-content: center; }
  .home-kpi, .home-section { box-sizing: border-box; }
  .home-hello { font-size: 23px; }
}
/* on the smallest phones, KPIs go single-column so numbers stay readable */
@media (max-width: 480px) {
  .home-kpis { grid-template-columns: 1fr; }
}

/* booking / detail modal: full-screen, app-like, pinned footer on phones */
@media (max-width: 640px) {
  .spa-overlay { padding: 0; }
  .spa-modal {
    max-width: 100%; max-height: 100dvh; height: 100dvh;
    border-radius: 0; border: 0; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .spa-modal-head { flex-shrink: 0; padding: 16px 16px 12px; }
  .spa-steps { flex-shrink: 0; padding: 12px 16px 4px; }
  .spa-modal-body {
    flex: 1 1 auto; min-height: 0; overflow-y: auto;
    -webkit-overflow-scrolling: touch; padding: 14px 16px 8px;
  }
  .spa-modal-foot {
    flex-shrink: 0; position: sticky; bottom: 0;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    background: var(--spa-surface-2); border-top: 1px solid var(--spa-border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
  }
  .wz-svc-grid { max-height: none; }
  .spa-pick-list { max-height: none; }
}
@media (max-width: 420px) {
  .wz-svc-grid { grid-template-columns: 1fr; }
}

/* login background */
.spa-login-bg {
  min-height: 100vh; position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 700px at 15% 0%, rgba(52, 211, 153, 0.16), transparent 55%),
    radial-gradient(900px 600px at 100% 10%, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(700px 700px at 80% 100%, rgba(245, 196, 81, 0.10), transparent 60%),
    linear-gradient(180deg, #0b0c12, #07070b);
  font-family: var(--font);
}

/* ============================================================================
   DARK THEME — toggled via <html data-theme="dark">
   ========================================================================== */
:root[data-theme="dark"] {
  --spa-bg: #0b1220;
  --spa-bg-2: #0f1930;
  --spa-surface: rgba(30, 41, 59, 0.55);
  --spa-surface-2: rgba(37, 50, 70, 0.80);
  --spa-surface-3: rgba(44, 58, 82, 0.96);
  --spa-border: rgba(255, 255, 255, 0.09);
  --spa-border-strong: rgba(255, 255, 255, 0.17);
  --spa-text: #e6edf6;
  --spa-text-2: #9fb0c6;
  --spa-text-3: #6b7c93;
  --wk-line: rgba(255, 255, 255, 0.06);
  --wk-line-strong: rgba(255, 255, 255, 0.13);
  color-scheme: dark;
}

/* opaque / frosted white surfaces -> dark slate */
[data-theme="dark"] .spa-topbar,
[data-theme="dark"] .spa-nav { background: rgba(17, 25, 41, 0.72); }
[data-theme="dark"] .spa-top-controls.open { background: #131c2e; border-color: rgba(255, 255, 255, 0.10); }
[data-theme="dark"] .sch-staff-toggle {
  background: #131c2e; border-color: rgba(255, 255, 255, 0.14); color: var(--spa-text-2);
}
[data-theme="dark"] .sch-corner,
[data-theme="dark"] .sch-timehead,
[data-theme="dark"] .sch-rowhead { background: rgba(14, 22, 38, 0.92); }
[data-theme="dark"] .wk-corner,
[data-theme="dark"] .wk-dayhead { background: #131c2e; border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .wk-dayhead:hover { background: var(--spa-surface); }
[data-theme="dark"] .wk-timecol { border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .spa-modal { background: #131c2e; border-color: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .spa-modal-head {
  background:
    radial-gradient(420px 120px at 12% 0%, rgba(52, 211, 153, 0.16), transparent 70%),
    radial-gradient(420px 120px at 100% 0%, rgba(124, 58, 237, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(148, 163, 184, 0.08), transparent);
}
[data-theme="dark"] .evt-tip { background: #131c2e; border-color: rgba(255, 255, 255, 0.10); }
[data-theme="dark"] .spa-nav-menu { background: #131c2e; }
[data-theme="dark"] .wz-cart,
[data-theme="dark"] .wz-inv-row { background: #101a2b; }
[data-theme="dark"] .spa-pick { background: rgba(30, 41, 59, 0.5); }
[data-theme="dark"] .spa-select option { background: #131c2e; color: var(--spa-text); }
[data-theme="dark"] .spa-toast { /* background is set per-kind via Tailwind (bg-emerald/red/blue-600) */ }
@media (max-width: 980px) { [data-theme="dark"] .spa-side { background: #101a2b; } }

/* faint dark-tinted chips would vanish on dark -> lighten */
[data-theme="dark"] .pill-draft,
[data-theme="dark"] .count-badge,
[data-theme="dark"] .spa-step,
[data-theme="dark"] .evt-tip-dur,
[data-theme="dark"] .evt-tip-note { background: rgba(255, 255, 255, 0.10); }

/* wizard service chips mix against a dark base instead of white */
[data-theme="dark"] .wz-chip { background: color-mix(in srgb, var(--c) 16%, #0f1930); }
[data-theme="dark"] .wz-chip:hover { background: color-mix(in srgb, var(--c) 26%, #0f1930); }
[data-theme="dark"] .wz-chip.in { background: color-mix(in srgb, var(--c) 32%, #0f1930); }

/* scrollbars + spinner track on dark */
[data-theme="dark"] .spa-app ::-webkit-scrollbar-thumb,
[data-theme="dark"] .spa-shell ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); }
[data-theme="dark"] .spa-app ::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .spa-shell ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }
[data-theme="dark"] .spa-spinner { border-color: rgba(255, 255, 255, 0.14); border-top-color: var(--spa-accent); }

/* theme toggle button in the nav rail */
.spa-nav-theme {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  border: 1px solid var(--spa-border); background: var(--spa-surface);
  color: var(--spa-text-2); cursor: pointer; transition: all 0.15s ease;
}
.spa-nav-theme:hover { color: var(--spa-accent); border-color: var(--spa-border-strong); background: var(--spa-surface-2); transform: translateY(-1px); }

/* home dashboard: hero + gradient title on dark */
[data-theme="dark"] .home-hero {
  background:
    radial-gradient(600px 240px at 0% 0%, rgba(16, 185, 129, 0.22), transparent 70%),
    radial-gradient(560px 240px at 100% 100%, rgba(124, 58, 237, 0.20), transparent 72%),
    linear-gradient(160deg, #16233a, #0f1930);
}
/* home greeting gradient — light tones so "Good morning, …" stays readable
   on the dark hero (the light-mode gradient starts near-black and vanishes). */
[data-theme="dark"] .home-hello {
  background: linear-gradient(92deg, #e6edf6 10%, #34d399 55%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* ============================================================================
   SPA Management — targeted UI fixes (mobile responsiveness + visibility)
   ========================================================================== */

/* ---- 3 & 4. Selected-service green visibility (ALL screens) --------------
   The selected-service chip and the cart total in the booking wizard used a
   very faint emerald tint that was almost invisible. Boost the green so the
   selection reads clearly. Scoped to the wizard only. */
.wz-cart-total {
  color: #065f46;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.30), rgba(16, 185, 129, 0.18));
}
.wz-cart-total b { color: #059669; }

.wz-summary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.20), rgba(124, 58, 237, 0.10));
  border-color: rgba(16, 185, 129, 0.45);
}

/* stronger selected ring on a picked service chip */
.wz-chip.in {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent);
}

[data-theme="dark"] .wz-cart-total {
  color: #6ee7b7;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.32), rgba(16, 185, 129, 0.18));
}
[data-theme="dark"] .wz-cart-total b { color: #34d399; }

/* ---- 1. Employee names on the calendar staff column (MOBILE) -------------
   On phones the staff/name column was narrow and clipped names to "Amir…".
   Let the name wrap onto a second line (first name / last name) and keep the
   subtitle hidden. The column width was widened slightly via --res-col-w. */
@media (max-width: 640px) {
  .sch-rowhead .spa-card-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
  }
}

/* ---- 2. "Back" button clearing the hamburger FAB (MOBILE) ----------------
   The modal footer's left-aligned Back button sat under the floating menu
   button. Push it hard to the right and trim its size so its left edge stays
   well clear of the bottom-left FAB even on the smallest phones. */
@media (max-width: 640px) {
  .spa-modal-foot .btn-ghost.mr-auto {
    margin-left: auto;
    margin-right: 0;
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* ---- 4. "Create booking" primary button clearing the FAB (MOBILE) --------
   Keep it right-aligned and slightly smaller than the base button so the
   Back + Create pair is narrow enough to sit fully to the right of the FAB. */
@media (max-width: 640px) {
  .spa-modal-foot .btn-primary {
    margin-left: auto;
    padding: 9px 13px;
    font-size: 12.5px;
  }
}

/* ---- 5. All-bookings page: no horizontal scroll (MOBILE) -----------------
   The status filter row (All / Draft / Confirmed / Done / Cancelled) was
   wider than the viewport and caused the whole page to scroll sideways.
   Let it wrap instead. Scoped to the entity body so the topbar switcher is
   untouched. */
@media (max-width: 640px) {
  .ent-body .spa-seg {
    flex-wrap: wrap;
    width: 100% !important;
    justify-content: flex-start;
  }
  .ent-body { overflow-x: hidden; }
}

/* ---- 6. Hamburger (FAB) menu button slightly smaller (MOBILE) ------------ */
@media (max-width: 640px) {
  .spa-nav-fab {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

/* ---- 7. Profile / logout text brightness (ALL screens) -------------------
   Use the theme's strongest text colour for the account name so it reads
   clearly, and a proportional secondary tone for the sub-label. Theme-aware
   (dark text on light surfaces, light text on dark surfaces). */
.spa-nav-menu-name { color: var(--spa-text); }
.spa-nav-menu-sub { color: var(--spa-text-2); }
.spa-nav-uname { color: var(--spa-text); }
