/* Vendsmith Cloud website: the palette (start.mjs brand, the client's own colours) and the page CSS.
   Linked after the kit's sheets; the server allows no inline <style>. */
:root {
  --p-bg: #ffffff; --p-surface: #f2f6f8; --p-ink: #10242f; --p-muted: #626f78;
  --p-accent: #086a61; --p-accent-ink: #ffffff; --p-action: #086a61; --p-action-ink: #ffffff;
  --p-inv-bg: #10242f; --p-inv-surface: #1e313c; --p-inv-ink: #ffffff; --p-inv-muted: #9ca4aa;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #10242f; --p-inv-action: #ffffff; --p-inv-action-ink: #10242f;
  --font-display: "Gabarito", system-ui, sans-serif; --font-text: "Figtree", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400; --display-tracking: -0.03em; --display-tracking-xl: -0.04em; --ly-scale: 0.98;
}

/* the client asked for narrower side margins: the content runs wider than the kit's 1280 */
@media (min-width: 1024px) { :root { --gut: 64px; --container: 1680px; } }

/* the nav: the client's logo as a picture, and the language choice */
.nav__logo img { display: block; height: 24px; width: auto; }
@media (max-width: 479px) { .nav__logo img { height: 20px; } }
/* under 480 the bar holds the logo and the menu; the hero's own button stands right under it */
@media (max-width: 479px) { .nav:not(.is-open) .nav__actions { display: none; } .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; } }
.vs-lang { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.vs-lang label { font: 500 var(--t-small)/1.2 var(--font-text); color: var(--muted); }
/* a narrow desktop bar: a narrower select */
@media (min-width: 1024px) and (max-width: 1199px) {
  .vs-lang .lang { max-width: 100px; padding-inline: var(--s-2); } .nav__actions { gap: var(--s-2); } .nav__actions .btn { padding-inline: var(--s-4); }
}
@media (max-width: 1023px) { .nav.is-open .vs-lang { justify-content: space-between; } .lang { min-height: 44px; } }
.lang { height: var(--btn-h); max-width: 132px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-btn);
        background: transparent; color: var(--ink); font: 500 var(--t-small)/1 var(--font-text); cursor: pointer; }
.lang:hover { border-color: var(--line-strong); }
html[lang="zh-CN"] :is(h1, h2, h3), html[lang="hi"] :is(h1, h2, h3) { letter-spacing: 0; }
html[lang="zh-CN"] h1, html[lang="hi"] h1 { line-height: 1.2; }

/* the hero (collage): the lit ground of the art under the effect, the one result card */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.ly-piece--main .ui-win__main { padding-right: var(--ly-cut-room); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

.vs-note { padding: 14px 16px; border-radius: 12px; background: #fff; color: #16181a; font: 400 13px/1.35 var(--font-text);
           box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); }
.vs-note__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; font-size: 14px; }
.vs-note__head b { font-weight: 600; }
.vs-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
.vs-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e2f1ee; color: #086a61; font-style: normal; font-size: 12px; font-weight: 700; }
.vs-note__line i.warn { background: #fdf0dc; color: #8a5300; }
.vs-note__line b { font-weight: 500; color: #16181a; }
.vs-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #e2f1ee; color: #075a52; font: 500 12px/1 var(--font-text); white-space: nowrap; }
.vs-chip--alert { background: #fdf0dc; color: #8a5300; }
.vs-chip--off { background: #eceff1; color: #4a5660; }
/* the hero's window is the console as it is: white, on the lit ground */
.hero__art .ui { --fx-bg: #ffffff; --fx-surface: #f2f6f8; --fx-ink: #10242f; --fx-muted: #5a6770; --fx-accent: #086a61; --fx-accent-ink: #ffffff; }

/* the close: the name hand-set for its nine letters */
.close__word { font-size: clamp(64px, 13vw, 196px); }
@media (max-width: 639px) { .close__word { font-size: clamp(48px, 17vw, 88px); } }
.vs-last { max-width: 400px; margin-top: var(--s-4); }
.vs-last .vs-stock__row { grid-template-columns: 28px minmax(0, 1fr) auto auto; }

/* the console in one frame (sections-library.md, app-frame) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* the open pane: one machine's shelves, as the console's stock page draws them */
.vs-machine { padding: 0; }
.vs-machine > .ui-head { padding: 12px 16px; border-bottom: 1px solid var(--u-line); }
.vs-shelves { display: grid; gap: 8px; padding: 16px; }
.vs-shelf { display: grid; grid-template-columns: 20px repeat(10, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.vs-shelf__no { align-self: center; font: 500 11px/1 var(--font-mono); color: var(--u-muted); }
.vs-slot { display: grid; gap: 3px; padding: 6px 5px 5px; border-radius: 6px; background: var(--u-fill); box-shadow: inset 0 0 0 1px var(--u-line); min-width: 0; }
.vs-slot__no { font: 500 10px/1 var(--font-mono); color: var(--u-muted); }
.vs-slot__name { font: 500 11px/1.2 var(--font-text); color: var(--u-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-slot__price { font: 400 10.5px/1 var(--font-mono); color: var(--u-text-2); font-variant-numeric: tabular-nums; }
.vs-slot__bar { height: 3px; border-radius: 2px; background: var(--u-fill-3); overflow: hidden; }
.vs-slot__bar i { display: block; height: 100%; width: var(--fill, 100%); border-radius: 2px; background: var(--u-accent); }
.vs-slot__qty { font: 400 10px/1 var(--font-mono); color: var(--u-muted); font-variant-numeric: tabular-nums; }
.vs-slot[data-level="low"] { background: #fff8ec; box-shadow: inset 0 0 0 1px #f0d9ad; }
.vs-slot[data-level="low"] .vs-slot__bar i { background: #c27a00; }
.vs-slot[data-level="low"] .vs-slot__qty { color: #8a5300; }
.vs-slot[data-level="out"] { background: #fdf1ef; box-shadow: inset 0 0 0 1px #f0c4bd; }
.vs-slot[data-level="out"] .vs-slot__qty { color: #a3271b; }
.vs-slot.is-on { box-shadow: inset 0 0 0 2px var(--u-accent); }
@media (max-width: 1279px) { .vs-slot__name { font-size: 10.5px; } }
@media (max-width: 639px) {
  .vs-shelf { grid-template-columns: 16px repeat(5, minmax(0, 1fr)); }
  .vs-slot:nth-of-type(n+6) { display: none; }
}

/* a stock list (a features card and two menu pictures) */
.vs-stock { padding: 0; font: 400 13px/1.3 var(--font-text); }
.vs-stock > .ui-head { padding: 12px 16px; border-bottom: 1px solid var(--u-line); }
.vs-stock__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--u-line); color: var(--u-text-2); }
.vs-stock__row:first-child, .vs-stock > .ui-head + .vs-stock__row { border-top: 0; }
.vs-stock__row b { font-weight: 500; color: var(--u-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-no { font: 500 11px/1 var(--font-mono); color: var(--u-muted); }
.vs-price { font: 400 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.vs-level { min-width: 44px; text-align: right; font: 500 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vs-level[data-level="low"] { color: #8a5300; }
.vs-level[data-level="out"] { color: #a3271b; }
.menu-card .vs-stock { width: 340px; }
.menu-card .ui-notify { width: 340px; }

/* the features' panels, and the three figures of the reports section */
#features .panel { --p-h: 300px; }
@media (max-width: 639px) {
  #features .panel { --p-h: 120px; }
  #features .vs-stock__row:nth-of-type(n+4), #features .ui-note:nth-of-type(n+3), #features .ui-tg:nth-of-type(n+3) { display: none; }
}
.vs-figures { display: grid; gap: var(--s-4); }
.vs-figures .stat { display: grid; gap: var(--s-2); align-content: start; }
.vs-figures .t-stat { font-size: clamp(26px, 1vw + 22px, 36px); }
@media (max-width: 639px) { .vs-figures .t-stat { font-size: 26px; } }

/* a phone's first screen: the words, the buttons and the window (the languages are named again under #reports) */
@media (max-width: 639px) { .hero__proof { display: none; } }
/* an upright tablet (820x1180): the features' panels take the height the screen gives */
@media (min-width: 640px) and (max-width: 1023px) and (min-height: 1100px) { #features .panel { --p-h: 520px; } }
/* a tablet: the questions' heading beside its window, so the section stays one screen */
@media (min-width: 640px) and (max-width: 1023px) {
  .vs-faq-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); align-items: start; }
  .vs-faq-head > .vs-last { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .vs-faq-head > :not(.vs-last) { grid-column: 1; }
}/* the last-report window: three machines beside the questions, the whole list on a phone's second screen */
@media (min-width: 640px) { .vs-last .vs-stock__row:nth-of-type(n+5) { display: none; } }
/* a phone: the features' heading without its second sentence, so each pair of cards holds one screen */
@media (max-width: 639px) { #features h2 .muted { display: none; } }/* a tablet: the questions' rows a step closer, so five of them hold one screen at 768x1024 */
@media (min-width: 640px) and (max-width: 1023px) { #questions .faq > .faq__item { padding-block: var(--s-4); } #questions .faq > .faq__item:first-child { padding-top: 0; } }/* a phone: the exported files take the second screen of #reports */
@media (max-width: 639px) { #reports .frame--split { min-height: 520px; } }/* a phone: the questions take two screens, so their rows get the air the second one leaves */
@media (max-width: 639px) {
  #questions .faq > .faq__item { padding-block: var(--s-6); }
  #questions .faq > .faq__item:first-child { padding-top: 0; }
}