@layer reset,base,layout,components,art,responsive;
@layer components {
  .settings-intro {
    margin-bottom: 24px;
  }

  .settings-grid {
    align-items: start;
  }

  .settings-grid > .panel {
    min-width: 0;
  }

  .settings-grid .panel form {
    margin-top: 15px;
  }

  .point-tier-row {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 16px minmax(0, 1fr) 28px;
    gap: 9px;
    align-items: end;
    margin-bottom: 12px;
  }

  .point-tier-row > span {
    align-self: center;
    margin-top: 18px;
    color: var(--gold);
  }

  .point-tier-row .icon-button {
    width: 28px;
    margin-bottom: 7px;
  }

  .settings-section-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
  }

  .settings-section-heading h2 {
    margin-bottom: 7px;
  }

  .settings-section-heading p {
    font-size: 12px;
  }

  .settings-catalog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    margin: 20px 0 14px;
  }

  .settings-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
  }

  .settings-product > div {
    min-width: 0;
  }

  .settings-product strong {
    font-size: 13px;
  }

  .settings-product small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    overflow-wrap: anywhere;
    margin-top: 4px;
  }

  .settings-product .button {
    flex-shrink: 0;
  }

  .variant-editor-row.configurable-variant {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    background: #f5f6ee;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .variant-main-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 115px 30px;
    align-items: end;
    gap: 10px;
  }

  .variant-main-fields > .icon-button {
    width: 30px;
    margin-bottom: 4px;
  }

  .selling-days {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .discount-cart-control {
    font-size: 11px;
    margin: 8px 0;
  }

  .bank-details {
    white-space: pre-wrap;
    font-size: 12px;
    background: var(--soft);
    padding: 12px;
    border-radius: 8px;
  }

  .receipt-thanks {
    white-space: pre-wrap;
  }
}

@layer responsive {
  @media (max-width: 700px) {
    .settings-catalog {
      grid-template-columns: 1fr;
    }

    .settings-section-heading {
      flex-direction: column;
    }

    .settings-section-heading .heading-actions {
      flex-wrap: wrap;
    }

    .variant-main-fields {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
    }

    .variant-main-fields > label:nth-child(3) {
      grid-row: 2;
      grid-column: 1/3;
    }

    .variant-main-fields > .icon-button {
      grid-column: 3;
      grid-row: 1/3;
      align-self: center;
    }

    .configurable-variant .form-grid {
      grid-template-columns: 1fr;
    }

    .point-tier-row {
      gap: 6px;
      grid-template-columns: minmax(0, 1.6fr) 12px minmax(0, 1fr) 24px;
    }

    .point-tier-row input {
      padding: 10px 8px;
      font-size: 12px;
    }

    .point-tier-row label {
      font-size: 10px;
    }

    .point-tier-row .icon-button {
      width: 24px;
    }
  }
}

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body,
  h1,
  h2,
  h3,
  p,
  figure {
    margin: 0;
  }

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

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

  button {
    cursor: pointer;
  }

  button:disabled {
    cursor: not-allowed;
  }

  img,
  svg {
    vertical-align: middle;
  }

  img {
    max-width: 100%;
  }

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

  button {
    color: inherit;
  }

  fieldset {
    border: 0;
    padding: 0;
    margin: 0;
  }

  legend {
    padding: 0;
  }

  table {
    border-collapse: collapse;
  }

  input,
  textarea,
  select {
    min-width: 0;
  }
}

@layer base {
  :root {
    --forest: #244d3e;
    --forest-deep: #193c30;
    --matcha: #779267;
    --cream: #f8f7f0;
    --paper: #fffefa;
    --soft: #eeefe5;
    --gold: #b49b67;
    --ink: #293c32;
    --muted: #819083;
    --line: #e5e8dc;
    --pink: #e5b5b1;
    --danger: #a14636;
    --shadow: 0 6px 28px #28432d08;
    color: var(--ink);
    background: var(--cream);
    font-family:
      Inter,
      'Segoe UI',
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-synthesis: none;
  }

  body {
    min-width: 320px;
  }

  h1,
  h2,
  h3 {
    font-weight: 600;
    color: var(--forest-deep);
    line-height: 1.3;
  }

  h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    letter-spacing: -1px;
  }

  h2 {
    font-size: 19px;
  }

  h3 {
    font-size: 15px;
  }

  button {
    border: 0;
    background: none;
  }

  p {
    color: #748273;
    line-height: 1.7;
  }

  strong {
    font-weight: 600;
  }

  small {
    font-size: 12px;
  }

  em {
    font-style: normal;
  }

  button:disabled {
    opacity: 0.48;
  }

  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 3px solid #b49b6799;
    outline-offset: 3px;
  }

  ::selection {
    background: #dce6c9;
  }

  input,
  select,
  textarea {
    width: 100%;
    border: 1px solid #dce2d5;
    border-radius: 9px;
    background: var(--paper);
    padding: 11px 12px;
    color: var(--ink);
    min-height: 43px;
    transition: border-color 0.15s;
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--matcha);
  }

  input[type='checkbox'],
  input[type='radio'] {
    width: 17px;
    height: 17px;
    min-height: 17px;
    accent-color: var(--forest);
    flex-shrink: 0;
  }

  textarea {
    resize: vertical;
    min-height: 82px;
  }

  label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #5b6a5b;
    font-size: 12px;
    font-weight: 500;
  }

  form {
    display: grid;
    gap: 17px;
  }

  pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    color: #596657;
  }

  code,
  .monospace {
    font-family: Consolas, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 20px 0;
  }

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

  .negative-text,
  .danger {
    color: var(--danger);
  }

  .success-text {
    color: #54764d;
  }

  .success-text svg {
    margin-right: 5px;
  }

  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 650;
    color: #85936c;
    line-height: 1.5;
  }

  .full-width {
    width: 100%;
    grid-column: 1/-1;
  }

  .mobile-only {
    display: none;
  }

  .spinning {
    animation: rotate 1.8s linear infinite;
  }

  @keyframes rotate {
    to {
      transform: rotate(360deg);
    }
  }
}

@layer layout {
  .sidebar {
    width: 202px;
    position: fixed;
    inset: 0 auto 0 0;
    background: #f0f2e8;
    border-right: 1px solid #e2e7d8;
    padding: 34px 18px 22px;
    display: flex;
    flex-direction: column;
    z-index: 20;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 4px;
  }

  .brand-seal {
    width: 39px;
    height: 47px;
    border: 1px solid #9aab8c;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: var(--forest);
    font-family: serif;
    font-size: 29px;
  }

  .brand strong {
    font-family: Georgia, serif;
    font-size: 22px;
    letter-spacing: 2px;
  }

  .brand small {
    display: block;
    color: #7e8b70;
    font-size: 8px;
    letter-spacing: 3px;
    text-align: center;
    margin-top: -3px;
  }

  .sidebar-rule {
    width: 32px;
    height: 1px;
    background: var(--gold);
    margin: 30px 12px;
  }

  .sidebar nav {
    display: grid;
    gap: 7px;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    color: #7d897a;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: 0.15s;
  }

  .nav-link:hover {
    background: #e7eddf;
    color: var(--forest);
  }

  .nav-link.active {
    background: var(--forest);
    color: var(--paper);
    box-shadow: 0 4px 12px #244d3e19;
  }

  .nav-link b {
    margin-left: auto;
    min-width: 17px;
    line-height: 17px;
    font-size: 10px;
    border-radius: 5px;
    background: #bca36c;
    color: white;
    text-align: center;
  }

  .sidebar-bottom {
    margin-top: auto;
    text-align: center;
    padding-top: 60px;
  }

  .branch-mark {
    color: #a2ad8b;
    transform: rotate(-20deg);
    margin-bottom: 12px;
  }

  .sidebar-bottom p {
    font-family: Georgia, serif;
    font-size: 12px;
    line-height: 1.8;
    color: #89967c;
  }

  .sidebar-bottom em {
    font-style: italic;
  }

  .device-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: #7b8b70;
    background: #e6ecdd;
    border-radius: 20px;
    padding: 5px 9px;
    margin-top: 24px;
  }

  .device-pill i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7f9a6c;
  }

  .app-body {
    margin-left: 202px;
  }

  .topbar {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    gap: 15px;
    background: #fffefa99;
  }

  .topbar-place {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
  }

  .topbar-date {
    font-size: 11px;
    color: #8a9585;
    text-transform: capitalize;
  }

  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 17px;
  }

  .avatar {
    height: 32px;
    width: 32px;
    background: #e6ecdc;
    display: grid;
    place-items: center;
    border: 1px solid #d9e2cb;
    color: #76916a;
    border-radius: 50%;
    font-family: Georgia, serif;
  }

  .language-button {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 11px;
    color: #7f8a79;
  }

  .mobile-brand {
    display: none;
  }

  .main-content {
    padding: 32px;
    max-width: 1640px;
    min-height: calc(100vh - 136px);
    margin: auto;
    outline: none;
  }

  .app-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 32px 20px;
    font-size: 9px;
    color: #9ba390;
    letter-spacing: 0.5px;
  }

  .selling-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 326px;
    gap: 27px;
    align-items: start;
  }

  .menu-workspace {
    min-width: 0;
  }

  .welcome-banner {
    background: #e9eedf;
    position: relative;
    overflow: hidden;
    min-height: 214px;
    border: 1px solid #e2e8d5;
    border-radius: 15px;
    display: flex;
    align-items: center;
  }

  .welcome-copy {
    padding: 27px 30px;
    z-index: 2;
    max-width: 71%;
  }

  .welcome-copy h1 {
    font-size: 29px;
    margin: 8px 0 8px;
  }

  .welcome-copy > p:not(.eyebrow) {
    font-size: 11px;
    max-width: 330px;
    color: #819073;
  }

  .welcome-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }

  .welcome-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 19px;
  }

  .welcome-actions .button {
    font-size: 10px;
    min-height: 36px;
    padding: 9px 13px;
    gap: 7px;
  }

  .welcome-actions .text-button {
    font-size: 10px;
  }

  .welcome-image {
    position: absolute;
    right: -8%;
    bottom: 0;
    top: 0;
    width: 46%;
    overflow: hidden;
    opacity: 0.95;
    mask-image: linear-gradient(90deg, transparent, black 23%);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 23%);
  }

  .welcome-image > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 13% 50%;
    transform: scale(1.45);
  }

  .hero-stamp {
    position: absolute;
    right: 22%;
    bottom: 16px;
    background: #fffcf1e6;
    padding: 5px 14px;
    font-family: serif;
    font-size: 11px;
    color: #526b43;
    border: 1px solid #d7c598;
    transform: rotate(-5deg);
    border-radius: 3px;
  }

  .hero-stamp small {
    display: block;
    font-family: Georgia, serif;
    font-size: 7px;
  }

  .blossom {
    position: absolute;
    color: #dda9a169;
    font-size: 37px;
    z-index: 3;
  }

  .b1 {
    top: -13px;
    left: 54%;
    transform: rotate(25deg);
  }

  .b2 {
    bottom: 7px;
    left: 47%;
    font-size: 20px;
  }

  .today-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 23px 0 29px;
    padding: 0 3px;
  }

  .today-strip > div {
    display: flex;
    gap: 11px;
    align-items: center;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef0e5;
    color: #7d9466;
    display: grid;
    place-items: center;
  }

  .today-strip small {
    display: block;
    color: #8b9684;
    font-size: 10px;
    margin-bottom: 3px;
  }

  .today-strip strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #3e5641;
    line-height: 1.3;
  }

  .today-strip em {
    font-size: 10px;
    font-weight: 400;
    color: #849378;
  }

  .catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }

  .section-title {
    display: flex;
    align-items: center;
    gap: 11px;
  }

  .section-title > span:not(.tag) {
    font-size: 10px;
    color: #94a089;
    padding: 3px 8px;
    border-radius: 7px;
    background: #eef0e5;
  }

  .catalog-toolbar h2 {
    font-family: Georgia, serif;
    font-size: 24px;
  }

  .category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 18px 0 22px;
    scrollbar-width: none;
  }

  .category-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 8px;
    border: 1px solid #dfe5d5;
    font-size: 11px;
    white-space: nowrap;
    min-height: 37px;
    padding: 8px 13px;
    color: #8c9880;
    background: #fcfcf6;
  }

  .category-tab.selected {
    border-color: var(--forest);
    color: white;
    background: var(--forest);
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
  }

  .catalog-footnote {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    color: #9aa18b;
    font-size: 9px;
    margin: 24px 0;
  }

  .loyalty-ribbon {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #dedfc7;
    background: #eeefdf;
    border-radius: 11px;
    padding: 17px 20px;
  }

  .loyalty-flower {
    font-size: 34px;
    color: #bcaa77;
  }

  .loyalty-ribbon strong {
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 400;
  }

  .loyalty-ribbon p {
    font-size: 10px;
    color: #8a9476;
    margin-top: 3px;
  }

  .loyalty-ribbon > .text-button {
    margin-left: auto;
    font-size: 10px;
  }

  .page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 6px 0 26px;
  }

  .page-heading h1 {
    margin: 6px 0 7px;
  }

  .page-heading p:not(.eyebrow) {
    font-size: 12px;
    max-width: 600px;
  }

  .heading-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
  }

  .content-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 23px 0;
  }

  .settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .settings-grid .panel {
    padding: 25px;
  }

  .settings-grid .panel > p {
    font-size: 12px;
    margin: 15px 0;
  }

  .settings-grid .panel form > p {
    margin: 0;
    font-size: 11px;
  }

  .settings-grid h2 {
    margin-bottom: 19px;
  }

  .setting-language {
    margin-top: 20px;
  }

  .technical-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 18px;
    font-size: 10px;
    border-top: 1px solid var(--line);
    padding-top: 15px;
    margin: 20px 0;
    color: #85917d;
  }

  .technical-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-family: monospace;
  }

  .reference-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 24px;
  }

  .reference-gallery section:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }

  .reference-gallery section:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .reference-gallery h2 {
    margin-bottom: 16px;
  }

  .reference-gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .reference-gallery .text-button {
    margin-top: 15px;
  }

  .mobile-cart-bar {
    display: none;
  }
}

@layer components {
  .variant-availability {
    grid-column: 1/-1;
    margin: 0 0 6px;
  }

  .variant-editor-row .variant-availability input {
    width: 16px;
    min-height: 16px;
    padding: 0;
  }

  .error-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a15d47;
    border: 1px solid #e7c9b8;
    background: #fbefe5;
    border-radius: 9px;
    padding: 13px 16px;
    margin-bottom: 20px;
    font-size: 12px;
  }

  .error-notice > span {
    flex: 1;
  }

  .error-notice > svg {
    flex-shrink: 0;
  }

  .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    border-radius: 9px;
    min-height: 43px;
    padding: 11px 17px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    transition:
      background 0.15s,
      transform 0.15s;
  }

  .button:hover:not(:disabled) {
    transform: translateY(-1px);
  }

  .primary {
    background: var(--forest);
    color: #fffdf4;
    box-shadow: 0 3px 6px #244d3e0c;
  }

  .primary:hover:not(:disabled) {
    background: #345f49;
  }

  .secondary {
    background: #fffefa;
    border: 1px solid #dce2d3;
    color: #657956;
  }

  .secondary:hover:not(:disabled) {
    background: #eff2e6;
  }

  .small {
    min-height: 35px;
    padding: 7px 12px;
    font-size: 11px;
  }

  .danger-button {
    background: #a15442;
    color: white;
  }

  .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 0;
    color: #7b8e63;
    font-size: 11px;
    min-height: 30px;
  }

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

  .icon-button {
    display: inline-grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    border-radius: 8px;
    color: #8c997f;
  }

  .icon-button:hover {
    background: #eef1e6;
  }

  .tiny-button {
    width: 19px;
    height: 21px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #a4ac9a;
  }

  .panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 23px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
  }

  .panel h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    font-size: 17px;
  }

  .panel > p {
    font-size: 12px;
    margin: 12px 0;
  }

  .panel:last-child {
    margin-bottom: 0;
  }

  .search-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
    border: 1px solid #e0e4d6;
    background: #fdfdf7;
    border-radius: 8px;
    padding: 0 12px;
    min-width: 0;
    color: #a1ac96;
  }

  .search-field input {
    border: 0;
    background: transparent;
    min-height: 36px;
    padding: 8px 0;
    font-size: 10px;
    outline: none;
  }

  .search-field input:focus-visible {
    outline: none;
  }

  .search-field.wide {
    width: 380px;
  }

  .catalog-toolbar .search-field {
    max-width: 235px;
  }

  .sync-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    background: #edf2e5;
    border: 1px solid #e0e8d6;
    color: #7b9167;
    border-radius: 20px;
    padding: 7px 11px;
  }

  .sync-pill b {
    background: #dfe7cd;
    min-width: 17px;
    border-radius: 50%;
    line-height: 17px;
  }

  .sync-pill.attention {
    background: #fae8dd;
    color: #a17043;
  }

  .product-card {
    display: block;
    text-align: left;
    background: var(--paper);
    border: 1px solid #e4e7da;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 0;
    box-shadow: 0 3px 7px #344b2f03;
    transition:
      transform 0.2s,
      box-shadow 0.2s;
  }

  .product-card:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px #344b2f12;
    border-color: #c8d3bc;
  }

  .product-art {
    height: 145px;
    position: relative;
    overflow: hidden;
    background: #f0f0e5;
  }

  .product-art > .menu-photo,
  .variant-hero > .menu-photo {
    object-fit: contain;
    background: #f1e5d8;
  }

  .guide-mini-art > .menu-photo {
    object-fit: cover;
  }

  .product-info {
    padding: 14px 15px 13px;
  }

  .product-info h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.35;
    min-height: 44px;
  }

  .product-info p {
    font-size: 9px;
    color: #a0a68f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 5px 0 11px;
  }

  .product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #627d4e;
    font-size: 13px;
  }

  .add-circle {
    border: 1px solid #c9d5bd;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f4f6ec;
  }

  .from {
    color: #a4ad95;
    font-size: 10px;
  }

  .card-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    border: 1px solid #f4f3e9d0;
    border-radius: 5px;
    background: #fffdf0cc;
    color: #8b9675;
    font-size: 8px;
    padding: 3px 6px;
  }

  .sold-out {
    filter: saturate(0.45);
    opacity: 0.55;
  }

  .cart-panel {
    position: sticky;
    top: 24px;
    background: #fffefa;
    border: 1px solid #e1e5d6;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 115px);
  }

  .cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px 19px;
    border-bottom: 1px solid var(--line);
  }

  .cart-header .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
  }

  .cart-header h2 {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
  }

  .order-number {
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
    color: #8b987b;
    background: #f0f2e6;
  }

  .customer-attach {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
    border: 1px dashed #d2ddc7;
    border-radius: 8px;
    margin: 17px 17px 7px;
    padding: 11px 12px;
    color: #8c9e7b;
    min-height: 63px;
    flex-shrink: 0;
  }

  .customer-attach > span:nth-child(2) {
    flex: 1;
  }

  .customer-attach strong {
    display: block;
    color: #859474;
    font-size: 11px;
  }

  .customer-attach small {
    display: block;
    font-size: 9px;
    margin-top: 4px;
    color: #a1ac93;
  }

  .customer-attach.attached {
    background: #f0f5e7;
    border-style: solid;
  }

  .customer-icon {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: #edf2e4;
    display: grid;
    place-items: center;
  }

  .cart-lines {
    overflow: auto;
    padding: 0 17px;
    min-height: 180px;
    max-height: 410px;
    flex: 1;
  }

  .cart-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 17px 0;
    border-bottom: 1px dashed #e7e9df;
  }

  .cart-line:last-child {
    border-bottom: 0;
  }

  .cart-thumb {
    width: 45px;
    height: 47px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f2f1e6;
    color: var(--flavor);
    font-size: 36px;
    text-shadow: 1px 4px 4px #756b4820;
  }

  .cart-line-content {
    flex: 1;
    min-width: 0;
  }

  .cart-line-title {
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }

  .cart-line-title strong {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
  }

  .cart-line-content > small {
    display: block;
    font-size: 9px;
    color: #a7af9b;
    margin: 4px 0 8px;
  }

  .cart-line-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .cart-line-bottom > strong {
    font-size: 11px;
    color: #6d815d;
  }

  .quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e5d6;
    border-radius: 5px;
    height: 25px;
    font-size: 10px;
    background: #fffdf6;
  }

  .quantity-control button {
    width: 25px;
    height: 25px;
    color: #9ba98a;
    padding: 0;
  }

  .quantity-control b {
    font-weight: 400;
    min-width: 14px;
    text-align: center;
  }

  .gift-toggle {
    display: flex;
    gap: 5px;
    align-items: center;
    font-size: 8px;
    color: #a49d7b;
    padding: 5px 0;
    margin-top: 5px;
  }

  .gift-toggle.active {
    color: #637e50;
  }

  .cart-summary {
    padding: 18px 20px 13px;
    border-top: 1px solid #e6e8dc;
    background: #fffef8;
    flex-shrink: 0;
  }

  .loyalty-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    padding: 8px 10px;
    background: #eff3e6;
    font-size: 10px;
    color: #82966d;
  }

  .loyalty-summary span {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #7f8c74;
    margin: 12px 0;
  }

  .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    margin: 20px 0 17px;
    color: #506346;
  }

  .total-row > strong:last-child {
    font-size: 23px;
    color: var(--forest);
    font-weight: 600;
  }

  .checkout-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    min-height: 45px;
    padding: 13px 17px;
  }

  .cart-safety {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 8px;
    color: #a8af9a;
    margin-top: 12px;
  }

  .empty-state {
    text-align: center;
    padding: 42px 15px;
  }

  .empty-state > span {
    color: #b6c1a5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border: 1px dashed #d9e0cc;
    border-radius: 50%;
    background: #f5f6ed;
    margin-bottom: 16px;
  }

  .empty-state h3 {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: #8a997a;
    margin-bottom: 8px;
  }

  .empty-state p {
    font-size: 11px;
    color: #a3ac96;
    max-width: 270px;
    margin: auto;
  }

  .cart-lines .empty-state {
    padding: 40px 8px 48px;
  }

  .cart-lines .empty-state h3 {
    font-size: 17px;
  }

  .cart-lines .empty-state p {
    font-size: 10px;
    max-width: 215px;
  }

  .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    font-size: 10px;
    color: #8d9682;
    background: #f0f2e9;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1.4;
    margin: 2px;
  }

  .tag.green {
    color: #6c8857;
    background: #edf3e3;
  }

  .tag.warm {
    color: #ac8d59;
    background: #f8f0dc;
  }

  .tag.warning {
    color: #aa664c;
    background: #fbe9dd;
  }

  .data-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #9aa68e;
    font-size: 10px;
    padding: 11px 14px;
    background: #eff2e6;
    border-radius: 8px;
    margin-bottom: 22px;
  }

  .data-note > .tag {
    margin-left: auto;
  }

  .info-box {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #f1f1e4;
    border: 1px solid #e6e7d5;
    border-radius: 10px;
    padding: 17px 20px;
    font-size: 12px;
    color: #8a947b;
    margin: 22px 0;
  }

  .info-box > svg {
    flex-shrink: 0;
  }

  .info-box .text-button {
    margin-left: auto;
    white-space: nowrap;
  }

  .customer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .customer-card {
    position: relative;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: box-shadow 0.15s;
  }

  .customer-card:hover {
    box-shadow: 0 8px 16px #4357350c;
  }

  .customer-monogram {
    width: 45px;
    height: 45px;
    background: #e9efde;
    color: #8a9f70;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font:
      22px Georgia,
      serif;
  }

  .customer-monogram.large {
    width: 65px;
    height: 65px;
    font-size: 32px;
  }

  .customer-card h3 {
    font-size: 14px;
  }

  .customer-card p {
    font-size: 11px;
    margin-top: 4px;
  }

  .customer-card-stats {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-top: 17px;
    margin-top: 7px;
    border-top: 1px solid #edf0e5;
  }

  .customer-card-stats small {
    display: block;
    color: #99a48d;
    font-size: 10px;
  }

  .customer-card-stats strong {
    display: block;
    font-size: 18px;
    margin-top: 3px;
  }

  .customer-card-stats em {
    font-size: 10px;
    color: #98a18d;
    font-weight: 400;
  }

  .table-panel {
    overflow: auto;
    padding: 0;
  }

  .table-panel > h2 {
    padding: 22px 23px 0;
  }

  table {
    width: 100%;
    font-size: 11px;
    text-align: left;
    white-space: nowrap;
  }

  th {
    font-weight: 500;
    color: #97a28b;
    background: #f3f5eb;
    font-size: 10px;
    padding: 13px 18px;
  }

  td {
    padding: 16px 18px;
    border-top: 1px solid #edf0e5;
    color: #78856b;
  }

  td > strong {
    color: #526247;
    font-weight: 500;
  }

  td > small {
    display: block;
    font-size: 9px;
    color: #a4ac98;
    margin-top: 4px;
  }

  .amount {
    font-variant-numeric: tabular-nums;
    color: #677e55;
  }

  .row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .row-actions > .text-button {
    font-size: 10px;
  }

  .date-filter {
    display: flex;
    align-items: end;
    gap: 14px;
    margin-bottom: 24px;
  }

  .date-filter label {
    max-width: 220px;
    flex: 1;
  }

  .metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
  }

  .metric-card {
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 20px;
  }

  .metric-card > span {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    background: #eef2e5;
    color: #82996b;
    border-radius: 10px;
    margin-bottom: 16px;
  }

  .metric-card small {
    display: block;
    font-size: 11px;
    color: #95a087;
  }

  .metric-card strong {
    display: block;
    font-size: 24px;
    margin-top: 8px;
    color: #46623d;
    letter-spacing: -0.5px;
  }

  .report-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .report-columns .panel {
    margin-bottom: 22px;
  }

  .sync-overview {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
  }

  .sync-main {
    display: flex;
    align-items: center;
    gap: 25px;
    min-height: 176px;
  }

  .sync-main h2 {
    font-family: Georgia, serif;
    font-size: 25px;
    margin: 6px 0;
  }

  .sync-main p {
    font-size: 11px;
  }

  .sync-large-icon {
    background: #eaf0de;
    color: #819c67;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  .sync-counts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .sync-counts .panel {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 18px 10px;
  }

  .sync-counts strong {
    font:
      36px Georgia,
      serif;
    color: #718d59;
  }

  .sync-counts span {
    font-size: 10px;
    margin-top: 10px;
    color: #95a185;
  }

  .conflict-row {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }

  .conflict-row:last-child {
    border: 0;
  }

  .conflict-row > div {
    flex: 1;
    min-width: 0;
  }

  .conflict-row strong {
    font-size: 12px;
  }

  .conflict-row small {
    display: block;
    font-size: 9px;
    color: #a3ac97;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 5px;
  }

  .conflict-icon {
    color: #b79b62;
    background: #f6f0de;
    border-radius: 8px;
    padding: 10px;
  }

  .button-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .file-label {
    cursor: pointer;
  }

  .warning-panel {
    border-color: #e8cdb5;
  }

  .update-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #eee9d4;
    padding: 8px;
    color: #887b4e;
    font-size: 11px;
  }

  .update-banner button {
    font-weight: 600;
    text-decoration: underline;
  }

  .boot,
  .compatibility-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
  }

  .boot-mark {
    font-family: serif;
    display: grid;
    place-items: center;
    width: 80px;
    height: 90px;
    background: var(--forest);
    color: #e5d7ab;
    border: 2px solid #c4aa72;
    border-radius: 11px;
    font-size: 50px;
  }

  .boot p {
    font-size: 12px;
  }

  .compatibility-screen p {
    max-width: 600px;
  }

  .compatibility-screen h1 {
    max-width: 650px;
    font-size: 30px;
  }

  .compatibility-screen code {
    color: #a88b55;
  }

  .compatibility-screen .button {
    margin-top: 10px;
  }
}

@layer art {
  .mochi-art,
  .drink-art {
    height: 100%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 40% 40%, #fffcf2 0, transparent 68%),
      linear-gradient(130deg, #eeefe0, #e7ebd9);
  }

  .art-orbit {
    position: absolute;
    inset: 15px 30px;
    border: 1px solid #fdfcf1b5;
    border-radius: 50%;
    transform: rotate(-18deg);
  }

  .plate {
    position: absolute;
    width: 82%;
    height: 30%;
    border-radius: 50%;
    left: 10%;
    bottom: 12%;
    background: linear-gradient(170deg, #ded7b9, #f9f3de 55%, #bdb596);
    box-shadow: 0 9px 10px #9b947835;
    transform: rotate(-5deg);
  }

  .mochi {
    position: absolute;
    width: 33%;
    height: 44%;
    border-radius: 49% 49% 42% 45%;
    background:
      radial-gradient(ellipse at 35% 15%, #ffffffb0 0, transparent 57%),
      radial-gradient(circle at 40% 50%, #ffffff50 0, transparent 55%),
      var(--flavor);
    box-shadow:
      inset 0 -7px 12px #98805a24,
      0 5px 8px #8c806b20;
  }

  .mochi::after {
    content: '';
    position: absolute;
    inset: 13% 12%;
    opacity: 0.7;
    border-radius: 50%;
    background-image: radial-gradient(#fff8d8 1px, transparent 1px);
    background-size: 7px 7px;
    transform: rotate(13deg);
  }

  .m1 {
    left: 14%;
    bottom: 27%;
    transform: rotate(-9deg);
  }

  .m2 {
    right: 15%;
    bottom: 31%;
    transform: rotate(8deg);
  }

  .m3 {
    left: 38%;
    bottom: 14%;
    z-index: 1;
    transform: rotate(-4deg);
  }

  .mochi-cut {
    z-index: 2;
    position: absolute;
    left: 60%;
    bottom: 17%;
    height: 42%;
    width: 27%;
    border-radius: 50% 48% 33% 40%;
    background: #f7efdc;
    transform: rotate(18deg);
    box-shadow: 3px 4px 5px #8f7f6025;
  }

  .mochi-cut i {
    position: absolute;
    inset: 15% 13% 12% 12%;
    border-radius: 50% 45% 35% 40%;
    background:
      radial-gradient(at 30% 25%, #ffffff80, transparent 60%), var(--flavor);
    box-shadow: inset 0 1px 6px #5f452c25;
  }

  .art-leaf {
    position: absolute;
    right: 5%;
    bottom: 11%;
    color: #8d9d64;
    transform: rotate(65deg);
    z-index: 3;
    opacity: 0.8;
  }

  .petal {
    position: absolute;
    width: 14px;
    height: 8px;
    background: #e2b9ac90;
    border-radius: 90% 0 90% 0;
    transform: rotate(20deg);
  }

  .p1 {
    left: 8%;
    top: 21%;
  }

  .p2 {
    right: 14%;
    top: 17%;
    transform: rotate(100deg);
    width: 10px;
    height: 6px;
  }

  .cup {
    position: absolute;
    width: 42%;
    height: 78%;
    left: 30%;
    bottom: 8%;
    background:
      linear-gradient(
        90deg,
        #ffffff65,
        transparent 20%,
        #ffffff55 80%,
        #ffffff80
      ),
      linear-gradient(#e8e3cbbb 3%, var(--flavor) 18%);
    clip-path: polygon(0 0, 100% 0, 87% 100%, 14% 100%);
    border-radius: 0 0 19% 19%;
    box-shadow: inset 7px 0 7px #fff5;
    z-index: 2;
  }

  .cup::after {
    content: '';
    position: absolute;
    width: 7px;
    top: 20%;
    height: 60%;
    left: 13%;
    border-radius: 10px;
    background: #fff5;
  }

  .cup-lid {
    position: absolute;
    left: 28%;
    width: 46%;
    top: 13%;
    height: 8%;
    border: 2px solid #eeeee4;
    border-radius: 50%;
    background: #f7f5e3;
    z-index: 3;
    box-shadow: 0 2px 2px #9a947633;
  }

  .cup-brand {
    position: absolute;
    left: 0;
    top: 40%;
    width: 100%;
    font-weight: 750;
    text-align: center;
    font-size: 13px;
    color: #264730;
    letter-spacing: 1px;
    transform: rotate(-4deg);
  }

  .cup-brand small {
    display: block;
    font-family: Georgia, serif;
    font-size: 4px;
    letter-spacing: 0;
    line-height: 2;
  }

  .ice {
    font-size: 20px;
    line-height: 1;
    text-align: center;
    position: absolute;
    top: 14%;
    color: #fbf3dda0;
    transform: rotate(12deg);
  }

  .pearls {
    position: absolute;
    bottom: 10%;
    font-size: 13px;
    color: #ece2b6;
    word-spacing: -5px;
    left: 11%;
    text-shadow:
      0 4px 0 #e1cfa7,
      8px -6px 0 #e7d9b1;
  }

  .drink-art .art-leaf {
    right: 14%;
    bottom: 11%;
    transform: rotate(30deg);
  }
}

@layer components {
  dialog {
    border: 1px solid #e1e6d7;
    border-radius: 17px;
    padding: 0;
    width: min(510px, calc(100vw - 30px));
    max-height: 90dvh;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 20px 80px #1738233b;
    overflow: auto;
  }

  dialog.wide-dialog {
    width: min(840px, calc(100vw - 30px));
  }

  dialog::backdrop {
    background: #18362670;
    backdrop-filter: blur(4px);
  }

  .dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: #fffefaf5;
    z-index: 5;
  }

  .dialog-heading h2 {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
  }

  .dialog-content {
    padding: 25px;
  }

  .dialog-content > p {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .dialog-content > h3 {
    margin: 20px 0 14px;
  }

  .dialog-content .panel {
    box-shadow: none;
  }

  .dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .variant-hero {
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .variant-hero > .mochi-art .mochi {
    width: 24%;
  }

  .variant-hero > .mochi-art .m1 {
    left: 24%;
  }

  .variant-hero > .mochi-art .m2 {
    right: 22%;
  }

  .variant-hero > .mochi-art .mochi-cut {
    width: 20%;
    left: 58%;
  }

  .variant-hero > .drink-art .cup {
    width: 25%;
    left: 38%;
  }

  .variant-hero > .drink-art .cup-lid {
    width: 27%;
    left: 37%;
  }

  .variant-options {
    display: grid;
    gap: 9px;
    margin: 10px 0 18px;
  }

  .variant-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid #dfe5d6;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
  }

  .variant-option:has(input:checked) {
    border-color: #90a57a;
    background: #f2f6e9;
  }

  .variant-option > span:not(.flavor-dot) {
    flex: 1;
  }

  .variant-option strong {
    margin-left: auto;
    color: #7f9468;
    font-size: 12px;
  }

  .variant-option:hover {
    background: #f2f5e9;
  }

  .flavor-dot {
    display: inline-block;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dae0ce;
  }

  .wizard-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
  }

  .wizard-progress > span {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #edf0e3;
    color: #b0b89f;
    font-size: 10px;
  }

  .wizard-progress > span.done {
    background: #859e6b;
    color: white;
  }

  .wizard-progress > small {
    margin-left: auto;
    color: #9aa68b;
  }

  .guide-types {
    display: grid;
    gap: 10px;
  }

  .guide-type {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 9px;
  }

  .guide-type:hover {
    background: #f2f5e9;
  }

  .guide-mini-art {
    display: block;
    width: 75px;
    height: 67px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .guide-type > span:nth-child(2) {
    flex: 1;
  }

  .guide-type strong {
    display: block;
    font-size: 12px;
  }

  .guide-type small {
    display: block;
    font-size: 9px;
    color: #9aa78c;
    margin-top: 5px;
  }

  .guide-type > svg {
    color: #9fae8e;
  }

  .picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 5px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 12px;
    gap: 15px;
  }

  .picker-row:hover {
    background: #f3f6eb;
  }

  .picker-row small {
    display: block;
    font-size: 10px;
    color: #9da98f;
    margin-top: 4px;
  }

  .picker-row > span:last-child {
    color: #879b6f;
  }

  .checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
    font-size: 12px;
  }

  .checkbox-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
  }

  .checkout-total {
    text-align: center;
    padding: 10px 0 25px;
  }

  .checkout-total small {
    display: block;
    color: #97a38c;
  }

  .checkout-total strong {
    display: block;
    font-size: 39px;
    color: #3c5f36;
    letter-spacing: -1px;
    margin: 6px 0;
  }

  .checkout-total > span {
    font-size: 11px;
    color: #8e9c7c;
  }

  .payment-options {
    display: flex;
    gap: 10px;
    margin-top: 8px;
  }

  .payment-options .variant-option {
    flex: 1;
  }

  .soft-warning {
    font-size: 11px;
    color: #9c865c;
    border: 1px solid #eaddbd;
    background: #faf5e7;
    padding: 13px 15px;
    border-radius: 8px;
    line-height: 1.7;
    margin: 16px 0;
  }

  .inline-error {
    font-size: 11px;
    color: #b15d44;
    margin: 10px 0;
    line-height: 1.6;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .variant-editor-row {
    display: grid;
    grid-template-columns: 1fr 1fr 110px 30px;
    gap: 9px;
    align-items: end;
    margin-bottom: 12px;
  }

  .variant-editor-row .icon-button {
    margin-bottom: 4px;
  }

  .variant-editor-row input {
    padding: 9px;
    font-size: 11px;
  }

  .variant-editor-row label {
    font-size: 10px;
  }

  .category-list > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .category-list span {
    font-size: 10px;
    color: #a0ac91;
    flex: 1;
  }

  .category-list + .button {
    margin-top: 20px;
  }

  .customer-detail-summary {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .customer-detail-summary > div {
    flex: 1;
  }

  .customer-detail-summary h3 {
    font-size: 27px;
    margin: 4px 0;
  }

  .customer-detail-summary small {
    color: #96a18a;
    font-size: 11px;
  }

  .customer-detail-summary p {
    font-size: 12px;
  }

  .ledger-list {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 16px;
  }

  .ledger-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .ledger-entry:last-child {
    border: 0;
  }

  .ledger-entry > span:nth-child(2) {
    flex: 1;
  }

  .ledger-entry small {
    display: block;
    color: #a0aa96;
    font-size: 9px;
    margin-top: 4px;
  }

  .ledger-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #edf3e3;
    color: #8ca273;
  }

  .ledger-icon.negative {
    background: #f8eee2;
    color: #b5a07c;
  }

  .table-scroll {
    overflow: auto;
  }

  .receipt-sheet {
    max-width: 380px;
    margin: auto;
    text-align: center;
    font-size: 12px;
  }

  .receipt-logo {
    font-size: 34px;
    color: #8da275;
    font-family: serif;
    margin-bottom: 10px;
  }

  .receipt-sheet h2 {
    font-family: Georgia, serif;
    letter-spacing: 3px;
    font-size: 22px;
    margin: 5px 0;
  }

  .receipt-sheet > p {
    font-size: 10px;
    margin: 12px 0;
    color: #8c9981;
  }

  .receipt-lines {
    border-top: 1px dashed #cfd8c3;
    border-bottom: 1px dashed #cfd8c3;
    padding: 14px 0;
    margin: 20px 0;
  }

  .receipt-lines > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    text-align: left;
    font-size: 11px;
    padding: 8px 0;
  }

  .receipt-lines small {
    display: block;
    font-size: 9px;
    color: #a6af9a;
    margin-top: 4px;
  }

  .receipt-thanks {
    border-top: 1px dashed #cfd8c3;
    padding-top: 18px;
    font-family: Georgia, serif;
    font-size: 14px !important;
  }

  .receipt-thanks > span {
    font-size: 10px;
    font-style: italic;
  }

  .conflict-details {
    max-height: 175px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .conflict-details > div {
    padding: 10px 13px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
  }

  .conflict-details small {
    display: block;
    font-size: 8px;
    color: #9ca88e;
    margin-top: 4px;
    overflow-wrap: anywhere;
  }

  .revision-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .revision-options .panel {
    min-width: 0;
    padding: 15px;
  }

  .revision-options pre {
    max-height: 300px;
    overflow: auto;
    font-size: 10px;
    margin: 16px 0;
  }

  .toast {
    position: fixed;
    z-index: 100;
    bottom: 25px;
    left: 50%;
    transform: translateX(-30%);
    max-width: min(560px, calc(100vw - 30px));
    background: var(--forest);
    color: #fffdf1;
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 12px;
    box-shadow: 0 10px 40px #15332230;
  }

  .toast svg {
    flex-shrink: 0;
  }

  .toast-error {
    background: #9d5c45;
  }
}

@layer responsive {
  @media (min-width: 1700px) {
    .main-content {
      padding: 38px;
    }

    .selling-layout {
      grid-template-columns: minmax(0, 1fr) 355px;
      gap: 35px;
    }

    .product-art {
      height: 180px;
    }

    .welcome-banner {
      min-height: 240px;
    }

    .welcome-copy h1 {
      font-size: 35px;
    }

    .welcome-copy > p:not(.eyebrow) {
      font-size: 12px;
    }

    .product-info h3 {
      font-size: 19px;
    }

    .product-info p {
      font-size: 11px;
    }

    .product-bottom {
      font-size: 15px;
    }

    .product-grid {
      gap: 23px;
    }

    .cart-lines {
      max-height: 520px;
    }
  }

  @media (max-width: 1270px) {
    .sidebar {
      width: 82px;
      padding: 28px 12px;
    }

    .brand {
      padding: 0;
      justify-content: center;
    }

    .brand > span:nth-child(2),
    .sidebar-rule,
    .nav-link > span,
    .nav-link b,
    .sidebar-bottom p,
    .device-pill {
      display: none;
    }

    .brand-seal {
      height: 44px;
      width: 36px;
      font-size: 27px;
    }

    .sidebar nav {
      margin-top: 40px;
      gap: 12px;
    }

    .nav-link {
      padding: 14px;
      justify-content: center;
    }

    .sidebar-bottom {
      padding-top: 30px;
    }

    .app-body {
      margin-left: 82px;
    }

    .selling-layout {
      gap: 21px;
      grid-template-columns: minmax(0, 1fr) 305px;
    }

    .main-content {
      padding: 25px;
    }

    .topbar {
      padding: 0 25px;
    }

    .product-grid {
      gap: 13px;
    }

    .welcome-copy {
      padding: 23px;
      max-width: 76%;
    }

    .welcome-copy h1 {
      font-size: 26px;
    }

    .welcome-image {
      right: -13%;
      width: 50%;
    }

    .today-strip {
      gap: 12px;
    }

    .today-strip > div {
      gap: 7px;
    }

    .today-strip strong {
      font-size: 16px;
    }

    .today-strip small {
      font-size: 9px;
    }

    .stat-icon {
      height: 31px;
      width: 31px;
    }

    .product-info {
      padding: 13px 12px;
    }

    .product-info h3 {
      font-size: 15px;
    }

    .product-art {
      height: 130px;
    }

    .welcome-actions {
      gap: 9px;
    }

    .welcome-actions .text-button {
      font-size: 9px;
    }

    .customer-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .row-actions {
      gap: 8px;
    }

    .row-actions .text-button {
      font-size: 9px;
    }

    .sync-overview {
      grid-template-columns: 1fr 250px;
    }

    .metric-card strong {
      font-size: 20px;
    }
  }

  @media (max-width: 1080px) and (min-width: 901px) {
    .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-image {
      opacity: 0.45;
      width: 55%;
      right: -10%;
    }

    .welcome-copy {
      max-width: 94%;
    }

    .welcome-copy h1 {
      font-size: 24px;
    }

    .catalog-toolbar {
      align-items: start;
      flex-direction: column;
      gap: 12px;
    }

    .catalog-toolbar .search-field {
      max-width: none;
      width: 100%;
    }

    .today-strip {
      flex-wrap: wrap;
      row-gap: 15px;
    }

    .today-strip > div:last-child {
      display: none;
    }

    .heading-actions {
      flex-wrap: wrap;
      justify-content: end;
    }

    .heading-actions .button {
      font-size: 10px;
      padding: 9px 12px;
    }

    .page-heading h1 {
      font-size: 28px;
    }

    .sync-overview {
      grid-template-columns: 1fr;
    }

    .sync-counts {
      grid-template-columns: 1fr 1fr;
    }

    .sync-counts .panel {
      min-height: 90px;
    }

    .metric-grid {
      gap: 10px;
    }

    .metric-card {
      padding: 15px;
    }

    .metric-card strong {
      font-size: 17px;
    }
  }

  @media (max-width: 900px) {
    .sidebar {
      inset: auto 0 0;
      width: 100%;
      height: 70px;
      padding: 4px 9px max(4px, env(safe-area-inset-bottom));
      border-right: 0;
      border-top: 1px solid #dfe5d5;
      background: #f7f8eff5;
      backdrop-filter: blur(12px);
    }

    .sidebar > .brand,
    .sidebar-rule,
    .sidebar-bottom {
      display: none;
    }

    .sidebar nav {
      display: flex;
      justify-content: space-around;
      gap: 1px;
      margin: 0;
      height: 100%;
    }

    .nav-link {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      border-radius: 9px;
      padding: 8px 3px;
      font-size: 9px;
    }

    .nav-link > span {
      display: block;
    }

    .nav-link.active {
      background: #e7eedb;
      color: var(--forest);
      box-shadow: none;
    }

    .nav-link > svg {
      width: 20px;
      height: 20px;
    }

    .app-body {
      margin-left: 0;
      padding-bottom: 78px;
    }

    .topbar {
      height: 73px;
      padding: 0 23px;
    }

    .mobile-brand {
      display: grid;
      place-items: center;
      width: 34px;
      height: 40px;
      border: 1px solid #b7c4a9;
      border-radius: 5px;
      font-size: 25px;
      font-family: serif;
      grid-row: 1/3;
      color: var(--forest);
      margin-right: 10px;
    }

    .topbar-place {
      display: grid;
      grid-template-columns: auto 1fr;
      grid-template-rows: auto auto;
      gap: 1px;
    }

    .topbar-place > strong {
      grid-column: 2;
      grid-row: 1;
      font-size: 12px;
      align-self: end;
    }

    .topbar-date {
      grid-column: 2;
      grid-row: 2;
      align-self: start;
      font-size: 9px;
      margin-top: 3px;
    }

    .topbar-actions {
      gap: 12px;
    }

    .topbar-actions .avatar {
      display: none;
    }

    .topbar-actions .sync-pill {
      font-size: 9px;
    }

    .main-content {
      padding: 24px;
    }

    .selling-layout {
      display: block;
    }

    .welcome-banner {
      min-height: 220px;
    }

    .welcome-copy {
      padding: 28px;
      max-width: 70%;
    }

    .welcome-copy h1 {
      font-size: 31px;
    }

    .welcome-copy > p:not(.eyebrow) {
      font-size: 12px;
    }

    .welcome-image {
      width: 43%;
      right: -7%;
    }

    .welcome-actions .button {
      font-size: 11px;
      min-height: 40px;
    }

    .welcome-actions .text-button {
      font-size: 10px;
    }

    .today-strip {
      margin: 23px 0 28px;
    }

    .today-strip strong {
      font-size: 20px;
    }

    .today-strip small {
      font-size: 10px;
    }

    .stat-icon {
      width: 38px;
      height: 38px;
    }

    .today-strip > div {
      gap: 12px;
    }

    .catalog-toolbar {
      flex-direction: row;
      align-items: center;
    }

    .product-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .product-art {
      height: 150px;
    }

    .product-info h3 {
      font-size: 18px;
    }

    .product-info {
      padding: 15px;
    }

    .cart-panel {
      display: none;
    }

    .cart-panel.mobile-open {
      display: flex;
      position: fixed;
      left: 15px;
      right: 15px;
      bottom: 80px;
      top: auto;
      z-index: 31;
      max-height: 78dvh;
      box-shadow: 0 10px 80px #18382655;
    }

    .cart-header .mobile-only {
      display: grid;
    }

    .cart-header {
      padding: 15px 20px;
    }

    .cart-header .order-number {
      margin-left: auto;
      margin-right: 14px;
    }

    .cart-lines {
      min-height: 90px;
      max-height: 35dvh;
    }

    .cart-lines .empty-state {
      padding: 20px 10px;
    }

    .cart-lines .empty-state > span {
      display: none;
    }

    .cart-summary {
      padding: 15px 20px 12px;
    }

    .mobile-cart-bar {
      position: fixed;
      left: 20px;
      right: 20px;
      bottom: 83px;
      z-index: 30;
      background: var(--forest);
      color: white;
      display: flex;
      align-items: center;
      gap: 12px;
      border-radius: 11px;
      padding: 14px 18px;
      box-shadow: 0 8px 25px #183d2b33;
      font-size: 12px;
    }

    .mobile-cart-bar > strong {
      margin-left: auto;
    }

    .selling {
      padding-bottom: 85px;
    }

    .app-footer {
      font-size: 8px;
      padding: 15px 24px;
    }

    .page-heading h1 {
      font-size: 29px;
    }

    .heading-actions {
      gap: 8px;
      flex-wrap: wrap;
      justify-content: end;
    }

    .heading-actions .button {
      font-size: 10px;
      min-height: 37px;
      padding: 9px 12px;
    }

    .settings-grid {
      gap: 18px;
    }

    .settings-grid .panel {
      padding: 22px;
    }

    .sync-overview {
      grid-template-columns: 1fr 230px;
    }

    .sync-main {
      padding: 20px;
      gap: 16px;
    }

    .sync-large-icon {
      width: 65px;
      height: 65px;
    }

    .sync-main h2 {
      font-size: 21px;
    }

    .toast {
      bottom: 155px;
      left: 50%;
      transform: translateX(-50%);
    }

    .customer-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 620px) {
    :root {
      font-size: 13px;
    }

    .topbar {
      padding: 0 17px;
      height: 69px;
    }

    .topbar-actions {
      gap: 10px;
    }

    .sync-pill > span {
      display: none;
    }

    .sync-pill {
      padding: 7px;
    }

    .language-button {
      font-size: 10px;
      gap: 4px;
    }

    .language-button > svg {
      width: 15px;
    }

    .main-content {
      padding: 20px 16px;
    }

    .welcome-banner {
      min-height: 206px;
      border-radius: 12px;
    }

    .welcome-copy {
      padding: 23px 20px;
      max-width: 88%;
    }

    .welcome-copy h1 {
      font-size: 27px;
      max-width: 255px;
    }

    .welcome-copy > p:not(.eyebrow) {
      font-size: 11px;
      max-width: 230px;
    }

    .welcome-copy .eyebrow {
      font-size: 7px;
      letter-spacing: 0.9px;
    }

    .welcome-image {
      width: 54%;
      right: -14%;
      opacity: 0.38;
    }

    .hero-stamp {
      display: none;
    }

    .welcome-actions {
      gap: 12px;
      margin-top: 17px;
    }

    .welcome-actions .button {
      font-size: 10px;
      padding: 10px;
      min-height: 37px;
      gap: 6px;
    }

    .welcome-actions .button svg:last-child {
      display: none;
    }

    .welcome-actions .text-button {
      font-size: 9px;
    }

    .today-strip {
      gap: 10px;
      margin: 22px 0;
    }

    .today-strip > div {
      gap: 7px;
    }

    .stat-icon {
      width: 30px;
      height: 34px;
      border-radius: 7px;
    }

    .stat-icon > svg {
      width: 16px;
    }

    .today-strip small {
      font-size: 8px;
      max-width: 100px;
    }

    .today-strip strong {
      font-size: 15px;
    }

    .today-strip strong em {
      font-size: 8px;
    }

    .catalog-toolbar {
      flex-wrap: wrap;
      gap: 14px;
    }

    .catalog-toolbar .search-field {
      max-width: none;
      flex: 1;
      min-width: 150px;
    }

    .catalog-toolbar h2 {
      font-size: 23px;
    }

    .section-title > span:not(.tag) {
      font-size: 9px;
    }

    .category-tabs {
      gap: 6px;
      padding: 15px 0 20px;
    }

    .category-tab {
      padding: 8px 11px;
      font-size: 10px;
    }

    .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 13px;
    }

    .product-art {
      height: 129px;
    }

    .product-info {
      padding: 12px;
    }

    .product-info h3 {
      font-size: 16px;
      min-height: 42px;
    }

    .product-info p {
      font-size: 9px;
      margin: 5px 0 9px;
    }

    .product-bottom {
      font-size: 12px;
    }

    .add-circle {
      width: 25px;
      height: 25px;
    }

    .card-badge {
      font-size: 7px;
      left: 7px;
      top: 7px;
    }

    .loyalty-ribbon {
      padding: 14px 13px;
      gap: 10px;
    }

    .loyalty-flower {
      font-size: 28px;
    }

    .loyalty-ribbon strong {
      font-size: 14px;
    }

    .loyalty-ribbon p {
      font-size: 9px;
    }

    .loyalty-ribbon > .text-button {
      font-size: 9px;
    }

    .catalog-footnote {
      font-size: 8px;
      gap: 7px;
    }

    .page-heading {
      align-items: start;
      flex-direction: column;
      gap: 17px;
      margin-top: 4px;
      margin-bottom: 22px;
    }

    .page-heading h1 {
      font-size: 29px;
    }

    .page-heading p:not(.eyebrow) {
      font-size: 11px;
    }

    .heading-actions {
      justify-content: start;
    }

    .heading-actions .button {
      min-height: 39px;
      font-size: 11px;
    }

    .settings-grid,
    .report-columns,
    .reference-gallery,
    .sync-overview {
      grid-template-columns: 1fr;
    }

    .settings-grid {
      gap: 15px;
    }

    .settings-grid .panel {
      margin-bottom: 0;
      padding: 21px;
    }

    .reference-gallery section:nth-child(2),
    .reference-gallery section:nth-child(3) {
      grid-row: auto;
      grid-column: auto;
    }

    .reference-gallery {
      gap: 17px;
    }

    .reference-gallery .panel {
      margin: 0;
      padding: 16px;
    }

    .customer-grid {
      grid-template-columns: 1fr;
      gap: 15px;
    }

    .customer-card {
      padding: 20px;
    }

    .content-toolbar {
      gap: 12px;
      margin: 18px 0;
    }

    .content-toolbar .search-field {
      flex: 1;
      width: auto;
    }

    .content-toolbar > .muted {
      font-size: 10px;
      white-space: nowrap;
    }

    .metric-grid {
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .metric-card {
      padding: 17px;
    }

    .metric-card > span {
      width: 32px;
      height: 32px;
      margin-bottom: 12px;
    }

    .metric-card small {
      font-size: 10px;
    }

    .metric-card strong {
      font-size: 21px;
    }

    .date-filter {
      gap: 9px;
      flex-wrap: wrap;
    }

    .date-filter input {
      font-size: 11px;
      padding: 10px 7px;
    }

    .date-filter .button {
      font-size: 10px;
      padding: 11px 10px;
    }

    .sync-counts .panel {
      margin-bottom: 0;
      padding: 18px;
      min-height: 95px;
    }

    .sync-counts strong {
      font-size: 30px;
    }

    .sync-main {
      margin-bottom: 0;
    }

    .sync-overview {
      gap: 15px;
      margin-bottom: 20px;
    }

    .sync-main h2 {
      font-size: 23px;
    }

    .data-note {
      font-size: 9px;
      line-height: 1.7;
    }

    .data-note > .tag {
      margin-left: 0;
    }

    .panel {
      padding: 19px;
      margin-bottom: 18px;
    }

    .table-panel {
      padding: 0;
    }

    .table-panel > h2 {
      padding: 19px 18px 0;
    }

    th,
    td {
      padding: 13px 14px;
    }

    .info-box {
      font-size: 11px;
      align-items: start;
      gap: 10px;
      padding: 15px;
    }

    .info-box .text-button {
      font-size: 10px;
    }

    .conflict-row {
      gap: 10px;
      flex-wrap: wrap;
    }

    .conflict-row strong {
      font-size: 11px;
    }

    .conflict-row > .button {
      margin-left: 44px;
    }

    .conflict-icon {
      padding: 8px;
    }

    .app-footer {
      font-size: 7px;
      padding: 14px 16px;
      letter-spacing: 0;
    }

    .mobile-cart-bar {
      left: 16px;
      right: 16px;
      bottom: 83px;
      padding: 14px 16px;
      font-size: 11px;
    }

    .dialog-heading {
      padding: 17px 20px;
    }

    .dialog-heading h2 {
      font-size: 21px;
    }

    .dialog-content {
      padding: 20px;
    }

    .form-grid {
      grid-template-columns: 1fr;
    }

    .variant-editor-row {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 85px 26px;
      gap: 6px;
    }

    .variant-editor-row input {
      font-size: 10px;
      padding: 8px 6px;
    }

    .variant-editor-row label {
      font-size: 9px;
    }

    .variant-editor-row .icon-button {
      width: 26px;
    }

    .revision-options {
      grid-template-columns: 1fr;
    }

    .button-stack .button {
      width: 100%;
    }

    .customer-detail-summary {
      gap: 12px;
    }

    .customer-monogram.large {
      width: 50px;
      height: 50px;
      font-size: 25px;
    }

    .customer-detail-summary h3 {
      font-size: 23px;
    }

    .receipt-sheet .total-row > strong:last-child {
      font-size: 22px;
    }

    .compatibility-screen h1 {
      font-size: 25px;
    }

    .compatibility-screen p {
      font-size: 12px;
    }

    .guide-mini-art {
      width: 65px;
      height: 60px;
    }

    .guide-type strong {
      font-size: 11px;
    }

    .guide-type small {
      font-size: 8px;
    }

    .payment-options {
      gap: 8px;
    }

    .payment-options .variant-option {
      font-size: 11px;
      padding: 12px 9px;
    }

    .technical-details {
      font-size: 9px;
      gap: 9px;
    }

    .cart-header h2 {
      font-size: 21px;
    }

    .cart-panel.mobile-open {
      left: 10px;
      right: 10px;
      bottom: 80px;
    }

    .selling {
      padding-bottom: 80px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
  }

  @media print {
    body {
      background: white;
    }

    #app-frame,
    .no-print,
    #toast-region {
      display: none !important;
    }

    dialog {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      max-width: none;
      max-height: none;
      overflow: visible;
      border: 0;
      box-shadow: none;
      background: white;
    }

    dialog::backdrop {
      display: none;
    }

    .dialog-heading {
      display: none;
    }

    .dialog-content {
      padding: 0;
    }

    .receipt-sheet {
      max-width: 380px;
      margin: 0 auto;
    }

    dialog:not(:has(.receipt-sheet)) {
      display: none;
    }
  }
}
