/* The store home (app/page.tsx). The window fragments come from the kit's layout/demo.css, copied as printed;
   the page's own rules follow it. */
/*
  taste-skill layout demo.css - only for the hero demo pages in this folder (hero-*.html): the small
  pieces of product UI the demos draw by hand. A real page pastes the client's screens or the kit's
  fragments (assets/ui) into the same slots instead; nothing here is part of the system.
*/
.d-win { background: #fff; color: #16181a; border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text);
         box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 24px 60px -28px rgb(0 0 0 / .45); text-align: left; }
.d-win--dark { background: #17191c; color: #eceef0; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 70px -30px rgb(0 0 0 / .8); }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; color: #5d6268; }
.d-win--dark .d-win__bar { border-color: rgb(255 255 255 / .07); color: #9aa0a6; }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe2; }
.d-win--dark .d-win__dots i { background: #3a3e43; }
.d-win__body { display: grid; grid-template-columns: 160px 1fr; min-height: 420px; }
.d-side { padding: 14px 10px; border-right: 1px solid rgb(0 0 0 / .07); display: grid; align-content: start; gap: 2px; font-size: 13px; color: #4d5257; }
.d-win--dark .d-side { border-color: rgb(255 255 255 / .07); color: #aeb3b8; }
.d-side b { font-weight: 500; color: #16181a; } .d-win--dark .d-side b { color: #eceef0; }
.d-side > span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; }
.d-side > span.is-on { background: rgb(0 0 0 / .05); color: #16181a; font-weight: 500; }
.d-win--dark .d-side > span.is-on { background: rgb(255 255 255 / .07); color: #fff; }
.d-side > span i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .3; flex: none; }
.d-side .d-side__label { font-size: 13px; color: #8a8f94; height: 26px; margin-top: 8px; }
.d-main { padding: 16px 18px; display: grid; align-content: start; gap: 12px; min-width: 0; }
.d-main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-main__head h4 { font: 600 16px/1.2 var(--font-text); letter-spacing: -0.01em; margin: 0; color: inherit; }
.d-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 7px; background: #16181a; color: #fff; font-size: 13px; font-weight: 500; }
.d-btn--ghost { background: rgb(0 0 0 / .05); color: #16181a; }
.d-tabs { display: flex; gap: 4px; font-size: 13px; } .d-tabs span { padding: 4px 10px; border-radius: 99px; color: #6b7076; } .d-tabs span.is-on { background: rgb(0 0 0 / .06); color: #16181a; font-weight: 500; }
.d-rows { display: grid; border-top: 1px solid rgb(0 0 0 / .07); }
.d-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 56px 96px 84px; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; }
.d-row img, .d-row .d-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #eef0ee; }
.d-row b { display: block; font-weight: 500; color: #16181a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row small { color: #7b8086; font-size: 13px; }
.d-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.d-row .when { color: #7b8086; font-size: 13px; text-align: right; white-space: nowrap; }
@media (max-width: 639px) { .d-win__body { grid-template-columns: 1fr; } .d-side { display: none; } .d-row { grid-template-columns: 36px minmax(0, 1fr) 96px 84px; } .d-row .num { display: none; } }
.d-chip { justify-self: end; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #e7f4ec; color: #17673f; white-space: nowrap; }
.d-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-chip--low { background: #fdf0dc; color: #8a5300; }
.d-chip--out { background: #fbe6e3; color: #a3271b; }
.d-card { background: #fff; color: #16181a; border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text); text-align: left;
          box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 18px 44px -20px rgb(0 0 0 / .45); }
.d-card h5 { margin: 0 0 4px; font: 600 14px/1.3 var(--font-text); }
.d-card p { margin: 0; color: #5d6268; font-size: 13px; }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-bar { height: 6px; border-radius: 99px; background: #eceeed; overflow: hidden; margin-top: 10px; }
.d-bar > i { display: block; height: 100%; width: var(--v, 40%); border-radius: inherit; background: var(--d-accent, #1f8a5b); }
.d-spark { display: block; width: 100%; height: 56px; margin-top: 8px; }
.d-stat { font: 600 28px/1 var(--font-text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* chat */
.d-chat { display: grid; gap: 10px; align-content: start; padding: 18px; font-size: 14px; }
.d-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: rgb(255 255 255 / .07); line-height: 1.45; }
.d-msg--me { justify-self: end; background: #f2f2f0; color: #121314; border-bottom-right-radius: 6px; }
.d-msg--bot { border-bottom-left-radius: 6px; }
.d-msg small { display: block; margin-top: 4px; font-size: 13px; opacity: .6; }
.d-tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9aa0a6; }
.d-tool::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.d-input { margin: auto 18px 18px; height: 44px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .1); display: flex; align-items: center; padding: 0 14px; color: #7d8389; font-size: 13.5px; }

/* ---- page CSS: the hero's lit ground, on the site's paper and teal ---- */
.hero--collage .hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--p-surface) 70%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--p-surface) 70%, var(--p-ink) 18%), transparent 70%),
    var(--p-surface); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; box-shadow: 0 0 0 1px rgb(6 82 92 / .1); }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
.d-note__line:first-of-type { border-top: 0; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e7f4ec; color: #17673f; font-style: normal; font-size: 13px; font-weight: 500; }
.d-note__line i.warn { background: #fdf0dc; color: #8a5300; }
.d-note__line b { font-weight: 500; color: #16181a; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
/* the triage rows: the title and its flag, then the final triage; the frame cuts empty margin, not the chips */
.ly-piece--main .d-row.mk-row { grid-template-columns: minmax(0, 1fr) 120px; }
.ly-piece--main .d-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; } }

/* ---- the kit section: the text and its file list on span-5, a page of the workbook on span-7 ---- */
.mk-kit { align-items: start; }
.mk-kit__text { display: grid; gap: var(--s-5); align-content: start; }
.mk-kit__text .t-lead { margin: 0; }
.mk-files { list-style: none; margin: 0; padding: 0; display: grid; }
.mk-files li { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; border-bottom: 1px solid var(--line); font-size: var(--t-body); }
.mk-files b { font-weight: 500; }
.mk-kit__shot { display: block; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.mk-kit__shot img { display: block; width: 100%; height: auto; }
@media (max-width: 1023px) { .mk-kit > * { grid-column: 1 / -1; } }

/* ---- the sign-up form in the close: one field and its button on one row from 640 ---- */
.signup { max-width: 628px; margin-top: var(--s-6); grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.signup > .field { grid-column: 1; }
.signup > .btn-row { grid-column: 2; margin: 0; }
.signup > p { grid-column: 1 / -1; margin: 0; }
.signup__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 639px) { .signup { grid-template-columns: minmax(0, 1fr); } .signup > .btn-row { grid-column: 1; } .signup .btn { width: 100%; } }

/* ---- fixes from the checker ---- */
/* the window's titles wrap rather than end in an ellipsis; fewer rows where the frame is shorter, so the frame
   cuts empty window, never a line of text */
.ly-piece--main .mk-row b { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 1279px) {
  .ly-piece--main .d-win__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ly-piece--main .d-side { display: none; }
  .ly-piece--main .mk-row:nth-of-type(n+4) { display: none; }
}
@media (max-width: 639px) { .ly-piece--main .mk-row:nth-of-type(n+2) { display: none; } .ly-piece--main .d-tabs { display: none; } }
/* the kit section stays one screen: the file list in two columns at the tablet; on a phone the list
   drops its file types and the lead, which the heading and the screenshot already carry */
@media (min-width: 640px) and (max-width: 1023px) { .mk-files { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); } }
@media (max-width: 639px) { .mk-kit__text .t-lead, .mk-files .muted { display: none; } .mk-kit__text { gap: var(--s-4); } }
/* the close and its link columns run past one phone screen: two screens there */
@media (max-width: 639px) { html body footer.closing { min-height: calc(2 * 100lvh); } .footer__legal-links { display: block; } }
/* at 320 the name, the main button and the menu do not fit one bar: the button waits in the hero */
@media (max-width: 359px) { .nav.nav--centre:not(.is-open) .nav__actions { display: none; } }
