/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-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;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

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

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

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

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

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

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

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

  b, strong {
    font-weight: bolder;
  }

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

  small {
    font-size: 80%;
  }

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

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

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

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

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

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

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

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

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

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

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

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

  ::placeholder {
    opacity: 1;
  }

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

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

  textarea {
    resize: vertical;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

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

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .container {
    width: 100%;
  }

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

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

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

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

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

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .flow-root {
    display: flow-root;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

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

  .list-item {
    display: list-item;
  }

  .table {
    display: table;
  }

  .shrink {
    flex-shrink: 1;
  }

  .grow {
    flex-grow: 1;
  }

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

  .resize {
    resize: both;
  }

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

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

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

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

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

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

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

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

:root {
  --bg: #faf8f3;
  --side: #f2ede1;
  --surface: #fff;
  --bubble: #eee8d6;
  --line: #e8e1d0;
  --line-soft: #f0ebdd;
  --line-strong: #d9cfb4;
  --ink: #2b2519;
  --ink-2: #4a4232;
  --mute: #6b6149;
  --gold: #6f5110;
  --gold-ink: #fff;
  --gold-tint: #efe6cf;
  --gold-wash: #f6f0df;
  --good: #2a6f45;
  --warn: #a63a25;
  --off: #9a917b;
  --info: #2c5d8a;
  --ease: cubic-bezier(.32,.72,0,1);
  --calm: cubic-bezier(.23,1,.32,1);
  --font: "Segoe UI",system-ui,"Noto Sans Arabic",Tahoma,sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font: var(--fs-base)/1.7 var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  overflow: hidden;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

::selection {
  background: var(--gold-tint);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

svg {
  flex-shrink: 0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #d9d0b8 transparent;
}

[hidden] {
  display: none !important;
}

aside {
  background: var(--side);
  width: 268px;
  transition: width .24s var(--calm);
  flex-direction: column;
  flex-shrink: 0;
  display: flex;
  overflow: hidden;
}

.side-head {
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 14px 12px 6px;
  display: flex;
}

.brand {
  white-space: nowrap;
  flex: 1;
  padding: 0 6px;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
}

.brand-mark {
  vertical-align: middle;
  width: 2rem;
  height: auto;
  margin-inline-end: .5rem;
  display: inline-block;
}

nav {
  flex: 1;
  padding: 12px 10px 22px;
  overflow: auto;
  -webkit-mask-image: linear-gradient(#0000, #000 12px calc(100% - 22px), #0000);
  mask-image: linear-gradient(#0000, #000 12px calc(100% - 22px), #0000);
}

nav::-webkit-scrollbar {
  width: 6px;
}

nav::-webkit-scrollbar-thumb {
  background: none;
  border-radius: 6px;
}

nav:hover::-webkit-scrollbar-thumb {
  background: #d4c9aa;
}

.sec {
  margin-bottom: 4px;
}

.sec-head {
  width: 100%;
  height: 42px;
  font-size: var(--fs-base);
  color: var(--ink);
  text-align: start;
  border-radius: 10px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font-weight: 700;
  transition: background .15s;
  display: flex;
}

.sec-head:hover {
  background: #6f511012;
}

.sec-head:active {
  transform: scale(.98);
}

.sec-head .ico {
  color: var(--mute);
  transition: color .15s;
  display: grid;
}

.sec.has-active .sec-head .ico {
  color: var(--gold);
}

.sec-head .name {
  flex: 1;
}

.chev {
  color: var(--mute);
  transition: transform .24s var(--ease);
  display: grid;
}

.sec.open .chev {
  transform: rotate(-90deg);
}

.things {
  transition: grid-template-rows .26s var(--ease);
  grid-template-rows: 0fr;
  display: grid;
}

.sec.open .things {
  grid-template-rows: 1fr;
}

.things > div {
  overflow: hidden;
}

.things ul {
  margin: 2px 0 8px;
  border-inline-start: 1px solid var(--line-strong);
  margin-inline-start: 20px;
  list-style: none;
}

.things li {
  padding-inline-start: 10px;
}

.thing {
  text-align: start;
  width: 100%;
  height: 38px;
  color: var(--ink-2);
  border-radius: 9px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 14.5px;
  transition: background .15s, color .15s;
  display: flex;
}

.thing:hover {
  color: var(--ink);
  background: #6f511012;
}

.thing:active {
  transform: scale(.98);
}

.thing[aria-current="page"] {
  background: var(--gold-tint);
  color: var(--gold);
  font-weight: 700;
}

.thing .dot {
  background: var(--warn);
  color: #fff;
  border-radius: 999px;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-inline-start: auto;
  padding: 0 6px;
  font-size: 12px;
  display: grid;
}

.divider {
  background: var(--line-strong);
  opacity: .7;
  height: 1px;
  margin: 12px 12px 14px;
}

.me {
  border-top: 1px solid #e3dac4;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  display: flex;
}

.me small {
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1.3;
  display: block;
}

.me .ic-btn {
  color: var(--mute);
}

.main {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
  position: relative;
}

.topbar {
  z-index: 3;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: #faf8f3c7;
  align-items: center;
  gap: 16px;
  padding: 10px 28px;
  display: flex;
  position: sticky;
  top: 0;
}

.ws {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 6px 28px 24px;
  display: flex;
  overflow: auto;
}

.head {
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
  display: flex;
}

h1 {
  text-wrap: balance;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.sub {
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  font-size: 13.5px;
}

.actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.btn {
  height: var(--h-btn);
  white-space: nowrap;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 600;
  transition: transform .1s ease-out, background .15s, box-shadow .15s;
  display: inline-flex;
}

.btn:active:not(:disabled) {
  transform: scale(.97);
}

.btn.primary {
  background: var(--gold);
  color: var(--gold-ink);
}

.btn.primary:hover:not(:disabled) {
  background: #5d430c;
}

.btn.quiet {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn.quiet:hover:not(:disabled) {
  background: var(--gold-wash);
}

.btn.danger {
  color: var(--warn);
}

.btn.sm {
  height: var(--h-btn-sm);
  padding: 0 12px;
  font-size: 13.5px;
}

.tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  display: flex;
}

.search {
  min-width: 240px;
  max-width: 420px;
  height: var(--h-search);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--mute);
  border-radius: 10px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  transition: box-shadow .15s;
  display: flex;
}

.search:focus-within {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.search input {
  min-width: 0;
  color: var(--ink);
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
}

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

.lbl {
  color: var(--mute);
  font-size: 12.5px;
}

.seg {
  background: var(--line-strong);
  border-radius: 11px;
  flex-wrap: nowrap;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  display: inline-flex;
  position: relative;
  overflow-x: auto;
}

.seg .thumb {
  background: var(--surface);
  transition: transform .24s var(--calm),width .24s var(--calm);
  pointer-events: none;
  border-radius: 8px;
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  box-shadow: 0 1px 2px #3c2d0a2e;
}

.seg button {
  z-index: 1;
  height: 30px;
  color: var(--ink-2);
  transition: color .18s var(--calm);
  white-space: nowrap;
  border-radius: 8px;
  padding: 0 14px;
  position: relative;
}

.seg button:active {
  transform: scale(.97);
}

.seg button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
}

.seg.page {
  align-self: flex-start;
  margin-bottom: 14px;
}

.field > .seg {
  align-self: flex-start;
  width: max-content;
  max-width: none;
  overflow: visible;
}

.filters {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  display: flex;
}

.filters .field {
  flex: 0 190px;
  min-width: 150px;
}

.filters .btn {
  align-self: flex-end;
}

.table {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 14px;
  flex: none;
  overflow-x: auto;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

th {
  text-align: start;
  height: var(--h-th);
  color: var(--mute);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: #fbf9f2;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 600;
}

th[data-sort="on"] {
  -webkit-user-select: none;
  user-select: none;
}

th[data-sort="on"]:hover {
  color: var(--ink);
}

.th-sort {
  font: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-align: start;
  background: none;
  border: 0;
  border-radius: 4px;
  align-items: center;
  gap: 6px;
  padding: 0;
  line-height: 1.4;
  display: inline-flex;
  position: relative;
}

.th-sort:after {
  content: "";
  position: absolute;
  inset: -13px -8px;
}

.th-sort:hover {
  color: var(--ink);
}

.th-sort:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

th.num .th-sort {
  justify-content: flex-start;
}

.th-label {
  white-space: nowrap;
}

.sort-arrow {
  color: var(--line);
  opacity: .9;
  flex: none;
}

.sort-arrow[data-dir="idle"] {
  color: var(--mute);
  opacity: .35;
}

.sort-arrow[data-dir="asc"], .sort-arrow[data-dir="desc"] {
  color: var(--gold);
  opacity: 1;
}

td {
  height: var(--h-row);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 360px;
  padding: 0 16px;
  overflow: hidden;
}

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

tr.row {
  cursor: pointer;
  transition: background .12s;
}

tr.row:hover {
  background: #fbf8ee;
}

tr.row[aria-selected="true"] {
  background: var(--gold-wash);
}

tr.row.deleted td {
  color: var(--off);
  text-decoration: line-through;
}

tr.row.inactive td {
  color: var(--mute);
}

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

.num {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.id {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.st {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.st i {
  background: var(--off);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.st.good i {
  background: var(--good);
}

.st.warn i {
  background: var(--warn);
}

.st.info i {
  background: var(--info);
}

tr.grp td {
  height: var(--h-row);
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  background: #f6f1e3;
  font-weight: 600;
}

tr.grp .cnt {
  color: var(--mute);
  margin-inline-start: 8px;
  font-weight: 400;
}

tr.foot td {
  height: var(--h-row);
  border-top: 1px solid var(--line);
  background: #fbf9f2;
  border-bottom: 0;
  font-weight: 700;
}

tr.flash td {
  animation: 1.6s ease-out flash;
}

@keyframes flash {
  from {
    background: var(--gold-tint);
  }

  to {
    background: none;
  }
}

.pager {
  color: var(--mute);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 0;
  font-size: 13px;
  display: flex;
}

.pager .btn {
  height: 32px;
  padding: 0 12px;
}

.empty {
  text-align: center;
  color: var(--mute);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .375rem .625rem;
  padding: 1.25rem 1.5rem;
  display: flex;
}

.empty svg {
  color: #c9bd9c;
}

.empty strong {
  color: var(--ink);
  font-size: var(--fs-base);
}

.skeleton {
  gap: 10px;
  padding: 12px 16px;
  display: grid;
}

.skeleton i {
  background: linear-gradient(90deg, #f1ebdb 25%, #f8f4e8 50%, #f1ebdb 75%) 0 0 / 200% 100%;
  border-radius: 6px;
  height: 18px;
  animation: 1.2s linear infinite sk;
  display: block;
}

@keyframes sk {
  to {
    background-position: -200% 0;
  }
}

.field label, .field .flabel {
  color: var(--mute);
  margin-bottom: 5px;
  font-size: 12.5px;
  font-weight: 600;
  display: block;
}

.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%;
  height: var(--h-field);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border: 0;
  border-radius: 10px;
  outline: 0;
  padding: 0 12px;
  transition: box-shadow .15s;
}

.field textarea {
  resize: vertical;
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
}

.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.field input:not([type="checkbox"]):not([type="radio"]):disabled, .field select:disabled, .field textarea:disabled {
  color: var(--mute);
  opacity: .5;
  cursor: not-allowed;
  background: #f3efe3;
}

.field input[readonly]:not([type="hidden"]):not(:disabled) {
  background: var(--side);
  color: var(--ink);
  cursor: default;
}

.field[data-err] input, .field[data-err] select, .field[data-err] textarea {
  box-shadow: inset 0 0 0 2px var(--warn);
}

.err {
  color: var(--warn);
  margin-top: .25rem;
  font-size: .78rem;
}

.field .err {
  color: var(--warn);
  margin-top: 4px;
  font-size: 12.5px;
}

.field .help {
  color: var(--mute);
  margin-top: 4px;
  font-size: 12.5px;
}

:is(.filters, .scanrow, .tk-chips) > .field {
  position: relative;
}

:is(.filters, .scanrow, .tk-chips) > .field > .err {
  inset-inline-start: 0;
  white-space: normal;
  max-width: max(100%, 14rem);
  margin-top: .125rem;
  line-height: 1.3;
  position: absolute;
  top: 100%;
}

:is(.filters, .scanrow, .tk-chips):has( > .field > .err) {
  padding-bottom: 1.9rem;
}

.field.check {
  align-items: center;
  gap: 8px;
  display: flex;
}

.field.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.field.check label {
  color: var(--ink);
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.formgrid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  display: grid;
}

.formgrid .wide {
  grid-column: 1 / -1;
}

.card {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 18px 20px;
}

.card h3 {
  font-size: var(--fs-base);
  margin-bottom: 12px;
}

.lines {
  width: 100%;
}

.lines td .err {
  white-space: normal;
}

.lines input, .lines select {
  min-width: 90px;
  height: 34px !important;
}

.totals {
  gap: 6px;
  max-width: 360px;
  margin-inline-start: auto;
  display: grid;
}

.totals .kv {
  border-bottom: 0;
  padding: 4px 0;
}

.totals .kv.big {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 10px;
  font-size: 17px;
  font-weight: 700;
}

.formbar {
  background: linear-gradient(transparent,var(--bg) 30%);
  gap: 8px;
  padding: 12px 0;
  display: flex;
  position: sticky;
  bottom: 0;
}

.back {
  color: var(--mute);
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  display: inline-flex;
}

.back:hover {
  color: var(--ink);
}

.kv {
  border-bottom: 1px solid var(--line-soft);
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  display: flex;
}

.kv span:first-child {
  color: var(--mute);
}

.kv span:last-child {
  font-variant-numeric: tabular-nums;
  text-align: end;
  font-weight: 600;
}

.note {
  color: var(--ink-2);
  background: var(--gold-wash);
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  font-size: 13px;
}

.note.warn {
  color: #6b2616;
  background: #f9e9e4;
}

.note.example {
  font-variant-numeric: tabular-nums;
  margin: 0;
  line-height: 1.55;
}

.note.example .example-title {
  color: var(--ink);
  margin-bottom: 2px;
  font-weight: 600;
}

.note.example .example-line {
  color: var(--ink);
  font-weight: 600;
}

.sheet {
  z-index: 5;
  background: var(--surface);
  width: 420px;
  max-width: calc(100% - 24px);
  transition: transform .38s var(--ease),visibility 0s .38s;
  visibility: hidden;
  border-radius: 16px;
  flex-direction: column;
  display: flex;
  position: absolute;
  inset-block: 12px;
  inset-inline-end: 12px;
  transform: translateX(calc(-100% - 28px));
  box-shadow: 0 28px 64px -16px #3c2d0a4d, 0 2px 10px #3c2d0a14;
}

.sheet.show {
  visibility: visible;
  transition: transform .38s var(--ease),visibility 0s;
  transform: none;
}

.sheet header {
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 12px;
  display: flex;
}

.sheet h2 {
  font-size: 18px;
  line-height: 1.3;
}

.ic-btn {
  width: 32px;
  height: 32px;
  color: var(--mute);
  border-radius: 9px;
  place-items: center;
  transition: background .15s, transform .1s;
  display: grid;
}

.ic-btn:hover {
  background: var(--gold-wash);
  color: var(--ink);
}

.ic-btn:active {
  transform: scale(.94);
}

.sheet .body {
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 4px 20px 16px;
  display: flex;
  overflow: auto;
}

.sheet footer {
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  display: flex;
}

dialog {
  background: var(--surface);
  max-width: min(440px, 92vw);
  color: var(--ink);
  border: 0;
  border-radius: 16px;
  margin: auto;
  padding: 22px 24px;
  box-shadow: 0 28px 64px -16px #3c2d0a59;
}

dialog::backdrop {
  background: #2b251959;
}

dialog h2 {
  margin-bottom: 8px;
  font-size: 17px;
}

dialog p {
  color: var(--ink-2);
  margin-bottom: 18px;
}

dialog .row {
  justify-content: flex-start;
  gap: 8px;
  display: flex;
}

.toast {
  inset-inline: 0;
  z-index: 20;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  width: max-content;
  max-width: 90vw;
  transition: opacity .2s,transform .28s var(--ease);
  background: #2b2519;
  border-radius: 12px;
  align-items: center;
  gap: 14px;
  margin-inline: auto;
  padding: 10px 16px;
  display: flex;
  position: fixed;
  bottom: 22px;
  transform: translateY(12px);
  box-shadow: 0 12px 32px #00000040;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.toast.error {
  background: #6b2616;
}

.toast button {
  color: #f1d98a;
  font-weight: 600;
}

.signin {
  z-index: 30;
  background: var(--bg);
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.signin form {
  background: var(--surface);
  width: min(400px, 100%);
  box-shadow: 0 0 0 1px var(--line),0 24px 60px -20px #3c2d0a40;
  border-radius: 18px;
  gap: 16px;
  padding: 30px;
  display: grid;
}

.signin h1 {
  font-size: 22px;
}

.signin p {
  color: var(--mute);
  margin-top: -8px;
}

.signin-logo {
  border-radius: 1.125rem;
  justify-self: center;
  width: 5.5rem;
  height: 5.5rem;
  display: block;
}

.jobs-title {
  margin-bottom: 6px;
  font-size: 26px;
}

.grp-title {
  color: var(--mute);
  margin: 26px 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  display: grid;
}

.tile {
  text-align: start;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 14px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 14px 16px;
  transition: background .15s, box-shadow .15s, transform .1s;
  display: flex;
}

.tile:hover {
  background: var(--gold-wash);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.tile:active {
  transform: scale(.98);
}

.tile .ico {
  background: var(--gold-tint);
  width: 40px;
  height: 40px;
  color: var(--gold);
  border-radius: 11px;
  place-items: center;
  display: grid;
}

.tile b {
  font-size: var(--fs-base);
  line-height: 1.4;
  display: block;
}

.tile small {
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1.4;
  display: block;
}

.todo {
  gap: 8px;
  margin-bottom: 8px;
  display: grid;
}

.todo a {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: inherit;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
}

.todo a:hover {
  background: var(--gold-wash);
}

.todo .n {
  color: var(--warn);
  font-variant-numeric: tabular-nums;
  margin-inline-start: auto;
  font-weight: 700;
}

.jobbar {
  background: var(--gold-wash);
  box-shadow: 0 0 0 1px var(--line-strong);
  border-radius: 14px;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 16px;
  display: flex;
}

.jobbar .steps {
  flex: 1;
  gap: 6px;
  min-width: 160px;
  display: flex;
}

.jobbar .steps i {
  background: #e0d6b9;
  border-radius: 3px;
  flex: 1;
  height: 6px;
}

.jobbar .steps i.done {
  background: var(--gold);
}

.jobbar .steps i.now {
  background: #b8963f;
}

.jobbar .hint {
  color: var(--ink-2);
  flex-basis: 100%;
  font-size: 13.5px;
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    transition-duration: .01ms !important;
    animation: none !important;
  }

  .sheet {
    opacity: 0;
    transform: none;
  }

  .sheet.show {
    opacity: 1;
    transition: opacity .2s !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #b8ac8a;
    --mute: #52492f;
  }
}

@media print {
  aside, .topbar, .banner, .tools, .filters, .pager, .actions, .sheet, .toast {
    display: none !important;
  }

  html, body {
    height: auto;
  }

  body {
    display: block;
    overflow: visible;
  }

  .main, .ws {
    overflow: visible;
  }

  .table {
    box-shadow: none;
  }
}

.scrim {
  z-index: 14;
  background: #2b251959;
  animation: .2s fade;
  position: fixed;
  inset: 0;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.sec-head, .thing {
  white-space: nowrap;
}

.thing {
  white-space: normal;
  overflow-wrap: anywhere;
  height: auto;
  min-height: 38px;
  padding-block: 6px;
  line-height: 1.3;
}

.status {
  color: var(--ink-2);
  background: #6f511012;
  border-radius: 12px;
  align-items: flex-start;
  gap: 10px;
  margin: 0 10px 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
}

.status i {
  background: var(--off);
  border-radius: 50%;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 6px;
}

.status.ok i {
  background: var(--good);
  box-shadow: 0 0 0 3px #2a6f452e;
}

.status.bad i {
  background: var(--warn);
  box-shadow: 0 0 0 3px #a63a252e;
}

.status b {
  color: var(--ink);
  font-weight: 600;
  display: block;
}

.status small {
  color: var(--mute);
  display: block;
}

.side-head .ic-btn {
  color: var(--mute);
}

#trigger {
  display: none;
}

html[dir="ltr"] .chev {
  transform: scaleX(-1);
}

html[dir="ltr"] .sec.open .chev {
  transform: rotate(-90deg);
}

html[dir="ltr"] html[dir="ltr"] .back svg {
  transform: scaleX(-1);
}

.sb-collapsed aside {
  width: 68px;
}

.sb-collapsed .brand, .sb-collapsed .sec-head .name, .sb-collapsed .chev, .sb-collapsed .things, .sb-collapsed #fold-all, .sb-collapsed .me > div, .sb-collapsed .status > div {
  display: none;
}

.sb-collapsed .side-head {
  justify-content: center;
  padding-inline: 0;
}

.sb-collapsed .sec-head {
  justify-content: center;
  padding: 0;
}

.sb-collapsed .status {
  justify-content: center;
  margin-inline: 12px;
  padding: 10px 0;
}

@media (max-width: 900px) {
  aside {
    z-index: 15;
    width: 288px;
    transition: transform .28s var(--ease);
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    transform: translateX(100%);
    box-shadow: 0 0 40px #0003;
  }

  html[dir="ltr"] aside {
    transform: translateX(-100%);
  }

  body.sb-open aside {
    transform: none;
  }

  .sb-collapsed aside {
    width: 288px;
  }

  .sb-collapsed .brand, .sb-collapsed .sec-head .name, .sb-collapsed .chev, .sb-collapsed .things, .sb-collapsed .me > div, .sb-collapsed .status > div {
    display: revert;
  }

  #trigger {
    display: grid;
  }

  #collapse {
    display: none;
  }

  .ws, .topbar {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  aside {
    transition: none;
  }
}

ody.sb-collapsed .status {
  justify-content: center;
  margin-inline: 12px;
  padding: 10px 0;
}

.sb-collapsed .status i {
  margin-top: 0;
}

.sb-collapsed .me {
  justify-content: center;
  padding-inline: 0;
}

.sb-collapsed .me .actions button[data-account] {
  display: none;
}

.sb-collapsed .divider {
  margin-inline: 16px;
}

@media (max-width: 900px) {
  aside {
    z-index: 15;
    width: 288px;
    transition: transform .28s var(--ease);
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    transform: translateX(100%);
    box-shadow: 0 0 40px #0003;
  }

  html[dir="ltr"] aside {
    transform: translateX(-100%);
  }

  body.sb-open aside {
    transform: none;
  }

  .sb-collapsed aside {
    width: 288px;
  }

  .sb-collapsed .brand, .sb-collapsed .sec-head .name, .sb-collapsed .chev, .sb-collapsed .things, .sb-collapsed .me > div, .sb-collapsed .status > div {
    display: revert;
  }

  #collapse {
    display: none;
  }

  .gsearch {
    width: 170px;
  }

  .ws, .topbar {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  aside {
    transition: none;
  }
}

.langbar {
  justify-content: center;
  align-items: center;
  margin: 0 10px 8px;
  display: flex;
}

.langbar .seg {
  width: 100%;
}

.langbar .seg button {
  flex: 1;
}

.langbar .short {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  display: none;
}

.sb-collapsed .langbar .seg {
  display: none;
}

.sb-collapsed .langbar .short {
  display: grid;
}

@media (max-width: 900px) {
  .sb-collapsed .langbar .seg {
    display: flex;
  }

  .sb-collapsed .langbar .short {
    display: none;
  }
}

.sel {
  min-width: 0;
  position: relative;
}

.sel-btn {
  width: 100%;
  height: var(--h-field);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transition: box-shadow .15s var(--calm),background .15s var(--calm);
  border: 0;
  border-radius: 10px;
  outline: 0;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  display: flex;
}

.sel-btn:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.sel-btn:focus-visible, .sel-btn[aria-expanded="true"] {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.sel-btn:disabled {
  color: var(--mute);
  cursor: not-allowed;
  background: #f3efe3;
}

.sel-btn.unset .sel-val {
  color: var(--mute);
}

.sel-val {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sel-btn svg {
  color: var(--mute);
  pointer-events: none;
  flex: none;
}

.sel-btn .chev {
  transition: transform .2s var(--calm);
}

.sel-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.field[data-err] .sel-btn {
  box-shadow: inset 0 0 0 2px var(--warn);
}

.lines .sel-btn {
  min-width: 90px;
  height: 34px;
}

.sel.sm {
  vertical-align: middle;
  width: auto;
  min-width: 76px;
  display: inline-block;
}

.sel.sm .sel-btn {
  border-radius: 8px;
  height: 32px;
  padding: 0 10px;
}

.pop {
  z-index: 40;
  box-sizing: border-box;
  background: var(--surface);
  color: var(--ink);
  animation: pop-down .16s var(--calm);
  border-radius: 12px;
  flex-direction: column;
  padding: 4px;
  display: flex;
  position: fixed;
  box-shadow: 0 0 0 1px #2b25191a, 0 12px 32px #2b251929;
}

.pop[data-side="up"] {
  animation-name: pop-up;
}

@keyframes pop-down {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.98);
  }
}

@keyframes pop-up {
  from {
    opacity: 0;
    transform: translateY(4px) scale(.98);
  }
}

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

.act-btn {
  background: var(--surface);
  min-height: 1.75rem;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 0 0 .0625rem var(--line-strong);
  cursor: pointer;
  white-space: nowrap;
  border-radius: .5rem;
  align-items: center;
  gap: .25rem;
  padding: 0 .625rem;
  font-size: .8125rem;
  font-weight: 600;
  display: inline-flex;
}

.act-btn:hover {
  background: var(--gold-wash);
}

.act-btn:active {
  transform: scale(.97);
}

.act-btn:focus-visible {
  outline: .125rem solid var(--gold);
  outline-offset: .125rem;
}

.act-btn[aria-expanded="true"] {
  background: var(--gold-tint);
}

.act-btn:disabled {
  opacity: .5;
  cursor: default;
}

.act-pop {
  width: max-content;
  min-width: 11rem;
}

.act-list {
  flex-direction: column;
  display: flex;
}

.act-item {
  min-height: 1.875rem;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: 0;
  border-radius: .5rem;
  align-items: center;
  gap: .5rem;
  padding: 0 .625rem;
  font-size: .8125rem;
  display: flex;
}

.act-item:hover, .act-item:focus-visible {
  background: var(--gold-wash);
  outline: none;
}

.act-item.danger {
  color: var(--warn);
}

@media (prefers-reduced-motion: reduce) {
  .act-btn:active {
    transform: none;
  }
}

.sel-pop {
  width: max-content;
  min-width: 160px;
  max-width: min(27.5rem, 100vw - 1rem);
}

.sel-search input {
  background: var(--bg);
  width: 100%;
  height: 34px;
  box-shadow: inset 0 0 0 1px var(--line);
  border: 0;
  border-radius: 8px;
  outline: 0;
  padding: 0 10px;
}

.sel-search input:focus {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.sel-pop ul {
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.sel-pop li[role="option"] {
  white-space: nowrap;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 8px;
  align-items: center;
  padding: 7px 32px 7px 8px;
  padding-inline: 8px 32px;
  display: flex;
  position: relative;
}

.sel-pop li .lbl {
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sel-pop li.active {
  background: var(--gold-wash);
}

.sel-pop li .tick {
  color: var(--gold);
  display: none;
  position: absolute;
  inset-inline-end: 8px;
}

.sel-pop li[aria-selected="true"] .tick {
  display: flex;
}

.sel-pop li[aria-selected="true"] {
  font-weight: 600;
}

.sel-empty {
  text-align: center;
  color: var(--mute);
  padding: 12px 8px;
}

.dp-pop {
  width: 272px;
  padding: 10px;
}

.dp-head {
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  display: flex;
}

.dp-nav, .dp-title, .dp-foot button, .dp-pick button, .dp-day {
  cursor: pointer;
  transition: background .12s var(--calm),color .12s var(--calm);
  background: none;
  border: 0;
  border-radius: 8px;
  outline: 0;
}

.dp-nav {
  width: 30px;
  height: 30px;
  color: var(--ink-2);
  place-items: center;
  display: grid;
}

[dir="rtl"] .dp-nav svg {
  transform: scaleX(-1);
}

.dp-title {
  flex: 1;
  height: 30px;
  font-weight: 600;
}

.dp-nav:hover, .dp-title:hover, .dp-foot button:hover:not(:disabled), .dp-pick button:hover {
  background: var(--gold-wash);
}

.dp-grid {
  text-align: center;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  display: grid;
}

.dp-wd {
  color: var(--mute);
  padding: 4px 0;
  font-size: 12px;
}

.dp-day {
  font-variant-numeric: tabular-nums;
  height: 34px;
}

.dp-day:hover:not(:disabled) {
  background: var(--gold-wash);
}

.dp-day.out {
  color: var(--mute);
}

.dp-day.today {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.dp-day.sel, .dp-pick .sel {
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
}

.dp-day:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.dp-nav:focus-visible, .dp-title:focus-visible, .dp-day:focus-visible, .dp-pick button:focus-visible, .dp-foot button:focus-visible {
  box-shadow: 0 0 0 2px var(--gold);
}

.dp-pick {
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  display: grid;
}

.dp-pick button {
  height: 40px;
}

.dp-foot {
  border-top: 1px solid var(--line-soft);
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  display: flex;
}

.dp-foot button {
  height: 30px;
  color: var(--gold);
  padding: 0 12px;
  font-weight: 600;
}

.dp-foot button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .pop {
    animation: none;
  }

  .sel-btn .chev {
    transition: none;
  }
}

.things li.row {
  align-items: center;
  gap: 2px;
  display: flex;
}

.things li.row .thing {
  flex: 1;
  min-width: 0;
}

.pin {
  width: 30px;
  height: 30px;
  color: var(--mute);
  opacity: 0;
  transition: opacity .15s var(--calm),background .15s,color .15s;
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.things li.row:hover .pin, .pin:focus-visible, .pin[aria-pressed="true"] {
  opacity: 1;
}

.pin:hover {
  background: var(--gold-wash);
  color: var(--ink);
}

.pin[aria-pressed="true"] {
  color: var(--gold);
}

.pin[aria-pressed="true"] svg {
  fill: currentColor;
}

.things li.hint {
  color: var(--mute);
  padding: 6px 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

@media (hover: none) {
  .pin {
    opacity: 1;
  }
}

:root {
  --topbar: 0px;
  --gap: 16px;
}

.sheet {
  inset-block: calc(var(--topbar) + var(--gap)) var(--gap);
  inset-inline: var(--gap);
  width: auto;
  max-width: none;
  transform: translateX(calc(-100% - 40px));
}

.sheet.show {
  transform: none;
}

html[dir="ltr"] .sheet {
  transform: translateX(calc(100% + 40px));
}

html[dir="ltr"] .sheet.show {
  transform: none;
}

.sheet header {
  padding: 20px 28px 12px;
}

.sheet .body {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: 4px 28px 20px;
}

.sheet footer {
  padding: 14px 28px;
}

.topbar {
  min-height: var(--topbar);
}

@media (prefers-reduced-motion: reduce) {
  .sheet, html[dir="ltr"] .sheet {
    opacity: 0;
    transform: none;
  }

  .sheet.show, html[dir="ltr"] .sheet.show {
    opacity: 1;
  }
}

.sheet h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.sheet .grp-title, .card h3, .card .grp-title {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  margin: 28px 0 4px;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.sheet .kv span:first-child, .card .kv span:first-child {
  color: var(--mute);
  font-size: 14px;
  font-weight: 400;
}

.sheet .kv span:last-child, .card .kv span:last-child {
  color: var(--ink);
  font-weight: 600;
}

.sheet .grp-title, .card h3, .card .grp-title {
  background: var(--gold-tint);
  color: var(--gold);
  border: 0;
  border-radius: 999px;
  align-items: center;
  gap: .5em;
  margin: 26px 0 8px;
  padding: 5px 16px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  display: inline-flex;
}

.sheet .body > .grp-title:first-child, .card > h3:first-child {
  margin-top: 4px;
}

.sheet .grp-title small, .card h3 small, .card .grp-title small {
  font-weight: 400;
}

input::placeholder, textarea::placeholder {
  font-family: var(--font);
  letter-spacing: 0;
}

.main {
  overflow: clip;
}

.topbar {
  display: none;
}

@media (max-width: 900px) {
  .topbar {
    display: flex;
  }

  :root {
    --topbar: 56px;
  }
}

.sheet .grp-title {
  align-self: flex-start;
}

.grp-panel {
  background: var(--bubble);
  border-radius: 22px;
  grid-template-columns: max-content minmax(0, 1fr);
  align-self: stretch;
  align-items: baseline;
  column-gap: 28px;
  margin: 0 0 6px;
  padding: 12px 26px;
  display: grid;
}

.grp-panel .kv {
  display: contents;
}

.grp-panel .kv span {
  text-align: start;
  padding: 9px 0;
}

.grp-panel .kv span:first-child {
  color: var(--mute);
}

.grp-panel > :not(.kv) {
  grid-column: 1 / -1;
}

.grp-panel .note {
  margin-block: 10px;
}

.grp-panel .table {
  background: var(--surface);
  margin-block: 10px;
}

.sheet .grp-title + .grp-panel {
  margin-top: 2px;
}

.home {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: start;
  gap: 16px;
  display: grid;
}

.bubble {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft);
  border-radius: 26px;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px 22px;
  display: flex;
}

.bubble .pill {
  background: var(--gold-tint);
  color: var(--gold);
  border-radius: 999px;
  align-self: flex-start;
  padding: 5px 16px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
}

.b-price {
  background: #f6efd8;
}

.b-pins {
  background: #eef1e8;
}

.b-pins .pill {
  color: #3f5a2f;
  background: #dfe6d4;
}

.b-recent {
  background: #f1ece0;
}

.b-recent .pill {
  color: #5a4d2a;
  background: #e6dfcc;
}

.b-find {
  background: #fff;
}

.b-alert {
  background: #f9e9e4;
}

.b-alert .pill {
  color: #8a2f1c;
  background: #f2d3ca;
}

.price {
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.price b {
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.price span {
  color: var(--mute);
}

.quiet-note {
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.6;
}

.find {
  gap: 8px;
  display: flex;
}

.find .search {
  flex: 1;
  max-width: none;
}

.recent-list {
  gap: 4px;
  list-style: none;
  display: grid;
}

.recent-list a {
  color: inherit;
  transition: background .15s var(--calm);
  border-radius: 14px;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  display: flex;
}

.recent-list a:hover {
  background: #6f511014;
}

.recent-list small {
  color: var(--mute);
}

.alert-row {
  color: inherit;
  background: #fff;
  border-radius: 16px;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
}

.alert-row b {
  color: var(--warn);
}

.sec-head[aria-current="page"] {
  background: var(--gold-tint);
  color: var(--gold);
  font-weight: 700;
}

.sec-head[aria-current="page"] .ico {
  color: var(--gold);
}

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

a.btn.primary {
  color: var(--gold-ink);
}

.sheet .body.sections {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  align-content: start;
  gap: 6px 22px;
  max-width: 1500px;
  display: grid;
}

.sheet .body.sections > :not(.grp-block) {
  grid-column: 1 / -1;
}

.grp-block {
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin-top: 18px;
  display: flex;
}

.grp-block.wide {
  grid-column: 1 / -1;
}

.grp-block .grp-title {
  align-self: flex-start;
  margin: 0;
}

.sheet .grp-block .grp-panel {
  margin: 0;
}

.sheet .body.sections > .grp-block:first-child, .sheet .body.sections > .grp-block:nth-child(2) {
  margin-top: 4px;
}

.sections {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  align-content: start;
  gap: 6px 22px;
  max-width: 1500px;
  display: grid;
}

.sections > :not(.grp-block) {
  grid-column: 1 / -1;
}

.grp-panel {
  background: var(--bubble);
  border-radius: 22px;
  padding: 14px 26px;
}

.grp-panel.formgrid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
  gap: 14px 18px;
  display: grid;
}

.grp-panel.formgrid .wide {
  grid-column: 1 / -1;
}

.grp-panel .field input:not([type="checkbox"]):not([type="radio"]), .grp-panel .field textarea, .grp-panel .sel-btn, .grp-panel .dp-btn {
  background: #fff;
}

.card {
  background: var(--bubble);
  box-shadow: none;
  border-radius: 22px;
  padding: 16px 24px;
}

.filters {
  background: var(--bubble);
  box-shadow: none;
  border-radius: 22px;
}

.sheet .body > form {
  display: block;
}

.grp-panel.formgrid > :not(.kv) {
  grid-column: auto;
}

.grp-panel.formgrid > .wide {
  grid-column: 1 / -1;
}

.sections > .grp-block:only-child {
  margin-top: 4px;
}

.table {
  background: var(--bubble);
  box-shadow: none;
  border-radius: 22px;
  padding: 6px 12px;
}

.table th {
  background: none;
  border-bottom: 1px solid #3c2d0a1a;
}

.table td {
  border-bottom: 1px solid #3c2d0a0f;
}

.table tr.grp td {
  background: #3c2d0a0d;
  border-bottom: 0;
}

.table tr.foot td {
  background: none;
}

.table .empty {
  padding: 1.25rem 1.5rem;
}

.sel-pop li[aria-disabled="true"], .sel li[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}

.sections {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 22px;
  max-width: none;
  display: flex;
}

.sections > :not(.grp-block) {
  flex: 100%;
}

.grp-block {
  min-width: 0;
}

.grp-block.kv-block {
  flex: 0 auto;
  width: fit-content;
  max-width: 100%;
}

.grp-block.kv-block .grp-panel {
  width: fit-content;
  min-width: min(100%, 300px);
  max-width: 100%;
}

.grp-block:not(.kv-block):not(.wide) {
  flex: 400px;
}

.grp-block.wide {
  flex: 100%;
}

.home {
  flex-wrap: wrap;
  align-items: flex-start;
  display: flex;
}

.bubble {
  flex: 0 auto;
  width: fit-content;
  min-width: min(100%, 340px);
  max-width: 100%;
}

.b-find, .b-alert {
  flex: 340px;
  width: auto;
}

:has( > .kv) {
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: 28px;
  display: grid;
}

:has( > .kv) > :not(.kv) {
  grid-column: 1 / -1;
}

.kv {
  border: 0;
  display: contents;
}

.kv > span {
  text-align: start;
  padding: 9px 0;
}

.kv > span:first-child {
  color: var(--mute);
  font-weight: 400;
}

.kv > span:last-child {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.totals {
  max-width: none;
}

.req {
  color: #c0392b;
  margin-inline-start: 2px;
  font-weight: 700;
}

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

aside {
  scrollbar-width: thin;
  scrollbar-color: #cfc4a6 transparent;
  direction: ltr;
  display: block;
  overflow: hidden auto;
}

html[dir="ltr"] aside {
  direction: rtl;
}

.side-inner {
  direction: rtl;
  flex-direction: column;
  min-height: 100%;
  display: flex;
}

html[dir="ltr"] .side-inner {
  direction: ltr;
}

aside nav {
  flex: 1 0 auto;
  padding-bottom: 12px;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.side-head {
  z-index: 2;
  background: var(--side);
  position: sticky;
  top: 0;
}

.side-foot {
  z-index: 2;
  background: var(--side);
  padding-top: 6px;
  position: sticky;
  bottom: 0;
}

.side-foot .me {
  border-top: 1px solid #e3dac4;
}

aside::-webkit-scrollbar {
  width: 10px;
}

aside::-webkit-scrollbar-thumb {
  border: 2px solid var(--side);
  background: #cfc4a6;
  border-radius: 10px;
}

@media (max-width: 900px) {
  aside {
    direction: rtl;
  }

  html[dir="ltr"] aside {
    direction: ltr;
  }
}

.table {
  background: var(--bubble);
  padding: 10px 14px 12px;
}

.table table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table th {
  height: var(--h-th);
  color: #6a6048;
  letter-spacing: 0;
  background: none;
  border: 0;
  padding: 0 18px;
  font-size: 12.5px;
  font-weight: 700;
}

.table td {
  height: var(--h-row);
  transition: background .15s var(--calm);
  background: #fff;
  border: 0;
  padding: 0 18px;
}

.table td:first-child {
  border-start-start-radius: 16px;
  border-end-start-radius: 16px;
}

.table td:last-child {
  border-start-end-radius: 16px;
  border-end-end-radius: 16px;
}

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

.table tr.row:hover td {
  background: #fffaf0;
}

.table tr.row[aria-selected="true"] td {
  background: var(--gold-tint);
}

.table tr.row.deleted td {
  background: #f3efe6;
}

.table tr.grp td {
  height: var(--h-row);
  background: var(--gold-wash);
  color: var(--gold);
  font-weight: 700;
}

.table tr.foot td {
  height: var(--h-row);
  background: var(--gold-tint);
  color: var(--ink);
  font-weight: 700;
}

.table tr.foot td:first-child {
  color: var(--gold);
}

.table .empty {
  background: none;
}

.pager {
  padding: 12px 6px 0;
}

dialog.lock {
  width: min(420px, 92vw);
}

dialog.lock .field {
  margin: 14px 0 8px;
}

dialog.lock .err {
  color: var(--warn);
  margin-bottom: 10px;
  font-size: 13px;
}

dialog.lock p {
  margin-bottom: 6px;
}

a.tile, a.tile:hover {
  color: inherit;
  text-decoration: none;
}

a.tile b {
  color: var(--ink);
}

.jobbar {
  flex: none;
  align-self: stretch;
  height: auto;
}

.ts-row {
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  display: flex;
}

.ts-row b {
  text-align: center;
  font-variant-numeric: tabular-nums;
  min-width: 48px;
}

.table th, .table td, .table .num, th.num, td.num {
  text-align: start;
}

.table td.num, .table td .num {
  font-variant-numeric: tabular-nums;
}

.jobs-page {
  flex-direction: column;
  gap: 14px;
  width: 100%;
  display: flex;
}

.jobs-page .bubble {
  flex: none;
  width: 100%;
  max-width: none;
}

.jobs-page .head {
  margin-bottom: 0;
}

.jobs-groups {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.jobs-search {
  flex: none;
  max-width: 520px;
  height: 44px;
}

.jobs-search input {
  font-size: var(--fs-base);
}

.b-purpose {
  background: var(--surface);
}

.b-done {
  background: #e9f2ea;
}

.b-done .pill {
  color: var(--good);
  background: #d3e6d8;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.b-todo {
  background: #f9f1e1;
}

.b-todo .pill {
  color: #7a4a12;
  background: #f0e1c4;
}

.quiet-note.warn {
  color: var(--warn);
}

.b-done .grp-title {
  margin: 6px 0 0;
}

.tile {
  min-height: 64px;
}

.tile:focus-visible, .jt-go:focus-visible, .jobbar .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.tile b {
  font-weight: 600;
}

.jt-list {
  gap: 8px;
  list-style: none;
  display: grid;
}

.jt-row {
  background: var(--surface);
  min-height: 48px;
  box-shadow: 0 0 0 1px var(--line-soft);
  border-radius: 14px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 8px 16px;
  display: flex;
}

.jt-row.warn {
  background: #fdf1ec;
}

.jt-ico {
  color: var(--warn);
  place-items: center;
  display: grid;
}

.jt-text {
  flex: 1;
  min-width: 200px;
}

.jt-go {
  min-height: 36px;
  color: var(--gold);
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.jt-go:hover {
  text-decoration: underline;
}

.jt-arrow {
  place-items: center;
  display: inline-grid;
}

[dir="rtl"] .jt-arrow svg, [dir="rtl"] .jobbar .jb-fwd, [dir="rtl"] .jobbar .jb-back {
  transform: scaleX(-1);
}

.jobbar {
  z-index: 2;
  align-items: flex-start;
  margin: 8px 28px 0;
  position: relative;
}

.jobbar .jb-main {
  flex-direction: column;
  flex: 1;
  gap: 3px;
  min-width: 220px;
  display: flex;
}

.jobbar .jb-title {
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.5;
}

.jobbar .hint {
  flex-basis: auto;
  font-size: 13.5px;
}

.jobbar ol.steps {
  flex: none;
  gap: 6px;
  min-width: 0;
  max-width: 420px;
  margin-top: 2px;
  list-style: none;
  display: flex;
}

.jobbar .steps li {
  min-width: 10px;
  height: 6px;
  transition: background .2s var(--calm, ease-out);
  background: #e0d6b9;
  border-radius: 3px;
  flex: 1;
}

.jobbar .steps li.m-saved {
  background: var(--good);
}

.jobbar .steps li.m-passed {
  background: var(--gold);
}

.jobbar .steps li.m-skipped {
  background: repeating-linear-gradient(90deg, #c9a24a 0 3px, #e9dcb3 3px 6px);
}

.jobbar .steps li.m-current {
  box-shadow: 0 0 0 2px var(--gold-tint);
  background: #b8963f;
}

.jobbar .steps li.m-locked {
  background: #d9b6ac;
}

.jobbar .jb-saved {
  color: var(--good);
  font-size: 13px;
}

.jobbar .jb-locked {
  color: var(--warn);
  align-items: center;
  gap: 4px;
  font-size: 13px;
  display: inline-flex;
}

.jobbar .jb-btns {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  display: flex;
}

.jobbar .btn.sm {
  height: 36px;
}

.jobs-gate {
  margin-top: 24px;
}

@media (max-width: 700px) {
  .jobbar {
    margin: 6px 12px 0;
  }

  .jobbar .jb-btns {
    justify-content: flex-end;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jobbar .steps li {
    transition: none;
  }
}

.sec-head .name {
  text-overflow: ellipsis;
  min-width: 0;
  overflow: hidden;
}

.sec-head .ico, .sec-head .chev {
  flex: none;
}

.tile .ico {
  aspect-ratio: 1;
  border-radius: 11px;
  flex: none;
  width: 40px;
  height: 40px;
}

.tile .ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tile > b, .tile > span:not(.ico) {
  min-width: 0;
}

.usearch {
  width: calc(100% - 24px);
  height: var(--h-search);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--mute);
  text-align: start;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  margin: 2px 12px 8px;
  padding: 0 10px;
  font-size: 14px;
  transition: box-shadow .15s;
  display: flex;
}

.usearch:hover {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.usearch .name {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.usearch kbd {
  background: var(--gold-tint);
  color: var(--gold);
  border-radius: 6px;
  padding: 3px 6px;
  font: 600 11px / 1 inherit;
}

.sb-collapsed .usearch {
  justify-content: center;
  width: 38px;
  margin-inline: auto;
  padding: 0;
}

.sb-collapsed .usearch .name, .sb-collapsed .usearch kbd {
  display: none;
}

dialog.palette {
  background: var(--surface);
  width: min(620px, 94vw);
  max-height: 78vh;
  color: var(--ink);
  border: 0;
  border-radius: 18px;
  margin: 8vh auto auto;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 70px #3c280547;
}

dialog.palette .pal-in {
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  display: flex;
}

dialog.palette .pal-in input {
  color: var(--ink);
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  font-size: 16px;
}

dialog.palette .pal-list {
  max-height: 60vh;
  padding: 8px;
  overflow: auto;
}

dialog.palette .pal-grp {
  color: var(--mute);
  margin: 10px 8px 4px;
  font-size: 12px;
  font-weight: 700;
}

dialog.palette .pal-item {
  text-align: start;
  width: 100%;
  color: var(--ink);
  border-radius: 11px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  display: flex;
}

dialog.palette .pal-item[aria-selected="true"] {
  background: var(--gold-tint);
}

dialog.palette .pal-item .ico {
  background: var(--gold-tint);
  width: 32px;
  height: 32px;
  color: var(--gold);
  border-radius: 9px;
  flex: none;
  place-items: center;
  display: grid;
}

dialog.palette .pal-item small {
  color: var(--mute);
  font-size: 12.5px;
  display: block;
}

dialog.palette .pal-empty {
  text-align: center;
  color: var(--mute);
  padding: 26px;
}

:is(.seg:not(:has(.thumb)) button[aria-pressed="true"], .seg:not(:has(.thumb)) button[aria-selected="true"]) {
  background: var(--surface);
  box-shadow: 0 1px 2px #3c2d0a2e;
}

.seg button {
  transition: color .18s var(--calm),background .18s var(--calm),box-shadow .18s var(--calm);
}

.status {
  border-radius: 999px;
  align-items: center;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 7px 14px 7px 12px;
  font-size: 13px;
  transition: background .25s, color .25s;
}

.status i {
  margin-top: 0;
}

.status b {
  color: inherit;
  font-weight: 700;
}

.status.ok {
  color: #1f5a38;
  background: #2a6f4521;
}

.status.bad {
  color: #8a2f1d;
  background: #a63a2521;
}

.status:not(.ok):not(.bad) {
  color: #7a5710;
  background: #b07d1424;
}

.status:not(.ok):not(.bad) i {
  background: #c28a1a;
  animation: 1.1s ease-in-out infinite pulse;
  box-shadow: 0 0 0 3px #c28a1a33;
}

.status.bad i {
  animation: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .status:not(.ok):not(.bad) i {
    animation: none;
  }
}

.status i {
  display: none;
}

.sb-collapsed .status i {
  display: block;
}

.sec-head {
  font-size: 14.5px;
}

.usearch-box {
  margin: 2px 12px 8px;
  position: relative;
}

.usearch-box .usearch {
  cursor: text;
  width: 100%;
  margin: 0;
  padding: 0 6px 0 10px;
}

.usearch-box .usearch:focus-within {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.usearch input {
  min-width: 0;
  color: var(--ink);
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
  height: 100%;
  font-size: 14px;
}

.usearch input::placeholder {
  color: var(--mute);
}

.usearch .kbd-btn {
  border-radius: 6px;
  place-items: center;
  padding: 0;
  display: grid;
}

.usearch-pop {
  z-index: 40;
  inset-inline: 0;
  background: var(--surface);
  max-height: min(60vh, 520px);
  box-shadow: 0 0 0 1px var(--line),0 18px 44px #3c280533;
  animation: popin .14s var(--calm);
  border-radius: 14px;
  padding: 6px;
  position: absolute;
  top: calc(100% + 6px);
  overflow: auto;
}

.usearch-pop .pal-item {
  text-align: start;
  width: 100%;
  color: var(--ink);
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  font-size: 14px;
  display: flex;
}

.usearch-pop .pal-item[aria-selected="true"] {
  background: var(--gold-tint);
}

.usearch-pop .pal-item .ico {
  background: var(--gold-tint);
  width: 28px;
  height: 28px;
  color: var(--gold);
  border-radius: 8px;
  flex: none;
  place-items: center;
  display: grid;
}

.usearch-pop .pal-item small {
  color: var(--mute);
  font-size: 12px;
  display: block;
}

.usearch-pop .pal-grp {
  color: var(--mute);
  margin: 8px 8px 3px;
  font-size: 11.5px;
  font-weight: 700;
}

.usearch-pop .pal-empty {
  text-align: center;
  color: var(--mute);
  padding: 16px;
  font-size: 13px;
}

.usearch-pop .pal-more {
  width: 100%;
  color: var(--mute);
  text-align: center;
  border-radius: 10px;
  margin-top: 4px;
  padding: 8px;
  font-size: 12.5px;
}

.usearch-pop .pal-more:hover {
  background: var(--gold-wash);
}

@keyframes popin {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .usearch-pop {
    animation: none;
  }
}

.sb-collapsed .usearch-box {
  width: 38px;
  margin-inline: auto;
}

.sb-collapsed .usearch input, .sb-collapsed .usearch .kbd-btn {
  display: none;
}

dialog.palette {
  border-radius: 22px;
  width: min(860px, 96vw);
  max-height: 88vh;
  margin: 5vh auto auto;
}

dialog.palette .pal-in {
  padding: 18px 22px;
  font-size: 18px;
}

dialog.palette .pal-list {
  max-height: calc(88vh - 90px);
}

html[dir="ltr"] input[dir="ltr"], html[dir="ltr"] textarea[dir="ltr"] {
  text-align: left !important;
}

html[dir="rtl"] input[dir="ltr"], html[dir="rtl"] textarea[dir="ltr"] {
  text-align: right !important;
}

html[dir="ltr"] input:not([dir="ltr"]), html[dir="ltr"] textarea:not([dir="ltr"]) {
  text-align: left !important;
}

html[dir="rtl"] input:not([dir="ltr"]), html[dir="rtl"] textarea:not([dir="ltr"]) {
  text-align: right !important;
}

html[dir="ltr"] .field input[type="checkbox"], html[dir="rtl"] .field input[type="checkbox"] {
  text-align: initial;
}

.sel-pop .sel-add {
  border-top: 1px solid var(--line);
  color: var(--gold);
  text-align: start;
  border-radius: 9px;
  margin: 4px 6px 6px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.sel-pop .sel-add:hover, .sel-pop .sel-add:focus-visible {
  background: var(--gold-tint);
  outline: 0;
}

.filters {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  align-items: start;
  gap: 14px 16px;
  display: grid;
}

.filters .field {
  flex-direction: column;
  flex: none;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.filters .field > label {
  min-height: 20px;
  margin: 0;
  line-height: 20px;
}

.filters .field .help, .filters .field .err {
  margin: 0;
  font-size: 12px;
}

.filters .btn {
  place-self: start;
  min-width: 110px;
  margin-top: 26px;
}

.ver {
  letter-spacing: .02em;
  color: var(--mute);
  -webkit-user-select: all;
  user-select: all;
  text-align: start;
  margin: 2px 14px 10px;
  font-size: 11.5px;
}

.sb-collapsed .ver {
  display: none;
}

dialog.palette {
  background: var(--surface);
  width: min(460px, 100vw - 24px);
  height: auto;
  max-height: none;
  color: var(--ink);
  border: 0;
  border-radius: 16px;
  flex-direction: column;
  margin: 0;
  padding: 0;
  display: flex;
  position: fixed;
  inset-block: 12px;
  inset-inline: auto 12px;
  overflow: hidden;
  box-shadow: 0 28px 64px -16px #3c2d0a4d, 0 2px 10px #3c2d0a14;
}

dialog.palette:not([open]) {
  display: none;
}

dialog.palette::backdrop {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: #2b251938;
}

dialog.palette[open] {
  animation: sheet-in-rtl .34s var(--ease);
}

html[dir="ltr"] dialog.palette[open] {
  animation-name: sheet-in-ltr;
}

@keyframes sheet-in-rtl {
  from {
    opacity: .4;
    transform: translateX(calc(-100% - 28px));
  }
}

@keyframes sheet-in-ltr {
  from {
    opacity: .4;
    transform: translateX(calc(100% + 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.palette[open] {
    animation: none;
  }
}

dialog.palette .pal-in {
  border-bottom: 1px solid var(--line-soft);
  flex: none;
  padding: 16px 16px 12px 20px;
  font-size: 16px;
}

dialog.palette .pal-in input {
  font-size: 16px;
}

dialog.palette .pal-list {
  overscroll-behavior: contain;
  contain: content;
  flex: 1;
  max-height: none;
  padding: 6px 10px 14px;
  overflow: auto;
}

dialog.palette .pal-item {
  contain: layout paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 52px;
}

.seg {
  flex: none;
  align-items: center;
}

.seg.page, .filters, .tools, .pager, .head {
  flex: none;
}

.foot-top {
  align-items: center;
  gap: 8px;
  margin: 0 10px 6px;
  display: flex;
}

.foot-top .status {
  flex: none;
  gap: 6px;
  margin: 0;
  padding: 4px 10px 4px 8px;
  font-size: 12px;
}

.foot-top .status i {
  width: 7px;
  height: 7px;
  box-shadow: none;
  display: block;
}

.foot-top .langbar {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.foot-top .seg {
  border-radius: 9px;
  padding: 2px;
}

.foot-top .seg button {
  border-radius: 7px;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
}

.side-foot .me {
  gap: 8px;
  padding: 8px 12px 10px;
}

.side-foot .me .who {
  min-width: 0;
  line-height: 1.25;
  display: grid;
}

.side-foot .me .who b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 650;
  overflow: hidden;
}

.side-foot .me .who small {
  color: var(--mute);
  font-size: 11.5px;
}

.side-foot .me .ver {
  color: var(--mute);
  text-align: start;
  margin: 1px 0 0;
  font-size: 10.5px;
}

.side-foot .me .ic-btn {
  width: 28px;
  height: 28px;
}

.sb-collapsed .foot-top {
  flex-direction: column;
  width: 38px;
  margin-inline: auto;
}

.sb-collapsed .foot-top .status {
  background: none;
  padding: 0;
}

.sb-collapsed .foot-top .status i {
  display: block;
}

.sb-collapsed .side-foot .me .who {
  display: none;
}

.sb-collapsed .usearch-box {
  width: 38px;
  margin: 2px auto 8px;
}

.sb-collapsed .usearch {
  justify-content: center;
  gap: 0;
  width: 38px;
  padding: 0;
}

.sb-collapsed .foot-top {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 6px;
}

.sb-collapsed .foot-top .status {
  background: none;
  justify-content: center;
  width: 38px;
  height: 22px;
  margin: 0;
  padding: 0;
}

.sb-collapsed .foot-top .langbar {
  flex: none;
  place-items: center;
  width: 38px;
  margin: 0;
  display: grid;
}

.sb-collapsed .foot-top .langbar .short {
  place-items: center;
  width: 34px;
  height: 28px;
  display: grid;
}

.sb-collapsed .side-foot .me {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 8px 0 10px;
}

.sb-collapsed .side-foot .me .actions {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  display: flex;
}

.sb-collapsed .side-foot .me .ic-btn {
  width: 34px;
  height: 34px;
}

.st-page {
  flex-direction: column;
  gap: 6px;
  max-width: 1180px;
  display: flex;
}

.st-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 22px;
  display: grid;
}

.st-main {
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.st-prev {
  position: sticky;
  top: 76px;
}

.st-card {
  text-align: center;
  justify-items: center;
  gap: 6px;
  display: grid;
}

.st-card h2 {
  margin: 6px 0 0;
  font-size: 19px;
}

#logo-box {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
  display: flex;
}

#logo-box img {
  box-shadow: 0 0 0 1px var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 6px;
}

@media (max-width: 1100px) {
  .st-grid {
    grid-template-columns: 1fr;
  }

  .st-prev {
    position: static;
  }
}

.st-main > .grp-block, .st-main > .sections, .st-prev {
  flex: none;
  height: auto;
  min-height: 0;
}

.st-main .sections {
  margin: 0;
}

.st-prev .grp-title {
  text-align: start;
  align-self: flex-start;
}

.st-card p {
  text-align: center;
  unicode-bidi: plaintext;
}

.st-card {
  padding-block: 18px;
}

.st-main > .grp-block, .st-main > .sections > .grp-block {
  flex: none !important;
}

.st-main > .grp-block .grp-title, .st-prev .grp-title {
  text-align: start;
}

.st-prev {
  flex-direction: column;
  align-items: stretch;
  display: flex;
}

.st-prev .grp-title {
  align-self: flex-start;
  margin-inline-start: 2px;
}

html:not([data-ready]) *, html:not([data-ready]) :before, html:not([data-ready]) :after {
  transition: none !important;
  animation: none !important;
}

html:not([data-ready]) #nav, html:not([data-ready]) .side-foot, html:not([data-ready]) #usearch {
  opacity: 0;
}

#nav, .side-foot, #usearch {
  transition: opacity .14s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  #nav, .side-foot, #usearch {
    transition: none;
  }
}

.foot-top {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 10px 4px;
}

.foot-top .status {
  flex: none;
  gap: 5px;
  margin: 0;
  padding: 3px 9px 3px 8px;
  font-size: 11.5px;
  line-height: 18px;
}

.foot-top .langbar {
  flex: none;
  width: auto;
  min-width: 0;
  margin: 0;
  margin-inline-start: auto;
}

.foot-top .langbar .seg {
  border-radius: 8px;
  gap: 1px;
  width: auto;
  padding: 2px;
  overflow: visible;
}

.foot-top .langbar .seg button {
  border-radius: 6px;
  flex: none;
  min-width: 0;
  height: 22px;
  padding: 0 9px;
  font-size: 11.5px;
}

.side-foot .me {
  padding: 6px 12px 8px;
}

.side-foot {
  padding-top: 2px;
}

.formbar {
  z-index: 6;
  background: #ebe0c3;
  border-radius: 16px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 4px;
  padding: 10px 12px;
  display: flex;
  position: sticky;
  bottom: 12px;
  box-shadow: 0 0 0 1px #6f511038, 0 12px 30px -12px #3c280561;
}

.formbar .btn {
  height: 38px;
}

.formbar .btn.quiet, .formbar .btn:not(.primary) {
  background: #f7f2e4;
}

.formbar .mute, .formbar #st-note, .formbar [role="status"] {
  color: #5b4310;
  background: #6f51101f;
  border-radius: 999px;
  margin-inline-start: auto;
  padding: 4px 10px 4px 8px;
  font-size: 12.5px;
  font-weight: 600;
}

.formbar .mute:empty, .formbar #st-note:empty {
  display: none;
}

.formbar .mute:before {
  content: "";
  vertical-align: 1px;
  background: #b8860b;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  margin-inline-end: 6px;
  display: inline-block;
}

.sheet .formbar {
  border-radius: 0 0 16px 16px;
  margin: 0 -20px -16px;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -1px #6f511038;
}

.st-prev .grp-title {
  text-align: start;
  align-self: stretch;
  width: auto;
}

:is(.grp-panel:has( > .table:only-child), .grp-panel:has( > div:only-child > .table:only-child)) {
  box-shadow: none;
  background: none;
  border-radius: 0;
  padding: 0;
}

.grp-panel > .table:only-child, .grp-panel > div:only-child > .table:only-child {
  background: var(--bubble);
  border-radius: 22px;
  margin-block: 0;
  padding: 6px 12px;
}

.table:has( > table > tbody > tr > td > [data-piece-history],  > table > tbody > tr > td > [data-customer-piece]) {
  box-shadow: none;
  background: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

:is(.table:has( > table > tbody > tr > td > [data-piece-history]) > table > thead, .table:has( > table > tbody > tr > td > [data-customer-piece]) > table > thead) {
  display: none;
}

:is(.table:has( > table > tbody > tr > td > [data-piece-history]) > table > tbody > tr, .table:has( > table > tbody > tr > td > [data-customer-piece]) > table > tbody > tr) {
  box-shadow: none;
  background: none;
}

:is(.table:has( > table > tbody > tr > td > [data-piece-history]) > table > tbody > tr > td, .table:has( > table > tbody > tr > td > [data-customer-piece]) > table > tbody > tr > td) {
  background: none;
  border: 0;
  padding: 0;
}

[data-piece-history] .grp-block.kv-block {
  width: 100%;
  max-width: none;
}

[data-piece-history] .grp-block .grp-panel {
  width: auto;
  min-width: min(100%, 320px);
  max-width: 100%;
}

.bank-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 10px;
}

.bank-rm {
  padding-top: 24px;
}

.card-head {
  justify-content: space-between;
  align-items: center;
  gap: var(--gap);
  display: flex;
}

.card-head h3 {
  margin: 0;
}

.item-row {
  margin-top: var(--gap);
  align-items: end;
}

.add-row {
  margin-top: var(--gap);
}

.saved-line {
  gap: var(--gap);
  margin-bottom: var(--gap);
  display: grid;
}

.preview-line {
  margin-bottom: var(--gap);
}

@media (max-width: 640px) {
  .bank-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bank-row .field:first-child {
    grid-column: 1 / -1;
  }
}

.pay-sum {
  background: var(--side);
  border-radius: 14px;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 16px;
  display: flex;
}

.pay-sum b {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  font-size: 18px;
}

.totals-bar {
  background: var(--side);
  border-radius: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  margin-top: 14px;
  padding: 4px;
  display: grid;
}

.tb-cell {
  border-radius: 12px;
  min-width: 0;
  padding: 10px 12px;
}

.tb-cell b {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.3;
  display: block;
}

.tb-cell .help {
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1.35;
}

.tb-cell[data-cell="gross"], .tb-cell[data-cell="left"] {
  background: var(--surface);
}

.tb-cell[data-cell="gross"] b, .tb-cell[data-cell="left"] b {
  font-size: 19px;
}

@media (max-width: 900px) {
  .totals-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.price-btn {
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  text-underline-offset: 3px;
  cursor: help;
  border-radius: 6px;
  margin: -2px -6px;
  padding: 2px 6px;
  font-weight: 600;
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  transition: background .15s;
}

.price-btn:hover, .price-btn[aria-expanded="true"] {
  background: var(--gold-wash);
}

.price-btn:active {
  transform: scale(.97);
}

.price-out {
  min-height: var(--h-field);
  background: var(--side);
  border-radius: 10px;
  justify-content: flex-end;
  align-items: center;
  padding: 0 12px;
  display: flex;
}

.breakdown {
  background: var(--gold-wash);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: normal;
  border-radius: 12px;
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .price-btn, .price-btn:active {
    transition: none;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  .totals-bar, .pay-sum, .breakdown, .price-out {
    box-shadow: inset 0 0 0 1px var(--ink-2);
  }
}

.copy-btn {
  min-width: 36px;
  height: 36px;
  color: var(--mute);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
  place-items: center;
  padding: 0;
  transition: background .15s, color .15s, transform .1s ease-out;
  display: inline-grid;
  position: relative;
}

@media (pointer: coarse) {
  .copy-btn {
    min-width: 44px;
    height: 44px;
  }
}

.copy-btn:hover {
  background: var(--gold-wash);
  color: var(--ink);
}

.copy-btn:active {
  transform: scale(.92);
}

.copy-btn .copy-mark {
  place-items: center;
  display: inline-grid;
}

.copy-btn .copy-ico, .copy-btn .copy-ok {
  grid-area: 1 / 1;
  display: block;
}

.copy-btn .copy-ico {
  transition: opacity .16s, transform .3s cubic-bezier(.2, .9, .3, 1);
}

.copy-btn .copy-ok {
  opacity: 0;
  transition: opacity .12s, transform .1s;
  transform: scale(.55);
}

.copy-btn .copy-ok path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1px;
}

.copy-btn.solid {
  height: var(--h-btn);
  background: var(--gold);
  color: var(--gold-ink);
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: 0 1rem;
  font-weight: 600;
  display: inline-flex;
}

.copy-btn.solid:hover:not(:disabled) {
  background: var(--gold);
  color: var(--gold-ink);
  filter: brightness(.88);
}

.copy-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.copy-btn.done, .copy-btn.solid.done {
  color: #2f6b3a;
  background: #e6efe1;
}

.copy-btn.done .copy-ico {
  opacity: 0;
  transform: scale(.6);
}

.copy-btn.done .copy-ok {
  opacity: 1;
  transition: opacity .12s, transform .38s cubic-bezier(.2, .9, .3, 1);
  transform: scale(1);
}

.copy-btn.done .copy-ok path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .3s ease-out 50ms;
}

@media (prefers-reduced-motion: reduce) {
  .copy-btn .copy-ico, .copy-btn .copy-ok, .copy-btn.done .copy-ok {
    transition: opacity .15s !important;
    transform: none !important;
  }

  .copy-btn .copy-ok path, .copy-btn.done .copy-ok path {
    stroke-dashoffset: 0;
    transition: none !important;
  }
}

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

.stepper input {
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex: 1;
  min-width: 0;
}

.step-btn {
  background: var(--gold-wash);
  min-width: 44px;
  height: 36px;
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  flex: none;
  padding: 0 8px;
  font-weight: 600;
  transition: background .15s, transform .1s ease-out;
}

@media (pointer: coarse) {
  .step-btn {
    min-width: 44px;
    height: 44px;
  }
}

.step-btn:hover {
  background: var(--gold-tint);
}

.step-btn:active {
  transform: scale(.96);
}

.step-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .step-btn {
    transition: background .15s !important;
  }

  .step-btn:active {
    transform: none;
  }
}

.side-foot .me a.ver {
  text-decoration: none;
}

.side-foot .me a.ver:hover {
  color: var(--ink);
  text-decoration: underline;
}

.wn-dot {
  background: var(--warn);
  vertical-align: middle;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-inline-start: 6px;
  display: inline-block;
}

.wn {
  flex-direction: column;
  gap: 18px;
  max-width: 860px;
  display: flex;
}

.wn-release h2 {
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 18px;
  display: flex;
}

.wn-release h2 small {
  color: var(--mute);
  margin-inline-start: auto;
  font-size: 12.5px;
  font-weight: 400;
}

.wn-latest {
  background: var(--gold-tint);
  color: var(--gold);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 12px;
  font-weight: 700;
}

.wn-release ul {
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.wn-change {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 12px;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  display: flex;
}

.wn-kind {
  text-align: center;
  background: var(--gold-tint);
  min-width: 58px;
  color: var(--gold);
  border-radius: 999px;
  flex: none;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

.wn-kind.wn-k-fixed {
  color: #3f5b2c;
  background: #e9efe4;
}

.wn-kind.wn-k-better {
  color: #365a80;
  background: #e8edf3;
}

.wn-text {
  flex: 1;
  min-width: 0;
}

.wn-text p {
  margin: 0 0 6px;
  line-height: 1.7;
}

.wn-where {
  color: var(--mute);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
}

.wn-where b {
  color: var(--ink);
}

.notif-scrim {
  z-index: 15;
  position: fixed;
  inset: 0;
}

.notif {
  z-index: 16;
  top: 58px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5ddc8);
  border-radius: 14px;
  width: min(340px, 100vw - 24px);
  max-height: 70vh;
  animation: .15s fade;
  position: fixed;
  inset-inline-start: 12px;
  overflow: auto;
  box-shadow: 0 12px 32px #2b25192e;
}

.notif header {
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 6px 14px;
  display: flex;
}

.notif h2 {
  font-size: var(--fs-base);
  margin: 0;
}

.notif-empty {
  text-align: center;
  color: var(--mute);
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 18px 26px;
  display: flex;
}

.notif-empty b {
  color: var(--ink);
}

.notif-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.notif-ico {
  background: var(--gold-wash);
  width: 44px;
  height: 44px;
  color: var(--gold);
  border-radius: 50%;
  place-items: center;
  display: grid;
}

div.table {
  display: block;
}

.sc-summary {
  margin: 14px 0;
}

.sc-sum-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  display: flex;
}

.sc-live {
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  display: inline-flex;
}

.sc-live i {
  background: var(--good);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px #2a6f4529;
}

.sc-live.off i {
  background: var(--warn);
  box-shadow: 0 0 0 3px #a63a2529;
}

.sc-live.frozen i {
  background: var(--off);
  box-shadow: none;
}

.sc-progress {
  align-items: center;
  gap: 12px;
  margin: 10px 0 12px;
  display: flex;
}

.sc-bar {
  background: var(--line-soft);
  height: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 999px;
  flex: 1;
  overflow: hidden;
}

.sc-bar span {
  background: var(--good);
  transform-origin: 0;
  height: 100%;
  transition: transform .4s var(--calm);
  display: block;
}

[dir="rtl"] .sc-bar span {
  transform-origin: 100%;
}

.sc-pct {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 700;
}

.sc-tiles {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  display: grid;
}

.sc-tile {
  background: var(--gold-wash);
  box-shadow: inset 0 0 0 1px var(--line);
  font-variant-numeric: tabular-nums;
  border-radius: 12px;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  display: flex;
}

.sc-tile-k {
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
}

.sc-tile-n {
  letter-spacing: -.02em;
  color: var(--ink);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  line-height: 1.05;
}

.sc-tile small {
  color: var(--mute);
}

.sc-grams {
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

[dir="rtl"] .sc-tile .sc-grams, [dir="rtl"] .sc-tile small {
  text-align: right;
}

.sc-tile.good .sc-tile-n {
  color: var(--good);
}

.sc-tile.warn .sc-tile-n {
  color: var(--warn);
}

.sc-alldone {
  color: var(--good);
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 600;
  display: flex;
}

.sc-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  display: flex;
}

.sc-search {
  flex: 220px;
  min-width: 0;
}

.sc-check {
  color: var(--ink-2);
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: inline-flex;
}

.sc-table {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-bottom: 6px;
  overflow-x: auto;
}

.sc-table table {
  min-width: max-content;
}

.sc-table th, .sc-table td {
  padding: 0 12px;
}

.sc-sort {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.sc-done {
  color: var(--good);
  font-weight: 600;
}

.sc-done svg {
  vertical-align: -2px;
  margin-inline-end: 4px;
}

.sc-code {
  align-items: center;
  gap: 2px;
  font-family: monospace;
  font-size: 14px;
  display: inline-flex;
}

.sc-mute {
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.sc-last {
  color: var(--good);
  animation: sc-pop .32s var(--calm);
  background: #2a6f4514;
  border-radius: 14px;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  padding: 14px 16px;
  display: flex;
  box-shadow: inset 0 0 0 1px #2a6f4540;
}

.sc-last.already {
  color: var(--info);
  background: #2c5d8a14;
  box-shadow: inset 0 0 0 1px #2c5d8a40;
}

.sc-last.refused {
  color: var(--warn);
  background: #a63a2514;
  box-shadow: inset 0 0 0 1px #a63a2547;
}

.sc-last > div {
  min-width: 0;
  color: var(--ink);
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.sc-last-k {
  color: inherit;
  font-size: 12.5px;
  font-weight: 700;
}

.sc-last.ok .sc-last-k {
  color: var(--good);
}

.sc-last.already .sc-last-k {
  color: var(--info);
}

.sc-last.refused .sc-last-k {
  color: var(--warn);
}

.sc-last-code {
  letter-spacing: -.01em;
  font-family: monospace;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
}

.sc-last-d {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

@keyframes sc-pop {
  from {
    opacity: .4;
    transform: scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.sc-refused {
  color: var(--ink-2);
  margin: 0 0 12px;
  font-size: 13px;
}

.sc-refused ul {
  margin: 6px 0 0;
  padding-inline-start: 18px;
}

.sc-preview {
  max-width: min(560px, 80vw);
}

.sc-preview .table {
  margin: 8px 0;
}

.sc-preview-items {
  max-height: 40vh;
  overflow: auto;
}

@media (prefers-reduced-motion: reduce) {
  .sc-bar span {
    transition: none;
  }

  .sc-last {
    animation: .2s sc-fade;
  }
}

@keyframes sc-fade {
  from {
    opacity: .4;
  }

  to {
    opacity: 1;
  }
}

#sc-code, #sc-go, #sc-savebtn, #sc-del, #sc-camtoggle, #sc-retry, .sc-search {
  height: var(--h-field);
}

#sc-code, .sc-search {
  padding-block: 0;
}

.sc-table td {
  height: var(--h-row);
  padding: 0 12px;
}

.sc-table th {
  height: var(--h-th);
  padding: 0 12px;
}

.sc-table table {
  border-spacing: 0 3px;
}

.sc-code .copy-btn {
  border-radius: 8px;
  min-width: 28px;
  height: 28px;
}

@media (pointer: coarse) {
  .sc-code .copy-btn:before {
    content: "";
    position: absolute;
    inset: -8px;
  }
}

@media (max-width: 520px) {
  .sc-tools .seg {
    max-width: 100%;
  }

  .sc-tools .seg button {
    padding: 0 9px;
    font-size: 12.5px;
  }
}

.bpr {
  --bpr-h: 32px;
  --bpr-primary: 34px;
  --bpr-sm: 28px;
}

@media (max-width: 520px) {
  .bpr {
    --bpr-h: 36px;
    --bpr-primary: 38px;
    --bpr-sm: 32px;
  }
}

.bpr.card, .bpr .card {
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
}

.bpr .card h3, .bpr.card h3 {
  font-size: var(--fs-base);
  margin: 0 0 8px;
}

.bpr h4 {
  font-size: 13.5px;
}

.bpr .formgrid {
  gap: 10px;
}

.bpr .field label {
  margin-bottom: 4px;
  font-size: 13px;
}

.bpr .field input:not([type="checkbox"]):not([type="radio"]), .bpr .field select, .bpr .sel-btn {
  height: var(--bpr-h);
  border-radius: 8px;
  padding-inline: 10px;
  font-size: 13.5px;
}

.bpr .btn {
  height: var(--bpr-h);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13.5px;
}

.bpr .btn.primary {
  height: var(--bpr-primary);
}

.bpr .btn.sm {
  height: var(--bpr-sm);
  padding: 0 10px;
  font-size: 13px;
}

.bpr .kv {
  padding: 6px 0;
  font-size: 13.5px;
}

.bpr .pay-sum {
  border-radius: 10px;
  margin-top: 10px;
  padding: 8px 12px;
}

.bpr .pay-sum b {
  font-size: var(--fs-base);
}

.bpr .bank-row {
  align-items: end;
  margin-bottom: 8px;
}

.bpr .bank-rm {
  padding-top: 0;
}

.bpr .bank-row .bank-rm .btn {
  height: var(--bpr-sm);
}

.bpr .formbar {
  border-radius: 12px;
  margin: 8px 0 0;
  padding: 8px 12px;
}

.bpr .formbar .btn {
  height: var(--bpr-h);
}

.bpr .formbar .btn.primary {
  height: var(--bpr-primary);
}

.bpr .copy-btn {
  min-width: var(--bpr-sm);
  height: var(--bpr-sm);
  border-radius: 8px;
}

.bpr .copy-btn svg {
  width: 16px;
  height: 16px;
}

@media (pointer: coarse) {
  .bpr .btn, .bpr .sel-btn, .bpr .copy-btn {
    position: relative;
  }

  .bpr .btn:before, .bpr .sel-btn:before, .bpr .copy-btn:before {
    content: "";
    position: absolute;
    inset: -4px;
  }

  .bpr .btn.sm:before, .bpr .copy-btn:before {
    inset: -8px;
  }
}

@media (max-width: 520px) {
  .bpr.card, .bpr .card {
    padding: 12px;
  }

  .bpr .formbar .btn.primary {
    flex: 1;
  }
}

.sheet:has(.bpr-rec) {
  --bpr-h: 32px;
  --bpr-sm: 28px;
}

@media (max-width: 520px) {
  .sheet:has(.bpr-rec) {
    --bpr-h: 36px;
    --bpr-sm: 32px;
  }
}

.sheet:has(.bpr-rec) footer {
  padding: 10px 16px;
}

.sheet:has(.bpr-rec) footer .btn {
  height: var(--bpr-h);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13.5px;
}

.bpr-rec .kv {
  padding: 6px 0;
  font-size: 13.5px;
}

@media (pointer: coarse) {
  .sheet:has(.bpr-rec) footer .btn {
    position: relative;
  }

  .sheet:has(.bpr-rec) footer .btn:before {
    content: "";
    position: absolute;
    inset: -4px;
  }
}

.bpr.card .kv {
  justify-content: flex-start;
  gap: 12px;
}

.bpr.card .kv span:first-child {
  flex: 0 0 8.5rem;
}

.bpr.card .kv span:last-child {
  text-align: start;
  overflow-wrap: anywhere;
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 520px) {
  .bpr.card .kv span:first-child {
    flex-basis: 7rem;
  }
}

html[dir="rtl"] .bpr.card .kv span:last-child {
  text-align: right;
}

html[dir="ltr"] .bpr.card .kv span:last-child {
  text-align: left;
}

.sel-btn:focus-visible, .sel-btn[aria-expanded="true"] {
  box-shadow: inset 0 0 0 1px var(--gold),0 0 0 3px var(--gold);
}

@supports (color: color-mix(in lab, red, red)) {
  .sel-btn:focus-visible, .sel-btn[aria-expanded="true"] {
    box-shadow: inset 0 0 0 1px var(--gold),0 0 0 3px color-mix(in srgb,var(--gold) 16%,transparent);
  }
}

.sel-search {
  padding: 2px 2px 4px;
}

.sel-search input {
  height: 30px;
  font-size: 13px;
}

.sel-search input:focus {
  box-shadow: inset 0 0 0 1px var(--gold),0 0 0 3px var(--gold);
}

@supports (color: color-mix(in lab, red, red)) {
  .sel-search input:focus {
    box-shadow: inset 0 0 0 1px var(--gold),0 0 0 3px color-mix(in srgb,var(--gold) 16%,transparent);
  }
}

.sel-pop li[role="option"] {
  min-height: 30px;
  padding-block: 5px;
  font-size: 13px;
}

input[type="checkbox"]:not([role="switch"]) {
  appearance: none;
  background: var(--surface);
  width: 16px;
  height: 16px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  border-radius: 5px;
  flex: none;
  place-content: center;
  margin: 0;
  transition: background .12s, box-shadow .12s;
  display: inline-grid;
}

input[type="checkbox"]:not([role="switch"]):before {
  content: "";
  border: 0 solid #fff;
  border-width: 0 0 1.75px 1.75px;
  width: 8px;
  height: 4px;
  transition: transform .12s;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
}

input[type="checkbox"]:not([role="switch"]):checked {
  background: var(--gold);
  box-shadow: none;
}

input[type="checkbox"]:not([role="switch"]):checked:before {
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

input[type="checkbox"]:not([role="switch"]):indeterminate {
  background: var(--gold);
  box-shadow: none;
}

input[type="checkbox"]:not([role="switch"]):indeterminate:before {
  border-width: 1.75px 0 0;
  width: 8px;
  height: 0;
  transform: none;
}

input[type="checkbox"]:not([role="switch"]):focus-visible {
  outline: 2px solid var(--gold);
}

@supports (color: color-mix(in lab, red, red)) {
  input[type="checkbox"]:not([role="switch"]):focus-visible {
    outline: 2px solid color-mix(in srgb,var(--gold) 45%,transparent);
  }
}

input[type="checkbox"]:not([role="switch"]):focus-visible {
  outline-offset: 2px;
}

input[type="checkbox"]:not([role="switch"]):disabled {
  opacity: .5;
  cursor: not-allowed;
}

.chk {
  min-height: 28px;
  color: var(--ink-2);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: inline-flex;
}

.chk:has(input:disabled) {
  cursor: not-allowed;
}

html[dir="rtl"] .table th[dir="ltr"], html[dir="rtl"] .table td[dir="ltr"] {
  text-align: right;
}

html[dir="ltr"] .table th[dir="ltr"], html[dir="ltr"] .table td[dir="ltr"] {
  text-align: left;
}

input[role="switch"], .field.check input[role="switch"] {
  appearance: none;
  background: var(--line-strong);
  cursor: pointer;
  border-radius: 999px;
  flex: none;
  width: 28px;
  height: 16px;
  margin: 0;
  transition: background .15s;
  position: relative;
}

input[role="switch"]:before {
  content: "";
  top: 2px;
  width: 12px;
  height: 12px;
  transition: inset-inline-start .15s var(--calm);
  background: #fff;
  border-radius: 50%;
  position: absolute;
  inset-inline-start: 2px;
  box-shadow: 0 1px 2px #3c2d0a4d;
}

input[role="switch"]:checked {
  background: var(--good);
}

input[role="switch"]:checked:before {
  inset-inline-start: 14px;
}

input[role="switch"]:focus-visible {
  outline: 2px solid var(--good);
}

@supports (color: color-mix(in lab, red, red)) {
  input[role="switch"]:focus-visible {
    outline: 2px solid color-mix(in srgb,var(--good) 45%,transparent);
  }
}

input[role="switch"]:focus-visible {
  outline-offset: 2px;
}

input[role="switch"]:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.disc-head {
  background: var(--gold-wash);
  width: fit-content;
  max-width: 100%;
  min-height: 2rem;
  box-shadow: inset 0 0 0 1px var(--line);
  line-height: 1.4;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s,transform .12s var(--calm);
  border: 0;
  border-radius: 9px;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem;
  font-size: .84rem;
  font-weight: 550;
  display: inline-flex;
  position: relative;
}

.disc-head:after {
  content: "";
  position: absolute;
  inset: -4px -2px;
}

.disc-head:hover {
  background: var(--gold-wash);
}

@supports (color: color-mix(in lab, red, red)) {
  .disc-head:hover {
    background: color-mix(in srgb,var(--gold-wash) 70%,var(--gold-tint));
  }
}

.disc-head:active {
  transform: scale(.98);
}

.disc-head:focus-visible {
  outline: .125rem solid var(--gold);
}

@supports (color: color-mix(in lab, red, red)) {
  .disc-head:focus-visible {
    outline: .125rem solid color-mix(in srgb,var(--gold) 55%,transparent);
  }
}

.disc-head:focus-visible {
  outline-offset: .125rem;
}

.disc-chev {
  color: var(--mute);
  flex: none;
  transition: transform .16s;
}

.disc-head[aria-expanded="true"] .disc-chev {
  transform: rotate(180deg);
}

.disc-body {
  grid-template-rows: 1fr;
  padding-top: .5rem;
  animation: .16s disc-in;
  display: grid;
}

.disc-body > div {
  min-height: 0;
}

@keyframes disc-in {
  from {
    opacity: 0;
    grid-template-rows: 0fr;
    overflow: hidden;
  }

  to {
    opacity: 1;
    grid-template-rows: 1fr;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .disc-chev {
    transition: none;
  }

  .disc-body {
    animation: none;
  }

  .disc-head {
    transition: none;
  }

  .disc-head:active {
    transform: none;
  }
}

.tbtn {
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

.tbtn:focus-visible {
  outline: 2px solid var(--gold);
}

@supports (color: color-mix(in lab, red, red)) {
  .tbtn:focus-visible {
    outline: 2px solid color-mix(in srgb,var(--gold) 45%,transparent);
  }
}

.tbtn:focus-visible {
  outline-offset: 2px;
  border-radius: 4px;
}

:root {
  --fs-base: 14px;
  --fs-table: 13.5px;
  --fs-title: 20px;
  --h-field: 32px;
  --h-btn: 32px;
  --h-btn-sm: 28px;
  --h-row: 38px;
  --h-th: 32px;
  --h-search: 32px;
}

@media (max-width: 640px) {
  :root {
    --h-field: 34px;
    --h-btn: 34px;
    --h-row: 40px;
  }
}

h1 {
  font-size: var(--fs-title);
}

.btn {
  padding: 0 14px;
  font-size: 13.5px;
}

.btn.sm {
  padding: 0 10px;
  font-size: 13px;
}

.formbar .btn, .jobbar .btn.sm {
  height: var(--h-btn);
}

.field input:not([type="checkbox"]):not([type="radio"]), .field select, .sel-btn {
  font-size: var(--fs-base);
}

.bank-row .bank-rm .btn {
  height: var(--h-field);
}

td, .table td {
  font-size: var(--fs-table);
}

.table td, .table th {
  padding: 0 14px;
}

.lines td, .lines th {
  height: var(--h-row);
}

.search input {
  align-self: stretch;
  height: 100%;
}

input[data-kind="money"], input[data-kind="number"] {
  width: 100%;
  min-width: 80px;
  max-width: 140px;
}

input[data-kind="date"] {
  width: 100%;
  min-width: 140px;
  max-width: 180px;
}

input[data-kind="code"], input[data-kind="phone"] {
  width: 100%;
  min-width: 160px;
  max-width: 240px;
}

input[data-kind="text"] {
  width: 100%;
  min-width: 200px;
  max-width: 320px;
}

.field:has(.sel-btn) {
  max-width: 320px;
}

@media (min-width: 700px) {
  .formbar:not(.sheet .formbar):not(#sd .formbar):not(dialog .formbar) {
    width: fit-content;
    max-width: 100%;
  }
}

input, textarea, select, .sel-btn {
  line-height: 1.9;
}

.sheet {
  max-height: calc(100% - var(--topbar) - 2*var(--gap));
  inset-block-end: auto;
}

.sheet .body {
  flex: 0 auto;
  min-height: 0;
}

.sheet footer {
  border-top: 0;
  width: fit-content;
  max-width: 100%;
  margin-inline-start: auto;
  padding: .5rem 1.75rem 1rem;
}

.sheet .formbar {
  border-radius: 1rem 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 -16px;
  margin-inline-start: auto;
}

@media (max-width: 43.6875rem) {
  .sheet {
    inset-block: auto var(--gap);
    max-height: 90%;
  }

  .sheet footer {
    padding-inline: 1rem;
  }
}

.filters .field.check {
  min-height: var(--h-field);
  flex-direction: row;
  align-self: end;
  align-items: center;
  gap: .5rem;
}

.home .bubble {
  gap: .5rem;
  padding: .75rem .875rem;
}

.home .bubble .pill {
  padding: .1875rem .75rem;
  font-size: .8125rem;
}

.home .b-pins, .home .b-recent {
  flex: 16.25rem;
  align-self: stretch;
  width: auto;
  min-width: min(100%, 16.25rem);
  max-width: none;
}

.home .tile {
  min-height: 3.25rem;
  padding: .5rem .75rem;
}

.home .recent-list a {
  padding: .375rem .625rem;
}

div.empty svg {
  width: 1.25rem;
  height: 1.25rem;
}

div.table:has( > .empty) {
  flex: none;
  min-height: 0;
}

.search, .sc-search {
  flex: 0 26.25rem;
  width: 100%;
  max-width: 26.25rem;
}

.scanrow {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem;
  width: fit-content;
  max-width: 100%;
  display: flex;
}

.scanrow > div {
  flex: 0 auto;
  min-width: 0;
}

input[data-kind="note"] {
  width: 100%;
  max-width: 35rem;
}

.stepper {
  width: fit-content;
  max-width: 100%;
}

.stepper input {
  flex: 0 auto;
  width: 100%;
}

.filters {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem 1rem;
  display: flex;
}

.filters .field {
  flex: none;
  width: auto;
  min-width: 0;
}

.filters .field input[data-kind] {
  width: 100%;
}

.filters .field:has(.sel-btn) {
  width: 15rem;
}

.filters .field:has(input[data-kind="money"], input[data-kind="number"]) {
  width: 8.75rem;
}

.filters .field:has(input[data-kind="code"], input[data-kind="phone"]) {
  width: 12.5rem;
}

.filters .field:has(input[data-kind="text"]) {
  width: 15rem;
}

.filters .field:has(.dp) {
  width: 10.625rem;
}

.filters .field:has(input[data-kind="money"], input[data-kind="number"], input[data-kind="code"], input[data-kind="phone"], input[data-kind="text"]) .sel-btn {
  max-width: 100%;
}

.table.narrow {
  flex: none;
  align-self: flex-start;
  width: fit-content;
  min-width: 16.25rem;
  max-width: 30rem;
  height: fit-content;
}

.wn {
  max-width: 72ch;
}

@media (max-width: 43.6875rem) {
  :is(.filters .field, .filters .field:has(.sel-btn), .filters .field:has(.dp), .filters .field:has(input[data-kind])) {
    width: 100%;
    max-width: none;
  }
}

html[dir="rtl"] :is(b, strong, dd, div, p, small)[dir="ltr"]:not(#sd *) {
  text-align: right;
}

.filters-bar {
  background: var(--gold-wash);
  border-radius: 1.4rem;
  flex-wrap: wrap;
  flex: none;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .9rem;
  padding: .65rem 1rem;
  display: flex;
}

.filters-bar .fb-sum {
  flex-wrap: wrap;
  flex: 1;
  align-items: center;
  gap: .4rem .5rem;
  min-width: 0;
  display: flex;
}

.filters-bar .fb-chip {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 62rem;
  align-items: baseline;
  gap: .25rem;
  padding: .2rem .65rem;
  font-size: .8rem;
  display: inline-flex;
}

.filters-bar .fb-chip b {
  color: var(--mute);
  font-weight: 600;
}

.filters-bar .fb-none {
  color: var(--mute);
  font-size: .8rem;
}

@media print {
  .filters-bar {
    display: none !important;
  }
}

.grp-block .grp-title {
  background: var(--gold-tint);
  color: var(--gold);
  font: inherit;
  border: 0;
  border-radius: 999px;
  align-items: center;
  gap: .5em;
  padding: .3rem 1rem;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.5;
  display: inline-flex;
}

button.grp-title {
  cursor: pointer;
}

button.grp-title:focus-visible {
  outline: .125rem solid var(--gold);
}

@supports (color: color-mix(in lab, red, red)) {
  button.grp-title:focus-visible {
    outline: .125rem solid color-mix(in srgb,var(--gold) 55%,transparent);
  }
}

button.grp-title:focus-visible {
  outline-offset: .125rem;
}

.grp-toggle .disc-chev {
  transition: transform .16s;
}

.grp-toggle[aria-expanded="true"] .disc-chev {
  transform: rotate(180deg);
}

.grp-panel, .card, .filters, .table:not(.grp-panel .table) {
  background: var(--bubble);
  box-shadow: 0 0 0 .0625rem var(--line-strong);
}

.grp-panel .table {
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .grp-toggle .disc-chev {
    transition: none;
  }
}

.grp-panel .disc-head, .card .disc-head, .tk-card .disc-head {
  background: none;
  padding-inline: 0;
  font-weight: 600;
}

.grp-panel .disc-head:hover, .card .disc-head:hover, .tk-card .disc-head:hover {
  background: none;
  text-decoration: underline;
}

.search, .usearch {
  height: auto;
  min-height: var(--h-search);
}

.search input, .usearch input {
  height: max(var(--h-search),1.9em);
}

.field input:not([type="checkbox"]):not([type="radio"]), .field select, .sel-btn {
  height: max(var(--h-field),1.9em);
}

.sel-search input {
  height: max(2.125rem, 1.9em);
}

.table tr.row:hover td, .grp-panel .table tr.row:hover td {
  background: var(--gold);
}

@supports (color: color-mix(in lab, red, red)) {
  .table tr.row:hover td, .grp-panel .table tr.row:hover td {
    background: color-mix(in srgb,var(--gold) 14%,var(--surface));
  }
}

.tk-card .seg button:not([aria-pressed="true"]):hover, .card .seg button:not([aria-pressed="true"]):hover {
  background: var(--gold);
}

@supports (color: color-mix(in lab, red, red)) {
  .tk-card .seg button:not([aria-pressed="true"]):hover, .card .seg button:not([aria-pressed="true"]):hover {
    background: color-mix(in srgb,var(--gold) 14%,var(--line-strong));
  }
}

#sd .grp-block, #sd .grp-block.kv-block {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

#sd .grp-block .grp-panel, #sd .grp-block.kv-block .grp-panel {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.sel-pop li .lbl.two {
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
  display: flex;
}

.sel-pop li .lbl .sub {
  color: var(--mute);
  text-overflow: ellipsis;
  font-size: .85em;
  font-weight: 400;
  display: block;
  overflow: hidden;
}

.sel-brands {
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 2px 6px;
  display: flex;
}

.sel-pop li[data-tone="good"] {
  box-shadow: inset 3px 0 0 var(--good);
  background: var(--good);
}

@supports (color: color-mix(in lab, red, red)) {
  .sel-pop li[data-tone="good"] {
    background: color-mix(in srgb,var(--good) 8%,transparent);
  }
}

.sel-pop li[data-tone="good"] .lbl {
  color: var(--good);
}

.sel-pop li[data-tone="bad"] {
  box-shadow: inset 3px 0 0 var(--warn);
  background: var(--warn);
}

@supports (color: color-mix(in lab, red, red)) {
  .sel-pop li[data-tone="bad"] {
    background: color-mix(in srgb,var(--warn) 7%,transparent);
  }
}

.sel-pop li[data-tone="bad"] .lbl {
  color: var(--warn);
}

.sel-pop li[data-tone="bad"][aria-disabled="true"] {
  opacity: 1;
  cursor: not-allowed;
}

.sel-pop li[data-tone="bad"] .lbl .sub {
  color: inherit;
  opacity: .75;
}

[dir="rtl"] .sel-pop li[data-tone="good"] {
  box-shadow: inset -3px 0 0 var(--good);
}

[dir="rtl"] .sel-pop li[data-tone="bad"] {
  box-shadow: inset -3px 0 0 var(--warn);
}

.sel-pop li.active[data-tone] {
  background: var(--gold-wash);
}

.tp-designer {
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  align-items: start;
  gap: 1rem;
  display: grid;
}

.tp-canvas {
  flex-direction: column;
  gap: .625rem;
  min-width: 0;
  display: flex;
  position: sticky;
  top: .75rem;
}

.tp-stage {
  background: var(--bg);
  border-radius: .75rem;
  justify-content: center;
  align-items: center;
  height: clamp(14rem, 46vh, 32rem);
  padding: 1.5rem;
  display: flex;
  overflow: hidden;
}

.tp-fit {
  flex: none;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.tp-paper {
  box-shadow: 0 0 0 .0625rem var(--line-strong),0 .25rem .875rem #0000002e;
  background: #fff;
  flex: none;
}

.tp-resize {
  width: .875rem;
  height: .875rem;
  box-shadow: 0 0 0 .125rem var(--gold),0 .0625rem .1875rem #00000040;
  cursor: nwse-resize;
  touch-action: none;
  z-index: 3;
  background: #fff;
  border-radius: .25rem;
  position: absolute;
}

.tp-resize:before {
  content: "";
  position: absolute;
  inset: -.625rem;
}

.tp-width {
  width: .375rem;
  height: 1.125rem;
  box-shadow: 0 0 0 .125rem var(--gold),0 .0625rem .1875rem #00000040;
  cursor: ew-resize;
  touch-action: none;
  z-index: 3;
  background: #fff;
  border-radius: .1875rem;
  position: absolute;
}

.tp-width.across {
  cursor: ns-resize;
  width: 1.125rem;
  height: .375rem;
}

.tp-width:before {
  content: "";
  position: absolute;
  inset: -.625rem;
}

.tp-dirs {
  grid-template-columns: max-content max-content;
  justify-content: start;
  align-items: center;
  gap: .5rem .875rem;
  display: grid;
}

.tp-dir {
  display: contents;
}

.tp-dir .lbl {
  color: var(--ink-2);
  font-size: .8rem;
}

[dir="rtl"] .tp-designer {
  direction: ltr;
}

[dir="rtl"] .tp-designer > * {
  direction: rtl;
}

.tp-bar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .625rem;
  display: flex;
}

.tp-inspector {
  flex-direction: column;
  gap: .75rem;
  min-width: 0;
  display: flex;
}

.tp-pure {
  background: var(--bg);
  border-radius: .75rem;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  margin: 0;
  padding: .75rem;
  display: flex;
}

.tp-fields {
  grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
  gap: .75rem;
  display: grid;
}

.tp-thumb {
  border: .0625rem solid var(--line-strong);
  background: #fff;
  border-radius: .75rem;
  justify-content: center;
  align-items: center;
  width: 6rem;
  height: 6rem;
  padding: .375rem;
  display: flex;
}

.tp-thumb img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.tp-lines {
  flex-direction: column;
  gap: .625rem;
  display: flex;
}

.tp-line {
  border: .0625rem solid var(--line-strong);
  border-radius: .75rem;
  flex-direction: column;
  gap: .625rem;
  padding: .75rem;
  display: flex;
}

.tp-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
  display: flex;
}

.tp-designer .help {
  color: var(--mute);
  font-size: .78rem;
  line-height: 1.4;
}

@media (max-width: 60em) {
  .tp-designer {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-canvas {
    z-index: 4;
    top: 0;
  }

  .tp-stage {
    height: clamp(10rem, 32vh, 18rem);
    padding: 1rem;
  }
}

.cb-mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.cb-pos {
  z-index: 60;
}

.cb-pop {
  --cb-shadow: 0 0 0 1px #2b25191a,0 12px 32px #2b251929;
  min-width: var(--anchor-width);
  box-sizing: border-box;
  background: var(--surface);
  width: max-content;
  max-width: min(27.5rem, 100vw - 1rem);
  color: var(--ink);
  box-shadow: var(--cb-shadow);
  border-radius: .75rem;
  outline: 0;
  padding: .25rem;
}

.cb-list {
  max-height: min(15rem,var(--available-height, 15rem));
  overscroll-behavior: contain;
  scrollbar-width: none;
  overflow: auto;
}

.cb-list::-webkit-scrollbar {
  display: none;
}

.cb-item {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  border-radius: .5rem;
  align-items: baseline;
  gap: .625rem;
  min-height: 1.875rem;
  padding: .3125rem .5rem;
  font-size: .8125rem;
  line-height: 1.5;
  display: flex;
}

.cb-item[data-highlighted] {
  background: var(--gold-wash);
}

.cb-text {
  font-variant-numeric: tabular-nums;
  flex: none;
  font-weight: 600;
}

.cb-hint {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--mute);
  flex: 1;
  overflow: hidden;
}

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

/*# sourceMappingURL=src_app_globals_162hn9oqc8uss.css.map*/