/* [next]/internal/font/google/mona_sans_cabafffa.module.css [app-client] (css) */
@font-face {
  font-family: Mona Sans;
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../media/c275e1b8091415c9-s.1m9cbh5e1qwks.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

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

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

@font-face {
  font-family: Mona Sans Fallback;
  src: local(Arial);
  ascent-override: 104.72%;
  descent-override: 30.74%;
  line-gap-override: 0.0%;
  size-adjust: 104.08%;
}

.mona_sans_cabafffa-module__BVj80a__className {
  font-family: Mona Sans, Mona Sans Fallback;
  font-style: normal;
}

.mona_sans_cabafffa-module__BVj80a__variable {
  --font-mona: "Mona Sans", "Mona Sans Fallback";
}

/* [next]/internal/font/google/archivo_black_872fb310.module.css [app-client] (css) */
@font-face {
  font-family: Archivo Black;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/316b6682b406c2db-s.1_k7aq_c5drf2.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

@font-face {
  font-family: Archivo Black Fallback;
  src: local(Arial);
  ascent-override: 70.78%;
  descent-override: 16.93%;
  line-gap-override: 0.0%;
  size-adjust: 124.05%;
}

.archivo_black_872fb310-module__3eTfnG__className {
  font-family: Archivo Black, Archivo Black Fallback;
  font-style: normal;
  font-weight: 400;
}

.archivo_black_872fb310-module__3eTfnG__variable {
  --font-archivo: "Archivo Black", "Archivo Black Fallback";
}

/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    :root, :host {
      --shimmer-angle: 20deg;
    }

    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-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-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --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;
      --scroll-fade-t: 0px;
      --scroll-fade-b: 0px;
      --scroll-fade-s: 0px;
      --scroll-fade-e: 0px;
      --scroll-fade-mask: initial;
      --shimmer-image: initial;
      --shimmer-text-fill: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
    --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);
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --leading-snug: 1.375;
    --radius-xs: .125rem;
    --radius-md: calc(var(--radius) * .8);
    --animate-spin: spin 1s linear infinite;
    --aspect-video: 16 / 9;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --color-border: var(--border);
  }
}

@layer base {
  * {
    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);
    }
  }

  html {
    font-family: var(--font-mona);
  }
}

@layer components;

@layer utilities {
  .\@container\/card-header {
    container: card-header / inline-size;
  }

  .visible {
    visibility: visible;
  }

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

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .col-start-2 {
    grid-column-start: 2;
  }

  .row-span-2 {
    grid-row: span 2 / span 2;
  }

  .row-start-1 {
    grid-row-start: 1;
  }

  .my-0\.5 {
    margin-block: calc(var(--spacing) * .5);
  }

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

  .\!hidden {
    display: none !important;
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

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

  .table {
    display: table;
  }

  .table\! {
    display: table !important;
  }

  .aspect-\[4\/1\] {
    aspect-ratio: 4;
  }

  .aspect-video {
    aspect-ratio: var(--aspect-video);
  }

  .size-4 {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }

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

  .size-7 {
    width: calc(var(--spacing) * 7);
    height: calc(var(--spacing) * 7);
  }

  .size-8 {
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);
  }

  .size-9 {
    width: calc(var(--spacing) * 9);
    height: calc(var(--spacing) * 9);
  }

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

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

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

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

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

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

  .w-0 {
    width: 0;
  }

  .w-1 {
    width: var(--spacing);
  }

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

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

  .w-full {
    width: 100%;
  }

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

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

  .flex-1 {
    flex: 1;
  }

  .shrink {
    flex-shrink: 1;
  }

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

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

  .shimmer {
    --_spread: var(--shimmer-spread, calc(3ch + 40px));
    --_base: currentColor;
    --_highlight: var(--shimmer-color, oklch(from currentColor l c h / calc(alpha* .2)));
    background-image: var(--shimmer-image, linear-gradient(calc(90deg + var(--shimmer-angle)), var(--_base) calc(50% - var(--_spread)), var(--_highlight) calc(50% - var(--_spread) * .5), var(--_highlight) 50%, var(--_highlight) calc(50% + var(--_spread) * .5), var(--_base) calc(50% + var(--_spread))));
  }

  @supports (color: color-mix(in lab, red, red)) {
    .shimmer {
      background-image: var(--shimmer-image, linear-gradient(calc(90deg + var(--shimmer-angle)), var(--_base) calc(50% - var(--_spread)), color-mix(in oklch, var(--_highlight), var(--_base) 50%) calc(50% - var(--_spread) * .5), var(--_highlight) 50%, color-mix(in oklch, var(--_highlight), var(--_base) 50%) calc(50% + var(--_spread) * .5), var(--_base) calc(50% + var(--_spread))));
    }
  }

  .shimmer {
    background-repeat: no-repeat;
    background-size: calc(200% + var(--_spread) * 2) 100%;
    -webkit-text-fill-color: var(--shimmer-text-fill, transparent);
    animation: tw-shimmer var(--shimmer-duration, 2s) linear infinite;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
  }

  .shimmer:where(:root[data-theme="dark"], :root[data-theme="dark"] *) {
    --_highlight: var(--shimmer-color, oklch(from currentColor max(.8, calc(l + .4)) c h / calc(alpha + .4)));
  }

  .shimmer:where([dir="rtl"], [dir="rtl"] *) {
    animation-direction: reverse;
  }

  @media (prefers-reduced-motion: reduce) {
    .shimmer {
      -webkit-text-fill-color: currentColor;
      background-image: none;
      animation: none;
    }
  }

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

  .auto-rows-min {
    grid-auto-rows: min-content;
  }

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

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

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

  .items-end {
    align-items: flex-end;
  }

  .items-start {
    align-items: flex-start;
  }

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

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

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

  .gap-\(--card-spacing\) {
    gap: var(--card-spacing);
  }

  .gap-1 {
    gap: var(--spacing);
  }

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

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

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

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

  .self-start {
    align-self: flex-start;
  }

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

  .overflow-hidden {
    overflow: hidden;
  }

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

  .rounded-\[2px\] {
    border-radius: 2px;
  }

  .rounded-\[min\(var\(--radius-md\)\,10px\)\] {
    border-radius: min(var(--radius-md), 10px);
  }

  .rounded-\[min\(var\(--radius-md\)\,12px\)\] {
    border-radius: min(var(--radius-md), 12px);
  }

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

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

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

  .rounded-t-xl {
    border-top-left-radius: calc(var(--radius) * 1.4);
    border-top-right-radius: calc(var(--radius) * 1.4);
  }

  .rounded-b-xl {
    border-bottom-right-radius: calc(var(--radius) * 1.4);
    border-bottom-left-radius: calc(var(--radius) * 1.4);
  }

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

  .border-\[1\.5px\] {
    border-style: var(--tw-border-style);
    border-width: 1.5px;
  }

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

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

  .border-dashed {
    --tw-border-style: dashed;
    border-style: dashed;
  }

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

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

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

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

  .border-transparent {
    border-color: #0000;
  }

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

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

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

  .bg-destructive\/10 {
    background-color: var(--destructive);
  }

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

  .bg-muted\/50 {
    background-color: var(--ui-muted);
  }

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

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

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

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

  .bg-clip-padding {
    background-clip: padding-box;
  }

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

  .px-\(--card-spacing\) {
    padding-inline: var(--card-spacing);
  }

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

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

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

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

  .pt-3 {
    padding-top: calc(var(--spacing) * 3);
  }

  .pb-2 {
    padding-bottom: calc(var(--spacing) * 2);
  }

  .pb-3 {
    padding-bottom: calc(var(--spacing) * 3);
  }

  .font-heading {
    font-family: var(--font-mona);
  }

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

  .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-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }

  .text-\[0\.8rem\] {
    font-size: .8rem;
  }

  .leading-none {
    --tw-leading: 1;
    line-height: 1;
  }

  .leading-snug {
    --tw-leading: var(--leading-snug);
    line-height: var(--leading-snug);
  }

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

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

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

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

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

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

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

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

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

  .capitalize {
    text-transform: capitalize;
  }

  .italic {
    font-style: italic;
  }

  .tabular-nums {
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
  }

  .underline-offset-4 {
    text-underline-offset: 4px;
  }

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

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

  .ring-foreground\/10 {
    --tw-ring-color: var(--foreground);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .ring-foreground\/10 {
      --tw-ring-color: color-mix(in oklab, var(--foreground) 10%, transparent);
    }
  }

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

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

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

  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

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

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

  .\[--card-spacing\:--spacing\(4\)\] {
    --card-spacing: calc(var(--spacing) * 4);
  }

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

  .group-data-\[size\=sm\]\/card\:text-sm:is(:where(.group\/card)[data-size="sm"] *) {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  @media (hover: hover) {
    .hover\:bg-\[color-mix\(in_oklch\,var\(--secondary\)\,var\(--foreground\)_5\%\)\]:hover {
      background-color: var(--secondary);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-\[color-mix\(in_oklch\,var\(--secondary\)\,var\(--foreground\)_5\%\)\]:hover {
        background-color: color-mix(in oklch,var(--secondary),var(--foreground) 5%);
      }
    }

    .hover\:bg-destructive\/20:hover {
      background-color: var(--destructive);
    }

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

    .hover\:bg-muted:hover {
      background-color: var(--ui-muted);
    }

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

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

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

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

  .focus-visible\:border-destructive\/40:focus-visible {
    border-color: var(--destructive);
  }

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

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

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

  .focus-visible\:ring-destructive\/20:focus-visible {
    --tw-ring-color: var(--destructive);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .focus-visible\:ring-destructive\/20:focus-visible {
      --tw-ring-color: color-mix(in oklab, var(--destructive) 20%, transparent);
    }
  }

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

  @supports (color: color-mix(in lab, red, red)) {
    .focus-visible\:ring-ring\/50:focus-visible {
      --tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent);
    }
  }

  .active\:not-aria-\[haspopup\]\:translate-y-px:active:not([aria-haspopup]) {
    --tw-translate-y: 1px;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }

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

  .disabled\:opacity-50:disabled {
    opacity: .5;
  }

  :where([data-slot="button-group"]) .in-data-\[slot\=button-group\]\:rounded-lg {
    border-radius: var(--radius);
  }

  .has-data-\[icon\=inline-end\]\:pr-1\.5:has([data-icon="inline-end"]) {
    padding-right: calc(var(--spacing) * 1.5);
  }

  .has-data-\[icon\=inline-end\]\:pr-2:has([data-icon="inline-end"]) {
    padding-right: calc(var(--spacing) * 2);
  }

  .has-data-\[icon\=inline-start\]\:pl-1\.5:has([data-icon="inline-start"]) {
    padding-left: calc(var(--spacing) * 1.5);
  }

  .has-data-\[icon\=inline-start\]\:pl-2:has([data-icon="inline-start"]) {
    padding-left: calc(var(--spacing) * 2);
  }

  .has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot="card-action"]) {
    grid-template-columns: 1fr auto;
  }

  .has-data-\[slot\=card-description\]\:grid-rows-\[auto_auto\]:has([data-slot="card-description"]) {
    grid-template-rows: auto auto;
  }

  .has-data-\[slot\=card-footer\]\:pb-0:has([data-slot="card-footer"]) {
    padding-bottom: 0;
  }

  .has-\[\>img\:first-child\]\:pt-0:has( > img:first-child) {
    padding-top: 0;
  }

  .aria-expanded\:bg-muted[aria-expanded="true"] {
    background-color: var(--ui-muted);
  }

  .aria-expanded\:bg-secondary[aria-expanded="true"] {
    background-color: var(--ui-secondary);
  }

  .aria-expanded\:text-foreground[aria-expanded="true"] {
    color: var(--foreground);
  }

  .aria-expanded\:text-secondary-foreground[aria-expanded="true"] {
    color: var(--ui-secondary-foreground);
  }

  .aria-invalid\:border-destructive[aria-invalid="true"] {
    border-color: var(--destructive);
  }

  .aria-invalid\:ring-3[aria-invalid="true"] {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .aria-invalid\:ring-destructive\/20[aria-invalid="true"] {
    --tw-ring-color: var(--destructive);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .aria-invalid\:ring-destructive\/20[aria-invalid="true"] {
      --tw-ring-color: color-mix(in oklab, var(--destructive) 20%, transparent);
    }
  }

  .data-\[size\=sm\]\:\[--card-spacing\:--spacing\(3\)\][data-size="sm"] {
    --card-spacing: calc(var(--spacing) * 3);
  }

  .data-\[size\=sm\]\:has-data-\[slot\=card-footer\]\:pb-0[data-size="sm"]:has([data-slot="card-footer"]) {
    padding-bottom: 0;
  }

  .dark\:border-input:where(:root[data-theme="dark"], :root[data-theme="dark"] *) {
    border-color: var(--input);
  }

  .dark\:bg-destructive\/20:where(:root[data-theme="dark"], :root[data-theme="dark"] *) {
    background-color: var(--destructive);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .dark\:bg-destructive\/20:where(:root[data-theme="dark"], :root[data-theme="dark"] *) {
      background-color: color-mix(in oklab, var(--destructive) 20%, transparent);
    }
  }

  .dark\:bg-input\/30:where(:root[data-theme="dark"], :root[data-theme="dark"] *) {
    background-color: var(--input);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .dark\:bg-input\/30:where(:root[data-theme="dark"], :root[data-theme="dark"] *) {
      background-color: color-mix(in oklab, var(--input) 30%, transparent);
    }
  }

  @media (hover: hover) {
    .dark\:hover\:bg-destructive\/30:where(:root[data-theme="dark"], :root[data-theme="dark"] *):hover {
      background-color: var(--destructive);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .dark\:hover\:bg-destructive\/30:where(:root[data-theme="dark"], :root[data-theme="dark"] *):hover {
        background-color: color-mix(in oklab, var(--destructive) 30%, transparent);
      }
    }

    .dark\:hover\:bg-input\/50:where(:root[data-theme="dark"], :root[data-theme="dark"] *):hover {
      background-color: var(--input);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .dark\:hover\:bg-input\/50:where(:root[data-theme="dark"], :root[data-theme="dark"] *):hover {
        background-color: color-mix(in oklab, var(--input) 50%, transparent);
      }
    }

    .dark\:hover\:bg-muted\/50:where(:root[data-theme="dark"], :root[data-theme="dark"] *):hover {
      background-color: var(--ui-muted);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .dark\:hover\:bg-muted\/50:where(:root[data-theme="dark"], :root[data-theme="dark"] *):hover {
        background-color: color-mix(in oklab, var(--ui-muted) 50%, transparent);
      }
    }
  }

  .dark\:focus-visible\:ring-destructive\/40:where(:root[data-theme="dark"], :root[data-theme="dark"] *):focus-visible {
    --tw-ring-color: var(--destructive);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .dark\:focus-visible\:ring-destructive\/40:where(:root[data-theme="dark"], :root[data-theme="dark"] *):focus-visible {
      --tw-ring-color: color-mix(in oklab, var(--destructive) 40%, transparent);
    }
  }

  .dark\:aria-invalid\:border-destructive\/50:where(:root[data-theme="dark"], :root[data-theme="dark"] *)[aria-invalid="true"] {
    border-color: var(--destructive);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .dark\:aria-invalid\:border-destructive\/50:where(:root[data-theme="dark"], :root[data-theme="dark"] *)[aria-invalid="true"] {
      border-color: color-mix(in oklab, var(--destructive) 50%, transparent);
    }
  }

  .dark\:aria-invalid\:ring-destructive\/40:where(:root[data-theme="dark"], :root[data-theme="dark"] *)[aria-invalid="true"] {
    --tw-ring-color: var(--destructive);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .dark\:aria-invalid\:ring-destructive\/40:where(:root[data-theme="dark"], :root[data-theme="dark"] *)[aria-invalid="true"] {
      --tw-ring-color: color-mix(in oklab, var(--destructive) 40%, transparent);
    }
  }

  .\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text {
    fill: var(--ui-muted-foreground);
  }

  .\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"] {
    stroke: var(--border);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"] {
      stroke: color-mix(in oklab, var(--border) 50%, transparent);
    }
  }

  .\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor {
    stroke: var(--border);
  }

  .\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"] {
    stroke: #0000;
  }

  .\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer {
    --tw-outline-style: none;
    outline-style: none;
  }

  @media (forced-colors: active) {
    .\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer {
      outline-offset: 2px;
      outline: 2px solid #0000;
    }
  }

  .\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"] {
    stroke: var(--border);
  }

  .\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector, .\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor {
    fill: var(--ui-muted);
  }

  .\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"] {
    stroke: var(--border);
  }

  .\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector {
    --tw-outline-style: none;
    outline-style: none;
  }

  @media (forced-colors: active) {
    .\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector {
      outline-offset: 2px;
      outline: 2px solid #0000;
    }
  }

  .\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"] {
    stroke: #0000;
  }

  .\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface {
    --tw-outline-style: none;
    outline-style: none;
  }

  @media (forced-colors: active) {
    .\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface {
      outline-offset: 2px;
      outline: 2px solid #0000;
    }
  }

  .\[\&_svg\]\:pointer-events-none svg {
    pointer-events: none;
  }

  .\[\&_svg\]\:shrink-0 svg {
    flex-shrink: 0;
  }

  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*="size-"]) {
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
  }

  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 svg:not([class*="size-"]) {
    width: calc(var(--spacing) * 3.5);
    height: calc(var(--spacing) * 3.5);
  }

  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*="size-"]) {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }

  .\[\.border-b\]\:pb-\(--card-spacing\).border-b {
    padding-bottom: var(--card-spacing);
  }

  :is(.\*\:\[img\:first-child\]\:rounded-t-xl > *):is(img:first-child) {
    border-top-left-radius: calc(var(--radius) * 1.4);
    border-top-right-radius: calc(var(--radius) * 1.4);
  }

  :is(.\*\:\[img\:last-child\]\:rounded-b-xl > *):is(img:last-child) {
    border-bottom-right-radius: calc(var(--radius) * 1.4);
    border-bottom-left-radius: calc(var(--radius) * 1.4);
  }

  .\[\&\>svg\]\:h-2\.5 > svg {
    height: calc(var(--spacing) * 2.5);
  }

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

  .\[\&\>svg\]\:w-2\.5 > svg {
    width: calc(var(--spacing) * 2.5);
  }

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

  .\[\&\>svg\]\:text-muted-foreground > svg {
    color: var(--ui-muted-foreground);
  }
}

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

@property --scroll-fade-t {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0;
}

@property --scroll-fade-b {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0;
}

@property --scroll-fade-s {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0;
}

@property --scroll-fade-e {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0;
}

@property --scroll-fade-mask {
  syntax: "*";
  inherits: false
}

@property --shimmer-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 20deg;
}

@property --shimmer-image {
  syntax: "*";
  inherits: false
}

@property --shimmer-text-fill {
  syntax: "*";
  inherits: false
}

@media (prefers-reduced-motion: reduce) {
  .shimmer {
    -webkit-text-fill-color: currentColor;
    background-image: none;
    animation: none;
  }
}

:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --c-00000004: #00000004;
  --c-00000005: #00000005;
  --c-00000007: #00000007;
  --c-00000009: #00000009;
  --c-00000011: #0001;
  --c-00000015: #00000015;
  --c-00000022: #0002;
  --c-00000033: #0003;
  --c-16161633: #16161633;
  --c-1b76cf: #1b76cf;
  --brand: #f0a17b;
  --brand-hover: #e58a5f;
  --brand-ink: #2b1a10;
  --c-2383e2: var(--brand);
  --c-2e7d4f: #2e7d4f;
  --c-37352f: #37352f;
  --c-3788cb: #3788cb;
  --c-4b4942: #4b4942;
  --c-4e4c45: #4e4c45;
  --c-504e47: #504e47;
  --c-507fa5: #507fa5;
  --c-55534e: #55534e;
  --c-597d9c: #597d9c;
  --c-608765: #608765;
  --c-66645c: #66645c;
  --c-669776: #669776;
  --c-6e6d65: #6e6d65;
  --c-6f6e67: #6f6e67;
  --c-77766e: #77766e;
  --c-777670: #777670;
  --c-787774: #787774;
  --c-797870: #797870;
  --c-79b7ef: #79b7ef;
  --c-7a9d83: #7a9d83;
  --c-827a6b: #827a6b;
  --c-827e70: #827e70;
  --c-85847e: #85847e;
  --c-8a8780: #8a8780;
  --c-8a8984: #8a8984;
  --c-8d8472: #8d8472;
  --c-8f8a80: #8f8a80;
  --c-91918e: #91918e;
  --c-91c5f4: #91c5f4;
  --c-9271a8: #9271a8;
  --c-96958d: #96958d;
  --c-96958f: #96958f;
  --c-97968f: #97968f;
  --c-98968d: #98968d;
  --c-99988f: #99988f;
  --c-9b927f: #9b927f;
  --c-9b9a92: #9b9a92;
  --c-9b9a95: #9b9a95;
  --c-9b9a97: #9b9a97;
  --c-9c9b93: #9c9b93;
  --c-9c9b94: #9c9b94;
  --c-a09f97: #a09f97;
  --c-a09f98: #a09f98;
  --c-a09f99: #a09f99;
  --c-a1a09b: #a1a09b;
  --c-a2a198: #a2a198;
  --c-a3a299: #a3a299;
  --c-a3a29e: #a3a29e;
  --c-a3a29f: #a3a29f;
  --c-a5a399: #a5a399;
  --c-a5a4a0: #a5a4a0;
  --c-a6a59c: #a6a59c;
  --c-a6a5a2: #a6a5a2;
  --c-a8a69b: #a8a69b;
  --c-a8a79e: #a8a79e;
  --c-a8c8e9: #a8c8e9;
  --c-aaa08b: #aaa08b;
  --c-aaa193: #aaa193;
  --c-aaa394: #aaa394;
  --c-aaa79b: #aaa79b;
  --c-aaa89f: #aaa89f;
  --c-aaa99f: #aaa99f;
  --c-aaa9a1: #aaa9a1;
  --c-aaa9a2: #aaa9a2;
  --c-aaa9a3: #aaa9a3;
  --c-aaaaaa: #aaa;
  --c-ab8737: #ab8737;
  --c-ab9d83: #ab9d83;
  --c-acaba5: #acaba5;
  --c-adaca5: #adaca5;
  --c-adaca8: #adaca8;
  --c-adada6: #adada6;
  --c-b39385: #b39385;
  --c-b4b4b0: #b4b4b0;
  --c-b5804c: #b5804c;
  --c-b5b4aa: #b5b4aa;
  --c-b5b4af: #b5b4af;
  --c-b6b5ad: #b6b5ad;
  --c-b7b5ac: #b7b5ac;
  --c-b8b6ac: #b8b6ac;
  --c-b97469: #b97469;
  --c-ba7564: #ba7564;
  --c-bd8b23: #bd8b23;
  --c-bebdb4: #bebdb4;
  --c-bebdb9: #bebdb9;
  --c-bfbeb6: #bfbeb6;
  --c-c0bfba: #c0bfba;
  --c-c56851: #c56851;
  --c-c8c8c5: #c8c8c5;
  --c-c9c8c3: #c9c8c3;
  --c-cae2f8: #cae2f8;
  --c-ccc5b7: #ccc5b7;
  --c-cce7ff: #cce7ff;
  --c-cda03b: #cda03b;
  --c-d3d1c8: #d3d1c8;
  --c-d44c47: #d44c47;
  --c-d4d4d0: #d4d4d0;
  --c-d6d6cf: #d6d6cf;
  --c-dcdcd4: #dcdcd4;
  --c-deedf7: #deedf7;
  --c-dfdfdb: #dfdfdb;
  --c-dfdfdc: #dfdfdc;
  --c-dfebdf: #dfebdf;
  --c-e3e2e0: #e3e2e0;
  --c-e46d65: #e46d65;
  --c-e4e1d9: #e4e1d9;
  --c-e4e4e0: #e4e4e0;
  --c-e5e5df: #e5e5df;
  --c-e6dfd2: #e6dfd2;
  --c-e7e1d6: #e7e1d6;
  --c-e7e5df: #e7e5df;
  --c-e7eef6: #e7eef6;
  --c-e9e9e5: #e9e9e5;
  --c-e9e9e7: #e9e9e7;
  --c-eae9e5: #eae9e5;
  --c-eae9e6: #eae9e6;
  --c-eaeae7: #eaeae7;
  --c-ececea: #ececea;
  --c-eee4f2: #eee4f2;
  --c-eeeae1: #eeeae1;
  --c-eeeeeb: #eeeeeb;
  --c-efefed: #efefed;
  --c-f0f0ed: #f0f0ed;
  --c-f1efea: #f1efea;
  --c-f1f1ef: #f1f1ef;
  --c-f2f1ec: #f2f1ec;
  --c-f2f8fd: #f2f8fd;
  --c-f2f8fe: #f2f8fe;
  --c-f4f4f0: #f4f4f0;
  --c-f5f5f2: #f5f5f2;
  --c-f5f5f3: #f5f5f3;
  --c-f6f5f0: #f6f5f0;
  --c-f7f7f5: #f7f7f5;
  --c-f8e8da: #f8e8da;
  --c-f9f9f6: #f9f9f6;
  --c-faedcc: #faedcc;
  --c-faf9f6: #faf9f6;
  --c-fafaf8: #fafaf8;
  --c-fbe4e0: #fbe4e0;
  --c-fcfcfa: #fcfcfa;
  --c-fcfcfb: #fcfcfb;
  --c-fff0ed: #fff0ed;
  --c-fff2ee: #fff2ee;
  --c-ffffff: #fff;
  --c-ffffff38: #ffffff38;
  --c-fffffff5: #fffffff5;
}

@media not print {
  :root[data-theme="dark"] {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
    color-scheme: dark;
    --c-00000004: #dedede04;
    --c-00000005: #dedede05;
    --c-00000007: #dedede07;
    --c-00000009: #dedede09;
    --c-00000011: #dedede11;
    --c-00000015: #dedede15;
    --c-00000022: #dedede22;
    --c-00000033: #dedede33;
    --c-16161633: #dedede33;
    --c-1b76cf: #58adff;
    --c-2383e2: var(--brand);
    --c-2e7d4f: #7bc996;
    --c-37352f: #e0ded6;
    --c-3788cb: #51a1e5;
    --c-4b4942: #dedbd3;
    --c-4e4c45: #dad8cf;
    --c-504e47: #d8d6cd;
    --c-507fa5: #7aaad2;
    --c-55534e: #d2cfca;
    --c-597d9c: #85aacb;
    --c-608765: #86ae8b;
    --c-66645c: #bfbdb4;
    --c-669776: #6fa07f;
    --c-6e6d65: #b4b3ab;
    --c-6f6e67: #b3b2aa;
    --c-77766e: #aaa9a1;
    --c-777670: #aaa9a3;
    --c-787774: #a8a7a4;
    --c-797870: #a8a79f;
    --c-79b7ef: #2f6ca0;
    --c-7a9d83: #709279;
    --c-827a6b: #aaa292;
    --c-827e70: #a4a091;
    --c-85847e: #9a9993;
    --c-8a8780: #98958e;
    --c-8a8984: #94938e;
    --c-8d8472: #a09784;
    --c-8f8a80: #969187;
    --c-91918e: #8b8b88;
    --c-91c5f4: #2b5c86;
    --c-9271a8: #af8dc6;
    --c-96958d: #88877f;
    --c-96958f: #878680;
    --c-97968f: #86857f;
    --c-98968d: #87857c;
    --c-99988f: #85847b;
    --c-9b927f: #908775;
    --c-9b9a92: #828179;
    --c-9b9a95: #82817c;
    --c-9b9a97: #81807d;
    --c-9c9b93: #818078;
    --c-9c9b94: #818079;
    --c-a09f97: #7d7c74;
    --c-a09f98: #7c7b75;
    --c-a09f99: #7c7b76;
    --c-a1a09b: #7b7a75;
    --c-a2a198: #7b7a71;
    --c-a3a299: #797970;
    --c-a3a29e: #797874;
    --c-a3a29f: #787775;
    --c-a5a399: #79776e;
    --c-a5a4a0: #767572;
    --c-a6a59c: #76756d;
    --c-a6a5a2: #757471;
    --c-a8a69b: #76746a;
    --c-a8a79e: #74736b;
    --c-a8c8e9: #395672;
    --c-aaa08b: #817864;
    --c-aaa193: #7f7669;
    --c-aaa394: #7c7567;
    --c-aaa79b: #757367;
    --c-aaa89f: #737169;
    --c-aaa99f: #727168;
    --c-aaa9a1: #727169;
    --c-aaa9a2: #71716a;
    --c-aaa9a3: #71706b;
    --c-aaaaaa: #6f6f6f;
    --c-ab8737: #ad893a;
    --c-ab9d83: #877a61;
    --c-acaba5: #6f6e69;
    --c-adaca5: #6e6d67;
    --c-adaca8: #6e6d69;
    --c-adada6: #6d6d66;
    --c-b39385: #97786a;
    --c-b4b4b0: #656561;
    --c-b5804c: #b8824e;
    --c-b5b4aa: #66655c;
    --c-b5b4af: #656460;
    --c-b6b5ad: #65645d;
    --c-b7b5ac: #65635b;
    --c-b8b6ac: #64635a;
    --c-b97469: #c47e73;
    --c-ba7564: #c47e6d;
    --c-bd8b23: #ae7c03;
    --c-bebdb4: #5c5b54;
    --c-bebdb9: #5b5b57;
    --c-bfbeb6: #5b5a53;
    --c-c0bfba: #5a5954;
    --c-c56851: #d77861;
    --c-c8c8c5: #4f4f4d;
    --c-c9c8c3: #504f4b;
    --c-cae2f8: #273b4c;
    --c-ccc5b7: #575145;
    --c-cce7ff: #203649;
    --c-cda03b: #946900;
    --c-d3d1c8: #48463f;
    --c-d44c47: #f56a62;
    --c-d4d4d0: #434340;
    --c-d6d6cf: #42423c;
    --c-dcdcd4: #3c3c36;
    --c-deedf7: #232f37;
    --c-dfdfdb: #393935;
    --c-dfdfdc: #383836;
    --c-dfebdf: #2a332a;
    --c-e3e2e0: #363533;
    --c-e46d65: #cf5a53;
    --c-e4e1d9: #383630;
    --c-e4e4e0: #343431;
    --c-e5e5df: #33332e;
    --c-e6dfd2: #3c372c;
    --c-e7e1d6: #3a352c;
    --c-e7e5df: #34322e;
    --c-e7eef6: #262b31;
    --c-e9e9e5: #2f2f2c;
    --c-e9e9e7: #2f2f2d;
    --c-eae9e5: #2f2e2b;
    --c-eae9e6: #2f2e2c;
    --c-eaeae7: #2e2e2c;
    --c-ececea: #2c2c2a;
    --c-eee4f2: #342c37;
    --c-eeeae1: #302d26;
    --c-eeeeeb: #2a2a28;
    --c-efefed: #292928;
    --c-f0f0ed: #282826;
    --c-f1efea: #2a2925;
    --c-f1f1ef: #272726;
    --c-f2f1ec: #282724;
    --c-f2f8fd: #1e2226;
    --c-f2f8fe: #1e2226;
    --c-f4f4f0: #252522;
    --c-f5f5f2: #242422;
    --c-f5f5f3: #242422;
    --c-f6f5f0: #242420;
    --c-f7f7f5: #222220;
    --c-f8e8da: #362a1f;
    --c-f9f9f6: #20201e;
    --c-faedcc: #33290d;
    --c-faf9f6: #20201e;
    --c-fafaf8: #1f1f1e;
    --c-fbe4e0: #3a2926;
    --c-fcfcfa: #1d1d1c;
    --c-fcfcfb: #1d1d1d;
    --c-fff0ed: #2c2220;
    --c-fff2ee: #2a211e;
    --c-ffffff: #1b1b1b;
    --c-ffffff38: #1b1b1b38;
    --c-fffffff5: #1b1b1bf5;
  }
}

:root {
  --background: #fff;
  --foreground: #0a0a0a;
  --card: #fff;
  --card-foreground: #0a0a0a;
  --popover: #fff;
  --popover-foreground: #0a0a0a;
  --primary: var(--brand);
  --primary-foreground: var(--brand-ink);
  --ui-secondary: #f5f5f5;
  --ui-secondary-foreground: #171717;
  --ui-muted: #f5f5f5;
  --ui-muted-foreground: #737373;
  --accent: #f5f5f5;
  --accent-foreground: #171717;
  --destructive: #e40014;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: var(--brand);
  --chart-1: #d4d4d4;
  --chart-2: #737373;
  --chart-3: #525252;
  --chart-4: #404040;
  --chart-5: #262626;
  --radius: .375rem;
  --sidebar: var(--c-f7f7f5);
  --sidebar-foreground: #0a0a0a;
  --sidebar-primary: #171717;
  --sidebar-primary-foreground: #fafafa;
  --sidebar-accent: #f5f5f5;
  --sidebar-accent-foreground: #171717;
  --sidebar-border: #e5e5e5;
  --sidebar-ring: #a1a1a1;
  --text: var(--c-37352f);
  --muted: var(--c-9b9a97);
  --secondary: var(--c-787774);
  --line: var(--c-e9e9e7);
  --hover: var(--c-f1f1ef);
  --blue: var(--brand);
  --blue-hover: var(--brand-hover);
  --font: var(--font-mona), ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
  --font-display: var(--font-archivo), var(--font);
}

@supports (color: lab(0% 0 0)) {
  :root {
    --background: lab(100% 0 0);
    --foreground: lab(2.75381% 0 0);
    --card: lab(100% 0 0);
    --card-foreground: lab(2.75381% 0 0);
    --popover: lab(100% 0 0);
    --popover-foreground: lab(2.75381% 0 0);
    --ui-secondary: lab(96.52% -.0000298023 .0000119209);
    --ui-secondary-foreground: lab(7.78201% -.0000149012 0);
    --ui-muted: lab(96.52% -.0000298023 .0000119209);
    --ui-muted-foreground: lab(48.496% 0 0);
    --accent: lab(96.52% -.0000298023 .0000119209);
    --accent-foreground: lab(7.78201% -.0000149012 0);
    --destructive: lab(48.4493% 77.4328 61.5452);
    --border: lab(90.952% 0 -.0000119209);
    --input: lab(90.952% 0 -.0000119209);
    --chart-1: lab(84.92% 0 -.0000119209);
    --chart-2: lab(48.496% 0 0);
    --chart-3: lab(34.924% 0 0);
    --chart-4: lab(27.036% 0 0);
    --chart-5: lab(15.204% 0 -.00000596046);
    --sidebar: lab(98.26% 0 0);
    --sidebar-foreground: lab(2.75381% 0 0);
    --sidebar-primary: lab(7.78201% -.0000149012 0);
    --sidebar-primary-foreground: lab(98.26% 0 0);
    --sidebar-accent: lab(96.52% -.0000298023 .0000119209);
    --sidebar-accent-foreground: lab(7.78201% -.0000149012 0);
    --sidebar-border: lab(90.952% 0 -.0000119209);
    --sidebar-ring: lab(66.128% -.0000298023 .0000119209);
  }
}

.inline-metrics strong, .ty-cell, .payroll-group-total, .computed-pay {
  font-family: var(--font-display);
  letter-spacing: 0;
  font-weight: 400;
}

.inline-metrics small {
  font-family: var(--font);
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  color: var(--text);
  background: var(--c-ffffff);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-size: 14px;
}

button:where(:not([data-slot])), input, textarea, select {
  font: inherit;
  color: inherit;
}

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

button:where(:not([data-slot])) {
  cursor: pointer;
  background: none;
  border: 0;
}

button[data-slot]:not(:disabled) {
  cursor: pointer;
}

button:where(:not([data-slot])):disabled {
  cursor: default;
  opacity: .45;
}

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

svg {
  stroke-width: 1.65px;
  vertical-align: middle;
  flex-shrink: 0;
}

button:where(:not([data-slot])):focus-visible, a:focus-visible {
  outline: 2px solid var(--c-79b7ef);
  outline-offset: 2px;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--c-91c5f4);
  outline-offset: 0;
}

input::placeholder, textarea::placeholder {
  color: var(--c-b4b4b0);
}

::selection {
  background: var(--c-cce7ff);
}

input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

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

.icon-button {
  width: 28px;
  height: 28px;
  color: var(--secondary);
  border-radius: 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

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

.button {
  border: 1px solid var(--c-dfdfdc);
  background: var(--c-ffffff);
  white-space: nowrap;
  box-shadow: 0 1px 2px var(--c-00000004);
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  display: inline-flex;
}

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

.button.blue {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--brand-ink);
}

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

.button-divider {
  background: var(--c-ffffff38);
  width: 1px;
  height: 17px;
  margin-left: 3px;
}

.text-button {
  color: var(--secondary);
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  font-size: 13px;
  display: inline-flex;
}

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

.accent-text {
  color: var(--blue) !important;
}

.overdue {
  color: var(--c-d44c47) !important;
}

.database-table tbody tr.material-late td {
  background: var(--c-d44c47);
}

@supports (color: color-mix(in lab, red, red)) {
  .database-table tbody tr.material-late td {
    background: color-mix(in srgb, var(--c-d44c47) 18%, transparent);
  }
}

.database-table tbody tr.material-late:hover td {
  background: var(--c-d44c47);
}

@supports (color: color-mix(in lab, red, red)) {
  .database-table tbody tr.material-late:hover td {
    background: color-mix(in srgb, var(--c-d44c47) 26%, transparent);
  }
}

.database-table tbody tr.converted-row td {
  background: var(--c-2e7d4f);
}

@supports (color: color-mix(in lab, red, red)) {
  .database-table tbody tr.converted-row td {
    background: color-mix(in srgb, var(--c-2e7d4f) 16%, transparent);
  }
}

.database-table tbody tr.converted-row:hover td {
  background: var(--c-2e7d4f);
}

@supports (color: color-mix(in lab, red, red)) {
  .database-table tbody tr.converted-row:hover td {
    background: color-mix(in srgb, var(--c-2e7d4f) 24%, transparent);
  }
}

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

.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--c-efefed);
  z-index: 45;
  flex-direction: column;
  width: 244px;
  padding: 10px 8px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.workspace-switch {
  align-items: center;
  height: 36px;
  margin-bottom: 14px;
  padding: 1px 3px;
  display: flex;
}

.workspace-brand {
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-width: 0;
  display: flex;
}

.workspace-brand strong {
  letter-spacing: -.3px;
  font-size: 15px;
  font-weight: 600;
}

.workspace-brand > svg {
  color: var(--muted);
  margin-left: 4px;
}

.workspace-logo {
  border: 1px solid var(--c-c8c8c5);
  background: var(--c-ffffff);
  width: 26px;
  height: 26px;
  box-shadow: 1px 1px 0 var(--c-d4d4d0);
  letter-spacing: -1.5px;
  border-radius: 5px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding-right: 2px;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
}

.workspace-logo > span {
  margin-top: 4px;
  font-size: 12px;
}

.collapse-button {
  opacity: 0;
  width: 23px;
}

.sidebar:hover .collapse-button {
  opacity: 1;
}

.nav-row {
  width: 100%;
  min-height: 33px;
  color: var(--c-787774);
  text-align: left;
  border-radius: 5px;
  align-items: center;
  gap: 9px;
  margin: 1px 0;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
}

.nav-row:hover {
  background: var(--c-ececea);
}

.nav-row.selected {
  background: var(--c-eaeae7);
  color: var(--c-37352f);
  font-weight: 500;
}

.nav-row > span:not(.nav-count) {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.nav-row > svg {
  color: var(--c-91918e);
}

.nav-row.selected > svg {
  color: var(--c-55534e);
}

.nav-row kbd {
  font-family: var(--font);
  opacity: 0;
  color: var(--c-a5a4a0);
  margin-left: auto;
  font-size: 10px;
}

.search-nav:hover kbd {
  opacity: 1;
}

.nav-count {
  color: var(--muted);
  margin-left: auto;
  font-size: 11px;
}

.sidebar-section {
  margin-top: 23px;
}

.sidebar-label {
  height: 28px;
  color: var(--c-9b9a97);
  justify-content: space-between;
  align-items: center;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
}

.sidebar-label .icon-button {
  opacity: 0;
  width: 22px;
  height: 22px;
}

summary.sidebar-label {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 4px;
  list-style: none;
}

summary.sidebar-label::-webkit-details-marker {
  display: none;
}

summary.sidebar-label:hover {
  background: var(--hover);
}

summary.sidebar-label > span {
  align-items: center;
  gap: 4px;
  width: 100%;
  display: flex;
}

summary.sidebar-label > span > .fold-chevron {
  color: var(--c-a6a5a2);
  order: -1;
  transition: transform .15s;
}

.sidebar-section:not([open]) .fold-chevron {
  transform: rotate(-90deg);
}

summary.sidebar-label .icon-button {
  margin-left: auto;
}

.sidebar-section:hover .sidebar-label .icon-button {
  opacity: 1;
}

.sidebar-parent {
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding: 7px;
  font-size: 12px;
  display: flex;
}

.sidebar-parent > svg {
  color: var(--c-a6a5a2);
}

.sidebar-parent > span:not(.tiny-lock) {
  margin-right: 4px;
  font-size: 15px;
}

.sidebar-parent strong {
  font-weight: 500;
}

.nav-row.nested {
  padding-left: 28px;
  font-size: 13px;
}

.nav-row.nested > svg {
  width: 16px;
  height: 16px;
}

.new-page {
  color: var(--c-a3a29e);
  margin-top: 5px;
}

.sidebar-hint {
  color: var(--muted);
  padding: 7px 12px;
  font-size: 11px;
  display: block;
}

.sidebar-scroll {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-scroll:hover {
  scrollbar-color: var(--c-e9e9e5) transparent;
}

.sidebar-bottom {
  flex-shrink: 0;
  padding-top: 12px;
}

.sidebar-user {
  border-top: 1px solid var(--c-e9e9e5);
  align-items: center;
  gap: 9px;
  margin: 12px 2px 0;
  padding: 15px 7px 5px;
  font-size: 12px;
  display: flex;
}

.user-avatar {
  background: var(--c-e4e4e0);
  color: var(--c-6e6d65);
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 29px;
  height: 29px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.sidebar-user small {
  color: var(--c-a1a09b);
  margin-top: 3px;
  font-size: 10px;
  display: block;
}

.online-dot {
  background: var(--c-7a9d83);
  border-radius: 50%;
  width: 6px;
  height: 6px;
  margin-left: auto;
  margin-right: 4px;
}

.workspace-main {
  flex-direction: column;
  min-height: 100vh;
  margin-left: 244px;
  display: flex;
}

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

.sidebar-collapsed .workspace-main {
  margin-left: 0;
}

.topbar {
  background: var(--c-fffffff5);
  z-index: 35;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  font-size: 12px;
  display: flex;
  position: sticky;
  top: 0;
}

.breadcrumbs {
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  display: flex;
  overflow: hidden;
}

.breadcrumbs > a {
  border-radius: 4px;
  align-items: center;
  gap: 7px;
  padding: 4px;
  display: flex;
}

.breadcrumbs > a:hover {
  background: var(--hover);
}

.breadcrumbs > svg {
  color: var(--c-bebdb9);
}

.breadcrumb-current {
  text-overflow: ellipsis;
  overflow: hidden;
}

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

.edited {
  color: var(--c-a3a29f);
  padding-right: 10px;
  font-size: 11px;
}

.favorited {
  color: var(--c-cda03b);
}

.favorited:hover {
  color: var(--c-bd8b23);
}

.mobile-menu {
  display: none;
}

.dropdown-anchor {
  position: relative;
}

.dropdown-menu {
  background: var(--c-ffffff);
  width: 235px;
  box-shadow: 0 4px 20px var(--c-00000022),
    0 0 0 1px var(--c-00000009);
  z-index: 60;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  top: 34px;
  right: 0;
}

.dropdown-menu button, .dropdown-menu a {
  text-align: left;
  border-radius: 4px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  font-size: 12px;
  display: flex;
}

.dropdown-menu button:hover, .dropdown-menu a:hover {
  background: var(--hover);
}

.dropdown-dismiss {
  cursor: default;
  position: fixed;
  inset: 0;
}

.main-content {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.workspace-footnote {
  color: var(--c-c0bfba);
  justify-content: space-between;
  gap: 15px;
  margin: 40px 55px 24px;
  font-size: 10px;
  display: flex;
}

.workspace-footnote > span:first-child {
  color: var(--c-acaba5);
}

.document {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 40px 25px;
}

.document-heading {
  margin-bottom: 22px;
}

.document-icon {
  color: var(--secondary);
  margin-bottom: 10px;
}

.document-heading h1 {
  letter-spacing: -1.3px;
  margin: 0 0 8px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
}

.document-heading > p {
  color: var(--c-96958f);
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.notion-callout {
  background: var(--c-f7f7f5);
  border: 1px solid var(--c-eeeeeb);
  border-radius: 4px;
  gap: 15px;
  margin: 0 0 22px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  display: flex;
}

.notion-callout > span {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1.6;
}

.notion-callout p {
  color: var(--c-85847e);
  margin: 0;
}

.notion-callout strong {
  color: var(--c-504e47);
  font-weight: 500;
}

.document-section {
  margin-top: 22px;
}

.document-section h2 {
  letter-spacing: -.35px;
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.inline-metrics {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 3px 0;
  display: grid;
}

.inline-metrics > div, .inline-metrics > a {
  border-left: 2px solid var(--c-e9e9e5);
  padding: 2px 17px;
}

.inline-metrics > a:hover {
  border-left-color: var(--c-bfbeb6);
}

.inline-metrics > div > span, .inline-metrics > a > span {
  color: var(--c-97968f);
  font-size: 12px;
}

.inline-metrics strong {
  letter-spacing: -.7px;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
  display: flex;
}

.inline-metrics small {
  color: var(--c-aaa9a2);
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 400;
}

.workspace-links {
  margin-top: 35px;
}

.page-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 28px;
  display: grid;
}

.page-link-grid > a {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  padding: 11px 3px;
  display: flex;
}

.page-link-grid > a:hover {
  background: var(--c-fafaf8);
}

.page-link-grid > a > span {
  font-size: 20px;
}

.page-link-grid strong {
  text-decoration: underline;
  -webkit-text-decoration-color: var(--c-d6d6cf);
  text-decoration-color: var(--c-d6d6cf);
  text-underline-offset: 4px;
  font-size: 14px;
  font-weight: 500;
}

.page-link-grid small {
  color: var(--c-a2a198);
  margin-top: 7px;
  font-size: 11px;
  display: block;
}

.page-link-grid > a > svg {
  color: var(--c-b6b5ad);
  margin-left: auto;
}

.home-document .document-section {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 10px;
  margin-top: 16px;
  padding: 18px 20px 20px;
}

.home-document .home-columns .document-section:first-child {
  margin-top: 0;
}

.home-document .forecast {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 16px 18px;
}

.home-columns {
  grid-template-columns: minmax(0, 2.1fr) minmax(205px, 1fr);
  gap: 16px;
  margin-top: 16px;
  display: grid;
}

.home-columns > div {
  min-width: 0;
}

.section-title {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  display: flex;
}

.section-title h2 {
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  display: flex;
}

.section-title h2 > span {
  font-size: 17px;
}

.section-title > a {
  color: var(--c-a09f97);
  align-items: center;
  gap: 5px;
  font-size: 11px;
  display: flex;
}

.home-tasks {
  padding-left: 5px;
}

.empty-tasks {
  text-align: center;
  border-top: 1px solid var(--line);
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
  padding: 26px 20px 24px;
  display: flex;
}

.empty-tasks > svg {
  color: var(--c-bebdb4);
  margin-bottom: 12px;
}

.empty-tasks strong {
  color: var(--c-99988f);
  font-size: 12px;
  font-weight: 500;
}

.empty-tasks p {
  color: var(--c-b5b4aa);
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.8;
}

.subtle-link {
  border-top: 1px solid var(--line);
  color: var(--c-9c9b93);
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  font-size: 11px;
  display: flex;
}

.task-line {
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  display: flex;
}

.task-line > input {
  margin-top: 2px;
}

.task-line > button {
  text-align: left;
  flex: 1;
  padding: 0;
}

.task-line strong {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  display: block;
}

.task-line small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 10px;
  display: block;
}

.bottom-note {
  border-top: 1px solid var(--line);
  color: var(--c-aaa89f);
  gap: 10px;
  margin-top: 35px;
  padding: 18px 0 0;
  font-size: 11px;
  line-height: 1.8;
  display: flex;
}

.bottom-note > span {
  font-size: 16px;
}

.bottom-note p {
  margin: 0;
}

.alert-section {
  margin-top: 0;
}

.alert-list {
  border-top: 1px solid var(--line);
}

.alert-line {
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 6px;
  display: flex;
}

.alert-line:hover {
  background: var(--hover);
}

.alert-row {
  border-bottom: 1px solid var(--line);
  align-items: center;
  display: flex;
}

.alert-row > .alert-line {
  border-bottom: 0;
  flex: 1;
  min-width: 0;
}

.alert-done {
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  border-radius: 6px;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 5px 9px;
  font-size: 11px;
  display: inline-flex;
}

.alert-done:hover {
  background: var(--hover);
  color: var(--text);
}

.alert-line > .tag {
  flex-shrink: 0;
  justify-content: center;
  min-width: 96px;
}

.alert-line strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  overflow: hidden;
}

.alert-line small {
  color: var(--muted);
  white-space: nowrap;
  font-size: 11px;
}

.alert-line > svg {
  color: var(--c-b6b5ad);
  flex-shrink: 0;
}

.alert-line.plain {
  padding: 9px 3px;
}

.alert-line.plain strong {
  font-size: 12px;
}

.month-chart {
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 6px;
  height: 120px;
  margin-top: 28px;
  padding-top: 12px;
  display: grid;
}

.month-bar {
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  height: 100%;
  display: flex;
}

.month-bar > div {
  background: var(--c-deedf7);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: background .15s;
}

.month-bar:hover > div {
  background: var(--blue);
}

.month-bar small {
  color: var(--muted);
  text-align: center;
  text-transform: capitalize;
  margin-top: 6px;
  font-size: 10px;
}

.thirty-six .section-title {
  flex-wrap: wrap;
}

.ty-grid {
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
  width: 100%;
  margin: 8px -4px 0;
}

.ty-grid th {
  color: var(--muted);
  text-align: center;
  padding: 0 0 2px;
  font-size: 11px;
  font-weight: 500;
}

.ty-grid tbody th {
  text-align: right;
  width: 40px;
  padding-right: 6px;
  font-weight: 600;
}

.ty-cell {
  background: var(--sidebar);
  height: 30px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  display: flex;
}

.ty-cell.future {
  border: 1px dashed var(--line);
  background: none;
}

.ty-cell.current {
  box-shadow: 0 0 0 2px var(--text);
}

.ty-note {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.forecast {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.forecast-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex;
}

.forecast-head h3 {
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 14px;
  display: flex;
}

.forecast-total {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
}

.forecast-insight {
  margin: 6px 0 10px;
  font-size: 12px;
  line-height: 1.5;
}

.forecast-details {
  color: var(--muted);
  margin-top: 8px;
  font-size: 12px;
}

.forecast-details > summary {
  cursor: pointer;
}

.forecast-factors {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 16px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.forecast-factors li {
  color: var(--muted);
  gap: 2px;
  font-size: 12px;
  display: grid;
}

.forecast-factors strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

@media (max-width: 700px) {
  .forecast-factors {
    grid-template-columns: 1fr 1fr;
  }

  .ty-cell {
    height: 24px;
    font-size: 10px;
  }

  .ty-grid tbody th {
    width: 32px;
  }
}

.source-rows {
  border-top: 1px solid var(--line);
}

.source-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(90px, 140px) 1fr 70px;
  align-items: center;
  gap: 14px;
  padding: 10px 3px;
  font-size: 12px;
  display: grid;
}

.source-row > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.source-bar {
  background: var(--hover);
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
}

.source-bar > div {
  background: var(--c-507fa5);
  border-radius: 3px;
  height: 100%;
}

.source-row small {
  color: var(--muted);
  text-align: right;
  font-size: 11px;
}

@media (min-width: 961px) {
  .inline-metrics.five {
    grid-template-columns: repeat(5, 1fr);
  }
}

.inline-metrics.two {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
}

.mini-title {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--line);
  margin: 16px 0 4px;
  padding-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
}

.database-document {
  padding-top: 50px;
}

.database-document .document-heading {
  margin-bottom: 30px;
}

.database-toolbar {
  border-bottom: 1px solid var(--c-dfdfdb);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  display: flex;
}

.database-tabs {
  scrollbar-width: none;
  align-items: center;
  gap: 19px;
  min-width: 0;
  min-height: 41px;
  display: flex;
  overflow-x: auto;
}

.linked-database .database-tabs {
  border-bottom: 1px solid var(--c-dfdfdb);
  justify-content: space-between;
  min-height: 38px;
  margin-top: 11px;
}

.database-tab {
  height: 100%;
  color: var(--c-9b9a95);
  white-space: nowrap;
  border-bottom: 2px solid #0000;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: -1px;
  padding: 12px 1px 10px;
  font-size: 12px;
  display: flex;
}

.database-tab.active {
  color: var(--c-4b4942);
  border-bottom-color: var(--c-4b4942);
  font-weight: 500;
}

.tab-count {
  color: var(--c-aaa99f);
  padding-left: 1px;
  font-size: 10px;
  font-weight: 400;
}

.database-tools {
  align-items: center;
  gap: 4px;
  padding-bottom: 3px;
  display: flex;
}

.tool-button {
  color: var(--c-9b9a95);
  border-radius: 4px;
  align-items: center;
  gap: 5px;
  padding: 6px;
  font-size: 11px;
  display: flex;
}

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

.start-button {
  background: var(--brand);
  height: 30px;
  color: var(--brand-ink);
  font-family: var(--font-display);
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  align-items: center;
  margin-left: 5px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 400;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

.start-button > span {
  margin-right: 30px;
  transition: opacity .5s;
}

.start-button > i {
  background: var(--brand-hover);
  border-radius: 5px;
  place-items: center;
  width: 24px;
  transition: width .5s, transform .5s;
  display: grid;
  position: absolute;
  top: 3px;
  bottom: 3px;
  right: 3px;
}

@media (hover: hover) {
  .start-button:hover > span {
    opacity: 0;
  }

  .start-button:hover > i {
    width: calc(100% - 6px);
  }
}

.start-button:active > i {
  transform: scale(.95);
}

@media (prefers-reduced-motion: reduce) {
  .start-button > span, .start-button > i {
    transition: none;
  }
}

.anti-button {
  --anti-base-top: #2b1a10;
  --anti-base-bottom: #180d07;
  --anti-label: #fff;
  background: linear-gradient(180deg, var(--anti-base-top) 0%, var(--anti-base-bottom) 100%);
  height: 30px;
  color: var(--anti-label);
  font-family: var(--font-display);
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  align-items: center;
  margin-left: 5px;
  padding: 0 11px 0 46px;
  font-size: 12px;
  font-weight: 400;
  transition: transform .15s;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px #ffffff14, 0 4px 12px #0000002e;
}

.anti-button:active {
  transform: scale(.98);
}

:root[data-theme="dark"] .anti-button {
  --anti-base-top: #fff;
  --anti-base-bottom: #ededed;
  --anti-label: #0a0a0a;
  box-shadow: inset 0 1px #ffffffe6, 0 4px 12px #00000059;
}

.anti-label {
  line-height: 1;
  position: relative;
}

.anti-tab {
  z-index: 1;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-hover) 100%);
  border-radius: 5px;
  align-items: center;
  gap: 9px;
  width: 32px;
  padding: 0 8px 0 10px;
  transition: width .2s cubic-bezier(.65, 0, .35, 1);
  display: flex;
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px #fff6, inset 0 -2px 4px #0000001f, 0 2px 4px #00000014;
}

.anti-button:hover .anti-tab, .anti-button:focus-visible .anti-tab {
  width: calc(100% - 6px);
}

.anti-chevron {
  fill: var(--brand-ink);
  flex-shrink: 0;
  overflow: visible;
}

.anti-chevron circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: 1.4s ease-in-out infinite anti-dot;
}

@keyframes anti-dot {
  0%, 70%, 100% {
    opacity: .25;
    transform: scale(.85);
  }

  35% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anti-chevron circle {
    opacity: 1;
    animation: none;
  }

  .anti-tab {
    transition: none;
  }
}

.tool-popover {
  position: relative;
}

.filter-popover {
  background: var(--c-ffffff);
  box-shadow: 0 4px 18px var(--c-00000022),
    0 0 0 1px var(--c-00000009);
  z-index: 20;
  border-radius: 6px;
  min-width: 230px;
  padding: 13px;
  position: absolute;
  top: 34px;
  right: 0;
}

.filter-popover label {
  color: var(--secondary);
  font-size: 11px;
  display: block;
}

.filter-popover label + label, .filter-popover .filter-dates, .filter-popover .filter-done {
  margin-top: 12px;
}

.filter-popover .filter-input {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  width: 100%;
  color: var(--text);
  border-radius: 4px;
  margin-top: 9px;
  padding: 8px;
  font-size: 12px;
  display: block;
}

.filter-dates {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}

.filter-dates label + label {
  margin-top: 0;
}

.filter-popover .filter-done {
  margin-left: auto;
  display: block;
}

.filter-popover select {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 4px;
  width: 100%;
  margin-top: 9px;
  padding: 8px;
  font-size: 12px;
}

.active-filters {
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  display: flex;
}

.inline-search {
  color: var(--muted);
  align-items: center;
  gap: 6px;
  display: flex;
}

.inline-search input {
  background: none;
  border: 0;
  width: 180px;
  padding: 3px;
  font-size: 12px;
}

.inline-search button {
  color: var(--c-aaaaaa);
}

.filter-chip {
  border: 1px solid var(--c-cae2f8);
  background: var(--c-f2f8fe);
  color: var(--c-3788cb);
  border-radius: 4px;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  font-size: 11px;
  display: flex;
}

.table-container {
  border-bottom: 1px solid var(--line);
  width: 100%;
  overflow-x: auto;
}

.database-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 13px;
}

.database-table th {
  color: var(--c-a3a299);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  padding: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.database-table th:first-child {
  padding-left: 7px;
}

.property-head {
  align-items: center;
  gap: 6px;
  display: flex;
}

.property-head svg {
  opacity: .85;
  width: 13px;
  height: 13px;
}

.database-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: 42px;
  color: var(--c-77766e);
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 310px;
  padding: 10px;
  font-size: 12px;
  overflow: hidden;
}

.database-table th:last-child, .database-table td:last-child {
  border-right: none;
  width: 28px;
  padding: 3px;
}

.database-table tbody tr:last-child td {
  border-bottom: 0;
}

.database-table tbody tr:hover td {
  background: var(--c-fafaf8);
}

.database-table .group-row td {
  background: var(--sidebar);
  height: auto;
  color: var(--muted);
  border-right: 0;
  width: auto;
  padding: 6px 10px;
  font-size: 11px;
}

.database-table .group-row td strong {
  color: var(--text);
  font-weight: 600;
}

.database-table .grouped-row td:first-child {
  box-shadow: inset 3px 0 0 var(--line);
  padding-left: 26px;
}

.database-table .name-column {
  width: 28%;
  min-width: 225px;
  color: var(--c-797870);
}

.database-table .checkbox-column {
  text-align: center;
  width: 50px;
  min-width: 50px;
}

.database-table .checkbox-column .property-head {
  gap: 3px;
  font-size: 10px;
}

.database-table th.select-column, .database-table td.select-column {
  text-align: center;
  vertical-align: middle;
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.database-table .select-column input {
  margin: 0 auto;
  display: block;
}

.bulk-bar {
  border: 1px solid var(--line);
  background: var(--sidebar);
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 8px 10px;
  font-size: 12px;
  display: flex;
}

.bulk-bar > strong {
  margin-right: 6px;
  font-weight: 400;
}

.database-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--c-66645c);
}

.record-name {
  text-align: left;
  width: 100%;
  min-height: 20px;
  color: var(--c-4e4c45);
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 12px;
  display: flex;
}

.record-name strong {
  text-overflow: ellipsis;
  max-width: 255px;
  font-weight: 500;
  overflow: hidden;
}

.record-name > svg {
  color: var(--c-a8a79e);
  width: 14px;
  height: 14px;
}

.open-hint {
  color: var(--c-98968d);
  background: var(--c-ffffff);
  border: 1px solid var(--c-e5e5df);
  box-shadow: 0 1px 2px var(--c-00000005);
  border-radius: 3px;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 3px 4px;
  font-size: 8px;
  display: none;
}

.record-name:hover .open-hint {
  display: flex;
}

.row-more {
  opacity: 0;
  width: 22px;
  height: 22px;
}

.database-table tr:hover .row-more, .row-more:focus-visible {
  opacity: 1;
}

.contact-avatar {
  background: var(--c-eae9e5);
  width: 19px;
  height: 19px;
  color: var(--c-827e70);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  display: inline-flex;
}

.contact-avatar.small {
  width: 17px;
  height: 17px;
  font-size: 9px;
}

.relation {
  text-overflow: ellipsis;
  align-items: center;
  gap: 6px;
  max-width: 190px;
  display: inline-flex;
  overflow: hidden;
}

.cell-link {
  text-underline-offset: 3px;
  text-decoration: underline;
  -webkit-text-decoration-color: var(--c-dcdcd4);
  text-decoration-color: var(--c-dcdcd4);
}

.empty-property {
  color: var(--c-d3d1c8);
  font-size: 11px;
}

.plain-tag {
  background: var(--c-f1efea);
  color: var(--c-8d8472);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  display: inline-block;
}

.status-cell {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.status-cell:focus-within {
  outline: 2px solid var(--c-79b7ef);
  outline-offset: 3px;
  border-radius: 2px;
}

.status-cell select:disabled {
  cursor: wait;
}

.tag {
  white-space: nowrap;
  color: var(--c-787774);
  background: var(--c-e3e2e0);
  border-radius: 3px;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.2;
  display: inline-flex;
}

.tag-dot {
  opacity: .75;
  background: currentColor;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.tag.gray {
  background: var(--c-eae9e6);
  color: var(--c-787774);
}

.tag.yellow {
  background: var(--c-faedcc);
  color: var(--c-ab8737);
}

.tag.purple {
  background: var(--c-eee4f2);
  color: var(--c-9271a8);
}

.tag.blue {
  background: var(--c-deedf7);
  color: var(--c-507fa5);
}

.tag.orange {
  background: var(--c-f8e8da);
  color: var(--c-b5804c);
}

.tag.green {
  background: var(--c-dfebdf);
  color: var(--c-608765);
}

.tag.red {
  background: var(--c-fbe4e0);
  color: var(--c-b97469);
}

.new-table-row {
  color: var(--c-a5a399);
  text-align: left;
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 11px 7px;
  font-size: 12px;
  display: flex;
}

.new-table-row:hover {
  background: var(--c-f9f9f6);
}

.new-table-row svg {
  width: 14px;
  height: 14px;
}

.blank-table-row {
  border-top: 1px solid var(--line);
  background: repeating-linear-gradient(90deg,
    transparent,
    transparent calc(33.33% - 1px),
    var(--c-f5f5f2) calc(33.33% - 1px),
    var(--c-f5f5f2) 33.33%);
  height: 29px;
}

.database-total {
  color: var(--c-a8a69b);
  align-items: center;
  gap: 10px;
  padding: 11px 7px;
  font-size: 10px;
  display: flex;
}

.database-total > span:first-child {
  letter-spacing: .3px;
  color: var(--c-b8b6ac);
  font-size: 8px;
}

.database-total .total-amount {
  margin-left: auto;
  font-size: 10px;
}

.compact-table .database-table {
  font-size: 11px;
}

.compact-table .database-table th, .compact-table .database-table td {
  padding: 9px 7px;
  font-size: 10px;
}

.compact-table .database-table .name-column {
  min-width: 180px;
}

.compact-table .database-table td:last-child, .compact-table .database-table th:last-child {
  display: none;
}

.compact-table .record-name {
  font-size: 11px;
}

.compact-table .tag {
  font-size: 9px;
}

.completed-row .record-name strong {
  color: var(--c-aaa79b);
  text-decoration: line-through;
}

.settled-row > td {
  opacity: .5;
}

.database-empty-note {
  text-align: center;
  color: var(--c-adaca5);
  padding: 62px 20px;
}

.database-empty-note > span {
  opacity: .8;
  margin-bottom: 17px;
  font-size: 29px;
  display: block;
}

.database-empty-note strong {
  color: var(--c-96958d);
  font-size: 14px;
  font-weight: 500;
  display: block;
}

.database-empty-note p {
  margin: 10px 0 16px;
  font-size: 12px;
}

.database-empty-note .text-button {
  font-size: 12px;
}

.view-footnote {
  color: var(--c-a6a59c);
  max-width: 680px;
  margin-top: 26px;
  font-size: 11px;
  line-height: 1.8;
}

.kanban-board {
  gap: 15px;
  min-height: 450px;
  padding: 18px 0 20px;
  display: flex;
  overflow: auto;
}

.kanban-column {
  border-radius: 5px;
  flex: 0 0 235px;
  padding: 0 3px 12px;
}

.kanban-heading {
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  display: flex;
}

.kanban-heading > .tag {
  font-size: 11px;
}

.kanban-heading > span:not(.tag) {
  color: var(--c-aaa99f);
  font-size: 11px;
}

.kanban-heading .icon-button {
  width: 22px;
  height: 22px;
  margin-left: auto;
}

.kanban-cards {
  flex-direction: column;
  gap: 9px;
  display: flex;
}

.kanban-card {
  background: var(--c-ffffff);
  border: 1px solid var(--c-e7e5df);
  box-shadow: 0 2px 3px var(--c-00000007);
  text-align: left;
  cursor: grab;
  border-radius: 4px;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  display: flex;
}

.kanban-card:hover {
  background: var(--c-fcfcfa);
}

.kanban-card strong {
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  display: flex;
}

.kanban-card strong > svg {
  color: var(--c-aaa99f);
  margin-top: 2px;
}

.kanban-client {
  color: var(--c-9c9b94);
  align-items: center;
  gap: 6px;
  font-size: 10px;
  display: flex;
}

.kanban-meta {
  width: 100%;
  color: var(--c-a09f98);
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  font-size: 10px;
  display: flex;
}

.kanban-meta > span {
  align-items: center;
  gap: 4px;
  display: flex;
}

.kanban-new {
  text-align: left;
  color: var(--c-aaa99f);
  align-items: center;
  gap: 7px;
  padding: 6px 4px;
  font-size: 12px;
  display: flex;
}

.kanban-new:hover {
  background: var(--c-f6f5f0);
  border-radius: 4px;
}

.drag-over {
  background: var(--c-f2f8fd);
  outline: 1px dashed var(--c-a8c8e9);
}

.dragging {
  opacity: .4;
}

.calendar-toolbar {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 13px;
  font-size: 12px;
  display: flex;
}

.calendar-toolbar > span {
  color: var(--secondary);
  align-items: center;
  gap: 7px;
  display: flex;
}

.calendar-toolbar > div {
  align-items: center;
  gap: 8px;
  display: flex;
}

.calendar-toolbar > div strong {
  text-transform: capitalize;
  text-align: center;
  min-width: 125px;
  font-size: 12px;
  font-weight: 500;
}

.calendar-toolbar .button {
  margin-right: 6px;
  font-size: 11px;
}

.calendar-scroll {
  overflow: auto;
}

.calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 630px;
  display: grid;
}

.calendar-weekday {
  text-align: right;
  color: var(--c-aaa394);
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  font-size: 10px;
}

.calendar-day {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-height: 115px;
  padding: 7px;
  display: flex;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.outside-month {
  background: var(--c-fafaf8);
}

.outside-month .calendar-date {
  color: var(--c-ccc5b7);
}

.calendar-date {
  text-align: center;
  width: 24px;
  height: 24px;
  color: var(--c-827a6b);
  border-radius: 50%;
  padding: 0;
  font-size: 11px;
}

.calendar-date:hover {
  background: var(--c-eeeae1);
}

.calendar-date.is-today {
  background: var(--c-e46d65);
  color: var(--c-ffffff);
}

.calendar-event {
  background: var(--c-f2f1ec);
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 3px;
  width: 100%;
  padding: 4px;
  font-size: 10px;
  line-height: 1.5;
  overflow: hidden;
}

.calendar-event.event-project {
  background: var(--c-e7eef6);
  color: var(--c-597d9c);
}

.calendar-event.event-measurement {
  color: #2e7d4f;
  background: #e4f3e8;
}

.calendar-event.event-job, .calendar-event.event-open {
  color: #c0392b;
  background: #fbe7e4;
  font-weight: 600;
}

:root[data-theme="dark"] .calendar-event.event-measurement {
  color: #8fd3a5;
  background: #1f3b2a;
}

:root[data-theme="dark"] .calendar-event.event-job, :root[data-theme="dark"] .calendar-event.event-open {
  color: #f2a196;
  background: #4a1f1b;
}

.settings-document {
  max-width: 1600px;
}

.settings-section {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.settings-section h2 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
}

.settings-row {
  grid-template-columns: 170px 1fr;
  gap: 15px;
  padding: 13px 0;
  font-size: 13px;
  display: grid;
}

.settings-row > span {
  color: var(--c-96958d);
}

.settings-row > strong {
  font-weight: 400;
}

.settings-section p {
  color: var(--c-96958d);
  max-width: 650px;
  font-size: 13px;
  line-height: 1.85;
}

.settings-section .button {
  margin-top: 8px;
}

dialog {
  color: var(--text);
  background: var(--c-ffffff);
  border: 0;
  padding: 0;
}

dialog::backdrop {
  background: var(--c-16161633);
}

.record-dialog {
  background: var(--c-ffffff);
  width: min(710px, 90vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  box-shadow: -6px 0 35px var(--c-00000015);
  margin: 0;
  animation: .18s ease-out peek-in;
  position: fixed;
  inset: 0 0 0 auto;
  overflow: auto;
}

.record-panel {
  flex-direction: column;
  min-height: 100%;
  display: flex;
}

.record-panel > form {
  flex-direction: column;
  flex: 1;
  min-height: calc(100dvh - 46px);
  display: flex;
}

.panel-topbar {
  border-bottom: 1px solid var(--c-f0f0ed);
  background: var(--c-ffffff);
  z-index: 3;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 15px;
  display: flex;
  position: sticky;
  top: 0;
}

.panel-topbar > span {
  color: var(--c-a09f98);
  align-items: center;
  gap: 8px;
  font-size: 11px;
  display: flex;
}

.panel-top-actions {
  gap: 6px;
  margin-left: auto;
  display: flex;
}

.panel-content {
  flex: 1;
  padding: 39px 44px 35px;
}

.panel-page-icon {
  margin-bottom: 18px;
  font-size: 42px;
}

.panel-number {
  letter-spacing: .02em;
  color: var(--muted);
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 500;
}

.panel-title {
  letter-spacing: -.7px;
  width: 100%;
  min-width: 0;
  color: var(--c-37352f);
  background: none;
  border: 0;
  margin-bottom: 25px;
  padding: 4px 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.panel-title::placeholder {
  color: var(--c-c9c8c3);
}

.panel-title:focus {
  outline: 0;
}

.panel-properties {
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 4px;
  padding-bottom: 25px;
  display: flex;
}

.panel-property {
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  display: grid;
}

.panel-property > span {
  color: var(--c-9b9a97);
  align-items: center;
  gap: 9px;
  font-size: 12px;
  display: flex;
}

.panel-property > span > svg {
  color: var(--c-adaca8);
}

.panel-property > div {
  min-width: 0;
}

.panel-property input:not([type="checkbox"]), .panel-property select {
  width: 100%;
  min-width: 0;
  color: var(--c-787774);
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 8px;
  font-size: 12px;
}

.panel-property input:hover, .panel-property select:hover {
  background: var(--c-f5f5f3);
}

.panel-property select {
  cursor: pointer;
  appearance: auto;
}

.panel-property input[type="date"] {
  color: var(--c-8a8984);
}

.static-property {
  color: var(--c-a09f99);
  padding: 8px;
  font-size: 12px;
}

.checkbox-value {
  color: var(--c-96958f);
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-size: 12px;
  display: flex;
}

.panel-callout {
  margin-bottom: 25px;
  padding: 13px;
  font-size: 12px;
}

.panel-callout .text-button {
  color: var(--blue);
  font-size: 12px;
  display: flex;
}

.panel-section {
  margin-top: 26px;
}

.panel-section h3 {
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
}

.next-step {
  border: 1px solid var(--line);
  background: var(--c-fafaf8);
  border-radius: 8px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 4px 0 18px;
  padding: 12px 14px;
  display: flex;
}

.next-step > span:first-child {
  flex-direction: column;
  flex: 220px;
  gap: 2px;
  display: flex;
}

.next-step small {
  color: var(--muted);
}

.date-time-pair {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.date-time-pair > :first-child {
  flex: auto;
  min-width: 0;
}

.date-time-pair > :last-child {
  flex: 0 0 8.5em;
}

.locked-value {
  cursor: default;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  display: block;
}

.locked-value:hover {
  background: var(--c-fafaf8);
}

.address-edit {
  display: contents;
}

.pay-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.pay-row > :first-child {
  flex: 0 0 9.5em;
}

.pay-row > input {
  flex: 5em;
  min-width: 4em;
}

.pay-row > .computed-pay {
  white-space: nowrap;
}

.panel-fold {
  border-top: 1px solid var(--line);
}

.panel-properties > .panel-fold {
  display: block;
}

.panel-properties > .panel-fold[open] {
  padding-bottom: 4px;
}

.panel-properties > .panel-fold > .panel-property + .panel-property {
  margin-top: 4px;
}

.panel-properties:has( > .panel-fold:last-child) {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.panel-properties:has( > .panel-fold:last-child) + .panel-section {
  margin-top: 16px;
}

.panel-fold > summary {
  cursor: pointer;
  min-height: 38px;
  color: var(--text);
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  display: flex;
}

.panel-fold > summary:hover {
  background: var(--c-fafaf8);
}

.panel-fold > summary::-webkit-details-marker {
  display: none;
}

.panel-fold > summary > svg {
  color: var(--c-aaa08b);
  flex: none;
}

.panel-fold > summary .fold-value {
  color: var(--muted);
  margin-left: auto;
  font-size: 12px;
  font-weight: 400;
}

.panel-fold > summary:after {
  content: "";
  border-right: 1.5px solid var(--c-aaa08b);
  border-bottom: 1.5px solid var(--c-aaa08b);
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0 4px 2px 6px;
  transition: transform .15s;
  transform: rotate(-45deg);
}

.panel-fold[open] > summary:after {
  transform: rotate(45deg);
}

.panel-fold .fold-subtitle {
  color: var(--muted);
  margin: 10px 4px 4px;
  font-size: 12px;
}

.panel-section h3 > svg {
  color: var(--c-aaa08b);
}

.panel-section textarea {
  resize: vertical;
  background: none;
  border: 0;
  width: 100%;
  min-height: 100px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.8;
}

.panel-section .mail-subject {
  border: 0;
  border-bottom: 1px solid var(--c-e9e9e7);
  background: none;
  outline: 0;
  width: 100%;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
}

.mail-choices {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 8px 0;
  font-size: 13px;
  display: flex;
}

.mail-choices label {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.mail-choices small {
  color: var(--c-9b9a97);
  flex-basis: 100%;
}

.panel-section textarea:focus {
  outline: 0;
}

.record-panel .panel-property input:not([type="checkbox"]) {
  box-shadow: inset 0 0 0 1px var(--line);
}

.record-panel .panel-property input:not([type="checkbox"]):focus {
  box-shadow: inset 0 0 0 1px var(--brand);
  background: none;
  outline: 0;
}

.record-panel .panel-section textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.record-panel .panel-section textarea:focus {
  border-color: var(--brand);
}

.panel-section textarea::placeholder {
  color: var(--c-b5b4af);
}

.panel-footer {
  border-top: 1px solid var(--line);
  background: var(--c-ffffff);
  z-index: 2;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  display: flex;
  position: sticky;
  bottom: 0;
}

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

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

.panel-footer > div:last-child {
  margin-left: auto;
}

.panel-footer > div.equal {
  flex: 1;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  display: grid;
}

.panel-footer > div.equal .button, .panel-footer > div.equal [data-slot="button"] {
  text-overflow: ellipsis;
  min-width: 0;
  padding-inline: 6px;
  overflow: hidden;
}

.required-caption {
  color: var(--c-aaa9a3);
  font-size: 10px;
}

.delete-button {
  color: var(--c-b39385);
}

.delete-button:hover {
  background: var(--c-fff0ed);
  color: var(--c-ba7564);
}

.quote-item-head, .quote-item {
  grid-template-columns: minmax(0, 1fr) 62px 92px 22px;
  gap: 7px;
  display: grid;
}

.quote-item-head {
  color: var(--c-a3a299);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 10px;
}

.quote-item {
  border-bottom: 1px solid var(--line);
  align-items: center;
  padding: 6px 0;
}

.quote-item input {
  width: 100%;
  min-width: 0;
  color: var(--c-77766e);
  background: none;
  border: 0;
  padding: 7px 3px;
  font-size: 12px;
}

.quote-item input:hover {
  background: var(--c-fafaf8);
}

.quote-item .icon-button {
  width: 22px;
  height: 22px;
}

.quote-item .item-title {
  font-weight: 600;
}

.quote-item .item-description {
  width: 100%;
  min-width: 0;
  font: inherit;
  color: var(--c-a3a299);
  field-sizing: content;
  resize: none;
  background: none;
  border: 0;
  grid-column: 1 / -1;
  height: auto;
  min-height: 0;
  padding: 7px 3px;
  font-size: 11px;
  line-height: 1.5;
}

.quote-item .item-description:hover {
  background: var(--c-fafaf8);
}

.quote-item .line-finish {
  grid-column: 1 / -1;
  min-width: 0;
}

.quote-item .line-finish > .text-button {
  color: var(--c-a3a299);
  padding: 2px 3px;
  font-size: 11px;
}

.quote-item .line-finish .finish-search {
  margin: 6px 0;
}

.print-finishes {
  margin: -24px 0 24px;
  font-size: 12px;
}

.line-description {
  color: var(--c-77766e);
  white-space: pre-line;
  margin-top: 3px;
  font-size: 11px;
  display: block;
}

.quote-calculation {
  justify-content: flex-end;
  gap: 25px;
  margin-top: 23px;
  display: flex;
}

.quote-calculation > label {
  color: var(--c-99988f);
  align-items: center;
  gap: 8px;
  height: 32px;
  font-size: 11px;
  display: flex;
}

.quote-calculation > label > input {
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 75px;
  padding: 6px;
  font-size: 11px;
}

.quote-calculation > div {
  width: 240px;
}

.quote-calculation > div > span {
  color: var(--c-96958d);
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
  font-size: 12px;
  display: flex;
}

.quote-calculation .quote-discount {
  align-items: center;
  gap: 8px;
}

.quote-discount-input {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-left: auto;
  display: flex;
  overflow: hidden;
}

.quote-discount-input input {
  text-align: right;
  border: 0;
  width: 64px;
  padding: 3px 6px;
  font-size: 11px;
}

.quote-discount-input button {
  width: 22px;
  color: var(--secondary);
  border-left: 1px solid var(--line);
  background: var(--c-fafaf8);
  font-size: 10px;
  font-weight: 600;
}

.quote-discount-input button:hover {
  color: var(--text);
}

.quote-calculation strong {
  color: var(--c-6f6e67);
  font-weight: 400;
}

.quote-calculation .quote-total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 11px;
  font-size: 14px;
}

.quote-calculation .quote-total strong {
  color: var(--c-504e47);
  font-weight: 600;
}

.related-records > div {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 12px;
  display: flex;
}

.related-records > div > span {
  color: var(--c-9b9a92);
  font-size: 10px;
}

.related-records p {
  color: var(--c-aaa99f);
  font-size: 12px;
}

.form-error {
  background: var(--c-fff2ee);
  border-radius: 4px;
  margin-top: 20px;
  padding: 10px 13px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-c56851) !important;
}

.search-dialog {
  width: 600px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 12px 45px var(--c-00000033);
  border-radius: 9px;
  margin: 12vh auto auto;
  position: fixed;
  overflow: hidden;
}

.search-dialog-input {
  border-bottom: 1px solid var(--line);
  color: var(--c-96958d);
  align-items: center;
  gap: 12px;
  padding: 18px;
  display: flex;
}

.search-dialog-input input {
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  font-size: 16px;
}

.search-results {
  max-height: 440px;
  padding: 9px;
  overflow: auto;
}

.search-label {
  color: var(--c-aaa99f);
  padding: 9px;
  font-size: 11px;
}

.search-results > button {
  text-align: left;
  border-radius: 5px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 10px;
  display: flex;
}

.search-results > button:hover {
  background: var(--hover);
}

.search-results > button > span {
  font-size: 20px;
}

.search-results strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
}

.search-results small {
  color: var(--c-a09f98);
  margin-top: 5px;
  font-size: 10px;
  display: block;
}

.search-results > button > svg {
  color: var(--c-aaa99f);
  margin-left: auto;
}

.search-results > p {
  color: var(--c-a09f98);
  padding: 20px;
  font-size: 13px;
}

.search-footer {
  border-top: 1px solid var(--line);
  color: var(--c-aaa99f);
  background: var(--c-faf9f6);
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  font-size: 10px;
  display: flex;
}

.search-footer > span {
  margin-left: auto;
}

.search-footer kbd {
  border: 1px solid var(--c-e6dfd2);
  background: var(--c-ffffff);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 9px;
}

.toast {
  border: 1px solid var(--c-e7e1d6);
  background: var(--c-ffffff);
  box-shadow: 0 4px 25px var(--c-00000022);
  z-index: 100;
  border-radius: 6px;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
  padding: 12px 14px;
  font-size: 12px;
  display: flex;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.toast > svg {
  color: var(--c-669776);
}

.toast > button {
  color: var(--c-ab9d83);
  margin-left: 8px;
  padding: 3px;
  display: inline-flex;
}

.error-state {
  text-align: center;
  margin: 90px auto;
  padding: 30px;
  line-height: 1.8;
}

.error-state h2 {
  font-size: 22px;
}

.error-state p {
  color: var(--c-9b927f);
  font-size: 13px;
}

.loading-page {
  flex-direction: column;
  gap: 25px;
  padding: 110px 60px;
  display: flex;
}

.loading-page > div {
  background: var(--c-f4f4f0);
  border-radius: 4px;
  height: 20px;
  animation: 1.3s infinite alternate pulse;
}

.loading-page > div:first-child {
  width: 60px;
  height: 50px;
}

.loading-page > div:nth-child(2) {
  width: 260px;
  height: 35px;
}

.loading-page > div:nth-child(3) {
  width: 70%;
}

.loading-page > div:nth-child(4) {
  height: 210px;
  margin-top: 35px;
}

.sidebar-scrim {
  display: none;
}

.login-screen {
  flex-direction: column;
  min-height: 100vh;
  display: flex;
}

.login-brand {
  align-items: center;
  gap: 10px;
  padding: 25px 32px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
}

.login-brand .workspace-logo {
  width: 29px;
  height: 29px;
}

.login-card {
  width: 360px;
  max-width: calc(100vw - 40px);
  margin: 85px auto 70px;
}

.login-icon {
  margin-bottom: 24px;
  font-size: 43px;
}

.login-card h1 {
  letter-spacing: -.9px;
  margin: 0 0 13px;
  font-size: 28px;
}

.login-card > p {
  color: var(--c-9b9a97);
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.9;
}

.login-card form > label, .login-card form section > label {
  color: var(--c-777670);
  flex-direction: column;
  gap: 7px;
  margin: 17px 0;
  font-size: 12px;
  display: flex;
}

.login-card form input {
  border: 1px solid var(--c-dfdfdc);
  background: var(--c-fcfcfb);
  border-radius: 4px;
  padding: 10px;
  font-size: 14px;
}

.login-card form > .button, .step-actions .button.blue {
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
}

.login-card > small {
  color: var(--c-aaa9a1);
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 10px;
  display: flex;
}

.login-screen > footer {
  text-align: center;
  color: var(--c-b7b5ac);
  margin-top: auto;
  padding: 20px;
  font-size: 11px;
}

html:has(main.print-document) {
  background: var(--sidebar);
}

html:has(main.print-document) body {
  background: var(--sidebar);
}

html:has(main.print-document) {
  background: linear-gradient(#1a191673, #1a191673), url("/fond-1920.jpg") center / cover no-repeat fixed;
}

html:has(main.print-document) body {
  background: none;
}

.print-document {
  background: var(--c-ffffff);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 880px;
  margin: 32px auto;
  padding: 56px 64px;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: 0 12px 40px #00000059;
}

.print-document header {
  border-bottom: 2px solid var(--c-37352f);
  margin-bottom: 35px;
  padding: 15px 0 30px;
}

.print-document header h1 {
  letter-spacing: -1px;
  margin-bottom: 0;
  font-size: 34px;
}

.print-document header p {
  color: var(--c-8a8780);
}

.print-meta {
  justify-content: space-between;
  gap: 35px;
  display: flex;
}

.print-meta h2 {
  margin-top: 0;
  font-size: 22px;
}

.print-meta p {
  color: var(--c-8f8a80);
  font-size: 12px;
}

.print-document table {
  border-collapse: collapse;
  width: 100%;
  margin: 40px 0;
}

.print-document th, .print-document td {
  border-bottom: 1px solid var(--c-e4e1d9);
  text-align: left;
  padding: 12px 5px;
  font-size: 12px;
}

.print-document th:nth-child(n+2), .print-document td:nth-child(n+2) {
  text-align: right;
  white-space: nowrap;
}

.print-totals {
  max-width: 340px;
  margin-left: auto;
}

.print-totals p, .print-totals h3 {
  justify-content: space-between;
  display: flex;
}

.print-notes {
  white-space: pre-wrap;
  margin-top: 45px;
}

.print-document footer {
  color: var(--c-aaa193);
  margin-top: 40px;
  font-size: 11px;
}

.print-document .doc-head {
  border: 0;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 36px;
  padding: 0;
  display: flex;
}

.print-document .doc-logo {
  width: auto;
  height: 84px;
  margin: -18px 0 0 -18px;
}

.print-document .doc-brand p {
  color: var(--c-8a8780);
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.print-document .doc-brand strong {
  display: none;
}

.print-document .doc-title {
  text-align: right;
}

.print-document .doc-title h1 {
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 15px;
}

.print-document .doc-title p {
  color: var(--c-8a8780);
  margin: 0;
  font-size: 13px;
}

.print-document .doc-badge {
  background: var(--hover);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  display: inline-block;
  color: var(--secondary) !important;
  margin: 8px 0 0 !important;
}

.print-document .doc-parties {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  display: grid;
}

.print-document .doc-parties h2 {
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-8a8780);
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 500;
}

.print-document .doc-parties p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.print-document .doc-finishes {
  margin: 26px 0 0;
  font-size: 14px;
}

.print-document .doc-table {
  margin: 28px 0 14px;
}

.print-document .doc-table th {
  color: var(--c-8a8780);
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 400;
}

.print-document .doc-table td {
  vertical-align: top;
  padding: 14px 6px;
  font-size: 14px;
}

.print-document .doc-table td .line-description {
  color: var(--c-8a8780);
  font-size: 12px;
}

.print-document .doc-option {
  margin: 30px 0 -16px;
  font-size: 15px;
  font-weight: 600;
}

.print-document .doc-option-block {
  break-inside: avoid;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  margin: 24px 0;
  padding: 4px 20px 20px;
}

.print-document .doc-option-block .doc-option {
  margin: 16px 0 -12px;
}

.print-document .doc-option-block .doc-table {
  margin-top: 24px;
}

.print-document .doc-totals {
  max-width: 300px;
  margin-left: auto;
}

.print-document .doc-totals p {
  color: var(--c-8a8780);
  font-variant-numeric: tabular-nums;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 5px 0;
  font-size: 14px;
  display: flex;
}

.print-document .doc-totals p span:last-child {
  color: var(--text);
}

.print-document .doc-totals .doc-total {
  color: var(--text);
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
}

.print-document .doc-totals .tax-numbers {
  justify-content: flex-end;
  padding-top: 8px;
  font-size: 11px;
}

.print-document .doc-totals .tax-numbers span {
  color: var(--c-8a8780);
}

.print-document .doc-terms {
  margin-top: 36px;
}

.print-document .doc-terms h2 {
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-8a8780);
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 500;
}

.print-document .doc-terms p {
  white-space: pre-line;
  color: var(--secondary);
  margin: 0;
  font-size: 13px;
}

.print-document .pay-box {
  background: var(--c-ffffff);
}

@keyframes peek-in {
  from {
    opacity: .5;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

@media (min-width: 1700px) {
  .document {
    padding: 36px 56px 25px;
  }

  .home-document .document-section {
    margin-top: 28px;
  }

  .document-heading > p {
    font-size: 15px;
  }

  .home-columns {
    gap: 45px;
  }

  .database-table td {
    padding: 12px;
    font-size: 13px;
  }

  .record-name {
    font-size: 13px;
  }

  .sidebar {
    width: 252px;
  }

  .workspace-main {
    margin-left: 252px;
  }
}

@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
  }

  .workspace-main {
    margin-left: 220px;
  }

  .document {
    padding: 28px 32px 25px;
  }

  .document-heading h1 {
    font-size: 37px;
  }

  .document-heading > p {
    font-size: 13px;
  }

  .inline-metrics > a {
    padding: 2px 11px;
  }

  .inline-metrics strong {
    font-size: 22px;
  }

  .inline-metrics > a > span {
    font-size: 11px;
  }

  .inline-metrics small {
    font-size: 10px;
  }

  .home-columns {
    grid-template-columns: minmax(0, 1.7fr) minmax(170px, 1fr);
    gap: 25px;
  }

  .compact-table .database-table .name-column {
    min-width: 150px;
  }

  .compact-table .relation {
    max-width: 110px;
  }

  .database-tab {
    font-size: 11px;
  }

  .database-tabs {
    gap: 13px;
  }

  .tool-button > span {
    display: none;
  }

  .database-tools {
    gap: 2px;
  }

  .edited {
    font-size: 10px;
  }

  .workspace-footnote {
    margin-left: 35px;
    margin-right: 35px;
  }

  .page-link-grid small {
    font-size: 10px;
  }

  .home-tasks .section-title h2 {
    font-size: 15px;
  }

  .topbar {
    padding: 0 14px;
  }

  .breadcrumbs {
    font-size: 11px;
  }
}

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

  .home-tasks {
    padding: 0;
  }

  .empty-tasks {
    padding: 22px;
  }

  .home-tasks .section-title h2 {
    font-size: 17px;
  }

  .inline-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 23px 0;
  }

  .document-heading > p {
    max-width: 500px;
  }

  .database-toolbar {
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 6px;
  }

  .database-tabs {
    min-height: 38px;
  }

  .database-tools {
    margin-left: auto;
  }

  .page-link-grid {
    gap: 9px 17px;
  }

  .page-link-grid > a {
    gap: 8px;
  }

  .page-link-grid small {
    font-size: 9px;
    line-height: 1.6;
  }

  .page-link-grid > a > svg {
    display: none;
  }

  .calendar-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-toolbar > div {
    align-self: flex-end;
  }

  .edited {
    display: none;
  }
}

@media (max-width: 700px) {
  .alert-line {
    flex-wrap: wrap;
  }

  .alert-line small {
    white-space: normal;
    flex-basis: 100%;
    padding-left: 108px;
  }

  .alert-line.plain small {
    padding-left: 0;
  }

  .alert-line > svg {
    display: none;
  }

  .month-chart {
    gap: 3px;
    height: 100px;
  }

  .source-row {
    grid-template-columns: minmax(70px, 100px) 1fr 60px;
    gap: 10px;
  }

  .sidebar {
    width: 244px;
    transition: transform .2s;
    top: 46px;
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    box-shadow: 10px 0 30px var(--c-00000011);
    transform: translateX(0);
  }

  .sidebar-collapsed .sidebar.mobile-open {
    display: flex;
  }

  .sidebar-collapsed .workspace-main, .workspace-main {
    margin-left: 0;
  }

  .sidebar-scrim {
    background: var(--c-00000033);
    z-index: 40;
    display: block;
    position: fixed;
    inset: 46px 0 0;
  }

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

  .expand-button, .collapse-button {
    display: none;
  }

  .topbar {
    border-bottom: 1px solid var(--c-f0f0ed);
    padding: 0 10px;
  }

  .breadcrumbs {
    gap: 5px;
    max-width: calc(100% - 65px);
  }

  .breadcrumbs > a {
    font-size: 11px;
  }

  .breadcrumbs .breadcrumb-current {
    font-size: 10px;
  }

  .page-actions {
    gap: 0;
  }

  .document {
    padding: 24px 18px 20px;
  }

  .document-icon {
    margin-bottom: 16px;
  }

  .document-heading h1 {
    letter-spacing: -1px;
    font-size: 34px;
  }

  .document-heading {
    margin-bottom: 18px;
  }

  .document-heading > p {
    font-size: 12px;
    line-height: 1.85;
  }

  .notion-callout {
    gap: 11px;
    margin-bottom: 25px;
    padding: 14px;
    font-size: 12px;
  }

  .notion-callout > span {
    font-size: 20px;
  }

  .document-section {
    margin-top: 20px;
  }

  .document-section h2 {
    font-size: 17px;
  }

  .inline-metrics > a > span {
    font-size: 11px;
  }

  .inline-metrics strong {
    font-size: 24px;
  }

  .inline-metrics small {
    font-size: 10px;
  }

  .page-link-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-link-grid > a {
    gap: 12px;
    padding: 13px 3px;
  }

  .page-link-grid small {
    margin-top: 6px;
    font-size: 11px;
  }

  .page-link-grid > a > svg {
    display: block;
  }

  .home-columns {
    gap: 0;
    margin-top: 0;
  }

  .compact-table .database-table {
    min-width: 500px;
  }

  .compact-table .database-table td {
    font-size: 11px;
  }

  .home-tasks {
    margin-top: 25px;
  }

  .bottom-note {
    margin-top: 28px;
    font-size: 10px;
    line-height: 1.9;
  }

  .workspace-footnote {
    margin: 30px 23px 20px;
  }

  .database-toolbar {
    border-bottom: 0;
    gap: 8px;
  }

  .database-tabs {
    border-bottom: 1px solid var(--line);
    gap: 18px;
    width: 100%;
  }

  .database-tab {
    padding: 10px 0;
    font-size: 12px;
  }

  .database-tools {
    border-bottom: 1px solid var(--line);
    justify-content: flex-end;
    width: 100%;
    padding-bottom: 8px;
  }

  .database-tools .tool-button > span {
    display: inline;
  }

  .database-tools .tool-button:first-child {
    margin-right: 3px;
  }

  .database-total {
    font-size: 9px;
  }

  .record-dialog {
    width: 100%;
    max-width: 100vw;
  }

  .panel-content {
    padding: 28px 24px;
  }

  .panel-page-icon {
    font-size: 36px;
  }

  .panel-title {
    font-size: 27px;
  }

  .panel-property {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 5px;
  }

  .panel-property > span {
    gap: 7px;
    font-size: 11px;
  }

  .panel-property input:not([type="checkbox"]), .panel-property select {
    padding: 9px 5px;
    font-size: 12px;
  }

  .panel-footer {
    padding: 13px 20px;
  }

  .panel-footer .button, .panel-footer [data-slot="button"] {
    font-size: 12px;
  }

  .required-caption {
    font-size: 9px;
  }

  .quote-item-head, .quote-item {
    grid-template-columns: minmax(0, 1fr) 48px 69px 20px;
    gap: 4px;
  }

  .quote-item input {
    padding: 7px 1px;
    font-size: 11px;
  }

  .quote-calculation {
    gap: 15px;
  }

  .quote-calculation > label {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-size: 10px;
  }

  .quote-calculation > label > input {
    width: 66px;
  }

  .quote-calculation > div {
    width: 205px;
  }

  .quote-calculation > div > span, .calendar-toolbar > span {
    font-size: 11px;
  }

  .calendar-toolbar > div {
    gap: 3px;
  }

  .calendar-toolbar > div strong {
    min-width: 116px;
    font-size: 11px;
  }

  .calendar-toolbar .button {
    padding: 6px;
    font-size: 10px;
  }

  .calendar-day {
    min-height: 100px;
  }

  .settings-row {
    grid-template-columns: 105px 1fr;
    font-size: 12px;
  }

  .settings-section p {
    font-size: 12px;
  }

  .login-brand {
    padding: 23px;
  }

  .login-card {
    margin-top: 60px;
  }

  html:has(main.print-document) {
    background-attachment: scroll;
  }

  .print-document {
    border-radius: 10px;
    margin: 12px;
    padding: 24px 18px;
  }

  .print-meta, .print-document .doc-head {
    flex-direction: column;
    gap: 10px;
  }

  .print-document .doc-title {
    text-align: left;
  }

  .print-document .doc-parties {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .print-document .doc-logo {
    height: 64px;
    margin: -10px 0 0 -12px;
  }

  .print-document table {
    font-size: 11px;
  }

  .search-dialog {
    margin-top: 8vh;
  }

  .search-dialog-input {
    padding: 15px;
  }

  .search-dialog-input input {
    font-size: 14px;
  }

  .toast {
    min-width: 220px;
    font-size: 11px;
    line-height: 1.7;
    bottom: 15px;
  }

  .error-state {
    margin-top: 40px;
    padding: 20px;
  }

  .loading-page {
    padding: 60px 25px;
  }

  .loading-page > div:nth-child(2) {
    width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .print-button {
    display: none;
  }

  html:has(main.print-document) {
    background: none;
  }

  html:has(main.print-document) body {
    background: none;
  }

  .print-document {
    max-width: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }

  .print-document header {
    padding-top: 0;
  }

  .print-document table, .print-totals {
    break-inside: avoid;
  }

  @page {
    margin: 20mm;
  }
}

::view-transition-old(root) {
  mix-blend-mode: normal;
  animation: none;
}

::view-transition-new(root) {
  mix-blend-mode: normal;
  animation: none;
}

::view-transition-new(root) {
  clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 50%));
  animation: .55s cubic-bezier(.4, 0, .2, 1) theme-reveal;
}

@keyframes theme-reveal {
  from {
    clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%));
  }
}

.theme-icons {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
}

.theme-icons svg {
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
  position: absolute;
  inset: 0;
}

.theme-icons .moon, :root[data-theme="dark"] .theme-icons .sun {
  opacity: 0;
  transform: rotate(-90deg)scale(.3);
}

:root[data-theme="dark"] .theme-icons .moon {
  opacity: 1;
  transform: none;
}

.flow-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.flow-actions small {
  color: var(--muted);
  font-size: 11px;
}

.flow-link {
  gap: 6px;
  margin-bottom: 6px;
  display: flex;
}

.flow-link input {
  border: 1px solid var(--line);
  background: var(--sidebar);
  min-width: 0;
  color: var(--secondary);
  border-radius: 4px;
  flex: 1;
  padding: 6px 9px;
  font-size: 12px;
}

.flow-section .related-records > div > .flow-label {
  color: inherit;
  font-size: 12px;
}

.pay-box {
  border: 1px solid var(--line);
  background: var(--sidebar);
  border-radius: 8px;
  margin-top: 36px;
  padding: 24px 28px;
}

.pay-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pay-box p {
  margin: 0 0 14px;
}

.pay-box small {
  color: var(--muted);
  margin-top: 10px;
  font-size: 12px;
  display: block;
}

.pay-ok {
  color: var(--c-2e7d4f);
  font-weight: 500;
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--brand-ink);
  padding: 10px 18px;
  font-size: 14px;
}

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

.public-submission {
  border-color: var(--line);
  max-width: 920px;
  padding: 26px 56px 48px;
}

@supports (color: color-mix(in lab, red, red)) {
  .public-submission {
    border-color: color-mix(in srgb, var(--line) 80%, transparent);
  }
}

.public-submission {
  box-shadow: 0 24px 70px #22191247;
}

.public-submission .doc-head {
  margin-bottom: 42px;
}

.public-submission .pay-box {
  background: var(--sidebar);
  margin-top: 42px;
  padding: 26px 28px 28px;
  scroll-margin-top: 76px;
}

html:has(main.print-document) {
  scroll-behavior: smooth;
}

.doc-bar {
  z-index: 20;
  background: var(--c-ffffff);
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  font-size: 13px;
  display: flex;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 14px #0000001f;
}

.doc-bar-id {
  flex-direction: column;
  line-height: 1.3;
  display: flex;
}

.doc-bar-id strong {
  font-size: 14px;
}

.doc-bar-id span {
  color: var(--muted);
  font-size: 12px;
}

.doc-bar-actions {
  align-items: center;
  gap: 14px;
  display: flex;
}

.doc-bar-status {
  color: var(--secondary);
}

.doc-bar-pdf {
  color: var(--blue);
  font-weight: 600;
}

.doc-bar .button.primary {
  border-radius: 6px;
  padding: 9px 18px;
  font-weight: 650;
}

.sign-title {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  display: flex;
}

.sign-title h3 {
  margin: 0;
}

.sign-title span {
  color: var(--muted);
  font-size: 13px;
}

.sign-options {
  gap: 8px;
  margin-bottom: 16px;
  display: grid;
}

.sign-options label {
  border: 1.5px solid var(--line);
  background: var(--c-ffffff);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  display: flex;
}

.sign-options label.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .sign-options label.selected {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
  }
}

.sign-options label input {
  accent-color: var(--brand);
  width: 18px;
  height: 18px;
  margin: 0;
}

.sign-options label span {
  flex-direction: column;
  flex: 1;
  font-weight: 600;
  display: flex;
}

.sign-options label small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  font-weight: 400;
}

.sign-options label strong {
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}

.sign-modes button {
  white-space: nowrap;
}

.sign-modes > span {
  color: var(--secondary);
  align-self: center;
  margin-right: 4px;
  font-size: 12px;
}

.sign-next {
  color: var(--muted);
  font-size: 12px;
}

.public-submission .pay-box h3 {
  letter-spacing: -.35px;
  font-size: 20px;
}

.public-submission .pay-box > p:first-child {
  margin-bottom: 18px;
}

.pay-box > :last-child, .public-submission .pay-box > p:last-child {
  margin-bottom: 0;
}

.pay-box > p:only-child {
  text-align: center;
}

.public-submission .pay-box .pay-kicker {
  margin: 0 0 7px;
}

.public-submission .pay-box .pay-kicker + h3 {
  margin-top: 0;
}

.signature-pad {
  position: relative;
}

.signature-pad h3 {
  letter-spacing: -.35px;
  font-size: 20px;
}

.signature-pad .sign-fields input {
  background: var(--c-ffffff);
  border-radius: 6px;
  min-height: 42px;
}

.signature-pad canvas {
  border-style: solid;
  border-color: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .signature-pad canvas {
    border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
  }
}

.signature-pad canvas {
  box-shadow: 0 2px 10px #2219120a;
}

.signature-pad .button.primary, .public-submission .pay-options .button.primary {
  box-shadow: 0 5px 12px var(--brand);
  border-radius: 6px;
}

@supports (color: color-mix(in lab, red, red)) {
  .signature-pad .button.primary, .public-submission .pay-options .button.primary {
    box-shadow: 0 5px 12px color-mix(in srgb, var(--brand) 28%, transparent);
  }
}

.signature-pad .button.primary, .public-submission .pay-options .button.primary {
  font-weight: 650;
}

@media (max-width: 700px) {
  .print-document {
    padding: 28px 16px;
  }

  .public-submission {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin: 0;
    padding: 20px 16px 32px;
  }

  .public-submission .doc-head {
    margin-bottom: 30px;
  }

  .public-submission .pay-box {
    padding: 22px 16px;
  }

  .doc-bar {
    padding: 8px 14px;
  }

  .doc-bar-status, .doc-bar-id span {
    display: none;
  }

  .doc-bar .button.primary {
    padding: 8px 14px;
    font-size: 13px;
  }

  .sign-actions .decline-link {
    text-align: left;
    width: 100%;
  }

  .sign-modes > span {
    display: none;
  }
}

.doc-status {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 12px;
}

.doc-status a, .doc-timeline a {
  color: var(--blue);
}

.signature-pad h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.quote-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 14px 0;
  padding: 4px 14px 12px;
}

.quote-option .quote-calculation {
  margin-top: 12px;
}

.quote-option-head {
  border-bottom: 1px solid var(--line);
  background: var(--c-fafaf8);
  border-radius: 8px 8px 0 0;
  align-items: center;
  gap: 8px;
  margin: 0 -14px;
  padding: 6px 10px 6px 14px;
  display: flex;
}

.quote-option-head span {
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-a3a299);
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
}

.quote-option-head input {
  background: none;
  border: 0;
  border-radius: 4px;
  flex: 1;
  min-width: 0;
  padding: 6px;
  font-size: 13px;
  font-weight: 600;
}

.quote-option-head input:hover {
  background: var(--c-ffffff);
}

.quote-option-head .icon-button {
  width: 22px;
  height: 22px;
}

.quote-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin-top: 8px;
  display: flex;
}

.quote-actions .text-button {
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
}

.quote-actions .text-button:first-child {
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 600;
}

.quote-actions .text-button:hover:not(:disabled) {
  background: var(--c-fafaf8);
}

.quote-actions .text-button:disabled {
  opacity: .4;
}

.quote-empty {
  color: var(--c-a3a299);
  margin: 0;
  padding: 10px 3px;
  font-size: 11px;
}

.quote-option .quote-actions {
  margin-top: 6px;
}

.quote-option-add {
  border: 1px dashed var(--line);
  border-radius: 8px;
  justify-content: center;
  width: 100%;
  margin: 12px 0;
  padding: 9px;
  display: flex;
}

.quote-option-add:hover {
  background: var(--c-fafaf8);
}

.sign-fields {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  display: grid;
}

.sign-fields label {
  color: var(--secondary);
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  display: flex;
}

.sign-fields input, .decline-box textarea {
  border: 1px solid var(--line);
  color: inherit;
  background: none;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 14px;
}

.sign-modes {
  gap: 6px;
  margin-bottom: 8px;
  display: flex;
}

.sign-modes button {
  border: 1px solid var(--line);
  color: var(--secondary);
  cursor: pointer;
  background: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 13px;
}

.sign-modes button.active {
  background: var(--hover);
  color: var(--text);
  border-color: var(--secondary);
}

.sign-modes .sign-clear {
  margin-left: auto;
}

.signature-pad canvas {
  border: 1px dashed var(--secondary);
  touch-action: none;
  cursor: crosshair;
  background: #fff;
  border-radius: 6px;
  width: 100%;
  height: 180px;
  display: block;
}

.pay-box .sign-hint {
  color: var(--muted);
  margin: 6px 0 14px;
  font-size: 11px;
}

.consent {
  cursor: pointer;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
}

.consent input {
  margin-top: 3px;
}

.sign-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  display: flex;
}

.decline-link {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  text-decoration: underline;
}

.decline-box {
  gap: 8px;
  max-width: 420px;
  margin-top: 12px;
  display: grid;
}

.doc-timeline {
  color: var(--secondary);
  margin: 0 0 10px;
  padding: 0;
  font-size: 12px;
  list-style: none;
}

.doc-timeline li {
  padding: 3px 0;
}

@media (max-width: 700px) {
  .sign-fields {
    grid-template-columns: 1fr;
  }
}

.pay-form {
  border: 1px solid var(--line);
  background: var(--sidebar);
  border-radius: 6px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  display: flex;
}

.pay-form label {
  color: var(--muted);
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  display: flex;
}

.pay-form select, .pay-form input {
  border: 1px solid var(--line);
  color: inherit;
  background: none;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
}

.panel-hint {
  margin: 14px 0 0;
  font-size: 12px;
}

.settings-form {
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  max-width: 1100px;
  display: grid;
}

.settings-form label {
  color: var(--secondary);
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  display: flex;
}

.settings-form .wide {
  grid-column: 1 / -1;
}

.settings-form input, .settings-form textarea, .panel-section textarea {
  field-sizing: content;
  resize: vertical;
  max-height: 70vh;
}

.settings-form textarea {
  border: 1px solid var(--line);
  min-height: 4.5em;
  color: inherit;
  background: none;
  border-radius: 4px;
  padding: 7px 9px;
  font-size: 13px;
}

.overdue-amount {
  color: var(--c-c56851);
}

.tax-numbers {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 700px) {
  .settings-form, .toggle-children {
    grid-template-columns: 1fr;
  }
}

.reviews-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 14px;
  font-size: 13px;
}

.reviews-table th, .reviews-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  padding: 9px 8px;
}

.reviews-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.reviews-table td small {
  color: var(--muted);
  display: block;
}

.catalog-search {
  border: 1px solid var(--line);
  width: 260px;
  color: inherit;
  background: none;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
}

.catalog-families {
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  display: flex;
}

.chip {
  border: 1px solid var(--line);
  color: var(--secondary);
  cursor: pointer;
  background: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  display: grid;
}

.catalog-card {
  border: 1px solid var(--line);
  color: inherit;
  border-radius: 6px;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  font-size: 12px;
  text-decoration: none;
  display: flex;
  position: relative;
}

.catalog-card:hover {
  background: var(--c-00000005);
}

.catalog-card img {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--c-00000007);
  border-radius: 4px;
  width: 100%;
  margin-bottom: 6px;
}

.catalog-card strong {
  align-items: center;
  gap: 4px;
  font-size: 12px;
  display: flex;
}

.catalog-card strong svg {
  color: var(--c-2383e2);
}

.catalog-card small {
  color: var(--muted);
}

.catalog-link {
  color: var(--muted);
  opacity: 0;
  position: absolute;
  top: 12px;
  right: 12px;
}

.catalog-card:hover .catalog-link {
  opacity: 1;
}

.spin {
  animation: 1s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  color: var(--muted);
  margin-top: 24px;
  font-size: 13px;
}

.portal-projects {
  gap: 14px;
  margin-top: 16px;
  display: grid;
}

.portal-project {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.portal-project header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  display: flex;
}

.portal-project h3 {
  margin: 0;
  font-size: 15px;
}

.portal-project dl {
  grid-template-columns: 110px 1fr;
  gap: 5px 12px;
  margin: 0;
  font-size: 13px;
  display: grid;
}

.portal-project dt {
  color: var(--muted);
}

.portal-project dd {
  margin: 0;
}

.portal-notes {
  border-top: 1px solid var(--line);
  white-space: pre-wrap;
  color: var(--secondary);
  margin: 12px 0 0;
  padding-top: 10px;
  font-size: 13px;
}

.installer-actions {
  white-space: nowrap;
}

.installers .settings-form {
  margin-top: 16px;
}

.settings-layout {
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 36px;
  margin-top: 8px;
  display: grid;
}

.settings-nav {
  border-right: 1px solid var(--line);
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
  display: flex;
  position: sticky;
  top: 70px;
}

.settings-nav .nav-row {
  width: 100%;
}

.journal-filters {
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  display: flex;
}

.journal-filters > * {
  box-sizing: border-box;
  height: 36px;
}

.journal-search {
  border: 1px solid var(--line);
  min-width: 200px;
  color: var(--muted);
  border-radius: 6px;
  flex: 1;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  display: flex;
}

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

.journal-filters select {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
}

.journal-table td {
  vertical-align: middle;
  max-width: 260px;
}

.journal-table th:last-child, .journal-table td:last-child {
  width: auto;
  padding: 10px;
}

.journal-table .journal-failed td {
  background: var(--c-e03e3e, #e03e3e);
}

@supports (color: color-mix(in lab, red, red)) {
  .journal-table .journal-failed td {
    background: color-mix(in srgb, var(--c-e03e3e, #e03e3e) 5%, transparent);
  }
}

.journal-error {
  color: var(--muted);
  white-space: normal;
  font-size: 11px;
  display: block;
}

.journal-empty {
  color: var(--muted);
  font-size: 13px;
}

.journal-subject {
  text-overflow: ellipsis;
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  display: inline-flex;
  overflow: hidden;
}

.email-preview {
  border-radius: 10px;
  flex-direction: column;
  width: min(760px, 94vw);
  height: min(85vh, 960px);
  padding: 0;
  display: flex;
  overflow: hidden;
}

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

.email-preview-head strong {
  font-size: 14px;
  display: block;
}

.email-preview-head small {
  color: var(--muted);
  font-size: 12px;
}

.email-preview iframe {
  background: #fff;
  border: 0;
  flex: 1;
  width: 100%;
}

.email-journal + .text-button, .email-journal .table-container > .text-button {
  margin-top: 10px;
}

.template-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 14px;
  display: grid;
}

.template-list {
  flex-direction: column;
  gap: 2px;
  max-height: 70vh;
  padding-right: 6px;
  display: flex;
  overflow: auto;
}

.template-list .nav-row {
  width: 100%;
  font-size: 12px;
}

.template-group {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 12px 0 4px;
  padding: 0 8px;
  font-size: 10px;
  display: block;
}

.template-list > div:first-child .template-group {
  margin-top: 0;
}

.template-preview {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 10px;
  overflow: hidden;
}

.template-meta {
  border-bottom: 1px solid var(--line);
  background: var(--sidebar);
  padding: 6px 16px;
}

.template-meta .settings-row {
  padding: 6px 0;
  font-size: 12px;
}

.template-meta .settings-row strong {
  font-weight: 500;
}

.template-frame {
  background: #f4f4f1;
  border: 0;
  width: 100%;
  height: 640px;
  display: block;
}

.template-sms {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
}

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

  .template-list {
    max-height: none;
  }
}

.settings-content .settings-section:first-child {
  border-top: 0;
  padding-top: 8px;
}

.settings-section h2 {
  font-size: 15px;
}

.installer-active {
  align-items: center;
  gap: 4px;
  margin: 0 6px;
  font-size: 12px;
  display: inline-flex;
}

.invite-link {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 13px;
  display: flex;
}

.invite-link code {
  border: 1px solid var(--line);
  word-break: break-all;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
}

.form-hint {
  color: var(--muted);
  margin-top: 8px;
  font-size: 12px;
  display: block;
}

@media (max-width: 800px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-flow: wrap;
    padding: 0 0 8px;
    position: static;
  }

  .settings-nav .nav-row {
    width: auto;
  }
}

.job-offers {
  border: 1px solid var(--c-2383e2);
  background: var(--c-00000004);
  border-radius: 10px;
  margin: 8px 0 28px;
  padding: 16px;
}

.job-offers h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.job-offer {
  background: var(--c-ffffff);
  margin-bottom: 10px;
}

.pay-options {
  gap: 10px;
  margin: 14px 0 6px;
  display: grid;
}

.pay-option {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 8px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  display: flex;
}

.pay-logo {
  border: 1px solid var(--line);
  width: 84px;
  height: 44px;
  color: var(--secondary);
  background: #fff;
  border-radius: 8px;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 6px 8px;
  display: inline-flex;
}

.pay-logo img {
  object-fit: contain;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.card-brand {
  vertical-align: middle;
  width: auto;
  height: 14px;
  margin-right: 6px;
}

.pay-text {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  display: flex;
}

.pay-text > span {
  color: var(--muted);
  word-break: break-word;
  font-size: 12px;
}

.pay-text code {
  font-size: 12px;
}

.pay-option .button, .pay-option form {
  flex: none;
  margin: 0;
}

.pay-options > small {
  margin-top: 4px;
}

.toggle-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 8px 10px;
  flex-direction: row !important;
  display: flex !important;
}

.toggle-row .toggle-label {
  color: var(--text);
  flex: 1;
  font-size: 13px;
}

.toggle-row.open {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.toggle-children {
  border: 1px solid var(--line);
  background: var(--sidebar);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  padding: 14px 14px 16px;
  display: grid;
}

.switch-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-direction: row !important;
  display: flex !important;
}

.switch-row > span {
  color: var(--text);
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  display: flex;
}

.toggle-row input[type="checkbox"], .switch-row input[type="checkbox"] {
  appearance: none;
  background: var(--c-00000022);
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  flex: none;
  width: 36px;
  height: 20px;
  padding: 0;
  transition: background .15s;
  position: relative;
}

.toggle-row input[type="checkbox"]:after, .switch-row input[type="checkbox"]:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  transition: transform .15s;
  position: absolute;
  top: 2px;
  left: 2px;
}

.toggle-row input[type="checkbox"]:checked, .switch-row input[type="checkbox"]:checked {
  background: var(--c-2383e2);
}

.toggle-row input[type="checkbox"]:checked:after, .switch-row input[type="checkbox"]:checked:after {
  transform: translateX(16px);
}

.secret-field {
  align-items: center;
  gap: 6px;
  display: flex;
}

.secret-field input {
  flex: 1;
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.measure-head, .measure-line {
  grid-template-columns: minmax(0, 1.4fr) 48px 64px 64px minmax(0, 1.2fr) 64px 22px;
  align-items: center;
  gap: 6px;
  display: grid;
}

.measure-head {
  color: var(--c-a3a299);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 10px;
}

.measure-line {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.measure-line input {
  width: 100%;
  min-width: 0;
  color: var(--c-77766e);
  background: none;
  border: 0;
  padding: 7px 3px;
  font-size: 12px;
}

.measure-line input:hover {
  background: var(--c-fafaf8);
}

.measure-line .line-surface {
  text-align: right;
  color: var(--secondary);
  font-size: 12px;
}

.measure-total {
  justify-content: flex-end;
  gap: 20px;
  padding: 10px 0 0;
  font-size: 13px;
  display: flex;
}

.reviews-table tr.clickable {
  cursor: pointer;
}

.reviews-table tr.clickable:hover td {
  background: var(--c-00000004);
}

@media (max-width: 800px) {
  .measure-head {
    display: none;
  }

  .measure-line {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.flow-emails {
  color: var(--secondary);
  margin: 12px 0 0;
  padding: 0;
  font-size: 12px;
  list-style: none;
}

.flow-emails li {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  display: flex;
}

.google-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 14px;
  display: flex;
}

.google-card code {
  word-break: break-all;
  font-size: 11px;
}

.google-actions {
  flex: none;
  gap: 8px;
  display: flex;
}

.chat-document {
  box-sizing: border-box;
  flex-direction: column;
  max-width: none;
  height: calc(100dvh - 46px);
  padding-bottom: 14px;
  display: flex;
  overflow: hidden;
}

.workspace-main:has(.chat-document) .workspace-footnote {
  display: none;
}

.chat-document .document-heading {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.chat-document .document-icon {
  margin: 0;
  display: flex;
}

.chat-document .document-icon svg {
  width: 24px;
  height: 24px;
}

.chat-document .document-heading h1 {
  letter-spacing: -.4px;
  margin: 0;
  font-size: 22px;
}

.chat-document .document-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.chat-layout {
  flex: 1;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
  min-height: 0;
  display: grid;
}

.chat-sidebar {
  border-right: 1px solid var(--line);
  flex-direction: column;
  gap: 10px;
  padding-right: 16px;
  display: flex;
}

.chat-new {
  justify-content: center;
  width: 100%;
}

.chat-list {
  flex-direction: column;
  flex: 1;
  gap: 6px;
  display: flex;
  overflow: auto;
}

.chat-list .sidebar-label {
  padding: 4px 8px 0;
}

.chat-item {
  border-radius: 6px;
  align-items: center;
  display: flex;
}

.chat-item:hover, .chat-item.selected {
  background: var(--hover);
}

.chat-item > button:first-child {
  min-width: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 1px;
  padding: 7px 8px;
  font-size: 13px;
  display: flex;
  overflow: hidden;
}

.chat-item > button:first-child > small {
  color: var(--muted);
  font-size: 11px;
}

.chat-item .icon-button {
  opacity: 0;
  margin-right: 4px;
}

.chat-item:hover .icon-button, .chat-item.selected .icon-button {
  opacity: 1;
}

.chat-sidebar-note {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.chat-main {
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
}

.chat-message ul {
  margin: 4px 0;
  padding-left: 18px;
}

.chat-message li {
  margin: 2px 0;
}

.chat-message p + p {
  margin-top: 6px;
}

@media (max-width: 900px) {
  .chat-document {
    height: auto;
    overflow: visible;
  }

  .chat-thread {
    overflow: visible;
  }

  .chat-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
  }

  .chat-list {
    max-height: 180px;
  }

  .chat-sidebar-note {
    display: none;
  }
}

.chat-thread {
  flex-direction: column;
  flex: 1;
  gap: 14px;
  min-height: 0;
  padding: 4px 8px 20px 0;
  display: flex;
  overflow-y: auto;
}

.chat-empty {
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 0;
  display: flex;
}

.chat-empty p {
  margin: 0;
  font-size: 13px;
}

.chat-suggestions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 640px;
  display: flex;
}

.chat-suggestions button {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  color: var(--text);
  cursor: pointer;
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 12px;
}

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

.chat-message {
  align-items: flex-start;
  gap: 10px;
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message > div {
  background: var(--sidebar);
  border-radius: 12px;
  max-width: 78%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-message.user > div {
  background: var(--brand);
  color: var(--brand-ink);
  border-bottom-right-radius: 4px;
}

.chat-message.assistant > div {
  border-bottom-left-radius: 4px;
}

.chat-message p {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.sms-document .chat-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.sms-item > button:first-child {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
}

.sms-avatar {
  background: var(--c-e4e4e0);
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 12px;
  font-weight: 600;
  display: grid;
}

.sms-item-text {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.sms-item-text > span {
  align-items: baseline;
  gap: 8px;
  display: flex;
}

.sms-item-text strong {
  flex: 1;
  font-weight: 500;
}

.sms-item-text strong, .sms-item-text small {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.sms-item-text time, .sms-item-text small {
  color: var(--muted);
  font-size: 12px;
}

.sms-item.waiting strong {
  font-weight: 700;
}

.sms-item.waiting small {
  color: var(--text);
}

.sms-dot {
  background: var(--brand-hover);
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
}

.sms-head {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 10px;
  display: flex;
}

.sms-head > div {
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  min-width: 0;
  font-weight: 500;
  display: flex;
}

.sms-head .text-button {
  text-align: left;
}

.sms-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.sms-back {
  display: none;
}

.sms-day {
  color: var(--muted);
  align-self: center;
  margin: 4px 0 0;
  font-size: 11px;
}

.sms-meta {
  opacity: .75;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  display: flex;
}

.chat-message.user .sms-meta {
  justify-content: flex-end;
}

.chat-message.failed > div {
  background: var(--c-fbe4e0);
  color: var(--c-b97469);
}

.sms-document .chat-composer {
  padding-bottom: 6px;
}

.sms-ai {
  border-radius: 10px;
  height: 44px;
}

.sms-foot {
  min-height: 16px;
  color: var(--muted);
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 11px;
  display: flex;
}

@media (max-width: 900px) {
  .chat-document.sms-document {
    height: calc(100dvh - 46px);
    overflow: hidden;
  }

  .sms-document .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sms-document .chat-thread {
    overflow-y: auto;
  }

  .sms-document .chat-sidebar {
    border-bottom: 0;
    min-height: 0;
  }

  .sms-document .chat-list {
    max-height: none;
  }

  .sms-document.open .chat-sidebar, .sms-document.open .document-heading, .sms-document:not(.open) .chat-main {
    display: none;
  }

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

  .sms-ai span {
    display: none;
  }
}

.chat-avatar {
  background: var(--c-ffffff);
  border: 1px solid var(--line);
  width: 26px;
  height: 26px;
  color: var(--secondary);
  border-radius: 50%;
  flex: none;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  display: inline-flex;
}

.chat-actions {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  display: flex;
}

.chat-actions .tag {
  text-decoration: none;
}

.chat-choices {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.chat-choices button {
  border: 1.5px solid var(--brand);
  background: var(--c-ffffff);
  color: var(--text);
  cursor: pointer;
  border-radius: 99px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.chat-choices button:first-child {
  background: var(--brand);
  color: var(--brand-ink);
}

.chat-choices button:disabled {
  opacity: .5;
  cursor: default;
}

.chat-status {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.chat-typing {
  color: var(--muted);
  font-style: italic;
}

.chat-composer {
  background: var(--c-ffffff);
  border-top: 1px solid var(--line);
  align-items: flex-end;
  gap: 8px;
  padding: 12px 0 16px;
  display: flex;
}

.chat-composer textarea {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  min-height: 44px;
  max-height: 160px;
  color: var(--text);
  font: inherit;
  resize: vertical;
  border-radius: 10px;
  flex: 1;
  padding: 11px 14px;
  font-size: 14px;
}

.chat-composer .button.primary {
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
}

.payroll-table td.numeric, .payroll-table th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.payroll-table .payroll-detail {
  color: var(--muted);
  font-size: 12px;
}

.payroll-table .checkbox-column {
  width: 28px;
}

.payroll-form {
  border: 1px solid var(--line);
  background: var(--sidebar);
  border-radius: 8px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  display: grid;
}

.payroll-form label {
  color: var(--secondary);
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  display: flex;
}

.payroll-form input {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
}

.payroll-form-actions {
  grid-column: 1 / -1;
  gap: 8px;
  display: flex;
}

.database-table.payroll-table td[colspan] {
  white-space: normal;
  width: auto;
  max-width: none;
  overflow: visible;
}

.database-table .payroll-group td {
  padding: 8px 10px;
  font-size: 12px;
}

.payroll-group-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  display: flex;
}

.payroll-group-head strong:first-child {
  font-size: 13px;
}

.payroll-group-head a {
  color: var(--text);
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.payroll-group-head .payroll-group-total {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  font-size: 14px;
}

.payroll-group-head .button {
  padding: 4px 10px;
  font-size: 12px;
}

.database-table .payroll-empty-row td, .payroll-muted {
  color: var(--muted);
}

.database-table .payroll-empty-row td {
  height: auto;
  padding: 8px 10px 8px 46px;
}

.database-table .payroll-form-row td {
  background: var(--sidebar);
  padding: 0 10px 12px;
}

.database-table .payroll-form-row:hover td {
  background: var(--sidebar);
}

.database-table .payroll-form-row .payroll-form {
  background: var(--c-ffffff);
  margin-top: 10px;
}

.database-table.payroll-table td.payroll-actions {
  white-space: nowrap;
  width: 64px;
}

.database-table.payroll-table td.payroll-detail {
  max-width: 360px;
}

@media (max-width: 700px) {
  .payroll-form {
    grid-template-columns: 1fr;
  }

  .payroll-table .payroll-detail {
    display: none;
  }

  .portal-tabs a {
    font-size: 10px;
  }
}

.brand-icon {
  vertical-align: middle;
  flex: none;
  display: inline-block;
}

.tab-dot {
  background: var(--line);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-left: 2px;
}

.tab-dot.on {
  background: var(--c-2e7d4f);
}

.quickbooks-choices {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 8px;
  display: grid;
}

.quickbooks-choices label {
  color: var(--secondary);
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  display: flex;
}

.quickbooks-choices select {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 13px;
}

@media (max-width: 700px) {
  .quickbooks-choices {
    grid-template-columns: 1fr;
  }
}

.button.disabled {
  opacity: .5;
  pointer-events: none;
}

@media (max-width: 700px) {
  .google-card, .pay-option {
    flex-wrap: wrap;
  }
}

.login-card.wide {
  width: 100%;
  max-width: 720px;
}

.contract-section h2 {
  text-align: left;
  margin: 18px 0 10px;
  font-size: 14px;
}

.contract-scroll {
  border: 1px solid var(--line);
  background: #e9e9e6;
  border-radius: 6px;
  max-height: 420px;
  padding: 18px;
  overflow: auto;
}

.contract-paper {
  color: #1a1a1a;
  text-align: left;
  background: #fff;
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 48px;
  font-family: Times New Roman, Times, Liberation Serif, serif;
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 0 1px 3px #00000026;
}

.contract-paper header {
  text-align: center;
  margin-bottom: 22px;
}

.contract-brand {
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  font-size: 11px;
  display: block;
}

.contract-paper h1 {
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 10px 0 4px;
  font-size: 18px;
}

.contract-date {
  color: #555;
  margin: 0;
  font-style: italic;
}

.contract-between {
  letter-spacing: 2px;
  color: #666;
  margin: 18px 0 8px;
  font-size: 11px;
}

.contract-parties {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  display: grid;
}

.contract-party {
  flex-direction: column;
  line-height: 1.45;
  display: flex;
}

.contract-party small {
  color: #666;
  margin-bottom: 4px;
  font-size: 11px;
}

.contract-clauses {
  margin: 0;
  padding-left: 22px;
}

.contract-clauses li {
  text-align: justify;
  margin-bottom: 10px;
}

.contract-signatures {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
  display: grid;
}

.contract-signatures div {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.contract-line {
  color: #555;
  border-bottom: 1px solid #1a1a1a;
  height: 72px;
  font-size: 12px;
  font-style: italic;
  line-height: 36px;
  display: block;
}

.contract-signatures small {
  color: #666;
  font-size: 11px;
}

@media (max-width: 600px) {
  .contract-paper {
    padding: 24px 20px;
  }

  .contract-parties, .contract-signatures {
    grid-template-columns: 1fr;
  }
}

.contract-scroll {
  position: relative;
}

.contract-scroll.tall {
  max-height: min(68vh, 760px);
}

.contract-fab {
  pointer-events: none;
  justify-content: flex-end;
  padding: 12px 0 0;
  display: flex;
  position: sticky;
  bottom: 0;
}

.contract-fab .button {
  pointer-events: auto;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 6px 18px #0000002e;
}

.contract-line img {
  max-width: 100%;
  max-height: 70px;
  margin-top: auto;
  display: block;
}

.contract-line {
  align-items: flex-end;
  display: flex;
}

.sign-dialog {
  background: var(--c-ffffff);
  width: min(560px, 100vw - 32px);
  color: var(--text);
  border: 0;
  border-radius: 10px;
  padding: 0;
}

.sign-dialog::backdrop {
  background: #00000073;
}

.sign-dialog-body {
  text-align: left;
  padding: 18px 22px 22px;
}

.sign-dialog-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  display: flex;
}

.sign-dialog-head h3 {
  margin: 0;
  font-size: 16px;
}

.settings-subtitle {
  margin-top: 28px;
}

.steps {
  color: var(--muted);
  justify-content: center;
  gap: 18px;
  margin: 4px 0 20px;
  padding: 0;
  font-size: 12px;
  list-style: none;
  display: flex;
}

.steps li {
  align-items: center;
  gap: 7px;
  display: flex;
}

.steps li span {
  border: 1px solid var(--line);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  font-size: 11px;
  display: inline-flex;
}

.steps li.current {
  color: var(--text);
  font-weight: 600;
}

.steps li.current span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.steps li.done span {
  background: var(--c-2e7d4f);
  border-color: var(--c-2e7d4f);
  color: #fff;
}

.login-card form section > p {
  color: var(--secondary);
  text-align: left;
  margin: 0 0 12px;
  font-size: 13px;
}

.step-actions {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  display: flex;
}

.step-actions .button.blue {
  flex: 1;
  width: auto;
  margin: 0;
}

.welcome-logo {
  width: min(260px, 70%);
  height: auto;
  margin: 0 auto 18px;
  display: block;
}

.login-card.wide h1, .login-card.wide > p, .login-card.wide > .steps {
  text-align: center;
}

.brand-logo {
  height: auto;
  display: block;
}

.logo-dark {
  display: none;
}

:root[data-theme="dark"] .logo-dark {
  display: block;
}

:root[data-theme="dark"] .logo-light {
  display: none;
}

.sidebar-logo {
  object-fit: contain;
  width: auto;
  max-width: 190px;
  height: 56px;
}

.login-logo {
  width: auto;
  height: 80px;
}

.workspace-switch {
  height: auto;
  min-height: 36px;
}

.portal-project:target {
  border-color: var(--c-2383e2);
  scroll-margin-top: 80px;
  box-shadow: 0 0 0 3px #2383e233;
}

.portal-project h3 .tag {
  vertical-align: middle;
  margin-left: 8px;
  font-weight: 500;
}

.accept-button {
  border-radius: 8px;
  min-height: 46px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .job-offer header {
    flex-wrap: wrap;
  }

  .accept-button {
    justify-content: center;
    width: 100%;
  }
}

.map-link {
  color: var(--c-2383e2);
  text-underline-offset: 2px;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  display: inline-flex;
}

.job-offer.clickable {
  cursor: pointer;
}

.job-offer.clickable:hover {
  border-color: var(--c-2383e2);
}

.job-offer .accept-button {
  margin-top: 10px;
}

.visit-title {
  margin: 0;
  font-size: 22px;
}

.visit-when {
  color: var(--secondary);
  margin: 4px 0 12px;
  font-size: 13px;
}

.visit-contact {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  display: flex;
}

.visit-map {
  border: 1px solid var(--line);
  color: inherit;
  border-radius: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.visit-map img {
  width: 100%;
  height: auto;
  display: block;
}

.visit-map-placeholder {
  background: var(--c-00000005);
  height: 90px;
  color: var(--muted);
  justify-content: center;
  align-items: center;
  display: flex;
}

.visit-map > span {
  color: var(--c-2383e2);
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
}

.checklist {
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  font-size: 14px;
  display: flex;
}

.checklist p {
  margin: 0;
  font-weight: 600;
}

.checklist label {
  align-items: center;
  gap: 10px;
  display: flex;
}

.checklist input {
  width: 20px;
  height: 20px;
}

.photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  display: grid;
}

.photo-grid img {
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
}

.photo-add {
  aspect-ratio: 1;
  border: 2px dashed var(--line);
  color: var(--secondary);
  cursor: pointer;
  border-radius: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  display: flex;
}

.photo-add.busy {
  opacity: .6;
}

.photo-add input {
  display: none;
}

.field-notes {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.visit-panel .panel-footer .accept-button {
  margin-left: 8px;
}

.footer-hint {
  color: var(--muted);
  margin-right: 8px;
  font-size: 12px;
}

.portal-block {
  margin: 26px 0;
}

.portal-block > h2 {
  border-bottom: 1px solid var(--line);
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 17px;
}

.portal-block .portal-projects {
  margin-top: 0;
}

.portal-block .empty-state {
  margin-top: 8px;
}

.card-open {
  color: var(--secondary);
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: inline-flex;
}

.card-open svg {
  color: var(--c-2383e2);
}

.week-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 16px;
  display: grid;
}

.week-day {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 8px;
  flex-direction: column;
  gap: 4px;
  min-height: 92px;
  padding: 8px 6px;
  display: flex;
}

.week-day.is-today {
  border-color: var(--c-2383e2);
  box-shadow: inset 0 0 0 1px var(--c-2383e2);
}

.week-name {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-size: 11px;
}

.week-num {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

.week-day.is-today .week-num {
  color: var(--c-2383e2);
}

.week-events {
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
  display: flex;
}

.week-chip {
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  background: var(--c-f2f1ec);
  border: 0;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 10px;
  line-height: 1.4;
  overflow: hidden;
}

.week-chip.event-project {
  background: var(--c-e7eef6);
  color: var(--c-597d9c);
}

.week-chip.event-measurement {
  color: #2e7d4f;
  background: #e4f3e8;
}

.week-chip.event-job, .week-chip.event-open {
  color: #c0392b;
  background: #fbe7e4;
  font-weight: 600;
}

@media (max-width: 600px) {
  .week-strip {
    gap: 4px;
  }

  .week-day {
    min-height: 76px;
    padding: 6px 4px;
  }

  .week-chip {
    font-size: 9px;
  }
}

.week-block {
  margin-top: 4px;
}

.calendar-filters {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  display: flex;
}

.calendar-filters .catalog-families {
  margin: 0;
}

.calendar-filters select {
  border: 1px solid var(--line);
  color: inherit;
  background: none;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
}

.chip.chip-open.active {
  color: #fff;
  background: #c0392b;
  border-color: #c0392b;
}

.ui-select {
  width: 100%;
  min-width: 0;
  position: relative;
}

.ui-native {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
  inset: 0 auto auto 0;
}

.ui-select-button {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  width: 100%;
  min-height: 34px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  display: flex;
}

.ui-select-button > span:first-of-type {
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ui-select-button.is-placeholder > span:first-of-type {
  color: var(--muted);
}

.ui-select-button > svg {
  color: var(--muted);
  flex: none;
}

.ui-select-button:hover {
  border-color: var(--c-b4b4b0);
}

.ui-select-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 0;
}

.ui-select-button:disabled {
  opacity: .6;
  cursor: default;
}

.ui-clear {
  color: var(--muted);
  border-radius: 50%;
  align-items: center;
  padding: 3px;
  display: inline-flex;
}

.ui-clear:hover {
  background: var(--c-00000011);
  color: var(--text);
}

.panel-property .ui-select-button {
  color: var(--c-787774);
  background: none;
  border-color: #0000;
  padding: 8px;
  font-size: 12px;
}

.panel-property .ui-select-button:hover {
  background: var(--c-f5f5f3);
}

.ui-select.compact .ui-select-button {
  background: none;
  border-color: #0000;
  min-height: 26px;
  padding: 3px 8px;
  font-size: 12px;
}

.ui-select.compact .ui-select-button:hover {
  border-color: var(--line);
  background: var(--c-ffffff);
}

.ui-popover {
  z-index: 1000;
  background: var(--c-ffffff);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  animation: .12s ease-out ui-pop;
  box-shadow: 0 10px 30px #00000029;
}

@keyframes ui-pop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

.ui-options {
  max-height: 280px;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow: auto;
}

.ui-option {
  cursor: pointer;
  border-radius: 5px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font-size: 13px;
  display: flex;
}

.ui-option.active {
  background: var(--c-f2f1ec);
}

.ui-option.selected {
  font-weight: 600;
}

.ui-option svg {
  color: var(--brand-hover);
}

.ui-date-popover {
  padding: 10px 12px 8px;
}

.ui-date-head {
  text-transform: capitalize;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  display: flex;
}

.ui-date-grid {
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  display: grid;
}

.ui-date-weekday {
  text-align: center;
  color: var(--muted);
  padding: 2px 0 4px;
  font-size: 10px;
}

.ui-date-day {
  height: 32px;
  color: var(--text);
  border-radius: 6px;
  font-size: 12px;
}

.ui-date-day.outside {
  color: var(--c-b4b4b0);
}

.ui-date-day:hover {
  background: var(--c-f2f1ec);
}

.ui-date-day.today {
  box-shadow: inset 0 0 0 1px var(--brand);
}

.ui-date-day {
  position: relative;
}

.ui-date-day.busy:after {
  content: "";
  background: var(--brand);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  position: absolute;
  bottom: 3px;
  left: 50%;
}

.ui-date-day.selected.busy:after {
  background: var(--brand-ink);
}

.ui-date-day.selected {
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
}

.ui-date-foot {
  justify-content: space-between;
  margin-top: 6px;
  display: flex;
}

:root[data-theme="dark"] .ui-select-button, :root[data-theme="dark"] .ui-popover {
  background: var(--sidebar);
}

:root[data-theme="dark"] .ui-option.active, :root[data-theme="dark"] .ui-date-day:hover {
  background: var(--c-00000033);
}

.calendar-who {
  width: 220px;
}

.status-cell .ui-select {
  width: auto;
  min-width: 150px;
}

.agenda-step {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  display: flex;
}

.agenda-step p {
  color: var(--secondary);
  margin: 0;
  font-size: 13px;
}

.agenda-step .accept-button {
  justify-content: center;
  width: 100%;
}

.later-link {
  font-size: 13px;
}

.finish-chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  display: flex;
}

.finish-chip {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  font-size: 12px;
  display: inline-flex;
}

.finish-chip img {
  object-fit: cover;
  border-radius: 50%;
  width: 28px;
  height: 28px;
}

.finish-chip button {
  color: var(--muted);
  border-radius: 50%;
  padding: 3px;
  display: inline-flex;
}

.finish-chip button:hover {
  background: var(--c-00000011);
  color: var(--text);
}

.finish-search {
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  display: flex;
}

.finish-search input {
  color: var(--text);
  background: none;
  border: 0;
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.finish-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  max-height: 320px;
  margin-top: 10px;
  display: grid;
  overflow: auto;
}

.finish-card {
  border: 1px solid var(--line);
  text-align: left;
  color: var(--text);
  background: var(--c-ffffff);
  border-radius: 6px;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  font-size: 11px;
  display: flex;
  position: relative;
}

.finish-card:hover {
  border-color: var(--brand);
}

.finish-card img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 4px;
}

.finish-card small {
  color: var(--muted);
}

.finish-add {
  color: #fff;
  background: var(--brand-hover);
  border-radius: 50%;
  padding: 2px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.finish-empty {
  margin: 4px 0 8px;
}

.finish-chosen {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  display: grid;
}

.finish-chosen-card {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  font-size: 12px;
  display: flex;
}

.finish-chosen-card img, .finish-noimg {
  object-fit: cover;
  background: var(--c-f2f1ec);
  border-radius: 6px;
  flex: none;
  width: 48px;
  height: 48px;
}

.finish-chosen-card > div {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  display: flex;
}

.finish-chosen-card > div span {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.finish-chosen-card small {
  color: var(--muted);
}

.finish-chosen-card a {
  color: var(--brand-hover);
  font-size: 11px;
}

.finish-chosen-card button {
  color: var(--muted);
  border-radius: 50%;
  padding: 4px;
  display: inline-flex;
}

.finish-chosen-card button:hover {
  background: var(--c-00000011);
  color: var(--text);
}

.autosave {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 12px;
}

.autosave.offline {
  color: #c0392b;
}

.autosave.saved {
  color: #2e7d4f;
}

.portal-tabs {
  display: none;
}

@media (max-width: 800px) {
  .portal-sidebar {
    display: none;
  }

  .portal-tabs {
    z-index: 60;
    background: var(--c-ffffff);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  :root[data-theme="dark"] .portal-tabs {
    background: var(--sidebar);
  }

  .portal-tabs a {
    color: var(--muted);
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    font-size: 11px;
    text-decoration: none;
    display: flex;
  }

  .portal-tabs a.active {
    color: var(--brand-hover);
    font-weight: 600;
  }

  .portal-tabs a:active {
    background: var(--c-00000007);
  }

  .app-shell:has(.portal-tabs) .main-content {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .app-shell:has(.portal-tabs) .document {
    padding: 18px 14px 24px;
  }

  .app-shell:has(.portal-tabs) .document-heading h1 {
    font-size: 26px;
  }

  .app-shell:has(.portal-tabs) .document-icon {
    display: none;
  }

  .visit-panel input, .visit-panel textarea {
    font-size: 16px;
  }

  .app-shell:has(.portal-tabs) input {
    font-size: 16px;
  }

  .app-shell:has(.portal-tabs) textarea {
    font-size: 16px;
  }

  .app-shell:has(.portal-tabs) .ui-select-button {
    font-size: 16px;
  }

  .portal-project {
    padding: 12px 14px;
  }

  .portal-project dl {
    grid-template-columns: 96px 1fr;
    font-size: 14px;
  }

  .accept-button, .job-offer .accept-button {
    justify-content: center;
    width: 100%;
    min-height: 50px;
    font-size: 16px;
  }

  .week-strip {
    gap: 3px;
  }

  .visit-panel {
    padding-top: env(safe-area-inset-top);
  }

  .visit-panel .panel-content {
    padding: 16px 16px 24px;
  }

  .visit-panel .panel-section h3 {
    font-size: 15px;
  }

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

  .visit-contact .button {
    flex: 1;
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
  }

  .visit-panel .flow-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .visit-panel .flow-actions .button {
    justify-content: center;
    width: 100%;
    min-height: 50px;
    font-size: 16px;
  }

  .visit-panel .checklist label {
    padding: 6px 0;
    font-size: 16px;
  }

  .visit-panel .checklist input {
    width: 24px;
    height: 24px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-add span {
    font-size: 13px;
  }

  .field-notes {
    min-height: 220px;
    font-size: 16px;
  }

  .visit-panel .panel-footer {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .visit-panel .panel-footer > span {
    display: none;
  }

  .visit-panel .panel-footer > div {
    flex-direction: column-reverse;
    gap: 8px;
    display: flex;
  }

  .visit-panel .panel-footer .button {
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0;
  }

  .visit-panel .panel-footer .footer-hint {
    text-align: center;
    margin: 0;
  }

  .sign-dialog {
    border-radius: 14px 14px 0 0;
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
  }

  .finish-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.measure-start {
  justify-content: center;
  width: 100%;
  margin-bottom: 12px;
}

.measure-sheet {
  background: var(--c-ffffff);
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  color: var(--text);
  border: 0;
  flex-direction: column;
  margin: 0;
  padding: 0;
  display: flex;
}

.measure-sheet::backdrop {
  background: #00000080;
}

@media (min-width: 801px) {
  .measure-sheet {
    border-radius: 14px;
    width: 520px;
    height: min(860px, 92dvh);
    margin: auto;
    box-shadow: 0 20px 60px #0000004d;
  }
}

.measure-head {
  padding: calc(12px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  display: flex;
}

.measure-head > div {
  flex-direction: column;
  flex: 1;
  line-height: 1.2;
  display: flex;
}

.measure-head small {
  color: var(--muted);
}

.measure-total-pill {
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 600;
}

.measure-body {
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 12px 14px 20px;
  display: flex;
  overflow: auto;
}

.measure-chips {
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  padding-bottom: 2px;
  display: flex;
  overflow-x: auto;
}

.measure-chips .chip {
  flex: none;
  padding: 8px 14px;
  font-size: 14px;
}

.measure-label {
  border: 1px solid var(--line);
  color: inherit;
  background: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
}

.measure-row {
  align-items: flex-end;
  gap: 8px;
  display: flex;
}

.measure-field {
  color: var(--muted);
  flex-direction: column;
  flex: 1;
  gap: 4px;
  font-size: 12px;
  display: flex;
}

.measure-field input {
  text-align: center;
  border: 2px solid var(--line);
  width: 100%;
  color: var(--text);
  background: none;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 30px;
  font-weight: 600;
}

.measure-field.focused input {
  border-color: var(--brand);
}

.measure-x {
  color: var(--muted);
  padding-bottom: 14px;
  font-size: 24px;
}

.measure-fractions {
  align-items: center;
  gap: 6px;
  display: flex;
}

.measure-fractions .chip {
  padding: 8px 12px;
  font-size: 16px;
}

.measure-qty {
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  margin-left: auto;
  display: inline-flex;
  overflow: hidden;
}

.measure-qty button {
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 40px;
  display: inline-flex;
}

.measure-qty span {
  text-align: center;
  min-width: 48px;
  font-size: 16px;
  font-weight: 600;
}

.measure-add {
  justify-content: center;
  width: 100%;
  min-height: 52px;
  font-size: 15px;
}

.measure-list {
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.measure-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  display: flex;
}

.measure-list li > div {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
}

.measure-list li small {
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  overflow: hidden;
}

.measure-empty {
  color: var(--muted);
  justify-content: center;
  font-size: 13px;
}

.measure-foot {
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.measure-foot .button {
  justify-content: center;
  width: 100%;
  min-height: 50px;
}

.measure-sheet .measure-pad {
  box-sizing: border-box;
  resize: none;
  background: var(--c-fafaf8);
  width: 100%;
  min-height: 0;
  color: var(--text);
  border: 0;
  border-radius: 0;
  outline: none;
  flex: 1;
  padding: 14px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  line-height: 1.55;
}

:root[data-theme="dark"] .measure-pad {
  background: var(--c-00000033);
}

.measure-keys {
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--c-ffffff);
  flex-direction: column;
  gap: 8px;
  display: flex;
}

:root[data-theme="dark"] .measure-keys {
  background: var(--sidebar);
}

.measure-keys .measure-chips {
  padding: 0 2px;
}

.chip-key {
  justify-content: center;
  min-width: 46px;
  font-size: 16px;
  font-weight: 600;
}

.measure-keys .accept-button {
  min-height: 48px;
}

.measure-saved {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.shot-list {
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: flex;
}

.shot-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  display: flex;
}

.shot-list li > span:last-child {
  flex-direction: column;
  line-height: 1.35;
  display: flex;
}

.shot-list em {
  color: #c0392b;
  font-style: normal;
  font-weight: 600;
}

.shot-list li.done em {
  color: #2e7d4f;
}

.shot-list small {
  color: var(--muted);
}

.shot-mark {
  border: 1px solid var(--line);
  color: #c0392b;
  border-radius: 50%;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.shot-list li.done {
  border-color: #2e7d4f;
}

.shot-list li.done .shot-mark {
  color: #fff;
  background: #2e7d4f;
  border-color: #2e7d4f;
}

.photo-grid {
  margin-top: 10px;
}

.photo-grid a {
  display: block;
  position: relative;
}

.photo-grid a small {
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #0000008c;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  overflow: hidden;
}

.camera-sheet {
  color: #fff;
  background: #000;
  border: 0;
  flex-direction: column;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  display: flex;
}

.camera-sheet::backdrop {
  background: #000;
}

.camera-stage {
  background: #000;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.camera-stage video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.camera-stage video.hidden {
  display: none;
}

.camera-fallback {
  text-align: center;
  color: #ddd;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 24px;
  font-size: 14px;
  display: flex;
  position: absolute;
  inset: 0;
}

.camera-flash {
  opacity: 0;
  pointer-events: none;
  background: #fff;
  transition: opacity .15s;
  position: absolute;
  inset: 0;
}

.camera-flash.on {
  opacity: .8;
}

.camera-guide {
  pointer-events: none;
  border: 1px dashed #ffffff59;
  border-radius: 12px;
  position: absolute;
  inset: 88px 22px 24px;
}

.camera-guide .corner {
  border: 3px solid var(--brand);
  width: 28px;
  height: 28px;
  position: absolute;
}

.camera-guide .tl {
  border-bottom: 0;
  border-right: 0;
  border-radius: 10px 0 0;
  top: -2px;
  left: -2px;
}

.camera-guide .tr {
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 10px 0 0;
  top: -2px;
  right: -2px;
}

.camera-guide .bl {
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 10px;
  bottom: -2px;
  left: -2px;
}

.camera-guide .br {
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 10px;
  bottom: -2px;
  right: -2px;
}

.camera-top {
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(#000000bf, #0000);
  align-items: flex-start;
  gap: 10px;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.camera-top > div {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  display: flex;
}

.camera-top strong {
  font-size: 17px;
}

.camera-top strong em {
  color: var(--brand);
  font-style: normal;
  font-weight: 500;
}

.camera-top span {
  color: #ddd;
  font-size: 13px;
}

.camera-top .icon-button {
  color: #fff;
}

.camera-shots {
  background: #111;
  gap: 6px;
  padding: 10px 12px;
  display: flex;
  overflow-x: auto;
}

.camera-shot {
  color: #ddd;
  border: 1px solid #444;
  border-radius: 999px;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  font-size: 13px;
  display: inline-flex;
}

.camera-shot.required {
  border-color: #7a3b33;
}

.camera-shot.done {
  color: #8fd3a5;
  border-color: #2e7d4f;
}

.camera-shot.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.camera-bar {
  padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
  background: #111;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  display: grid;
}

.camera-file {
  color: #ddd;
  padding: 10px;
  display: inline-flex;
}

.camera-file input, .camera-open input {
  display: none;
}

.camera-shutter {
  background: #fff;
  border: 5px solid #111;
  border-radius: 50%;
  justify-self: center;
  width: 74px;
  height: 74px;
  box-shadow: 0 0 0 3px #fff;
}

.camera-shutter:active {
  transform: scale(.94);
}

.camera-open {
  white-space: nowrap;
  justify-self: center;
}

.camera-done {
  color: #fff;
  text-align: right;
  justify-self: end;
  padding: 10px 0;
  font-size: 13px;
}

.logout-block .empty-state {
  margin: 0 0 10px;
}

.logout-button {
  color: #c0392b;
  border-color: #e6b8b2;
}

.logout-button:hover {
  background: #fbe7e4;
}

@media (min-width: 801px) {
  .logout-button {
    width: auto;
  }
}

.consent a {
  color: var(--brand-hover);
  text-underline-offset: 3px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.consent a:hover {
  color: var(--text);
  text-decoration-style: dotted;
}

.link-button {
  font: inherit;
  color: var(--blue);
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
}

.confirm-box {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  display: flex;
}

.confirm-box > span {
  color: var(--text);
  flex: 240px;
  font-size: 13px;
  line-height: 1.45;
}

.review-page {
  background: var(--sidebar);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 32px 16px;
  display: flex;
}

html:has(main.review-page) {
  background: linear-gradient(#1a191673, #1a191673), url("/fond-1920.jpg") center / cover no-repeat fixed;
}

html:has(main.review-page) body {
  background: none;
}

.review-card {
  text-align: center;
  background: var(--c-ffffff);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 100%;
  max-width: 590px;
  padding: 34px 42px 30px;
  box-shadow: 0 24px 70px #2219124d;
}

.review-logo {
  width: auto;
  height: 90px;
  margin: -20px auto -4px;
}

.review-success-icon {
  background: var(--c-dfebdf);
  width: 44px;
  height: 44px;
  color: var(--c-2e7d4f);
  border-radius: 50%;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 24px;
  font-weight: 700;
  display: grid;
}

.review-kicker {
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-hover) !important;
  margin: 0 0 7px !important;
}

.review-notice {
  border: 1px solid var(--c-2e7d4f);
  padding: 9px 12px;
  margin: 0 auto 16px !important;
}

@supports (color: color-mix(in lab, red, red)) {
  .review-notice {
    border: 1px solid color-mix(in srgb, var(--c-2e7d4f) 25%, var(--line));
  }
}

.review-notice {
  background: var(--c-dfebdf);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-2e7d4f) !important;
}

.review-notice.error {
  border-color: var(--c-fbe4e0);
  background: var(--c-fbe4e0);
  color: var(--c-d44c47) !important;
}

.review-card .review-project {
  max-width: 430px;
  margin: 0 auto 22px;
  font-size: 15px;
}

.review-card .review-project strong {
  color: var(--text);
  font-weight: 650;
}

.review-form {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}

.review-question {
  font-size: 15px;
}

.review-picker button {
  border-radius: 8px;
  transition: transform .12s, background .12s;
}

.review-picker button:hover {
  background: var(--c-f8e8da);
  transform: translateY(-2px);
}

.review-positive, .review-negative {
  border: 1px solid var(--line);
  background: var(--sidebar);
  border-radius: 8px;
  margin-top: 16px;
  padding: 16px;
}

.review-positive p, .review-negative p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
}

.review-positive .button.primary {
  width: 100%;
  min-width: 0;
  box-shadow: 0 5px 12px var(--brand);
  border-radius: 6px;
  margin: 2px 0 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .review-positive .button.primary {
    box-shadow: 0 5px 12px color-mix(in srgb, var(--brand) 28%, transparent);
  }
}

.review-negative textarea {
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 6px;
  width: 100%;
  margin-bottom: 10px;
}

.review-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 12px;
  display: flex;
}

.review-links a {
  font-weight: 600;
}

.review-card > small {
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
  .review-card {
    padding: 28px 20px 24px;
  }

  .review-card .review-project {
    font-size: 14px;
  }
}

.review-stars {
  color: var(--brand);
  justify-content: center;
  gap: 6px;
  margin: 10px 0 14px;
  display: flex;
}

.review-stars svg {
  fill: var(--brand);
}

.review-card h1 {
  letter-spacing: -.3px;
  margin: 0 0 10px;
  font-size: 26px;
}

.review-card > p {
  color: var(--secondary);
  margin: 0 0 14px;
  line-height: 1.6;
}

.review-card .button.primary {
  border-radius: 8px;
  width: auto;
  min-width: 260px;
  margin: 8px 0 6px;
  padding: 14px 24px;
  font-size: 16px;
  display: inline-flex;
}

.review-card small {
  color: var(--muted);
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.5;
  display: block;
}

.review-card small a, .review-links a {
  color: var(--blue);
}

.review-links {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted) !important;
  margin: 22px 0 0 !important;
}

@media (max-width: 700px) {
  html:has(main.review-page) {
    background-attachment: scroll;
  }

  .review-card {
    padding: 28px 20px 24px;
  }

  .review-card h1 {
    font-size: 22px;
  }
}

.review-form {
  margin-top: 8px;
}

.review-question {
  font-weight: 600;
  color: var(--text) !important;
  margin: 0 0 6px !important;
}

.review-picker {
  justify-content: center;
  gap: 4px;
  display: flex;
}

.review-picker button {
  color: var(--c-dfdfdc);
  padding: 4px;
  transition: transform .1s;
}

.review-picker button.on {
  color: var(--brand);
}

.review-picker button.on svg {
  fill: var(--brand);
}

.review-picker button:hover {
  transform: scale(1.12);
}

.review-label {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted) !important;
  margin: 4px 0 14px !important;
}

.review-positive p, .review-negative p {
  color: var(--secondary);
  margin: 0 0 14px;
  line-height: 1.6;
}

.review-negative {
  text-align: left;
  gap: 10px;
  display: grid;
}

.review-negative textarea {
  border: 1px solid var(--line);
  width: 100%;
  color: inherit;
  resize: vertical;
  background: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.review-negative .button.primary {
  justify-self: center;
}

.review-cell {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.review-cell-stars {
  letter-spacing: 1px;
  font-size: 15px;
}

.review-cell.good .review-cell-stars {
  color: var(--brand-hover);
}

.review-cell.bad .review-cell-stars {
  color: #b03a2e;
}

.review-cell small {
  color: var(--muted);
  max-width: 320px;
  font-size: 12px;
}

.gallery-job {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 18px;
}

.gallery-job header {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.gallery-job header strong {
  color: var(--text);
  font-size: 15px;
}

.gallery-job header small {
  color: var(--muted);
  font-size: 12px;
}

.gallery-columns {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  display: grid;
}

.gallery-columns h3 {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.gallery-columns h3 span {
  color: var(--secondary);
  margin-left: 6px;
}

.gallery-columns .photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.gallery-none {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 12px;
}

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

.order-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
  margin-top: 16px;
  display: grid;
}

.order-card {
  cursor: pointer;
}

.order-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.order-qty {
  color: var(--muted);
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11px;
  display: flex;
}

.order-qty input {
  border: 1px solid var(--line);
  width: 100%;
  min-width: 0;
  color: inherit;
  background: none;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 13px;
}

.order-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  position: sticky;
  top: 16px;
}

.order-summary h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.order-summary ul {
  max-height: 40vh;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.order-summary li {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  display: grid;
}

.order-summary li small {
  color: var(--muted);
  display: block;
}

.order-summary .icon-button {
  color: var(--muted);
}

.order-total {
  justify-content: space-between;
  margin: 10px 0;
  display: flex;
}

.order-field {
  color: var(--muted);
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  display: flex;
}

.order-field select, .order-field textarea {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--text);
  font: inherit;
  background: none;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
}

.order-summary > .button {
  width: 100%;
}

.order-summary > .button + .button {
  margin-top: 8px;
}

@media (max-width: 960px) {
  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

button.sidebar-user {
  text-align: left;
  width: 100%;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
}

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

button.sidebar-user > svg {
  color: var(--muted);
  margin-right: 2px;
}

.dropdown-menu.up {
  width: auto;
  inset: auto 4px calc(100% + 4px);
}

.login-photo {
  background: linear-gradient(#1a191659, #1a19168c), url("/loginbg.png") center / cover no-repeat fixed;
}

.login-card-logo {
  justify-content: center;
  margin-bottom: 22px;
  display: flex;
}

.login-photo .login-card {
  text-align: center;
}

.login-photo .login-card form {
  text-align: left;
}

.login-photo .login-card {
  background: var(--c-ffffff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 34px 28px;
  box-shadow: 0 24px 60px #00000059, 0 0 0 1px #0000000d;
}

.login-photo {
  justify-content: center;
  position: relative;
}

.login-photo .login-card {
  margin: 40px auto;
}

.login-photo > footer {
  color: #ffffffbf;
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

@media (max-width: 700px) {
  .login-photo {
    background-attachment: scroll;
  }

  .login-photo .login-card {
    padding: 26px 22px 22px;
  }
}

.split-button {
  width: 100%;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  transition: gap .3s;
  display: flex;
}

.split-button > span:first-child {
  color: #0f1f12;
  text-align: center;
  background: #f7f6e9;
  border-radius: 6px;
  flex: 1;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transition: border-radius .3s, background-color .3s;
}

.split-button > span:last-child {
  color: #0f1f12;
  background: #f0a17b;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  transition: border-radius .3s, background-color .3s;
  display: flex;
}

.split-button > span:last-child svg {
  transition: transform .3s;
}

.split-button:hover {
  gap: 0;
}

.split-button:hover > span:first-child {
  background: #eae9dd;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.split-button:hover > span:last-child {
  background: #e9926a;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.split-button:hover > span:last-child svg {
  transform: rotate(-45deg);
}

.split-button:disabled {
  opacity: .6;
  cursor: default;
}

.login-link {
  width: 100%;
  font: inherit;
  color: var(--c-777670);
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  margin-top: 16px;
  padding: 4px;
  font-size: 12px;
  text-decoration: underline;
  display: block;
}

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

.login-note {
  color: var(--c-9b9a97);
  text-align: center;
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.history-list {
  margin: 0;
  padding: 0;
  font-size: 13px;
  list-style: none;
}

.history-list li {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  display: flex;
}

.history-list li > span:first-child {
  min-width: 0;
}

.history-list small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}

.history-list .history-total {
  border-bottom: 0;
  font-weight: 600;
}

@media (max-width: 700px) {
  .alert-line {
    grid-template-columns: auto 1fr;
    row-gap: 3px;
    padding: 10px 4px;
    display: grid;
  }

  .alert-line > .tag {
    min-width: 0;
  }

  .alert-line small, .alert-line.plain small {
    grid-column: 1 / -1;
    padding-left: 0;
    line-height: 1.5;
  }

  .source-row {
    grid-template-columns: minmax(70px, 110px) 1fr auto;
    gap: 10px;
  }

  .source-row small {
    white-space: nowrap;
  }

  .inline-metrics {
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
  }

  .inline-metrics > a {
    padding: 2px 12px;
  }

  .inline-metrics strong {
    font-size: 24px;
  }

  .linked-database .database-table {
    min-width: 600px;
  }

  .linked-database .table-scroll {
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .linked-database > div:has( > .database-table) {
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .document-section {
    margin-top: 26px;
  }

  .document-section h2 {
    font-size: 17px;
  }

  .document {
    padding: 18px 16px 24px;
  }

  .document-icon {
    display: none;
  }

  .document-heading h1 {
    letter-spacing: -.8px;
    margin-bottom: 4px;
    font-size: 28px;
  }

  .document-heading > p {
    font-size: 13px;
    line-height: 1.5;
  }

  .document-heading {
    margin-bottom: 12px;
  }

  .table-container {
    -webkit-overflow-scrolling: touch;
    width: auto;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .database-table th:first-child, .database-table td:first-child {
    z-index: 2;
    background: var(--c-ffffff);
    box-shadow: 1px 0 0 var(--line);
    position: sticky;
    left: 0;
  }

  .database-table td {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .reviews-table {
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    display: block;
    overflow-x: auto;
  }

  .reviews-table th:first-child, .reviews-table td:first-child {
    background: var(--c-ffffff);
    z-index: 2;
    position: sticky;
    left: 0;
  }

  .calendar-grid {
    min-width: 0;
  }

  .calendar-weekday {
    text-align: center;
    padding: 8px 4px;
  }

  .calendar-day {
    align-items: center;
    gap: 3px;
    min-height: 62px;
    padding: 4px 3px;
  }

  .calendar-date {
    width: 22px;
    height: 22px;
    font-size: 11px;
    line-height: 22px;
  }

  .calendar-event {
    color: #0000;
    border-radius: 50%;
    width: 9px;
    height: 9px;
    padding: 0;
    font-size: 0;
  }

  .calendar-day:has(.calendar-event) {
    grid-template-columns: repeat(3, 9px);
    place-content: start center;
    gap: 3px;
    display: grid;
  }

  .calendar-day:has(.calendar-event) .calendar-date {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .order-layout > .order-summary {
    order: -1;
  }

  .order-qty {
    white-space: nowrap;
  }

  .order-qty input {
    min-width: 56px;
  }

  .record-panel input, .record-panel select, .record-panel textarea, .login-card form input, .order-field select, .order-field textarea, .catalog-search {
    font-size: 16px;
  }

  .catalog-search {
    width: 100%;
  }

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

  .calendar-toolbar > span {
    flex: 100%;
  }

  .kanban-board {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    min-height: 0;
    margin: 0 -16px;
    padding: 12px 16px 20px;
  }

  .kanban-column {
    scroll-snap-align: start;
    flex: 0 0 82vw;
  }

  .settings-document input, .settings-document select, .settings-document textarea {
    font-size: 16px;
  }

  .sidebar {
    -webkit-overflow-scrolling: touch;
    width: min(84vw, 330px);
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .sidebar .nav-row {
    gap: 12px;
    min-height: 44px;
    padding: 9px 12px;
    font-size: 15px;
  }

  .sidebar .nav-row svg {
    width: 19px;
    height: 19px;
  }

  .sidebar-section {
    margin-top: 18px;
  }

  .sidebar-label {
    font-size: 12px;
  }

  .sidebar-bottom {
    padding-top: 24px;
  }

  .sidebar-user {
    padding: 14px 10px 8px;
    font-size: 14px;
  }

  .sidebar-logo {
    height: 48px;
  }
}

.computed-pay {
  padding: 6px 0;
  font-size: 14px;
  display: block;
}

.ui-picker-search {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  display: flex;
}

.ui-picker-search input {
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.ui-option small {
  color: var(--muted);
}

.ui-option.muted {
  color: var(--muted);
  cursor: default;
}

.ui-picker-new {
  border-top: 1px solid var(--line);
  width: 100%;
  color: var(--brand-hover);
  text-align: left;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 13px;
  display: flex;
}

.ui-picker-new:hover {
  background: var(--c-f2f1ec);
}

.ui-picker-form {
  gap: 6px;
  padding: 10px;
  display: grid;
}

.ui-picker-form input {
  width: 100%;
  font-size: 13px;
}

.ui-picker-actions {
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
  display: flex;
}

.journal-kind {
  white-space: nowrap;
}

.journal-kind svg {
  vertical-align: -3px;
  margin-right: 6px;
}

.users-round-icon .ur-arc {
  stroke-dasharray: 60;
}

.users-round-icon .ur-side {
  stroke-dasharray: 50;
}

.users-round-icon .ur-head {
  transform-box: view-box;
  transform-origin: 10px 8px;
}

:is(a, button, .document-icon):hover .users-round-icon .ur-arc, .users-round-icon:hover .ur-arc {
  animation: .8s ease-in-out ur-arc;
}

:is(a, button, .document-icon):hover .users-round-icon .ur-head, .users-round-icon:hover .ur-head {
  animation: .6s ease-out ur-head;
}

:is(a, button, .document-icon):hover .users-round-icon .ur-side, .users-round-icon:hover .ur-side {
  animation: .8s ease-in-out .4s backwards ur-side;
}

@keyframes ur-arc {
  from {
    stroke-dashoffset: 60px;
    opacity: .3;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes ur-head {
  0% {
    opacity: 0;
    transform: scale(.5);
  }

  60% {
    opacity: 1;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ur-side {
  from {
    stroke-dashoffset: 50px;
    opacity: .2;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .users-round-icon .ur-arc, .users-round-icon .ur-head, .users-round-icon .ur-side {
    animation: none !important;
  }
}

.calculator-icon .calc-key {
  transform-box: fill-box;
  transform-origin: center;
}

:is(a, button, .document-icon):hover .calculator-icon .calc-key, .calculator-icon:hover .calc-key {
  animation: .8s cubic-bezier(.34, 1.4, .64, 1) backwards calc-key;
}

@keyframes calc-key {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.8);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .calculator-icon .calc-key {
    animation: none !important;
  }
}

.file-pen-icon .fp-outline, .file-pen-icon .fp-pen {
  stroke-dasharray: 1;
}

.file-pen-icon .fp-pen {
  transform-box: view-box;
  transform-origin: 9px 17px;
}

:is(a, button, .document-icon):hover .file-pen-icon .fp-outline, .file-pen-icon:hover .fp-outline {
  animation: .5s cubic-bezier(.16, 1, .3, 1) fp-draw;
}

:is(a, button, .document-icon):hover .file-pen-icon .fp-pen, .file-pen-icon:hover .fp-pen {
  animation: .5s cubic-bezier(.16, 1, .3, 1) .2s backwards fp-draw, .5s cubic-bezier(.34, 1.4, .64, 1) .2s backwards fp-pen;
}

@keyframes fp-draw {
  from {
    stroke-dashoffset: 1px;
    opacity: 0;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes fp-pen {
  0% {
    transform: scale(.85);
  }

  60% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .file-pen-icon .fp-outline, .file-pen-icon .fp-pen {
    animation: none !important;
  }
}

.document-dollar-icon .dd-dollar {
  stroke-dasharray: 1;
}

:is(a, button, .document-icon):hover .document-dollar-icon .dd-dollar, .document-dollar-icon:hover .dd-dollar {
  animation: .6s linear dd-draw;
}

@keyframes dd-draw {
  0% {
    stroke-dashoffset: 1px;
    opacity: 0;
  }

  17% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .document-dollar-icon .dd-dollar {
    animation: none !important;
  }
}

:is(a, button, .document-icon):hover .folder-kanban-icon .fk-col, .folder-kanban-icon:hover .fk-col {
  animation: 1s ease-in-out infinite fk-pulse;
}

@keyframes fk-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .folder-kanban-icon .fk-col {
    animation: none !important;
  }
}

.calendar-days-icon .cd-hanger, .calendar-days-icon .cd-body {
  stroke-dasharray: 1;
}

.calendar-days-icon .cd-header {
  transform-box: view-box;
  transform-origin: 3px 10px;
}

.calendar-days-icon .cd-day {
  transform-box: fill-box;
  transform-origin: center;
}

:is(a, button, .document-icon):hover .calendar-days-icon .cd-hanger, .calendar-days-icon:hover .cd-hanger {
  animation: .3s cubic-bezier(.16, 1, .3, 1) backwards fp-draw;
}

:is(a, button, .document-icon):hover .calendar-days-icon .cd-body, .calendar-days-icon:hover .cd-body {
  animation: .5s cubic-bezier(.16, 1, .3, 1) fp-draw;
}

:is(a, button, .document-icon):hover .calendar-days-icon .cd-header, .calendar-days-icon:hover .cd-header {
  animation: .4s cubic-bezier(.16, 1, .3, 1) .28s backwards cd-header;
}

:is(a, button, .document-icon):hover .calendar-days-icon .cd-day, .calendar-days-icon:hover .cd-day {
  animation: .35s cubic-bezier(.34, 1.4, .64, 1) backwards cd-day;
}

@keyframes cd-header {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

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

@keyframes cd-day {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  60% {
    opacity: 1;
    transform: scale(1.25);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-days-icon .cd-hanger, .calendar-days-icon .cd-body, .calendar-days-icon .cd-header, .calendar-days-icon .cd-day {
    animation: none !important;
  }
}

.circle-check-icon .cc-ring, .circle-check-icon .cc-tick {
  stroke-dasharray: 1;
  transform-box: view-box;
  transform-origin: 12px 12px;
}

.circle-check-icon .cc-ring {
  transform: rotate(-90deg);
}

:is(a, button, .document-icon):hover .circle-check-icon, .circle-check-icon:hover {
  animation: .5s ease-out cc-bounce;
}

:is(a, button, .document-icon):hover .circle-check-icon .cc-ring, .circle-check-icon:hover .cc-ring {
  animation: .5s ease-in-out cc-ring;
}

:is(a, button, .document-icon):hover .circle-check-icon .cc-tick, .circle-check-icon:hover .cc-tick {
  animation: .4s ease-out .32s backwards cc-tick;
}

@keyframes cc-bounce {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  75% {
    transform: scale(.96);
  }
}

@keyframes cc-ring {
  from {
    stroke-dashoffset: 1px;
    opacity: .2;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes cc-tick {
  0% {
    stroke-dashoffset: 1px;
    opacity: 0;
    transform: scale(.8);
  }

  70% {
    stroke-dashoffset: 0;
    opacity: 1;
    transform: scale(1.12);
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .circle-check-icon, .circle-check-icon .cc-ring, .circle-check-icon .cc-tick {
    animation: none !important;
  }
}

.bot-message-icon {
  transform-origin: center;
}

.bot-message-icon .bm-face, .bot-message-icon .bm-eye {
  transform-box: fill-box;
  transform-origin: center;
}

.bot-message-icon .bm-dot {
  opacity: 0;
}

:is(a, button, .document-icon):hover .bot-message-icon, .bot-message-icon:hover {
  animation: 1s ease-in-out bm-wiggle;
}

:is(a, button, .document-icon):hover .bot-message-icon .bm-face, .bot-message-icon:hover .bm-face {
  animation: .6s ease-in-out 2 bm-breathe;
}

:is(a, button, .document-icon):hover .bot-message-icon .bm-eye, .bot-message-icon:hover .bm-eye {
  animation: .4s ease-in-out .1s bm-blink;
}

:is(a, button, .document-icon):hover .bot-message-icon .bm-dot, .bot-message-icon:hover .bm-dot {
  animation: 1.2s ease-in-out infinite bm-type;
}

@keyframes bm-wiggle {
  0%, 100% {
    transform: rotate(0)translateY(0)scale(1);
  }

  25% {
    transform: rotate(-3deg)translateY(1.5px)scale(1.03);
  }

  50% {
    transform: rotate(3deg)translateY(-1.5px)scale(1);
  }

  75% {
    transform: rotate(0)translateY(0)scale(1);
  }
}

@keyframes bm-breathe {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes bm-blink {
  0%, 100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(.1);
  }
}

@keyframes bm-type {
  0%, 100% {
    opacity: .3;
  }

  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bot-message-icon, .bot-message-icon .bm-face, .bot-message-icon .bm-eye, .bot-message-icon .bm-dot {
    animation: none !important;
  }
}

.wallet-icon .wm-body {
  transform-box: view-box;
  transform-origin: 12px 12px;
}

.wallet-icon .wm-outline {
  stroke-dasharray: 120;
}

.wallet-icon .wm-dot {
  transform-box: fill-box;
  transform-origin: center;
}

.wallet-icon .wm-latch, .wallet-icon .wm-shimmer {
  opacity: 0;
}

:is(a, button, .document-icon):hover .wallet-icon .wm-body, .wallet-icon:hover .wm-body {
  animation: .9s ease-in-out wm-nudge;
}

:is(a, button, .document-icon):hover .wallet-icon .wm-outline, .wallet-icon:hover .wm-outline {
  animation: .8s ease-in-out wm-outline;
}

:is(a, button, .document-icon):hover .wallet-icon .wm-dot, .wallet-icon:hover .wm-dot {
  animation: .45s ease-out .4s backwards wm-pop;
}

:is(a, button, .document-icon):hover .wallet-icon .wm-latch, .wallet-icon:hover .wm-latch {
  animation: .5s ease-in-out .5s wm-latch;
}

:is(a, button, .document-icon):hover .wallet-icon .wm-shimmer, .wallet-icon:hover .wm-shimmer {
  animation: .8s ease-in-out .25s wm-shimmer;
}

@keyframes wm-nudge {
  0% {
    transform: rotate(-2deg)scale(1);
  }

  33% {
    transform: rotate(0)scale(1.02);
  }

  66% {
    transform: rotate(-1deg)scale(1);
  }

  100% {
    transform: rotate(0)scale(1);
  }
}

@keyframes wm-outline {
  from {
    stroke-dashoffset: 120px;
    opacity: .4;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes wm-pop {
  0% {
    opacity: 0;
    transform: scale(.7);
  }

  60% {
    opacity: 1;
    transform: scale(1.25);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wm-latch {
  0%, 100% {
    opacity: 0;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(3px);
  }
}

@keyframes wm-shimmer {
  0% {
    opacity: 0;
    transform: translateX(-18px);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-icon .wm-body, .wallet-icon .wm-outline, .wallet-icon .wm-dot, .wallet-icon .wm-latch, .wallet-icon .wm-shimmer {
    animation: none !important;
  }
}

.star-icon {
  transform-origin: center;
  animation: 2.5s ease-in-out infinite star-idle;
}

:is(a, button, .document-icon):hover .star-icon, .star-icon:hover {
  animation: 1.2s ease-in-out star-wag;
}

@keyframes star-idle {
  0%, 100% {
    transform: scale(1);
  }

  33% {
    transform: scale(1.02);
  }

  66% {
    transform: scale(.98);
  }
}

@keyframes star-wag {
  0% {
    transform: scale(1)rotate(0);
  }

  25% {
    transform: scale(1.2)rotate(-10deg);
  }

  50% {
    transform: scale(.95)rotate(10deg);
  }

  75% {
    transform: scale(1.05)rotate(0);
  }

  100% {
    transform: scale(1)rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .star-icon {
    animation: none !important;
  }
}

.swatch-icon {
  transform-origin: center;
}

:is(a, button, .document-icon):hover .swatch-icon, .swatch-icon:hover {
  animation: .5s ease-in-out swatch-tilt;
}

@keyframes swatch-tilt {
  0%, 100% {
    transform: rotate(0);
  }

  50% {
    transform: rotate(15deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swatch-icon {
    animation: none !important;
  }
}

.image-icon .im-peak {
  stroke-dasharray: 1;
}

.image-icon .im-sun {
  transform-box: fill-box;
  transform-origin: center;
}

:is(a, button, .document-icon):hover .image-icon .im-peak, .image-icon:hover .im-peak {
  animation: .9s cubic-bezier(.16, 1, .3, 1) fp-draw;
}

:is(a, button, .document-icon):hover .image-icon .im-sun, .image-icon:hover .im-sun {
  animation: .8s cubic-bezier(.34, 1.4, .64, 1) .3s backwards cd-day;
}

@media (prefers-reduced-motion: reduce) {
  .image-icon .im-peak, .image-icon .im-sun {
    animation: none !important;
  }
}

.package-check-icon .pc-body, .package-check-icon .pc-check {
  stroke-dasharray: 1;
}

.package-check-icon .pc-check {
  transform-box: view-box;
  transform-origin: 19px 17px;
}

:is(a, button, .document-icon):hover .package-check-icon .pc-body, .package-check-icon:hover .pc-body {
  animation: .5s cubic-bezier(.16, 1, .3, 1) backwards fp-draw;
}

:is(a, button, .document-icon):hover .package-check-icon .pc-check, .package-check-icon:hover .pc-check {
  animation: .4s cubic-bezier(.16, 1, .3, 1) .5s backwards fp-draw, .45s cubic-bezier(.34, 1.4, .64, 1) .54s backwards pc-pop;
}

@keyframes pc-pop {
  0% {
    transform: scale(.7);
  }

  60% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .package-check-icon .pc-body, .package-check-icon .pc-check {
    animation: none !important;
  }
}

.settings-icon .st-gear, .settings-icon .st-core {
  transform-box: view-box;
  transform-origin: 12px 12px;
}

:is(a, button, .document-icon):hover .settings-icon .st-gear, .settings-icon:hover .st-gear {
  animation: .6s ease-in-out st-gear;
}

:is(a, button, .document-icon):hover .settings-icon .st-core, .settings-icon:hover .st-core {
  animation: .6s ease-in-out st-core;
}

@keyframes st-gear {
  0% {
    transform: rotate(0)scale(1);
  }

  50% {
    transform: rotate(30deg)scale(1.05);
  }

  100% {
    transform: rotate(60deg)scale(1);
  }
}

@keyframes st-core {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(-90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-icon .st-gear, .settings-icon .st-core {
    animation: none !important;
  }
}

.heart-icon {
  transform-origin: center;
}

:is(a, button, .document-icon):hover .heart-icon, .heart-icon:hover {
  animation: .45s ease-in-out 3 heart-beat;
}

@keyframes heart-beat {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heart-icon {
    animation: none !important;
  }
}

.ellipsis-icon {
  transform: rotate(90deg);
}

:is(a, button, .document-icon):hover .ellipsis-icon .el-dot, .ellipsis-icon:hover .el-dot {
  animation: .35s ease-in-out el-nudge;
}

@keyframes el-nudge {
  0%, 100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ellipsis-icon .el-dot {
    animation: none !important;
  }
}

.refresh-icon {
  transform-origin: center;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

:is(a, button, .document-icon):hover .refresh-icon, .refresh-icon:hover {
  transform: rotate(50deg);
}

@media (prefers-reduced-motion: reduce) {
  .refresh-icon {
    transition: none;
  }
}

.download-icon .dl-group {
  transform-box: view-box;
  transform-origin: 12px 12px;
}

.download-icon .dl-shaft {
  stroke-dasharray: 30;
}

.download-icon .dl-tray {
  stroke-dasharray: 60;
}

.download-icon .dl-head {
  transform-box: fill-box;
  transform-origin: center;
}

:is(a, button, .document-icon):hover .download-icon .dl-group, .download-icon:hover .dl-group {
  animation: .6s ease-in-out dl-pulse;
}

:is(a, button, .document-icon):hover .download-icon .dl-shaft, .download-icon:hover .dl-shaft {
  animation: .6s ease-in-out dl-shaft;
}

:is(a, button, .document-icon):hover .download-icon .dl-head, .download-icon:hover .dl-head {
  animation: .6s ease-in-out 50ms dl-head;
}

:is(a, button, .document-icon):hover .download-icon .dl-tray, .download-icon:hover .dl-tray {
  animation: .6s ease-in-out .1s backwards dl-tray;
}

@keyframes dl-pulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes dl-shaft {
  from {
    stroke-dashoffset: 30px;
    opacity: .4;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes dl-head {
  0% {
    opacity: .6;
    transform: translateY(-2px)scale(1);
  }

  50% {
    opacity: 1;
    transform: translateY(2px)scale(1.05);
  }

  100% {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

@keyframes dl-tray {
  from {
    stroke-dashoffset: 60px;
    opacity: .3;
  }

  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-icon .dl-group, .download-icon .dl-shaft, .download-icon .dl-head, .download-icon .dl-tray {
    animation: none !important;
  }
}

.check-icon .ck-tick {
  stroke-dasharray: 1;
  transform-box: fill-box;
  transform-origin: center;
}

:is(a, button, .document-icon, label):hover .check-icon .ck-tick, .check-icon:hover .ck-tick {
  animation: .4s ease-out ck-draw;
}

@keyframes ck-draw {
  0% {
    stroke-dashoffset: 1px;
    opacity: 0;
    transform: scale(.5);
  }

  25% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .check-icon .ck-tick {
    animation: none !important;
  }
}

.not-found {
  text-align: center;
  background: var(--bg);
  min-height: 100dvh;
  color: var(--text);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  display: flex;
}

.not-found-title {
  font-family: var(--font-display);
  letter-spacing: -.02em;
  margin-bottom: -18px;
  font-size: clamp(96px, 22vw, 160px);
  line-height: 1;
  -webkit-mask-image: linear-gradient(#000 20%, #0000 80%);
  mask-image: linear-gradient(#000 20%, #0000 80%);
}

.not-found h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.not-found p {
  max-width: 420px;
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.not-found-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  display: flex;
}

.layout-grid-icon .lg-tile {
  transform-box: view-box;
}

:is(a, button, .document-icon):hover .layout-grid-icon .lg-1, .layout-grid-icon:hover .lg-1 {
  animation: .8s ease-in-out lg-right;
}

:is(a, button, .document-icon):hover .layout-grid-icon .lg-2, .layout-grid-icon:hover .lg-2 {
  animation: .8s ease-in-out lg-down;
}

:is(a, button, .document-icon):hover .layout-grid-icon .lg-3, .layout-grid-icon:hover .lg-3 {
  animation: .8s ease-in-out lg-left;
}

:is(a, button, .document-icon):hover .layout-grid-icon .lg-4, .layout-grid-icon:hover .lg-4 {
  animation: .8s ease-in-out lg-up;
}

@keyframes lg-right {
  0%, 100% {
    transform: translateX(0);
  }

  40%, 60% {
    transform: translateX(11px);
  }
}

@keyframes lg-down {
  0%, 100% {
    transform: translateY(0);
  }

  40%, 60% {
    transform: translateY(11px);
  }
}

@keyframes lg-left {
  0%, 100% {
    transform: translateX(0);
  }

  40%, 60% {
    transform: translateX(-11px);
  }
}

@keyframes lg-up {
  0%, 100% {
    transform: translateY(0);
  }

  40%, 60% {
    transform: translateY(-11px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .layout-grid-icon .lg-tile {
    animation: none !important;
  }
}

.search-icon .sr-lens {
  transform-box: view-box;
  transform-origin: 11px 11px;
}

:is(a, button, label, .document-icon, .search-dialog-input, .calendar-toolbar > span):hover .search-icon .sr-lens, .search-icon:hover .sr-lens {
  animation: 1.2s ease-in-out sr-scan;
}

@keyframes sr-scan {
  0%, 100% {
    transform: translate(0)rotate(0);
  }

  25% {
    transform: translate(2px, -1px)rotate(6deg);
  }

  50% {
    transform: translate(-2px, 2px)rotate(-6deg);
  }

  75% {
    transform: translate(1px, -1px)rotate(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-icon .sr-lens {
    animation: none !important;
  }
}

.install-banner {
  border: 1px solid var(--line);
  background: var(--sidebar);
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  display: flex;
}

.install-banner > div {
  flex: 1;
  gap: 2px;
  min-width: 0;
  display: grid;
}

.install-banner strong {
  font-size: 13px;
}

.install-banner span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.install-banner .install-hint {
  color: var(--text);
  display: flex;
}

.install-gate {
  text-align: center;
  max-width: 460px;
  margin: 40px auto;
  padding: 0 16px;
}

.install-gate h1 {
  margin: 0 0 10px;
  font-size: 22px;
}

.install-gate > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.install-guide {
  text-align: left;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.install-guide li {
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
}

.install-guide li > svg {
  color: var(--brand-hover);
  flex-shrink: 0;
  margin-top: 2px;
}

.install-guide p, .install-note {
  color: var(--muted);
  font-size: 13px;
}

.install-confirmed {
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  display: flex;
}

@media (max-width: 600px) {
  .login-screen:has(.login-card.wide) {
    min-height: 100dvh;
  }

  .login-card.wide {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    padding: calc(16px + env(safe-area-inset-top)) 16px 0;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    flex-direction: column;
    margin: 0;
    display: flex;
  }

  .login-card.wide .welcome-logo {
    width: 140px;
    margin-bottom: 8px;
  }

  .login-card.wide h1 {
    letter-spacing: -.5px;
    margin-bottom: 8px;
    font-size: 22px;
  }

  .login-card.wide .steps {
    gap: 8px;
    margin: 6px 0 16px;
    font-size: 13px;
  }

  .login-card.wide .steps li:not(.current) {
    gap: 0;
    font-size: 0;
  }

  .login-card.wide .steps li span {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .login-card.wide form {
    flex-direction: column;
    flex: 1;
    display: flex;
  }

  .login-card.wide form section > label {
    margin: 12px 0;
    font-size: 13px;
  }

  .login-card.wide form input {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 16px;
  }

  .login-card.wide form section > p {
    font-size: 14px;
    line-height: 1.55;
  }

  .login-card.wide .contract-scroll.tall {
    height: calc(100dvh - 300px);
    min-height: 320px;
    max-height: none;
    padding: 10px;
  }

  .login-card.wide .contract-fab {
    justify-content: stretch;
    padding-top: 10px;
  }

  .login-card.wide .contract-fab .button {
    justify-content: center;
    width: 100%;
    min-height: 46px;
    font-size: 15px;
  }

  .login-card.wide .step-actions {
    z-index: 2;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--c-ffffff);
    border-top: 1px solid var(--line);
    margin: auto -16px 0;
    position: sticky;
    bottom: 0;
  }

  .login-card.wide .step-actions .button {
    min-height: 46px;
    font-size: 15px;
  }

  .login-card.wide .step-actions .button.blue {
    flex: 1;
    margin-top: 0;
  }

  .login-card.wide .agenda-step {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .login-card.wide .agenda-step .button {
    justify-content: center;
    width: 100%;
    min-height: 46px;
  }

  .login-card.wide .install-guide li, .login-card.wide .form-error {
    font-size: 14px;
  }

  .sign-dialog {
    border-radius: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    position: fixed;
    inset: 0;
    overflow: auto;
  }

  .sign-dialog-body {
    min-height: 100%;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    flex-direction: column;
    display: flex;
  }

  .sign-dialog .signature-pad canvas {
    height: 240px;
  }

  .sign-dialog .consent {
    margin: 10px 0 auto;
    font-size: 14px;
  }

  .sign-dialog .sign-actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 16px;
  }

  .sign-dialog .sign-actions .button {
    justify-content: center;
    width: 100%;
    min-height: 46px;
    font-size: 15px;
  }

  .sign-dialog .sign-modes button {
    min-height: 40px;
  }
}

.logout-icon .lo-door, .logout-icon .lo-shaft, .logout-icon .lo-head {
  stroke-dasharray: 1;
}

:is(a, button, .document-icon):hover .logout-icon .lo-door, .logout-icon:hover .lo-door {
  animation: .4s linear lo-draw;
}

:is(a, button, .document-icon):hover .logout-icon .lo-shaft, .logout-icon:hover .lo-shaft {
  animation: .2s linear .5s backwards lo-draw;
}

:is(a, button, .document-icon):hover .logout-icon .lo-head, .logout-icon:hover .lo-head {
  animation: .2s linear .7s backwards lo-draw;
}

@keyframes lo-draw {
  from {
    stroke-dashoffset: 1px;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logout-icon .lo-door, .logout-icon .lo-shaft, .logout-icon .lo-head {
    animation: none !important;
  }
}

.app-shell:has(.portal-tabs) .calendar-date {
  font-family: var(--font-display);
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 400;
}

.app-shell:has(.portal-tabs) .calendar-toolbar strong {
  font-family: var(--font-display);
  font-weight: 400;
}

.app-shell:has(.portal-tabs) .week-num {
  font-family: var(--font-display);
  font-weight: 400;
}

.app-shell:has(.portal-tabs) .portal-project h3 .tag {
  font-family: var(--font-display);
  font-weight: 400;
}

.app-shell:has(.portal-tabs) .week-num {
  font-size: 19px;
}

.portal-metrics {
  margin: 4px 0 18px;
}

.portal-metrics > a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 700px) {
  .portal-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 14px 0;
  }

  .portal-metrics > a {
    padding: 2px 12px;
  }
}

.greeting {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.greeting img {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
}

.greeting .emoji-hover {
  display: none;
}

.greeting:hover .emoji-rest:has( + .emoji-hover) {
  display: none;
}

.greeting:hover .emoji-hover {
  display: block;
}

button.catalog-card {
  text-align: left;
  font: inherit;
  cursor: zoom-in;
}

.lightbox {
  color: #fff;
  background: none;
  border: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  display: flex;
}

.lightbox:not([open]) {
  display: none;
}

.lightbox::backdrop {
  background: #000000e0;
}

.lightbox img, .lightbox canvas {
  object-fit: contain;
  border-radius: 6px;
  max-width: min(92vw, 900px);
  max-height: 78dvh;
  box-shadow: 0 12px 40px #00000080;
}

.lightbox canvas {
  cursor: crosshair;
}

.color-dot {
  vertical-align: -1px;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  display: inline-block;
}

.lightbox p {
  text-align: center;
  margin: 0;
  padding: 0 16px;
  font-size: 14px;
}

.lightbox-close {
  top: calc(12px + env(safe-area-inset-top));
  color: #fff;
  background: #ffffff1f;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  position: fixed;
  right: 12px;
}

.anti-button.large {
  border-radius: 10px;
  height: 46px;
  padding: 0 16px 0 58px;
  font-size: 14px;
}

.anti-button.large .anti-tab {
  border-radius: 7px;
  width: 40px;
  padding: 0 10px 0 12px;
}

.anti-button:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 600px) {
  .job-offer .anti-button {
    width: 100%;
  }
}

.offer-actions {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
}

@media (max-width: 600px) {
  .offer-actions .anti-button {
    width: 100%;
  }
}

.slide-button {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  width: 100%;
  max-width: 360px;
  padding-left: 58px;
}

.slide-button .anti-label {
  text-align: center;
  flex: 1;
  padding-right: 40px;
}

.slide-button.done .anti-label {
  z-index: 2;
  position: relative;
}

.slide-button:hover .anti-tab, .slide-button:focus-visible .anti-tab {
  width: 40px;
}

.slide-button .slide-handle {
  cursor: grab;
  touch-action: none;
  justify-content: flex-start;
  transition: width .3s cubic-bezier(.65, 0, .35, 1);
}

.slide-button.dragging .slide-handle {
  cursor: grabbing;
  transition: none;
}

.slide-button.done {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-hover) 100%);
  color: var(--brand-ink);
}

.slide-button .anti-chevron {
  transition: opacity .2s;
}

.slide-button.done .anti-chevron {
  opacity: 0;
}

.slide-button[aria-disabled="true"]:not(.done) {
  opacity: .55;
}

.slide-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.week-mobile {
  display: none;
}

@media (max-width: 600px) {
  .week-strip {
    display: none;
  }

  .week-mobile {
    margin: 0 0 16px;
    display: block;
  }

  .week-pills {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    display: grid;
  }

  .week-pill {
    border: 1px solid var(--line);
    background: var(--c-ffffff);
    color: var(--text);
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 0 6px;
    display: flex;
  }

  .week-pill .week-name {
    font-size: 10px;
  }

  .week-pill .week-num {
    font-size: 17px;
  }

  .week-pill.is-today .week-num {
    color: var(--c-2383e2);
  }

  .week-pill.selected {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brand-ink);
  }

  .week-pill.selected .week-name, .week-pill.selected .week-num {
    color: var(--brand-ink);
  }

  .week-dots {
    gap: 3px;
    height: 6px;
    display: flex;
  }

  .week-dots i {
    background: var(--c-597d9c);
    border-radius: 50%;
    width: 6px;
    height: 6px;
  }

  .week-dots i.event-measurement {
    background: #2e7d4f;
  }

  .week-dots i.event-job, .week-dots i.event-open {
    background: #c0392b;
  }

  .week-pill.selected .week-dots i {
    background: var(--brand-ink);
  }

  .week-heading {
    margin: 12px 0 8px;
    font-size: 13px;
    font-weight: 600;
  }

  .week-heading:first-letter {
    text-transform: uppercase;
  }

  .week-agenda {
    gap: 6px;
    display: grid;
  }

  .week-chip.week-row {
    white-space: normal;
    border-radius: 8px;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
    display: flex;
  }

  .week-chip.week-row small {
    text-transform: uppercase;
    letter-spacing: .4px;
    opacity: .8;
    font-size: 11px;
    font-weight: 600;
  }

  .week-empty {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
  }
}

.calendar-agenda {
  display: none;
}

@media (max-width: 700px) {
  .calendar-agenda {
    margin: 14px 0 0;
    display: block;
  }

  .calendar-day.is-selected {
    background: var(--brand);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .calendar-day.is-selected {
      background: color-mix(in srgb, var(--brand) 18%, var(--c-ffffff));
    }
  }

  .calendar-day.is-selected .calendar-date:not(.is-today) {
    background: var(--brand);
    color: var(--brand-ink);
  }

  .calendar-agenda .week-heading {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
  }

  .calendar-agenda .week-heading:first-letter {
    text-transform: uppercase;
  }

  .calendar-agenda .week-agenda {
    gap: 6px;
    display: grid;
  }

  .calendar-agenda .week-chip.week-row {
    white-space: normal;
    text-align: left;
    border: 0;
    border-radius: 8px;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
    display: flex;
  }

  .calendar-agenda .week-chip.week-row small {
    text-transform: uppercase;
    letter-spacing: .4px;
    opacity: .8;
    font-size: 11px;
    font-weight: 600;
  }

  .calendar-agenda .week-empty {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
  }
}

.catalog-count {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  align-items: baseline;
  gap: 4px;
  display: inline-flex;
}

.catalog-count strong {
  font-weight: 600;
}

@media (max-width: 700px) {
  .app-shell:has(.portal-tabs) .payroll-table {
    white-space: normal;
    width: 100%;
    display: block;
    overflow: visible;
  }

  .app-shell:has(.portal-tabs) .payroll-table tbody {
    white-space: normal;
    width: 100%;
    display: block;
    overflow: visible;
  }

  .app-shell:has(.portal-tabs) .payroll-table td:first-child {
    background: none;
    position: static;
  }

  .app-shell:has(.portal-tabs) .payroll-table thead {
    display: none;
  }

  .app-shell:has(.portal-tabs) .payroll-table tr {
    border: 1px solid var(--line);
    background: var(--c-ffffff);
    border-radius: 10px;
    gap: 6px;
    margin: 0 0 10px;
    padding: 12px 14px;
    display: grid;
  }

  .app-shell:has(.portal-tabs) .payroll-table td {
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    border: 0;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    padding: 0;
    font-size: 14px;
    display: flex;
  }

  .app-shell:has(.portal-tabs) .payroll-table td:before {
    content: attr(data-label);
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--muted);
    text-align: left;
    flex-shrink: 0;
    font-size: 11px;
  }

  .app-shell:has(.portal-tabs) .payroll-table td.payroll-detail {
    font-size: 13px;
    line-height: 1.45;
  }

  .app-shell:has(.portal-tabs) .payroll-table td.numeric {
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    margin-top: 4px;
    padding-top: 8px;
    font-size: 18px;
  }

  .app-shell:has(.portal-tabs) .payroll-table td.numeric:before {
    font-family: var(--font);
  }
}

.account-tabs {
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 0 26px;
  margin: 0 0 20px;
  display: flex;
}

.account-tabs .database-tab {
  min-height: 42px;
  color: var(--secondary);
  white-space: nowrap;
  border-bottom: 2px solid #0000;
  flex-shrink: 0;
  margin-bottom: -1px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 500;
}

.account-tabs .database-tab:hover {
  color: var(--text);
}

.account-tabs .database-tab.active {
  color: var(--text);
  border-bottom-color: var(--brand);
}

@media (max-width: 600px) {
  .account-tabs {
    gap: 0 20px;
  }

  .account-tabs .database-tab {
    min-height: 44px;
    font-size: 14px;
  }

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

  .google-card .pay-text {
    flex: calc(100% - 42px);
  }

  .google-card .google-actions, .google-card > .button {
    flex: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .google-card .google-actions .button {
    flex: 1;
    justify-content: center;
    min-height: 44px;
  }
}

.invoice-card {
  border: 1px solid var(--line);
  background: var(--sidebar);
  border-radius: 10px;
  gap: 12px;
  margin: 4px 0 22px;
  padding: 16px;
  display: grid;
}

.invoice-card.is-friday {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

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

.invoice-head > div {
  gap: 4px;
  display: grid;
}

.invoice-head strong {
  font-size: 15px;
}

.invoice-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.invoice-total {
  font-family: var(--font-display);
  white-space: nowrap;
  font-size: 24px;
  font-weight: 400;
}

.invoice-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.invoice-actions .button {
  cursor: pointer;
  text-overflow: ellipsis;
  max-width: 100%;
  min-height: 42px;
  overflow: hidden;
}

.invoice-notes {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
}

.invoice-list {
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
  display: grid;
}

.invoice-list a {
  color: var(--text);
}

@media (max-width: 600px) {
  .invoice-head {
    flex-direction: column;
  }

  .invoice-actions .button {
    flex: 1;
    justify-content: center;
  }
}

.invoice-banner {
  color: inherit;
  text-decoration: none;
}

.invoice-banner > svg {
  color: var(--brand-hover);
  flex-shrink: 0;
}

.invoice-banner.is-friday {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

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

.checkbox-list .checkbox-value {
  padding: 4px 8px;
}

.panel-property .link-button {
  margin: 0 8px 6px;
  font-size: 12px;
}

.qr-form {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.qr-form > div {
  grid-column: 1 / -1;
  gap: 8px;
  display: flex;
}

.qr-thumb {
  background: #fff;
  border-radius: 4px;
  display: block;
}

.qr-table td:first-child {
  width: 64px;
}

.qr-target {
  color: inherit;
  word-break: break-all;
}

.qr-actions {
  white-space: nowrap;
}

.qr-actions .icon-button {
  font-size: 10px;
  font-weight: 600;
}

.portfolio-thumb {
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 72px;
  height: 54px;
  display: block;
}

.portfolio-thumb.portfolio-none {
  color: var(--muted);
  place-items: center;
  display: grid;
}

.portfolio-table tr.portfolio-hidden td {
  opacity: .5;
}

.portfolio-images {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  display: grid;
}

.portfolio-image h3 {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
}

.portfolio-image > img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 100%;
}

.portfolio-image > div {
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.portfolio-pick button {
  cursor: pointer;
  background: none;
  border: 2px solid #0000;
  border-radius: 8px;
  padding: 0;
}

.portfolio-pick button.selected {
  border-color: var(--brand);
}

.settings-form label.portfolio-published {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

@media (max-width: 700px) {
  .portfolio-images {
    grid-template-columns: 1fr;
  }
}

.blog-table td a {
  color: inherit;
  text-decoration: none;
}

.blog-table td a:hover strong {
  text-decoration: underline;
}

.blog-editor {
  width: 100%;
  padding-bottom: 30vh;
}

.blog-editor-bar {
  z-index: 30;
  background: var(--c-fffffff5);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  display: flex;
  position: sticky;
  top: 46px;
}

.blog-editor-spacer {
  flex: 1;
}

.blog-lang {
  background: var(--hover);
  border-radius: 6px;
  padding: 2px;
  display: flex;
}

.blog-lang button {
  color: var(--secondary);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
}

.blog-lang button.active {
  background: var(--c-ffffff);
  color: var(--text);
  box-shadow: 0 1px 2px var(--c-00000015);
}

.blog-cover {
  height: 30vh;
  min-height: 180px;
  max-height: 320px;
  position: relative;
}

.blog-cover > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.blog-cover > div {
  opacity: 0;
  gap: 6px;
  transition: opacity .15s;
  display: flex;
  position: absolute;
  bottom: 12px;
  right: 20px;
}

.blog-cover:hover > div, .blog-cover:focus-within > div {
  opacity: 1;
}

.blog-cover .button {
  background: var(--c-ffffff);
}

.blog-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 54px 0;
}

.blog-add {
  color: var(--muted);
  border-radius: 4px;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px -6px;
  padding: 4px 6px;
  font-size: 13px;
  display: inline-flex;
}

.blog-add:hover {
  background: var(--hover);
  color: var(--secondary);
}

.blog-title, .blog-excerpt {
  resize: none;
  field-sizing: content;
  background: none;
  border: 0;
  width: 100%;
  font-family: inherit;
  display: block;
}

.blog-title {
  letter-spacing: -1px;
  margin-bottom: 6px;
  font-size: 40px;
  line-height: 1.2;
}

.blog-excerpt {
  color: var(--secondary);
  margin-bottom: 18px;
  padding: 4px 0;
  font-size: 16px;
  line-height: 1.6;
}

.blog-excerpt:focus {
  outline: 0;
}

.blog-excerpt::placeholder {
  color: var(--c-c9c8c3);
}

.blog-note {
  color: var(--muted);
  margin: 8px 0 14px;
  font-size: 12px;
  line-height: 1.6;
}

.blog-seo .off {
  color: var(--c-b5804c);
}

.blog-ai {
  border: 1px solid var(--line);
  background: var(--hover);
  border-radius: 10px;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
  padding: 16px 18px;
  display: flex;
}

.blog-ai h3 {
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}

.blog-ai h3 > svg {
  color: var(--brand-hover);
}

.blog-ai .blog-note {
  margin: 0 0 4px;
}

.blog-ai input, .blog-ai textarea {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  color: inherit;
  resize: vertical;
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

.blog-ai .blog-engine {
  background: var(--c-ffffff);
  border: 1px solid var(--line);
  align-self: flex-start;
  margin: 0;
}

.blog-engine button {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.blog-engine button.active {
  background: var(--hover);
  box-shadow: none;
}

.blog-ai ul {
  flex-direction: column;
  gap: 2px;
  margin: 2px 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.blog-ai li button {
  text-align: left;
  border-radius: 6px;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  display: flex;
}

.blog-ai li button:hover {
  background: var(--c-ffffff);
}

.blog-ai li small {
  color: var(--muted);
  flex-shrink: 0;
}

.blog-ai > div {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  display: flex;
}

.blog-page .panel-properties {
  margin-bottom: 18px;
}

.blog-body.bn-container, .blog-body.bn-container[data-color-scheme] {
  --bn-colors-editor-background: transparent;
  --bn-colors-editor-text: var(--text);
  --bn-font-family: var(--font);
  min-height: 240px;
  margin: 0 -54px;
}

.blog-body .bn-editor {
  padding-inline: 54px;
  font-size: 15px;
  line-height: 1.7;
}

.blog-body .bn-default-styles {
  font-family: var(--font);
}

.blog-body [data-content-type="heading"] {
  --level: 1.6em;
  letter-spacing: -.3px;
}

.blog-body [data-content-type="heading"][data-level="3"] {
  --level: 1.25em;
}

.blog-body-loading {
  min-height: 240px;
  color: var(--muted);
  font-size: 14px;
}

.blog-google {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 18px;
}

.blog-google > summary {
  cursor: pointer;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  display: flex;
}

.blog-google > summary::-webkit-details-marker {
  display: none;
}

.blog-google > summary > svg {
  color: var(--muted);
}

.blog-google .panel-properties {
  border-bottom: 0;
  padding-bottom: 6px;
}

.blog-faq-item {
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  gap: 2px 6px;
  padding: 8px 0;
  display: grid;
}

.blog-faq-item input, .blog-faq-item textarea {
  color: inherit;
  background: none;
  border: 0;
  padding: 4px 0;
  font-family: inherit;
}

.blog-faq-item input {
  font-size: 14px;
  font-weight: 600;
}

.blog-faq-item textarea {
  color: var(--secondary);
  resize: none;
  field-sizing: content;
  grid-column: 1;
  font-size: 13px;
  line-height: 1.6;
}

.blog-faq-item input:focus, .blog-faq-item textarea:focus {
  outline: 0;
}

@media (max-width: 700px) {
  .blog-page {
    padding: 22px 18px 0;
  }

  .blog-title {
    font-size: 30px;
  }

  .blog-body.bn-container {
    margin: 0 -18px;
  }

  .blog-body .bn-editor {
    padding-inline: 18px;
  }
}

:root[data-theme="dark"] {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #171717;
  --card-foreground: #fafafa;
  --popover: #171717;
  --popover-foreground: #fafafa;
  --primary: var(--brand);
  --primary-foreground: var(--brand-ink);
  --ui-secondary: #262626;
  --ui-secondary-foreground: #fafafa;
  --ui-muted: #262626;
  --ui-muted-foreground: #a1a1a1;
  --accent: #262626;
  --accent-foreground: #fafafa;
  --destructive: #ff6568;
  --border: #ffffff1a;
  --input: #ffffff26;
  --ring: var(--brand);
  --chart-1: #d4d4d4;
  --chart-2: #737373;
  --chart-3: #525252;
  --chart-4: #404040;
  --chart-5: #262626;
  --sidebar: #171717;
  --sidebar-foreground: #fafafa;
  --sidebar-primary: #1447e6;
  --sidebar-primary-foreground: #fafafa;
  --sidebar-accent: #262626;
  --sidebar-accent-foreground: #fafafa;
  --sidebar-border: #ffffff1a;
  --sidebar-ring: #737373;
}

@supports (color: lab(0% 0 0)) {
  :root[data-theme="dark"] {
    --background: lab(2.75381% 0 0);
    --foreground: lab(98.26% 0 0);
    --card: lab(7.78201% -.0000149012 0);
    --card-foreground: lab(98.26% 0 0);
    --popover: lab(7.78201% -.0000149012 0);
    --popover-foreground: lab(98.26% 0 0);
    --ui-secondary: lab(15.204% 0 -.00000596046);
    --ui-secondary-foreground: lab(98.26% 0 0);
    --ui-muted: lab(15.204% 0 -.00000596046);
    --ui-muted-foreground: lab(66.128% -.0000298023 .0000119209);
    --accent: lab(15.204% 0 -.00000596046);
    --accent-foreground: lab(98.26% 0 0);
    --destructive: lab(63.7053% 60.745 31.3109);
    --border: lab(100% 0 0 / .1);
    --input: lab(100% 0 0 / .15);
    --chart-1: lab(84.92% 0 -.0000119209);
    --chart-2: lab(48.496% 0 0);
    --chart-3: lab(34.924% 0 0);
    --chart-4: lab(27.036% 0 0);
    --chart-5: lab(15.204% 0 -.00000596046);
    --sidebar: lab(7.78201% -.0000149012 0);
    --sidebar-foreground: lab(98.26% 0 0);
    --sidebar-primary: lab(36.9089% 35.0961 -85.6872);
    --sidebar-primary-foreground: lab(98.26% 0 0);
    --sidebar-accent: lab(15.204% 0 -.00000596046);
    --sidebar-accent-foreground: lab(98.26% 0 0);
    --sidebar-border: lab(100% 0 0 / .1);
    --sidebar-ring: lab(48.496% 0 0);
  }
}

.database-table .payroll-form-row .payroll-form, .payroll-upload {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
}

.payroll-upload {
  margin: 0 0 14px;
}

.payroll-form label.wide {
  grid-column: 1 / -1;
}

.payroll-form-actions {
  align-items: center;
}

.payroll-form-actions small {
  color: var(--muted);
  font-size: 11px;
}

.payroll-upload input[type="file"] {
  padding: 5px 8px;
}

@media (max-width: 900px) {
  .database-table .payroll-form-row .payroll-form, .payroll-upload {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .database-table .payroll-form-row .payroll-form, .payroll-upload {
    grid-template-columns: 1fr;
  }
}

.payroll-upload input[type="file"]::file-selector-button {
  border: 1px solid var(--line);
  background: var(--sidebar);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  border-radius: 5px;
  margin-right: 8px;
  padding: 4px 10px;
  font-size: 12px;
}

.mail-document .document-heading {
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
}

.mail-document .document-heading .document-icon, .mail-document .document-heading p {
  display: none;
}

.mail-document .document-heading h1 {
  margin: 0;
  font-size: 22px;
}

.mail-document {
  box-sizing: border-box;
  flex-direction: column;
  max-width: none;
  height: calc(100dvh - 46px);
  padding-bottom: 12px;
  display: flex;
  overflow: hidden;
}

.mail-app {
  flex: 1;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  display: grid;
}

.mail-nav {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.mail-compose-button {
  background: var(--brand);
  color: var(--brand-ink);
  cursor: pointer;
  box-shadow: 0 1px 3px var(--c-00000012, #0000001f);
  border: 0;
  border-radius: 16px;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px 22px 14px 18px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
}

.mail-compose-button:hover {
  background: var(--brand-hover);
}

.mail-folder {
  height: 34px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 0 17px 17px 0;
  align-items: center;
  gap: 14px;
  padding: 0 14px 0 18px;
  font-size: 14px;
  display: flex;
}

.mail-folder span {
  flex: 1;
}

.mail-folder:hover {
  background: var(--hover);
}

.mail-folder.selected {
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
}

.mail-folder.has-unread {
  font-weight: 700;
}

.mail-folder b {
  font-size: 12px;
}

.mail-main {
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.mail-toolbar {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 12px;
  display: flex;
}

.mail-search {
  background: var(--hover);
  max-width: 640px;
  height: 40px;
  color: var(--muted);
  border-radius: 20px;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  display: flex;
}

.mail-search input {
  min-width: 0;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 14px;
}

.mail-range {
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
  font-size: 12px;
}

.mail-rows {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.mail-rows li {
  border-bottom: 1px solid var(--line);
  position: relative;
}

.mail-rows li > button {
  width: 100%;
  height: 40px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto 72px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  font-size: 14px;
  display: grid;
}

.mail-rows li:hover > button {
  background: var(--hover);
  box-shadow: inset 0 -1px 0 var(--line);
}

.mail-row-from, .mail-row-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.mail-row-from svg {
  vertical-align: -1px;
  color: var(--muted);
  margin-left: 5px;
}

.mail-row-text small {
  color: var(--muted);
  font-size: 14px;
}

.mail-rows li.unread .mail-row-from, .mail-rows li.unread .mail-row-text > span, .mail-rows li.unread time {
  font-weight: 700;
}

.mail-row-count {
  color: var(--muted);
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
}

.mail-read-head h2 small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 13px;
  display: block;
}

.mail-message-subject {
  overflow-wrap: anywhere;
  margin: 0 0 10px 52px;
  font-size: 15px;
  font-weight: 600;
}

.mail-message.folded small b {
  color: var(--text);
  font-weight: 500;
}

.mail-row-clip {
  width: 13px;
  color: var(--muted);
}

.mail-rows time {
  color: var(--muted);
  justify-self: end;
  font-size: 12px;
}

.mail-rows li.unread time {
  color: var(--text);
}

.mail-row-actions {
  background: var(--hover);
  gap: 2px;
  display: none;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.mail-rows li:hover .mail-row-actions {
  display: flex;
}

.mail-empty {
  color: var(--muted);
  text-align: center;
  margin: 0;
  padding: 40px 16px;
}

.mail-more {
  align-self: center;
  margin: 10px;
}

.mail-read {
  flex-direction: column;
  flex: 1;
  gap: 0;
  min-height: 0;
  padding: 8px 24px 28px;
  display: flex;
  overflow-y: auto;
}

.mail-read-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0 16px;
  display: flex;
}

.mail-read-head h2 {
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 22px;
  font-weight: 400;
}

.mail-read-head .tag {
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.mail-message {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.mail-message header {
  cursor: default;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
  display: grid;
}

.mail-message header > span:nth-child(2) {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  font-size: 14px;
  display: flex;
}

.mail-message header small {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
}

.mail-recipients {
  flex-basis: 100%;
}

.mail-message header time {
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}

.mail-avatar {
  background: var(--brand);
  width: 40px;
  height: 40px;
  color: var(--brand-ink);
  border-radius: 50%;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  display: grid;
}

.mail-message > .mail-frame, .mail-message > .mail-text, .mail-message > .mail-attachments {
  width: calc(100% - 52px);
  margin-left: 52px;
}

.mail-message.folded {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
  grid-template-columns: 40px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  display: grid;
}

.mail-message.folded .mail-avatar {
  justify-self: center;
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.mail-message.folded small {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
}

.mail-message.folded time {
  color: var(--muted);
  font-size: 12px;
}

.mail-frame {
  background: #fff;
  border: 0;
  border-radius: 4px;
  height: 160px;
  display: block;
}

.mail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.mail-attachments {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
  display: flex;
}

.mail-attachments a {
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
}

.mail-attachments a:hover {
  background: var(--hover);
}

.mail-attachments small {
  color: var(--muted);
}

.mail-reply-bar {
  border-top: 1px solid var(--line);
  padding: 16px 0 0 52px;
}

.mail-reply-bar .button {
  border-radius: 18px;
  padding: 0 18px;
}

.mail-compose {
  background: var(--c-ffffff);
  border-radius: 12px;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0 0 52px;
  padding: 12px 16px;
  display: flex;
  box-shadow: 0 1px 3px #00000026, 0 4px 12px #00000014;
}

.mail-compose-to {
  color: var(--muted);
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 13px;
  display: flex;
}

.mail-compose label {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
}

.mail-compose label input {
  min-width: 0;
  height: 34px;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 14px;
}

.mail-compose textarea {
  field-sizing: content;
  resize: vertical;
  width: 100%;
  min-height: 160px;
  max-height: 55vh;
  color: var(--text);
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.mail-compose-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.mail-compose-actions > span {
  flex: 1;
}

.mail-send {
  border-radius: 18px;
  padding: 0 20px;
}

.mail-popup {
  z-index: 60;
  background: var(--c-ffffff);
  border-radius: 10px 10px 0 0;
  width: min(540px, 100vw - 32px);
  position: fixed;
  bottom: 0;
  right: 24px;
  overflow: hidden;
  box-shadow: 0 8px 28px #00000040;
}

.mail-popup header {
  background: #37352f;
  align-items: center;
  gap: 2px;
  padding: 4px 6px 4px 14px;
  display: flex;
}

.mail-popup header > button:first-child {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}

.mail-popup header .icon-button {
  color: #fff;
}

.mail-popup .mail-compose {
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .mail-document {
    height: auto;
    overflow: visible;
  }

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

  .mail-nav {
    flex-flow: row;
    gap: 4px;
    overflow-x: auto;
  }

  .mail-compose-button {
    white-space: nowrap;
    margin: 0;
    padding: 8px 14px;
  }

  .mail-folder {
    border-radius: 17px;
    flex: none;
    gap: 6px;
    padding: 0 12px;
  }

  .mail-document.reading .mail-nav, .mail-document.reading .document-heading {
    display: none;
  }

  .mail-main {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .mail-rows li > button {
    grid-template-rows: auto auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    height: auto;
    padding: 10px 4px;
  }

  .mail-row-text {
    grid-column: 1 / -1;
  }

  .mail-row-clip {
    display: none;
  }

  .mail-rows time {
    grid-area: 1 / 2;
  }

  .mail-row-actions {
    display: none !important;
  }

  .mail-read {
    padding: 4px 0 20px;
  }

  .mail-message > .mail-frame, .mail-message > .mail-text, .mail-message > .mail-attachments {
    width: 100%;
    margin-left: 0;
  }

  .mail-compose, .mail-message-subject, .mail-reply-bar {
    margin-left: 0;
    padding-left: 0;
  }

  .mail-compose {
    padding: 12px;
  }

  .mail-popup {
    width: 100vw;
    right: 0;
  }
}

.mail-document {
  background: var(--sidebar);
  color: var(--text);
  font-family: var(--font);
  gap: 16px;
  padding: 16px 20px 16px 12px;
}

.mail-topbar {
  align-items: center;
  gap: 20px;
  min-height: 48px;
  display: flex;
}

.mail-brand {
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  width: 220px;
  padding-left: 16px;
  display: flex;
}

.mail-brand > svg {
  color: var(--brand);
}

.mail-brand h1 {
  letter-spacing: -.5px;
  margin: 0;
  font-size: 23px;
  font-weight: 400;
}

.mail-topbar .mail-search {
  background: var(--hover);
  border-radius: 24px;
  max-width: 720px;
  height: 48px;
  padding: 0 10px;
}

.mail-search:focus-within {
  background: var(--c-ffffff);
  box-shadow: 0 1px 4px var(--c-00000015);
}

.mail-search input {
  font-size: 16px;
}

.mail-account {
  border: 4px solid var(--c-ffffff);
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  font-size: 16px;
  display: grid;
}

.mail-app {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}

.mail-nav {
  padding-top: 0;
}

.mail-compose-button {
  background: var(--brand);
  color: var(--brand-ink);
  min-height: 56px;
  box-shadow: none;
  border-radius: 16px;
  margin: 0 0 16px;
  font-weight: 500;
}

.mail-compose-button:hover {
  background: var(--brand-hover);
  box-shadow: 0 2px 5px var(--c-00000015);
}

.mail-folder {
  border-radius: 0 20px 20px 0;
  height: 34px;
  padding-left: 20px;
}

.mail-folder.selected {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .mail-folder.selected {
    background: color-mix(in srgb, var(--brand) 20%, var(--c-ffffff));
  }
}

.mail-folder.selected {
  color: var(--text);
}

.mail-main {
  background: var(--c-ffffff);
  border: 0;
  border-radius: 16px;
}

.mail-toolbar {
  border: 0;
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 16px;
}

.mail-document .icon-button {
  color: var(--secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

.mail-document .icon-button:hover {
  background: var(--hover);
}

.mail-document button:focus-visible, .mail-document input:focus-visible, .mail-document textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.mail-document button:disabled {
  opacity: .45;
  cursor: default;
}

.mail-select {
  appearance: auto;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin: 0 12px 0 0;
}

.mail-selection-count {
  color: var(--secondary);
  font-size: 12px;
}

.mail-folder-heading {
  min-height: 54px;
  color: var(--text);
  border-bottom: 3px solid var(--brand);
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-width: 230px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}

.mail-rows li {
  background: var(--sidebar);
  border-bottom: 1px solid var(--line);
  align-items: center;
  padding-left: 16px;
  display: flex;
}

.mail-rows li.unread {
  background: var(--c-ffffff);
}

.mail-rows li.is-selected {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .mail-rows li.is-selected {
    background: color-mix(in srgb, var(--brand) 24%, var(--c-ffffff));
  }
}

.mail-rows li > button {
  flex: 1;
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) auto 72px;
  gap: 14px;
  width: auto;
  min-width: 0;
  height: 44px;
  padding: 0 16px 0 0;
}

.mail-rows li:not(.unread) > button {
  background: none;
}

.mail-rows li:hover {
  box-shadow: inset 0 1px var(--line),
    inset 0 -1px var(--line),
    0 1px 3px var(--c-00000015);
  z-index: 1;
}

.mail-rows li:hover > button {
  box-shadow: none;
  background: none;
}

.mail-row-actions {
  background: var(--hover);
  align-items: center;
  height: 100%;
  padding: 0 8px;
}

.mail-rows li:focus-within .mail-row-actions {
  display: flex;
}

.mail-read {
  padding: 16px 28px 32px;
}

.mail-read-head {
  align-items: flex-start;
  margin-bottom: 26px;
}

.mail-read-head h2 {
  font-size: 23px;
  font-weight: 400;
  line-height: 1.4;
}

.mail-read-head h2 small {
  color: var(--secondary);
  margin-top: 8px;
  font-size: 12px;
}

.mail-avatar {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .mail-avatar {
    background: color-mix(in srgb, var(--brand) 20%, var(--c-ffffff));
  }
}

.mail-avatar {
  color: var(--text);
  width: 38px;
  height: 38px;
}

.mail-reply-bar .button {
  border-color: var(--line);
  border-radius: 22px;
  padding: 10px 24px;
}

.mail-compose {
  border-color: var(--line);
  background: var(--c-ffffff);
  border-radius: 12px;
}

.mail-compose textarea {
  color: var(--text);
  background: var(--c-ffffff);
}

.mail-document .mail-send {
  background: var(--brand);
  color: var(--brand-ink);
  border: 0;
  border-radius: 24px;
  padding: 10px 22px;
}

.mail-popup {
  background: var(--c-ffffff);
  width: min(580px, 100vw - 32px);
  box-shadow: 0 8px 30px var(--c-00000033);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
}

.mail-popup header {
  background: var(--sidebar);
  padding: 8px 12px 8px 16px;
}

.mail-popup header > button:first-child, .mail-popup header .icon-button {
  color: var(--text);
}

.mail-popup .mail-compose textarea {
  min-height: 260px;
}

.mail-empty {
  color: var(--secondary);
  text-align: center;
  padding: 48px 20px;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .mail-app {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 12px;
  }

  .mail-brand {
    width: 185px;
  }

  .mail-compose-button {
    padding: 14px;
  }

  .mail-rows li > button {
    grid-template-columns: 130px minmax(0, 1fr) auto 66px;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .mail-document {
    gap: 12px;
    height: calc(100dvh - 60px);
    min-height: 440px;
    padding: 12px 8px;
    overflow: hidden;
  }

  .mail-topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mail-brand {
    width: auto;
    padding-left: 4px;
  }

  .mail-brand h1 {
    font-size: 20px;
  }

  .mail-topbar .mail-search {
    flex-basis: 100%;
    order: 3;
    max-width: none;
    height: 44px;
  }

  .mail-search input {
    font-size: 14px;
  }

  .mail-app {
    flex-direction: column;
    gap: 12px;
    display: flex;
  }

  .mail-nav {
    flex-shrink: 0;
    padding-bottom: 2px;
  }

  .mail-compose-button {
    min-height: 36px;
    margin: 0;
    padding: 8px 12px;
  }

  .mail-folder {
    padding: 0 12px;
  }

  .mail-main {
    border-radius: 12px;
    flex: 1;
    overflow: hidden;
  }

  .mail-toolbar {
    gap: 2px;
    padding: 0 10px;
  }

  .mail-toolbar .mail-select {
    margin-right: 4px;
  }

  .mail-folder-heading {
    min-height: 44px;
    padding: 12px 18px;
  }

  .mail-rows li {
    padding-left: 12px;
  }

  .mail-rows li > button {
    grid-template-rows: auto auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    height: 72px;
    padding: 10px 12px 10px 0;
  }

  .mail-row-text {
    grid-area: 2 / 1 / auto / -1;
  }

  .mail-rows time {
    grid-area: 1 / 2;
  }

  .mail-read {
    padding: 16px;
  }

  .mail-read-head {
    flex-wrap: wrap;
    gap: 12px;
  }

  .mail-read-head h2 {
    font-size: 21px;
  }

  .mail-message header {
    flex-wrap: wrap;
  }

  .mail-message header time {
    font-size: 11px;
  }

  .mail-popup {
    width: 100%;
    max-height: calc(100dvh - 24px);
    right: 0;
  }

  .mail-popup .mail-compose textarea {
    min-height: 180px;
  }
}

.mail-document input.mail-select {
  margin: 0 16px 0 0;
}

@media (max-width: 900px) {
  .mail-document input.mail-select {
    margin-right: 12px;
  }
}

.mail-folder.child {
  padding-left: 40px;
}

.mail-folder.child svg {
  width: 14px;
  height: 14px;
}

.mail-address, .mail-move {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  max-width: 220px;
  height: 32px;
  color: var(--text);
  cursor: pointer;
  border-radius: 16px;
  padding: 0 8px;
  font-size: 13px;
}

.mail-row-account {
  background: var(--hover);
  color: var(--muted);
  vertical-align: 1px;
  border-radius: 4px;
  margin-right: 8px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 18px;
  display: inline-block;
}

.mail-compose label select {
  min-width: 0;
  height: 34px;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  font-size: 14px;
}

@media (max-width: 900px) {
  .mail-folder.child {
    padding-left: 12px;
  }

  .mail-address {
    max-width: 150px;
  }
}

.mail-businesses {
  background: var(--hover);
  border-radius: 20px;
  flex: none;
  gap: 2px;
  padding: 3px;
  display: inline-flex;
}

.mail-businesses button {
  height: 32px;
  color: var(--secondary);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: 16px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}

.mail-businesses button.selected {
  background: var(--c-ffffff);
  color: var(--text);
  box-shadow: 0 1px 2px #0000001f;
}

.mail-row-folder {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .mail-row-folder {
    background: color-mix(in srgb, var(--brand) 18%, transparent);
  }
}

.mail-row-folder {
  color: var(--text);
}

@media (max-width: 900px) {
  .mail-businesses {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}

.mail-frame {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light only;
}

.mail-signature-note {
  color: var(--muted);
  font-size: 12px;
}

.mail-rows li {
  background: var(--text);
}

@supports (color: color-mix(in lab, red, red)) {
  .mail-rows li {
    background: color-mix(in srgb, var(--text) 5%, var(--c-ffffff));
  }
}

.mail-rows li:not(.unread) .mail-row-from, .mail-rows li:not(.unread) .mail-row-text > span {
  color: var(--secondary);
  font-weight: 400;
}

.mail-rows li:not(.unread) .mail-row-text small, .mail-rows li:not(.unread) time {
  color: var(--muted);
}

.mail-rows li.unread {
  background: var(--c-ffffff);
  box-shadow: inset 4px 0 var(--brand);
}

.mail-rows li.unread .mail-row-from, .mail-rows li.unread .mail-row-text > span, .mail-rows li.unread time {
  color: var(--text);
  font-weight: 700;
}

.mail-rows li.unread .mail-row-text small {
  color: var(--secondary);
}

.mail-rows li.unread .mail-row-from:before {
  content: "";
  background: var(--brand-hover);
  vertical-align: 1px;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  display: inline-block;
}

.mail-rows li.unread:hover {
  box-shadow: inset 4px 0 var(--brand),
    inset 0 1px var(--line),
    inset 0 -1px var(--line),
    0 1px 3px var(--c-00000015);
}

.mail-rows li.is-selected {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .mail-rows li.is-selected {
    background: color-mix(in srgb, var(--brand) 24%, var(--c-ffffff));
  }
}

.mail-frame {
  background: none;
  border-radius: 0;
}

.mail-frame.dark {
  filter: invert() hue-rotate(180deg);
}

.mail-quote {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: var(--hover);
  color: var(--secondary);
  border-radius: 6px;
  margin: 14px 0 4px 52px;
  padding: 8px 14px;
}

.mail-quote > summary {
  cursor: pointer;
  color: var(--muted);
  -webkit-user-select: none;
  user-select: none;
  font-size: 12px;
}

.mail-quote[open] > summary {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .mail-quote {
    margin-left: 0;
  }
}

dialog.mail-rules {
  background: var(--c-ffffff);
  width: min(820px, 100vw - 32px);
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 64px);
  color: var(--text);
  border: 0;
  border-radius: 14px;
  margin: auto;
  padding: 0;
  position: fixed;
  inset: 0;
  overflow: auto;
  box-shadow: 0 12px 40px #0000004d;
}

dialog.mail-rules::backdrop {
  background: #00000059;
}

.mail-rules > header {
  border-bottom: 1px solid var(--line);
  background: var(--c-ffffff);
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  display: flex;
  position: sticky;
  top: 0;
}

.mail-rules h2 {
  margin: 0;
  font-size: 18px;
}

.mail-rules section {
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
}

.mail-rules h3 {
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 15px;
  display: flex;
}

.mail-rules p {
  color: var(--secondary);
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
}

.mail-rule-list {
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
}

.mail-rule-list li {
  grid-template-columns: 170px minmax(0, 1fr) 130px 180px auto auto;
  align-items: center;
  gap: 6px;
  display: grid;
}

.mail-rule-list select, .mail-rule-list input {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  min-width: 0;
  height: 34px;
  color: var(--text);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 13px;
}

.mail-rules-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.mail-rules-actions > span {
  flex: 1;
}

.mail-filters {
  color: var(--secondary);
  margin-top: 10px;
}

@media (max-width: 760px) {
  .mail-rule-list li {
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr 1fr;
    padding-bottom: 8px;
  }
}

dialog.portfolio-wizard {
  border-radius: 14px;
  width: min(720px, 100vw - 32px);
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 48px);
  margin: auto;
  position: fixed;
  inset: 0;
  overflow: hidden;
  box-shadow: 0 12px 40px #0000004d;
}

dialog.portfolio-wizard::backdrop {
  background: #00000059;
}

.portfolio-wizard > form {
  flex-direction: column;
  max-height: calc(100dvh - 48px);
  display: flex;
}

.portfolio-wizard header, .portfolio-wizard footer {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  display: flex;
}

.portfolio-wizard header {
  border-bottom: 1px solid var(--line);
}

.portfolio-wizard header h2 {
  margin: 0;
  font-size: 17px;
}

.portfolio-wizard footer {
  border-top: 1px solid var(--line);
}

.wizard-steps {
  gap: 4px;
  margin: 0;
  padding: 12px 20px;
  list-style: none;
  display: flex;
  overflow-x: auto;
}

.wizard-steps li {
  flex: 1;
  min-width: max-content;
}

.wizard-steps button {
  width: 100%;
  color: var(--secondary);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  font-size: 13px;
  display: flex;
}

.wizard-steps button:disabled {
  cursor: default;
  opacity: .5;
}

.wizard-steps button span {
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  display: inline-grid;
}

.wizard-steps button.active {
  background: var(--c-f0f0ed);
  color: var(--text);
  font-weight: 600;
}

.wizard-steps button.active span, .wizard-steps button.done span {
  border-color: var(--text);
  background: var(--text);
  color: var(--c-ffffff);
}

.portfolio-wizard .wizard-body {
  grid-template-columns: 1fr;
  max-width: none;
  padding: 6px 20px 18px;
  overflow: auto;
}

.wizard-body > p {
  color: var(--secondary);
  margin: 0;
  font-size: 13px;
}

.wizard-summary {
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 14px;
  display: grid;
}

.wizard-summary dt {
  color: var(--secondary);
}

.wizard-summary dd {
  margin: 0;
}

@media (max-width: 600px) {
  .wizard-steps button {
    justify-content: center;
    font-size: 0;
  }

  .wizard-steps button span {
    font-size: 11px;
  }
}

.portfolio-wizard .wizard-body {
  gap: 16px;
}

.portfolio-wizard .wizard-body label {
  color: var(--text);
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.portfolio-wizard .wizard-body input:not([type="checkbox"]):not([type="file"]), .portfolio-wizard .wizard-body textarea {
  field-sizing: fixed;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  width: 100%;
  min-height: 38px;
  color: var(--text);
  font: inherit;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}

.portfolio-wizard .wizard-body textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.portfolio-wizard .wizard-body input::placeholder, .portfolio-wizard .wizard-body textarea::placeholder {
  color: var(--muted);
}

.portfolio-wizard .wizard-body input:focus, .portfolio-wizard .wizard-body textarea:focus, .portfolio-wizard .ui-select-button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .portfolio-wizard .wizard-body input:focus, .portfolio-wizard .wizard-body textarea:focus, .portfolio-wizard .ui-select-button:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
  }
}

.portfolio-wizard .ui-select-button {
  border-radius: 8px;
  min-height: 38px;
  font-size: 14px;
  font-weight: 400;
}

.portfolio-wizard label.portfolio-published {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.portfolio-finishes {
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.wizard-ai {
  border: 1px solid var(--line);
  background: var(--c-f0f0ed);
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  display: flex;
}

.wizard-ai p {
  color: var(--secondary);
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.wizard-ai .button {
  flex-shrink: 0;
}

.wizard-ai.live {
  border-color: var(--brand);
  position: relative;
  overflow: hidden;
}

@supports (color: color-mix(in lab, red, red)) {
  .wizard-ai.live {
    border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  }
}

.wizard-ai.live {
  background: linear-gradient(120deg,
    var(--brand),
    var(--c-f0f0ed) 45%,
    var(--brand));
}

@supports (color: color-mix(in lab, red, red)) {
  .wizard-ai.live {
    background: linear-gradient(120deg,
    color-mix(in srgb, var(--brand) 10%, var(--c-f0f0ed)),
    var(--c-f0f0ed) 45%,
    color-mix(in srgb, var(--brand) 14%, var(--c-f0f0ed)));
  }
}

.wizard-ai.live:after {
  content: "";
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  width: 35%;
  height: 2px;
  animation: 1.6s ease-in-out infinite ai-sweep;
  position: absolute;
  bottom: 0;
  left: 0;
}

.ai-live {
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.ai-orb {
  color: #fff;
  background: conic-gradient(from 0deg, var(--brand), #f7c59f, var(--brand-hover), var(--brand));
  width: 30px;
  height: 30px;
  box-shadow: 0 0 0 4px var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .ai-orb {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
  }
}

.ai-orb {
  animation: 2.4s ease-in-out infinite ai-orb;
}

.ai-orb svg {
  animation: 1.6s ease-in-out infinite ai-breathe;
}

.ai-live-text {
  min-width: 0;
}

.ai-live-text strong {
  color: var(--text);
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.ai-dots {
  gap: 3px;
  margin-left: 4px;
  display: inline-flex;
}

.ai-dots i {
  background: var(--brand);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  animation: 1.2s ease-in-out infinite ai-bounce;
}

.ai-dots i:nth-child(2) {
  animation-delay: .15s;
}

.ai-dots i:nth-child(3) {
  animation-delay: .3s;
}

.ai-steps {
  color: var(--secondary);
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 5px 0 0;
  padding: 0;
  font-size: 12px;
  list-style: none;
  display: flex;
}

.ai-steps li {
  align-items: center;
  gap: 5px;
  transition: color .3s;
  display: inline-flex;
}

.ai-steps li:before {
  content: "";
  background: var(--line);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  transition: background .3s;
}

.ai-steps li.done {
  color: var(--text);
}

.ai-steps li.done:before {
  display: none;
}

.ai-steps li.done svg {
  color: var(--brand-hover);
}

.ai-steps li.active {
  color: var(--text);
  font-weight: 600;
}

.ai-steps li.active:before {
  background: var(--brand);
  animation: 1s ease-in-out infinite ai-pulse;
}

.wizard-body label.ai-writing input, .wizard-body label.ai-writing textarea {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .wizard-body label.ai-writing input, .wizard-body label.ai-writing textarea {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  }
}

.wizard-body label.ai-writing input, .wizard-body label.ai-writing textarea {
  transition: box-shadow .2s;
}

.ai-caret {
  vertical-align: -2px;
  background: var(--brand);
  width: 2px;
  height: 12px;
  margin-left: 5px;
  animation: .9s steps(2, start) infinite ai-blink;
  display: inline-block;
}

@keyframes ai-sweep {
  0% {
    transform: translateX(-100%);
  }

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

@keyframes ai-orb {
  0%, 100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
    transform: rotate(0);
  }

  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 8%, transparent);
    transform: rotate(180deg);
  }
}

@keyframes ai-breathe {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.18);
  }
}

@keyframes ai-bounce {
  0%, 100% {
    opacity: .45;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes ai-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 40%, transparent);
  }

  50% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 0%, transparent);
  }
}

@keyframes ai-blink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-ai.live:after, .ai-orb, .ai-orb svg, .ai-dots i, .ai-steps li.active:before, .ai-caret {
    animation: none !important;
  }
}

@media (max-width: 600px) {
  .wizard-ai {
    flex-direction: column;
    align-items: stretch;
  }
}

.record-panel {
  cursor: default;
}

.record-panel input:not([type="checkbox"]):not([type="radio"]), .record-panel textarea {
  cursor: text;
}

.record-panel .panel-property > span, .record-panel .panel-fold > summary {
  -webkit-user-select: none;
  user-select: none;
}

.footer-more {
  order: -1;
  position: relative;
}

.footer-more > summary {
  cursor: pointer;
  list-style: none;
}

.footer-more > summary::-webkit-details-marker {
  display: none;
}

.footer-menu {
  z-index: 20;
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 8px;
  flex-direction: column;
  min-width: 210px;
  padding: 4px;
  display: flex;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  box-shadow: 0 8px 24px #0000001f;
}

.footer-menu > button {
  text-align: left;
  color: var(--text);
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  display: flex;
}

.footer-menu > button:hover {
  background: var(--c-f5f5f3);
}

.footer-menu > button.danger {
  color: var(--c-d44c47);
}

.panel-footer.project-footer {
  justify-content: flex-end;
}

.panel-footer.project-footer > div:last-child {
  margin-left: 0;
}

.panel-footer.project-footer .footer-menu {
  left: auto;
  right: 0;
}

.mpad {
  --mpad-line: 26px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.mpad-editor {
  border: 1px solid var(--line);
  background: var(--c-fafaf8);
  border-radius: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  display: grid;
  overflow: hidden;
}

.mpad-editor textarea {
  min-height: calc(var(--mpad-line) * 8 + 16px);
  resize: vertical;
  white-space: pre;
  width: 100%;
  color: var(--text);
  background: none;
  outline: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  overflow: auto;
  line-height: var(--mpad-line) !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 8px 10px !important;
}

.mpad-gutter {
  border-left: 1px solid var(--line);
  min-width: 2.5em;
  font-size: 12px;
  line-height: var(--mpad-line);
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
  pointer-events: none;
  padding: 8px 10px;
  overflow: hidden;
}

.mpad-result {
  height: var(--mpad-line);
}

.mpad-result.section {
  color: var(--text);
  font-weight: 500;
}

.mpad-result.error {
  color: var(--c-d44c47);
  font-weight: 500;
}

.mpad-totals {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}

.mpad-totals th {
  text-align: left;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 4px 6px;
  font-weight: 500;
}

.mpad-totals td {
  border-bottom: 1px solid var(--line);
  padding: 6px;
}

.mpad-totals th:not(:first-child), .mpad-totals td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.mpad-totals tfoot td {
  border-bottom: 0;
  font-weight: 600;
}

.mpad-hint {
  color: var(--muted);
  font-size: 11px;
}

.measure-sheet .mpad.measure-pad {
  --mpad-line: 30px;
  padding: 10px 12px;
  overflow: auto;
}

.measure-sheet .mpad.measure-pad .mpad-editor {
  flex: 1;
  min-height: 0;
}

.measure-sheet .mpad.measure-pad textarea {
  resize: none;
  height: 100%;
  font-size: 18px;
}

.mpad-swatch {
  object-fit: cover;
  vertical-align: -3px;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 4px;
  margin-right: 6px;
}

.mpad-film {
  align-items: center;
  display: inline-flex;
}

.mpad-suggest {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 8px;
  gap: 2px;
  max-height: 280px;
  margin: 0;
  padding: 4px;
  list-style: none;
  display: grid;
  overflow: auto;
  box-shadow: 0 8px 24px #0000001a;
}

.mpad-suggest button {
  text-align: left;
  width: 100%;
  color: var(--text);
  border-radius: 6px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  display: flex;
}

.mpad-suggest button .mpad-swatch {
  width: 28px;
  height: 28px;
  margin: 0;
}

.mpad-suggest button span {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.mpad-suggest button:hover, .mpad-suggest button.active {
  background: var(--c-f5f5f3);
}

.sms-tabs {
  background: var(--c-f5f5f3);
  border-radius: 8px;
  gap: 4px;
  margin: 8px 0 4px;
  padding: 3px;
  display: flex;
}

.sms-tabs button {
  color: var(--muted);
  border-radius: 6px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 12px;
  display: flex;
}

.sms-tabs button.active {
  background: var(--c-ffffff);
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 1px 2px #00000014;
}

.sms-tabs button span {
  color: var(--muted);
  font-size: 11px;
}

.chat-layout > * {
  min-height: 0;
}

.chat-sidebar {
  min-height: 0;
  overflow: hidden;
}

.chat-sidebar > :not(.chat-list), .chat-main > :not(.chat-thread) {
  flex: none;
}

.sms-document .chat-thread {
  gap: 2px;
  padding: 4px 12px 16px;
}

.sms-row {
  flex-direction: column;
  max-width: min(72%, 520px);
  display: flex;
}

.sms-row.in {
  align-self: flex-start;
  align-items: flex-start;
}

.sms-row.out {
  align-self: flex-end;
  align-items: flex-end;
}

.sms-row.first {
  margin-top: 10px;
}

.sms-bubble {
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 18px;
  padding: 8px 13px;
  font-size: 14px;
  line-height: 1.45;
}

.sms-row.in .sms-bubble {
  background: var(--c-f2f1ec);
  color: var(--text);
}

.sms-row.out .sms-bubble {
  background: var(--brand);
  color: var(--brand-ink);
}

.sms-row.out .sms-bubble.auto {
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .sms-row.out .sms-bubble.auto {
    background: color-mix(in srgb, var(--brand) 22%, transparent);
  }
}

.sms-row.out .sms-bubble.auto {
  color: var(--text);
}

.sms-row.in:not(.first) .sms-bubble {
  border-top-left-radius: 6px;
}

.sms-row.in:not(.last) .sms-bubble {
  border-bottom-left-radius: 6px;
}

.sms-row.in.last .sms-bubble {
  border-bottom-left-radius: 4px;
}

.sms-row.out:not(.first) .sms-bubble {
  border-top-right-radius: 6px;
}

.sms-row.out:not(.last) .sms-bubble {
  border-bottom-right-radius: 6px;
}

.sms-row.out.last .sms-bubble {
  border-bottom-right-radius: 4px;
}

.sms-bubble.failed {
  box-shadow: inset 0 0 0 1.5px var(--c-d44c47);
  color: var(--text) !important;
  background: none !important;
}

.sms-label {
  color: var(--muted);
  margin: 0 6px 3px;
  font-size: 11px;
}

.sms-row .sms-meta {
  color: var(--muted);
  opacity: 1;
  align-items: center;
  gap: 4px;
  margin: 3px 6px 0;
  font-size: 11px;
  display: flex;
}

.sms-row .sms-meta.failed {
  color: var(--c-d44c47);
}

:root[data-theme="dark"] .sms-row.in .sms-bubble {
  background: var(--c-00000033);
}

.sms-badge {
  background: var(--brand);
  min-width: 20px;
  height: 20px;
  color: var(--brand-ink);
  border-radius: 10px;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
}

.sms-item.unread strong, .sms-item.unread small {
  color: var(--text);
  font-weight: 600;
}

.sms-to-answer {
  color: var(--muted);
  white-space: nowrap;
  flex: none;
  font-size: 10px;
}

.portal-clients-bar {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  display: flex;
}

.portal-clients-bar input {
  border: 1px solid var(--line);
  background: none;
  border-radius: 5px;
  flex: 240px;
  min-width: 0;
  padding: 7px 10px;
}

.portal-project header .button {
  flex-shrink: 0;
}

.topbar {
  height: calc(46px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}

.sidebar {
  padding-top: calc(10px + env(safe-area-inset-top));
}

.app-shell:has(.portal-tabs) .main-content {
  padding-top: env(safe-area-inset-top);
}

.portal-tabs {
  grid-template-columns: none;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
}

.panel-topbar {
  height: calc(46px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}

.visit-panel {
  padding-top: 0;
}

.mobile-records {
  display: none;
}

@media (max-width: 700px) {
  .mobile-records + .database-table {
    display: none;
  }

  .mobile-records {
    border-top: 1px solid var(--line);
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
  }

  .mobile-records li {
    border-bottom: 1px solid var(--line);
    align-items: center;
    gap: 10px;
    display: flex;
  }

  .mobile-records li > button {
    text-align: left;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    padding: 13px 2px;
    display: flex;
  }

  .mobile-records li > button:active {
    background: var(--hover);
  }

  .mobile-records strong {
    font-size: 16px;
    font-weight: 600;
  }

  .mobile-records span {
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
  }

  .mobile-call {
    border: 1px solid var(--line);
    width: 42px;
    height: 42px;
    color: var(--brand-hover);
    border-radius: 50%;
    flex-shrink: 0;
    place-items: center;
    display: grid;
  }

  .portal-tabs a span {
    white-space: nowrap;
  }

  .portal-clients .portal-project header {
    flex-wrap: wrap;
  }

  .portal-clients .portal-project header .button {
    width: 100%;
    min-height: 44px;
  }
}

.portal-project dd {
  overflow-wrap: anywhere;
  min-width: 0;
}

.portal-clients-notes {
  margin-top: 10px;
}

.portal-clients-notes summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 700px) {
  .mobile-records {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-panel .panel-property {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 6px 0;
  }

  .date-time-pair {
    flex-wrap: wrap;
  }

  .date-time-pair > :first-child, .date-time-pair > :last-child {
    flex: 100%;
  }

  .mpad-totals {
    display: block;
    overflow-x: auto;
  }

  .record-panel input:not([type="checkbox"]):not([type="radio"]), .record-panel textarea, .record-panel select {
    font-size: 16px;
  }
}

.section-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 15px;
  display: flex;
}

.section-head h2 {
  margin: 0 !important;
}

.compare-select {
  width: 220px;
  font-size: 12px;
}

.inline-metrics small b {
  font-weight: 600;
}

.inline-metrics small .delta-up {
  color: #2f8a4e;
}

.inline-metrics small .delta-down {
  color: #c4453c;
}

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

.minutes-actions .button {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.minutes-count {
  background: var(--c-fbe4e0);
  color: var(--c-b97469);
  border-radius: 9px;
  margin-left: 6px;
  padding: 0 6px;
  font-size: 11px;
}

.minutes-section {
  margin-top: 16px;
}

.minutes-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 12px;
  margin: 24px 0 8px;
  display: flex;
}

.minutes-head h2 {
  margin: 0;
  font-size: 15px;
}

.minutes-head small, .minutes-note {
  color: var(--secondary);
  font-size: 12px;
}

.minutes-score {
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  display: flex;
}

.minutes-score strong {
  border: 4px solid;
  border-radius: 50%;
  place-items: center;
  width: 58px;
  height: 58px;
  font-size: 19px;
  display: grid;
}

.minutes-score.good strong {
  color: var(--c-608765);
}

.minutes-score.fair strong {
  color: var(--c-ab8737);
}

.minutes-score.poor strong {
  color: var(--c-b97469);
}

.minutes-checks {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}

.minutes-checks li {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  display: flex;
}

.minutes-checks li > svg {
  flex: none;
}

.minutes-checks li.ok > svg {
  color: var(--c-608765);
}

.minutes-checks li.warn > svg {
  color: var(--c-ab8737);
}

.minutes-checks li.error > svg {
  color: var(--c-b97469);
}

.minutes-checks li > div {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.minutes-checks small {
  color: var(--secondary);
}

.minutes-table td small {
  display: block;
}

.minutes-table .tag {
  margin-left: 4px;
}

.minutes-dialog .wizard-body {
  grid-template-columns: 1fr 1fr;
}

.minutes-dialog .wizard-body .wide, .minutes-dialog .wizard-body > p, .minutes-dialog .wizard-body > div, .minutes-dialog .wizard-body > ul {
  grid-column: 1 / -1;
}

label.minutes-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
}

label.minutes-check input {
  flex: none;
  margin-top: 2px;
}

.minutes-ai {
  border: 1px dashed var(--line);
  border-radius: 8px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  display: flex;
}

.minutes-ai label {
  width: 100%;
}

.minutes-warn {
  color: var(--c-ab8737) !important;
}

.minutes-text {
  border: 1px solid var(--line);
  white-space: pre-wrap;
  border-radius: 8px;
  max-height: 45vh;
  padding: 14px 16px;
  font-family: Georgia, Times New Roman, serif;
  font-size: 14px;
  line-height: 1.55;
  overflow: auto;
}

.minutes-signatures {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.minutes-signatures li {
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  display: flex;
}

.minutes-signatures img {
  object-fit: contain;
  object-position: left;
  background: #fff;
  height: 54px;
}

.minutes-signatures small {
  color: var(--secondary);
  display: block;
}

.minutes-sign {
  border-top: 1px solid var(--line);
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  display: flex;
}

.minutes-sign h3 {
  margin: 0;
  font-size: 14px;
}

.minutes-sign > .button {
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.minutes-row {
  grid-template-columns: 80px 1fr;
  gap: 8px;
  display: grid;
}

.minutes-class {
  grid-template-columns: 70px 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  display: grid;
}

@media (max-width: 640px) {
  .minutes-dialog .wizard-body {
    grid-template-columns: 1fr;
  }

  .minutes-class {
    grid-template-columns: 60px 1fr;
  }

  .minutes-checks li {
    flex-wrap: wrap;
  }

  .minutes-table {
    display: block;
    overflow-x: auto;
  }
}

.minutes-money {
  display: block;
  position: relative;
}

.minutes-money input {
  width: 100%;
  padding-right: 26px !important;
}

.minutes-money:after {
  content: "$";
  color: var(--secondary);
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
}

.minutes-file {
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.minutes-drop {
  border: 1.5px dashed var(--line);
  min-height: 72px;
  color: var(--secondary);
  font: inherit;
  cursor: pointer;
  background: none;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px;
  font-weight: 400;
  transition: border-color .15s, color .15s;
  display: flex;
}

.minutes-drop:hover {
  border-color: var(--brand);
  color: var(--text);
}

.minutes-dialog .switch-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 400;
}

.minutes-dialog .switch-row > span, .minutes-section .switch-row > span {
  line-height: 1.4;
}

.minutes-class .switch-row {
  gap: 8px;
  font-size: 13px;
}

.minutes-dialog .ui-date, .minutes-section .ui-date {
  width: 100%;
}

.minutes-page label, .minutes-page .minutes-file {
  color: var(--text);
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.minutes-page input:not([type="checkbox"]):not([type="file"]), .minutes-page textarea {
  field-sizing: fixed;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  width: 100%;
  min-height: 40px;
  color: var(--text);
  font: inherit;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 2px #0000000a;
}

.minutes-page textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.minutes-page .minutes-ai textarea {
  min-height: 64px;
}

.minutes-page input::placeholder, .minutes-page textarea::placeholder {
  color: var(--muted);
}

.minutes-page input:hover, .minutes-page textarea:hover, .minutes-page .ui-select-button:hover {
  border-color: var(--c-dfdfdb);
}

.minutes-page input:focus, .minutes-page textarea:focus, .minutes-page .ui-select-button:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .minutes-page input:focus, .minutes-page textarea:focus, .minutes-page .ui-select-button:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
  }
}

.minutes-page .ui-select, .minutes-page .ui-date {
  width: 100%;
}

.minutes-page .ui-select-button {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 8px;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 1px 2px #0000000a;
}

.minutes-page label.switch-row {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 8px;
  flex-direction: row;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  font-weight: 400;
}

.minutes-page .minutes-class {
  grid-template-columns: 80px 1fr auto auto;
}

.minutes-page .minutes-class label.switch-row {
  min-height: 40px;
}

.minutes-page form.settings-form {
  gap: 16px 20px;
  max-width: 860px;
}

.minutes-page .minutes-row {
  grid-template-columns: 90px 1fr;
}

@media (max-width: 640px) {
  .minutes-page input:not([type="checkbox"]):not([type="file"]), .minutes-page textarea, .minutes-page .ui-select-button {
    font-size: 16px;
  }

  .minutes-page form.settings-form {
    grid-template-columns: 1fr;
  }
}

.mark-paid-button {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  color: var(--text);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 12px;
  transition: border-color .15s, color .15s;
  display: inline-flex;
}

.mark-paid-button:hover {
  border-color: var(--c-608765);
  color: var(--c-608765);
}

button.mobile-call {
  color: var(--c-608765);
  cursor: pointer;
  background: none;
}

dialog.mark-paid-dialog {
  width: min(460px, 100vw - 32px);
}

.mark-paid-dialog .wizard-body {
  gap: 14px;
  padding-top: 14px;
}

.mark-paid-dialog .ui-select, .mark-paid-dialog .ui-date, .mark-paid-dialog .ui-select-button {
  width: 100%;
}

.mark-paid-dialog .ui-select-button {
  border-radius: 8px;
  min-height: 40px;
  font-size: 14px;
}

.crew-list {
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
  display: flex;
}

.crew-row {
  grid-template-columns: minmax(0, 1fr) 7.5em auto;
  align-items: center;
  gap: 6px;
  display: grid;
}

.crew-pay {
  position: relative;
}

.crew-pay input {
  width: 100%;
  padding-right: 22px;
}

.crew-pay:after {
  content: "$";
  color: var(--secondary);
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
}

.crew-list > .text-button {
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.crew-row {
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 4px;
}

.crew-row > .crew-times {
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 6px;
  display: flex;
}

.crew-times > .ui-select {
  flex: 0 0 6.5em;
}

.crew-times .crew-pay {
  flex: 0 0 7em;
}

.crew-pay:has(input[data-unit="$/h"]):after {
  content: "$/h";
}

.crew-times .crew-km {
  flex: 0 0 6em;
}

.crew-km:after {
  content: "km";
}

.crew-list > .crew-row + .crew-row {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.installer-list {
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
}

.installer-list > li {
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  border-radius: 10px;
  grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 14px 20px;
  padding: 14px 16px;
  display: grid;
}

.installer-list > li.is-inactive {
  opacity: .65;
}

.installer-who {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.installer-who .contact-avatar {
  flex: none;
}

.installer-who > div {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.installer-who strong {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  display: flex;
}

.installer-who strong .tag {
  font-weight: 400;
}

.installer-who small {
  color: var(--secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.installer-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
  display: grid;
}

.installer-facts dt {
  color: var(--secondary);
  font-size: 11px;
}

.installer-facts dd {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 1px 0 0;
  font-size: 13px;
  overflow: hidden;
}

.installer-facts dd.muted, .installer-facts .muted {
  color: var(--muted);
}

.installer-facts dd.ok {
  color: var(--c-608765);
}

.installer-controls {
  flex-direction: column;
  gap: 6px;
  min-width: 190px;
  display: flex;
}

.installer-controls .switch-row {
  gap: 12px;
  font-size: 13px;
}

.installer-buttons {
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
  display: flex;
}

.installer-buttons .button {
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

@media (max-width: 980px) {
  .installer-list > li {
    grid-template-columns: 1fr;
  }

  .installer-controls {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .installer-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.installer-list > li {
  grid-template-columns: minmax(170px, .9fr) minmax(0, 2fr) 200px;
}

.installer-invite-title {
  margin: 4px 0 8px;
  font-size: 14px;
}

.installer-invite {
  border: 1px dashed var(--line);
  border-radius: 10px;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 10px 12px;
  padding: 14px 16px;
  display: grid;
}

.installer-invite label {
  color: var(--text);
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
}

.installer-invite input {
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--c-ffffff);
  width: 100%;
  min-height: 40px;
  color: var(--text);
  font: inherit;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 400;
}

.installer-invite input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue);
  outline: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .installer-invite input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
  }
}

.installer-invite > .button {
  align-items: center;
  gap: 6px;
  min-height: 40px;
  display: inline-flex;
}

.installer-invite .wide {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .installer-list > li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .installer-invite {
    grid-template-columns: 1fr;
  }

  .installer-invite input {
    font-size: 16px;
  }
}

.preview-banner {
  z-index: 60;
  min-height: 44px;
  padding: calc(env(safe-area-inset-top) + 6px) 16px 6px;
  background: var(--brand);
  color: var(--brand-ink);
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
  position: fixed;
  inset: 0 0 auto;
}

.preview-banner .button {
  background: var(--c-ffffff);
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  display: inline-flex;
}

.app-shell.is-preview {
  padding-top: calc(env(safe-area-inset-top) + 44px);
}

@media (max-width: 560px) {
  .preview-banner {
    flex-wrap: wrap;
    font-size: 12px;
  }
}

.app-shell.is-preview .portal-sidebar {
  top: calc(env(safe-area-inset-top) + 44px);
}

dialog.lead-modal {
  border: 1px solid var(--line);
  background: var(--card);
  width: min(540px, 100vw - 32px);
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 48px);
  color: var(--text);
  border-radius: 18px;
  margin: auto;
  padding: 0;
  position: fixed;
  inset: 0;
  overflow: hidden;
  box-shadow: 0 24px 64px #00000047;
}

dialog.lead-modal[open] {
  animation: .14s ease-out lead-modal-in;
}

@keyframes lead-modal-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.lead-modal[open] {
    animation: none;
  }
}

dialog.lead-modal::backdrop {
  background: #0f141280;
}

.lead-modal-inner {
  flex-direction: column;
  max-height: calc(100dvh - 48px);
  display: flex;
}

.lead-modal-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, var(--brand), var(--card) 80%);
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .lead-modal-head {
    background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 18%, var(--card)), var(--card) 80%);
  }
}

.lead-modal-top {
  align-items: center;
  gap: 14px;
  display: flex;
}

.lead-avatar {
  background: var(--brand);
  width: 52px;
  height: 52px;
  color: var(--brand-ink);
  letter-spacing: .02em;
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  display: grid;
}

.lead-modal-who {
  flex: 1;
  min-width: 0;
}

.lead-modal-who h2 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.lead-modal-who p {
  color: var(--secondary);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 6px 0 0;
  font-size: 13px;
  display: flex;
}

.lead-chip {
  background: var(--brand);
  border-radius: 999px;
  padding: 2px 9px;
}

@supports (color: color-mix(in lab, red, red)) {
  .lead-chip {
    background: color-mix(in srgb, var(--brand) 20%, transparent);
  }
}

.lead-chip {
  color: var(--text);
  font-weight: 500;
}

.lead-modal-top .icon-button {
  align-self: flex-start;
  margin: -6px -8px 0 0;
}

.lead-contact {
  gap: 8px;
  display: flex;
}

.lead-contact a {
  border: 1px solid var(--line);
  background: var(--card);
  min-height: 38px;
  color: var(--text);
  border-radius: 10px;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .12s, border-color .12s;
  display: inline-flex;
}

.lead-contact a:hover {
  border-color: var(--brand);
  background: var(--brand);
}

@supports (color: color-mix(in lab, red, red)) {
  .lead-contact a:hover {
    background: color-mix(in srgb, var(--brand) 10%, transparent);
  }
}

.lead-modal-body {
  overscroll-behavior: contain;
  flex-direction: column;
  gap: 10px;
  padding: 18px 22px 20px;
  display: flex;
  overflow-y: auto;
}

.lead-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 12px;
  padding: 14px;
  display: flex;
}

.lead-step-num {
  background: var(--text);
  width: 24px;
  height: 24px;
  color: var(--card);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.lead-step > div {
  flex: 1;
  min-width: 0;
}

.lead-step h3 {
  color: var(--secondary);
  margin: 2px 0 6px;
  font-size: 13px;
  font-weight: 500;
}

.lead-step strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
}

.lead-step em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.lead-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 8px 0 0;
  display: grid;
}

.lead-facts dt {
  color: var(--muted);
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: flex;
}

.lead-facts dd {
  margin: 2px 0 0;
}

.lead-message {
  border-left: 3px solid var(--brand);
  background: var(--brand);
  border-radius: 0 10px 10px 0;
  margin: 0;
  padding: 12px 14px;
}

@supports (color: color-mix(in lab, red, red)) {
  .lead-message {
    background: color-mix(in srgb, var(--brand) 8%, transparent);
  }
}

.lead-message {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.5;
}

.lead-photos {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  display: grid;
}

.lead-photos img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  width: 100%;
  display: block;
}

.lead-origin {
  overflow-wrap: anywhere;
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.lead-modal-foot {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  display: flex;
}

.lead-modal-foot .button {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

@media (max-width: 560px) {
  .lead-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-modal-foot .button {
    flex: 1;
    justify-content: center;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

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

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

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

@keyframes tw-shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0 0;
  }
}

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