/* ---- source/ui/blocks.css ---- */
/* The blocks every screen is built from. A screen arranges these; it does not
   invent its own. A new block is added here and shown on the blocks page. */

/* Scrollbars, wherever something scrolls. A panel that scrolls on a shorter
   screen should not grow a pale system bar down the middle of the window. */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }

*::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); background-clip: content-box; }

/* ---------------------------------------------------------------- labels */

.label {
  font: 400 var(--size-label) var(--font);
  letter-spacing: var(--track-label);
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* Numbers, sizes, file names. Tabular figures so a column of them does not
   jiggle when the digits change. */
.meta {
  font: 400 var(--size-meta) var(--font);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.title {
  font: 300 var(--size-title) var(--font);
  margin: 0;
}

/* A heading may stress a few of its words: heavier, what it says first; in the accent, the
   thing it is about -- "It's happening! The online editor is on its way…" (Andrzej, 1 October). */
.title b { font-weight: 600; }
.title em { font-style: normal; color: var(--accent); }

.head {
  font: 500 var(--size-head) var(--font);
}

.note {
  font: 400 var(--size-small) var(--font);
  line-height: 1.55;
  color: var(--ink-dim);
}

/* A line saying that something did not go through, in the colour of what warns. */
.note.is-error { color: var(--danger); }

/* A few words that lead a line, set off from what follows them: quieter, or in the accent --
   the sad news and the good news in the word of welcome. */
.note .is-faint { color: var(--ink-faint); }
.note .is-accent { color: var(--accent); font-weight: 500; }

/* --------------------------------------------------------------- buttons */

/* White with a fine outline; under the hand the outline leans to the accent. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-s);
  height: var(--button-h);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 400 var(--size-body) var(--font);
  padding: 0 15px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

.button:hover { border-color: var(--accent-line); background: var(--accent-mist); }

/* The one thing to do: the accent, flat, as the site's own buttons are -- the window opens over
   the site and should read as part of it (17 October: lit from above and glowing for a day,
   which looked like a template laid over the page). */
.button.is-main {
  background: var(--accent);
  border-color: transparent;
  color: var(--on-accent);
  font-weight: 500;
}

.button.is-main:hover { background: var(--accent-deep); }

/* What takes something in that the customer brought -- a key -- dark, so that it does not
   stand beside the ways to buy as one more of them. */
.button.is-dark { background: var(--ink); border-color: transparent; color: var(--on-accent); font-weight: 500; }
.button.is-dark:hover { background: var(--ink-raised); }

/* With a word and a mark, standing in a bar: no outline until the hand is on it. */
.button.is-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
}

.button.is-quiet:hover { background: var(--raised); color: var(--ink); }

.button.is-danger { border-color: var(--danger-line); color: var(--danger); font-weight: 500; }
.button.is-danger:hover { border-color: var(--danger); background: var(--danger-wash); }

.button.is-wide { width: 100%; padding: 0 10px; }

/* A way to something beside the thing to do here -- the empty template under the preview --
   on a card of its own like the field and the preview around it, in the accent, with the
   mark of what it does. */
.button.is-solid { color: var(--accent); font: 500 var(--size-small) var(--font); }
.button svg { width: 15px; height: 15px; flex: none; }

/* What cannot be used yet -- Download before the customer has put anything on the mockup, or
   while a save runs: grey, and no answer to the hand. Until 16 November a button turned off
   looked the same as one that worked (Andrzej: "wygląda jakby działał"). */
.button:disabled,
.button:disabled:hover { background: var(--raised); border-color: transparent; color: var(--ink-off); cursor: not-allowed; }

.icon-button {
  width: var(--button-h);
  height: var(--button-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius);
  color: var(--ink-soft);
  /* A little larger and a little heavier than the text beside them: at 16px regular the
     marks read as thin scratches next to a word (Andrzej, 21 September). */
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.icon-button:hover { background: var(--raised); color: var(--ink); }
.icon-button.is-small { width: 26px; height: 26px; font-size: 13px; flex: none; border-radius: var(--radius-s); }
/* Drawn marks rather than letters, all of one thin weight (1.2 on a 16 grid), so that the ones
   standing side by side read as one family (Andrzej, 30 September). */
.icon-button svg { width: 16px; height: 16px; flex: none; }
.icon-button.is-small svg { width: 14px; height: 14px; }

/* A small tool that is switched on: in the accent, the way a choice that is on is. */
.icon-button.is-on { background: var(--accent-wash); color: var(--accent); }

/* One of a pair with something beside it -- the dots beside Download -- so it wears the same
   card and outline as a button, and takes its size from the row it stands in. */
.icon-button.is-solid { background: var(--card); border-color: var(--line); color: var(--ink); flex: none; }
.icon-button.is-solid:hover { border-color: var(--accent-line); background: var(--accent-mist); }
/* Turned off, as a button is (above): the mark grey, the card and outline unmoved. */
.icon-button:disabled,
.icon-button:disabled:hover { background: transparent; color: var(--ink-off); cursor: not-allowed; }
.icon-button.is-solid:disabled,
.icon-button.is-solid:disabled:hover { background: var(--card); border-color: var(--line); }

/* ----------------------------------------------------------------- chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: 400 var(--size-small) var(--font);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.chip:hover { border-color: var(--line-strong); }

/* Picked: outlined in the accent, its words in it, and nothing more. Until 20 October also a
   tinted ground and a pale ring round it, which with the square and the tick inside made too
   much happen in one small box (Andrzej). */
.chip.is-on {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.chip.is-on:hover { border-color: var(--accent); }

/* A place of the mockup, as a chip: a small square at its start showing what lies there --
   the customer's file, or, while it waits for one, its number in dashes, the way a drop area
   is drawn -- its name, and a tick once the customer's file is on it. */
.chip__shot {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: var(--screen);
  overflow: hidden;
  font: 600 10px var(--font);
}

.chip__shot canvas { display: block; width: 100%; height: 100%; }
.chip.is-empty .chip__shot { border-style: dashed; border-color: var(--line-dashed); background: var(--screen); color: var(--ink-soft); }
.chip.is-empty.is-on .chip__shot { border-color: var(--accent-line); background: var(--card); color: var(--accent); }
.chip__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chip__done { flex: none; width: 14px; height: 14px; color: var(--done); }

/* Floating over the ground behind the mockup rather than standing in a row: a pill of frosted
   white, with a dot that says what it is about and, where it leads somewhere, the way there in
   a pill of its own -- "Watermark on download · Remove it →" (17 October). */
.chip.is-float {
  height: 38px;
  gap: 10px;
  padding: 0 6px 0 14px;
  border-radius: var(--round);
  background: var(--frost);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-float);
  color: var(--ink-soft);
}

.chip.is-float:disabled { padding-right: 14px; }
.chip.is-float::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--heads-up); }

.chip.is-float .is-accent {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--round);
  background: var(--accent-wash);
}

.chip.is-float:hover:not(:disabled) .is-accent { background: var(--accent-line); }

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.chip:not(.is-on) .dot { background: var(--line-strong); }

.chip .caret { color: var(--ink-dim); font-size: 9px; }

/* The words in a chip that lead somewhere -- "Remove →" in the one on the picture's corner,
   which says what a saved image carries (5 October). A chip that only says something stands
   still under the pointer. */
.chip .is-accent { color: var(--accent); font-weight: 500; }
.chip:disabled { cursor: default; }
.chip:disabled:hover { border-color: var(--line); }

/* A chip that is a list to choose from. */
select.chip {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
    linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

select.chip:hover { border-color: var(--line-strong); }

select.chip option { background: var(--card); color: var(--ink); }

/* Where the browser lets the list itself be drawn (Chrome and Edge from 2025), it opens as a
   card of the panel's own -- white, rounded, the picked row in the accent with its tick at the
   end -- rather than the system's grey list, which looked borrowed (Andrzej, 20 October). Other
   browsers keep their own list under the same closed field. */
@supports (appearance: base-select) {
  select.chip,
  select.chip::picker(select) { appearance: base-select; }

  select.chip { background-image: none; padding-right: 12px; }

  select.chip::picker-icon {
    content: "";
    width: 6px;
    height: 6px;
    margin: -3px 2px 0 auto;
    border-right: 1.5px solid var(--ink-faint);
    border-bottom: 1.5px solid var(--ink-faint);
    rotate: 45deg;
    transition: rotate 0.2s, margin 0.2s;
  }

  select.chip:open { border-color: var(--accent); }
  select.chip:open::picker-icon { rotate: 225deg; margin-top: 3px; }

  /* Down from the field, like any list, and up only where there is no room under it: the
     browser's own rule took whichever side had more room, so a list low in the panel opened
     over the rows above it. */
  select.chip::picker(select) {
    position-area: block-end span-inline-end;
    position-try-order: normal;
    position-try-fallbacks: flip-block;
    margin-top: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  select.chip option {
    display: flex;
    align-items: center;
    gap: var(--gap-s);
    min-height: 32px;
    padding: 0 10px;
    border-radius: var(--radius-s);
    font: 400 var(--size-small) var(--font);
    color: var(--ink);
    cursor: pointer;
  }

  select.chip option:hover,
  select.chip option:focus-visible { background: var(--raised); outline: none; }
  select.chip option:checked { color: var(--accent); font-weight: 500; }
  select.chip option::checkmark { order: 1; margin-left: auto; color: var(--accent); }
}

/* ------------------------------------------------------------------ tabs */

.tabs {
  display: flex;
  align-items: stretch;
  gap: var(--gap-l);
  border-bottom: 1px solid var(--line-soft);
}

.tab {
  display: flex;
  align-items: center;
  font: 400 var(--size-body) var(--font);
  color: var(--ink-dim);
  padding: 0 0 2px;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); border-bottom-color: var(--accent); }

/* ----------------------------------------------------------------- cards */

/* One mockup, wherever mockups are listed. */
.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.card:hover { border-color: var(--line-strong); }

.card .shot {
  aspect-ratio: var(--shot);
  background: var(--placeholder);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .shot .stand-in {
  font: 400 var(--size-meta) var(--font);
  color: var(--placeholder-ink);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card .badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--veil);
  color: var(--on-veil);
  font: 400 var(--size-meta) var(--font);
  padding: 3px 6px;
  border-radius: var(--radius-s);
}

.card .shot img,
.thumb .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .badge--second { top: auto; bottom: 7px; }

.card .caption { padding: 9px 10px 10px; }

.card .caption .name {
  display: block;
  font: 400 var(--size-small) var(--font);
  line-height: 1.3;
  min-height: 2.6em; /* two lines, so cards in a row end level */
}

.card .caption .meta { display: block; margin-top: 3px; }

/* A word in place of the cards spans the whole grid. */
.grid > .empty { grid-column: 1 / -1; }

/* As many cards as fit, never narrower than --card-min. A screen sets the
   minimum, not the number of columns, so the same grid works on any width. */
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min, 220px), 1fr));
}

/* ---------------------------------------------------------------- panels */

/* A box on a screen. */
.box {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-l);
  padding: 16px 17px;
}

/* A side panel, divided into sections. No background of its own: on a screen
   narrower than the window a panel with its own colour reads as a floating
   column. A line divides it, not a change of colour. */
.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Each section is closed by a line under it rather than opened by one over it, so the
   last one is closed too and its settings read as a section and not as a loose tail
   (Andrzej, 21 September). A section not shown draws no line, which is why the line
   belongs to the section itself. */
.panel .section { padding: 16px var(--pad-screen); border-bottom: 1px solid var(--line-soft); }
.panel .section > .label + * { margin-top: 12px; }

/* A section's name is its heading: small capitals, heavier than the names of the rows under
   it, and grey -- the panel reads as a few parts, and the rows are what is read (17 October;
   until then the names were dark). A step darker than a label from 20 October: in the faint
   grey the headings were the hardest thing in the panel to read. */
.panel .section > .label,
.panel .section > .section__head > .label,
.panel details.section > summary { font-weight: 600; color: var(--ink-dim); }

/* A section's name, as a line of its own, with what it counts at its far end. Until 28
   September it held the small tools for the customer's own file; they stand beside the Scale
   slider now. */
.section__head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: var(--gap-s); }

/* A section that folds away. Written as <details>, so it opens and closes on its own and
   answers the keyboard without a line of script. Its name is a bar across the whole panel,
   lit under the hand, so the whole of it is the way to open it. */
.panel details.section { padding-block: 0; }
.panel details.section[open] { padding-bottom: 16px; }

details.section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-s);
  cursor: pointer;
  list-style: none;
}

.panel details.section > summary { margin: 0 calc(-1 * var(--pad-screen)); padding: 14px var(--pad-screen); }
.panel details.section > summary.label + * { margin-top: 0; }

details.section > summary::-webkit-details-marker { display: none; }
details.section > summary:hover { background: var(--mist); }

/* The fold's mark is quieter than the name it stands beside: it says what can be done with
   the heading, not what the heading is. It points on while the section is shut, and down
   into it once open. */
details.section > summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 2px 4px 2px 0;
  border-right: 1.5px solid var(--ink-faint);
  border-bottom: 1.5px solid var(--ink-faint);
  rotate: -45deg;
  transition: rotate 0.2s;
}

details.section[open] > summary::after { rotate: 45deg; }
details.section > summary + * { margin-top: 0; }

/* A panel whose sections are cards: each a white card of its own on the grey of the screen,
   named by a heading that reads as one rather than by a small grey label (20 October). On a
   mockup with a few parts to set -- a cap, a label, its colours, the scene -- the sections
   divided only by hairlines ran into one even list in which nothing stood out (Andrzej:
   "nic nie widać"). The panel itself sets how far the cards stand off its edges. */
.panel.is-grouped { background: var(--screen); }

.panel.is-grouped .section {
  padding: 14px;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--panel);
  box-shadow: var(--shadow-xs);
}

.panel.is-grouped .section + .section { margin-top: 8px; }
.panel.is-grouped details.section { padding-block: 0; }
.panel.is-grouped details.section[open] { padding-bottom: 14px; }
.panel.is-grouped details.section > summary { margin: 0 -14px; padding: 12px 14px; border-radius: var(--radius-l); }
.panel.is-grouped details.section[open] > summary { border-radius: var(--radius-l) var(--radius-l) 0 0; }

.panel.is-grouped .section > .label,
.panel.is-grouped .section > .section__head > .label,
.panel.is-grouped details.section > summary {
  font: 600 var(--size-small) var(--font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* A row inside a panel section: name on the left, value on the right. */
.row {
  display: flex;
  align-items: center;
  gap: var(--gap-s);
  justify-content: space-between;
}

.row + .row { margin-top: 9px; }
/* A step smaller than the body, so that with the same step between them the rows of a panel
   have air and do not run into one another (Andrzej, 17 October: at 14 px and dark, tried that
   day, they did). */
.row .name { font: 400 var(--size-small) var(--font); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* In a panel every row is as tall as a control, whatever it holds -- a colour, a switch, a
   choice -- so a column of them keeps one step, and they stand close: they read as a list. */
.panel .section .row { min-height: var(--control-h); }
.panel .section .row + .row { margin-top: 4px; }

/* A row that names the slider under it, with the value it stands at: as tall as its words,
   so the slider sits close under its name. */
.panel .section .row.is-caption { min-height: 0; }

/* A row or a switch that follows something else in a panel section stands off it, the way
   the first thing under a section's name does. Rows that follow each other keep the closer
   spacing above: they read as one group. */
.panel .section > :not(.row) + .row,
.panel .section > * + .switch { margin-top: 11px; }

/* A line between two things said one after the other that are not one thing: in the small
   print under Download, what the image will be, and what the editor is. */
.divider { border-top: 1px solid var(--line-soft); margin: var(--gap-s) 0; }
/* ------------------------------------------------------- explained lines */

/* A line that explains one thing: its name on the left, the text beside it, a rule above.
   A column of these reads as answers to questions, where the same words as paragraphs read
   as a wall. On a narrow window the name simply sits above its text. */
.entry {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-s) 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}

/* Wide enough for the longest name the window has to put here -- "Download the image" --
   so that a step is one line and the column of answers starts in the same place. */
.entry > .label,
.entry > .entry__name { flex: 0 0 200px; padding-top: 3px; }
.entry > .label { font-weight: 600; }
.entry > .note,
.entry > .entry__text { flex: 1 1 300px; max-width: 62ch; color: var(--ink-soft); }
.entry:last-child { border-bottom: 1px solid var(--line-soft); }

/* A name that is not a heading but a step or a thing to point at, with its number in a small
   square of the accent where it is one of several in order. */
.entry__name { display: flex; align-items: center; align-self: flex-start; gap: 10px; font: 500 var(--size-body) var(--font); }
.entry > .entry__name { padding-top: 0; }
.entry__name b {
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
  background: var(--accent-wash);
  color: var(--accent);
  font: 600 var(--size-meta) var(--font);
}
.entry__text { display: flex; flex-direction: column; gap: var(--gap-s); }

/* Short answers side by side, one to a cell: what each part of a panel does. Each cell is a
   grey box of its own with a little room between them (17 October; until then the lines of
   a grid divided them). */
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.cells > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--screen);
}

.cells .name { font: 500 var(--size-body) var(--font); color: var(--ink); }

/* The cell that stands for what can be had -- Full access beside Free -- in the accent. */
.cells > .is-accent { background: var(--accent-mist); box-shadow: inset 0 0 0 1px var(--accent-line); }
.cells > .is-accent .name { color: var(--accent); }

/* Cells that hold a figure each, on white with an outline, so the numbers read as a row of
   their own rather than as more answers. */
.cells.is-outlined > div { background: var(--card); border: 1px solid var(--line); padding: 18px 16px; }

.swatch {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-dashed);
  cursor: pointer;
}

.swatch.is-on { border-color: var(--accent); }

/* A colour in a row of its own, its name on the left: wide enough to be seen as the colour
   rather than as a dot beside the name, with a fine edge that shows on white and on the colour
   alike, and a pale ring under the hand. Its number is in the tooltip and in the picker it
   opens: written beside it, it read as code to anyone outside graphics (Andrzej, 17 October). */
.swatch.is-wide {
  position: relative;
  width: 44px;
  height: 28px;
  flex: none;
  border: 0;
  border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 1px var(--swatch-edge);
}

.swatch.is-wide:hover { box-shadow: inset 0 0 0 1px var(--swatch-edge), 0 0 0 3px var(--accent-wash); }

/* The same tile as a picker. A colour input paints its own face, so its box has to be
   cleared for the tile to be the colour and nothing else. */
input.swatch {
  flex: none;
  padding: 0;
  background: none;
  border-color: var(--line);
  appearance: none;
  -webkit-appearance: none;
}

input.swatch:hover { border-color: var(--line-strong); }
input.swatch::-webkit-color-swatch-wrapper { padding: 0; }
input.swatch::-webkit-color-swatch { border: none; border-radius: inherit; }
input.swatch::-moz-color-swatch { border: none; border-radius: inherit; }

/* A list to pick one row from — slots in a scene, of which there may be one
   or nine. Grows down the panel instead of across it. */
.pick { display: flex; flex-direction: column; gap: 2px; }

.pick > * {
  display: flex;
  align-items: center;
  gap: var(--gap-s);
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 400 var(--size-small) var(--font);
  color: var(--ink-soft);
  cursor: pointer;
}

.pick > *:hover { background: var(--raised); }

.pick > .is-on {
  border-color: var(--accent-line);
  background: var(--accent-wash);
  color: var(--ink);
}

.pick .file { margin-left: auto; }

/* ------------------------------------------------------------- drop area */

.drop {
  border: 1.5px dashed var(--line-dashed);
  border-radius: var(--radius-l);
  background: var(--mist);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.drop:hover { border-color: var(--accent); background: var(--accent-mist); }

/* The mark of what the area is for, on a small white card lifted off it. */
.drop .mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-xs), 0 4px 12px var(--accent-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 17px;
}

.drop .mark svg { width: 18px; height: 18px; }
.drop .note { color: var(--ink); }
.drop .is-accent { color: var(--accent); font-weight: 500; }
/* The other way in, a line lower and quieter, with its keys drawn as keys. */
.drop .drop__also { display: block; margin-top: var(--gap-s); font-size: var(--size-meta); color: var(--ink-faint); }

.drop.is-small { padding: 20px; gap: 10px; }

/* A key on the keyboard, named in a line of text. */
.key {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--card);
  font: 400 var(--size-label) var(--font);
  color: var(--ink-soft);
}

/* ------------------------------------------------------- thumbnail strip */

/* Room round the thumbnails for the ring of the one picked, which lies outside its edge. */
.strip {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  min-height: 0;
  padding: 5px;
  margin: -5px;
}

.thumb {
  flex: none;
  height: 100%;
  aspect-ratio: var(--shot);
  position: relative;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s, transform 0.15s;
}

.thumb:hover { opacity: 1; transform: translateY(-1px); }
.thumb.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-wash); }
.thumb .shot { position: absolute; inset: 0; background: var(--placeholder); }

/* Its number in the set, on the picture's corner: in the accent on the one picked. */
.thumb .number {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: var(--veil);
  color: var(--on-veil);
  font: 600 10px var(--font);
  font-variant-numeric: tabular-nums;
}

.thumb.is-on .number { background: var(--accent); }

/* The name lies on the picture, so the thumbnail keeps the shape exactly. */
.thumb .name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font: 400 var(--size-meta) var(--font);
  color: var(--on-veil);
  padding: 3px 6px;
  background: var(--veil);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------------------------------------------- progress */

/* How far something has got, when the wait is long enough to be noticed: a mockup's
   pictures coming down the wire. A thin line rather than a box, so it can lie under a
   name without making an announcement of itself. Its width is set in the code, from
   0% to 100%; before anything is known it stands at zero. */
.progress {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--picked);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.18s linear;
}

/* ---------------------------------------------------------------- fields */

.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-s);
  border: 1px solid var(--line);
  background: var(--sunken);
  border-radius: var(--radius);
  min-height: 42px;
  padding: 9px 12px;
  font: 400 var(--size-body) var(--font);
  color: var(--ink);
  width: 100%;
}

input.field { font-variant-numeric: tabular-nums; }
input.field::placeholder { color: var(--ink-faint); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

/* Room for a few lines of one's own words: a message, written rather than picked. */
textarea.field { display: block; min-height: 110px; line-height: 1.55; resize: vertical; }
textarea.field::placeholder { color: var(--ink-faint); }

/* A row of choices where exactly one is on, joined into one control: a grey track with the
   choices lying in it, and the one that is on lifted out of it as a small white card
   (17 October; until then each had an outline, the one on in the accent). */
.choice {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius);
  background: var(--raised);
}

.choice > * {
  flex: 1;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  padding: 6px 8px;
  text-align: center;
  font: 500 var(--size-small) var(--font);
  color: var(--ink-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.choice > *:hover { color: var(--ink); }

/* Its letters in the accent too: with two choices side by side the white card alone was hard
   to tell at a glance (17 October). */
.choice > .is-on {
  background: var(--card);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

/* A choice that cannot be taken here, shown so that it is known to be there: the larger
   sizes of an image saved without a licence key (Andrzej, 28 September). Greyed through,
   so that it reads as out of reach rather than as merely not picked. */
.choice > .is-off,
.choice > .is-off:hover { background: transparent; color: var(--ink-off); cursor: not-allowed; }

/* A few small tools joined into one control, on the grey track of a choice so that they sit
   beside one as its match -- the picture's tools beside Image | Colour (Andrzej, 28 September)
   -- but each is a button of its own, not one of several to pick. As tall as a panel's row and
   as wide as tall; one with nothing to act on stands greyed, as a choice out of reach does. */
.joined { display: flex; flex: none; gap: 2px; padding: 3px; border-radius: var(--radius); background: var(--raised); }

.joined > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-in);
  height: var(--control-in);
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
}

.joined > :hover:not(:disabled) { background: var(--card); color: var(--ink); }
.joined > .is-danger:hover:not(:disabled) { color: var(--danger); }
.joined > :disabled { color: var(--ink-off); cursor: not-allowed; }
.joined svg { width: 15px; height: 15px; flex: none; }
/* As wide as what holds it, its buttons sharing the width: the design's tools under Image |
   Colour (29 October; Andrzej chose it over squares of their own). A tool that is on is lifted
   out of the track, its mark in the accent, as a choice that is on is. */
.joined.is-wide { width: 100%; }
.joined.is-wide > * { flex: 1; width: auto; }
.joined > .is-on,
.joined > .is-on:hover:not(:disabled) { background: var(--card); color: var(--accent); box-shadow: var(--shadow-xs); }

/* A few small tools floating over the ground behind the mockup, frosted as the chip floating
   there is: how close the picture is, and the part of it to save (2 November). A tool that is
   on is lifted, as in .joined; words and marks can stand in one button. */
.float-bar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--round);
  background: var(--frost);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-float);
}

.float-bar > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: var(--control-h);
  height: var(--control-h);
  padding: 0 8px;
  border: 0;
  border-radius: var(--round);
  background: transparent;
  color: var(--ink-soft);
  font: 400 var(--size-small) var(--font);
  cursor: pointer;
}

.float-bar > button:hover:not(:disabled) { background: var(--raised); color: var(--ink); }
.float-bar > button:disabled { color: var(--ink-off); cursor: not-allowed; }
.float-bar > button.is-on,
.float-bar > button.is-on:hover:not(:disabled) { background: var(--card); color: var(--accent); box-shadow: var(--shadow-xs); }
.float-bar svg { width: 15px; height: 15px; flex: none; }
.float-bar > button.is-main,
.float-bar > button.is-main:hover:not(:disabled) { padding-inline: 14px; background: var(--accent); color: var(--on-accent); }
.float-bar__value { font-variant-numeric: tabular-nums; }
.float-bar__line { flex: none; width: 1px; height: 18px; margin-inline: 3px; background: var(--line-strong); }

/* Upright, in the margin beside a picture: marks only, and the number small enough for the width. */
.float-bar.is-upright { flex-direction: column; }
.float-bar.is-upright > button { width: var(--control-h); padding: 0; }
.float-bar.is-upright > .float-bar__value { height: 24px; font-size: var(--size-label); }
.float-bar.is-upright > .float-bar__line { width: 18px; height: 1px; margin: 3px 0; }

/* The frame of what is saved, over a picture: what lies outside it dimmed, a white line round
   it with a dark one outside, so that it shows on any picture, and something to hold on each
   side and corner, inside the frame, so that a frame at the picture's edge can still be held.
   A frame of a set shape has its corners alone. The size it will be saved at stands in it. */
.crop-frame {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid var(--card);
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 9999px var(--crop-dim);
  cursor: move;
  touch-action: none;
  pointer-events: auto;
}

.crop-frame__size {
  position: absolute;
  top: 8px;
  left: 28px;
  padding: 3px 8px;
  border-radius: var(--round);
  background: var(--frost);
  color: var(--ink);
  font: 400 var(--size-small) var(--font);
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.crop-frame > i { position: absolute; }
.crop-frame > [data-edge="n"], .crop-frame > [data-edge="s"] { left: 22px; right: 22px; height: 12px; cursor: ns-resize; }
.crop-frame > [data-edge="e"], .crop-frame > [data-edge="w"] { top: 22px; bottom: 22px; width: 12px; cursor: ew-resize; }
.crop-frame > [data-edge="n"] { top: 0; }
.crop-frame > [data-edge="s"] { bottom: 0; }
.crop-frame > [data-edge="e"] { right: 0; }
.crop-frame > [data-edge="w"] { left: 0; }
.crop-frame.is-locked > [data-edge="n"], .crop-frame.is-locked > [data-edge="e"],
.crop-frame.is-locked > [data-edge="s"], .crop-frame.is-locked > [data-edge="w"] { display: none; }
.crop-frame > [data-edge="nw"], .crop-frame > [data-edge="ne"],
.crop-frame > [data-edge="se"], .crop-frame > [data-edge="sw"] {
  width: 20px;
  height: 20px;
  border: solid var(--card);
  filter: drop-shadow(0 0 1px var(--ink));
}
.crop-frame > [data-edge="nw"] { top: 0; left: 0; border-width: 3px 0 0 3px; cursor: nwse-resize; }
.crop-frame > [data-edge="ne"] { top: 0; right: 0; border-width: 3px 3px 0 0; cursor: nesw-resize; }
.crop-frame > [data-edge="se"] { bottom: 0; right: 0; border-width: 0 3px 3px 0; cursor: nwse-resize; }
.crop-frame > [data-edge="sw"] { bottom: 0; left: 0; border-width: 0 0 3px 3px; cursor: nesw-resize; }

/* The settings of the tools that are on, one under another in one white box with an outline,
   each parted from the one above it by a fainter dashed line (Andrzej, 29 October). */
.option-box { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); }
.option-box > :not([hidden]) ~ :not([hidden]) { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* In a panel's row: each choice as wide as its word, the control as tall as the row. */
.choice.is-small > * {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--control-in);
  padding: 0 12px;
}

/* The same across a whole panel, each choice an equal share of it: a choice standing on its
   own line rather than beside a name -- Image | Colour under the design's preview. */
.choice.is-wide > * { flex: 1; }

/* On or off, as a switch: a pill with a white knob, which runs to the right and turns the
   pill to the accent when on (17 October: in the panel too, where until then a part of the
   scene was On | Off, a choice). A label beside it, or a button alone in a row. */
.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

button.switch { flex: none; padding: 0; border: 0; background: none; font: inherit; color: inherit; }

.switch .track {
  width: 40px;
  height: 24px;
  border-radius: var(--round);
  background: var(--line-strong);
  position: relative;
  flex: none;
  transition: background 0.2s;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-s);
  transition: left 0.2s;
}

.switch.is-on .track { background: var(--accent); }
.switch.is-on .track::after { left: 19px; }

/* A slider: a flat line, the part up to the handle in the accent and the rest in the grey
   of a switch's track. How far it is filled comes from the page (--fill, as a share), since
   a browser's own slider will not say. The handle is white, ringed in the accent and lifted
   by a small shadow -- the card and outline the small tools beside it wear -- and under the
   hand it takes a pale halo, which grows while it is held (Andrzej, 28 September: the flat
   blue dot looked unfinished next to them). */
.slider {
  display: block;
  width: 100%;
  height: 20px;
  margin: 4px 0 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--fill, 50%), var(--picked) var(--fill, 50%));
}

.slider::-moz-range-track { height: 4px; border-radius: 2px; background: var(--picked); }
.slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.12s;
}

.slider::-moz-range-thumb {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.12s;
}

.slider:hover::-webkit-slider-thumb { box-shadow: var(--shadow-s), 0 0 0 4px var(--accent-wash); }
.slider:hover::-moz-range-thumb { box-shadow: var(--shadow-s), 0 0 0 4px var(--accent-wash); }
.slider:active::-webkit-slider-thumb { box-shadow: var(--shadow-s), 0 0 0 6px var(--accent-wash); }
.slider:active::-moz-range-thumb { box-shadow: var(--shadow-s), 0 0 0 6px var(--accent-wash); }
.slider:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }

/* A number that is also a field: it reads as the value beside a slider's name, and a click
   on it lets one be typed in (Andrzej, 28 September). It shows an outline only under the hand
   and while it is being typed in; at rest it stands where the plain value stood, its digits
   on the same edge. */
.value {
  width: 56px;
  height: 22px;
  margin-right: -7px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: transparent;
  font: 400 var(--size-small) var(--font);
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  text-align: right;
  cursor: text;
}

.value:hover { border-color: var(--line); }
.value:focus { outline: none; border-color: var(--accent-line); background: var(--sunken); color: var(--ink); }

/* A few lines about the thing under the hand, on a small card that shows (is-shown) while the
   hand is on its mark, or while the mark has the keyboard: the file on a place -- its name,
   size, resolution and colours (Andrzej, 28 September). It hangs under whatever holds it, on
   that one's right edge, and takes no clicks of its own. */
.tip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 4;
  display: none;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  font: 400 var(--size-meta) var(--font);
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: left;
  pointer-events: none;
}

.tip > * { display: block; }
.tip > b { margin-bottom: 2px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.tip.is-shown { display: block; }

/* A few small tools kept together beside a control, set apart from it by a gap and a line,
   so that a hand on the slider does not catch them (Andrzej, 28 September). */
.toolset {
  display: flex;
  flex: none;
  gap: var(--gap-xs);
  padding-left: var(--gap);
  border-left: 1px solid var(--line);
}

/* --------------------------------------------------------------- dialog */

/* A window over everything: help, the licence, what this browser keeps. Each of those is
   too little for a screen of its own and wanted only now and then, so they are tabs in one
   window -- written once, opened from wherever they are needed. It covers the whole app
   rather than one screen: in the window beside a mockup on the site there are no screens
   to walk to, only this. */
.dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--dim);
  backdrop-filter: blur(3px);
}

.dialog__box {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Most of the room, but a line of text stops being readable long before 1500 px: the box
     grows to a comfortable measure and no further. */
  width: min(940px, 100%);
  height: min(720px, 100%);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

/* The head is a band of its own: the groups of tabs side by side, each in its own bay, and
   the way out at the end. The lines between the bays run the full height of the band, so
   they read as parts of one bar rather than as floating headings. */
.dialog__head {
  position: relative;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  padding-right: 64px; /* room for the cross that closes the window */
}

/* Three kinds of tab in one bar, told apart by the small heading over each group: what helps
   (how it works, why it is paid), what is set (the licence, the files) and a message to us.
   Reading about the editor, changing something in it and writing to its makers are
   different errands. */
.dialog__groups { display: flex; align-items: stretch; }

.dialog__group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px var(--pad-dialog) 0;
}

.dialog__group + .dialog__group { border-left: 1px solid var(--line); }
.dialog__group .label { padding-left: 1px; }
.dialog__group .tabs { border-bottom: 0; gap: var(--gap-l); }

.dialog__group .tab {
  font: 500 var(--size-body) var(--font);
  color: var(--ink);
  padding: 6px 0 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.dialog__group .tab:hover { color: var(--accent); }
.dialog__group .tab.is-on { color: var(--accent); border-bottom-color: var(--accent); }

/* Full access, first in the bar and on a ground of its own: the one tab about what the customer
   can have rather than how the editor works, kept apart from the settings (Andrzej, 2 October:
   "to jest najważniejsza sprawa a jest to schowane gdzieś w środku"). The grey of the window's
   foot and dark letters -- set apart from the other tabs without shouting, as the accent did
   ("ten niebieski wali w oczy"). The whole bay is the tab, down to the line under the bar, and
   the one being read is underlined in the accent, as the others are. Greyed letters while keys
   cannot be bought. From 5 October the letters are in the accent, with the mark of a key: dark
   letters on the grey read as a tab that could not be opened (Andrzej). */
.dialog__group--access { justify-content: stretch; padding: 0; margin-bottom: -1px; background: var(--screen); }
/* Being read, it is white like the page under it, and the two read as one. */
.dialog__group--access:has(.tab.is-on) { background: var(--panel); }
.dialog__group--access .tabs { flex: 1; }

.dialog__group--access .tab {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 var(--pad-dialog);
  margin: 0;
  border-bottom: 0;
  color: var(--accent);
  font-weight: 500;
}

.dialog__group--access .tab svg { width: 16px; height: 16px; flex: none; }
.dialog__group--access .tab:hover { box-shadow: inset 0 -2px 0 var(--accent-line); }
.dialog__group--access .tab.is-on { box-shadow: inset 0 -2px 0 var(--accent); }
.dialog__group--access .tab.is-off:hover { box-shadow: none; }

.dialog__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: 28px 32px 32px;
}

/* A tab's heading: a step heavier than a screen's, and drawn in a little. */
.dialog__body .title { margin: 0; font-size: var(--size-title-s); font-weight: 500; letter-spacing: -0.01em; }
.dialog__body .note { margin: 0; font-size: var(--size-body); }

/* The same window with a few lines to say and nothing to switch between: no tabs, as tall as
   what it says, with the ways out at the foot. What it says is the whole of it, so it reads
   larger than the notes in the tabs, with more room around it (Andrzej, 30 September). Since
   1 October, after his drawing: the word that marks the app over the heading, and under it the
   lines explained one by one, their names in a narrow column -- each a word, not a step -- and
   a line to close on after the last rule. No taller than the veil it lies on: only a very
   small window scrolls. */
.dialog__box--small { width: min(640px, 90vw); height: auto; max-height: 100%; }
.dialog__box--small .dialog__body { padding: var(--pad-dialog-l); }
.dialog__box--small .dialog__body > .tag { align-self: flex-start; }
.dialog__box--small .dialog__body .title { font-size: var(--size-title-l); font-weight: 300; letter-spacing: 0; line-height: 1.15; margin-bottom: var(--gap); }
.dialog__box--small .dialog__body .note { font-size: var(--size-read); color: var(--ink-soft); }
.dialog__box--small .entry { padding: 18px 0; }
.dialog__box--small .entry > .label { flex-basis: 108px; font-weight: 600; color: var(--ink-faint); }
.dialog__box--small .dialog__foot { justify-content: flex-end; padding: var(--gap) var(--gap-l); }

/* The line a word of welcome closes on: short, and said a little louder than the rest. */
.dialog__end { margin: var(--gap) 0 0; font: 600 var(--size-title-s) var(--font); color: var(--ink); }

/* The same few lines given the whole window, with nothing behind them showing: what is said
   when the window is too small for the editor at all (5 October). A room of its own rather than
   a box on a veil -- on a phone the window on the site is a few hundred pixels across, and a box
   would leave the words a part of that. The lines sit in the middle, and a window shorter than
   they are scrolls from the top. What is marked spare goes when the window is very short, so
   that what is left still fits without scrolling. Some lines are for a phone and some for a
   computer whose window was made small: the pointer tells which. */
.dialog--whole { z-index: 30; align-items: normal; justify-content: normal; overflow-y: auto; background: var(--panel); }
.dialog--whole .dialog__body { flex: none; width: min(100%, 460px); margin: auto; padding: 0; overflow: visible; gap: var(--gap-s); }
.dialog--whole .dialog__body .title { font-size: var(--size-title-l); font-weight: 300; letter-spacing: 0; line-height: 1.15; margin-bottom: var(--gap-xs); }
.dialog--whole .dialog__body .note { font-size: var(--size-read); line-height: 1.45; color: var(--ink-soft); }
.dialog--whole .dialog__end { margin-top: var(--gap-xs); }
.dialog--whole .button { align-self: flex-start; margin-top: var(--gap-s); }

.dialog__mark { width: 48px; height: 48px; flex: none; margin: 0 0 var(--gap-xs) -4px; color: var(--accent); }

@media (max-height: 360px) {
  .dialog--whole .is-spare { display: none; }
  .dialog--whole .dialog__body .title { font-size: var(--size-title-s); }
}

@media (pointer: fine) {
  .dialog--whole .for-touch { display: none; }
}

@media (pointer: coarse), (pointer: none) {
  .dialog--whole .for-mouse { display: none; }
}

/* The way out, at the end of the head: the cross the editor's own bar closes with, in the
   middle of the band's height (17 October; until then a square of its own, as tall as the
   band, behind a line). */
.dialog__close {
  position: absolute;
  top: 50%;
  right: 14px;
  width: var(--button-h);
  height: var(--button-h);
  margin-top: calc(var(--button-h) / -2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.dialog__close:hover { background: var(--raised); color: var(--ink); }
.dialog__close svg { width: 18px; height: 18px; }

/* Under the tabs, a line that belongs to the window rather than to the tab being read:
   what this browser may do as things stand, and the way to change it. The tab that says
   all of it in full hides this one, since it would only repeat itself. */
.dialog__foot {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-s) var(--gap);
  min-height: 64px;
  padding: 12px var(--pad-dialog) 12px 32px;
  border-top: 1px solid var(--line);
  background: var(--screen);
}

.dialog__foot .note { flex: 1 1 260px; margin: 0; color: var(--ink-soft); }

/* Where this browser stands, with a dot before it: the accent while there is something to
   get, and the green of what is done once full access is on (is-full). */
.dialog__state::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--accent);
}

.dialog__foot.is-full .dialog__state::before { background: var(--done); }

/* A second way out beside the main one wears the card, so that it does not sink into the grey
   of the foot: "Don't show this again" beside "Try it". */
.dialog__foot .button:not(.is-main) { background: var(--card); }

/* A part of a tab set apart from what is above it by a rule: whoever has what the lines above
   give stops reading there, and whoever has not starts here -- the key under the offer. */
.dialog__part { display: flex; flex-direction: column; gap: var(--gap-s); margin-top: var(--gap-s); padding-top: var(--gap-l); border-top: 1px solid var(--line-soft); }

/* What is on offer: the lengths side by side, each with its own button that goes straight to
   paying for it -- one click, not a length picked and then a second button (Andrzej, 2 October).
   A length added is a line in the list and nothing else. */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }

.tier {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 4px var(--gap-s);
  align-items: baseline;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--card);
}

.tier .name { font: 600 16px var(--font); color: var(--ink); }
.tier .price { font: 600 18px var(--font); color: var(--ink); }
.tier .note { grid-column: 1 / -1; }
.tier .button { grid-column: 1 / -1; height: 40px; margin-top: var(--gap-s); }

/* The length that gives most for its price, outlined in the accent with its pale ring, the way
   a picked chip is (17 October, after Andrzej's drawing). */
.tier.is-best { border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }

/* A length with a picture of its own -- the pack it is sold in on Gumroad (Andrzej, 8 October) --
   has it in a column of its own at the left, from the top of the name down to the foot of the
   button, whose foot the pack's stands on; beside it the length as it is without one, button
   and all. The picture takes the height the words and the button give, and adds none. */
.tier--picture { grid-template-columns: 76px 1fr max-content; column-gap: 16px; }
.tier__picture {
  grid-row: 1 / span 3;
  align-self: stretch;
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.tier--picture .note,
.tier--picture .button { grid-column: 2 / -1; }

/* A field to paste a code into, with the button that takes it beside it: a key from Gumroad,
   in the tab of full access and in the line over the mockup that waits for a payment. */
.keyline { display: flex; gap: var(--gap-s); max-width: 460px; }

.keyline input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sunken);
  color: var(--ink);
  font: 400 var(--size-body) var(--font);
}

.keyline .button { height: 40px; padding: 0 18px; }
.keyline input::placeholder { color: var(--ink-faint); }
.keyline input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

/* A button with its small print beside it: the line about who sells the key reads as part
   of the button rather than as another paragraph under it. */
.dialog__buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-s) var(--gap); }
.dialog__buy .note { flex: 1 1 220px; }

/* What is kept here, with the way to throw it away beside it. */
.dialog__room {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-s) var(--gap);
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--screen);
}

.dialog__room .button.is-danger { background: var(--card); }
.dialog__room .button.is-danger:hover { background: var(--danger-wash); }

.dialog__room .note { flex: 1 1 200px; margin: 0; }

/* A word marking what the whole app is, not anything on the screen it sits on: small and
   quiet enough to stand among the icons without being taken for a button. */
.tag {
  font: 600 var(--size-label) var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  border: 0;
  border-radius: var(--radius-xs);
  padding: 5px 9px;
  white-space: nowrap;
}

/* The tag as a way to more about the stage: a click shows the word of welcome again (in the
   test since 5 October, in the beta since 6 October). */
/* Before the mockup's name in the editor's bar (5 October). Until 17 October as tall as the
   buttons there; since then a small label, which the name beside it outweighs. */
.tag.is-tall { display: inline-flex; align-items: center; flex: none; }
button.tag { cursor: pointer; }
button.tag:hover { background: var(--accent-line); }

/* A tab that is there but cannot be opened yet: readable, so it still says what is coming,
   and plainly out of reach. */
.tab.is-off,
.tab.is-off:hover { color: var(--ink-faint); cursor: default; border-bottom-color: transparent; }

/* A tab with something waiting behind it. */
.tab__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  vertical-align: 2px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------- notice */

/* A word that stays until it is read, over the top of the working area: where a purchase
   stands, from the click on Buy to the moment full access is on (2 October). Not a toast,
   which goes by itself: this is what the customer is waiting for, so it waits for them. Its
   first words lead, heavier; a key can be pasted into it; the cross puts it away. */
.notice {
  display: grid;
  grid-template-columns: 1fr max-content;
  align-items: center;
  gap: 10px var(--gap);
  padding: 12px 12px 12px var(--gap);
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

/* What it says on the first line, the cross at its end; a field for a key, when there is one,
   on a line of its own under it. */
.notice__text { grid-column: 1; margin: 0; font: 400 var(--size-small) var(--font); line-height: 1.5; color: var(--ink-soft); }
.notice__text b { font-weight: 600; color: var(--ink); }
.notice .icon-button { grid-column: 2; grid-row: 1; }
.notice .keyline { grid-column: 1 / -1; }

/* ------------------------------------------------------------- empty area */

/* A place in the skeleton that has no function behind it yet. */
.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-l);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font: 500 var(--size-label) var(--font);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  min-height: 60px;
  text-align: center;
  padding: var(--gap);
}

/* ---- source/ui/theme.css ---- */
/* Every value the interface is built from. Nothing below this file hard-codes
   a colour, a size or a font: screens and blocks only use these variables. */

/* The app is white, because it opens in a window on mockups-design.com, which is
   white, and shares its face (Rubik) and its blue. Deeper means greyer: the
   mockup sits on the greyest surface there is, so a white mockup still shows. */

/* The new look (Andrzej, 17 October, after his own drawings made with Claude Code): rounder,
   softer and a little cooler -- controls on grey tracks, the main button lit from above, the
   mockup on a card that floats over a dotted ground. Tried on a branch of its own, seen only on
   the stand-in post, until he takes it or drops it. The blue stays the site's own: the drawings
   had another, a shade lighter. */

:root {
  /* Surfaces, deepest to nearest */
  --canvas: #EEF0F4;      /* behind the mockup, the deepest level */
  --screen: #F6F7F9;      /* the screen itself; the foot of the window, a cell */
  --panel: #FFFFFF;       /* side panels and bars */
  --card: #FFFFFF;        /* tiles and boxes on the screen */
  --raised: #F1F3F7;      /* the track of a choice, a button under the hand */
  --sunken: #FFFFFF;      /* input fields */
  --mist: #FAFBFC;        /* a place waiting for a file; a heading under the hand */

  /* The dots on the ground behind the mockup, as on a cutting mat. */
  --dot: #D6DAE3;
  --dots: radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 20px 20px;

  /* The other grounds the mockup can be looked at on (Settings, Screen), each with dots of its
     own, so the four are one family; and the strip of scenes under each. Only the look on the
     screen: none of it reaches the image saved. */
  --ground-white: #FFFFFF;
  --dot-white: #E4E7EE;
  --strip-white: rgba(246, 247, 249, 0.9);
  --ground-grey: #808080;
  --dot-grey: #959595;
  --strip-grey: rgba(111, 114, 118, 0.92);
  --ground-black: #000000;
  --dot-black: #2A2C31;
  --strip-black: rgba(20, 21, 24, 0.92);

  /* Lines */
  --line-soft: #EEF0F4;   /* divides areas inside one surface */
  --line: #E4E7EE;        /* the usual border */
  --line-strong: #D6DAE3; /* a border that has to be noticed; the track of a switch that is off */
  --line-dashed: #C3C8D4; /* drop areas, a place waiting for a file */

  /* Text */
  --ink: #14161F;         /* normal text */
  --ink-soft: #4A5064;    /* secondary text */
  --ink-dim: #6B7186;     /* descriptions */
  --ink-faint: #8A90A2;   /* small capital labels, numbers */
  --ink-off: #B6BBC8;     /* what cannot be used here */
  --ink-raised: #2A2D38;  /* a dark button under the hand */

  /* One accent, used for what the user is meant to do next: the site's own blue */
  --accent: #112FF9;
  --accent-top: #2F4CFF;  /* a lighter blue, for a square standing for somebody's file */
  --accent-deep: #0A24D2; /* the main button under the hand */
  --accent-line: #C9D3FF; /* an outline that leans to the accent: under the hand, in focus */
  --accent-wash: #EAEEFF; /* behind something in the accent; the ring round what is picked */
  --accent-mist: #F6F8FF; /* the faintest of it: a box that offers, a place being dropped on */
  --on-accent: #FFFFFF;   /* text on the accent */

  /* What warns, and what is about to be lost */
  --danger: #D93036;
  --danger-line: #F3C4C5;
  --danger-wash: #FFF1F1;

  /* What is done: a place with the customer's file on it, full access on */
  --done: #1FA36B;

  /* What is worth knowing before it is too late: the dot by "Watermark on download" */
  --heads-up: #FFB020;

  /* Over a picture, where the surface below cannot be relied on */
  --veil: rgba(20, 22, 31, 0.6);
  --on-veil: #FFFFFF;
  /* Over the whole editor, behind the window that opens over it */
  --dim: rgba(18, 19, 24, 0.5);
  /* A bar that lies over the ground and lets it show through */
  --frost: rgba(255, 255, 255, 0.9);
  /* What lies outside the frame of a crop */
  --crop-dim: rgba(20, 22, 31, 0.5);

  /* One of several, chosen; and the track of a slider */
  --picked: #E4E7EE;
  /* The edge of a colour tile, which has to show on white and on the colour alike */
  --swatch-edge: rgba(20, 22, 31, 0.12);

  /* Shadows, for the few things that float over the screen */
  --shadow: 0 12px 32px rgba(20, 22, 31, 0.14);
  /* A small one, for a handle that stands on its line: a slider's, a switch's */
  --shadow-s: 0 1px 3px rgba(20, 22, 31, 0.25);
  /* The faintest, for what is picked on a grey track */
  --shadow-xs: 0 1px 2px rgba(20, 22, 31, 0.1), 0 1px 1px rgba(20, 22, 31, 0.04);
  /* A pill floating over the ground */
  --shadow-float: 0 4px 16px rgba(20, 22, 31, 0.06);
  /* The mockup itself, lifted off the ground */
  --shadow-picture: 0 1px 2px rgba(20, 22, 31, 0.06), 0 18px 50px rgba(20, 22, 31, 0.1);
  /* The window that opens over everything */
  --shadow-window: 0 0 0 1px rgba(20, 22, 31, 0.06), 0 30px 80px rgba(0, 0, 0, 0.35);
  /* The foot of the panel, standing over what scrolls under it */
  --shadow-up: 0 -8px 24px rgba(20, 22, 31, 0.04);

  /* Type */
  /* One face for the whole interface. Numbers line up in a column through
     tabular-nums, which Rubik has, so nothing needs a monospaced face. */
  --font: Rubik, Helvetica, Arial, sans-serif;
  --size-title: 26px;     /* the one heading a screen is allowed */
  --size-title-s: 24px;   /* the same heading inside the window, which is narrower */
  --size-title-l: 32px;   /* the heading of a word of welcome, which is all it has to say */
  --size-read: 15px;      /* text read for itself, as the word of welcome is */
  --size-menu: 17px;      /* the main menu and what sits beside it */
  --size-head: 15px;      /* area headings */
  --size-body: 14px;
  --size-small: 13px;
  --size-label: 11px;     /* uppercase, letter-spaced, above an area */
  --size-meta: 12px;      /* numbers and file names */
  --size-figure: 28px;    /* a number that is the point of its box */
  --track-label: 0.1em;

  /* Spacing: everything is a multiple of these */
  --gap-xs: 4px;
  --gap-s: 8px;
  --gap: 14px;
  --gap-l: 22px;
  --pad-screen: 20px;     /* margin between a screen and its edge */
  --pad-dialog: 24px;     /* inside the window that opens over everything */
  --pad-dialog-l: 40px;   /* inside a word of welcome, which has the window to itself */
  --wide: 1500px;         /* content stops growing here; wider screens centre it */
  /* Side padding for a bar whose line runs the full width while its contents
     start on exactly the same vertical line as the screen below it. */
  --edge: calc(var(--pad-screen) + max(0px, (100% - var(--wide)) / 2));

  /* Shapes and sizes shared by every screen */
  /* The picture inside a card, a thumbnail or the canvas: one shape for all.
     Kept as two numbers as well, for the places that have to compute with it. */
  --shot-w: 4;
  --shot-h: 3;
  --shot: var(--shot-w) / var(--shot-h);

  /* Corners: round, and rounder the larger the thing. Two or three pixels less from 20 October
     (Andrzej): at 10 on a button and 16 on the window the look turned playful. */
  --radius-xs: 4px;       /* the smallest marks: a key on the keyboard, a number on a picture */
  --radius-s: 5px;        /* a mark inside something: a colour's tile, a step's number */
  --radius: 8px;          /* buttons, fields, choices */
  --radius-m: 9px;        /* the main button, the panel that opens over it */
  --radius-l: 11px;       /* cards, the drop area, the preview, the mockup */
  --radius-xl: 12px;      /* the window over everything */
  --round: 999px;         /* a pill */
  /* How tall the controls in a panel's rows are -- chips, choices, a field and the button
     beside it -- so that a row reads as one line whatever it holds; and the one main
     button at the foot of a panel, with the button beside it. A choice is a grey track with
     the options inside it, a little lower than the track. */
  --control-h: 32px;
  --control-in: 26px;
  --control-l: 42px;
  /* How tall a button is where it stands on its own -- in a bar, in the window -- the ones
     with a word and the ones with a mark alike, so a row of them lines up. A button's height
     used to follow from its padding and the line of its word, and came out a pixel taller
     than the marks beside it (Andrzej, 23 September). */
  --button-h: 36px;
  --topbar-h: 64px;       /* the bar with the menu */
  --workbar-h: 56px;      /* the bar above a working screen */
  --statusbar-h: 34px;
  --panel-w: 340px;       /* right-hand panel in the editor */
  --side-w: 300px;        /* left-hand panel, the same on every screen */
  --strip-h: 168px;       /* bottom strip with thumbnails; 148 on 17 October, back on 20 October,
                             since smaller scenes were harder to tell apart */

  /* Placeholder where an image will be. Never used for anything else, so a
     search for it finds every spot the skeleton is still empty. */
  --placeholder: repeating-linear-gradient(135deg, #E9E7E3 0 7px, #E3E1DD 7px 14px);
  --placeholder-ink: #57544F;

  /* Nothing behind the picture: what shows through a mockup whose background has been
     switched off. Every drawing program says this with a chequer; ours is its own —
     larger squares and a softer grey, so it reads as our surface and not as a copy of
     somebody's window. */
  --checker-size: 16px;
  --checker-dark: #E4E7EA;
  --checker-light: #FFFFFF;
  --checker: repeating-conic-gradient(var(--checker-dark) 0% 25%, var(--checker-light) 0% 50%) 50% / var(--checker-size) var(--checker-size);
}

* { box-sizing: border-box; }

/* Hidden means hidden, whatever display a block gives itself. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--screen);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--size-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--accent); color: var(--on-accent); }

/* The keyboard's way round: an outline in the accent, never the browser's own. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- source/front/front.css ---- */
/* The page at the editor's own address: a few lines in the middle of the screen, built from
   the blocks like every other page. */

.front {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-screen);
  box-sizing: border-box;
  background: var(--screen);
  color: var(--ink);
  font-family: var(--font);
}

.front__word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap);
  max-width: 460px;
}

.front__word .note { margin: 0; }
.front__word .button { margin-top: var(--gap-s); text-decoration: none; }
