/* tasteskill app sheet: achromatic-ledger, seed 2111159647, palette and type kept from the brand (brand/BRAND.md).
   The move: no colour in the chrome. Ink does the work; the logo's own colours appear only as the pipeline's pixels
   (one square per shop, coloured by stage), and orange is the single signal for what is late or waiting on us.
   A shop's page and the sign-in are brand pages, not work screens: white ground, larger type, softer corners. */
@font-face { font-family: "RubikV"; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "RubikV"; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-hebrew.woff2) format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "RubikV"; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "RubikV"; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #F4F5FA; --surface: #FFFFFF; --active: #E7E9F2; --border: #E1E3EC; --rule: #EDEEF4; --control: #C4C7D8;
  --text: #181B2C; --muted: #5B5E72; --primary: #181B2C; --primary-hover: #2A2E47; --on-primary: #FFFFFF;
  --signal: #FF9523; --signal-bg: #FFF1DF; --signal-ink: #6B3A00; --focus: #3A6CF0; --veil: rgb(24 27 44 / 0.42);
  --st-prospect: #1CCFE8; --st-demo: #3A6CF0; --st-shown: #8E36F0; --st-client: #F62099; --st-none: #C4C7D8;
  --font: "RubikV", ui-sans-serif, system-ui, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-card: 8px; --r-control: 6px; --r-chip: 4px; --r-soft: 14px;
  --gap: 12px; --pad: 16px; --gutter: 16px; --control-h: 44px; --bar: 48px; --tabs: 56px;
  --fs-title: 1.5rem; --fs-section: 1rem; --fs-kpi: 1.5rem; --fs-body: 0.9375rem; --fs-small: 0.8125rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 60rem) { :root { --gap: 16px; --pad: 20px; --gutter: 32px; } }
@media (hover: hover) and (pointer: fine) { :root { --control-h: 36px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--fs-body)/1.5 var(--font); font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; text-align: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-chip); }
[hidden] { display: none !important; }

/* shell: a top bar and two tabs on a phone, a sidebar on the page ground on a wide screen */
.side { position: sticky; top: 0; z-index: 5; height: var(--bar); display: flex; align-items: center; gap: 16px; padding-inline: var(--gutter); background: var(--ground); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-weight: 500; }
.brand img { height: 18px; width: auto; display: block; }
.side__me { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.side__me .act { font-size: inherit; }
.nav { position: fixed; inset: auto 0 0 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: 0.75rem; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
main { padding: 20px var(--gutter) calc(var(--tabs) + env(safe-area-inset-bottom) + 32px); outline: 0; display: grid; gap: var(--gap); align-content: start; }
main > * { min-width: 0; }
@media (min-width: 60rem) {
  body:not(.plain) { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
  body:not(.plain) .side { height: 100dvh; flex-direction: column; align-items: stretch; gap: 28px; padding: 28px 12px 20px; border-bottom: 0; }
  body:not(.plain) .brand { padding-inline: 12px; }
  body:not(.plain) .nav { position: static; display: grid; grid-template-columns: 1fr; gap: 2px; height: auto; padding: 0; background: none; border: 0; }
  body:not(.plain) .nav a { flex-direction: row; justify-content: flex-start; gap: 10px; height: 32px; padding-inline: 12px; border-radius: var(--r-control); font-size: 0.875rem; }
  body:not(.plain) .nav a[aria-current="page"] { background: var(--active); font-weight: 500; }
  body:not(.plain) .side__me { margin: auto 0 0; padding-inline: 12px; justify-content: space-between; }
  body:not(.plain) main { max-width: 90rem; padding: 32px var(--gutter) 64px; }
}

/* title row */
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.head h1 { font-size: var(--fs-title); line-height: 1.25; font-weight: 700; overflow-wrap: break-word; min-width: 0; }
.head h1 .px { margin-inline-end: 10px; vertical-align: 0.05em; }
.finding { margin-top: 2px; color: var(--muted); }
.finding b { color: var(--text); font-weight: 500; }
.sub { color: var(--muted); font-size: var(--fs-small); }
.back { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: -8px; justify-self: start; color: var(--muted); font-size: var(--fs-small); text-decoration: none; }
.quiet { color: var(--muted); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: var(--control-h); padding: 0 14px; border-radius: var(--r-control); font-weight: 500; white-space: nowrap; text-decoration: none; background: var(--active); transition: background-color 140ms ease, transform 140ms var(--ease-out); }
.btn--ink { background: var(--primary); color: var(--on-primary); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: default; }
.act { display: inline-flex; align-items: center; min-height: var(--control-h); font-weight: 500; white-space: nowrap; text-decoration: none; }
.act--quiet { color: var(--muted); font-weight: 400; }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stage { min-height: var(--control-h); padding: 0 34px 0 12px; border: 1px solid var(--control); border-radius: var(--r-control); font-weight: 500; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23181B2C' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 11px no-repeat; appearance: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--border); } .btn--ink:hover { background: var(--primary-hover); }
  .act:hover, a.row:hover .row__main p:first-child { text-decoration: underline; text-underline-offset: 0.2em; }
}

/* panels */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding-inline: var(--pad); }
.card__head h2 { font-size: var(--fs-section); font-weight: 600; }
.card__head h2 span { color: var(--muted); font-weight: 400; margin-inline-start: 8px; }
.card__head .act { min-height: 32px; }
.cols { display: grid; gap: var(--gap); align-items: start; }
.stack { display: grid; gap: var(--gap); min-width: 0; }
@media (min-width: 60rem) { .cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* one container split by hairlines: label over figure */
.sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sum > div { padding: 14px var(--pad); }
.sum > div + div { border-inline-start: 1px solid var(--rule); }
.sum dt, .pipe dt { color: var(--muted); font-size: var(--fs-small); }
.sum dd, .pipe dd { font-size: var(--fs-kpi); font-weight: 600; line-height: 1.3; }
.sum .zero, .pipe .zero { color: var(--muted); font-weight: 400; }
.sum .sub { display: block; font-weight: 400; }

/* the pipeline: one pixel per shop, in the logo's colours */
.px { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 2px; background: var(--st-none); }
.px--prospect { background: var(--st-prospect); } .px--demo { background: var(--st-demo); } .px--shown { background: var(--st-shown); } .px--client { background: var(--st-client); }
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pipe > div { padding: 14px var(--pad) 16px; display: grid; gap: 2px; align-content: start; }
.pipe > div + div { border-inline-start: 1px solid var(--rule); }
.pipe .pxs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; min-height: 12px; }
.pipe__foot { padding: 10px var(--pad); border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 30rem) { .pipe > div, .sum > div { padding-inline: 12px; } }

/* rows */
.row { display: flex; align-items: flex-start; gap: 12px; padding: 12px var(--pad); border-top: 1px solid var(--rule); }
.row__main { flex: 1; min-width: 0; text-align: left; }
[dir="rtl"] .row__main { text-align: right; }
.row__main p:first-child { overflow-wrap: break-word; }
.row__main .sub { margin-top: 1px; }
.row__main .pill { margin-top: 6px; margin-inline-end: 6px; }
.row__end { flex: none; text-align: end; font-size: var(--fs-small); color: var(--muted); padding-top: 2px; }
.row__end b { display: block; font-size: var(--fs-body); font-weight: 600; color: var(--text); }
.row > .px { margin-top: 5px; }
a.row, button.row { width: 100%; text-decoration: none; }
.late { color: var(--text); font-weight: 500; }
.late::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: var(--signal); vertical-align: 0.08em; }
.tick { flex: none; width: 44px; height: 44px; margin: -11px; display: grid; place-items: center; }
.tick::before { content: ""; width: 20px; height: 20px; border: 1.5px solid var(--muted); border-radius: 50%; transition: background-color 140ms ease, border-color 140ms ease; }
.tick[aria-pressed="true"]::before { background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100%; border-color: var(--primary); }
.is-done .row__main p:first-child { color: var(--muted); text-decoration: line-through; }
.pill { display: inline-block; flex: none; white-space: nowrap; padding: 1px 7px; border-radius: var(--r-chip); font-size: 0.75rem; line-height: 1.5; font-weight: 500; background: var(--active); color: var(--muted); }
.pill--signal { background: var(--signal-bg); color: var(--signal-ink); }
.pill--live { background: var(--primary); color: var(--on-primary); }
.empty { margin: 0 var(--pad) var(--pad); padding: 10px 12px; border: 1px dashed var(--control); border-radius: var(--r-control); color: var(--muted); font-size: var(--fs-small); }
.more > summary { display: flex; align-items: center; min-height: 40px; padding-inline: var(--pad); border-top: 1px solid var(--rule); cursor: pointer; color: var(--muted); font-size: var(--fs-small); list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; margin-inline-start: 8px; }
.more[open] > summary::after { content: "−"; }
.group { display: flex; align-items: center; gap: 8px; padding: 10px var(--pad) 8px; border-top: 1px solid var(--border); font-size: var(--fs-small); color: var(--muted); }
.group b { color: var(--text); font-weight: 600; }
.card > .group:first-child { border-top: 0; }

.row--small { padding-block: 9px; }
.row--small .row__main p:first-child { font-size: 0.875rem; }
.row--small .act { min-height: 24px; align-self: center; }
.row__tap { display: block; width: 100%; }
.is-off .row__main p:first-child { color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: var(--fs-small); }
.links a { text-underline-offset: 0.2em; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--r-control); background: var(--surface); color: var(--muted); white-space: nowrap; }
.chip span { font-size: var(--fs-small); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.more--card > summary { border-top: 0; min-height: 48px; font-size: var(--fs-body); font-weight: 500; color: var(--text); }

/* key-value lines inside a card */
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; padding: 6px var(--pad); border-top: 1px solid var(--rule); }
.kv dt { color: var(--muted); flex: none; }
.kv dd { text-align: end; font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.kv .left dd { font-weight: 700; }
.kv .act { min-height: 28px; }
.foot { padding: 8px var(--pad) 10px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.foot .act { min-height: 32px; }
.foot .sub { flex-basis: 100%; }
p.foot { display: block; }
.note-form { display: flex; gap: 8px; align-items: flex-end; padding: 0 var(--pad) var(--pad); }
.note-form textarea { flex: 1; min-width: 0; }
code { font: 0.875em var(--mono); background: var(--ground); padding: 1px 5px; border-radius: var(--r-chip); overflow-wrap: anywhere; }
.doc { padding: 0 var(--pad) 16px; font-size: 0.875rem; overflow-wrap: break-word; }
.doc h3 { font-size: 1rem; margin-top: 12px; }
.doc h4 { font-size: 0.875rem; margin-top: 14px; }
.doc p, .doc ul { margin-top: 8px; }
.doc ul { padding-inline-start: 20px; list-style: disc; }
.doc li + li { margin-top: 4px; }
.doc a { text-underline-offset: 0.2em; }

/* fields */
label.field { display: grid; gap: 8px; font-size: 0.875rem; font-weight: 500; }
label.field + label.field, label.field + .check, .check + label.field { margin-top: 16px; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="tel"], select.input, textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--control); border-radius: var(--r-control); background: var(--surface); font-size: 1rem; font-weight: 400; color: var(--text); }
::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; line-height: 1.5; display: block; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.hint { font-size: var(--fs-small); font-weight: 400; color: var(--muted); }
.error { margin-top: 12px; color: var(--signal-ink); background: var(--signal-bg); padding: 8px 12px; border-radius: var(--r-control); font-size: 0.875rem; }

/* the sheet: from the bottom on a phone, centred on a wide screen */
dialog { border: 0; padding: 0; color: inherit; background: var(--surface); width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; border-radius: var(--r-card) var(--r-card) 0 0; overflow: auto; overscroll-behavior: contain; box-shadow: 0 -8px 40px rgb(24 27 44 / 0.12); transition: opacity 200ms ease, transform 260ms var(--ease-out), overlay 260ms allow-discrete, display 260ms allow-discrete; }
dialog::backdrop { background: var(--veil); }
@starting-style { dialog[open] { opacity: 0; transform: translateY(24px); } }
dialog form { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
dialog h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 16px; }
.sheet__end { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.sheet__end .btn--ink { flex: 1; }
.sheet__end .act--quiet { margin-inline-end: auto; padding-inline: 4px; }
@media (min-width: 40rem) { dialog { width: 28rem; margin: auto; border-radius: var(--r-card); } }
.toast { position: fixed; z-index: 20; inset: auto var(--gutter) calc(var(--tabs) + env(safe-area-inset-bottom) + 12px); margin: 0 auto; max-width: 26rem; padding: 10px 14px; border-radius: var(--r-control); background: var(--primary); color: var(--on-primary); font-size: 0.875rem; }

.toast { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toast button { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; min-height: 28px; }

/* the calendar: a month of days, each with at most two marks */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 0 var(--pad) 8px; }
.cal__dow { text-align: center; font-size: 0.75rem; color: var(--muted); padding: 4px 0 6px; }
.cal__day { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 44px; border-radius: var(--r-control); }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--text); font-weight: 600; }
.cal__day[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.cal__marks { display: flex; gap: 3px; height: 5px; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--control); }
.dot--plan { background: var(--text); } .dot--late { background: var(--signal); } .dot--past { background: var(--control); }
.cal__day[aria-pressed="true"] .dot--plan { background: var(--on-primary); }
.cal__key { display: flex; align-items: center; gap: 6px; padding: 8px var(--pad) 12px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.75rem; }
.cal__key .dot:not(:first-child) { margin-inline-start: 10px; }
.cal__nav { min-height: 32px; min-width: 36px; padding: 0; font-size: 1.125rem; }
@media (hover: hover) and (pointer: fine) { .cal__day:hover:not([aria-pressed="true"]) { background: var(--ground); } }

/* loading: flat bars where the blocks will be */
.sk { background: var(--active); border-radius: var(--r-card); }
.sk--title { width: 9rem; height: 30px; border-radius: var(--r-chip); }
.sk--block { height: 132px; }

/* brand pages: the sign-in and a shop's own page (white, larger, softer) */
body.plain { background: var(--surface); }
body.plain .side { background: var(--surface); border-bottom: 0; height: 64px; }
body.plain .brand img { height: 24px; }
body.plain .brand span, body.plain .nav { display: none; }
body.plain main { max-width: 32rem; margin-inline: auto; gap: 20px; padding: 12px 20px 56px; }
body.plain input[type="text"], body.plain input[type="password"], body.plain textarea { border-radius: var(--r-soft); min-height: 56px; padding: 14px 16px; font-size: 1.0625rem; }
.hello { font-size: clamp(2.25rem, 9vw, 3rem); line-height: 1.2; font-weight: 800; overflow-wrap: break-word; min-width: 0; }
.lead { font-size: 1.125rem; line-height: 1.65; }
.btn--big { min-height: 60px; padding-inline: 28px; font-size: 1.1875rem; font-weight: 600; border-radius: var(--r-soft); width: 100%; }
.mark { width: 132px; height: auto; display: block; margin-top: 6vh; }
.door { display: grid; gap: 16px; }
.door form { display: grid; gap: 12px; }
.door .field + .field { margin-top: 0; }
.door .act { justify-self: start; }
.door input[dir="ltr"] { text-align: center; letter-spacing: 0.1em; font-weight: 600; font-size: 1.25rem; }
/* where he stands, in three steps drawn with the logo's pixels */
.steps { margin-block: 4px; border-top: 1px solid var(--rule); }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.steps li.now { color: var(--text); font-weight: 600; }
.steps i { flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--st-none); }
.steps li.done i { background: var(--primary); }
.steps li.now i { background: var(--signal); }
.shop h2 { font-size: 1.25rem; font-weight: 700; margin-top: 12px; }
.say { display: grid; gap: 10px; }
.say .btn { justify-self: start; min-width: 7.5rem; min-height: 48px; border-radius: var(--r-soft); }
.said { border-top: 1px solid var(--rule); }
.said .row { padding-inline: 0; border-top: 0; border-bottom: 1px solid var(--rule); }
.sign { margin-top: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .btn, .tick::before { transition: none; }
  dialog { transition: opacity 160ms ease; }
  @starting-style { dialog[open] { transform: none; } }
}
