/* Public product preview: isolated sample data, styled like the company workspace. */
.public-hero--product { padding-block: clamp(64px, 7vw, 100px) clamp(76px, 8vw, 114px); }
.public-hero--product .public-hero__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(30px, 4vw, 54px); }
.public-hero--product h1 { font-size: clamp(3rem, 4.5vw, 4.25rem); line-height: 1.07; letter-spacing: -.065em; }
.public-hero--product .public-lead { font-size: 1.12rem; line-height: 1.65; }
.public-hero--product .public-trust-note { gap: 10px 18px; font-size: .79rem; }
.nx-preview { --nx-purple: #7658ed; --nx-ink: #241839; --nx-muted: #847893; position: relative; min-width: 0; color: var(--nx-ink); }
.nx-preview *, .nx-preview *::before, .nx-preview *::after { box-sizing: border-box; }
.nx-preview [hidden] { display: none !important; }
.nx-preview button { font: inherit; cursor: pointer; }
.nx-preview button:focus-visible, .nx-preview [tabindex]:focus-visible { outline: 3px solid #9b86f6; outline-offset: 3px; }
.nx-preview button:disabled { cursor: default; }
.nx-preview__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 14px; }
.nx-preview__eyebrow { color: #81728f; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.nx-preview__tabs { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid #e7e0f4; border-radius: 12px; background: #fff; }
.nx-preview__tabs button { min-height: 33px; padding: 5px 12px; border: 0; border-radius: 8px; background: transparent; color: #7c6d90; font-size: 11px; font-weight: 700; transition: background .2s, color .2s; }
.nx-preview__tabs button[aria-selected=true] { background: var(--nx-purple); color: #fff; box-shadow: 0 3px 8px #7658ed26; }
.nx-preview__tabs button:hover:not([aria-selected=true]) { background: #f4f0fd; color: #5c3fc8; }
.nx-preview__window { position: relative; border: 1px solid #e3daf5; border-radius: 17px; background: #fff; box-shadow: 0 30px 65px -28px #33205757, 0 3px 10px #40245f06; }
.nx-preview__chrome { display: flex; align-items: center; gap: 14px; height: 33px; padding-inline: 13px; border-bottom: 1px solid #eee8f7; border-radius: 17px 17px 0 0; background: #fdfcff; color: #90849f; font-size: 9px; }
.nx-preview__chrome > span:nth-child(2) { display: inline-flex; align-items: center; gap: 6px; }
.nx-preview__dots { display: flex; gap: 4px; }
.nx-preview__dots i { width: 6px; height: 6px; border-radius: 50%; background: #e2d9ee; }
.nx-preview__dots i:first-child { background: #f1b6c9; }
.nx-preview__dots i:nth-child(2) { background: #f0d59a; }
.nx-preview__dots i:last-child { background: #b8d9c8; }
.nx-preview__example { margin-left: auto; color: #867993; }
.nx-preview__app { display: grid; grid-template-columns: 112px minmax(0, 1fr); overflow: hidden; border-radius: 0 0 17px 17px; }
.nx-preview__sidebar { display: flex; flex-direction: column; align-items: stretch; padding: 20px 8px 13px; background: linear-gradient(170deg, #2d124c, #3f206a); color: #fff; }
.nx-preview__logo { display: block; width: 85px; height: 27px; margin: 0 auto 22px; }
.nx-preview__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nx-preview__workspace { margin: 0 8px 9px; color: #bba8d4; font-size: 7px; letter-spacing: .12em; font-weight: 700; }
.nx-preview__workspace:not(:first-of-type) { margin-top: 23px; }
.nx-preview__sidebar button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px; margin-bottom: 4px; padding: 8px; border: 0; border-radius: 7px; background: none; color: #dbd0e9; text-align: left; font-size: 10px; font-weight: 600; }
.nx-preview__sidebar button i { width: 13px; text-align: center; }
.nx-preview__sidebar button[aria-pressed=true] { background: #7959ec; color: #fff; box-shadow: 0 3px 10px #1d0b352b; }
.nx-preview__sidebar button:hover:not([aria-pressed=true]) { background: #ffffff12; }
.nx-preview__sidebar-note { display: flex; align-items: flex-start; gap: 7px; margin-top: auto; padding: 25px 7px 0; color: #bba8d4; font-size: 8px; line-height: 1.7; }
.nx-preview__sidebar-note > i { margin-top: 4px; }
.nx-preview__workspace-content { min-width: 0; background: #f8f6fd; }
.nx-preview__topbar { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 17px; border-bottom: 1px solid #eee8f8; background: #fff; }
.nx-preview__topbar > span:first-child { display: flex; gap: 6px; align-items: center; font-size: 9px; font-weight: 600; color: #76668b; }
.nx-preview__topbar i { color: #896cf0; }
.nx-preview__avatar { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #eee8ff; color: #7658ed; font-size: 8px; font-weight: 700; }
.nx-preview__panel { min-height: 420px; padding: 17px; animation: nx-preview-panel-in .35s ease-out both; }
.nx-preview__heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 15px; }
.nx-preview__heading > div > span { display: block; margin-bottom: 3px; color: #9788a5; font-size: 7px; letter-spacing: .08em; font-weight: 600; }
.nx-preview__heading h2 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.045em; color: var(--nx-ink); }
.nx-preview__period, .nx-preview__open { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; border: 1px solid #e9e2f3; border-radius: 6px; background: #fff; padding: 5px 8px; color: #736284; font-size: 8px; }
.nx-preview__metrics { display: grid; grid-template-columns: 1.05fr 1.05fr .9fr; gap: 8px; }
.nx-preview__metric { min-width: 0; padding: 12px 10px; border: 1px solid #eae4f4; border-radius: 9px; background: #fff; }
.nx-preview__metric.is-sales { background: linear-gradient(120deg, #f1ebff, #fcfaff); border-color: #e4d8ff; }
.nx-preview__metric > span { display: flex; justify-content: space-between; align-items: center; gap: 4px; color: #7b6c8e; font-size: 8px; }
.nx-preview__metric > span i { color: #9c82ef; font-size: 8px; }
.nx-preview__metric > strong { display: block; margin: 6px 0 4px; font-size: clamp(14px, 1.4vw, 20px); line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.nx-preview__metric.is-sales > strong { color: #6847d3; }
.nx-preview__metric em { display: inline-block; padding: 3px 5px; border-radius: 4px; background: #fff1d4; color: #a47622; font-size: 7px; font-weight: 500; font-style: normal; vertical-align: middle; letter-spacing: 0; }
.nx-preview__metric small { display: block; font-size: 7px; color: #9b8ba8; line-height: 1.4; }
.nx-preview__chart { margin-top: 12px; padding: 12px 12px 9px; border: 1px solid #eae4f4; border-radius: 9px; background: #fff; }
.nx-preview__chart-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 7px; font-size: 9px; }
.nx-preview__chart-heading > span { display: flex; align-items: center; gap: 4px; color: #9c8faa; font-size: 7px; }
.nx-preview__chart-heading i { width: 5px; height: 5px; background: #8964f0; border-radius: 50%; }
.nx-preview__chart svg { display: block; width: 100%; height: 99px; overflow: visible; }
.nx-preview__grid { stroke: #eee9f6; stroke-width: 1; fill: none; }
.nx-preview__area { fill: url(#preview-chart-fill); }
.nx-preview__line { stroke: #8964f0; stroke-width: 2.7; stroke-linecap: round; fill: none; stroke-dasharray: 1; animation: nx-preview-chart-in 1.5s ease-out both; }
.nx-preview__chart-dot { fill: #8964f0; stroke: #fff; stroke-width: 2; }
.nx-preview__days { display: flex; justify-content: space-between; padding-top: 5px; color: #b0a3bc; font-size: 7px; }
.nx-preview__attention { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding: 10px; border: 1px solid #f2e7d8; border-radius: 8px; background: #fffcf7; }
.nx-preview__attention-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: #fff0d3; color: #bc8a35; font-size: 11px; }
.nx-preview__attention > div { min-width: 0; }
.nx-preview__attention strong, .nx-preview__attention > div > span { display: block; }
.nx-preview__attention strong { font-size: 9px; }
.nx-preview__attention > div > span { color: #a18b70; font-size: 7px; margin-top: 2px; }
.nx-preview__attention button { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 5px 0 5px 5px; border: 0; background: none; color: #a57524; font-size: 8px; font-weight: 600; }
.nx-preview__app-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 33px; padding: 5px 17px 12px; font-size: 7px; color: #ad9dbb; }
.nx-preview__app-footer > span { display: flex; gap: 5px; align-items: center; }
.nx-preview__app-footer > span i { color: #7aa68e; }
.nx-preview__app-footer button { padding: 2px 0; border: 0; background: none; color: #7959cc; font-size: 8px; }
.nx-preview__caption { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 18px 0 0; color: #9788a6; font-size: 10px; }
.nx-preview__caption-line { width: 20px; height: 1px; background: #c4b2e8; }
.nx-preview__open { background: #eef8f1; color: #4d8b68; border-color: #dbefe2; }
.nx-preview__open i { width: 4px; height: 4px; border-radius: 50%; background: #6ca783; }
.nx-preview__pos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nx-preview__products, .nx-preview__cart { min-width: 0; padding: 12px; border: 1px solid #eae4f4; border-radius: 9px; background: #fff; }
.nx-preview__search { display: flex; align-items: center; gap: 5px; min-height: 29px; padding: 7px; margin-bottom: 15px; border: 1px solid #e9e2f8; border-radius: 6px; background: #fcfaff; color: #a394b4; font-size: 7px; }
.nx-preview__products > strong { display: block; margin-bottom: 7px; font-size: 9px; }
.nx-preview__product { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-block: 9px; border-bottom: 1px solid #f1ecf8; }
.nx-preview__product-icon { display: grid; place-items: center; flex-shrink: 0; width: 29px; height: 32px; border-radius: 7px; background: #ecf3f5; color: #7a9faa; font-size: 13px; }
.nx-preview__product-icon.is-coffee { background: #f5eee8; color: #a58b73; }
.nx-preview__product > div { min-width: 0; flex: 1; }
.nx-preview__product strong, .nx-preview__product small { display: block; }
.nx-preview__product strong { font-size: 8px; line-height: 1.3; }
.nx-preview__product small { margin-top: 3px; font-size: 7px; color: #b0a0bd; }
.nx-preview__product > b { margin-left: auto; font-size: 8px; }
.nx-preview__pos-hint { display: flex; gap: 7px; padding-top: 13px; color: #a598b3; font-size: 8px; line-height: 1.6; }
.nx-preview__pos-hint > i { color: #b9a4e6; font-size: 18px; }
.nx-preview__cart-title { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 12px; font-size: 9px; }
.nx-preview__cart-title > span { font-size: 7px; color: #9b87bc; }
.nx-preview__customer { display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid #ece6f6; border-radius: 5px; color: #927da9; font-size: 7px; margin-bottom: 10px; }
.nx-preview__cart-line { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 9px 0; border-bottom: 1px solid #f1ecf8; }
.nx-preview__cart-line strong, .nx-preview__cart-line small { display: block; }
.nx-preview__cart-line strong { font-size: 8px; }
.nx-preview__cart-line small { color: #b0a0bd; font-size: 7px; }
.nx-preview__cart-line b { font-size: 8px; white-space: nowrap; }
.nx-preview__total { display: flex; justify-content: space-between; align-items: center; padding-block: 13px; font-size: 9px; }
.nx-preview__total strong { font-size: 19px; letter-spacing: -.04em; }
.nx-preview__charge { display: flex; align-items: center; justify-content: space-between; gap: 7px; width: 100%; min-height: 34px; padding: 8px 10px; border: 0; border-radius: 6px; background: #7658ed; color: #fff; font-size: 9px !important; font-weight: 600 !important; transition: background .2s; }
.nx-preview__charge:hover:not(:disabled) { background: #6243d3; }
.nx-preview__charge:disabled { background: #3b9366; }
.nx-preview__sale-note { display: block; margin-top: 6px; text-align: center; font-size: 7px; color: #a28eb6; }
.nx-preview__stock-summary { display: flex; align-items: center; gap: 10px; padding: 13px; margin-bottom: 14px; border: 1px solid #e4dbf9; border-radius: 8px; background: #f1ecfc; }
.nx-preview__stock-icon { color: #8c6cd5; font-size: 20px; }
.nx-preview__stock-summary strong, .nx-preview__stock-summary div > span { display: block; }
.nx-preview__stock-summary strong { font-size: 10px; }
.nx-preview__stock-summary div > span { margin-top: 3px; color: #a08bb7; font-size: 8px; }
.nx-preview__stock-summary > i { margin-left: auto; color: #9777d3; font-size: 11px; }
.nx-preview__table { overflow: hidden; border: 1px solid #eae4f4; border-radius: 8px; background: #fff; }
.nx-preview__table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 8px; }
.nx-preview__table th { padding: 9px 10px; background: #f9f7fd; color: #9787a9; font-size: 7px; font-weight: 500; }
.nx-preview__table td { padding: 11px 10px; border-top: 1px solid #f0ebf7; white-space: nowrap; }
.nx-preview__table td strong, .nx-preview__table td small { display: block; }
.nx-preview__table td strong { font-size: 8px; font-weight: 500; }
.nx-preview__table td small { margin-top: 2px; color: #b0a0bd; font-size: 6px; }
.nx-preview__table tr.is-updated td { background: #f1faf5; }
.nx-preview__status { display: inline-block; padding: 3px 6px; border-radius: 4px; background: #eaf6ef; color: #6b9b7f; font-size: 6px; }
.nx-preview__status.is-low { background: #fff2d8; color: #ae8b40; }
.nx-preview__low-stock { color: #b98a31; }
.nx-preview__stock-footnote { display: flex; gap: 6px; margin: 13px 0 0; color: #a493b5; font-size: 7px; }
.nx-preview__notification { position: absolute; right: 15px; bottom: 14px; left: 127px; display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #d8e9de; border-radius: 10px; background: #fff; box-shadow: 0 8px 30px #211a3b1c; animation: nx-preview-panel-in .3s ease-out both; }
.nx-preview__notification > span { display: grid; place-items: center; width: 29px; height: 29px; flex-shrink: 0; background: #e4f5eb; border-radius: 50%; color: #4d9a6e; font-size: 12px; }
.nx-preview__notification strong, .nx-preview__notification small { display: block; }
.nx-preview__notification strong { font-size: 10px; }
.nx-preview__notification small { color: #9d90aa; font-size: 8px; }
.nx-preview__notification button { display: flex; align-items: center; gap: 5px; margin-left: auto; border: 0; padding: 6px 0; background: none; color: #7451cb; font-size: 8px; }
@keyframes nx-preview-chart-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nx-preview-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) {
    .public-hero--product .public-hero__grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 28px; }
    .public-hero--product h1 { font-size: 3.2rem; }
    .nx-preview__eyebrow { display: none; }
    .nx-preview__controls { justify-content: flex-end; }
    .nx-preview__app { grid-template-columns: 91px minmax(0, 1fr); }
    .nx-preview__logo { width: 70px; }
    .nx-preview__sidebar button { gap: 6px; font-size: 9px; padding-inline: 5px; }
    .nx-preview__panel { padding: 13px; }
    .nx-preview__notification { left: 105px; }
}
@media (max-width: 900px) {
    .public-hero--product .public-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 35px; }
    .public-hero--product .public-hero__copy { text-align: center; max-width: 650px; margin-inline: auto; }
    .public-hero--product h1 { font-size: clamp(2.8rem, 6.6vw, 3.8rem); }
    .public-hero--product .public-actions, .public-hero--product .public-trust-note { justify-content: center; }
    .nx-preview { width: min(100%, 680px); margin-inline: auto; }
    .nx-preview__eyebrow { display: block; }
    .nx-preview__controls { justify-content: space-between; }
    .nx-preview__app { grid-template-columns: 112px minmax(0, 1fr); }
    .nx-preview__logo { width: 85px; }
    .nx-preview__panel { padding: 17px; }
    .nx-preview__metric > strong { font-size: 20px; }
    .nx-preview__notification { left: 127px; }
}
@media (max-width: 600px) {
    .public-hero--product { padding-top: 45px; padding-bottom: 60px; }
    .public-hero--product h1 { font-size: clamp(2.5rem, 10vw, 3.2rem); }
    .public-hero--product .public-lead { font-size: 1rem; }
    .public-hero--product .public-trust-note { font-size: .74rem; }
    .nx-preview__eyebrow { font-size: 7px; letter-spacing: .08em; max-width: 100px; }
    .nx-preview__tabs button { min-height: 35px; font-size: 10px; padding-inline: 10px; }
    .nx-preview__chrome { gap: 8px; padding-inline: 10px; font-size: 7px; }
    .nx-preview__app { grid-template-columns: 39px minmax(0, 1fr); }
    .nx-preview__sidebar { padding: 16px 5px 10px; }
    .nx-preview__logo { width: 23px; height: 23px; margin-bottom: 18px; }
    .nx-preview__workspace, .nx-preview__sidebar button > span, .nx-preview__sidebar-note { display: none; }
    .nx-preview__sidebar button { justify-content: center; min-height: 34px; padding: 5px; margin-bottom: 8px; font-size: 10px; }
    .nx-preview__topbar { padding-inline: 11px; height: 35px; }
    .nx-preview__panel { padding: 12px 10px; min-height: 390px; }
    .nx-preview__heading { margin-bottom: 12px; }
    .nx-preview__heading h2 { font-size: 17px; }
    .nx-preview__heading > div > span { font-size: 6px; }
    .nx-preview__metrics { gap: 5px; grid-template-columns: 1fr 1fr .85fr; }
    .nx-preview__metric { padding: 10px 7px; }
    .nx-preview__metric > span { font-size: 6px; }
    .nx-preview__metric > span i { display: none; }
    .nx-preview__metric > strong { font-size: 15px; }
    .nx-preview__metric small { font-size: 6px; }
    .nx-preview__metric em { padding: 2px 3px; font-size: 6px; }
    .nx-preview__chart svg { height: 105px; }
    .nx-preview__chart { margin-top: 10px; padding-inline: 9px; }
    .nx-preview__attention { padding: 9px 7px; gap: 6px; }
    .nx-preview__attention > div > span { font-size: 6px; }
    .nx-preview__attention strong { font-size: 8px; }
    .nx-preview__app-footer { min-height: 31px; padding-inline: 10px; }
    .nx-preview__app-footer > span { font-size: 6px; }
    .nx-preview__caption { font-size: 9px; }
    .nx-preview__pos { grid-template-columns: .8fr 1fr; gap: 6px; }
    .nx-preview__products, .nx-preview__cart { padding: 9px 7px; }
    .nx-preview__product { gap: 5px; }
    .nx-preview__product-icon { display: none; }
    .nx-preview__product > b { width: 100%; font-size: 8px; }
    .nx-preview__product strong, .nx-preview__cart-line strong { font-size: 7px; }
    .nx-preview__pos-hint { font-size: 7px; }
    .nx-preview__pos-hint > i { display: none; }
    .nx-preview__cart-title { font-size: 8px; }
    .nx-preview__cart-title > span { font-size: 6px; }
    .nx-preview__total strong { font-size: 17px; }
    .nx-preview__charge { font-size: 8px !important; padding-inline: 7px; }
    .nx-preview__table th, .nx-preview__table td { padding-inline: 6px; }
    .nx-preview__table td strong { font-size: 7px; }
    .nx-preview__table td { font-size: 7px; }
    .nx-preview__status { font-size: 6px; padding-inline: 4px; }
    .nx-preview__stock-summary { gap: 7px; padding: 10px; }
    .nx-preview__stock-summary div > span { font-size: 7px; }
    .nx-preview__notification { left: 48px; right: 9px; bottom: 9px; flex-wrap: wrap; gap: 7px; padding: 10px; }
    .nx-preview__notification button { margin-left: 36px; }
    .nx-preview__notification strong { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .nx-preview *, .nx-preview *::before, .nx-preview *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 360px) {
    .nx-preview__metric { padding-inline: 5px; }
    .nx-preview__metric > strong { font-size: 13px; }
}
