﻿/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or
    ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *,
    ::backdrop,
    :after,
    :before {
      --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-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 {
  :host,
  :root {
    --font-sans:
      ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono:
      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *,
  ::backdrop,
  :after,
  :before {
    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;
  }
  :host,
  html {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(
      --default-font-family,
      ui-sans-serif,
      system-ui,
      sans-serif,
      "Apple Color Emoji",
      "Segoe UI Emoji",
      "Segoe UI Symbol",
      "Noto Color Emoji"
    );
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b,
  strong {
    font-weight: bolder;
  }
  code,
  kbd,
  pre,
  samp {
    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: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  menu,
  ol,
  ul {
    list-style: none;
  }
  audio,
  canvas,
  embed,
  iframe,
  img,
  object,
  svg,
  video {
    vertical-align: middle;
    display: block;
  }
  img,
  video {
    max-width: 100%;
    height: auto;
  }
  button,
  input,
  optgroup,
  select,
  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,
  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-day-field,
  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-hour-field,
  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }
  ::-webkit-datetime-edit-millisecond-field,
  ::-webkit-datetime-edit-second-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,
  ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer components;
@layer utilities {
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .table {
    display: table;
  }
  .table-row {
    display: table-row;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,)
      var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,)
      var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,)
      var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
}
@font-face {
  font-family: B Yekan;
  src: url(/fonts/BYekan.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #141311;
  --ink-2: #1c1a17;
  --paper: #f3f0e9;
  --card: #fff;
  --gold: #b69255;
  --gold-light: #d7bd8d;
  --muted: #77736c;
  --line: #ded9cf;
  --green: #37735c;
  --orange: #9b6834;
  --red: #a0463f;
}
* {
  box-sizing: border-box;
}
body,
html {
  background: var(--paper);
}
body {
  color: var(--ink);
  margin: 0;
  font-size: 14px;
  overflow-x: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
.login-page {
  background: var(--ink);
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100dvh;
  display: grid;
}
.login-art {
  color: #fff;
  background: radial-gradient(
    circle at 26% 26%,
    #454035 0,
    #24211d 27%,
    #141311 64%
  );
  align-items: flex-end;
  min-height: 100dvh;
  padding: 8vw;
  display: flex;
  position: relative;
  overflow: hidden;
}
.login-art:before {
  content: "R";
  color: #ffffff06;
  font:
    700 46vw/1 B Yekan,
    sans-serif;
  position: absolute;
  top: -12vw;
  left: -2vw;
}
.gold-orbit {
  border: 1px solid #d7bd8d33;
  width: 38vw;
  height: 38vw;
  top: 4vw;
  right: 4vw;
  box-shadow:
    0 0 0 5vw #d7bd8d06,
    0 0 0 10vw #d7bd8d05;
}
.gold-orbit,
.gold-orbit:after {
  border-radius: 50%;
  position: absolute;
}
.gold-orbit:after {
  content: "";
  background: var(--gold-light);
  width: 11px;
  height: 11px;
  box-shadow: 0 0 24px var(--gold);
  top: 12%;
  left: 12%;
}
.art-copy {
  z-index: 1;
  max-width: 620px;
  position: relative;
}
.art-copy span,
.eyebrow,
.section-kicker {
  color: var(--gold);
  letter-spacing: 0.09em;
  font-size: 11px;
  font-weight: 700;
}
.art-copy h1 {
  margin: 24px 0;
  font:
    500 clamp(58px, 7vw, 112px) / 1.06 B Yekan,
    sans-serif;
}
.art-copy p {
  color: #aaa49a;
  max-width: 520px;
  line-height: 2;
}
.login-panel {
  place-items: center;
  min-height: 100dvh;
  padding: 40px;
  display: grid;
}
.login-card {
  width: min(420px, 100%);
}
.brand-lockup {
  color: #fff;
  direction: ltr;
  align-items: center;
  gap: 12px;
  display: flex;
}
.brand-lockup.dark {
  color: var(--ink);
  margin-bottom: 72px;
}
.brand-mark {
  border: 1px solid var(--gold);
  width: 43px;
  height: 43px;
  color: var(--gold);
  place-items: center;
  font:
    600 25px/1 B Yekan,
    sans-serif;
  display: grid;
  transform: rotate(45deg);
}
.brand-mark:first-letter {
  transform: rotate(-45deg);
}
.brand-lockup div {
  flex-direction: column;
  display: flex;
}
.brand-lockup strong {
  letter-spacing: 0.22em;
  font:
    700 13px/1.4 B Yekan,
    sans-serif;
}
.brand-lockup small {
  opacity: 0.55;
  direction: rtl;
  font-size: 10px;
}
.login-heading span {
  color: #8e7249;
  border: 1px solid #d1c8b8;
  padding: 5px 9px;
  font-size: 10px;
  display: inline-block;
}
.login-heading h2 {
  margin: 22px 0 8px;
  font-size: 34px;
}
.login-heading p {
  color: var(--muted);
  margin: 0 0 30px;
  line-height: 1.8;
}
label {
  color: #59554f;
  font-size: 12px;
  font-weight: 700;
  display: block;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--ink);
  background: #fff;
  border-radius: 2px;
  outline: none;
  margin-top: 8px;
  padding: 13px 14px;
  transition: all 0.2s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px #b692551f;
}
.login-card label + label {
  margin-top: 18px;
}
.primary,
.secondary {
  border: 1px solid var(--ink);
  padding: 13px 18px;
  font-weight: 700;
  transition: all 0.2s;
}
.primary {
  color: #fff;
}
.primary:hover {
  background: #2b2823;
}
.primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.primary span {
  color: var(--gold-light);
  margin-right: 18px;
}
.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: 0 0;
}
.wide {
  width: 100%;
}
.login-card .primary {
  margin-top: 24px;
}
.demo-warning {
  color: #938d84;
  text-align: center;
  margin: 18px 0 0;
  font-size: 10px;
  line-height: 1.8;
}
.form-error {
  color: var(--red);
  margin: 12px 0 -8px;
  font-size: 12px;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  z-index: 40;
  background: var(--ink);
  color: #fff;
  width: 236px;
  padding: 28px 18px;
  position: fixed;
  inset: 0 0 0 auto;
}
.sidebar,
.sidebar nav {
  flex-direction: column;
  display: flex;
}
.sidebar nav {
  gap: 4px;
}
.sidebar nav button {
  color: #aaa49a;
  text-align: right;
  background: 0 0;
  border-right: 2px solid #0000;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  transition: all 0.2s;
  display: flex;
}
.sidebar nav button span {
  color: #8a8378;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 18px;
  display: grid;
}
.sidebar nav button.active,
.sidebar nav button:hover {
  border-right-color: var(--gold);
  color: #fff;
  background: #ffffff0f;
}
.sidebar-foot {
  color: #9d978e;
  border-top: 1px solid #ffffff17;
  margin-top: auto;
  padding: 16px 10px 0;
  font-size: 10px;
}
.sidebar-foot small {
  color: #625e58;
  margin: 7px 16px 0;
  display: block;
}
.idle-dot,
.live-dot {
  background: #6cb395;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  display: inline-block;
  box-shadow: 0 0 0 3px #6cb3951a;
}
.idle-dot {
  box-shadow: none;
  background: #b79662;
}
.main {
  min-height: 100vh;
  margin-right: 236px;
}
.topbar {
  z-index: 25;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #f3f0e9f0;
  justify-content: space-between;
  align-items: center;
  height: 78px;
  display: flex;
  position: sticky;
  top: 0;
}
.topbar h1 {
  margin: 3px 0 0;
  font-size: 17px;
}
.topbar small {
  color: #99938a;
  font-size: 10px;
}
.top-actions {
  align-items: center;
  gap: 16px;
  display: flex;
}
.notification {
  border: 1px solid var(--line);
  background: 0 0;
  border-radius: 50%;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 19px;
  display: grid;
  position: relative;
}
.notification b {
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 15px;
  height: 15px;
  font-size: 8px;
  display: grid;
  position: absolute;
  top: -2px;
  left: -2px;
}
.profile {
  text-align: right;
  background: 0 0;
  border: 0;
  align-items: center;
  gap: 9px;
  padding: 0;
  display: flex;
}
.profile > span {
  color: #6f593a;
  background: #ddd3c1;
  border-radius: 50%;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 11px;
  display: grid;
}
.profile div {
  flex-direction: column;
  display: flex;
}
.profile b {
  font-size: 11px;
}
.profile small {
  margin-top: 3px;
}
.menu-button {
  background: 0 0;
  border: 0;
  font-size: 22px;
  display: none;
}
.content {
  width: min(1440px, 100%);
  margin: auto;
  padding: 42px 4vw 70px;
}
.welcome-row {
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  display: flex;
}
.welcome-row.compact {
  align-items: center;
}
.welcome-row h2 {
  margin: 10px 0 7px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
}
.welcome-row p {
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}
.welcome-actions {
  align-items: center;
  gap: 7px;
  display: flex;
}
.welcome-actions > a {
  text-decoration: none;
}
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  display: grid;
}
.stat {
  border: 1px solid var(--line);
  background: #ffffffad;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  padding: 20px;
  display: flex;
}
.stat.accent {
  color: #fff;
  border-color: var(--ink);
}
.stat div {
  color: #6e6962;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  display: flex;
}
.stat.accent div {
  color: #aaa49a;
}
.stat small {
  color: var(--green);
}
.stat small.warn {
  color: var(--red);
}
.stat strong {
  font-variant-numeric: tabular-nums;
  font:
    600 27px/1 B Yekan,
    sans-serif;
}
.dashboard-grid {
  gap: 18px;
  margin-top: 18px;
  display: grid;
}
.dashboard-grid,
.dashboard-grid.lower {
  grid-template-columns: 1.7fr 1fr;
}
.panel {
  border: 1px solid var(--line);
  background: #ffffffc2;
}
.panel-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px;
  display: flex;
}
.panel-head h2,
.panel-head h3 {
  margin: 7px 0 0;
}
.panel-head p {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.8;
}
.text-button {
  color: #8e6b38;
  background: 0 0;
  border: 0;
  padding: 6px;
  font-size: 11px;
}
.product-list article {
  border-bottom: 1px solid #ece8e0;
  grid-template-columns: 54px minmax(150px, 1fr) 120px 105px;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  display: grid;
}
.product-list article:last-child {
  border-bottom: 0;
}
.product-list img {
  object-fit: cover;
  background: #e8e3da;
  width: 54px;
  height: 54px;
}
.product-title {
  flex-direction: column;
  display: flex;
}
.product-title b {
  text-align: right;
  direction: ltr;
  font:
    700 11px B Yekan,
    sans-serif;
}
.product-list strong small,
.product-title small {
  color: #99938a;
  margin-top: 5px;
  font-size: 9px;
}
.product-list strong {
  font-size: 11px;
}
.status {
  white-space: nowrap;
  border-radius: 50px;
  justify-content: center;
  padding: 6px 9px;
  font-size: 9px;
  display: inline-flex;
}
.quick-panel {
  padding-bottom: 8px;
}
.quick-panel > button {
  text-align: right;
  background: #f5f2eb;
  border: 0;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  width: calc(100% - 28px);
  margin: 8px 14px;
  padding: 12px;
  display: grid;
}
.quick-panel > button > span {
  background: #e9e1d3;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
}
.quick-panel button div {
  flex-direction: column;
  display: flex;
}
.quick-panel button b {
  font-size: 11px;
}
.quick-panel button small {
  color: #8e8981;
  margin-top: 4px;
  font-size: 9px;
}
.quick-panel button i {
  color: var(--gold);
  font-style: normal;
}
.online {
  color: var(--green);
  font-size: 10px;
}
.online.large {
  border: 1px solid #c7d7cf;
  padding: 9px 12px;
}
.mini-pipeline {
  justify-content: space-around;
  align-items: center;
  padding: 25px;
  display: flex;
}
.mini-pipeline div {
  text-align: center;
  flex-direction: column;
  display: flex;
}
.mini-pipeline b {
  font-variant-numeric: tabular-nums;
  font:
    600 22px B Yekan,
    sans-serif;
}
.mini-pipeline span {
  color: var(--muted);
  margin-top: 6px;
  font-size: 9px;
}
.mini-pipeline i {
  color: var(--gold);
  font-style: normal;
}
.task-card {
  padding-bottom: 14px;
}
.task-card > label {
  color: #5c5851;
  align-items: center;
  gap: 10px;
  margin: 13px 18px;
  font-size: 10px;
  font-weight: 400;
  display: flex;
}
.check-list input,
.task-card input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  margin: 0;
}
.home-empty {
  min-height: 180px;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 24px;
  display: flex;
}
.home-empty b {
  color: var(--ink);
}
.home-empty span {
  font-size: 10px;
  line-height: 1.8;
}
.home-empty.compact {
  min-height: 120px;
}
.real-data-summary {
  background: var(--line);
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  display: grid;
}
.real-data-summary > div {
  background: var(--card);
  text-align: center;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 22px 14px;
  display: flex;
}
.real-data-summary b {
  font-variant-numeric: tabular-nums;
  font:
    600 20px B Yekan,
    sans-serif;
}
.real-data-summary span {
  color: var(--muted);
  font-size: 9px;
}
.review-shortcut {
  width: calc(100% - 28px);
  color: var(--ink);
  text-align: right;
  background: #deddd8;
  border: 0;
  border-radius: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px;
  padding: 14px;
  display: grid;
}
.review-shortcut span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}
.review-shortcut i {
  font-size: 10px;
  font-style: normal;
}
.workspace-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.7fr);
  gap: 18px;
  display: grid;
}
.capture-form {
  padding-bottom: 22px;
}
.capture-form > .panel-head {
  margin-bottom: 20px;
}
.step-badge {
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  padding: 7px 10px;
  font-size: 9px;
}
.camera-zone {
  color: #69645d;
  cursor: pointer;
  background: #f7f4ed;
  border: 1px dashed #bcb3a4;
  align-content: center;
  place-items: center;
  gap: 8px;
  min-height: 300px;
  margin: 0 22px 22px;
  display: grid;
  position: relative;
  overflow: hidden;
}
.camera-zone > span {
  filter: grayscale();
  font-size: 36px;
}
.camera-zone > small {
  color: #999187;
  font-size: 9px;
}
.camera-zone input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}
.camera-zone.has-image {
  border-style: solid;
  height: 350px;
}
.camera-zone.has-image img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.camera-zone em {
  color: #fff;
  background: #141311d1;
  padding: 7px 10px;
  font-size: 10px;
  font-style: normal;
  position: absolute;
  bottom: 12px;
  left: 12px;
}
.form-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
  padding: 0 22px 18px;
  display: grid;
}
.capture-form > label:not(.camera-zone) {
  margin: 0 22px 18px;
}
.form-actions {
  justify-content: flex-end;
  gap: 10px;
  padding: 4px 22px 0;
  display: flex;
}
.publish-options {
  align-self: start;
  padding: 22px;
}
.publish-options h3 {
  margin: 8px 0 22px;
}
.toggle-row {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  display: flex;
  position: relative;
}
.toggle-row div {
  flex-direction: column;
  padding-left: 48px;
  display: flex;
}
.toggle-row small {
  color: #8d877f;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.6;
}
.toggle-row input {
  opacity: 0;
  width: 38px;
}
.toggle-row input,
.toggle-row > span {
  height: 20px;
  position: absolute;
  left: 0;
}
.toggle-row > span {
  background: #c9c4bb;
  border-radius: 20px;
  width: 36px;
  transition: all 0.2s;
}
.toggle-row > span:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  transition: all 0.2s;
  position: absolute;
  top: 3px;
  right: 3px;
}
.toggle-row input:checked + span:after {
  transform: translate(-16px);
}
.safe-note {
  background: #eee8dd;
  margin-top: 18px;
  padding: 14px;
}
.safe-note b {
  color: #7f6237;
  font-size: 10px;
}
.safe-note p {
  color: #7d766c;
  margin: 6px 0 0;
  font-size: 9px;
  line-height: 1.7;
}
.wizard-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.62fr);
}
.wizard-head {
  margin-bottom: 0 !important;
}
.wizard-progress {
  background: #d6d5d0;
  height: 3px;
  overflow: hidden;
}
.wizard-progress i {
  background: var(--ink);
  height: 100%;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}
.wizard-body {
  min-height: 460px;
  padding: 24px;
}
.photo-mode {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  display: grid;
}
.photo-mode button {
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: right;
  background: 0 0;
  border-radius: 1rem;
  flex-direction: column;
  padding: 17px 18px;
  display: flex;
}
.photo-mode button small {
  color: var(--muted);
  margin-top: 6px;
  font-size: 9px;
}
.photo-mode button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.photo-mode button.selected small {
  color: #ffffff8c;
}
.wizard-body .camera-zone {
  min-height: 190px;
  margin: 0;
}
.photo-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
  display: grid;
}
.photo-grid figure {
  background: var(--warm);
  border-radius: 1rem;
  min-width: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.photo-grid img {
  aspect-ratio: 1;
  object-fit: contain;
  width: 100%;
}
.photo-grid figcaption {
  color: #fff;
  background: #0a0a0ad1;
  border-radius: 100px;
  padding: 5px 7px;
  font-size: 8px;
  position: absolute;
  bottom: 7px;
  right: 7px;
}
.photo-grid button {
  width: 25px;
  height: 25px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 50%;
  place-items: center;
  font-size: 18px;
  display: grid;
  position: absolute;
  top: 7px;
  left: 7px;
}
.optional-note {
  color: var(--muted);
  background: #e2e1dc;
  border-radius: 1rem;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 9px;
  display: flex;
}
.optional-note b {
  color: var(--ink);
}
.category-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  display: grid;
}
.category-grid > button {
  border: 1px solid var(--line);
  min-height: 112px;
  color: var(--ink);
  text-align: right;
  background: #f0efea;
  border-radius: 1rem;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  display: flex;
  position: relative;
}
.category-grid > button > span {
  color: var(--muted);
  letter-spacing: 0.12em;
  font:
    7px B Yekan,
    sans-serif;
}
.category-grid > button > b {
  margin-top: 15px;
  font-size: 14px;
}
.category-grid > button > small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 9px;
}
.category-grid > button > i {
  color: var(--muted);
  font-style: normal;
  position: absolute;
  top: 15px;
  left: 15px;
}
.category-grid > button.selected {
  background: var(--ink);
  color: #fff;
}
.category-grid > button.selected > i,
.category-grid > button.selected > small,
.category-grid > button.selected > span {
  color: #ffffff8c;
}
.subcategory-box {
  border: 1px solid var(--line);
  background: #deddd8;
  border-radius: 1rem;
  margin-top: 18px;
  padding: 18px;
}
.subcategory-box > div {
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 13px;
  display: grid;
}
.subcategory-box button {
  background: 0 0;
  border: 1px solid #0a0a0a2e;
  border-radius: 100px;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  display: flex;
}
.subcategory-box button small {
  color: var(--muted);
  font:
    7px B Yekan,
    sans-serif;
}
.subcategory-box button.selected {
  background: var(--ink);
  color: #fff;
}
.subcategory-box button.selected small {
  color: #ffffff80;
}
.details-step .form-grid {
  padding: 0;
}
.auto-code-control {
  direction: ltr;
  align-items: stretch;
  gap: 7px;
  margin-top: 8px;
  display: flex;
}
.auto-code-control input {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  background: #deddd8;
  min-width: 0;
  margin: 0;
  font-family:
    B Yekan,
    sans-serif;
  font-size: 11px;
}
.auto-code-control button {
  border: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  border-radius: 0.75rem;
  flex: none;
  padding: 0 13px;
  font-size: 9px;
}
.field-hint {
  color: var(--muted);
  margin-top: 6px;
  font-size: 8px;
  font-weight: 400;
  display: block;
}
.quick-product-summary {
  border: 1px solid var(--line);
  background: #e8e7e2;
  border-radius: 1rem;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  padding: 10px;
  display: grid;
}
.quick-product-summary .no-photo,
.quick-product-summary img {
  object-fit: cover;
  background: #d4d3ce;
  border-radius: 0.8rem;
  width: 74px;
  height: 74px;
}
.quick-product-summary .no-photo {
  color: var(--muted);
  place-items: center;
  font-size: 9px;
  display: grid;
}
.quick-product-summary h3 {
  margin: 4px 0 2px;
  font-size: 17px;
}
.quick-product-summary p {
  color: var(--muted);
  margin: 0;
  font-size: 9px;
}
.three-click-mark {
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  border-radius: 100px;
  padding: 7px 10px;
  font-size: 9px;
}
.quick-fields label > em {
  color: var(--muted);
  background: #ddddd8;
  border-radius: 100px;
  margin-right: 5px;
  padding: 2px 6px;
  font-size: 8px;
  font-style: normal;
}
.sync-targets {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
  display: grid;
}
.sync-target {
  border: 1px solid var(--line);
  cursor: pointer;
  background: #e8e7e2;
  border-radius: 1rem;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  display: grid;
  position: relative;
}
.sync-target > input {
  opacity: 0;
  pointer-events: none;
  border: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
}
.sync-target > span {
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  width: 27px;
  height: 27px;
  display: grid;
}
.sync-target > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.sync-target small {
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 8px;
  overflow: hidden;
}
.sync-target strong {
  color: #555;
  background: #d2d1cc;
  border-radius: 100px;
  padding: 3px 7px;
  font-size: 8px;
}
.sync-target.ready > span {
  background: var(--ink);
  color: #fff;
}
.advanced-product-fields {
  border: 1px solid var(--line);
  background: #f0efeb;
  border-radius: 1rem;
  margin-top: 9px;
}
.advanced-product-fields summary {
  cursor: pointer;
  color: #555;
  padding: 10px 12px;
  font-size: 9px;
  font-weight: 700;
}
.advanced-product-fields[open] {
  padding: 0 11px 11px;
}
.advanced-product-fields[open] summary {
  margin-inline: -11px;
}
.quick-channels {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  display: flex;
}
.quick-channels label {
  background: #deddd8;
  border-radius: 100px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 400;
}
.quick-channels input {
  width: auto;
  margin: 0 0 0 5px;
}
.quick-error {
  margin: 8px 0 0;
}
.action-hint {
  color: var(--muted);
  margin-left: auto;
  font-size: 9px;
}
.wide-field {
  margin-top: 0 !important;
}
.review-step {
  flex-direction: column;
  gap: 18px;
  display: flex;
}
.review-product {
  background: #deddd8;
  border-radius: 1rem;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  display: grid;
}
.no-photo,
.review-product > img {
  object-fit: contain;
  background: #c9c8c4;
  border-radius: 0.75rem;
  width: 110px;
  height: 110px;
}
.no-photo {
  color: var(--muted);
  place-items: center;
  font-size: 9px;
  display: grid;
}
.review-product h3 {
  text-align: right;
  direction: ltr;
  margin: 7px 0 4px;
  font:
    600 15px B Yekan,
    sans-serif;
}
.review-product p {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 10px;
}
.review-product strong {
  font-size: 13px;
}
.review-product strong small {
  color: var(--muted);
  font-size: 8px;
}
.channel-review {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 18px;
  display: grid;
}
.channel-review > .section-kicker {
  grid-column: 1/-1;
  margin-bottom: 6px;
}
.wizard-actions {
  margin-top: auto;
  padding: 0 24px 22px;
}
.wizard-aside {
  align-self: start;
  padding: 24px;
}
.wizard-aside h3 {
  margin: 9px 0 22px;
  font-size: 18px;
}
.wizard-aside ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wizard-aside li {
  border-bottom: 1px solid var(--line);
  opacity: 0.4;
  grid-template-columns: 32px 1fr 20px;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  display: grid;
}
.wizard-aside li > b {
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  width: 29px;
  height: 29px;
  font:
    8px B Yekan,
    sans-serif;
  display: grid;
}
.wizard-aside li > div {
  flex-direction: column;
  display: flex;
}
.wizard-aside li small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 8px;
}
.wizard-aside li > span {
  color: var(--green);
}
.wizard-aside li.active,
.wizard-aside li.done {
  opacity: 1;
}
.wizard-aside li.active > b {
  background: var(--ink);
  color: #fff;
}
.wizard-tip {
  background: #deddd8;
  border-radius: 1rem;
  margin-top: 20px;
  padding: 14px;
}
.wizard-tip b {
  font-size: 10px;
}
.wizard-tip p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 9px;
  line-height: 1.7;
}
.accounting-top {
  grid-template-columns: 1.5fr 0.7fr;
  gap: 18px;
  margin-bottom: 18px;
  display: grid;
}
.upload-card {
  align-items: stretch;
}
.upload-card,
.upload-card label {
  gap: 12px;
  padding: 16px;
  display: flex;
}
.upload-card label {
  cursor: pointer;
  border: 1px dashed #bcb3a4;
  flex: 1;
  align-items: center;
  position: relative;
}
.upload-card label > span {
  color: var(--gold);
  font-size: 24px;
}
.upload-card label small {
  color: var(--muted);
  font-weight: 400;
}
.upload-card input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}
.accounting-guide {
  padding: 20px;
}
.accounting-guide ul {
  color: var(--muted);
  margin: 14px 0 0;
  padding: 0 18px 0 0;
  font-size: 10px;
  line-height: 2.1;
}
.table-panel {
  margin-top: 18px;
}
.data-table {
  padding: 4px 22px 18px;
}
.table-row {
  border-bottom: 1px solid #ece8e0;
  grid-template-columns: 1.8fr 0.7fr 1fr 0.7fr;
  padding: 13px 0;
  display: grid;
}
.table-row span {
  font-size: 10px;
}
.table-row.head {
  color: #989187;
}
.accounting-welcome {
  gap: 20px;
}
.period-control {
  border: 1px solid var(--line);
  background: #e4e3de;
  border-radius: 1rem;
  min-width: 150px;
  padding: 10px 12px;
}
.period-control span {
  color: var(--muted);
  font-size: 8px;
  display: block;
}
.period-control select {
  background: 0 0;
  border: 0;
  margin-top: 3px;
  padding: 4px 0;
  font-weight: 700;
}
.accounting-start {
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  margin-bottom: 18px;
  padding: 22px;
  display: grid;
}
.accounting-start-copy h3 {
  margin: 8px 0;
  font-size: 21px;
}
.accounting-start-copy p {
  max-width: 500px;
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.8;
}
.accounting-camera-actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  display: grid;
}
.accounting-camera-actions > label {
  border: 1px solid var(--line);
  cursor: pointer;
  background: #e2e1dc;
  border-radius: 1rem;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 12px;
  display: grid;
  position: relative;
  overflow: hidden;
}
.accounting-camera-actions > label:first-child {
  background: var(--ink);
  color: #fff;
}
.accounting-camera-actions > label > span {
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: #f1f0ec;
  border-radius: 50%;
  place-items: center;
  font-size: 18px;
  display: grid;
}
.accounting-camera-actions > label > div {
  flex-direction: column;
  display: flex;
}
.accounting-camera-actions > label small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 8px;
  font-weight: 400;
}
.accounting-camera-actions > label:first-child small {
  color: #ffffff8c;
}
.accounting-camera-actions input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}
.document-saving {
  color: var(--muted);
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 9px;
  display: flex;
}
.document-saving i {
  border: 2px solid #bbb;
  border-top: 2px solid var(--ink);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  animation: accounting-spin 0.8s linear infinite;
}
.document-error {
  margin: 8px 0 0;
}
.accounting-or {
  color: var(--muted);
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  font-size: 8px;
  display: flex;
}
.accounting-or:after,
.accounting-or:before {
  content: "";
  background: var(--line);
  flex: 1;
  height: 1px;
}
@keyframes accounting-spin {
  to {
    transform: rotate(1turn);
  }
}
.source-pills {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
  display: flex;
}
.ledger-filters button,
.source-pills button {
  border: 1px solid var(--line);
  color: #6d6962;
  background: 0 0;
  border-radius: 100px;
  padding: 7px 10px;
  font-size: 9px;
}
.ledger-filters button.selected,
.source-pills button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.accounting-drop {
  background: #e2e1dc;
  border-radius: 1rem;
  padding: 13px;
}
.accounting-drop > label {
  cursor: pointer;
  border: 1px dashed #aaa9a4;
  border-radius: 0.8rem;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  display: flex;
  position: relative;
}
.accounting-drop > label > span {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 17px;
  display: grid;
}
.accounting-drop > label > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.accounting-drop > label b {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.accounting-drop > label small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 8px;
}
.accounting-drop input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}
.accounting-drop > div {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
  display: grid;
}
.accounting-drop > div button {
  padding: 9px;
}
.accounting-drop > small {
  color: var(--muted);
  margin-top: 8px;
  font-size: 8px;
  display: block;
}
.accounting-status {
  border: 1px solid var(--line);
  background: #e4e3de;
  border-radius: 1rem;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  padding: 10px 13px;
  display: flex;
}
.accounting-status > div {
  align-items: center;
  gap: 9px;
  display: flex;
}
.accounting-status > div > span {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}
.accounting-status > div > div {
  flex-direction: column;
  display: flex;
}
.accounting-status small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 8px;
}
.accounting-dashboard {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 18px;
  display: grid;
}
.cashflow-card .panel-head > strong {
  color: var(--muted);
  font-size: 9px;
}
.cashflow-bars {
  border-top: 1px solid var(--line);
  justify-content: space-around;
  align-items: flex-end;
  gap: 15px;
  height: 180px;
  padding: 15px 28px 0;
  display: flex;
}
.cashflow-bars > div {
  flex-direction: column-reverse;
  flex: 1;
  align-items: center;
  gap: 8px;
  height: 100%;
  display: flex;
}
.cashflow-bars > div > span {
  color: var(--muted);
  font-size: 8px;
}
.cashflow-bars > div > i {
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  width: min(52px, 80%);
  height: 145px;
  display: flex;
}
.cashflow-bars b,
.cashflow-bars em {
  background: var(--ink);
  border-radius: 5px 5px 0 0;
  width: 45%;
  min-height: 4px;
  display: block;
}
.cashflow-bars em {
  background: #b9b8b3;
}
.chart-legend {
  border-top: 1px solid var(--line);
  color: var(--muted);
  justify-content: center;
  gap: 20px;
  padding: 11px;
  font-size: 8px;
  display: flex;
}
.chart-legend span {
  align-items: center;
  gap: 5px;
  display: flex;
}
.chart-legend i {
  background: var(--ink);
  border-radius: 2px;
  width: 8px;
  height: 8px;
}
.chart-legend i.expense {
  background: #b9b8b3;
}
.review-count {
  background: #deddd8;
  border-radius: 100px;
  padding: 4px 8px;
  font-size: 8px;
}
.reconcile-card article {
  border-top: 1px solid var(--line);
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  display: grid;
}
.reconcile-card article > span {
  color: #575752;
  background: #dddcd7;
  border-radius: 50%;
  place-items: center;
  width: 25px;
  height: 25px;
  font-weight: 700;
  display: grid;
}
.reconcile-card article > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.reconcile-card article small {
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 4px;
  font-size: 8px;
  overflow: hidden;
}
.reconcile-card article button {
  color: #555;
  background: 0 0;
  border: 0;
  font-size: 8px;
}
.accounting-ledger {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  margin-top: 18px;
  display: grid;
}
.ledger-head {
  padding-bottom: 10px;
}
.ledger-filters {
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 22px 10px;
  display: flex;
}
.data-table .table-row > span:first-child {
  flex-direction: column;
  display: flex;
}
.data-table .table-row > span:first-child small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 8px;
}
.money-in {
  color: var(--green);
}
.money-out {
  color: var(--red);
}
.needs-review {
  color: var(--orange);
  font-weight: 700;
}
.manual-entry {
  align-self: start;
  padding: 20px;
  position: sticky;
  top: 102px;
}
.manual-entry h3 {
  margin: 8px 0 3px;
}
.manual-entry > p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 9px;
}
.manual-entry > label {
  margin-top: 11px;
}
.manual-entry input {
  padding: 10px;
}
.transaction-type {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 12px 0;
  display: grid;
}
.transaction-type button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #e5e4df;
  border-radius: 100px;
  padding: 8px;
  font-size: 9px;
}
.transaction-type button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.accounting-automation-bar {
  grid-template-columns: minmax(155px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  padding: 14px 18px;
  display: grid;
}
.accounting-automation-bar > div:first-child {
  align-items: center;
  gap: 11px;
  display: flex;
}
.accounting-automation-bar > div:first-child > div {
  flex-direction: column;
  display: flex;
}
.accounting-automation-bar small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 8px;
}
.automation-pulse {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}
.accounting-automation-bar .accounting-camera-actions {
  min-width: 0;
  margin: 0;
}
.accounting-automation-bar .accounting-camera-actions > label {
  min-height: 60px;
  padding: 8px;
}
.accounting-source-actions {
  grid-template-columns: minmax(135px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  display: grid;
}
.whatsapp-import {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  border-radius: 1rem;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  display: grid;
  position: relative;
  overflow: hidden;
}
.whatsapp-import > span {
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #f1f0ec;
  border-radius: 50%;
  place-items: center;
  font:
    700 8px B Yekan,
    sans-serif;
  display: grid;
}
.whatsapp-import > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.whatsapp-import b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}
.whatsapp-import small {
  color: #ffffff94 !important;
}
.whatsapp-import input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}
.whatsapp-import:has(input:disabled) {
  opacity: 0.58;
  cursor: wait;
}
.accounting-workflow-hint {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff80;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 9px 14px;
  font-size: 9px;
  display: flex;
}
.accounting-workflow-hint span {
  align-items: center;
  gap: 6px;
  display: flex;
}
.accounting-workflow-hint b {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 20px;
  height: 20px;
  font:
    700 8px B Yekan,
    sans-serif;
  display: grid;
}
.accounting-workflow-hint i {
  color: #aaa49f;
  font-style: normal;
}
.import-success {
  color: var(--green);
  background: #dce7e1;
  border: 1px solid #c7d7cf;
  border-radius: 1rem;
  margin: 0 0 12px;
  padding: 10px 13px;
  font-size: 9px;
  line-height: 1.8;
}
.whatsapp-audit-summary {
  margin-bottom: 14px;
  padding: 18px;
}
.whatsapp-audit-head {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  display: flex;
}
.whatsapp-audit-head h3 {
  margin: 7px 0 4px;
  font-size: 17px;
}
.whatsapp-audit-head p {
  max-width: 720px;
  color: var(--muted);
  margin: 0;
  font-size: 9px;
  line-height: 1.9;
}
.whatsapp-audit-head > a {
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: 100px;
  flex: none;
  padding: 8px 11px;
  font-size: 8px;
  text-decoration: none;
}
.whatsapp-audit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  display: grid;
}
.whatsapp-audit-grid > div {
  border: 1px solid var(--line);
  background: #e7e6e1;
  border-radius: 12px;
  min-width: 0;
  padding: 12px;
}
.whatsapp-audit-grid span {
  color: var(--muted);
  font-size: 9px;
  display: block;
}
.whatsapp-audit-grid b {
  overflow-wrap: anywhere;
  margin-top: 7px;
  font-size: 15px;
  display: block;
}
.whatsapp-audit-grid .audit-warn {
  background: #eee2c9;
  border-color: #d9b977;
}
.whatsapp-audit-grid .audit-warn b {
  color: #77561d;
}
.whatsapp-audit-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
  display: grid;
}
.whatsapp-audit-notes span {
  color: #6d5135;
  background: #f0e5d8;
  border-radius: 9px;
  padding: 10px 11px;
  font-size: 9px;
  line-height: 1.8;
}
.accounting-page-error {
  margin: 0 0 12px;
}
.accounting-ledger-v2 {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.accounting-entry-table .table-row {
  grid-template-columns: minmax(180px, 1.8fr) 0.45fr 0.85fr 0.75fr 0.8fr;
  align-items: center;
  gap: 8px;
}
.accounting-entry-table {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  max-height: min(720px, 100dvh - 145px);
  overflow: auto;
}
.accounting-entry-table .table-row.head {
  z-index: 2;
  background: #f2f1ed;
  padding-block: 11px;
  position: sticky;
  top: 0;
}
.accounting-entry-table .table-row:not(.head) {
  padding-block: 15px;
  transition: background 0.18s;
}
.accounting-entry-table .table-row:not(.head):hover {
  background: #deddd866;
}
.entry-actions {
  flex-wrap: wrap;
  gap: 5px;
  display: flex;
}
.entry-actions button {
  border: 1px solid var(--line);
  background: 0 0;
  border-radius: 100px;
  padding: 5px 7px;
  font-size: 8px;
}
.entry-actions button:last-child {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.ledger-empty {
  min-height: 170px;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}
.ledger-empty b {
  color: var(--ink);
}
.ledger-empty span {
  margin-top: 6px;
  font-size: 9px;
}
.manual-entry textarea {
  margin-top: 6px;
}
.manual-entry label em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}
.jalali-input {
  text-align: left;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  font-family:
    B Yekan,
    sans-serif;
}
.field-help {
  color: var(--muted);
  margin-top: 5px;
  font-size: 8px;
  display: block;
}
.category-selector {
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 12px 0 8px;
  display: grid;
}
.category-selector button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #e5e4df;
  border-radius: 9px;
  padding: 8px 4px;
  font-size: 8px;
}
.category-selector button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.entry-kind-chip {
  color: var(--muted);
  background: #deddd8;
  border-radius: 9px;
  margin: 8px 0 2px;
  padding: 8px 10px;
  font-size: 8px;
}
.entry-kind-chip.income b {
  color: var(--green);
}
.entry-kind-chip.expense b {
  color: var(--red);
}
.editor-pair,
.manual-pair {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  display: grid;
}
.editor-pair > label,
.manual-pair > label {
  min-width: 0;
  margin-top: 11px;
}
.entry-primary-meta {
  align-items: center;
  gap: 5px;
  display: flex !important;
}
.entry-primary-meta strong {
  color: var(--ink);
  background: #deddd8;
  border-radius: 100px;
  padding: 3px 6px;
  font-size: 7px;
}
.entry-secondary-meta {
  color: #777 !important;
}
.entry-note {
  background: #e7e0d6;
  border-radius: 8px;
  color: #665238 !important;
}
.entry-note,
.entry-review-reason {
  padding: 7px 8px;
  line-height: 1.75;
  margin-top: 6px !important;
}
.entry-review-reason {
  background: #f1e4c9;
  border: 1px solid #d9b977;
  border-radius: 8px;
  color: #77561d !important;
}
.duplicate-status {
  color: var(--muted);
  font-weight: 700;
}
.review-toggle {
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  display: flex !important;
}
.review-toggle input {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
}
.entry-documents {
  gap: 5px;
  margin-top: 6px;
  display: flex;
}
.entry-documents a {
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 100px;
  padding: 4px 7px;
  font-size: 8px;
  text-decoration: none;
}
.accounting-change-log {
  margin-top: 18px;
}
.private-archive-panel {
  margin: 0 0 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px #1413110e;
}
.archive-panel-head p {
  max-width: 620px;
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 9px;
  line-height: 1.7;
}
.archive-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px 14px;
  display: grid;
}
.archive-tabs button {
  border: 1px solid var(--line);
  text-align: right;
  background: #e8e7e2;
  border-radius: 1rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 14px;
  transition:
    transform 0.18s,
    background 0.18s;
  display: flex;
}
.archive-tabs button:hover {
  transform: translateY(-2px);
}
.archive-tabs button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.archive-tabs small {
  color: inherit;
  opacity: 0.65;
  font-size: 8px;
}
.archive-proof-strip {
  border-block: 1px solid var(--line);
  background: var(--line);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  display: grid;
}
.archive-proof-strip > div {
  background: #f0efeb;
  min-width: 0;
  padding: 12px 14px;
}
.archive-proof-strip b,
.archive-proof-strip span {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}
.archive-proof-strip span {
  color: var(--muted);
  font-size: 8px;
}
.archive-proof-strip b {
  margin-top: 5px;
  font-size: 10px;
}
.archive-period-bar {
  border-bottom: 1px solid var(--line);
  background: #e8eee9;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  display: flex;
}
.archive-period-bar > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.archive-period-bar b {
  font-size: 9px;
}
.archive-period-bar small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.65;
}
.archive-period-bar > button {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: 0 0;
  border-radius: 100px;
  flex: none;
  padding: 8px 12px;
  font-size: 8px;
  font-weight: 700;
}
.archive-period-bar > button.selected {
  background: var(--ink);
  color: #fff;
}
.archive-direction-filters {
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 20px 0;
  display: flex;
}
.archive-direction-filters button {
  border: 1px solid var(--line);
  background: 0 0;
  border-radius: 100px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  font-size: 8px;
  display: flex;
}
.archive-direction-filters button b {
  background: #deddd8;
  border-radius: 100px;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  font-size: 7px;
  display: grid;
}
.archive-direction-filters button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.archive-direction-filters button.selected b {
  background: #ffffff29;
}
.archive-search {
  border-bottom: 1px solid var(--line);
  gap: 8px;
  padding: 14px 20px;
  display: flex;
}
.archive-search input {
  flex: 1;
  min-width: 0;
}
.archive-message-list {
  max-height: 560px;
  overflow: auto;
}
.archive-message-list article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 105px minmax(0, 1fr) 112px;
  align-items: start;
  gap: 12px;
  padding: 14px 20px;
  transition: background 0.18s;
  display: grid;
}
.archive-message-list article:hover {
  background: #deddd847;
}
.archive-message-copy,
.archive-message-no {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.archive-message-copy > small,
.archive-message-no small {
  color: var(--muted);
  word-break: break-all;
  margin-top: 4px;
  font-size: 7px;
}
.archive-message-copy > span {
  color: var(--muted);
  font-size: 8px;
}
.archive-message-copy p {
  white-space: pre-wrap;
  margin: 5px 0 0;
  font-size: 10px;
  line-height: 1.65;
}
.archive-file-link {
  border: 1px solid var(--line);
  width: max-content;
  color: var(--ink);
  border-radius: 100px;
  margin-top: 8px;
  padding: 6px 9px;
  font-size: 8px;
  text-decoration: none;
}
.archive-message-state {
  text-align: left;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  display: flex;
}
.inbox-expense,
.inbox-income {
  white-space: nowrap;
  border-radius: 100px;
  padding: 5px 7px;
  font-size: 7px;
}
.inbox-income {
  color: #215d36;
  background: #dce9df;
}
.inbox-expense {
  color: #8b2e2e;
  background: #f0dddd;
}
.archive-convert-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: 100px;
  padding: 7px 9px;
  font-size: 8px;
}
.archive-message-list article.converting {
  background: #e8e7e2;
}
.inbox-conversion-form {
  border: 1px solid var(--line);
  background: #f7f6f2;
  border-radius: 1rem;
  grid-column: 1/-1;
  margin: 4px 0 2px;
  padding: 15px;
}
.conversion-heading {
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
  display: flex;
}
.conversion-heading > div {
  flex-direction: column;
  display: flex;
}
.conversion-heading small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 8px;
}
.conversion-heading > button {
  border: 1px solid var(--line);
  background: 0 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.inbox-conversion-form .transaction-type {
  margin-bottom: 10px;
}
.conversion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  display: grid;
}
.inbox-conversion-form label {
  color: var(--muted);
  flex-direction: column;
  gap: 5px;
  margin-top: 9px;
  font-size: 8px;
  display: flex;
}
.inbox-conversion-form input,
.inbox-conversion-form select,
.inbox-conversion-form textarea {
  width: 100%;
}
.inbox-conversion-form > .wide {
  margin-top: 12px;
}
.archive-context {
  color: var(--muted);
  font-size: 8px;
}
.archive-pagination {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  display: flex;
}
.archive-pagination > span {
  color: var(--muted);
  font-size: 8px;
}
.archive-pagination > div {
  gap: 7px;
  display: flex;
}
.archive-pagination button {
  border: 1px solid var(--line);
  background: 0 0;
  border-radius: 100px;
  padding: 7px 10px;
  font-size: 8px;
}
.archive-pagination button:disabled {
  opacity: 0.35;
}
.accounting-change-log summary {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
  list-style: none;
  display: flex;
}
.accounting-change-log summary::-webkit-details-marker {
  display: none;
}
.accounting-change-log summary > span {
  flex-direction: column;
  display: flex;
}
.accounting-change-log summary small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 8px;
}
.accounting-change-log summary strong {
  background: #deddd8;
  border-radius: 100px;
  padding: 6px 9px;
  font-size: 8px;
}
.accounting-change-log > div {
  border-top: 1px solid var(--line);
  max-height: 340px;
  overflow: auto;
}
.accounting-change-log article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 65px 1fr;
  gap: 10px;
  padding: 13px 20px;
  display: grid;
}
.accounting-change-log article > span {
  text-align: center;
  background: #deddd8;
  border-radius: 100px;
  align-self: start;
  padding: 5px 7px;
  font-size: 8px;
}
.accounting-change-log article > div {
  flex-direction: column;
  display: flex;
}
.accounting-change-log article small {
  color: var(--muted);
  margin-top: 5px;
  font-size: 8px;
}
.accounting-change-log > div > p {
  color: var(--muted);
  text-align: center;
  padding: 20px;
  font-size: 9px;
}
.accounting-editor-backdrop {
  z-index: 100;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: #0000008c;
  place-items: center;
  padding: 18px;
  display: grid;
  position: fixed;
  inset: 0;
}
.accounting-editor {
  width: min(520px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
}
.accounting-editor > .panel-head {
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.accounting-editor > .panel-head button {
  border: 1px solid var(--line);
  background: 0 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 19px;
}
.accounting-editor-body {
  padding: 0 22px 22px;
}
.accounting-editor-body > label {
  margin-top: 13px;
}
.accounting-editor-body input,
.accounting-editor-body select,
.accounting-editor-body textarea {
  margin-top: 6px;
}
.accounting-editor-body .safe-note {
  margin: 13px 0;
  padding: 12px;
}
.accounting-editor-body .safe-note p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 8px;
  line-height: 1.7;
}
.accounting-editor-evidence {
  background: #eee8de;
  border: 1px solid #cfc4b2;
  border-radius: 12px;
  gap: 9px;
  margin: 14px 0;
  padding: 13px;
  display: grid;
}
.accounting-editor-evidence > div {
  flex-direction: column;
  display: flex;
}
.accounting-editor-evidence small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.6;
}
.accounting-editor-evidence > span,
.entry-documents > span {
  flex-wrap: wrap;
  gap: 7px;
  display: flex;
}
.accounting-editor-evidence a,
.accounting-editor-evidence button,
.entry-documents a,
.entry-documents button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 100px;
  padding: 6px 9px;
  font-size: 8px;
  text-decoration: none;
}
.accounting-document-preview,
.accounting-report-preview,
.invoice-preview-backdrop {
  z-index: 140;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  background: #000000a8;
  place-items: center;
  padding: 18px;
  display: grid;
  position: fixed;
  inset: 0;
}
.invoice-preview-modal {
  background: #f4f3ef;
  border-radius: 18px;
  flex-direction: column;
  width: min(1060px, 100%);
  height: min(90dvh, 880px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 25px 90px #00000052;
}
.invoice-preview-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  display: flex;
}
.invoice-preview-head h3 {
  margin: 5px 0 0;
}
.invoice-preview-head > div:last-child {
  align-items: center;
  gap: 9px;
  display: flex;
}
.invoice-preview-head a {
  color: #fff;
  background: #111;
  border-radius: 100px;
  padding: 8px 12px;
  font-size: 8px;
  text-decoration: none;
}
.document-preview-head > button,
.invoice-preview-head button,
.report-preview-sheet > header > button {
  border: 1px solid var(--line);
  background: 0 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
}
.invoice-preview-modal iframe {
  background: #deddd8;
  border: 0;
  flex: 1;
  width: 100%;
}
.document-preview-sheet {
  background: #f4f3ef;
  border-radius: 18px;
  flex-direction: column;
  width: min(900px, 100%);
  max-height: 92dvh;
  display: flex;
  overflow: hidden;
}
.document-preview-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  display: flex;
}
.document-preview-head h3 {
  margin: 5px 0;
}
.document-preview-head small {
  color: var(--muted);
  font-size: 8px;
}
.document-preview-canvas {
  background: #2a2a29;
  flex: 1;
  place-items: center;
  min-height: 0;
  padding: 18px;
  display: grid;
  overflow: auto;
}
.document-preview-canvas img {
  object-fit: contain;
  max-width: 100%;
  max-height: 70dvh;
  box-shadow: 0 12px 50px #0000004d;
}
.document-preview-actions {
  border-top: 1px solid var(--line);
  justify-content: center;
  gap: 9px;
  padding: 13px;
  display: flex;
}
.document-preview-actions a,
.document-preview-actions button {
  color: #fff;
  background: #111;
  border: 1px solid #111;
  border-radius: 100px;
  padding: 9px 14px;
  font-size: 9px;
  text-decoration: none;
}
.document-preview-actions a {
  color: #111;
  background: 0 0;
}
.report-preview-sheet {
  color: #111;
  background: #f8f7f3;
  border-radius: 18px;
  width: min(1100px, 100%);
  max-height: 92dvh;
  padding: 28px;
  overflow: auto;
}
.report-preview-sheet > header {
  border-bottom: 2px solid #111;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  display: flex;
}
.report-preview-sheet > header span {
  letter-spacing: 0.12em;
  font:
    8px Arial,
    sans-serif;
}
.report-preview-sheet > header h2 {
  margin: 7px 0;
  font-size: 28px;
}
.report-preview-sheet > header p {
  color: #666;
  margin: 0;
  font-size: 9px;
}
.report-preview-kpis {
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 18px 0;
  display: grid;
}
.report-preview-kpis > div {
  background: #e5e4df;
  border-radius: 12px;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
  padding: 15px;
  display: flex;
}
.report-preview-kpis span {
  color: #666;
  font-size: 8px;
}
.report-preview-kpis b {
  font-size: 15px;
}
.report-category-summary {
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 4px;
  display: flex;
  overflow: auto;
}
.report-category-summary > div {
  border: 1px solid #ccc;
  border-radius: 10px;
  flex-direction: column;
  min-width: 150px;
  padding: 11px;
  display: flex;
}
.report-category-summary small,
.report-category-summary span {
  color: #666;
  margin-top: 4px;
  font-size: 7px;
}
.report-preview-table {
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
}
.report-preview-table > div {
  border-top: 1px solid #ddd;
  grid-template-columns: 1fr 1.7fr 0.6fr 0.9fr 0.8fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 8px;
  display: grid;
}
.report-preview-table > div.head {
  color: #fff;
  background: #111;
  border: 0;
}
.report-preview-table > div > span {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.report-preview-table small {
  color: #777;
  margin-top: 3px;
  font-size: 7px;
}
.report-preview-sheet > footer {
  color: #666;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  font-size: 8px;
  display: flex;
}
.report-preview-sheet > footer > div {
  gap: 8px;
  display: flex;
}
.report-preview-sheet > footer a,
.report-preview-sheet > footer button {
  color: #fff;
  background: #111;
  border: 1px solid #111;
  border-radius: 100px;
  padding: 8px 11px;
  font-size: 8px;
  text-decoration: none;
}
.content-calendar-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 18px;
  margin-bottom: 20px;
  display: grid;
}
.content-calendar {
  position: relative;
  overflow: hidden;
}
.content-calendar-head {
  border-bottom: 1px solid var(--line);
  text-align: center;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  display: grid;
}
.content-calendar-head h3 {
  margin: 5px 0 0;
}
.content-calendar-head button {
  border: 1px solid var(--line);
  background: 0 0;
  border-radius: 100px;
  padding: 7px 10px;
  font-size: 8px;
}
.calendar-grid,
.calendar-weekdays {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  display: grid;
}
.calendar-weekdays {
  border-bottom: 1px solid var(--line);
  background: #f1f0eb;
}
.calendar-weekdays span {
  color: var(--muted);
  text-align: center;
  padding: 9px;
  font-size: 8px;
}
.calendar-day {
  border: 0;
  border-inline-start: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: right;
  background: #fff;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  min-height: 112px;
  padding: 8px;
  display: flex;
}
.calendar-day:nth-child(7n + 1) {
  border-inline-start: 0;
}
.calendar-day:hover {
  background: #f5f3ed;
}
.calendar-day.outside {
  color: #aaa;
  background: #f7f6f2;
}
.calendar-day > b {
  align-self: flex-start;
  font-size: 8px;
}
.calendar-day > span {
  gap: 5px;
  display: grid;
}
.calendar-day i {
  background: #ece9e1;
  border-inline-start: 3px solid #8e6b38;
  border-radius: 5px;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  font-style: normal;
  display: flex;
}
.calendar-day i.channel-telegram {
  border-color: #3587b8;
}
.calendar-day i.channel-website {
  border-color: #222;
}
.calendar-day i.channel-sms {
  border-color: #5f8759;
}
.calendar-day i.channel-other {
  border-color: #8b7d92;
}
.calendar-day i strong {
  font-size: 8px;
}
.calendar-day i small,
.calendar-day i strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.calendar-day i small {
  color: var(--muted);
  font-size: 6px;
}
.calendar-loading {
  color: var(--muted);
  background: #ffffffc7;
  place-items: center;
  font-size: 9px;
  display: grid;
  position: absolute;
  inset: 70px 0 0;
}
.content-planner {
  padding-bottom: 20px;
  position: sticky;
  top: 102px;
}
.content-planner > .panel-head {
  border-bottom: 1px solid var(--line);
}
.content-planner > .content-csv-link,
.content-planner > .planner-pair,
.content-planner > .primary,
.content-planner > label {
  margin-inline: 20px;
}
.content-planner > label {
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  margin-top: 13px;
  font-size: 8px;
  display: flex;
}
.content-planner label em {
  font-size: 7px;
  font-style: normal;
}
.planner-pair {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
  display: grid;
}
.planner-pair label {
  color: var(--muted);
  flex-direction: column;
  gap: 6px;
  font-size: 8px;
  display: flex;
}
.content-planner > .primary {
  width: calc(100% - 40px);
  margin-top: 16px;
}
.content-csv-link {
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  font-size: 8px;
  display: block;
}
.needia-file-vault {
  margin-bottom: 20px;
}
.needia-file-vault .panel-head p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 8px;
}
.needia-file-vault > div:last-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
}
.needia-file-vault article {
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  display: grid;
}
.needia-file-vault article:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
}
.needia-file-vault article > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.needia-file-vault article small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 7px;
  overflow: hidden;
}
.asset-download,
.needia-file-vault article > a {
  color: var(--ink);
  text-underline-offset: 3px;
  font-size: 8px;
  text-decoration: underline;
}
.content-board {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  display: grid;
}
.post-card {
  border: 1px solid var(--line);
  background: #fff;
}
.post-card > img {
  aspect-ratio: 1;
  object-fit: cover;
  background: #e4dfd5;
  width: 100%;
}
.post-body {
  padding: 18px;
}
.post-body > span {
  color: var(--gold);
  font-size: 9px;
}
.post-body h3 {
  margin: 9px 0;
}
.post-body p {
  min-height: 62px;
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.9;
}
.post-body > div {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
}
.post-body b {
  font:
    600 9px B Yekan,
    sans-serif;
}
.post-body button {
  color: #8e6b38;
  background: 0 0;
  border: 0;
  font-size: 9px;
}
.human-gate {
  background: #eee8de;
  border: 1px solid #cfc4b2;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 20px;
  display: flex;
}
.human-gate > span {
  border: 1px solid var(--gold);
  width: 28px;
  height: 28px;
  color: var(--gold);
  border-radius: 50%;
  place-items: center;
  display: grid;
}
.human-gate p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 10px;
}
.customer-layout {
  grid-template-columns: 360px 1fr;
  gap: 18px;
  display: grid;
}
.qr-card {
  text-align: center;
  color: #fff;
  padding: 28px;
}
.qr-card h2 {
  margin: 12px 0 22px;
}
.qr-card p {
  color: #aaa49b;
  font-size: 10px;
  line-height: 2;
}
.qr-card .primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #181612;
  margin-top: 10px;
}
.customer-shop-link {
  text-decoration: none;
  display: inline-block;
}
.qr-demo {
  aspect-ratio: 1;
  background: #fff;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 210px;
  margin: 0 auto 22px;
  padding: 24px;
  display: grid;
}
.qr-demo i {
  background: var(--ink);
}
.qr-demo i:nth-child(2),
.qr-demo i:nth-child(4),
.qr-demo i:nth-child(8) {
  border: 10px solid var(--ink);
  background: #fff;
}
.qr-demo i:nth-child(5) {
  transform: scale(0.45);
}
.customer-main .stats-grid {
  grid-template-columns: repeat(3, 1fr);
}
.journey article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  display: grid;
}
.journey article > b {
  width: 28px;
  height: 28px;
  color: var(--gold);
  border: 1px solid #cbbb9f;
  border-radius: 50%;
  place-items: center;
  font-size: 9px;
  display: grid;
}
.journey article div {
  flex-direction: column;
  display: flex;
}
.journey article span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 9px;
}
.customer-welcome {
  margin-bottom: 18px;
}
.customer-welcome .secondary {
  align-self: center;
  text-decoration: none;
}
.customer-welcome-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}
.member-admin-grid {
  grid-template-columns: minmax(280px, 360px) 1fr;
  align-items: start;
  gap: 18px;
  display: grid;
}
.member-form {
  position: sticky;
  top: 102px;
  overflow: hidden;
}
.member-form .panel-head {
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.member-form-badge {
  background: var(--ink);
  color: #fff;
  letter-spacing: 0.12em;
  border-radius: 100px;
  padding: 6px 9px;
  font:
    7px B Yekan,
    sans-serif;
}
.member-form-body {
  padding: 0 22px 22px;
}
.member-form-body > label {
  margin-top: 14px;
}
.member-form-body label em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}
.member-form-body input,
.member-form-body textarea {
  margin-top: 6px;
}
.member-consent {
  cursor: pointer;
  background: #e3e2dd;
  border-radius: 0.85rem;
  align-items: center;
  gap: 10px;
  padding: 12px;
  display: flex;
}
.member-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  margin: 0;
}
.member-consent span {
  flex-direction: column;
  display: flex;
}
.member-consent small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 8px;
}
.member-list {
  min-height: 315px;
}
.member-list > .panel-head > small {
  color: var(--muted);
  font-size: 9px;
}
.member-list-head {
  grid-template-columns: 1fr minmax(190px, 280px) auto;
  align-items: end;
  gap: 14px;
  display: grid;
}
.member-list-head label {
  color: var(--muted);
  gap: 5px;
  font-size: 8px;
  display: grid;
}
.member-list-head input {
  border: 1px solid var(--line);
  background: #f8f7f3;
  border-radius: 10px;
  width: 100%;
  padding: 9px 11px;
  font: 9px inherit;
}
.member-list article {
  border-top: 1px solid var(--line);
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 20px;
  display: grid;
}
.member-list article > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.member-list article small {
  color: var(--muted);
  text-align: right;
  direction: ltr;
  margin-top: 4px;
  font:
    8px B Yekan,
    sans-serif;
}
.member-list article em {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
  font-size: 8px;
  font-style: normal;
  overflow: hidden;
}
.member-status-stack {
  align-items: flex-end;
}
.member-status-stack > small {
  direction: rtl !important;
}
.member-avatar {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}
.member-optin {
  color: var(--muted);
  background: #deddd8;
  border-radius: 100px;
  padding: 6px 8px;
  font-size: 8px;
}
.member-optin.yes {
  color: #fff;
  background: #111;
}
.member-empty {
  min-height: 230px;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}
.member-empty > span {
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: #deddd8;
  border-radius: 50%;
  place-items: center;
  margin-bottom: 10px;
  font-size: 20px;
  display: grid;
}
.member-empty p {
  margin: 5px 0 0;
  font-size: 9px;
}
.customer-shortcuts {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 20px 22px;
  display: flex;
}
.customer-shortcuts h3 {
  margin: 7px 0 4px;
}
.customer-shortcuts p {
  color: var(--muted);
  margin: 0;
  font-size: 9px;
}
.customer-shortcuts .primary {
  flex: none;
  text-decoration: none;
}
.automation-map {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  display: grid;
}
.automation-map article {
  border: 1px solid var(--line);
  background: #fff;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  min-height: 160px;
  padding: 22px;
  display: grid;
  position: relative;
}
.node-no {
  color: var(--gold);
  font:
    700 12px B Yekan,
    sans-serif;
}
.automation-map article span {
  color: var(--green);
  font-size: 9px;
}
.automation-map article h3 {
  margin: 17px 0 8px;
}
.automation-map article p {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}
.automation-map article i {
  display: none;
}
.log-panel {
  margin-top: 18px;
}
.log-panel > .panel-head > span {
  color: var(--muted);
  font-size: 9px;
}
.log-panel code {
  color: #b8b1a7;
  direction: rtl;
  background: #1a1917;
  padding: 20px 24px;
  font:
    11px/2.3 B Yekan,
    sans-serif;
  display: block;
}
.log-panel code b {
  color: var(--gold-light);
  margin-left: 14px;
}
.settings-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  display: grid;
}
.settings-card {
  padding: 22px;
}
.settings-card h3 {
  margin: 8px 0 22px;
}
.settings-card > label {
  margin-top: 14px;
}
.check-list {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 12px;
}
.check-list label {
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-weight: 400;
  display: flex;
}
.role-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  display: grid;
}
.role-row > span {
  color: #775f3b;
  background: #e9e1d4;
  border-radius: 50%;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}
.role-row div {
  flex-direction: column;
  display: flex;
}
.role-row small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 9px;
}
.role-row button {
  color: #8d6c3a;
  background: 0 0;
  border: 0;
  font-size: 9px;
}
.settings-card > .secondary {
  margin-top: 18px;
}
.service-row {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  padding: 11px 0;
  display: grid;
}
.service-row > div {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}
.service-row b {
  font-size: 10px;
}
.service-row small {
  color: var(--muted);
  font-size: 9px;
}
.settings-footnote {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 8px;
  line-height: 1.7;
}
.service-row strong {
  font-size: 9px;
}
.module-empty {
  min-height: 300px;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  display: flex;
}
.module-empty > span {
  width: 52px;
  height: 52px;
  color: var(--ink);
  background: #deddd8;
  border-radius: 50%;
  place-items: center;
  margin-bottom: 14px;
  font-size: 23px;
  display: grid;
}
.module-empty h3 {
  color: var(--ink);
  margin: 0;
}
.module-empty p {
  max-width: 430px;
  margin: 9px 0 0;
  font-size: 10px;
  line-height: 1.9;
}
.connection-pending,
.step-live,
.step-pending {
  width: max-content;
  color: var(--muted);
  background: #deddd8;
  border-radius: 100px;
  align-items: center;
  padding: 6px 9px;
  font-size: 9px;
  display: inline-flex;
}
.step-live {
  background: #d9e8e1;
  color: var(--green) !important;
}
.step-pending {
  background: #e8e1d7;
  color: var(--orange) !important;
}
.inline-checks {
  gap: 7px;
  margin-top: 8px;
  display: flex;
}
.inline-checks span {
  color: #785f38;
  background: #e8e1d5;
  padding: 8px 10px;
  font-size: 9px;
}
.toast {
  z-index: 80;
  background: var(--ink);
  color: #fff;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 11px;
  display: flex;
  position: fixed;
  bottom: 25px;
  left: 25px;
  box-shadow: 0 12px 40px #00000040;
}
.toast b {
  color: var(--gold-light);
}
.backdrop,
.mobile-nav {
  display: none;
}
@media (max-width: 1100px) {
  .automation-map,
  .content-board,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .customer-layout {
    grid-template-columns: 300px 1fr;
  }
  .customer-main .stats-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  body {
    padding-bottom: 69px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-panel {
    min-height: 100dvh;
    padding: 24px;
  }
  .brand-lockup.dark {
    margin-bottom: 52px;
  }
  .sidebar {
    width: min(84vw, 290px);
    transition: all 0.25s;
    transform: translate(105%);
  }
  .sidebar.is-open {
    transform: none;
  }
  .main {
    margin-right: 0;
  }
  .topbar {
    height: 66px;
    padding: 0 16px;
  }
  .menu-button {
    display: block;
  }
  .topbar > div:first-of-type {
    margin-left: auto;
    margin-right: 12px;
  }
  .profile div {
    display: none;
  }
  .content {
    padding: 25px 15px 30px;
  }
  .welcome-row {
    align-items: flex-start;
    gap: 18px;
  }
  .welcome-row h2 {
    font-size: 25px;
  }
  .welcome-row p {
    font-size: 11px;
  }
  .welcome-row > .primary {
    white-space: nowrap;
    padding: 11px;
    font-size: 10px;
  }
  .stats-grid {
    gap: 8px;
  }
  .stat {
    min-height: 108px;
    padding: 15px;
  }
  .stat div {
    flex-direction: column;
  }
  .stat strong {
    font-size: 23px;
  }
  .accounting-top,
  .customer-layout,
  .dashboard-grid,
  .dashboard-grid.lower,
  .member-admin-grid,
  .settings-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .product-list article {
    grid-template-columns: 50px 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .product-list article > strong {
    display: none;
  }
  .mini-pipeline {
    padding: 22px 12px;
  }
  .mini-pipeline i {
    font-size: 10px;
  }
  .camera-zone {
    min-height: 280px;
    margin-inline: 14px;
  }
  .form-grid {
    padding-inline: 14px;
  }
  .capture-form > label:not(.camera-zone) {
    margin-inline: 14px;
  }
  .form-actions {
    padding-inline: 14px;
  }
  .publish-options {
    margin-bottom: 10px;
  }
  .content-board {
    grid-template-columns: 1fr;
  }
  .post-card {
    grid-template-columns: 110px 1fr;
    display: grid;
  }
  .post-card > img {
    aspect-ratio: auto;
    height: 100%;
  }
  .post-body p {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
  }
  .customer-layout {
    flex-direction: column;
    display: flex;
  }
  .qr-card {
    order: 2;
  }
  .member-form {
    position: static;
  }
  .member-list article {
    padding: 12px 14px;
  }
  .member-list-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .customer-welcome-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .member-list article small {
    font-size: 7px;
  }
  .customer-shortcuts {
    flex-direction: column;
    align-items: flex-start;
  }
  .automation-map {
    grid-template-columns: 1fr;
  }
  .upload-card {
    flex-direction: column;
  }
  .table-row.head {
    display: none;
  }
  .table-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .table-row span:before {
    content: attr(data-label);
    color: #99938a;
    margin-bottom: 4px;
    font-size: 8px;
    display: block;
  }
  .mobile-nav {
    z-index: 35;
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: #faf8f3f7;
    height: 64px;
    display: flex;
    position: fixed;
    inset: auto 0 0;
  }
  .mobile-nav button {
    color: #817b72;
    background: 0 0;
    border: 0;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 8px;
    display: flex;
  }
  .mobile-nav button span {
    font-size: 19px;
    line-height: 1;
  }
  .mobile-nav button.active {
    color: var(--gold);
  }
  .mobile-nav button:nth-child(3) span {
    background: var(--ink);
    width: 34px;
    height: 34px;
    color: var(--gold-light);
    border-radius: 50%;
    place-items: center;
    margin-top: -22px;
    display: grid;
    box-shadow: 0 6px 18px #0003;
  }
  .backdrop {
    z-index: 30;
    background: #0006;
    border: 0;
    display: block;
    position: fixed;
    inset: 0;
  }
  .toast {
    justify-content: center;
    bottom: 78px;
    left: 14px;
    right: 14px;
  }
}
.customer-account-shell {
  color: #111;
  background: #efeee9;
  min-height: 100vh;
  padding-bottom: 64px;
}
.customer-account-shell > header {
  z-index: 20;
  background: #efeee9f0;
  border-bottom: 1px solid #d5d2c9;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  position: sticky;
  top: 0;
}
.customer-account-shell > header a {
  color: #111;
  letter-spacing: 0.08em;
  font-weight: 900;
  text-decoration: none;
}
.customer-account-shell > header button {
  cursor: pointer;
  background: 0 0;
  border: 0;
}
.customer-login-card {
  background: #fff;
  border: 1px solid #ddd9cf;
  width: min(540px, 100% - 32px);
  margin: 9vh auto 0;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 24px 80px #14141214;
}
.customer-account-grid .panel > span,
.customer-login-card > span,
.customer-orders > span {
  color: #777167;
  letter-spacing: 0.16em;
  font-size: 10px;
}
.customer-login-card h1 {
  margin: 10px 0;
  font-size: clamp(28px, 5vw, 52px);
}
.customer-admin-login {
  color: #fff;
  background: #111;
  border: 1px solid #d8d4ca;
  border-radius: 14px;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  padding: 12px 14px;
  text-decoration: none;
  display: grid;
}
.customer-admin-login > span:first-child {
  border: 1px solid #ffffff47;
  border-radius: 50%;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}
.customer-admin-login > span:nth-child(2) {
  flex-direction: column;
  gap: 3px;
  display: flex;
}
.customer-admin-login b {
  font-size: 12px;
}
.customer-admin-login small {
  color: #ffffff9e;
  font-size: 9px;
}
.customer-admin-login i {
  font-size: 18px;
  font-style: normal;
}
.customer-account-grid form,
.customer-login-card form {
  gap: 14px;
  margin-top: 24px;
  display: grid;
}
.customer-account-grid label,
.customer-login-card label {
  gap: 7px;
  font-size: 12px;
  display: grid;
}
.customer-account-grid input,
.customer-account-grid textarea,
.customer-login-card input {
  color: #111;
  width: 100%;
  font: inherit;
  background: #faf9f6;
  border: 1px solid #d8d4ca;
  padding: 13px;
}
.customer-account-hero {
  justify-content: space-between;
  align-items: end;
  width: min(1180px, 100% - 32px);
  margin: 40px auto 22px;
  display: flex;
}
.customer-account-hero h1 {
  margin: 4px 0;
  font-size: clamp(34px, 6vw, 72px);
}
.customer-account-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100% - 32px);
  margin: auto;
  display: grid;
}
.customer-account-grid .panel,
.customer-orders {
  color: #111;
  background: #fff;
  border-color: #ddd9cf;
  padding: 24px;
}
.customer-account-grid h2,
.customer-orders h2 {
  margin: 8px 0 18px;
}
.customer-account-grid .panel > button {
  margin-top: 18px;
}
.customer-orders {
  width: min(1180px, 100% - 32px);
  margin: 16px auto;
}
.customer-orders article {
  border-top: 1px solid #ece9e1;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  display: grid;
}
.customer-orders article a {
  color: #111;
  font-weight: 800;
}
.automation-review-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  display: grid;
}
.automation-review-grid > .panel {
  min-width: 0;
  padding: 22px;
}
.automation-review-grid > .panel > article {
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  display: grid;
}
.automation-review-grid > .panel > article small {
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 4px;
  display: block;
}
.automation-review-grid > .panel > article > div:last-child {
  gap: 6px;
  display: flex;
}
.automation-review-grid > .panel > article button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
}
.ai-control {
  align-content: start;
  gap: 12px;
  display: grid;
}
.ai-control textarea {
  min-height: 130px;
}
.contact-import-panel {
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px;
  display: grid;
}
.contact-file-picker {
  align-items: end;
  gap: 8px;
  display: flex;
}
.contact-file-picker input {
  margin: 0;
}
.contact-mapping-form {
  grid-column: 1/-1;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  display: grid;
}
.contact-mapping-form,
.import-preview-summary {
  border-top: 1px solid var(--line);
  gap: 8px;
  padding-top: 14px;
}
.import-preview-summary {
  flex-wrap: wrap;
  grid-column: 1/-1;
  align-items: center;
  display: flex;
}
.import-preview-summary span {
  background: #eeece6;
  padding: 8px 12px;
}
.import-preview-summary button {
  margin-right: auto;
}
.contact-preview-list {
  grid-column: 1/-1;
  gap: 6px;
  max-height: 300px;
  display: grid;
  overflow: auto;
}
.contact-preview-list > span {
  border: 1px solid var(--line);
  grid-template-columns: 1fr 1fr 2fr;
  gap: 10px;
  padding: 9px;
  display: grid;
}
.contact-preview-list em {
  color: var(--muted);
  font-style: normal;
}
html body,
html body * {
  font-family:
    B Yekan,
    sans-serif !important;
}
.connectivity-banner {
  z-index: 10000;
  color: #fff;
  background: #101010;
  border: 1px solid #3c3c3c;
  border-radius: 16px;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 720px;
  margin-inline: auto;
  padding: 0.85rem 1rem;
  display: flex;
  position: fixed;
  inset: auto 1rem 1rem;
  box-shadow: 0 18px 50px #0004;
}
.connectivity-banner div {
  gap: 0.12rem;
  display: grid;
}
.connectivity-banner span {
  color: #d5d5d5;
  font-size: 0.78rem;
}
.connectivity-banner button {
  color: #111;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-radius: 999px;
  flex: none;
  min-height: 40px;
  padding: 0.5rem 0.9rem;
}
.login-mode-tabs {
  background: #ecebe7;
  border-radius: 999px;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 0.3rem;
  display: grid;
}
.login-mode-tabs button {
  color: #555;
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0.5rem;
}
.login-mode-tabs button.active {
  color: #fff;
  background: #111;
}
@media (max-width: 520px) {
  .connectivity-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .connectivity-banner button {
    width: 100%;
  }
}
@media (max-width: 800px) {
  .customer-account-grid {
    grid-template-columns: 1fr;
  }
  .customer-account-hero {
    flex-direction: column;
    align-items: start;
    gap: 18px;
  }
  .customer-orders article {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .automation-review-grid {
    grid-template-columns: 1fr;
  }
  .automation-review-grid > .panel > article {
    grid-template-columns: 1fr auto;
  }
  .contact-import-panel {
    grid-template-columns: 1fr;
  }
  .contact-import-panel form {
    display: grid;
  }
  .contact-file-picker,
  .contact-mapping-form {
    grid-template-columns: 1fr;
    display: grid;
  }
  .contact-preview-list > span {
    grid-template-columns: 1fr;
  }
}
.rbac-admin {
  max-width: 1280px;
  margin: 3rem auto 0;
}
.rbac-title {
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin: 0 0 1.25rem;
  display: flex;
}
.rbac-title span {
  letter-spacing: 0.18em;
  color: var(--muted);
  font:
    0.5rem B Yekan,
    sans-serif;
}
.rbac-title h2 {
  letter-spacing: -0.05em;
  margin: 0.7rem 0 0.3rem;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 500;
}
.rbac-title p,
.rbac-title > div:last-child {
  color: var(--muted);
  margin: 0;
}
.ajax-users-panel {
  margin-bottom: 1rem;
}
.user-filters {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
  gap: 0.7rem;
  padding: 1rem 1.5rem;
  display: grid;
}
.user-filters input,
.user-filters select {
  margin: 0;
}
.managed-users > article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto minmax(160px, 1fr) 170px auto minmax(230px, auto);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  display: grid;
}
.managed-user-name {
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  display: flex;
}
.managed-user-name span {
  color: var(--muted);
  text-align: right;
  font-family:
    B Yekan,
    sans-serif;
}
.managed-user-name small {
  color: var(--muted);
}
.managed-users select {
  margin: 0;
}
.managed-user-actions {
  justify-content: flex-end;
  gap: 0.4rem;
  display: flex;
}
.managed-user-actions a,
.managed-user-actions button,
.pagination button {
  border: 1px solid var(--line);
  color: inherit;
  white-space: nowrap;
  background: 0 0;
  border-radius: 100px;
  padding: 0.55rem 0.7rem;
  font-size: 0.65rem;
  text-decoration: none;
}
.managed-user-actions a:hover,
.managed-user-actions button:hover,
.pagination button:hover {
  background: var(--ink);
  color: #fff;
}
.pagination {
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  display: flex;
}
.pagination button:disabled {
  opacity: 0.35;
}
.rbac-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  display: grid;
}
.role-builder form,
.warehouse-builder form {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  display: grid;
}
.role-builder form button,
.role-builder form label:first-child,
.role-builder form label:nth-child(3),
.warehouse-builder form button {
  grid-column: 1/-1;
}
.warehouse-list {
  border-top: 1px solid var(--line);
}
.warehouse-list > div {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 80px 1fr auto;
  gap: 0.7rem;
  padding: 0.8rem 1.5rem;
  display: grid;
}
.warehouse-list small,
.warehouse-list span {
  color: var(--muted);
}
.permission-editor {
  margin-bottom: 1rem;
}
.permission-editor > .panel-head > select {
  width: min(280px, 45%);
  margin: 0;
}
.permission-editor-body {
  padding: 1.5rem;
}
.permission-editor-body fieldset {
  border: 1px solid var(--line);
  border-radius: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 1.2rem;
  padding: 1rem;
  display: grid;
}
.permission-editor-body legend {
  color: var(--muted);
  padding: 0 0.6rem;
}
.permission-editor-body label {
  cursor: pointer;
  background: #e6e5e0;
  border-radius: 0.75rem;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem;
  display: flex;
}
.permission-editor-body label > input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
}
.permission-editor-body label > span {
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  display: flex;
}
.permission-editor-body label small {
  color: var(--muted);
  text-overflow: ellipsis;
  font:
    6px B Yekan,
    sans-serif;
  overflow: hidden;
}
.audit-preview {
  margin-bottom: 1rem;
}
.audit-preview > .panel-head > b {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  display: grid;
}
.audit-preview article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  display: grid;
}
.audit-preview article > span {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--green);
  background: #dfe9e3;
  border-radius: 50%;
  place-items: center;
  display: grid;
}
.audit-preview article > div {
  flex-direction: column;
  gap: 0.2rem;
  display: flex;
}
.audit-preview small,
.audit-preview time {
  color: var(--muted);
  font-size: 0.65rem;
}
.user-access-page {
  max-width: none;
}
.effective-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1280px;
  margin: 0 auto 1rem;
  display: grid;
  overflow: hidden;
}
.effective-summary > div {
  background: var(--card);
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 1.2rem;
  display: flex;
}
.effective-summary span {
  color: var(--muted);
  font-size: 0.7rem;
}
.effective-summary b {
  text-overflow: ellipsis;
  overflow: hidden;
}
.effective-grid {
  align-items: start;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto 1rem;
  display: grid;
}
.effective-grid,
.effective-grid.lower {
  grid-template-columns: 1fr 1fr;
}
.permission-group {
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem;
}
.permission-group h3 {
  color: var(--muted);
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
}
.permission-group > div {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  display: grid;
}
.permission-group > div > span {
  color: var(--green);
}
.permission-group > div > div {
  flex-direction: column;
  gap: 0.15rem;
  display: flex;
}
.permission-group small {
  color: var(--muted);
  font:
    6px B Yekan,
    sans-serif;
}
.warehouse-scopes > article {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 1.5rem;
}
.warehouse-scopes > article > div:first-child {
  justify-content: space-between;
  gap: 1rem;
  display: flex;
}
.warehouse-scopes small {
  color: var(--muted);
}
.scope-checks {
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin: 0.8rem 0;
  display: grid;
}
.scope-checks label {
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 0.75rem;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.25rem;
  display: flex;
}
.scope-checks input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}
.scope-checks span {
  font-size: 0.65rem;
}
.session-panel > article {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  display: flex;
}
.session-panel article > div {
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  display: flex;
}
.session-panel small {
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.session-panel time {
  color: var(--muted);
  font-size: 0.65rem;
}
.login-history > article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.5rem;
  display: grid;
}
.login-history > article > span {
  color: var(--green);
}
.login-history article > div {
  justify-content: space-between;
  gap: 1rem;
  display: flex;
}
.login-history time {
  color: var(--muted);
  font-size: 0.65rem;
}
@media (max-width: 900px) {
  .user-filters {
    grid-template-columns: 1fr 1fr;
  }
  .managed-users > article {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .managed-user-actions,
  .managed-users > article > select {
    grid-column: 2/-1;
  }
  .managed-user-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .effective-grid,
  .effective-grid.lower,
  .rbac-grid {
    grid-template-columns: 1fr;
  }
  .permission-editor-body fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .rbac-title {
    flex-direction: column;
    align-items: flex-start;
  }
  .user-filters {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .managed-users > article {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    padding: 1rem;
  }
  .managed-users > article > .status {
    position: absolute;
    left: 1rem;
  }
  .managed-user-actions,
  .managed-users > article > select {
    grid-column: 1/-1;
  }
  .managed-user-actions {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    display: grid;
  }
  .managed-user-actions a,
  .managed-user-actions button {
    text-align: center;
  }
  .role-builder form,
  .warehouse-builder form {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .role-builder form > * {
    grid-column: 1 !important;
  }
  .permission-editor > .panel-head {
    flex-direction: column;
    align-items: stretch;
  }
  .permission-editor > .panel-head > select {
    width: 100%;
  }
  .permission-editor-body {
    padding: 1rem;
  }
  .permission-editor-body fieldset {
    grid-template-columns: 1fr;
    padding: 0.7rem;
  }
  .audit-preview article {
    grid-template-columns: auto 1fr;
  }
  .audit-preview time {
    grid-column: 2;
  }
  .effective-summary {
    grid-template-columns: 1fr 1fr;
  }
  .scope-checks {
    grid-template-columns: repeat(3, 1fr);
  }
  .session-panel > article {
    flex-direction: column;
    align-items: flex-start;
  }
  .session-panel > article button {
    width: 100%;
  }
  .login-history article > div {
    flex-direction: column;
    gap: 0.2rem;
  }
}
@media (max-width: 480px) {
  .welcome-row {
    flex-direction: column;
  }
  .welcome-row > .primary {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    min-height: 100px;
  }
  .stat strong {
    font-size: 20px;
  }
  .panel-head {
    padding: 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column-reverse;
  }
  .form-actions button {
    width: 100%;
  }
  .post-card {
    grid-template-columns: 95px 1fr;
  }
  .post-body {
    padding: 13px;
  }
  .post-body > div b {
    display: none;
  }
  .qr-demo {
    width: 190px;
  }
  .settings-grid {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.shop-shell {
  color: #0a0a0a;
  background: #eeede9;
  min-height: 100dvh;
}
.shop-header {
  z-index: 25;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: #eeede9eb;
  border-bottom: 1px solid #0a0a0a24;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  position: sticky;
  top: 0;
}
.shop-brand {
  color: inherit;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  display: flex;
}
.shop-brand b {
  letter-spacing: -0.08em;
  font:
    700 21px B Yekan,
    sans-serif;
}
.shop-brand span {
  color: #777;
  font-size: 10px;
}
.shop-header > div {
  gap: 24px;
  display: flex;
}
.shop-header > div a {
  color: #555;
  font-size: 9px;
  text-decoration: none;
}
.shop-admin-link {
  color: #333;
  white-space: nowrap;
  border: 1px solid #0a0a0a2e;
  border-radius: 100px;
  padding: 8px 11px;
  font-size: 9px;
  text-decoration: none;
}
.shop-cart-button {
  color: #fff;
  background: #0a0a0a;
  border: 0;
  border-radius: 100px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 9px;
  display: flex;
}
.shop-cart-button b {
  color: #111;
  background: #fff;
  border-radius: 50%;
  place-items: center;
  min-width: 20px;
  height: 20px;
  display: grid;
}
.shop-hero {
  color: #fff;
  background: linear-gradient(115deg, #0a0a0a 0 68%, #d6d5d0 68%);
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 8vw;
  min-height: 520px;
  padding: 60px clamp(18px, 8vw, 120px);
  display: grid;
}
.shop-hero > div > span,
.shop-section-head span {
  color: #aaa;
  letter-spacing: 0.16em;
  font:
    7px B Yekan,
    sans-serif;
}
.shop-hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.88;
}
.shop-hero p {
  color: #aaa;
  max-width: 470px;
  margin: 0 0 27px;
  font-size: 11px;
  line-height: 2;
}
.shop-hero .primary {
  color: #111;
  background: #f3f2ee;
  text-decoration: none;
  display: inline-block;
}
.shop-hero aside {
  color: #111;
  background: #efeee9;
  border-radius: 1.3rem;
  padding: 26px;
  transform: rotate(-2deg);
  box-shadow: 0 25px 60px #0003;
}
.shop-hero aside > b {
  font-variant-numeric: tabular-nums;
  font:
    44px B Yekan,
    sans-serif;
}
.shop-hero aside > span {
  color: #777;
  margin-top: 4px;
  font-size: 9px;
  display: block;
}
.shop-hero aside ol {
  border-top: 1px solid #ccc;
  margin: 18px 0 0;
  padding: 15px 18px 0 0;
  font-size: 10px;
  line-height: 2.4;
}
.shop-catalog {
  padding: 70px clamp(16px, 6vw, 90px) 40px;
}
.shop-section-head {
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  display: flex;
}
.shop-section-head h2 {
  letter-spacing: -0.05em;
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
}
.shop-section-head > p {
  color: #777;
  font-size: 9px;
}
.shop-product-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  display: grid;
}
.shop-product-image {
  aspect-ratio: 4/4.5;
  background: #d8d7d2;
  place-items: center;
  display: grid;
  position: relative;
  overflow: hidden;
}
.shop-product-image img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.shop-product-image > span {
  background: #f5f4f0e0;
  border-radius: 100px;
  padding: 5px 8px;
  font-size: 8px;
  position: absolute;
  top: 11px;
  right: 11px;
}
.shop-product-info > small {
  color: #888;
  font:
    7px B Yekan,
    sans-serif;
}
.shop-product-info h3 {
  margin: 8px 0 15px;
  font-size: 18px;
  font-weight: 500;
}
.shop-product-info > strong {
  min-height: 23px;
  margin-bottom: 13px;
  font-size: 12px;
  display: block;
}
.quantity-control {
  border: 1px solid #ccc;
  border-radius: 100px;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  display: grid;
  overflow: hidden;
}
.quantity-control button {
  background: #e3e2dd;
  border: 0;
  height: 36px;
}
.quantity-control b {
  text-align: center;
}
.shop-empty {
  color: #777;
  border: 1px dashed #bbb;
  border-radius: 1.2rem;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 55px;
  display: flex;
}
.shop-empty b {
  color: #222;
}
.shop-how {
  background: #aaa;
  border-radius: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 30px clamp(16px, 6vw, 90px) 100px;
  display: grid;
  overflow: hidden;
}
.shop-how > div {
  color: #fff;
  background: #0b0b0b;
  padding: 28px;
}
.shop-how span {
  color: #777;
  font:
    10px B Yekan,
    sans-serif;
}
.shop-how b {
  margin: 20px 0 8px;
  font-size: 15px;
  display: block;
}
.shop-how p {
  color: #888;
  margin: 0;
  font-size: 9px;
}
.floating-cart {
  z-index: 40;
  color: #fff;
  background: #0a0a0a;
  border: 1px solid #fff3;
  border-radius: 100px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(620px, 100% - 28px);
  padding: 13px 16px;
  display: grid;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 15px 50px #00000047;
}
.floating-cart span {
  color: #111;
  background: #fff;
  border-radius: 100px;
  padding: 5px 8px;
  font-size: 8px;
}
.floating-cart b {
  text-align: right;
}
.floating-cart i {
  color: #aaa;
  font-size: 9px;
  font-style: normal;
}
.checkout-backdrop {
  z-index: 80;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #0000008c;
  justify-content: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}
.checkout-sheet {
  background: #eeede9;
  width: min(520px, 100%);
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -20px 0 60px #00000040;
}
.checkout-head {
  border-bottom: 1px solid #ccc;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 17px;
  display: flex;
}
.checkout-head span {
  color: #777;
  font-size: 8px;
}
.checkout-head h2 {
  margin: 5px 0 0;
}
.checkout-head button {
  background: 0 0;
  border: 1px solid #bbb;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 20px;
}
.checkout-items article {
  border-bottom: 1px solid #d5d4cf;
  grid-template-columns: 50px 1fr auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  display: grid;
}
.checkout-items img {
  object-fit: contain;
  background: #d8d7d2;
  border-radius: 0.7rem;
  width: 50px;
  height: 50px;
}
.checkout-items article > div {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.checkout-items small {
  color: #888;
  margin-top: 3px;
  font-size: 7px;
}
.checkout-items article > span,
.checkout-items article > strong {
  font-size: 9px;
}
.checkout-total {
  justify-content: space-between;
  padding: 15px 0;
  display: flex;
}
.checkout-grid {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  display: grid;
}
.checkout-sheet form label {
  margin-bottom: 9px;
}
.checkout-sheet form label em {
  color: #888;
  font-size: 8px;
  font-style: normal;
}
.checkout-sheet input,
.checkout-sheet select,
.checkout-sheet textarea {
  margin-top: 5px;
  padding: 10px;
}
.checkout-legal {
  color: #888;
  text-align: center;
  margin: 9px 5px 0;
  font-size: 8px;
  line-height: 1.7;
  display: block;
}
.shop-error {
  color: #7c3b35;
  background: #eadbd8;
  border-radius: 0.8rem;
  padding: 10px;
  font-size: 10px;
}
.order-success {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 30px;
  display: flex;
}
.order-success > span {
  color: #fff;
  background: #0a0a0a;
  border-radius: 50%;
  place-items: center;
  width: 55px;
  height: 55px;
  font-size: 22px;
  display: grid;
}
.order-success h1 {
  margin: 10px 0;
  font:
    30px B Yekan,
    sans-serif;
}
.order-success > strong {
  background: #deddd8;
  border-radius: 100px;
  padding: 6px 10px;
}
.order-success p {
  color: #777;
  max-width: 420px;
  line-height: 1.8;
}
.order-success .primary {
  margin-top: 8px;
  text-decoration: none;
}
.order-success .text-button {
  margin-top: 18px;
}
.public-result-page {
  background: #d8d7d2;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  display: grid;
}
.invoice-sheet {
  background: #f7f6f2;
  border-radius: 1.4rem;
  width: min(850px, 100%);
  padding: 35px;
  box-shadow: 0 25px 80px #00000029;
}
.invoice-sheet > header {
  border-bottom: 2px solid #111;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  display: flex;
}
.invoice-sheet > header span {
  font:
    10px B Yekan,
    sans-serif;
}
.invoice-sheet > header h1 {
  margin: 8px 0 0;
  font-size: 26px;
}
.invoice-number {
  flex-direction: column;
  align-items: flex-end;
  display: flex;
}
.invoice-meta small,
.invoice-number small {
  color: #888;
  font-size: 8px;
}
.invoice-number b {
  font-variant-numeric: tabular-nums;
  margin-top: 7px;
  font:
    15px B Yekan,
    sans-serif;
}
.invoice-meta {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 0;
  display: grid;
}
.invoice-meta > div {
  background: #e6e5e0;
  border-radius: 0.8rem;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  display: flex;
}
.invoice-meta span {
  color: #777;
  font-size: 8px;
}
.invoice-line {
  border-bottom: 1px solid #ddd;
  grid-template-columns: 1.4fr 0.4fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px 8px;
  font-size: 10px;
  display: grid;
}
.invoice-line-head {
  color: #888;
  font-size: 8px;
}
.invoice-line > span:first-child {
  flex-direction: column;
  display: flex;
}
.invoice-line small {
  color: #888;
  margin-top: 4px;
  font-size: 7px;
}
.invoice-total {
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  display: flex;
}
.invoice-total > div {
  flex-direction: column;
  align-items: flex-end;
  display: flex;
}
.invoice-total > div > span {
  color: #777;
  font-size: 9px;
}
.invoice-total > div > b {
  margin: 7px 0;
  font-size: 22px;
}
.invoice-total > div > small {
  color: #888;
  font-size: 8px;
}
.invoice-total img {
  border: 8px solid #fff;
  width: 120px;
  height: 120px;
}
.invoice-note {
  background: #e6e5e0;
  border-radius: 0.8rem;
  padding: 12px;
  font-size: 9px;
}
.invoice-actions {
  border-top: 1px solid #ddd;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  display: flex;
}
.invoice-slip-button {
  cursor: pointer;
  position: relative;
}
.invoice-slip-button input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}
.invoice-actions > p {
  color: #555;
  width: 100%;
  margin: 0;
  font-size: 9px;
}
.invoice-sheet > footer {
  color: #888;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 8px;
  display: flex;
}
.invoice-sheet > footer a {
  color: #111;
}
.invoice-missing {
  text-align: center;
}
.invoice-missing a {
  color: #111;
  margin-top: 15px;
  display: inline-block;
}
@media (max-width: 800px) {
  .shop-header {
    height: 60px;
    padding-inline: 14px;
  }
  .shop-header > div {
    display: none;
  }
  .shop-admin-link {
    margin-inline-start: auto;
    padding: 7px 9px;
  }
  .shop-hero {
    background: #0a0a0a;
    grid-template-columns: 1fr;
    min-height: 430px;
    padding: 45px 20px;
  }
  .shop-hero h1 {
    font-size: 52px;
  }
  .shop-hero aside {
    display: none;
  }
  .shop-catalog {
    padding: 45px 12px 25px;
  }
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
  .shop-product-info {
    padding: 11px;
  }
  .shop-product-info h3 {
    font-size: 14px;
  }
  .shop-product-info > strong {
    font-size: 10px;
  }
  .shop-how {
    grid-template-columns: 1fr;
    margin: 20px 12px 90px;
  }
  .shop-how > div {
    padding: 18px;
  }
  .checkout-sheet {
    padding: 16px 13px 90px;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .checkout-items article {
    grid-template-columns: 44px 1fr auto;
  }
  .checkout-items article > strong {
    grid-column: 2/4;
  }
  .invoice-sheet {
    border-radius: 1rem;
    padding: 18px 13px;
  }
  .invoice-sheet > header h1 {
    font-size: 19px;
  }
  .invoice-number b {
    font-size: 10px;
  }
  .invoice-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .invoice-line {
    grid-template-columns: 1.2fr 0.35fr 0.8fr;
  }
  .invoice-line > span:nth-child(3) {
    display: none;
  }
  .invoice-total {
    justify-content: space-between;
    gap: 10px;
  }
  .invoice-total > div > b {
    font-size: 16px;
  }
  .invoice-total img {
    width: 95px;
    height: 95px;
  }
  .invoice-sheet > footer {
    flex-direction: column;
    gap: 8px;
  }
}
@media print {
  body {
    background: #fff;
  }
  .public-result-page {
    background: #fff;
    padding: 0;
  }
  .invoice-sheet {
    width: 100%;
    box-shadow: none;
  }
  .no-print {
    display: none !important;
  }
}
.shop-product-grid {
  gap: 24px 16px;
}
.shop-product-grid > article {
  background: 0 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.shop-editorial-frame {
  background: linear-gradient(145deg, #d9d6cf, #aaa69f);
  border: 1px solid #0a0a0a24;
  border-radius: 28px;
  padding: 12px;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s;
  box-shadow: 0 22px 48px #1614121f;
}
.shop-product-grid > article:nth-child(3n + 2) .shop-editorial-frame {
  transform: translateY(18px) rotate(0.35deg);
}
.shop-product-grid > article:nth-child(3n + 3) .shop-editorial-frame {
  transform: rotate(-0.4deg);
}
.shop-product-grid > article:hover .shop-editorial-frame {
  transform: translateY(-7px);
  box-shadow: 0 30px 62px #16141233;
}
.shop-frame-top {
  color: #111;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  height: 48px;
  padding: 3px 4px;
  display: grid;
}
.shop-frame-top i {
  aspect-ratio: 1;
  background: #111;
  border-radius: 50%;
  width: 7px;
  margin-top: 3px;
  box-shadow: 0 0 0 5px #0000001a;
}
.shop-frame-top span {
  letter-spacing: 0.15em;
  direction: ltr;
  font:
    700 7px/1.5 Arial,
    sans-serif;
}
.shop-frame-top b {
  letter-spacing: -0.08em;
  font:
    700 25px/1 Arial,
    sans-serif;
}
.shop-editorial-frame .shop-product-image {
  aspect-ratio: 4/4.65;
  background: linear-gradient(145deg, #f8f6f1c7, #d8d3ca8c);
  border: 1px solid #ffffff70;
  border-radius: 21px;
}
.shop-editorial-frame .shop-product-image img {
  filter: drop-shadow(0 18px 18px #00000029);
  transition: transform 0.45s;
}
.shop-product-grid > article:hover .shop-product-image img {
  transform: scale(1.035);
}
.shop-frame-bottom {
  color: #111;
  direction: ltr;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  min-height: 53px;
  padding: 12px 4px 3px;
  display: flex;
}
.shop-frame-bottom b,
.shop-frame-bottom span {
  letter-spacing: 0.12em;
  font:
    700 6px Arial,
    sans-serif;
}
.shop-product-info {
  padding: 18px 8px 10px;
}
.shop-product-info .secondary {
  border-radius: 999px;
}
@media (max-width: 800px) {
  .shop-product-grid {
    gap: 20px 8px;
  }
  .shop-editorial-frame {
    border-radius: 20px;
    padding: 8px;
  }
  .shop-frame-top {
    height: 38px;
  }
  .shop-frame-top b {
    font-size: 19px;
  }
  .shop-editorial-frame .shop-product-image {
    border-radius: 15px;
  }
  .shop-frame-bottom {
    min-height: 42px;
    padding-top: 9px;
  }
  .shop-frame-bottom span {
    display: none;
  }
  .shop-product-grid > article:nth-child(n) .shop-editorial-frame {
    transform: none;
  }
  .shop-product-info {
    padding: 12px 5px 8px;
  }
}
.profile {
  color: inherit;
  text-decoration: none;
}
.data-trust-alert,
.data-trust-strip {
  background: #e8e7e2;
  border: 1px solid #c9c5bc;
  border-radius: 1rem;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  padding: 13px 15px;
  display: flex;
}
.data-trust-alert {
  color: #713f39;
  background: #eee0dd;
  border-color: #d8b7b1;
}
.data-trust-alert b,
.data-trust-alert span {
  display: block;
}
.data-trust-alert span {
  color: #8a5d57;
  flex: 1;
  font-size: 9px;
}
.data-trust-alert button {
  color: #713f39;
  background: 0 0;
  border: 0;
  font-size: 9px;
  font-weight: 700;
}
.data-trust-strip > div {
  flex-direction: column;
  flex: 1;
  display: flex;
}
.data-trust-strip small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.7;
}
.data-trust-strip time {
  color: var(--muted);
  white-space: nowrap;
  font-size: 8px;
}
.month-reconciliation-strip {
  background: linear-gradient(135deg, #eef2ed, #e4ebe5);
  border: 1px solid #b8c9bc;
  border-radius: 1rem;
  grid-template-columns: minmax(0, 1.45fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px 20px;
  display: grid;
}
.month-reconciliation-copy {
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  display: flex;
}
.month-reconciliation-icon {
  color: #fff;
  background: #2e7550;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 15px;
  display: grid;
}
.month-reconciliation-copy small {
  color: #2e7550;
  font-size: 8px;
  font-weight: 700;
}
.month-reconciliation-copy h3 {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}
.month-reconciliation-copy p {
  color: var(--muted);
  margin: 0;
  font-size: 8px;
  line-height: 1.75;
}
.month-reconciliation-counts {
  gap: 7px;
  display: flex;
}
.month-reconciliation-counts span {
  min-width: 82px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  background: #ffffff85;
  border: 1px solid #2e755033;
  border-radius: 0.75rem;
  padding: 9px 10px;
  font-size: 7px;
}
.month-reconciliation-counts b {
  color: var(--ink);
  margin-bottom: 3px;
  font-size: 14px;
  display: block;
}
.month-reconciliation-counts .matched b {
  color: #2e7550;
}
.month-reconciliation-strip > button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  border-radius: 100px;
  padding: 10px 14px;
  font-size: 8px;
  font-weight: 700;
}
.real-empty-state {
  min-height: 120px;
  color: var(--muted);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 24px;
  display: flex;
}
.real-empty-state b {
  color: var(--ink);
}
.real-empty-state span {
  font-size: 9px;
  line-height: 1.7;
}
.real-empty-state.compact {
  min-height: 100px;
  padding: 14px;
}
.task-card > button {
  border: 1px solid var(--line);
  width: calc(100% - 28px);
  color: var(--ink);
  text-align: right;
  background: #e9e8e3;
  border-radius: 0.8rem;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 9px;
  margin: 8px 14px;
  padding: 11px;
  font-size: 10px;
  display: grid;
}
.task-card > button > span {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
}
.task-card > button i {
  color: var(--gold);
  font-style: normal;
}
.orders-panel {
  overflow: hidden;
}
.orders-list article {
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.55fr) minmax(
      230px,
      0.8fr
    );
  align-items: center;
  gap: 16px;
  padding: 17px 21px;
  display: grid;
}
.order-main {
  min-width: 0;
}
.order-no {
  color: var(--gold);
  font:
    8px B Yekan,
    sans-serif;
}
.order-main h3 {
  margin: 7px 0 5px;
}
.order-main small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.7;
}
.order-amount {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  display: flex;
}
.order-amount > small {
  color: var(--muted);
  font-size: 8px;
}
.order-amount > b {
  font-size: 12px;
}
.order-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  display: flex;
}
.order-actions a,
.order-actions button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: 0 0;
  border-radius: 100px;
  padding: 7px 9px;
  font-size: 8px;
  text-decoration: none;
}
.order-actions .confirm-payment {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.order-actions .cancel-order {
  color: var(--red);
}
.order-actions button:disabled {
  opacity: 0.45;
}
.operational-counts {
  background: var(--line);
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  display: grid;
}
.operational-counts span {
  color: var(--muted);
  text-align: center;
  background: #f5f4f0;
  padding: 22px 12px;
  font-size: 9px;
}
.operational-counts b {
  color: var(--ink);
  margin-bottom: 5px;
  font-size: 22px;
  display: block;
}
.check-list.static input {
  pointer-events: none;
}
.access-denied {
  background: var(--ink);
  color: #fff;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  display: grid;
}
.access-denied section {
  text-align: center;
  background: #151515;
  border: 1px solid #ffffff29;
  border-radius: 1.4rem;
  width: min(480px, 100%);
  padding: 40px;
}
.access-denied section > b {
  color: var(--gold);
  font:
    10px B Yekan,
    sans-serif;
}
.access-denied h1 {
  margin: 18px 0 10px;
}
.access-denied p {
  color: #aaa;
  line-height: 1.8;
}
.access-denied a {
  color: #111;
  background: #fff;
  border-radius: 100px;
  margin-top: 14px;
  padding: 11px 15px;
  text-decoration: none;
  display: inline-block;
}
@media (max-width: 800px) {
  .data-trust-strip {
    align-items: flex-start;
  }
  .data-trust-strip time {
    display: none;
  }
  .month-reconciliation-strip {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 15px;
  }
  .month-reconciliation-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }
  .month-reconciliation-counts span {
    min-width: 0;
  }
  .month-reconciliation-strip > button {
    width: 100%;
    min-height: 42px;
  }
  .orders-list article {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .order-actions {
    justify-content: flex-start;
  }
  .operational-counts {
    grid-template-columns: 1fr 1fr;
  }
  .content-calendar-layout {
    grid-template-columns: 1fr;
  }
  .content-planner {
    position: static;
  }
  .needia-file-vault > div:last-child {
    grid-template-columns: 1fr;
  }
  .needia-file-vault article:nth-child(odd) {
    border-inline-end: 0;
  }
  .calendar-day {
    min-height: 86px;
    padding: 5px;
  }
  .calendar-day i {
    padding: 4px;
  }
  .calendar-day i small {
    display: none;
  }
}
@media (max-width: 520px) {
  .content-calendar-head {
    grid-template-columns: auto 1fr auto;
    padding: 13px 10px;
  }
  .content-calendar-head button {
    padding: 6px;
    font-size: 7px;
  }
  .calendar-day {
    min-height: 64px;
  }
  .calendar-day i strong {
    font-size: 7px;
  }
  .accounting-document-preview,
  .accounting-report-preview,
  .invoice-preview-backdrop {
    padding: 8px;
  }
  .invoice-preview-modal {
    border-radius: 12px;
    height: 95dvh;
  }
  .invoice-preview-head {
    padding: 10px;
  }
  .invoice-preview-head a {
    padding: 7px 9px;
  }
  .report-preview-sheet {
    max-height: 96dvh;
    padding: 15px;
  }
  .report-preview-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .report-preview-table > div {
    grid-template-columns: 1fr 1.4fr 0.8fr;
  }
  .report-preview-table > div > span:nth-child(3),
  .report-preview-table > div > span:nth-child(5) {
    display: none;
  }
  .report-preview-sheet > footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media print {
  body:has(.accounting-document-preview) * {
    visibility: hidden;
  }
  body:has(.accounting-document-preview) .accounting-document-preview,
  body:has(.accounting-document-preview) .accounting-document-preview * {
    visibility: visible;
  }
  body:has(.accounting-document-preview) .accounting-document-preview {
    background: #fff;
    padding: 0;
    display: block;
    position: absolute;
    inset: 0;
  }
  body:has(.accounting-document-preview) .document-preview-sheet {
    background: #fff;
    width: 100%;
    max-height: none;
    overflow: visible;
  }
  body:has(.accounting-document-preview) .document-preview-actions,
  body:has(.accounting-document-preview) .document-preview-head > button {
    display: none;
  }
  body:has(.accounting-document-preview) .document-preview-canvas {
    background: #fff;
    padding: 0;
    overflow: visible;
  }
  body:has(.accounting-document-preview) .document-preview-canvas img {
    width: 100%;
    max-height: none;
    box-shadow: none;
  }
  body:has(.accounting-report-preview) * {
    visibility: hidden;
  }
  body:has(.accounting-report-preview) .accounting-report-preview,
  body:has(.accounting-report-preview) .accounting-report-preview * {
    visibility: visible;
  }
  body:has(.accounting-report-preview) .accounting-report-preview {
    background: #fff;
    padding: 0;
    display: block;
    position: absolute;
    inset: 0;
  }
  body:has(.accounting-report-preview) .report-preview-sheet {
    background: #fff;
    width: 100%;
    max-height: none;
    padding: 0;
    overflow: visible;
  }
  body:has(.accounting-report-preview) .report-preview-table > div {
    break-inside: avoid;
  }
}
:root {
  --ink: #0a0a0a;
  --ink-2: #151515;
  --paper: #eeede9;
  --card: #f5f4f0;
  --warm: #d3d2ce;
  --accent: #c9c8c4;
  --gold: #747470;
  --gold-light: #d9d8d4;
  --muted: #7e7e7a;
  --line: #0a0a0a29;
  --radius: 1.2rem;
}
body {
  letter-spacing: 0;
  font-family:
    B Yekan,
    sans-serif;
}
.login-art {
  background:
    linear-gradient(90deg, #0909090d, #090909f2 92%),
    linear-gradient(#0000 40%, #090909d1),
    url(/brand/ram-boutique-hero.webp) 50% 12% / cover no-repeat;
  padding: clamp(2rem, 6vw, 6rem);
}
.login-art:before {
  content: "RAM";
  color: #ffffff09;
  letter-spacing: -0.12em;
  font:
    700 28vw/1 B Yekan,
    sans-serif;
  top: auto;
  bottom: -10vw;
  left: -3vw;
}
.art-copy {
  max-width: 700px;
}
.art-copy span,
.eyebrow,
.section-kicker {
  color: var(--muted);
  letter-spacing: 0.2em;
  font-family:
    B Yekan,
    sans-serif;
  font-size: 0.5rem;
}
.art-copy h1 {
  letter-spacing: -0.035em;
  max-width: 760px;
  margin: 1.8rem 0 1.4rem;
  font:
    400 clamp(4.8rem, 8.2vw, 9rem) / 0.84 B Yekan,
    sans-serif;
}
.art-copy h1 em {
  color: #0000;
  -webkit-text-stroke: 1px #ffffffad;
  margin-top: 0.18em;
  font-style: normal;
  font-weight: 300;
  display: block;
}
.art-copy p {
  color: #ffffff94;
  max-width: 34rem;
  font-size: 0.85rem;
}
.gold-orbit {
  color: #0a0a0a;
  background: #ecece8;
  border-color: #0a0a0a38;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 7.5rem;
  height: 7.5rem;
  display: flex;
  top: 22%;
  left: 8%;
  right: auto;
  transform: rotate(-8deg);
  box-shadow: 0 1rem 3rem #00000040;
}
.gold-orbit:after {
  display: none;
}
.gold-orbit b {
  font:
    400 2.6rem/1 B Yekan,
    sans-serif;
}
.gold-orbit small {
  letter-spacing: 0.15em;
  margin-top: 0.45rem;
  font:
    0.4rem B Yekan,
    sans-serif;
}
.login-panel {
  background: var(--paper);
}
.ram-brand-logo {
  object-fit: contain;
  width: 7.5rem;
  max-height: 3.5rem;
}
.brand-lockup {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.brand-lockup.dark .ram-brand-logo {
  filter: invert();
}
.brand-lockup > small {
  letter-spacing: 0.17em;
  opacity: 0.42;
  direction: ltr;
  font:
    0.42rem B Yekan,
    sans-serif;
}
.login-heading span {
  border-color: var(--line);
  color: #676763;
  border-radius: 100px;
  padding: 0.45rem 0.8rem;
}
.login-heading h2 {
  letter-spacing: -0.045em;
  font-size: 2.4rem;
  font-weight: 500;
}
input,
select,
textarea {
  background: #f8f7f3;
  border-radius: 0.75rem;
}
.primary,
.secondary {
  border-radius: 100px;
  padding: 0.95rem 1.25rem;
}
.primary {
  background: var(--ink);
}
.primary:hover {
  background: #282828;
  transform: translateY(-2px);
}
.sidebar {
  background: #090909;
  width: 250px;
  padding: 2rem 1.2rem;
}
.sidebar .brand-lockup {
  margin: 0.15rem 1rem 3.2rem;
}
.sidebar nav button {
  border: 0;
  border-radius: 100px;
  padding: 0.78rem 1rem;
}
.sidebar nav button.active {
  color: var(--ink);
  background: #f1f1ee;
  border: 0;
}
.sidebar nav button.active span {
  color: var(--ink);
}
.sidebar-foot {
  letter-spacing: 0.06em;
  font-family:
    B Yekan,
    sans-serif;
}
.main {
  margin-right: 250px;
}
.topbar {
  background: #eeede9e0;
  height: 84px;
  padding: 0 4vw;
}
.topbar h1 {
  font-size: 1rem;
  font-weight: 500;
}
.profile > span {
  background: var(--ink);
  color: #fff;
}
.notification {
  background: #f5f4f0;
}
.content {
  padding-top: 3.2rem;
}
.welcome-row h2 {
  letter-spacing: -0.06em;
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
}
.welcome-row p {
  max-width: 42rem;
  font-weight: 300;
}
.panel,
.post-card,
.stat {
  border-radius: var(--radius);
  background: #f5f4f0db;
  overflow: hidden;
}
.stat {
  padding: 1.35rem;
}
.stat.accent {
  background: var(--ink);
}
.mini-pipeline b,
.stat strong {
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  font-family:
    B Yekan,
    sans-serif;
  font-size: 1.35rem;
}
.panel-head {
  padding: 1.35rem 1.5rem;
}
.panel-head h2,
.panel-head h3 {
  font-weight: 500;
}
.product-list img {
  object-fit: contain;
  background: var(--warm);
  filter: grayscale(0.2);
  border-radius: 0.75rem;
}
.status {
  border-radius: 100px;
}
.status.success {
  color: #30302e;
  background: #dcdcd7;
}
.status.process {
  color: #555550;
  background: #e5e4df;
}
.status.review {
  color: #30302e;
  background: #d3d2ce;
}
.quick-panel > button {
  background: #e6e5e0;
  border-radius: 1rem;
}
.quick-panel > button > span {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
}
.text-button {
  color: #333;
  border-bottom: 1px solid;
}
.camera-zone {
  background: #e1e0dc;
  border-radius: 1rem;
}
.publish-options,
.qr-card,
.settings-card {
  border-radius: var(--radius);
}
.toggle-row input:checked + span {
  background: var(--ink);
}
.safe-note {
  background: #deddd8;
  border-radius: 1rem;
}
.safe-note b {
  color: #333;
}
.upload-card label {
  border-radius: 1rem;
}
.post-card > img {
  object-fit: contain;
  background: var(--warm);
  filter: grayscale(0.25);
}
.human-gate {
  border-radius: var(--radius);
  background: #d8d7d2;
}
.qr-card {
  background: var(--ink);
}
.qr-card .primary {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}
.automation-map article {
  border-radius: var(--radius);
  background: #f5f4f0;
}
.log-panel code b,
.node-no,
.quick-panel button i {
  color: #7a7a75;
  font-family:
    B Yekan,
    sans-serif;
}
.log-panel code {
  background: #090909;
}
.role-row > span {
  background: var(--ink);
  color: #fff;
}
.inline-checks span {
  color: #333;
  background: #d9d8d3;
  border-radius: 100px;
}
.toast {
  border-radius: 100px;
}
.mobile-nav {
  background: #090909f5;
  border-color: #ffffff1f;
}
.mobile-nav button {
  color: #ffffff80;
}
.mobile-nav button.active {
  color: #fff;
}
.mobile-nav button:nth-child(3) span {
  color: var(--ink);
  background: #f1f1ee;
}
@media (max-width: 800px) {
  .auto-code-control input,
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .auto-code-control button {
    font-size: 12px;
  }
  .main {
    margin-right: 0;
  }
  .sidebar {
    width: min(84vw, 300px);
  }
  .welcome-row h2 {
    font-size: 2.35rem;
  }
  .login-panel {
    background:
      linear-gradient(#eeede9f5, #eeede9fa),
      url(/brand/ram-boutique-hero.webp) 50% / cover;
  }
  body:has(.capture-page) {
    overflow-x: hidden;
  }
  .content:has(.capture-page) {
    width: 100%;
    height: auto;
    min-height: calc(100dvh - 66px);
    padding: 10px 10px calc(86px + env(safe-area-inset-bottom));
    overflow: visible;
  }
  .capture-page {
    gap: 0;
  }
  .capture-form,
  .capture-page {
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible;
  }
  .capture-form {
    padding-bottom: 0;
    display: block;
  }
  .wizard-layout {
    flex-direction: column;
    display: flex;
  }
  .wizard-aside {
    display: none;
  }
  .wizard-head {
    min-width: 0;
    padding: 9px 11px;
  }
  .wizard-head > div {
    min-width: 0;
  }
  .wizard-head h2 {
    margin-top: 3px;
    font-size: 17px;
  }
  .wizard-head p {
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.45;
  }
  .step-badge {
    white-space: nowrap;
    padding: 5px 7px;
  }
  .wizard-body {
    min-width: 0;
    min-height: 0;
    padding: 7px 9px;
    overflow: visible;
  }
  .wizard-actions {
    z-index: 25;
    bottom: calc(64px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--paper);
    gap: 6px;
    margin-top: 0;
    padding: 7px 9px 9px;
    position: sticky;
    box-shadow: 0 -8px 18px #0000000a;
  }
  .wizard-actions button {
    min-height: 40px;
    padding: 7px;
  }
  .photo-mode {
    gap: 5px;
    margin-bottom: 6px;
  }
  .photo-mode button {
    min-width: 0;
    padding: 7px 9px;
  }
  .photo-mode button small {
    display: none;
  }
  .wizard-body .camera-zone {
    min-height: 96px;
  }
  .optional-note {
    margin-top: 5px;
    padding: 6px 8px;
  }
  .optional-note span {
    font-size: 8px;
  }
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 6px;
  }
  .photo-grid figcaption {
    display: none;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }
  .category-grid > button {
    min-width: 0;
    min-height: 58px;
    padding: 7px 9px;
  }
  .category-grid > button > b {
    margin-top: 5px;
  }
  .category-grid > button > small {
    display: none;
  }
  .subcategory-box {
    margin-top: 5px;
    padding: 7px;
  }
  .details-step .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 0;
  }
  .details-step label {
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .details-step input,
  .details-step textarea {
    margin-top: 3px;
    padding: 6px 7px;
  }
  .auto-code-control {
    gap: 4px;
    width: 100%;
    min-width: 0;
    margin-top: 3px;
  }
  .auto-code-control input {
    min-width: 0;
  }
  .auto-code-control button {
    padding: 0 7px;
    font-size: 9px;
  }
  .field-hint {
    margin-top: 2px;
    font-size: 7px;
  }
  .quick-product-summary {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 7px;
    margin-bottom: 6px;
    padding: 5px;
  }
  .quick-product-summary > div {
    min-width: 0;
  }
  .quick-product-summary .no-photo,
  .quick-product-summary img {
    width: 48px;
    height: 48px;
  }
  .quick-product-summary h3 {
    margin: 2px 0 0;
    font-size: 13px;
  }
  .quick-product-summary p {
    display: none;
  }
  .three-click-mark {
    padding: 5px 7px;
    font-size: 7px;
  }
  .sync-targets {
    gap: 5px;
    margin-top: 6px;
  }
  .sync-target {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 5px;
    min-width: 0;
    padding: 6px;
  }
  .sync-target > div {
    min-width: 0;
  }
  .sync-target > span {
    width: 21px;
    height: 21px;
    font-size: 8px;
  }
  .sync-target b {
    font-size: 8px;
  }
  .sync-target small {
    display: none;
  }
  .sync-target strong {
    padding: 2px 5px;
    font-size: 7px;
  }
  .advanced-product-fields {
    margin-top: 5px;
  }
  .advanced-product-fields summary {
    padding: 7px 9px;
  }
  .wide-field {
    margin-top: 4px !important;
  }
  .wide-field textarea {
    resize: none;
    height: 42px;
  }
  .review-step {
    gap: 5px;
  }
  .review-product {
    grid-template-columns: 60px 1fr;
    gap: 7px;
    padding: 6px;
  }
  .no-photo,
  .review-product > img {
    width: 60px;
    height: 60px;
  }
  .review-product > .text-button {
    display: none;
  }
  .channel-review {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
  }
  .toggle-row {
    padding: 6px 0;
  }
  .toggle-row small {
    display: none;
  }
  .safe-note {
    margin-top: 4px;
    padding: 6px 8px;
  }
  .safe-note p {
    display: none;
  }
  .accounting-welcome {
    align-items: stretch;
  }
  .period-control {
    min-width: 125px;
  }
  .accounting-dashboard,
  .accounting-ledger,
  .accounting-start {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .accounting-start {
    padding: 14px;
  }
  .accounting-start-copy h3 {
    font-size: 17px;
  }
  .accounting-camera-actions {
    margin-top: 9px;
  }
  .accounting-camera-actions > label {
    grid-template-columns: 31px 1fr;
    min-height: 70px;
    padding: 8px;
  }
  .accounting-camera-actions > label > span {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .source-pills {
    margin-top: 10px;
  }
  .accounting-drop {
    padding: 8px;
  }
  .accounting-drop > label {
    min-height: 65px;
    padding: 9px;
  }
  .accounting-status {
    align-items: flex-start;
  }
  .accounting-status small {
    line-height: 1.5;
  }
  .accounting-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cashflow-bars {
    height: 150px;
    padding-inline: 12px;
  }
  .cashflow-bars > div > i {
    height: 115px;
  }
  .accounting-ledger {
    flex-direction: column;
    display: flex;
  }
  .accounting-automation-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .accounting-automation-bar .accounting-camera-actions {
    min-width: 0;
  }
  .accounting-source-actions {
    grid-template-columns: 1fr;
  }
  .whatsapp-import {
    min-width: 0;
  }
  .whatsapp-audit-summary {
    padding: 14px;
  }
  .whatsapp-audit-head {
    flex-direction: column;
    gap: 10px;
  }
  .whatsapp-audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .whatsapp-audit-notes {
    grid-template-columns: 1fr;
  }
  .accounting-entry-table .table-row {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .accounting-entry-table .table-row > span:first-child {
    grid-column: 1/-1;
  }
  .entry-note {
    overflow-wrap: anywhere;
  }
  .entry-documents {
    flex-wrap: wrap;
  }
  .accounting-entry-table .entry-actions {
    grid-column: 1/-1;
  }
  .accounting-change-log article {
    grid-template-columns: 55px 1fr;
    padding: 12px 14px;
  }
  .archive-tabs {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }
  .archive-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archive-hash {
    grid-column: 1/-1;
  }
  .archive-period-bar {
    flex-direction: column;
    align-items: stretch;
    padding-inline: 12px;
  }
  .archive-period-bar > button {
    width: 100%;
    min-height: 40px;
  }
  .archive-direction-filters {
    padding-inline: 12px;
  }
  .archive-search {
    flex-wrap: wrap;
    padding: 12px;
  }
  .archive-search input {
    flex-basis: 100%;
  }
  .archive-message-list article {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 11px 12px;
  }
  .archive-message-state {
    text-align: right;
    grid-column: 2;
    align-items: flex-start;
  }
  .conversion-grid {
    grid-template-columns: 1fr;
  }
  .inbox-conversion-form {
    grid-column: 1/-1;
    padding: 12px;
  }
  .archive-pagination {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 12px;
  }
  .manual-entry {
    order: -1;
    padding: 14px;
    position: static;
  }
  .manual-entry > p {
    margin-bottom: 8px;
  }
  .manual-entry > label {
    margin-top: 8px;
  }
  .category-selector {
    margin-block: 8px 5px;
  }
  .category-selector button {
    min-height: 34px;
  }
  .entry-kind-chip {
    margin-top: 5px;
  }
  .manual-pair {
    gap: 6px;
  }
  .manual-pair > label {
    margin-top: 8px;
  }
  .manual-entry textarea {
    min-height: 48px;
  }
  .ledger-filters {
    padding-inline: 12px;
  }
  .ledger-filters button {
    flex: 1;
    min-width: 70px;
    padding: 6px;
  }
  .data-table {
    padding-inline: 12px;
  }
  .accounting-workflow-hint {
    white-space: nowrap;
    border-radius: 1rem;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .accounting-entry-table {
    max-height: 660px;
  }
}
@media (max-width: 480px) {
  .photo-mode {
    grid-template-columns: 1fr 1fr;
  }
  .photo-mode button {
    padding: 7px;
  }
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .category-grid,
  .subcategory-box > div {
    grid-template-columns: repeat(2, 1fr);
  }
  .details-step .form-grid {
    grid-template-columns: 1fr;
  }
  .quick-product-summary {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .three-click-mark {
    grid-column: 1/-1;
    justify-self: start;
  }
  .sync-targets {
    grid-template-columns: 1fr;
  }
  .wizard-actions {
    flex-direction: row;
  }
  .wizard-actions button {
    flex: 1;
    width: auto;
  }
  .accounting-welcome {
    flex-direction: row;
  }
  .accounting-welcome h2 {
    font-size: 21px;
  }
  .accounting-welcome p {
    display: none;
  }
  .period-control {
    flex: 0 0 112px;
    padding: 8px;
  }
  .accounting-status > .text-button {
    white-space: nowrap;
  }
  .reconcile-card article {
    grid-template-columns: 24px 1fr auto;
    padding: 10px;
  }
}
@media (max-width: 800px) and (max-height: 700px) {
  .wizard-head p {
    display: none;
  }
  .wizard-body .camera-zone {
    min-height: 78px;
  }
  .category-grid > button {
    min-height: 50px;
  }
  .field-hint,
  .optional-note span {
    display: none;
  }
  .wide-field textarea {
    height: 34px;
  }
}
.login-logo {
  object-fit: contain;
  filter: invert();
  width: 9rem;
  max-height: 4rem;
}
.login-card label small {
  color: var(--muted);
  font-weight: 400;
}
.otp-input {
  text-align: center;
  letter-spacing: 0.55em;
  font-variant-numeric: tabular-nums;
  height: 4rem;
  font-family:
    B Yekan,
    sans-serif;
  font-size: 1.35rem;
}
.local-otp-preview {
  background: #dfe9e3;
  border: 1px solid #37735c47;
  border-radius: 1rem;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem 1rem;
  margin: 0 0 1.25rem;
  padding: 1rem;
  display: grid;
}
.local-otp-preview small {
  color: var(--green);
  font-weight: 700;
}
.local-otp-preview b {
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  font:
    700 1.25rem B Yekan,
    sans-serif;
}
.local-otp-preview span {
  color: #607067;
  grid-column: 1/-1;
  font-size: 0.65rem;
}
.login-back {
  border: 0;
  width: 100%;
  margin-top: 1rem;
}
.login-back,
.pending-access-card {
  text-align: center;
}
.pending-access-card > span {
  width: 4rem;
  height: 4rem;
  color: var(--green);
  background: #dfe9e3;
  border-radius: 50%;
  place-items: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  display: grid;
}
.pending-access-card h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}
.pending-access-card p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 2;
}
.access-link {
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 100px;
}
.access-link,
.site-preview-link {
  padding: 0.55rem 0.9rem;
  font-size: 0.7rem;
  text-decoration: none;
}
.site-preview-link {
  border: 1px solid #333333 !important;
  background: #121212 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  border-radius: 100px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}
.site-preview-link:hover {
  background: #252525 !important;
  color: #ffffff !important;
  border-color: #555555 !important;
}
.profile {
  cursor: pointer;
}
.access-page {
  background: var(--paper);
  min-height: 100dvh;
  padding: clamp(1rem, 4vw, 4rem);
}
.access-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto 2rem;
  display: flex;
}
.access-header span {
  letter-spacing: 0.2em;
  color: var(--muted);
  font:
    0.5rem B Yekan,
    sans-serif;
}
.access-header h1 {
  letter-spacing: -0.05em;
  margin: 0.7rem 0 0.35rem;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
}
.access-header p {
  color: var(--muted);
  margin: 0;
}
.access-header > a {
  border: 1px solid var(--line);
  color: inherit;
  white-space: nowrap;
  border-radius: 100px;
  padding: 0.75rem 1rem;
  text-decoration: none;
}
.access-flash {
  max-width: 1280px;
  color: var(--green);
  background: #dfe9e3;
  border-radius: 1rem;
  margin: 0 auto 1rem;
  padding: 1rem 1.2rem;
}
.access-flash.error {
  color: var(--red);
  background: #efe0de;
}
.access-grid {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  max-width: 1280px;
  margin: auto;
  display: grid;
}
.invite-panel form {
  gap: 1rem;
  padding: 1.5rem;
  display: grid;
}
.requests-panel > .panel-head > b,
.users-panel > .panel-head > b {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  display: grid;
}
.requests-panel > article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(140px, 1fr) minmax(130px, 0.5fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  display: grid;
}
.requests-panel > article:last-child {
  border-bottom: 0;
}
.requests-panel article > div:first-child {
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  display: flex;
}
.requests-panel article span {
  color: var(--muted);
  text-align: right;
  direction: ltr;
  font-family:
    B Yekan,
    sans-serif;
}
.requests-panel article small {
  color: var(--green);
}
.requests-panel select {
  margin: 0;
}
.review-actions {
  align-items: center;
  gap: 0.4rem;
  display: flex;
}
.review-actions button {
  white-space: nowrap;
}
.review-actions .danger {
  color: var(--red);
}
.access-empty {
  color: var(--muted);
  text-align: center;
  padding: 3rem 1.5rem;
}
.users-panel {
  max-width: 1280px;
  margin: 1rem auto 0;
}
.users-table article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto minmax(160px, 1fr) auto minmax(130px, 0.4fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  display: grid;
}
.users-table article:last-child {
  border-bottom: 0;
}
.user-avatar {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
}
.users-table article > div:nth-child(2) {
  flex-direction: column;
  gap: 0.2rem;
  display: flex;
}
.users-table article > div:nth-child(2) span {
  color: var(--muted);
  text-align: right;
  direction: ltr;
  font-family:
    B Yekan,
    sans-serif;
}
.users-table article > small {
  color: var(--muted);
  text-align: left;
}
@media (max-width: 800px) {
  .login-page {
    background: var(--paper);
    display: block;
  }
  .login-art {
    align-items: flex-end;
    min-height: 29dvh;
    padding: 1.25rem;
  }
  .login-art .gold-orbit {
    width: 4.5rem;
    height: 4.5rem;
    top: 1rem;
    left: 1rem;
  }
  .art-copy h1 {
    margin: 0.6rem 0;
    font-size: 3.4rem;
  }
  .art-copy p {
    display: none;
  }
  .login-panel {
    min-height: 71dvh;
    padding: 1.5rem 1rem calc(2rem + env(safe-area-inset-bottom));
    place-items: start center;
  }
  .brand-lockup.dark {
    margin-bottom: 2rem;
  }
  .login-heading h2 {
    margin-top: 1rem;
    font-size: 2rem;
  }
  .top-actions {
    gap: 0.5rem;
  }
  .access-link {
    display: none;
  }
  .site-preview-link {
    padding: 0.48rem 0.65rem;
    font-size: 0.62rem;
  }
  .profile div {
    display: none;
  }
  .access-page {
    padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom));
  }
  .access-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .access-header h1 {
    font-size: 2.35rem;
  }
  .access-grid,
  .requests-panel > article {
    grid-template-columns: 1fr;
  }
  .requests-panel > article {
    gap: 0.65rem;
  }
  .review-actions button {
    flex: 1;
  }
  .users-table article {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
  }
  .users-table article > small {
    text-align: right;
    grid-column: 2/-1;
  }
}
.inventory-welcome {
  align-items: flex-end;
}
.inventory-warehouse-select {
  border: 1px solid var(--line);
  background: var(--card);
  min-width: 240px;
  color: var(--muted);
  border-radius: 1rem;
  padding: 1rem;
  font-size: 0.72rem;
}
.inventory-warehouse-select select {
  margin-top: 0.5rem;
}
.inventory-error {
  margin-bottom: 1rem;
}
.inventory-balance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
  display: grid;
}
.inventory-balance-grid > .panel {
  min-height: 150px;
}
.inventory-balance-card {
  text-align: right;
  cursor: pointer;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 1.15rem;
  transition: all 0.2s;
  display: flex;
}
.inventory-balance-card.selected,
.inventory-balance-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.inventory-balance-card > span {
  color: var(--muted);
  font-size: 0.7rem;
}
.inventory-balance-card > b {
  margin: 0.25rem 0 0.65rem;
  font-family:
    B Yekan,
    sans-serif;
  font-size: 0.75rem;
}
.inventory-balance-card > strong {
  font-variant-numeric: tabular-nums;
  font:
    500 2rem B Yekan,
    sans-serif;
}
.inventory-balance-card > small {
  color: var(--muted);
}
.inventory-balance-card > i {
  margin-top: auto;
  padding-top: 0.8rem;
  font-size: 0.68rem;
  font-style: normal;
}
.ledger-match {
  color: var(--green);
}
.ledger-mismatch {
  color: var(--red);
}
.inventory-workspace {
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 1rem;
  display: grid;
}
.inventory-movement-form {
  gap: 0.8rem;
  padding: 1.3rem;
  display: grid;
  position: sticky;
  top: 1rem;
}
.inventory-movement-form h3 {
  margin: 0;
}
.inventory-movement-form label {
  color: var(--muted);
  font-size: 0.72rem;
}
.inventory-movement-form input,
.inventory-movement-form select,
.inventory-movement-form textarea {
  margin-top: 0.4rem;
}
.inventory-movements {
  overflow: hidden;
}
.inventory-movements > article {
  border-top: 1px solid var(--line);
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  display: grid;
}
.inventory-movements article > span {
  text-align: center;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  font:
    600 1rem B Yekan,
    sans-serif;
}
.stock-in {
  color: var(--green);
}
.stock-out {
  color: var(--red);
}
.inventory-movements article > div {
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  display: flex;
}
.inventory-movements article small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.inventory-movements article > button {
  border: 1px solid var(--line);
  color: var(--red);
  background: 0 0;
  border-radius: 100px;
  padding: 0.45rem 0.7rem;
}
.accounting-hardening-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
  display: grid;
}
.accounting-hardening-grid > .panel {
  padding: 1.25rem;
}
.accounting-hardening-grid h3 {
  margin: 0.35rem 0 1rem;
}
.report-filter-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  display: grid;
}
.report-filter-row label {
  color: var(--muted);
  font-size: 0.68rem;
}
.report-filter-row input,
.report-filter-row select {
  margin-top: 0.35rem;
}
.ledger-server-export,
.report-export-actions {
  gap: 0.5rem;
  margin-top: 0.8rem;
  display: flex;
}
.ledger-server-export a,
.report-export-actions a,
.report-export-actions button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: 0 0;
  border-radius: 100px;
  padding: 0.6rem 0.9rem;
  font-size: 0.72rem;
  text-decoration: none;
}
.report-export-actions button {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.accounting-hardening-grid small {
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.8;
  display: block;
}
.setting-create-row {
  grid-template-columns: minmax(0, 1fr) 105px 95px auto;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  display: grid;
}
.setting-create-row + .setting-create-row {
  grid-template-columns: minmax(0, 1fr) 105px auto;
}
.setting-create-row input,
.setting-create-row select {
  min-width: 0;
  margin: 0;
}
.setting-create-row button {
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
}
.setting-create-row button:disabled {
  opacity: 0.35;
}
.ledger-server-export {
  margin: 0;
}
.entry-ledger-meta {
  color: var(--green);
  overflow-wrap: anywhere;
  margin-top: 0.3rem;
  display: block;
}
@media (max-width: 1000px) {
  .inventory-balance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .accounting-hardening-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .inventory-welcome {
    flex-direction: column;
    align-items: stretch;
  }
  .inventory-warehouse-select {
    min-width: 0;
  }
  .inventory-workspace {
    grid-template-columns: 1fr;
  }
  .inventory-movement-form {
    position: static;
  }
  .inventory-movements > article {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.7rem;
  }
  .inventory-movements article > button {
    grid-column: 2;
    justify-self: start;
  }
  .report-filter-row {
    grid-template-columns: 1fr;
  }
  .setting-create-row,
  .setting-create-row + .setting-create-row {
    grid-template-columns: 1fr 100px;
  }
  .setting-create-row button,
  .setting-create-row select {
    grid-column: 1/-1;
  }
}
@media (max-width: 420px) {
  .inventory-balance-grid {
    grid-template-columns: 1fr;
  }
  .accounting-hardening-grid > .panel {
    padding: 1rem;
  }
  .ledger-server-export a {
    padding: 0.45rem 0.65rem;
  }
}
.shop-contact-section {
  background: #f8f7f3;
  border: 1px solid #d7d4cd;
  border-radius: 28px;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  max-width: 1180px;
  margin: 40px auto 120px;
  padding: 34px;
  display: grid;
}
.operations-hero > span,
.shop-contact-section > div > span,
.wholesale-auth-card > span,
.wholesale-hero > span {
  letter-spacing: 0.16em;
  color: #75726c;
  font-family: Arial, sans-serif;
  font-size: 11px;
}
.shop-contact-section h2 {
  margin: 12px 0;
  font-size: 34px;
}
.shop-contact-section form {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  display: grid;
}
.operations-toolbar label,
.shop-contact-section label,
.wholesale-auth-card label {
  color: #6f6b65;
  gap: 7px;
  font-size: 12px;
  display: grid;
}
.operations-create input,
.operations-create select,
.operations-create textarea,
.operations-toolbar input,
.operations-toolbar select,
.row-actions select,
.shop-contact-section input,
.shop-contact-section textarea,
.wholesale-auth-card input,
.wholesale-auth-card textarea {
  color: #111;
  width: 100%;
  font: inherit;
  background: #fff;
  border: 1px solid #d6d3cc;
  border-radius: 14px;
  padding: 12px;
}
.shop-contact-section .wide-field {
  grid-column: 1/-1;
}
.shop-contact-section form > p {
  color: #226a52;
  grid-column: 1/-1;
  margin: 0;
}
.wholesale-shell {
  color: #0b0b0b;
  background: #f2f1ed;
  min-height: 100vh;
  padding: 0 5vw 70px;
}
.wholesale-shell > header {
  border-bottom: 1px solid #d3d0c9;
  justify-content: space-between;
  align-items: center;
  height: 84px;
  display: flex;
}
.wholesale-shell > header a {
  letter-spacing: 0.12em;
  font-family: Arial, sans-serif;
  font-weight: 900;
}
.wholesale-shell > header div {
  align-items: center;
  gap: 12px;
  display: flex;
}
.wholesale-shell > header div b {
  color: #fff;
  background: #0b0b0b;
  border-radius: 999px;
  padding: 8px 13px;
}
.wholesale-hero {
  max-width: 900px;
  padding: 70px 0 40px;
}
.wholesale-hero h1 {
  margin: 15px 0;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 1.05;
}
.wholesale-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}
.wholesale-product-grid article {
  background: #faf9f6;
  border: 1px solid #d3d0c9;
  border-radius: 22px;
  gap: 10px;
  padding: 22px;
  display: grid;
}
.wholesale-product-grid small {
  font-family: monospace;
}
.wholesale-product-grid b {
  font-size: 20px;
}
.wholesale-product-grid input {
  border: 1px solid #cac7c0;
  border-radius: 12px;
  width: 100%;
  padding: 10px;
}
.wholesale-submit {
  width: 100%;
  min-height: 58px;
  margin: 24px 0;
}
.wholesale-history {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  display: grid;
}
.wholesale-history > div {
  background: #faf9f6;
  border: 1px solid #d3d0c9;
  border-radius: 24px;
  padding: 22px;
}
.wholesale-history article {
  border-bottom: 1px solid #dfdcd5;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 13px 0;
  display: grid;
}
.wholesale-history em {
  color: #226a52;
  font-style: normal;
}
.wholesale-message {
  background: #fff5d9;
  border: 1px solid #d2c8a8;
  border-radius: 14px;
  padding: 12px 16px;
}
.wholesale-auth {
  align-content: start;
  display: grid;
}
.wholesale-auth-card {
  background: #faf9f6;
  border: 1px solid #d3d0c9;
  border-radius: 30px;
  width: min(620px, 100%);
  margin: 70px auto;
  padding: 34px;
}
.wholesale-auth-card h1 {
  margin: 12px 0 24px;
  font-size: 42px;
}
.wholesale-auth-card form {
  gap: 14px;
  display: grid;
}
.wholesale-tabs {
  background: #e8e6e0;
  border-radius: 14px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
  padding: 4px;
  display: grid;
}
.wholesale-tabs button {
  background: 0 0;
  border: 0;
  border-radius: 11px;
  padding: 11px;
}
.wholesale-tabs .active {
  color: #fff;
  background: #0b0b0b;
}
.local-otp-preview {
  background: #fff8d9;
  border: 1px dashed #98883c;
  border-radius: 12px;
  padding: 11px;
}
.operations-page {
  color: #111;
  background: #f1f0ec;
  min-height: 100vh;
  padding: 0 4vw 70px;
}
.operations-page > header {
  border-bottom: 1px solid #d2cfc7;
  align-items: center;
  gap: 30px;
  height: 84px;
  display: flex;
}
.operations-page > header > a {
  letter-spacing: 0.14em;
  font-family: Arial, sans-serif;
  font-weight: 900;
}
.operations-page > header nav {
  gap: 6px;
  display: flex;
  overflow: auto;
}
.operations-page > header nav a {
  white-space: nowrap;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
}
.operations-page > header nav a.active {
  color: #fff;
  background: #0a0a0a;
}
.operations-hero {
  padding: 54px 0 28px;
}
.operations-hero h1 {
  margin: 10px 0;
  font-size: clamp(38px, 6vw, 72px);
}
.operations-toolbar {
  background: #faf9f6;
  border: 1px solid #d3d0c8;
  border-radius: 20px;
  grid-template-columns: 2fr 1fr auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  display: grid;
}
.operations-toolbar button,
.row-actions button {
  background: #fff;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 11px;
}
.operations-create {
  background: #faf9f6;
  border: 1px solid #d3d0c8;
  border-radius: 20px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  padding: 20px;
  display: grid;
}
.operations-create h2,
.operations-create textarea {
  grid-column: 1/-1;
}
.operations-message {
  background: #eff6ee;
  border: 1px solid #9bb89d;
  border-radius: 13px;
  padding: 11px;
}
.operations-table {
  background: #faf9f6;
  border: 1px solid #d3d0c8;
  border-radius: 22px;
  overflow: hidden;
}
.operations-table .operations-head,
.operations-table article {
  grid-template-columns: repeat(10, minmax(100px, 1fr));
  gap: 0;
  display: grid;
}
.operations-table .operations-head {
  color: #fff;
  background: #0b0b0b;
}
.operations-table article > div,
.operations-table b,
.operations-table span {
  overflow-wrap: anywhere;
  border-left: 1px solid #dedbd4;
  padding: 13px 10px;
  font-size: 12px;
}
.operations-table article {
  border-bottom: 1px solid #dedbd4;
}
.row-actions {
  gap: 7px;
  display: grid;
}
.operations-empty {
  text-align: center;
  padding: 30px;
}
.operations-shortcuts {
  border: 1px solid #2e2e2e;
  border-radius: 16px;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 12px 0;
  padding: 12px;
  display: grid;
}
.operations-shortcuts small {
  color: #827e75;
  grid-column: 1/-1;
}
.operations-shortcuts a {
  color: #d8d5cc;
  text-align: center;
  background: #151515;
  border-radius: 8px;
  padding: 6px;
  font-size: 11px;
}
@media (max-width: 900px) {
  .shop-contact-section {
    grid-template-columns: 1fr;
    margin-inline: 16px;
  }
  .wholesale-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wholesale-history {
    grid-template-columns: 1fr;
  }
  .operations-page {
    padding-inline: 14px;
  }
  .operations-page > header {
    height: auto;
    padding: 15px 0;
    display: grid;
  }
  .operations-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .operations-table .operations-head {
    display: none;
  }
  .operations-table article {
    border-bottom: 8px solid #ebe9e3;
    grid-template-columns: 1fr;
    display: grid;
  }
  .operations-table article > div,
  .operations-table span {
    border: 0;
    border-bottom: 1px solid #e4e1da;
    grid-template-columns: 120px 1fr;
    display: grid;
  }
  .operations-table span:before {
    content: attr(data-label);
    color: #777;
    font-family: monospace;
  }
  .operations-create {
    grid-template-columns: 1fr;
  }
  .operations-create h2,
  .operations-create textarea {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  .shop-contact-section {
    padding: 22px;
  }
  .shop-contact-section form {
    grid-template-columns: 1fr;
  }
  .shop-contact-section .wide-field {
    grid-column: auto;
  }
  .wholesale-shell {
    padding-inline: 16px;
  }
  .wholesale-product-grid {
    grid-template-columns: 1fr;
  }
  .wholesale-auth-card {
    margin: 28px auto;
    padding: 22px;
  }
  .wholesale-auth-card h1 {
    font-size: 34px;
  }
  .operations-toolbar {
    grid-template-columns: 1fr;
  }
  .operations-page > header nav {
    max-width: calc(100vw - 28px);
  }
}

/* Mobile navigation polish: keep legacy data tabs readable and make the
   central product-capture action the only raised icon in RAM HUB. */
@media (max-width: 900px) {
  .operations-page > header {
    position: sticky;
    top: 0;
    z-index: 30;
    gap: 10px;
    background: #f1f0ecf2;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .operations-page > header nav {
    width: 100%;
    max-width: 100%;
    gap: 6px;
    padding: 2px 0 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .operations-page > header nav::-webkit-scrollbar {
    display: none;
  }

  .operations-page > header nav a {
    flex: 0 0 auto;
    border: 1px solid transparent;
    padding: 8px 12px;
  }

  .operations-page > header nav a.active {
    color: #111;
    background: #e6e3dc;
    border-color: #c8c3b8;
    box-shadow: none;
    font-weight: 700;
  }
}
.growth-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  display: grid;
}
.analytics-bars {
  align-items: end;
  gap: 8px;
  height: 260px;
  padding: 28px 5px 0;
  display: flex;
}
.analytics-bars > div {
  flex-direction: column;
  flex: 1;
  justify-content: end;
  align-items: center;
  gap: 8px;
  height: 100%;
  display: flex;
}
.analytics-bars i {
  background: #adff2f;
  border-radius: 5px 5px 1px 1px;
  width: 100%;
  min-height: 4px;
  display: block;
}
.analytics-bars small {
  color: #777;
  writing-mode: vertical-lr;
  font-size: 9px;
}
.path-list {
  display: grid;
}
.path-list > div {
  border-bottom: 1px solid #e4e1da;
  grid-template-columns: 1fr auto 60px;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  display: grid;
}
.path-list code {
  text-align: left;
  direction: ltr;
  font-size: 12px;
}
.path-list span {
  color: #777;
  font-size: 11px;
}
.path-list b {
  text-align: left;
}
.support-desk {
  grid-template-columns: 360px 1fr;
  gap: 18px;
  display: grid;
}
.support-desk > aside {
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  display: flex;
}
.support-desk > aside button {
  text-align: right;
  background: 0 0;
  border: 0;
  border-radius: 12px;
  gap: 5px;
  padding: 14px;
  display: grid;
}
.support-desk > aside button.active {
  color: #fff;
  background: #111;
}
.support-desk > aside span {
  color: #777;
  font: 10px monospace;
}
.support-desk > aside button.active span {
  color: #aaa;
}
.support-desk > aside small {
  font-size: 10px;
}
.support-thread {
  min-height: 560px;
}
.support-messages,
.support-thread {
  flex-direction: column;
  display: flex;
}
.support-messages {
  flex: 1;
  gap: 10px;
  max-height: 520px;
  padding: 4px;
  overflow: auto;
}
.support-messages article {
  background: #f1efe9;
  border-radius: 17px;
  max-width: 78%;
  padding: 12px 15px;
}
.support-messages article.team {
  color: #fff;
  background: #111;
  align-self: flex-start;
}
.support-messages article.customer {
  align-self: flex-end;
}
.support-messages p {
  white-space: pre-wrap;
  margin: 5px 0;
}
.support-messages small,
.support-messages time {
  opacity: 0.65;
  font-size: 9px;
}
.support-thread form {
  border-top: 1px solid #ddd;
  gap: 10px;
  padding-top: 14px;
  display: grid;
}
.integration-card input,
.support-thread textarea {
  width: 100%;
  font: inherit;
  background: #fff;
  border: 1px solid #d6d3cc;
  border-radius: 12px;
  padding: 12px;
}
.support-thread form > div {
  gap: 8px;
  display: flex;
}
.integration-grid {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
  display: grid;
}
.integration-card {
  gap: 13px;
  display: grid;
}
.integration-card > p {
  color: #69655f;
  line-height: 1.8;
}
.integration-card label {
  gap: 6px;
  font-size: 12px;
  display: grid;
}
.integration-card label:first-of-type {
  align-items: center;
  display: flex;
}
.integration-card label:first-of-type input {
  width: auto;
}
.integration-grid > .data-trust-alert {
  grid-column: 1/-1;
}
@media (max-width: 900px) {
  .growth-grid,
  .integration-grid,
  .support-desk {
    grid-template-columns: 1fr;
  }
  .support-desk > aside {
    max-height: 280px;
    overflow: auto;
  }
  .integration-grid > .data-trust-alert {
    grid-column: auto;
  }
}
.member-name-button {
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
  font-weight: 700;
  display: block;
}
.member-name-button:focus-visible,
.member-name-button:hover {
  text-underline-offset: 4px;
  text-decoration: underline;
}
.member-edit-button {
  color: var(--muted);
  font: inherit;
  text-underline-offset: 3px;
  cursor: pointer;
  background: 0 0;
  border: 0;
  font-size: 0.68rem;
  text-decoration: underline;
}
.customer-row-actions .customer-edit-button {
  color: #fff;
  background: #111;
  border-color: #111;
}
.customer-modal-backdrop {
  z-index: 1000;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #08080894;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}
.customer-modal {
  color: #111;
  background: #f7f6f2;
  border: 1px solid #ffffff59;
  border-radius: 26px;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-shadow: 0 28px 90px #00000052;
}
.customer-modal-header {
  border-bottom: 1px solid #d9d6cf;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px;
  display: flex;
}
.customer-modal-header span {
  letter-spacing: 0.16em;
  color: #777;
  font:
    700 10px Arial,
    sans-serif;
}
.customer-modal-header h2 {
  margin: 7px 0 3px;
  font-size: 30px;
}
.customer-modal-header small {
  color: #777;
}
.customer-modal-header > button {
  color: #111;
  cursor: pointer;
  background: #fff;
  border: 1px solid #cecac2;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 25px;
  line-height: 1;
}
.customer-modal form {
  padding: 24px 26px;
}
.customer-modal-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  display: grid;
}
.customer-modal label {
  color: #625f59;
  gap: 7px;
  font-size: 12px;
  display: grid;
}
.customer-modal label em {
  color: #918d86;
  font-style: normal;
}
.customer-modal input,
.customer-modal select,
.customer-modal textarea {
  color: #111;
  width: 100%;
  font: inherit;
  background: #fff;
  border: 1px solid #d1cec7;
  border-radius: 13px;
  padding: 12px;
}
.customer-modal input:focus,
.customer-modal select:focus,
.customer-modal textarea:focus {
  outline-offset: 2px;
  outline: 2px solid #111;
}
.customer-modal-note {
  grid-column: 1/-1;
}
.customer-modal-consent {
  background: #fff;
  border: 1px solid #d6d2c8;
  border-radius: 15px;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 14px;
  display: flex !important;
}
.customer-modal-consent input {
  width: auto;
  margin-top: 4px;
}
.customer-modal-consent span {
  gap: 4px;
  display: grid;
}
.customer-modal-consent small {
  color: #7b7770;
  line-height: 1.7;
}
.customer-modal-error {
  color: #8d2424;
  background: #fff0f0;
  border: 1px solid #d69b9b;
  border-radius: 12px;
  margin: 14px 0 0;
  padding: 11px 13px;
}
.customer-modal-actions {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  display: flex;
}
.customer-modal-actions button {
  color: #111;
  min-width: 120px;
  font: inherit;
  cursor: pointer;
  background: #fff;
  border: 1px solid #bbb7af;
  border-radius: 13px;
  padding: 12px 16px;
}
.customer-modal-actions .primary {
  color: #fff;
  background: #111;
  border-color: #111;
}
.customer-modal button:disabled {
  cursor: wait;
  opacity: 0.55;
}
@media (max-width: 560px) {
  .customer-modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .customer-modal {
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
  }
  .customer-modal form,
  .customer-modal-header {
    padding: 19px;
  }
  .customer-modal-grid {
    grid-template-columns: 1fr;
  }
  .customer-modal-note {
    grid-column: auto;
  }
  .customer-modal-actions {
    padding: 12px 19px calc(12px + env(safe-area-inset-bottom));
    background: #f7f6f2;
    margin-inline: -19px;
    position: sticky;
    bottom: -19px;
  }
  .customer-modal-actions button {
    flex: 1;
    min-width: 0;
  }
}
.customer-account-embedded,
.shop-shell,
.wholesale-embedded {
  padding-top: 108px;
}
.shop-shell {
  background: #f1f0eb;
}
.shop-hero h1 {
  letter-spacing: -0.06em;
  font-size: clamp(3.4rem, 7vw, 7rem);
  line-height: 0.95;
}
.wholesale-embedded {
  background: #f1f0eb;
  min-height: 72vh;
}
.wholesale-embedded .wholesale-hero {
  padding-top: 5rem;
}
.wholesale-embedded.wholesale-auth {
  min-height: 75vh;
}
.customer-account-embedded {
  background: #f1f0eb;
  min-height: 75vh;
  position: relative;
}
.customer-account-logout {
  z-index: 4;
  background: 0 0;
  border: 1px solid #aaa;
  border-radius: 100px;
  padding: 0.6rem 1rem;
  position: absolute;
  top: 130px;
  left: 5vw;
}
@media (max-width: 900px) {
  .customer-account-embedded,
  .shop-shell,
  .wholesale-embedded {
    padding-top: calc(120px + env(safe-area-inset-top));
  }
  .shop-hero {
    background: #090909;
    min-height: 560px;
  }
  .wholesale-embedded .wholesale-hero {
    padding-top: 3rem;
  }
  .customer-account-logout {
    top: calc(136px + env(safe-area-inset-top));
  }
}
.shop-shell {
  color: #f4f2ed;
  background: #090909;
}
.shop-hero {
  background: radial-gradient(circle at 18% 25%, #24211d 0, #0000 30%), #090909;
  min-height: 570px;
}
.shop-catalog {
  color: #111;
  background: #f1f0eb;
  border-radius: 38px 38px 0 0;
  position: relative;
}
.shop-contact-section {
  color: #111;
}
.shop-how {
  margin-bottom: 70px;
}
.order-success {
  color: #fff;
  background: #090909;
}
.order-success p {
  color: #aaa;
}
.order-success .text-button {
  color: #ddd;
}
.wholesale-embedded {
  color: #f4f2ed;
  background: #090909;
}
.wholesale-embedded .wholesale-hero {
  color: #fff;
}
.wholesale-embedded .wholesale-hero > span {
  color: #aaa;
}
.wholesale-embedded .wholesale-auth-card,
.wholesale-embedded .wholesale-history > div,
.wholesale-embedded .wholesale-product-grid article {
  color: #111;
}
.wholesale-embedded.wholesale-auth {
  align-content: center;
  min-height: calc(100svh - 96px);
}
.wholesale-embedded .wholesale-auth-card {
  margin: 3rem auto;
}
.wholesale-embedded .wholesale-submit {
  color: #111;
  background: #f1f0eb;
  border: 1px solid #ffffff40;
}
.customer-account-embedded {
  color: #f4f2ed;
  background: #090909;
}
.customer-account-embedded .customer-account-grid .panel,
.customer-account-embedded .customer-login-card,
.customer-account-embedded .customer-orders {
  color: #111;
  border-radius: 26px;
}
.customer-account-embedded .customer-login-card {
  margin-top: 3rem;
}
.customer-account-embedded .customer-account-hero {
  color: #fff;
}
.customer-account-embedded .customer-account-logout {
  color: #fff;
  border-color: #ffffff59;
}
@media (max-width: 900px) {
  .shop-hero {
    min-height: 500px;
  }
  .shop-catalog {
    border-radius: 26px 26px 0 0;
  }
  .wholesale-embedded.wholesale-auth {
    min-height: calc(100svh - 76px);
  }
  .wholesale-embedded .wholesale-auth-card {
    margin: 1.8rem auto;
  }
  .customer-account-embedded .customer-login-card {
    margin-top: 1.8rem;
  }
}
@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-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;
}

/* RAM analytics dashboard ΓÇö scoped redesign */
.welcome-row.compact:has(~ .stats-grid .stat-card) {
  position: relative;
  overflow: hidden;
  border: 1px solid #ded7ca;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f6f1e8 58%, #eee3d1 100%);
  padding: 28px 30px;
  margin-bottom: 18px;
  box-shadow: 0 16px 45px rgba(42, 35, 26, 0.06);
}
.welcome-row.compact:has(~ .stats-grid .stat-card)::after {
  content: "";
  position: absolute;
  left: -38px;
  top: -58px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(177, 139, 77, 0.18),
    rgba(177, 139, 77, 0) 68%
  );
  pointer-events: none;
}
.welcome-row.compact:has(~ .stats-grid .stat-card) .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8b6b39;
  background: #ffffff99;
  border: 1px solid #d9c8a9;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 9px;
  letter-spacing: 0.13em;
}
.welcome-row.compact:has(~ .stats-grid .stat-card) .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8dac80;
  box-shadow: 0 0 0 4px rgba(141, 172, 128, 0.16);
}
.welcome-row.compact:has(~ .stats-grid .stat-card) h2 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.035em;
  margin: 15px 0 9px;
}
.welcome-row.compact:has(~ .stats-grid .stat-card) p {
  max-width: 720px;
  color: #69635b;
  font-size: 12px;
}
.stats-grid:has(.stat-card) {
  gap: 14px;
  margin: 0 0 20px;
}
.stats-grid .stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e1dbd0;
  border-radius: 18px;
  background: linear-gradient(150deg, #fff, #faf8f4);
  min-height: 158px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 30px rgba(43, 36, 26, 0.045);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.stats-grid .stat-card:hover {
  transform: translateY(-3px);
  border-color: #cdbb9d;
  box-shadow: 0 17px 38px rgba(43, 36, 26, 0.09);
}
.stats-grid .stat-card::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #f1ece4;
  color: #927044;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}
.stats-grid .stat-card:nth-child(1)::before {
  content: "Γåù";
}
.stats-grid .stat-card:nth-child(2)::before {
  content: "Γùë";
}
.stats-grid .stat-card:nth-child(3)::before {
  content: "Γùç";
}
.stats-grid .stat-card:nth-child(4)::before {
  content: "%";
}
.stats-grid .stat-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 4px;
  height: 100%;
  background: #d5c3a5;
  opacity: 0.75;
}
.stats-grid .stat-card.accent {
  color: #fff;
  border-color: #272522;
  background: linear-gradient(145deg, #191817, #32302c);
  box-shadow: 0 16px 34px rgba(29, 27, 24, 0.18);
}
.stats-grid .stat-card.accent::before {
  color: #ead8b7;
  background: #ffffff12;
}
.stats-grid .stat-card.accent::after {
  background: #c6a36a;
  opacity: 1;
}
.stats-grid .stat-card small {
  color: #79736a;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 500;
}
.stats-grid .stat-card.accent small {
  color: #c7c0b5;
}
.stats-grid .stat-card b {
  font-variant-numeric: tabular-nums;
  font:
    600 clamp(28px, 3vw, 40px) / 1 "B Yekan",
    sans-serif;
  letter-spacing: -0.03em;
}
.stats-grid .stat-card span {
  color: #989188;
  margin-top: 10px;
  font-size: 10px;
}
.stats-grid .stat-card.accent span {
  color: #bdb6aa;
}
.growth-grid:has(.analytics-bars) {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
}
.growth-grid:has(.analytics-bars) > .panel {
  overflow: hidden;
  border: 1px solid #dfd9ce;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(43, 36, 26, 0.05);
}
.growth-grid:has(.analytics-bars) .panel-head {
  margin: 0;
  padding: 22px 24px 17px;
  border-bottom: 1px solid #ece7df;
  background: linear-gradient(180deg, #fff, #fbfaf7);
}
.growth-grid:has(.analytics-bars) .panel-head h3 {
  font-size: 18px;
}
.growth-grid:has(.analytics-bars) .section-kicker {
  color: #9b7a49;
  letter-spacing: 0.14em;
  font-size: 8px;
}
.analytics-bars {
  position: relative;
  align-items: end;
  gap: 10px;
  height: 300px;
  padding: 48px 24px 24px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 59px,
    #eeeae3 60px
  );
}
.analytics-bars > div {
  position: relative;
  gap: 10px;
  min-width: 0;
}
.analytics-bars i {
  position: relative;
  background: linear-gradient(180deg, #c5a56e 0%, #8f6b39 100%);
  border-radius: 9px 9px 3px 3px;
  width: min(34px, 100%);
  min-height: 7px;
  box-shadow: 0 7px 14px rgba(145, 108, 56, 0.2);
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}
.analytics-bars > div:hover i {
  filter: brightness(0.88);
  transform: scaleX(1.08);
}
.analytics-bars small {
  color: #817b72;
  writing-mode: horizontal-tb;
  white-space: nowrap;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.path-list {
  padding: 8px 20px 16px;
}
.path-list > div {
  position: relative;
  border-bottom: 1px solid #eee9e1;
  grid-template-columns: minmax(0, 1fr) auto 50px;
  gap: 12px;
  padding: 16px 4px;
  transition:
    background 0.18s ease,
    padding 0.18s ease;
}
.path-list > div:last-child {
  border-bottom: 0;
}
.path-list > div:hover {
  background: #faf7f1;
  padding-right: 10px;
  padding-left: 10px;
}
.path-list code {
  overflow: hidden;
  color: #3e3b36;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f4f1eb;
  border: 1px solid #ebe5dc;
  border-radius: 8px;
  padding: 7px 9px;
  font: 500 10px/1.2 monospace;
}
.path-list span {
  white-space: nowrap;
  color: #8b847a;
  font-size: 10px;
}
.path-list b {
  color: #8a6838;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}
@media (max-width: 1100px) {
  .growth-grid:has(.analytics-bars) {
    grid-template-columns: 1fr;
  }
  .stats-grid:has(.stat-card) {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .welcome-row.compact:has(~ .stats-grid .stat-card) {
    border-radius: 18px;
    padding: 22px 18px;
  }
  .welcome-row.compact:has(~ .stats-grid .stat-card) h2 {
    font-size: 28px;
  }
  .stats-grid:has(.stat-card) {
    grid-template-columns: 1fr;
  }
  .stats-grid .stat-card {
    min-height: 138px;
    padding: 19px;
  }
  .analytics-bars {
    gap: 6px;
    height: 250px;
    padding: 38px 12px 20px;
  }
  .analytics-bars i {
    width: min(24px, 100%);
  }
  .analytics-bars small {
    font-size: 8px;
  }
  .path-list {
    padding: 6px 12px 14px;
  }
  .path-list > div {
    grid-template-columns: minmax(0, 1fr) auto 38px;
    gap: 7px;
  }
}
