@layer reset,base,layout,components,responsive;
@layer reset {
  * {
    box-sizing: border-box;
  }
  html,
  body {
    margin: 0;
    min-height: 100%;
  }
  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%;
  }
  h1,
  h2,
  h3,
  p {
    margin-top: 0;
  }
  button,
  select,
  input,
  textarea {
    min-width: 0;
  }
  a {
    color: inherit;
  }
  fieldset {
    margin: 0;
    padding: 0;
    border: 0;
  }
  legend {
    padding: 0;
  }
  table {
    border-collapse: collapse;
  }
  summary {
    cursor: pointer;
  }
  [hidden] {
    display: none !important;
  }
}
@layer base {
  :root {
    font-family:
      Inter,
      ui-sans-serif,
      -apple-system,
      BlinkMacSystemFont,
      'Segoe UI',
      Arial,
      sans-serif;
    font-size: 16px;
    color: #233832;
    background: #f4f5f1;
    --ink: #233832;
    --muted: #62736b;
    --green: #185447;
    --green-hover: #103e34;
    --soft: #eef5ef;
    --line: #dce3dd;
    --canvas: #f4f5f1;
    --white: #fff;
    --warm: #fff6df;
    --danger: #a43335;
    --radius: 14px;
    --shadow: 0 8px 32px #19382b0a;
  }
  html[data-font='large'] {
    font-size: 17px;
  }
  html[data-font='extra'] {
    font-size: 20px;
  }
  html[data-contrast='high'] {
    --ink: #111f18;
    --muted: #314339;
    --green: #003d28;
    --line: #687b6c;
    --canvas: #fff;
    --soft: #e1efe4;
    color: var(--ink);
    background: white;
  }
  body {
    line-height: 1.5;
    color: var(--ink);
  }
  h1,
  h2,
  h3 {
    line-height: 1.22;
    letter-spacing: -0.025em;
    color: var(--ink);
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 720;
  }
  h2 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 8px;
  }
  h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
  }
  p {
    margin-bottom: 16px;
  }
  a {
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  button {
    border: 0;
    background: none;
    color: inherit;
    line-height: 1.35;
  }
  button:disabled {
    opacity: 0.52;
  }
  button,
  a,
  input,
  select,
  textarea,
  summary {
    touch-action: manipulation;
  }
  :focus-visible {
    outline: 3px solid #bd7a16;
    outline-offset: 3px;
    border-radius: 5px;
  }
  input,
  select,
  textarea {
    width: 100%;
    border: 1px solid #bfcac1;
    border-radius: 9px;
    background: white;
    color: var(--ink);
    padding: 12px 14px;
    min-height: 48px;
    line-height: 1.4;
  }
  input:focus,
  textarea:focus,
  select:focus {
    border-color: var(--green);
  }
  input[type='checkbox'],
  input[type='radio'] {
    width: 21px;
    min-width: 21px;
    height: 21px;
    min-height: 21px;
    margin: 2px 0 0;
    accent-color: var(--green);
  }
  input[type='file'] {
    padding: 11px;
    font-size: 0.85rem;
  }
  input[type='number'] {
    font-variant-numeric: tabular-nums;
  }
  textarea {
    resize: vertical;
  }
  small {
    font-size: 0.78rem;
    color: var(--muted);
  }
  strong,
  b {
    font-weight: 650;
  }
  kbd {
    font: inherit;
    font-size: 0.72rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 6px;
  }
  progress {
    appearance: none;
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: #e5ebe5;
    overflow: hidden;
  }
  progress::-webkit-progress-bar {
    background: #e5ebe5;
    border-radius: 99px;
  }
  progress::-webkit-progress-value {
    background: var(--green);
    border-radius: 99px;
  }
  progress::-moz-progress-bar {
    background: var(--green);
    border-radius: 99px;
  }
  ::selection {
    background: #c9e5d5;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .skip {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 12px 20px;
    background: white;
    color: var(--green);
    border: 2px solid var(--green);
  }
  .skip:focus {
    top: 10px;
  }
  .muted,
  .field-hint {
    color: var(--muted);
  }
  .field-hint {
    font-size: 0.8rem;
    margin: 8px 0 16px;
    line-height: 1.6;
  }
  .eyebrow {
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .eyebrow span {
    padding: 0 9px;
    font-weight: 400;
  }
  .lead {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
  }
  .full {
    width: 100%;
  }
  .align-right {
    text-align: right;
  }
  .stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .stack.compact {
    gap: 12px;
  }
  .padded {
    padding: 24px;
  }
  .stock-low {
    color: #a66116;
    font-weight: 650;
  }
}
@layer layout {
  .app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .sidebar {
    height: 100dvh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    background: #173c32;
    color: #e3eee7;
    padding: 30px 18px 18px;
    z-index: 30;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #476256 transparent;
  }
  .brand {
    display: flex;
    gap: 11px;
    align-items: center;
    font-size: 1.55rem;
    font-weight: 750;
    letter-spacing: -0.065em;
    color: inherit;
    line-height: 1;
    white-space: nowrap;
  }
  .brand:hover {
    text-decoration: none;
  }
  .brand svg {
    color: #e7c885;
    flex: none;
  }
  .brand small {
    display: block;
    font-size: 0.48rem;
    letter-spacing: 0.19em;
    color: inherit;
    opacity: 0.7;
    margin-top: 8px;
    font-weight: 650;
  }
  .sidebar > .brand {
    padding-left: 9px;
    margin-bottom: 31px;
  }
  .business-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 12px 9px;
    margin-bottom: 16px;
    background: #ffffff0a;
    border: 1px solid #ffffff17;
    border-radius: 10px;
  }
  .business-switch > span:nth-child(2) {
    flex: 1;
    min-width: 0;
  }
  .business-switch strong {
    font-size: 0.76rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .business-switch small {
    display: block;
    color: #b1c5b8;
    font-size: 0.66rem;
    margin-top: 3px;
  }
  .store-initial {
    display: grid;
    place-items: center;
    border-radius: 8px;
    flex: 0 0 34px;
    height: 36px;
    font-weight: 700;
    background: #e5ebde;
    color: #234336;
  }
  .nav-group {
    margin: 14px 0;
  }
  .nav-group > p {
    font-size: 0.57rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #9bb3a4;
    padding: 0 12px;
    margin: 0 0 6px;
  }
  .nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    border-radius: 8px;
    padding: 9px 12px;
    text-align: left;
    font-size: 0.77rem;
    line-height: 1.3;
    color: #d0dfd5;
    width: 100%;
    margin: 2px 0;
  }
  .nav-link svg {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    opacity: 0.82;
  }
  .nav-link:hover {
    background: #ffffff0a;
    text-decoration: none;
    color: white;
  }
  .nav-link.active {
    color: #1b3c2e;
    background: #e2ebde;
    font-weight: 650;
  }
  .sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #ffffff1a;
    padding-top: 14px;
  }
  .workspace {
    min-width: 0;
  }
  .topbar {
    height: 80px;
    background: #fbfcf9;
    border-bottom: 1px solid var(--line);
    padding: 0 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .search-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 0.8rem;
    color: var(--muted);
    min-height: 44px;
    padding: 8px 0;
    min-width: 220px;
  }
  .search-trigger kbd {
    margin-left: 32px;
  }
  .topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .user-button {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 0.8rem;
  }
  .user-button > span:first-child,
  .avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: #e8e5db;
    border: 1px solid #ddd9cc;
    color: #4b5141;
    border-radius: 50%;
    font-weight: 700;
  }
  .mobile-brand {
    display: none;
  }
  .workspace main {
    padding: 32px 38px 18px;
    max-width: 1760px;
    min-height: calc(100vh - 150px);
    margin: 0 auto;
  }
  .page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 27px;
  }
  .page-heading .eyebrow {
    margin-bottom: 8px;
    font-size: 0.6rem;
  }
  .page-heading p:last-child {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
  }
  .page-heading h1 {
    font-size: 1.85rem;
  }
  .guide-button {
    white-space: nowrap;
  }
  .app-footer {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.7rem;
    padding: 24px 38px 30px;
    max-width: 1760px;
    margin: 0 auto;
  }
  .app-footer span:first-child {
    font-weight: 700;
  }
  .app-footer button {
    font-size: inherit;
    text-decoration: underline;
    padding: 8px;
  }
  .bottom-nav {
    display: none;
  }
  .demo-banner {
    background: #fff3d5;
    border-bottom: 1px solid #e7d6ae;
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 0.76rem;
    padding: 12px 38px;
    color: #654c1b;
  }
  .demo-banner a {
    margin-left: auto;
    font-weight: 700;
    text-decoration: underline;
  }
  .auth-shell {
    display: grid;
    grid-template-columns: 46% minmax(0, 1fr);
    min-height: 100dvh;
  }
  .auth-story {
    background: #173c32;
    color: #dce8df;
    padding: 45px 56px 30px;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  .auth-message {
    max-width: 530px;
    margin: auto 0;
    padding: 65px 0;
  }
  .auth-message > .eyebrow {
    color: #dfc48b;
  }
  .auth-message h1 {
    color: #f2f4ea;
    font-size: clamp(2rem, 3.4vw, 3.5rem);
    letter-spacing: -0.055em;
    font-weight: 550;
    line-height: 1.16;
    margin: 22px 0;
  }
  .auth-message > p:not(.eyebrow) {
    color: #b8cbbe;
    font-size: 0.92rem;
    max-width: 440px;
    line-height: 1.85;
  }
  .auth-footnote {
    font-size: 0.7rem;
    color: #abc0b1;
    margin: 0;
  }
  .auth-main {
    padding: 32px 44px 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .auth-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    font-size: 0.76rem;
  }
  .auth-top > a {
    color: var(--green);
    font-weight: 650;
    white-space: nowrap;
  }
  .auth-content {
    width: 100%;
    max-width: 490px;
    margin: auto;
    padding: 56px 0;
  }
  .auth-content > h2 {
    font-size: 2rem;
    letter-spacing: -0.035em;
    margin: 12px 0;
  }
  .auth-content > .eyebrow {
    color: var(--green);
  }
  .auth-footer {
    text-align: center;
    font-size: 0.73rem;
    color: var(--muted);
    padding: 24px 0 4px;
  }
  .auth-footer a {
    font-weight: 650;
    color: var(--green);
  }
  .auth-content form {
    display: flex;
    flex-direction: column;
    gap: 17px;
  }
  .auth-content .field {
    margin-bottom: 0;
  }
  .story-ledger {
    margin-top: 40px;
    border-top: 1px solid #ffffff25;
    border-bottom: 1px solid #ffffff25;
  }
  .ledger-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.54rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    color: #b3c9ba;
    padding: 17px 0;
  }
  .ledger-top > span:last-child {
    color: #d7c288;
  }
  .ledger-row {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 19px 0;
    border-top: 1px solid #ffffff12;
  }
  .ledger-number {
    font-size: 0.73rem;
    color: #c9b77e;
    align-self: flex-start;
    line-height: 1.7;
  }
  .ledger-row > div {
    flex: 1;
  }
  .ledger-row strong {
    font-size: 0.85rem;
    font-weight: 550;
    color: #f1f4ea;
  }
  .ledger-row p {
    font-size: 0.7rem;
    margin: 5px 0 0;
    color: #b3c6b8;
  }
  .ledger-row > span:last-child {
    color: #94b9a0;
    font-size: 0.9rem;
  }
}
@layer components {
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--green);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 650;
    text-align: center;
    line-height: 1.35;
    transition: background 0.15s;
  }
  .button:hover {
    background: var(--green-hover);
    text-decoration: none;
  }
  .button.secondary {
    background: white;
    border-color: var(--line);
    color: var(--ink);
  }
  .button.secondary:hover {
    background: #f3f7f2;
    border-color: #a7bcad;
  }
  .button.quiet {
    background: transparent;
    color: var(--green);
    padding-left: 9px;
    padding-right: 9px;
  }
  .button.quiet:hover {
    background: #e8f0e8;
  }
  .button.danger {
    background: var(--danger);
    color: white;
  }
  .button.selected {
    color: var(--green);
    background: white;
    border-color: #c1d3c6;
    box-shadow: 0 2px 5px #173c3210;
  }
  .icon-button {
    display: inline-grid;
    place-items: center;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 9px;
    flex-shrink: 0;
  }
  .icon-button:hover {
    background: var(--soft);
  }
  .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 650;
    min-height: 40px;
    padding: 7px 0;
    text-align: left;
  }
  .text-button:hover {
    text-decoration: underline;
  }
  .toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
    min-width: 0;
  }
  .field label,
  legend {
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.5;
  }
  fieldset {
    margin: 8px 0 24px;
  }
  legend {
    margin-bottom: 10px;
  }
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 21px;
    margin-top: 20px;
  }
  .form-footer .button {
    min-width: 100px;
  }
  .form-error {
    margin: 12px 0;
  }
  .check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    min-height: 48px;
    cursor: pointer;
    text-align: left;
  }
  .check-row > span {
    display: block;
    min-width: 0;
  }
  .check-row strong {
    font-size: 0.85rem;
    font-weight: 550;
    line-height: 1.5;
    display: block;
  }
  .check-row small {
    display: block;
    margin-top: 4px;
    line-height: 1.6;
  }
  .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }
  .choice {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 16px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    cursor: pointer;
    min-width: 0;
  }
  .choice:has(input:checked) {
    border-color: var(--green);
    background: #f0f6ed;
    box-shadow: 0 0 0 1px var(--green);
  }
  .choice strong {
    display: block;
    font-size: 0.85rem;
  }
  .choice small {
    display: block;
    font-size: 0.72rem;
    margin-top: 5px;
    line-height: 1.5;
  }
  .type-preview {
    padding: 23px;
    background: var(--soft);
    border-left: 3px solid #9fbea5;
    border-radius: 8px;
    margin: 0 0 25px;
  }
  .type-preview p {
    font-size: 0.82em;
    margin: 5px 0 0;
  }
  .type-preview[data-font='normal'] {
    font-size: 16px;
  }
  .type-preview[data-font='large'] {
    font-size: 19px;
  }
  .type-preview[data-font='extra'] {
    font-size: 23px;
  }
  details {
    border-top: 1px solid var(--line);
    padding: 17px 0;
  }
  details > summary {
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 34px;
    line-height: 1.7;
  }
  details[open] > summary {
    margin-bottom: 16px;
  }
  .notice {
    padding: 15px 18px;
    background: #eef4ef;
    color: #355846;
    border: 1px solid #d1e0d5;
    border-radius: 10px;
    font-size: 0.83rem;
    line-height: 1.65;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
  }
  .notice p {
    margin: 7px 0 12px;
  }
  .notice p:last-child {
    margin-bottom: 0;
  }
  .notice.warm {
    color: #775621;
    background: var(--warm);
    border-color: #e8d9b5;
  }
  .notice.error {
    color: #922f34;
    background: #fff0ef;
    border-color: #e6c6c5;
  }
  .notice > .button {
    margin-top: 10px;
  }
  .badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 6px;
    background: #e9f3eb;
    color: #306343;
    font-size: 0.64rem;
    font-weight: 650;
    white-space: nowrap;
    line-height: 1.5;
  }
  .badge.warm {
    background: #fff2d7;
    color: #8a5d18;
  }
  .badge.muted-badge {
    background: #edf0eb;
    color: #68736b;
  }
  .panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
    min-width: 0;
  }
  .panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 23px 25px;
    border-bottom: 1px solid var(--line);
  }
  .panel-head h2 {
    font-size: 1.05rem;
    margin: 0;
  }
  .panel-head p {
    font-size: 0.77rem;
    color: var(--muted);
    margin: 6px 0 0;
    line-height: 1.6;
  }
  .panel-head .button {
    flex-shrink: 0;
  }
  .padded-form {
    padding: 25px;
  }
  .table-scroll {
    overflow-x: auto;
    width: 100%;
  }
  .table-scroll table {
    width: 100%;
    font-size: 0.79rem;
    text-align: left;
  }
  .table-scroll th {
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 600;
    padding: 13px 21px;
    background: #fafbf8;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }
  .table-scroll td {
    padding: 16px 21px;
    border-bottom: 1px solid #edf0ea;
    vertical-align: middle;
  }
  .table-scroll tr:last-child td {
    border-bottom: 0;
  }
  .table-scroll td strong {
    font-weight: 600;
  }
  .table-scroll td small {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
  }
  .table-scroll td .button {
    font-size: 0.69rem;
    padding: 8px 11px;
    min-height: 42px;
    margin: 2px 5px 2px 0;
  }
  .table-scroll tbody tr:hover {
    background: #fbfcf9;
  }
  .table-scroll td:nth-child(2) {
    font-variant-numeric: tabular-nums;
  }
  .section-toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    border-bottom: 1px solid var(--line);
  }
  .search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 12px;
    background: white;
    color: var(--muted);
    min-width: 0;
    flex: 1;
    max-width: 450px;
  }
  .search-field input {
    border: 0;
    padding: 11px 0;
    background: transparent;
    outline: 0;
    font-size: 0.8rem;
    min-width: 0;
  }
  .search-field:focus-within {
    outline: 2px solid var(--green);
    outline-offset: 2px;
  }
  .section-toolbar > .muted {
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .empty-state {
    text-align: center;
    padding: 46px 25px;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto;
  }
  .empty-mark {
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    background: #f7f8f3;
    border-radius: 14px;
    color: #718475;
  }
  .empty-state h3 {
    font-size: 1rem;
    color: var(--ink);
  }
  .empty-state p {
    font-size: 0.82rem;
    line-height: 1.7;
    max-width: 330px;
    margin: 0 auto 18px;
  }
  .empty-state .button {
    margin-top: 4px;
  }
  .page-error,
  .loading-state {
    text-align: center;
    background: white;
    border: 1px solid var(--line);
    padding: 65px 30px;
    border-radius: 14px;
    max-width: 800px;
    margin: 35px auto;
  }
  .page-error > p {
    max-width: 470px;
    margin: 15px auto 25px;
    color: var(--muted);
  }
  .page-error .toolbar-group {
    justify-content: center;
  }
  .loading-state > * {
    display: block;
    margin: 12px auto;
  }
  .loading-state p {
    color: var(--muted);
    font-size: 0.8rem;
  }
  .spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #dce8dd;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  .two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .welcome-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 27px;
    background: #eaf0e6;
    border: 1px solid #dbe4d6;
    border-radius: 14px;
    padding: 28px 30px;
  }
  .welcome-panel h2 {
    font-size: 1.45rem;
    font-weight: 600;
  }
  .welcome-panel p:last-child {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
  }
  .welcome-panel .eyebrow {
    margin-bottom: 13px;
    font-size: 0.62rem;
  }
  .welcome-aside {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    border-left: 1px solid #cdd9ca;
    padding: 8px 0 8px 28px;
  }
  .welcome-aside strong,
  .welcome-aside small {
    display: block;
    font-size: 0.76rem;
  }
  .welcome-aside small {
    font-size: 0.67rem;
    margin-top: 5px;
  }
  .status-dot {
    display: block;
    width: 9px;
    height: 9px;
    background: #638969;
    border-radius: 50%;
    box-shadow: 0 0 0 5px #dce7d8;
    flex-shrink: 0;
  }
  .metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 17px;
    margin-bottom: 32px;
  }
  .metric {
    padding: 23px 24px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    min-width: 0;
  }
  .metric > span {
    font-size: 0.73rem;
    color: var(--muted);
    display: block;
  }
  .metric > strong {
    display: block;
    font-size: 1.75rem;
    letter-spacing: -0.04em;
    line-height: 1.4;
    margin: 11px 0 5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }
  .metric > small {
    display: block;
    font-size: 0.68rem;
  }
  .metric-link:hover {
    border-color: #97b69f;
    text-decoration: none;
  }
  .metric-link small svg {
    width: 16px;
    margin-left: 5px;
  }
  .metric-strip {
    display: flex;
    gap: 50px;
    padding: 27px 30px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #edf2e8;
    margin-bottom: 26px;
  }
  .metric-strip > div > span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
  }
  .metric-strip strong {
    display: block;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    margin-top: 8px;
  }
  .work-section {
    margin-bottom: 33px;
  }
  .work-section > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 0 0 18px;
  }
  .work-section h2 {
    font-size: 1.2rem;
    margin: 0 0 7px;
  }
  .work-section header p {
    font-size: 0.78rem;
    margin: 0;
    color: var(--muted);
  }
  .work-section header > a {
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--green);
    white-space: nowrap;
  }
  .shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
  }
  .shortcut {
    position: relative;
    display: block;
    border: 1px solid var(--line);
    background: white;
    padding: 22px 20px 28px;
    border-radius: 12px;
    min-width: 0;
    min-height: 175px;
  }
  .shortcut:hover {
    text-decoration: none;
    border-color: #89a78e;
    box-shadow: var(--shadow);
  }
  .shortcut-number {
    font-size: 0.67rem;
    display: block;
    font-weight: 600;
    color: #849287;
    margin-bottom: 25px;
  }
  .shortcut h3 {
    font-size: 1rem;
    font-weight: 650;
    margin-bottom: 8px;
  }
  .shortcut p {
    font-size: 0.72rem;
    color: var(--muted);
    max-width: 140px;
    line-height: 1.65;
    margin: 0;
  }
  .shortcut-arrow {
    position: absolute;
    right: 15px;
    bottom: 18px;
    color: #94a295;
  }
  .primary-shortcut {
    background: #1c4d3e;
    border-color: #1c4d3e;
  }
  .primary-shortcut h3 {
    color: white;
  }
  .primary-shortcut .shortcut-number,
  .primary-shortcut .shortcut-arrow {
    color: #d7c689;
  }
  .primary-shortcut p {
    color: #c0d3c6;
  }
  .checklist > a {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 20px 25px;
    border-bottom: 1px solid #ecf0e9;
  }
  .checklist > a:last-child {
    border: 0;
  }
  .checklist > a:hover {
    background: #fafbf7;
    text-decoration: none;
  }
  .checklist-mark {
    color: #7c9381;
  }
  .checklist > a strong {
    display: block;
    font-size: 0.81rem;
  }
  .checklist > a small {
    display: block;
    font-size: 0.73rem;
    line-height: 1.6;
    margin-top: 5px;
  }
  .learning-panel {
    padding: 29px;
    border: 1px solid #ddd9c8;
    border-radius: 14px;
    background: #f0eee2;
    margin-bottom: 24px;
  }
  .learning-panel h2 {
    font-size: 1.5rem;
    font-weight: 550;
    max-width: 380px;
    line-height: 1.3;
  }
  .learning-panel p {
    font-size: 0.84rem;
    color: #626959;
    line-height: 1.85;
  }
  .learning-panel .text-button {
    display: block;
    margin-top: 12px;
    font-size: 0.75rem;
  }
  .training-hero {
    padding: 40px;
    background: #e8eee3;
    border: 1px solid #d9e3d1;
    border-radius: 15px;
    margin-bottom: 30px;
  }
  .training-hero h2 {
    font-size: 2.25rem;
    font-weight: 550;
    line-height: 1.2;
    max-width: 700px;
  }
  .training-hero p {
    max-width: 620px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.8;
  }
  .guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .guide-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    padding: 25px;
    display: flex;
    flex-direction: column;
  }
  .guide-card p {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
  }
  .guide-card h3 {
    font-size: 1.08rem;
  }
  .guide-card .toolbar-group > a {
    font-size: 0.74rem;
    color: var(--green);
    font-weight: 650;
  }
  .guided-hint {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid #dce5d8;
    border-radius: 10px;
    background: #f0f5ec;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #506650;
  }
  .guided-hint p {
    margin: 0;
    flex: 1;
  }
  .guided-hint .button {
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .pos-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 0.74rem;
  }
  .pos-toolbar .button {
    font-size: 0.7rem;
    padding: 9px 12px;
  }
  .pos-toolbar .notice {
    margin: 0;
    padding: 8px 12px;
    font-size: 0.73rem;
  }
  .pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 365px;
    gap: 23px;
    align-items: start;
  }
  .catalog-panel {
    min-width: 0;
  }
  .catalog-search {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    padding: 0 15px;
    color: var(--muted);
  }
  .catalog-search input {
    border: 0;
    font-size: 0.8rem;
    padding: 14px 0;
    min-height: 51px;
  }
  .catalog-search:focus-within {
    outline: 2px solid var(--green);
  }
  .category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 18px 0;
    scrollbar-width: thin;
  }
  .chip {
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    min-height: 42px;
    padding: 9px 16px;
    font-size: 0.74rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: 550;
  }
  .chip.selected {
    background: #dfeada;
    border-color: #cbdcc5;
    color: #274e34;
  }
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }
  .product-tile {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    position: relative;
    min-height: 217px;
    text-align: left;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .product-tile:hover {
    border-color: #8aaa8d;
    box-shadow: 0 3px 12px #274d3310;
  }
  .product-tile:disabled {
    opacity: 0.6;
  }
  .product-monogram {
    height: 69px;
    background: #e8ede2;
    color: #809377;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    letter-spacing: -0.06em;
    font-weight: 450;
    width: 100%;
  }
  .product-tile:nth-child(4n + 2) .product-monogram {
    background: #eee6d6;
    color: #a79a7d;
  }
  .product-tile:nth-child(4n + 3) .product-monogram {
    background: #e3e8e5;
    color: #7d9087;
  }
  .product-tile:nth-child(4n + 4) .product-monogram {
    background: #eee4dd;
    color: #a89484;
  }
  .product-photo {
    width: 100%;
    height: 105px;
    object-fit: cover;
  }
  .product-info {
    display: block;
    padding: 14px 14px 16px;
    flex: 1;
    min-width: 0;
    width: 100%;
  }
  .product-info > strong {
    font-size: 0.83rem;
    display: block;
    line-height: 1.45;
    font-weight: 600;
    overflow-wrap: anywhere;
  }
  .product-info > small {
    display: block;
    font-size: 0.66rem;
    margin: 5px 0;
  }
  .product-info > b {
    font-size: 0.87rem;
    display: block;
    margin: 12px 0 5px;
  }
  .stock-caption {
    font-size: 0.59rem;
    color: var(--muted);
  }
  .stock-caption.low {
    color: #9f6e24;
  }
  .product-add {
    position: absolute;
    bottom: 17px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #ecf2e7;
    color: var(--green);
    font-size: 1.1rem;
  }
  .cart-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 22px;
    overflow: hidden;
  }
  .cart-panel > .panel-head {
    padding: 19px 20px;
  }
  .cart-panel .panel-head h2 {
    font-size: 1rem;
  }
  .cart-panel .panel-head p {
    font-size: 0.69rem;
  }
  .cart-panel .panel-head .button {
    font-size: 0.67rem;
    padding: 8px;
    min-height: 40px;
  }
  .cart-line {
    display: flex;
    justify-content: space-between;
    gap: 13px;
    padding: 17px 20px;
    border-bottom: 1px solid #edf0e9;
    font-size: 0.78rem;
  }
  .cart-line > div {
    min-width: 0;
  }
  .cart-line > div:first-child {
    flex: 1;
  }
  .cart-line strong {
    font-size: 0.77rem;
    line-height: 1.45;
  }
  .cart-line small {
    display: block;
    font-size: 0.66rem;
    margin-top: 4px;
  }
  .cart-line .text-button {
    font-size: 0.65rem;
    min-height: 30px;
  }
  .cart-line-end {
    text-align: right;
    flex-shrink: 0;
  }
  .quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    margin-top: 10px;
    overflow: hidden;
  }
  .quantity-control button {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    background: #f8faf6;
  }
  .quantity-control span {
    min-width: 29px;
    font-size: 0.75rem;
    text-align: center;
  }
  .cart-options {
    padding: 20px 20px 0;
  }
  .cart-options .field label {
    font-size: 0.73rem;
  }
  .cart-options input,
  .cart-options select,
  .cart-options textarea {
    font-size: 0.76rem;
  }
  .cart-options details {
    padding-bottom: 0;
  }
  .cart-options summary {
    font-size: 0.74rem;
  }
  .cart-options .field {
    margin-bottom: 15px;
  }
  .cart-options .stack .field {
    margin: 0;
  }
  .cart-totals {
    padding: 18px 20px 0;
  }
  .summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--muted);
  }
  .summary-row > span:last-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding: 17px 0 8px;
    margin-top: 10px;
    font-size: 0.83rem;
  }
  .total-line strong {
    font-size: 1.3rem;
    letter-spacing: -0.03em;
  }
  .cart-footer {
    padding: 18px 20px 12px;
  }
  .cart-footer .button {
    font-size: 0.78rem;
  }
  .cart-footer .quiet {
    margin-top: 5px;
    font-size: 0.71rem;
  }
  .cart-panel .empty-state {
    padding: 35px 20px;
  }
  .cart-panel .empty-state h3 {
    font-size: 0.86rem;
  }
  .cart-panel .empty-state p {
    font-size: 0.74rem;
  }
  .payment-total {
    text-align: center;
    padding: 20px 10px 25px;
  }
  .payment-total span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
  }
  .payment-total strong {
    display: block;
    font-size: 2.3rem;
    margin: 8px 0 7px;
    letter-spacing: -0.045em;
  }
  .payment-total small {
    display: block;
  }
  .payment-change {
    background: #edf5e9;
    color: var(--green);
    font-weight: 650;
    padding: 15px 18px;
    border-radius: 9px;
    margin: 15px 0;
  }
  .quick-money {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: -3px 0 22px;
  }
  .quick-money .button {
    font-size: 0.73rem;
    background: var(--soft);
    color: var(--green);
  }
  .success-mark {
    display: grid;
    place-items: center;
    background: #e9f4e6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: #50774c;
  }
  .success-mark svg {
    width: 29px;
    height: 29px;
  }
  #receipt {
    border: 1px dashed #becbb9;
    background: #fdfefa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  #receipt > h3,
  #receipt > p {
    text-align: center;
  }
  #receipt > p {
    font-size: 0.74rem;
    color: var(--muted);
  }
  .receipt-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .receipt-actions .button {
    font-size: 0.73rem;
    flex: 1;
  }
  .variant-row,
  .recipe-row {
    display: grid;
    grid-template-columns: 1fr 1fr 44px;
    gap: 12px;
    align-items: center;
  }
  .variant-row .field label,
  .recipe-row .field label {
    font-size: 0.75rem;
  }
  .variant-row > .icon-button,
  .recipe-row > .icon-button {
    margin-top: 10px;
  }
  .table-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 25px;
  }
  .table-card {
    border: 1px solid var(--line);
    background: #fafcf8;
    padding: 24px;
    border-radius: 10px;
  }
  .table-card h3 {
    font-size: 1.5rem;
  }
  .table-card > p {
    font-size: 0.76rem;
    color: var(--muted);
    line-height: 1.7;
  }
  .table-card .button {
    font-size: 0.7rem;
  }
  .qr-sheet {
    text-align: center;
    max-width: 340px;
    margin: 0 auto 25px;
  }
  .qr-sheet img {
    max-width: 280px;
    display: block;
    margin: 15px auto;
  }
  .qr-sheet > p {
    font-size: 0.8rem;
  }
  .qr-sheet > strong {
    display: block;
    font-size: 0.9rem;
  }
  .order-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
  }
  .order-meta > strong {
    flex: 1;
  }
  .order-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.84rem;
  }
  .order-item small {
    display: block;
    margin-top: 5px;
  }
  .order-item > span:last-child {
    white-space: nowrap;
  }
  .verification-photo {
    display: block;
    max-height: 55vh;
    width: auto;
    margin: auto;
    border-radius: 12px;
  }
  .report-filter {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .report-filter > .field {
    margin: 0;
    flex: 1;
    max-width: 260px;
  }
  .report-filter > .button {
    min-height: 48px;
  }
  .report-filter .form-error {
    flex-basis: 100%;
    margin: 0;
  }
  .chart-list {
    padding: 23px;
  }
  .chart-row {
    display: grid;
    grid-template-columns: 90px minmax(50px, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.68rem;
  }
  .chart-row strong {
    font-size: 0.68rem;
  }
  .security-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 28px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #eaf0e7;
    margin-bottom: 24px;
  }
  .security-intro p:last-child {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
  }
  .method-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--line);
  }
  .method-row:last-child {
    border-bottom: 0;
  }
  .method-row strong {
    display: block;
    font-size: 0.85rem;
  }
  .method-row small {
    display: block;
    font-size: 0.72rem;
    margin-top: 5px;
    overflow-wrap: anywhere;
  }
  .method-row .button {
    font-size: 0.71rem;
    flex-shrink: 0;
  }
  .recovery-code-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 0;
  }
  .recovery-code-list code {
    font-size: 0.75rem;
    background: #f2f5ef;
    padding: 12px 10px;
    border: 1px dashed #cbd5c7;
    border-radius: 7px;
    overflow-wrap: anywhere;
  }
  .settings-form {
    max-width: 1050px;
  }
  .feature-switches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
  .feature-switches .check-row {
    border-bottom: 1px solid #edf1e9;
    padding: 16px 0;
  }
  .settings-form > .form-footer {
    position: sticky;
    bottom: 0;
    background: #f5f7f0ed;
    padding: 20px 0;
    backdrop-filter: blur(8px);
    z-index: 5;
  }
  .settings-form > .form-error {
    position: sticky;
    bottom: 90px;
    z-index: 6;
  }
  .auth-switch {
    font-size: 0.83rem;
    color: var(--muted);
    margin: 27px 0 0;
    text-align: center;
    line-height: 1.7;
  }
  .auth-switch a {
    color: var(--green);
    font-weight: 650;
  }
  .auth-assurance {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 28px;
    font-size: 0.76rem;
    line-height: 1.65;
  }
  .auth-assurance strong {
    font-size: 0.78rem;
  }
  .auth-assurance p {
    margin: 7px 0 0;
    color: var(--muted);
  }
  .passkey-button {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    border: 1px solid #a8beae;
    border-radius: 11px;
    width: 100%;
    padding: 18px;
    background: #edf4e9;
  }
  .passkey-button > svg:first-child {
    color: var(--green);
    width: 26px;
    height: 26px;
  }
  .passkey-button > svg:last-child {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--green);
  }
  .passkey-button strong {
    display: block;
    font-size: 0.87rem;
    color: var(--green);
  }
  .passkey-button small {
    display: block;
    font-size: 0.72rem;
    margin-top: 5px;
  }
  .passkey-button:hover {
    background: #e4eedf;
  }
  .divider {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #829085;
    font-size: 0.7rem;
    margin: 24px 0;
  }
  .divider:before,
  .divider:after {
    content: '';
    height: 1px;
    flex: 1;
    background: var(--line);
  }
  .method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    border-radius: 10px;
    padding: 5px;
    background: #e9ede5;
    margin-bottom: 22px;
  }
  .method-tabs .button {
    border-radius: 7px;
  }
  .remember-box .check-row {
    padding: 0 0 5px;
  }
  .remember-box .check-row strong {
    font-size: 0.78rem;
  }
  .remember-box .check-row small {
    font-size: 0.7rem;
  }
  .auth-content .form-error {
    margin: 0;
  }
  .auth-content .align-right {
    font-size: 0.75rem;
    color: var(--green);
    margin: 0;
  }
  .continue-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    background: #e7efdf;
    border: 1px solid #c9d8c0;
    border-radius: 12px;
    margin: 18px 0 4px;
  }
  .continue-card > div {
    flex: 1;
  }
  .continue-card strong {
    font-size: 0.83rem;
  }
  .continue-card p {
    font-size: 0.7rem;
    margin: 3px 0 0;
    color: var(--muted);
  }
  .continue-card .button {
    font-size: 0.7rem;
  }
  .otp-input {
    font-size: 1.65rem;
    letter-spacing: 0.4em;
    font-variant-numeric: tabular-nums;
    text-align: center;
    max-width: 100%;
  }
  .verified-line {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--green);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }
  .stepper {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 5px 0 35px;
    font-size: 0.68rem;
    justify-content: space-between;
    color: #7d8b7f;
  }
  .stepper li {
    display: flex;
    gap: 7px;
    align-items: center;
  }
  .stepper li > span {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #c3cdbf;
    background: white;
    font-size: 0.66rem;
  }
  .stepper .current {
    color: var(--green);
    font-weight: 650;
  }
  .stepper .current > span,
  .stepper .done > span {
    background: var(--green);
    color: white;
    border-color: var(--green);
  }
  .setup-review {
    padding: 25px;
    background: #eef3e8;
    border: 1px solid #dae4d3;
    border-radius: 12px;
    margin-bottom: 23px;
  }
  .setup-review h3 {
    font-size: 1.5rem;
  }
  .setup-review p {
    font-size: 0.83rem;
    color: var(--muted);
  }
  .setup-review ul {
    padding-left: 22px;
    font-size: 0.81rem;
    line-height: 1.8;
  }
  .setup-review li {
    margin: 10px 0;
  }
  .feature-search {
    max-width: none;
    margin-bottom: 15px;
  }
  .feature-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
  }
  .feature-result strong {
    font-size: 0.88rem;
    display: block;
  }
  .feature-result small {
    font-size: 0.73rem;
    display: block;
    margin-top: 5px;
    line-height: 1.6;
  }
  .feature-result .button {
    font-size: 0.72rem;
    min-height: 42px;
  }
  .feature-result .toolbar-group {
    flex-shrink: 0;
  }
  .access-note {
    display: block;
    font-size: 0.67rem;
    margin-top: 7px;
    color: #8b6b35;
  }
  .business-choice {
    display: flex;
    text-align: left;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    margin: 0 0 12px;
    background: #f9fbf6;
    font-size: 0.77rem;
  }
  .business-choice strong,
  .business-choice small {
    display: block;
  }
  .business-choice strong {
    font-size: 0.88rem;
    margin-bottom: 5px;
  }
  .business-list {
    margin-bottom: 23px;
  }
  .business-choice:hover {
    border-color: #9ab299;
  }
  .guide-step {
    padding: 28px 0 17px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 170px;
  }
  .guide-step > span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e7f0e1;
    color: var(--green);
    font-size: 1rem;
  }
  .guide-step h3 {
    font-size: 1.25rem;
    font-weight: 550;
    line-height: 1.6;
    padding-top: 2px;
  }
  .guide-progress {
    height: 5px;
  }
  .guide-step ~ .text-button {
    margin-top: 18px;
    font-size: 0.77rem;
  }
  dialog {
    border: 1px solid #dce4d8;
    border-radius: 18px;
    padding: 0;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    background: white;
    color: var(--ink);
    box-shadow: 0 30px 100px #102b2555;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  dialog.wide-dialog {
    width: min(820px, calc(100vw - 32px));
  }
  dialog::backdrop {
    background: #14251ed0;
    backdrop-filter: blur(3px);
  }
  .dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 26px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 3;
  }
  .dialog-head h2 {
    margin: 0;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
  }
  .dialog-head .eyebrow {
    margin: 0 0 7px;
    font-size: 0.62rem;
  }
  .dialog-body {
    padding: 25px 26px;
  }
  .dialog-body > p {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.8;
  }
  .dialog-body .stack {
    margin-top: 22px;
  }
  .dialog-body > .button.full {
    margin-top: 10px;
  }
  .dialog-body .notice {
    font-size: 0.78rem;
  }
  .dialog-body .panel {
    box-shadow: none;
  }
  .dialog-body > .table-scroll {
    margin: 0 -8px;
    width: calc(100% + 16px);
  }
  .dialog-body .table-scroll td,
  .dialog-body .table-scroll th {
    padding: 13px 12px;
  }
  .toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 300;
    max-width: min(640px, calc(100vw - 32px));
    background: #183d30;
    color: white;
    border: 1px solid #678b71;
    border-radius: 11px;
    box-shadow: 0 8px 35px #1f342c40;
    padding: 16px 22px;
    font-size: 0.82rem;
    line-height: 1.65;
    pointer-events: none;
  }
  .network-status {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 20px;
    background: #744922;
    color: white;
    text-align: center;
    font-size: 0.8rem;
    z-index: 400;
  }
  .noscript {
    position: fixed;
    inset: auto 10px 10px;
    z-index: 500;
    padding: 25px;
    background: white;
    border: 2px solid #b34944;
    border-radius: 12px;
  }
  .error-page {
    padding: 50px 25px;
    max-width: 650px;
    margin: 10vh auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
  }
  .error-page h1 {
    font-size: 1.8rem;
  }
  .error-page a {
    margin-right: 15px;
  }
  .auth-area form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .auth-area .field {
    margin: 0;
  }
  .auth-area .button.full {
    margin-top: 8px;
  }
}
@layer responsive {
  @media (min-width: 1600px) {
    .product-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .pos-layout {
      grid-template-columns: minmax(0, 1fr) 405px;
    }
  }
  @media (max-width: 1250px) {
    .app-shell {
      grid-template-columns: 220px minmax(0, 1fr);
    }
    .sidebar {
      padding-left: 12px;
      padding-right: 12px;
    }
    .workspace main {
      padding: 27px 25px 15px;
    }
    .topbar {
      padding: 0 25px;
    }
    .app-footer {
      padding-left: 25px;
      padding-right: 25px;
    }
    .pos-layout {
      grid-template-columns: minmax(0, 1fr) 330px;
      gap: 16px;
    }
    .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .welcome-aside {
      display: none;
    }
    .shortcut-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .shortcut {
      min-height: 150px;
    }
    .shortcut-number {
      margin-bottom: 15px;
    }
    .guide-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .auth-story {
      padding: 35px;
    }
    .auth-message h1 {
      font-size: 2.7rem;
    }
    .auth-main {
      padding: 30px;
    }
    .metric-grid {
      gap: 13px;
    }
    .metric {
      padding: 20px;
    }
    .metric > strong {
      font-size: 1.6rem;
    }
    .table-card-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pos-toolbar {
      align-items: flex-start;
      flex-direction: column;
    }
    .two-columns {
      gap: 17px;
    }
    .panel-head {
      padding: 20px;
    }
    .panel-head > .button {
      font-size: 0.72rem;
    }
  }
  @media (max-width: 1000px) {
    .sidebar {
      display: none;
    }
    .app-shell {
      display: block;
    }
    .topbar {
      height: 72px;
      padding: 0 25px;
      position: sticky;
      top: 0;
      z-index: 25;
      background: #fbfcf9f5;
      backdrop-filter: blur(10px);
    }
    .mobile-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--green);
      font-size: 1.2rem;
      letter-spacing: -0.05em;
    }
    .search-trigger {
      min-width: 0;
      flex: 1;
    }
    .topbar .mobile-brand {
      margin-right: 5px;
    }
    .workspace main {
      padding: 27px 25px 20px;
      min-height: calc(100vh - 200px);
    }
    .app-footer {
      padding-bottom: 100px;
    }
    .bottom-nav {
      display: flex;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      justify-content: space-around;
      gap: 2px;
      padding: 7px 8px max(9px, env(safe-area-inset-bottom));
      border-top: 1px solid var(--line);
      background: #fffffff7;
      backdrop-filter: blur(10px);
      z-index: 80;
    }
    .bottom-nav > a,
    .bottom-nav > button {
      display: flex;
      flex: 1;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      font-size: 0.58rem;
      color: var(--muted);
      min-height: 48px;
      padding: 4px 6px;
      border-radius: 9px;
      max-width: 160px;
    }
    .bottom-nav [aria-current='page'] {
      color: var(--green);
      font-weight: 700;
      background: #edf4e8;
    }
    .bottom-nav svg {
      width: 21px;
      height: 21px;
    }
    .toast {
      bottom: 94px;
    }
    .network-status {
      bottom: 78px;
    }
    .pos-layout {
      grid-template-columns: minmax(0, 1fr) 350px;
    }
    .cart-panel {
      top: 95px;
    }
    .demo-banner {
      padding: 11px 25px;
    }
    .auth-story {
      padding: 30px;
    }
    .auth-message h1 {
      font-size: 2.3rem;
    }
    .auth-message > p:not(.eyebrow) {
      font-size: 0.84rem;
    }
    .auth-main {
      padding: 25px;
    }
    .auth-top {
      gap: 12px;
      font-size: 0.7rem;
    }
    .auth-top .button {
      font-size: 0.66rem;
    }
    .settings-form > .form-footer {
      bottom: 77px;
    }
    .auth-content {
      padding: 45px 0;
    }
    .guide-step h3 {
      font-size: 1.16rem;
    }
  }
  @media (max-width: 760px) {
    .auth-shell {
      display: block;
      min-height: 100vh;
    }
    .auth-story {
      display: none;
    }
    .auth-main {
      min-height: 100dvh;
      padding: 22px;
    }
    .auth-top {
      justify-content: space-between;
      gap: 10px;
    }
    .auth-top .mobile-brand {
      display: flex;
    }
    .auth-top > .button {
      margin-left: auto;
      padding: 8px;
      font-size: 0.65rem;
    }
    .auth-top > a:last-child {
      display: none;
    }
    .auth-content {
      max-width: 510px;
      padding: 45px 0 30px;
    }
    .auth-content > h2 {
      font-size: 1.9rem;
    }
    .auth-footer {
      padding-bottom: 10px;
    }
    .two-columns {
      display: block;
    }
    .pos-layout {
      grid-template-columns: 1fr;
    }
    .cart-panel {
      position: static;
      margin-top: 7px;
    }
    .product-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .product-tile {
      min-height: 195px;
    }
    .product-info {
      padding: 12px;
    }
    .product-info > strong {
      font-size: 0.77rem;
    }
    .product-info > b {
      font-size: 0.8rem;
    }
    .product-monogram {
      height: 54px;
      font-size: 1.25rem;
    }
    .product-photo {
      height: 85px;
    }
    .product-add {
      right: 10px;
      bottom: 12px;
    }
    .stock-caption {
      font-size: 0.55rem;
    }
    .catalog-panel {
      padding-bottom: 10px;
    }
    .pos-toolbar {
      gap: 11px;
    }
    .pos-toolbar .toolbar-group {
      gap: 5px;
    }
    .pos-toolbar .button {
      font-size: 0.64rem;
      padding: 8px 10px;
    }
    .cart-line {
      padding: 18px 22px;
    }
    .cart-line strong {
      font-size: 0.87rem;
    }
    .cart-line small {
      font-size: 0.75rem;
    }
    .cart-line .text-button {
      font-size: 0.72rem;
      min-height: 34px;
    }
    .quantity-control button {
      width: 42px;
      height: 42px;
    }
    .quantity-control span {
      min-width: 32px;
      font-size: 0.85rem;
    }
    .cart-panel > .panel-head,
    .cart-options,
    .cart-totals,
    .cart-footer {
      padding-left: 22px;
      padding-right: 22px;
    }
    .cart-options .field label {
      font-size: 0.83rem;
    }
    .cart-options input,
    .cart-options select,
    .cart-options textarea {
      font-size: 0.86rem;
    }
    .cart-options summary {
      font-size: 0.85rem;
    }
    .cart-footer .button {
      font-size: 0.88rem;
      min-height: 50px;
    }
    .guide-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .guide-card {
      padding: 20px;
    }
    .page-heading .guide-button {
      font-size: 0.72rem;
      min-height: 42px;
      padding: 9px 11px;
    }
    .welcome-panel {
      padding: 24px;
    }
    .metric-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .metric-grid:has(.metric:nth-child(3):last-child) .metric:first-child {
      grid-column: 1/-1;
    }
    .metric {
      padding: 19px;
    }
    .metric > strong {
      font-size: 1.65rem;
    }
    .metric > span {
      font-size: 0.75rem;
    }
    .metric > small {
      font-size: 0.66rem;
    }
    .training-hero {
      padding: 30px;
    }
    .training-hero h2 {
      font-size: 1.8rem;
    }
    .training-hero p {
      font-size: 0.86rem;
    }
    .panel-head {
      padding: 20px;
    }
    .panel-head p {
      font-size: 0.74rem;
    }
    .section-toolbar {
      padding: 15px 20px;
    }
    .chart-row {
      grid-template-columns: 80px minmax(30px, 1fr) auto;
      gap: 10px;
    }
    .method-row {
      padding: 20px;
    }
    .feature-switches {
      grid-template-columns: 1fr;
    }
    .settings-form .form-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .form-footer {
      padding-top: 18px;
    }
    .app-footer > span:nth-child(2) {
      display: none;
    }
    .work-section > header {
      align-items: flex-start;
    }
    .work-section header > a {
      font-size: 0.68rem;
    }
    .work-section header p {
      font-size: 0.73rem;
    }
    .table-scroll td,
    .table-scroll th {
      padding-left: 18px;
      padding-right: 18px;
    }
    .table-scroll td .button {
      min-height: 44px;
    }
    .dialog-body > .table-scroll {
      overflow: auto;
    }
    .demo-banner {
      flex-wrap: wrap;
      gap: 4px 10px;
      font-size: 0.7rem;
    }
    .demo-banner span {
      max-width: 220px;
    }
    .demo-banner a {
      margin-left: auto;
    }
    .security-intro {
      padding: 22px;
    }
    .security-intro h2 {
      font-size: 1.4rem;
    }
    .security-intro p:last-child {
      font-size: 0.75rem;
    }
    .guided-hint {
      align-items: flex-start;
      flex-wrap: wrap;
    }
    .guided-hint > .button {
      margin-left: 30px;
    }
    .report-filter > .field {
      max-width: none;
    }
    .report-filter > .button {
      flex: 1;
    }
    .table-card-grid {
      padding: 20px;
      gap: 12px;
    }
  }
  @media (max-width: 480px) {
    .workspace main {
      padding: 22px 16px 10px;
    }
    .topbar {
      height: 67px;
      padding: 0 17px;
      gap: 12px;
    }
    .topbar-actions {
      gap: 3px;
    }
    .topbar .user-button > span:last-child {
      display: none;
    }
    .search-trigger {
      font-size: 0.69rem;
      gap: 7px;
    }
    .search-trigger kbd {
      display: none;
    }
    .search-trigger svg {
      width: 17px;
    }
    .mobile-brand svg {
      width: 28px;
      height: 28px;
    }
    .topbar .icon-button {
      min-width: 38px;
      min-height: 42px;
    }
    .user-button > span:first-child {
      width: 31px;
      height: 31px;
      font-size: 0.75rem;
    }
    .page-heading {
      margin-bottom: 23px;
      gap: 11px;
      align-items: flex-start;
    }
    .page-heading h1 {
      font-size: 1.55rem;
    }
    .page-heading p:last-child {
      font-size: 0.76rem;
      line-height: 1.65;
    }
    .page-heading .eyebrow {
      font-size: 0.51rem;
      letter-spacing: 0.08em;
    }
    .page-heading .guide-button {
      font-size: 0.65rem;
      padding: 8px;
      min-height: 40px;
    }
    .page-heading .guide-button svg {
      display: none;
    }
    .welcome-panel {
      padding: 22px 19px;
      margin-bottom: 19px;
    }
    .welcome-panel h2 {
      font-size: 1.25rem;
      line-height: 1.4;
    }
    .welcome-panel p:last-child {
      font-size: 0.76rem;
      line-height: 1.7;
    }
    .welcome-panel .eyebrow {
      font-size: 0.55rem;
    }
    .metric-grid {
      margin-bottom: 26px;
      gap: 10px;
    }
    .metric {
      padding: 18px 16px;
      border-radius: 10px;
    }
    .metric > strong {
      font-size: 1.45rem;
      margin: 8px 0 4px;
    }
    .metric > span {
      font-size: 0.69rem;
    }
    .metric > small {
      font-size: 0.6rem;
    }
    .metric > small svg {
      display: none;
    }
    .shortcut-grid {
      gap: 11px;
    }
    .shortcut {
      padding: 18px 17px 22px;
      min-height: 159px;
    }
    .shortcut h3 {
      font-size: 0.91rem;
    }
    .shortcut p {
      font-size: 0.66rem;
      max-width: 110px;
    }
    .shortcut-arrow {
      right: 12px;
      bottom: 13px;
    }
    .shortcut-arrow svg {
      width: 16px;
    }
    .shortcut-number {
      font-size: 0.58rem;
    }
    .work-section h2 {
      font-size: 1.05rem;
    }
    .work-section > header > a {
      font-size: 0.64rem;
      max-width: 70px;
      text-align: right;
      white-space: normal;
    }
    .panel {
      margin-bottom: 19px;
      border-radius: 12px;
    }
    .panel-head {
      padding: 19px 18px;
      align-items: flex-start;
      gap: 10px;
    }
    .panel-head h2 {
      font-size: 0.97rem;
    }
    .panel-head p {
      font-size: 0.68rem;
      line-height: 1.7;
    }
    .panel-head > .button {
      font-size: 0.65rem;
      min-height: 42px;
      padding: 9px 10px;
      max-width: 125px;
    }
    .panel-head > .button > svg {
      display: none;
    }
    .checklist > a {
      padding: 18px;
    }
    .checklist > a strong {
      font-size: 0.75rem;
    }
    .checklist > a small {
      font-size: 0.67rem;
    }
    .learning-panel {
      padding: 25px 22px;
    }
    .learning-panel h2 {
      font-size: 1.35rem;
    }
    .learning-panel p {
      font-size: 0.77rem;
    }
    .app-footer {
      padding: 22px 18px 98px;
      font-size: 0.62rem;
    }
    .guide-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .guide-card {
      padding: 23px;
    }
    .guide-card p {
      font-size: 0.8rem;
    }
    .guide-card .toolbar-group {
      justify-content: space-between;
    }
    .training-hero {
      padding: 27px 23px;
    }
    .training-hero h2 {
      font-size: 1.6rem;
      line-height: 1.3;
    }
    .training-hero p {
      font-size: 0.79rem;
    }
    .training-hero .button {
      font-size: 0.75rem;
    }
    .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 11px;
    }
    .product-tile {
      min-height: 205px;
    }
    .product-monogram {
      height: 65px;
    }
    .product-info {
      padding: 14px;
    }
    .product-info > strong {
      font-size: 0.8rem;
    }
    .product-info > small {
      font-size: 0.64rem;
    }
    .product-info > b {
      font-size: 0.85rem;
    }
    .stock-caption {
      font-size: 0.56rem;
    }
    .catalog-search input {
      font-size: 0.77rem;
    }
    .category-tabs {
      gap: 6px;
      padding: 15px 0;
    }
    .chip {
      font-size: 0.68rem;
      min-height: 42px;
      padding: 9px 13px;
    }
    .pos-toolbar .toolbar-group {
      width: 100%;
    }
    .pos-toolbar .toolbar-group .button {
      flex: 1;
      font-size: 0.65rem;
      min-width: 43%;
      min-height: 42px;
    }
    .pos-toolbar .toolbar-group:first-child {
      font-size: 0.7rem;
    }
    .cart-line {
      padding: 17px 18px;
    }
    .cart-panel > .panel-head,
    .cart-options,
    .cart-totals,
    .cart-footer {
      padding-left: 18px;
      padding-right: 18px;
    }
    .cart-panel .panel-head h2 {
      font-size: 1.05rem;
    }
    .cart-panel .panel-head p {
      font-size: 0.72rem;
    }
    .cart-totals .total-line strong {
      font-size: 1.55rem;
    }
    .empty-state {
      padding: 35px 20px;
    }
    .section-toolbar {
      padding: 15px 17px;
    }
    .section-toolbar > .muted {
      display: none;
    }
    .form-grid,
    .settings-form .form-grid {
      grid-template-columns: 1fr;
      gap: 0;
    }
    .choice-grid {
      grid-template-columns: 1fr;
    }
    .choice {
      flex-direction: row;
      align-items: flex-start;
      gap: 13px;
      padding: 15px;
    }
    .choice > span {
      flex: 1;
    }
    .choice strong {
      font-size: 0.85rem;
    }
    .choice small {
      font-size: 0.75rem;
      margin-top: 4px;
    }
    .choice input {
      margin-top: 2px;
    }
    .padded-form {
      padding: 21px 18px;
    }
    .feature-switches {
      padding-top: 9px;
    }
    .check-row strong {
      font-size: 0.82rem;
    }
    .check-row small {
      font-size: 0.73rem;
    }
    .checkbox-grid {
      grid-template-columns: 1fr;
    }
    .field label {
      font-size: 0.83rem;
    }
    .field {
      margin-bottom: 18px;
    }
    .dialog-head {
      padding: 18px;
    }
    .dialog-head h2 {
      font-size: 1.1rem;
    }
    .dialog-body {
      padding: 21px 19px;
    }
    .dialog-body > p {
      font-size: 0.81rem;
    }
    .dialog-head .icon-button {
      min-height: 38px;
      min-width: 38px;
    }
    .dialog-body .form-grid {
      grid-template-columns: 1fr;
    }
    dialog,
    dialog.wide-dialog {
      width: calc(100vw - 20px);
      max-height: calc(100dvh - 28px);
      border-radius: 15px;
    }
    .form-footer {
      gap: 8px;
    }
    .form-footer .button {
      flex: 1;
      font-size: 0.79rem;
      min-width: 0;
      min-height: 48px;
    }
    .dialog-body > .notice {
      font-size: 0.75rem;
    }
    .feature-result {
      align-items: flex-start;
      gap: 8px;
    }
    .feature-result .toolbar-group {
      flex-direction: column;
      gap: 3px;
    }
    .feature-result .button {
      font-size: 0.63rem;
      padding: 7px 9px;
      min-height: 38px;
    }
    .feature-result .button svg {
      display: none;
    }
    .feature-result strong {
      font-size: 0.81rem;
    }
    .feature-result small {
      font-size: 0.68rem;
    }
    .access-note {
      font-size: 0.61rem;
    }
    .feature-search input {
      font-size: 0.75rem;
    }
    .metric-strip {
      padding: 24px 21px;
      gap: 25px;
    }
    .metric-strip > div > span {
      font-size: 0.68rem;
    }
    .metric-strip strong {
      font-size: 1.45rem;
    }
    .table-card-grid {
      grid-template-columns: 1fr;
    }
    .table-card h3 {
      font-size: 1.3rem;
    }
    .table-card {
      padding: 23px;
    }
    .method-row {
      padding: 19px 18px;
      gap: 9px;
    }
    .method-row .button {
      font-size: 0.65rem;
      padding: 9px 11px;
    }
    .method-row strong {
      font-size: 0.78rem;
    }
    .method-row small {
      font-size: 0.67rem;
    }
    .security-intro {
      padding: 23px 20px;
      align-items: flex-start;
      gap: 10px;
    }
    .security-intro > .button {
      font-size: 0.67rem;
      flex-shrink: 0;
      padding: 9px 11px;
    }
    .security-intro .eyebrow {
      font-size: 0.57rem;
    }
    .security-intro h2 {
      font-size: 1.2rem;
    }
    .security-intro p:last-child {
      font-size: 0.71rem;
    }
    .recovery-code-list {
      grid-template-columns: 1fr;
    }
    .recovery-code-list code {
      font-size: 0.86rem;
      text-align: center;
    }
    .variant-row,
    .recipe-row {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
      gap: 8px;
    }
    .variant-row .field label,
    .recipe-row .field label {
      font-size: 0.67rem;
    }
    .variant-row input,
    .recipe-row input,
    .recipe-row select {
      padding: 10px 8px;
      font-size: 0.76rem;
    }
    .variant-row .icon-button,
    .recipe-row .icon-button {
      min-width: 34px;
      padding: 5px;
    }
    .auth-main {
      padding: 21px;
    }
    .auth-content {
      padding: 45px 0 20px;
    }
    .auth-content > .eyebrow {
      font-size: 0.58rem;
    }
    .auth-content > h2 {
      font-size: 1.65rem;
      line-height: 1.28;
    }
    .auth-content > .lead {
      font-size: 0.88rem;
      line-height: 1.8;
    }
    .auth-top .mobile-brand {
      font-size: 1.25rem;
    }
    .auth-top .button {
      font-size: 0.61rem;
      min-height: 42px;
    }
    .auth-content .passkey-button {
      padding: 17px 15px;
      gap: 12px;
    }
    .passkey-button strong {
      font-size: 0.84rem;
    }
    .passkey-button small {
      font-size: 0.67rem;
    }
    .auth-content .button.full {
      min-height: 51px;
    }
    .method-tabs .button {
      min-height: 44px;
    }
    .stepper {
      gap: 7px;
      font-size: 0.61rem;
      margin-bottom: 28px;
    }
    .stepper li {
      gap: 5px;
    }
    .stepper li > span {
      width: 24px;
      height: 24px;
      font-size: 0.6rem;
    }
    .setup-review {
      padding: 23px;
    }
    .setup-review h3 {
      font-size: 1.3rem;
    }
    .setup-review ul {
      font-size: 0.78rem;
    }
    .auth-footer {
      font-size: 0.66rem;
    }
    .auth-switch {
      font-size: 0.76rem;
    }
    .guide-step {
      gap: 14px;
      min-height: 150px;
      padding-top: 24px;
    }
    .guide-step > span {
      min-width: 33px;
      height: 33px;
      font-size: 0.87rem;
    }
    .guide-step h3 {
      font-size: 1.05rem;
      line-height: 1.6;
    }
    .notice {
      font-size: 0.76rem;
      padding: 14px 16px;
    }
    .demo-banner {
      padding: 10px 17px;
      font-size: 0.63rem;
    }
    .demo-banner span {
      max-width: 180px;
    }
    .demo-banner a {
      max-width: 60px;
      text-align: right;
    }
    .toast {
      font-size: 0.75rem;
      padding: 14px 18px;
      width: calc(100vw - 30px);
    }
    .report-filter {
      gap: 11px;
    }
    .report-filter > .field {
      min-width: 40%;
    }
    .report-filter .field label {
      font-size: 0.74rem;
    }
    .report-filter .field input {
      padding: 10px;
      font-size: 0.75rem;
    }
    .report-filter > .button {
      font-size: 0.78rem;
    }
    .chart-list {
      padding: 20px 17px;
    }
    .chart-row {
      grid-template-columns: 70px minmax(35px, 1fr) auto;
      gap: 8px;
      font-size: 0.59rem;
    }
    .chart-row strong {
      font-size: 0.59rem;
    }
    .receipt-actions {
      flex-direction: column;
    }
    .payment-total strong {
      font-size: 2rem;
    }
    .payment-total small {
      font-size: 0.7rem;
    }
    .quick-money {
      gap: 6px;
    }
    .quick-money .button {
      font-size: 0.7rem;
      padding: 8px 12px;
    }
    .guided-hint {
      font-size: 0.72rem;
      padding: 14px;
      gap: 9px;
    }
    .guided-hint > svg {
      width: 18px;
      flex-shrink: 0;
    }
    .guided-hint > .button {
      font-size: 0.67rem;
      margin-left: 26px;
    }
    .settings-form > .form-footer {
      padding: 15px 0;
    }
    .feature-switches .check-row {
      padding: 15px 0;
    }
    .bottom-nav > a,
    .bottom-nav > button {
      font-size: 0.55rem;
    }
  }
  html[data-font='extra'] .nav-link {
    min-height: 48px;
  }
  html[data-font='extra'] .button {
    min-height: 50px;
  }
  html[data-font='extra'] .product-tile {
    min-height: 225px;
  }
  html[data-contrast='high'] .badge {
    border: 1px solid currentColor;
  }
  html[data-contrast='high'] .metric,
  html[data-contrast='high'] .panel,
  html[data-contrast='high'] .shortcut {
    border-width: 2px;
  }
  html[data-contrast='high'] .eyebrow {
    color: #385343;
  }
  html[data-mode='simple'] .work-section header p {
    display: none;
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
      animation: none !important;
      transition: none !important;
      scroll-behavior: auto !important;
    }
    .spinner {
      border-color: var(--green);
    }
  }
  @media print {
    body > * {
      display: none !important;
    }
    body.printing-receipt > #dialog {
      display: block !important;
      position: static;
      border: 0;
      box-shadow: none;
      width: 80mm;
      max-width: 80mm;
      max-height: none;
      margin: 0;
      padding: 0;
      overflow: visible;
    }
    body.printing-receipt #dialog .dialog-head,
    body.printing-receipt #dialog .dialog-body > *:not(#receipt) {
      display: none !important;
    }
    body.printing-receipt #receipt {
      display: block !important;
      border: 0;
      margin: 0;
      padding: 3mm;
      color: black;
      font-size: 10pt;
    }
    body.printing-receipt #receipt > * {
      color: black;
    }
    body.printing-receipt #receipt h3 {
      font-size: 13pt;
    }
    body.printing-receipt #receipt p {
      font-size: 8pt;
    }
    body.printing-receipt #receipt .summary-row {
      font-size: 9pt;
    }
    body.printing-receipt #receipt .total-line strong {
      font-size: 12pt;
    }
    .dialog-body {
      padding: 0;
    }
    dialog::backdrop {
      display: none;
    }
    @page {
      margin: 4mm;
    }
  }
}

@layer components {
  .sidebar {
    overflow: hidden;
  }
  .sidebar > nav {
    min-height: 0;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #476256 transparent;
  }
  .sidebar-bottom {
    flex-shrink: 0;
  }
  .cart-line-end > strong {
    display: block;
  }
  html[data-font='extra'] .button {
    font-size: 0.8rem;
  }
  html[data-font='extra'] .bottom-nav span {
    font-size: 0.72rem;
  }
  html[data-font='extra'] .metric > small,
  html[data-font='extra'] .field-hint {
    font-size: 0.75rem;
  }
}

@layer components {
  .feature-business {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 20px;
  }
  .feature-business strong,
  .feature-business small {
    display: block;
  }
  .feature-business strong {
    font-size: 0.85rem;
    margin-top: 4px;
  }
  .feature-business .button {
    font-size: 0.72rem;
  }
}
