/* Hair Harvester — «Вишита стрічка» (embroidered ribbon): the core of the visual language.
   Unbleached linen, black and red thread, counted cross-stitch as the grid: one cell of ornament is one stitch (--st),
   and on the measuring ribbon one stitch is one centimetre.
   Phone first; two breakpoints: 640 px (wide phone, tablet) and 960 px (desktop: top navigation, columns).
   Square corners, no drop shadows, running stitches instead of solid rules.
   Page-specific refinements live in static/css/*.css, loaded after this file. */

:root {
  /* cloth and thread */
  --linen: #e9e0cc;      /* unbleached linen: the page */
  --panel: #f1ead9;      /* lighter linen: panels */
  --cloth: #f8f4ea;      /* bleached linen: fields, the price frame */
  --ground: #dcd1b9;     /* the cloth under photographs */
  --line: #c2b598;       /* thin lines */
  --pale: #bdaf90;       /* thread not sewn yet: decoration only, never text */
  --ink: #17120f;        /* black thread */
  --ink-2: #4f453b;      /* secondary text */
  --red: #a3131c;        /* red thread */
  --red-deep: #7c0c14;
  --ink-soft: #33291f;   /* black thread under the pointer */

  --serif: "Brygada 1918", Georgia, "Times New Roman", serif;
  --sans: "Arsenal", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --st: 2px;             /* one stitch of ornament */
  --u: 2px;              /* one centimetre in a drawing */
  --gut: 16px;           /* page gutter */
  --tab: 64px;           /* height of the phone tab bar */
  --bar: 52px;           /* height of the sticky bid bar on a phone */

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* the heading ladder: four rungs for the whole site (each grows at 960 px, see the desktop block);
     a partial picks a rung by its name and never sets a heading size of its own */
  --t-page: 2.125rem;     /* the title of a page: every h1 unless said otherwise */
  --t-long: 1.8125rem;     /* a title that is a lot's name, stands inside a card, or heads the moderator's desk */
  --t-section: 1.6875rem;     /* a section of a page: every h2 unless said otherwise */
  --t-panel: 1.4375rem;     /* the title of a panel, a frame, a numbered step or a side block */

  /* running stitches: 6 px on, 4 px off */
  --weave: linear-gradient(rgba(96, 78, 40, .032) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 78, 40, .032) 1px, transparent 1px);
  --run: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px);
  --run-red: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px);
  --run-v: repeating-linear-gradient(0deg, var(--ink) 0 6px, transparent 6px 10px);
  --run-v-red: repeating-linear-gradient(0deg, var(--red) 0 6px, transparent 6px 10px);
  --ghost: repeating-linear-gradient(90deg, var(--pale) 0 6px, transparent 6px 10px);
  --ghost-v: repeating-linear-gradient(0deg, var(--pale) 0 6px, transparent 6px 10px);

  /* the measuring ribbon lying flat, 105 x 13 stitches for 0..100 cm: bare (not sewn yet) and sewn (red and black thread);
     one stitch is one centimetre, a rhombus stands on every ten, a star on fifty and a hundred */
  --tape-bare: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 105 13%22 shape-rendering=%22crispEdges%22 width=%22105%22 height=%2213%22%3E%3Cpath fill=%22%23bdaf90%22 d=%22M0 0h105v1h-105zM0 1h1v1h-1zM0 2h1v1h-1zM10 2h1v1h-1zM20 2h1v1h-1zM30 2h1v1h-1zM40 2h1v1h-1zM48 2h1v1h-1zM52 2h1v1h-1zM60 2h1v1h-1zM70 2h1v1h-1zM80 2h1v1h-1zM90 2h1v1h-1zM98 2h1v1h-1zM102 2h1v1h-1zM0 3h1v1h-1zM9 3h1v1h-1zM11 3h1v1h-1zM19 3h1v1h-1zM21 3h1v1h-1zM29 3h1v1h-1zM31 3h1v1h-1zM39 3h1v1h-1zM41 3h1v1h-1zM48 3h2v1h-2zM51 3h2v1h-2zM59 3h1v1h-1zM61 3h1v1h-1zM69 3h1v1h-1zM71 3h1v1h-1zM79 3h1v1h-1zM81 3h1v1h-1zM89 3h1v1h-1zM91 3h1v1h-1zM98 3h2v1h-2zM101 3h2v1h-2zM0 4h1v1h-1zM8 4h1v1h-1zM10 4h1v1h-1zM12 4h1v1h-1zM18 4h1v1h-1zM20 4h1v1h-1zM22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1zM81 9h1v1h-1zM89 9h1v1h-1zM91 9h1v1h-1zM98 9h2v1h-2zM101 9h2v1h-2zM0 10h1v1h-1zM10 10h1v1h-1zM20 10h1v1h-1zM30 10h1v1h-1zM40 10h1v1h-1zM48 10h1v1h-1zM52 10h1v1h-1zM60 10h1v1h-1zM70 10h1v1h-1zM80 10h1v1h-1zM90 10h1v1h-1zM98 10h1v1h-1zM102 10h1v1h-1zM0 11h1v1h-1zM0 12h105v1h-105z%22/%3E%3C/svg%3E");
  --tape-sewn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 105 13%22 shape-rendering=%22crispEdges%22 width=%22105%22 height=%2213%22%3E%3Cpath fill=%22%2317120f%22 d=%22M0 0h105v1h-105zM0 1h1v1h-1zM0 2h1v1h-1zM48 2h1v1h-1zM98 2h1v1h-1zM0 3h1v1h-1zM48 3h2v1h-2zM98 3h2v1h-2zM0 4h1v1h-1zM10 4h1v1h-1zM20 4h1v1h-1zM30 4h1v1h-1zM40 4h1v1h-1zM48 4h2v1h-2zM52 4h3v1h-3zM60 4h1v1h-1zM70 4h1v1h-1zM80 4h1v1h-1zM90 4h1v1h-1zM98 4h2v1h-2zM102 4h3v1h-3zM0 5h1v1h-1zM9 5h1v1h-1zM11 5h1v1h-1zM19 5h1v1h-1zM21 5h1v1h-1zM29 5h1v1h-1zM31 5h1v1h-1zM39 5h1v1h-1zM41 5h1v1h-1zM49 5h1v1h-1zM51 5h3v1h-3zM59 5h1v1h-1zM61 5h1v1h-1zM69 5h1v1h-1zM71 5h1v1h-1zM79 5h1v1h-1zM81 5h1v1h-1zM89 5h1v1h-1zM91 5h1v1h-1zM99 5h1v1h-1zM101 5h3v1h-3zM0 6h1v1h-1zM5 6h1v1h-1zM8 6h1v1h-1zM12 6h1v1h-1zM15 6h1v1h-1zM18 6h1v1h-1zM22 6h1v1h-1zM25 6h1v1h-1zM28 6h1v1h-1zM32 6h1v1h-1zM35 6h1v1h-1zM38 6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v1h-1zM73 7h1v1h-1zM77 7h1v1h-1zM83 7h1v1h-1zM87 7h1v1h-1zM93 7h1v1h-1zM100 7h1v1h-1zM102 7h2v1h-2zM8 8h1v1h-1zM12 8h1v1h-1zM18 8h1v1h-1zM22 8h1v1h-1zM28 8h1v1h-1zM32 8h1v1h-1zM38 8h1v1h-1zM42 8h1v1h-1zM49 8h2v1h-2zM53 8h2v1h-2zM58 8h1v1h-1zM62 8h1v1h-1zM68 8h1v1h-1zM72 8h1v1h-1zM78 8h1v1h-1zM82 8h1v1h-1zM88 8h1v1h-1zM92 8h1v1h-1zM99 8h2v1h-2zM103 8h2v1h-2zM9 9h1v1h-1zM11 9h1v1h-1zM19 9h1v1h-1zM21 9h1v1h-1zM29 9h1v1h-1zM31 9h1v1h-1zM39 9h1v1h-1zM41 9h1v1h-1zM48 9h2v1h-2zM59 9h1v1h-1zM61 9h1v1h-1zM69 9h1v1h-1zM71 9h1v1h-1zM79 9h1v1h-1zM81 9h1v1h-1zM89 9h1v1h-1zM91 9h1v1h-1zM98 9h2v1h-2zM10 10h1v1h-1zM20 10h1v1h-1zM30 10h1v1h-1zM40 10h1v1h-1zM48 10h1v1h-1zM60 10h1v1h-1zM70 10h1v1h-1zM80 10h1v1h-1zM90 10h1v1h-1zM98 10h1v1h-1z%22/%3E%3C/svg%3E");

  /* ornament: the band under the header (20 x 13 stitches), the zigzag divider (4 x 3), the stitched frame (22 x 22, slice 9) */
  --band: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 13%22 shape-rendering=%22crispEdges%22 width=%2220%22 height=%2213%22%3E%3Cpath fill=%22%2317120f%22 d=%22M0 0h20v1h-20zM12 2h1v1h-1zM12 3h2v1h-2zM4 4h1v1h-1zM12 4h2v1h-2zM16 4h3v1h-3zM3 5h1v1h-1zM5 5h1v1h-1zM13 5h1v1h-1zM15 5h3v1h-3zM2 6h1v1h-1zM6 6h1v1h-1zM9 6h1v1h-1zM14 6h1v1h-1zM19 6h1v1h-1zM3 7h1v1h-1zM5 7h1v1h-1zM11 7h3v1h-3zM15 7h1v1h-1zM4 8h1v1h-1zM10 8h3v1h-3zM15 8h2v1h-2zM15 9h2v1h-2zM16 10h1v1h-1zM0 12h20v1h-20z%22/%3E%3Cpath fill=%22%23a3131c%22 d=%22M4 2h1v1h-1zM16 2h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM15 3h2v1h-2zM2 4h1v1h-1zM6 4h1v1h-1zM10 4h2v1h-2zM14 4h2v1h-2zM1 5h1v1h-1zM7 5h1v1h-1zM11 5h2v1h-2zM14 5h1v1h-1zM0 6h1v1h-1zM4 6h1v1h-1zM8 6h1v1h-1zM12 6h2v1h-2zM15 6h2v1h-2zM1 7h1v1h-1zM7 7h1v1h-1zM14 7h1v1h-1zM16 7h2v1h-2zM2 8h1v1h-1zM6 8h1v1h-1zM13 8h2v1h-2zM17 8h2v1h-2zM3 9h1v1h-1zM5 9h1v1h-1zM12 9h2v1h-2zM4 10h1v1h-1zM12 10h1v1h-1z%22/%3E%3C/svg%3E");
  --zig: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 4 3%22 shape-rendering=%22crispEdges%22 width=%224%22 height=%223%22%3E%3Cpath fill=%22%23a3131c%22 d=%22M0 0h1v1h-1zM1 1h1v1h-1zM3 1h1v1h-1zM2 2h1v1h-1z%22/%3E%3C/svg%3E");
  --frame: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 22 22%22 shape-rendering=%22crispEdges%22 width=%2222%22 height=%2222%22%3E%3Cpath fill=%22%23a3131c%22 d=%22M4 0h1v1h-1zM17 0h1v1h-1zM3 1h1v1h-1zM5 1h1v1h-1zM16 1h1v1h-1zM18 1h1v1h-1zM2 2h1v1h-1zM6 2h1v1h-1zM15 2h1v1h-1zM19 2h1v1h-1zM1 3h1v1h-1zM7 3h1v1h-1zM10 3h1v1h-1zM14 3h1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1v1h-1zM0 10h1v1h-1zM21 10h1v1h-1zM0 11h1v1h-1zM21 11h1v1h-1zM0 12h1v1h-1zM21 12h1v1h-1zM4 15h1v1h-1zM17 15h1v1h-1zM3 16h1v1h-1zM5 16h1v1h-1zM16 16h1v1h-1zM18 16h1v1h-1zM2 17h1v1h-1zM6 17h1v1h-1zM15 17h1v1h-1zM19 17h1v1h-1zM3 18h1v1h-1zM5 18h1v1h-1zM16 18h1v1h-1zM18 18h1v1h-1zM4 19h1v1h-1zM17 19h1v1h-1zM9 21h4v1h-4z%22/%3E%3C/svg%3E");

  /* pixel signs, drawn on the stitch grid; use as background images at a whole multiple of their size */
  --i-star: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 9 9%22 shape-rendering=%22crispEdges%22 width=%229%22 height=%229%22%3E%3Cpath fill=%22%2317120f%22 d=%22M2 0h1v1h-1zM2 1h2v1h-2zM2 2h2v1h-2zM6 2h3v1h-3zM3 3h1v1h-1zM5 3h3v1h-3zM4 4h1v1h-1zM1 5h3v1h-3zM5 5h1v1h-1zM0 6h3v1h-3zM5 6h2v1h-2zM5 7h2v1h-2zM6 8h1v1h-1z%22/%3E%3Cpath fill=%22%23a3131c%22 d=%22M6 0h1v1h-1zM5 1h2v1h-2zM0 2h2v1h-2zM4 2h2v1h-2zM1 3h2v1h-2zM4 3h1v1h-1zM2 4h2v1h-2zM5 4h2v1h-2zM4 5h1v1h-1zM6 5h2v1h-2zM3 6h2v1h-2zM7 6h2v1h-2zM2 7h2v1h-2zM2 8h1v1h-1z%22/%3E%3C/svg%3E");              /* 9 x 9, ink and red: "here, now" */
  --i-star-cloth: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 9 9%22 shape-rendering=%22crispEdges%22 width=%229%22 height=%229%22%3E%3Cpath fill=%22%23a3131c%22 d=%22M2 0h1v1h-1zM2 1h2v1h-2zM2 2h2v1h-2zM6 2h3v1h-3zM3 3h1v1h-1zM5 3h3v1h-3zM4 4h1v1h-1zM1 5h3v1h-3zM5 5h1v1h-1zM0 6h3v1h-3zM5 6h2v1h-2zM5 7h2v1h-2zM6 8h1v1h-1z%22/%3E%3Cpath fill=%22%23f8f4ea%22 d=%22M6 0h1v1h-1zM5 1h2v1h-2zM0 2h2v1h-2zM4 2h2v1h-2zM1 3h2v1h-2zM4 3h1v1h-1zM2 4h2v1h-2zM5 4h2v1h-2zM4 5h1v1h-1zM6 5h2v1h-2zM3 6h2v1h-2zM7 6h2v1h-2zM2 7h2v1h-2zM2 8h1v1h-1z%22/%3E%3C/svg%3E");  /* 9 x 9, cloth and red: the same on a dark ground */
  --i-node: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 9 9%22 shape-rendering=%22crispEdges%22 width=%229%22 height=%229%22%3E%3Cpath fill=%22%23bdaf90%22 d=%22M4 0h1v1h-1zM3 1h1v1h-1zM5 1h1v1h-1zM2 2h1v1h-1zM4 2h1v1h-1zM6 2h1v1h-1zM1 3h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM7 3h1v1h-1zM0 4h1v1h-1zM2 4h1v1h-1zM4 4h1v1h-1zM6 4h1v1h-1zM8 4h1v1h-1zM1 5h1v1h-1zM3 5h1v1h-1zM5 5h1v1h-1zM7 5h1v1h-1zM2 6h1v1h-1zM4 6h1v1h-1zM6 6h1v1h-1zM3 7h1v1h-1zM5 7h1v1h-1zM4 8h1v1h-1z%22/%3E%3C/svg%3E");              /* 9 x 9, pale lattice rhombus: a step not reached yet */
  --i-node-done: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 9 9%22 shape-rendering=%22crispEdges%22 width=%229%22 height=%229%22%3E%3Cpath fill=%22%2317120f%22 d=%22M4 0h1v1h-1zM3 1h3v1h-3zM2 2h2v1h-2zM5 2h2v1h-2zM1 3h2v1h-2zM4 3h1v1h-1zM6 3h2v1h-2zM0 4h2v1h-2zM3 4h1v1h-1zM5 4h1v1h-1zM7 4h2v1h-2zM1 5h2v1h-2zM4 5h1v1h-1zM6 5h2v1h-2zM2 6h2v1h-2zM5 6h2v1h-2zM3 7h3v1h-3zM4 8h1v1h-1z%22/%3E%3Cpath fill=%22%23a3131c%22 d=%22M4 2h1v1h-1zM3 3h1v1h-1zM5 3h1v1h-1zM2 4h1v1h-1zM4 4h1v1h-1zM6 4h1v1h-1zM3 5h1v1h-1zM5 5h1v1h-1zM4 6h1v1h-1z%22/%3E%3C/svg%3E");    /* 9 x 9, ink rhombus with a red heart: a step passed */
  --i-rhomb: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 5 5%22 shape-rendering=%22crispEdges%22 width=%225%22 height=%225%22%3E%3Cpath fill=%22%23a3131c%22 d=%22M2 0h1v1h-1zM1 1h3v1h-3zM0 2h2v1h-2zM3 2h2v1h-2zM1 3h3v1h-3zM2 4h1v1h-1z%22/%3E%3Cpath fill=%22%2317120f%22 d=%22M2 2h1v1h-1z%22/%3E%3C/svg%3E");            /* 5 x 5, red rhombus with an ink heart: a bullet */
  --i-rhomb-cloth: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 5 5%22 shape-rendering=%22crispEdges%22 width=%225%22 height=%225%22%3E%3Cpath fill=%22%23f8f4ea%22 d=%22M2 0h1v1h-1zM1 1h3v1h-3zM0 2h2v1h-2zM3 2h2v1h-2zM1 3h3v1h-3zM2 4h1v1h-1z%22/%3E%3Cpath fill=%22%23a3131c%22 d=%22M2 2h1v1h-1z%22/%3E%3C/svg%3E");/* 5 x 5, cloth rhombus with a red heart: a bullet on a dark ground */
  --i-num: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 13 13%22 shape-rendering=%22crispEdges%22 width=%2213%22 height=%2213%22%3E%3Cpath fill=%22%23a3131c%22 d=%22M6 0h1v1h-1zM5 1h1v1h-1zM7 1h1v1h-1zM4 2h1v1h-1zM8 2h1v1h-1zM3 3h1v1h-1zM9 3h1v1h-1zM2 4h1v1h-1zM10 4h1v1h-1zM1 5h1v1h-1zM11 5h1v1h-1zM0 6h1v1h-1zM12 6h1v1h-1zM1 7h1v1h-1zM11 7h1v1h-1zM2 8h1v1h-1zM10 8h1v1h-1zM3 9h1v1h-1zM9 9h1v1h-1zM4 10h1v1h-1zM8 10h1v1h-1zM5 11h1v1h-1zM7 11h1v1h-1zM6 12h1v1h-1z%22/%3E%3C/svg%3E");                /* 13 x 13, red outline rhombus: holds a step number */
  --i-num-done: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 13 13%22 shape-rendering=%22crispEdges%22 width=%2213%22 height=%2213%22%3E%3Cpath fill=%22%23a3131c%22 d=%22M6 0h1v1h-1zM5 1h3v1h-3zM4 2h5v1h-5zM3 3h7v1h-7zM2 4h9v1h-9zM1 5h11v1h-11zM0 6h13v1h-13zM1 7h11v1h-11zM2 8h9v1h-9zM3 9h7v1h-7zM4 10h5v1h-5zM5 11h3v1h-3zM6 12h1v1h-1z%22/%3E%3C/svg%3E");      /* 13 x 13, filled red rhombus: a numbered step that is done */
  --i-num-ink: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 13 13%22 shape-rendering=%22crispEdges%22 width=%2213%22 height=%2213%22%3E%3Cpath fill=%22%2317120f%22 d=%22M6 0h1v1h-1zM5 1h3v1h-3zM4 2h5v1h-5zM3 3h7v1h-7zM2 4h9v1h-9zM1 5h11v1h-11zM0 6h13v1h-13zM1 7h11v1h-11zM2 8h9v1h-9zM3 9h7v1h-7zM4 10h5v1h-5zM5 11h3v1h-3zM6 12h1v1h-1z%22/%3E%3C/svg%3E");        /* 13 x 13, filled ink rhombus */
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 11 11%22 shape-rendering=%22crispEdges%22 width=%2211%22 height=%2211%22%3E%3Cpath fill=%22%2317120f%22 d=%22M5 0h1v1h-1zM5 1h1v1h-1zM5 2h1v1h-1zM5 3h1v1h-1zM5 4h1v1h-1zM0 5h11v1h-11zM5 6h1v1h-1zM5 7h1v1h-1zM5 8h1v1h-1zM5 9h1v1h-1zM5 10h1v1h-1z%22/%3E%3C/svg%3E");              /* 11 x 11, ink plus: "unfold" */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 7 6%22 shape-rendering=%22crispEdges%22 width=%227%22 height=%226%22%3E%3Cpath fill=%22%23f8f4ea%22 d=%22M6 0h1v1h-1zM5 1h2v1h-2zM0 2h1v1h-1zM4 2h2v1h-2zM0 3h2v1h-2zM3 3h2v1h-2zM1 4h3v1h-3zM2 5h1v1h-1z%22/%3E%3C/svg%3E");            /* 7 x 6, cloth check mark */
  --i-check-ink: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 7 6%22 shape-rendering=%22crispEdges%22 width=%227%22 height=%226%22%3E%3Cpath fill=%22%2317120f%22 d=%22M6 0h1v1h-1zM5 1h2v1h-2zM0 2h1v1h-1zM4 2h2v1h-2zM0 3h2v1h-2zM3 3h2v1h-2zM1 4h3v1h-3zM2 5h1v1h-1z%22/%3E%3C/svg%3E");    /* 7 x 6, ink check mark (also used as a mask) */
  --i-cross: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 7 7%22 shape-rendering=%22crispEdges%22 width=%227%22 height=%227%22%3E%3Cpath fill=%22%23a3131c%22 d=%22M0 0h2v1h-2zM5 0h2v1h-2zM0 1h3v1h-3zM4 1h3v1h-3zM1 2h5v1h-5zM2 3h3v1h-3zM1 4h5v1h-5zM0 5h3v1h-3zM4 5h3v1h-3zM0 6h2v1h-2zM5 6h2v1h-2z%22/%3E%3C/svg%3E");            /* 7 x 7, red cross */
  --i-cross-cloth: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 7 7%22 shape-rendering=%22crispEdges%22 width=%227%22 height=%227%22%3E%3Cpath fill=%22%23f8f4ea%22 d=%22M0 0h2v1h-2zM5 0h2v1h-2zM0 1h3v1h-3zM4 1h3v1h-3zM1 2h5v1h-5zM2 3h3v1h-3zM1 4h5v1h-5zM0 5h3v1h-3zM4 5h3v1h-3zM0 6h2v1h-2zM5 6h2v1h-2z%22/%3E%3C/svg%3E");/* 7 x 7, cloth cross */
  --i-arrow-red: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 7 7%22 shape-rendering=%22crispEdges%22 width=%227%22 height=%227%22%3E%3Cpath fill=%22%23a3131c%22 d=%22M3 0h1v1h-1zM4 1h1v1h-1zM5 2h1v1h-1zM0 3h7v1h-7zM5 4h1v1h-1zM4 5h1v1h-1zM3 6h1v1h-1z%22/%3E%3C/svg%3E");    /* 7 x 7, red arrow pointing right */
  --i-odd: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 11 11%22 shape-rendering=%22crispEdges%22 width=%2211%22 height=%2211%22%3E%3Cpath fill=%22%23c9527d%22 d=%22M2 0h1v1h-1zM1 1h3v1h-3zM0 2h5v1h-5zM1 3h3v1h-3zM2 4h1v1h-1z%22/%3E%3Cpath fill=%22%233d74b5%22 d=%22M8 0h1v1h-1zM7 1h3v1h-3zM6 2h5v1h-5zM7 3h3v1h-3zM8 4h1v1h-1z%22/%3E%3Cpath fill=%22%234c9462%22 d=%22M2 6h1v1h-1zM1 7h3v1h-3zM0 8h5v1h-5zM1 9h3v1h-3zM2 10h1v1h-1z%22/%3E%3Cpath fill=%22%237c58b3%22 d=%22M8 6h1v1h-1zM7 7h3v1h-3zM6 8h5v1h-5zM7 9h3v1h-3zM8 10h1v1h-1z%22/%3E%3C/svg%3E");                /* 11 x 11, four coloured rhombi: a hair colour off the natural scale */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
/* the fixed bars of a phone (the tab bar, the bid bar) cover the bottom of the screen: the page tells the browser so,
   and a field that takes focus or an element scrolled into view stops a stitch above them, never under them */
html { scroll-padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom, 0px) + var(--s2)); }
html:has(body.has-stickybid) { scroll-padding-bottom: calc(var(--tab) + var(--bar) + env(safe-area-inset-bottom, 0px) + var(--s2)); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--linen);
  color: var(--ink);
  font: 400 1.125rem/1.5 var(--sans);
  font-variant-numeric: lining-nums;
  padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom, 0px));
  /* a word longer than its line (an e-mail address, with text set very large) breaks instead of running off the screen */
  overflow-wrap: break-word;
}
body.has-stickybid { padding-bottom: calc(var(--tab) + var(--bar) + env(safe-area-inset-bottom, 0px)); }
img, video { max-width: 100%; }
img, svg { display: block; }
a { color: inherit; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: var(--t-page); margin: 0 0 var(--s3); }
h2 { font-size: var(--t-section); margin: var(--s6) 0 var(--s3); }
h3 { font-size: 1.3125rem; font-weight: 600; margin: 0 0 var(--s2); }
* + h3 { margin-top: var(--s5); }
p { margin: var(--s3) 0 var(--s4); }
p:empty { display: none; }
p a, li a, dd a, td a { padding-block: 13px; }   /* an inline link: a 44 px touch field, the line does not grow */
b, strong { font-weight: 700; }
hr { height: 2px; border: 0; margin: var(--s5) 0; background: var(--run); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- small helpers ---------- */
.muted { color: var(--ink-2); }
.small { font-size: 1rem; line-height: 1.4; }
.caps { font: 700 .875rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.kicker { margin: 0 0 10px; color: var(--red); font: 700 .875rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.tnum { font-variant-numeric: lining-nums tabular-nums; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row form { margin: 0; }
.zig { height: calc(3 * var(--st)); border: 0; margin: var(--s6) 0; background: var(--zig) center / calc(4 * var(--st)) calc(3 * var(--st)) repeat-x; }
.runline { height: 2px; border: 0; margin: 0; background: var(--run); }
@media (max-width: 959.98px) { .only-wide { display: none !important; } }
@media (min-width: 960px) { .only-narrow { display: none !important; } }

/* ---------- page frame ---------- */
/* .wrap centres a column and gives it the page gutters; the header, the main content and the footer each sit in one. */
.wrap { max-width: 1232px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.page { display: block; padding-top: var(--s5); padding-bottom: var(--s6); }
.page > h1:first-child, .page > .crumbs:first-child { margin-top: 0; }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.doc { max-width: 38em; margin: 0 auto; }
.doc h2 { margin-top: var(--s6); }
.doc li { margin-bottom: 6px; }
.doc ol, .doc ul { padding-left: 1.3em; }
.cols { display: grid; gap: var(--s5); }
.cols > * { min-width: 0; }
.two { display: grid; grid-template-columns: 1fr; gap: 0 var(--s3); }

/* ---------- header, ornament band, top navigation ---------- */
.top { display: flex; align-items: center; gap: var(--s4); min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; width: 27px; height: 27px; }
/* the name may wrap (only with text set very large; at any usual size it stands on one line) */
.brand { min-width: 0; }
.brand b { font: 700 1.3125rem/1 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.brand:hover { color: var(--ink); }
.top .enter { margin-left: auto; }
/* on a phone the row may wrap: with text set large «Увійти» goes under the name instead of off the screen.
   Not on a desktop, where the top menu must shrink its nickname rather than drop to a second line. */
@media (max-width: 959.98px) { .top { flex-wrap: wrap; row-gap: 0; } }
.topnav { display: none; }
/* the first stop of the keyboard: a jump over the menus to the content, seen only while it has the focus */
.skip { position: absolute; z-index: 60; left: var(--gut); top: 8px; padding: 10px 16px; background: var(--ink); color: var(--cloth); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
.skip:hover { color: var(--cloth); }
/* the content takes the focus from that jump; a ring round the whole page would say nothing */
main:focus { outline: none; }
.topnav form { margin: 0; display: inline-flex; }
.band { height: calc(13 * var(--st)); background: var(--band) center / calc(20 * var(--st)) calc(13 * var(--st)) repeat-x; }

/* ---------- phone tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  height: calc(var(--tab) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--cloth); box-shadow: 0 -2px 0 var(--ink);
}
/* The bar has a fixed height that the page reserves under its last line (body padding), and five columns of 64-78 px:
   its labels cannot follow a text size set twice as large. They stop at 16 px (the system's text multiplier does not
   apply here), the icons stay, and a label that still does not fit wraps inside its column instead of running into
   the next one. The same holds for the bid bar below. */
.tabbar, .stickybid { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 44px; min-width: 0; padding-inline: 2px; text-decoration: none; color: var(--ink); font: 700 min(.875rem, 16px)/1 var(--sans); text-align: center; overflow-wrap: anywhere; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--red); }
.tabbar a.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 24px; height: 4px; margin-left: -12px; background: var(--red); }
.tabbar a.sell { gap: 3px; }
.tabbar a.sell .dot { display: grid; place-items: center; width: 34px; height: 30px; margin-top: -2px; background: var(--red); color: var(--cloth); }
.tabbar a.sell .dot svg { width: 16px; height: 16px; }
.tabbar a.sell.on .dot { background: var(--ink); }
.tabbar .wait { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; background: var(--red); color: var(--cloth); font: 700 min(.75rem, 14px)/1 var(--sans); font-style: normal; }

/* the bid bar that stays above the tab bar on a phone while a lot can be bid on */
.stickybid {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tab) + env(safe-area-inset-bottom, 0px)); z-index: 35;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--bar); padding: 0 var(--gut);
  background: var(--cloth); box-shadow: 0 -2px 0 var(--ink);
}
/* the label is drawn as the label of the price frame is: small caps */
.stickybid small { display: block; color: var(--ink-2); font: 700 min(.78125rem, 14px)/1.1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.stickybid .amount { display: block; font: 700 min(1.3125rem, 23px)/1.15 var(--serif); white-space: nowrap; }
.stickybid .btn { min-height: 44px; padding: 6px 16px; font-size: min(1.0625rem, 18px); }
/* Under 360 px the bar is full already at the usual text size: there its words stop at that size, or the label
   would wrap above the bar and the button grow out of it. */
@media (max-width: 359.98px) {
  .stickybid small { font-size: min(.78125rem, 12.5px); }
  .stickybid .amount { font-size: min(1.3125rem, 21px); }
  .stickybid .btn { font-size: min(1.0625rem, 17px); }
}
/* the bar steps aside while the visitor is inside the bid form itself */
body:has(#bid:focus-within) .stickybid { display: none; }

/* ---------- footer ---------- */
.foot { margin-top: var(--s7); padding-bottom: var(--s6); font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.foot .zig { margin: 0 0 var(--s5); }
.foot p { margin: 0 0 var(--s2); max-width: 44em; }
/* the links stand apart by a gap; the dots between them stay in the markup for readers without styles */
.foot .links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 0; }
.foot .links a { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; padding-block: 0; color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.foot .links a:hover { color: var(--red); }

/* ---------- buttons ----------
   .btn        the primary action: a red block with an inner dashed stitch (offer, start, go);
   .btn.honey  the sealing action: black cloth with a red hem (send for review, confirm, approve, finish);
   .btn.black  the secondary action: plain black cloth;
   .btn.ghost  an ink outline, full size; .btn.quiet — a thin outline, smaller, for the way back or out;
   .danger     with .quiet or .ghost: an action that cannot be taken back (a red cross before the words);
   .big and .block change size only. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 22px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--red); color: var(--cloth); font: 700 1.125rem/1.15 var(--sans); text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s;
}
.btn::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(248, 244, 234, .6); pointer-events: none; }
/* a touch screen keeps :hover after a tap (also after a cancelled confirm dialog), so a tapped outline would stay filled:
   every fill under the pointer is for a real pointer only, each wrapped where it stood so the order of the rules is kept;
   on touch a button answers while the finger is on it (:active) and returns to its own look when the finger is lifted */
@media (hover: hover) { .btn:hover { background: var(--red-deep); } }
.btn:hover { color: var(--cloth); }   /* a link turns red under the pointer; a button keeps its thread */
.btn:active { background: #5f0810; }
.btn.black { background: var(--ink); }
@media (hover: hover) { .btn.black:hover { background: var(--ink-soft); } }
.btn.honey { background: var(--ink); box-shadow: inset 0 -4px 0 var(--red); padding-bottom: 12px; }
.btn.honey::after { inset: 4px 4px 8px; border-color: rgba(248, 244, 234, .5); }
@media (hover: hover) { .btn.honey:hover { background: var(--ink-soft); } }
.btn.honey:active { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost::after { border-color: transparent; }
@media (hover: hover) { .btn.ghost:hover { background: var(--ink); color: var(--cloth); } }
.btn.quiet { min-height: 44px; padding: 8px 16px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 400; font-size: 1.0625rem; }
.btn.quiet::after { display: none; }
@media (hover: hover) { .btn.quiet:hover { background: var(--ink); color: var(--cloth); } }
.btn.big { min-height: 58px; font-size: 1.25rem; }
.btn.block { display: flex; width: 100%; }
/* .danger marks an action that cannot be taken back (delete, take off publication, reject, block, call a deal off):
   never the red block; an outline with a red cross before the words, red cloth only under a real pointer.
   It goes with .quiet or .ghost, which give the size. */
.btn.danger::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--i-cross) center / 14px 14px no-repeat; }
@media (hover: hover) {
  .btn.danger:hover { background: var(--red-deep); color: var(--cloth); box-shadow: none; }
  .btn.danger:hover::before { background-image: var(--i-cross-cloth); }
}
@media (hover: none) {
  .btn.ghost:active, .btn.quiet:active { background: var(--ink); color: var(--cloth); }
  .btn.danger:active::before { background-image: var(--i-cross-cloth); }
}
/* a button that cannot be pressed stays pale under the pointer too, whatever its variant */
.btn[disabled], .btn[disabled]:hover { background: var(--line); color: var(--ink-2); box-shadow: none; cursor: default; }
/* a link that is a button: it reads as a link, and keeps a 44 px touch field without pushing the lines apart */
.link {
  display: inline-block; min-height: 44px; margin-block: -9px; padding: 0; border: 0; background: none; cursor: pointer;
  color: inherit; font: inherit; text-align: left;
  text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.link:hover { color: var(--red); }

/* ---------- notes and flash messages ----------
   A note is a strip of lighter cloth with a hem on the left and a sign that tells its kind, so colour is never alone:
   plain — a rhombus; .warn/.warning — a star and a red hem; .error — a red cross in a red outline; .success — a check mark. */
.note {
  position: relative; margin: var(--s3) 0 var(--s4); padding: 14px 14px 14px 53px; min-height: 55px;
  background: var(--panel); box-shadow: inset 4px 0 0 var(--ink); font-size: 1.0625rem; line-height: 1.4;
}
.note::before { content: ""; position: absolute; left: 15px; top: 14px; width: 27px; height: 27px; background: var(--i-node-done) center / 27px 27px no-repeat; }
.note p { margin: 0; }
.note p + p, .note p + form, .note form + p { margin-top: var(--s2); }
.note.warn, .note.warning { box-shadow: inset 4px 0 0 var(--red); }
.note.warn::before, .note.warning::before { background-image: var(--i-star); }
.note.error { background: var(--cloth); box-shadow: inset 4px 0 0 var(--red), inset 0 0 0 1.5px var(--red); }
.note.error::before { background: var(--i-cross) center / 21px 21px no-repeat; }
.note.success::before { background: var(--i-check-ink) center / 21px 18px no-repeat; }
/* the notes that base.html prints above the page (flash messages, the reminder to confirm the address) belong to the content
   under them: where the page is one narrow column they take the column's width instead of the whole wrap */
.page:has(> .narrow) > .note, .page:has(> .myprofile) > .note { max-width: 520px; margin-inline: auto; }

/* ---------- forms ---------- */
:where(input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=hidden]), select, textarea) {
  width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-bottom: 2px solid var(--ink); border-radius: 0;
  background-color: var(--cloth); color: var(--ink); font: 400 1.125rem/1.3 var(--sans); appearance: none; -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6b6054; opacity: 1; }
:where(input:not([type=checkbox], [type=radio], [type=range], [type=file]), select, textarea):hover { border-color: var(--ink); }
/* focus has two looks on the whole site: a field one types in takes a solid red frame; everything one presses or ticks
   (links, buttons, tags, check boxes) takes the dashed ink ring. A ticked box is red itself, so a red ring could not be seen on it. */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 0; border-color: var(--red); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
/* a field to be read, not filled in (a link to copy, a key to type elsewhere): page linen and a dashed edge instead of
   bleached cloth with an ink hem, so it reads as such on a panel and on the page alike and never melts into either */
input[readonly], textarea[readonly] { border: 1px dashed var(--ink); background-color: var(--linen); }
input[type=checkbox], input[type=radio] { accent-color: var(--red); }
.field { margin: 0 0 var(--s5); }
.field > label:not(.check), .field > .label { display: block; font: 700 1.125rem/1.25 var(--sans); margin-bottom: 6px; }
.opt { font-weight: 400; font-size: 1rem; color: var(--ink-2); }
.help { display: block; font-size: 1rem; font-weight: 400; line-height: 1.4; color: var(--ink-2); margin-top: 6px; }
/* the password rules come from the framework as a list inside the help line: rhombi instead of the browser's bullets */
.help ul { list-style: none; margin: 0; padding: 0; }
.help li { position: relative; margin: 0 0 4px; padding-left: 20px; }
.help li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; background: var(--i-rhomb) center / 10px 10px no-repeat; }
/* an error under a field: red thread, a cross before the words, a red hem on the field itself */
.errorlist { list-style: none; margin: 8px 0 0; padding: 0; color: var(--red); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.errorlist li { position: relative; padding-left: 22px; }
.errorlist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; background: var(--i-cross) center / 14px 14px no-repeat; }
.field.bad input, .field.bad textarea, .field.bad select { border-color: var(--red); border-bottom-color: var(--red); }
.field.bad .pills span, .field.bad .tint { box-shadow: inset 0 0 0 1.5px var(--red), inset 0 -2px 0 var(--red); }

/* a check box with its sentence */
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 46px; padding: 10px 0; font-size: 1.0625rem; line-height: 1.4; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 0; background: var(--cloth); box-shadow: inset 0 0 0 1.5px var(--ink); cursor: pointer; }
.check input:checked { background: var(--red) var(--i-check) center / 14px 12px no-repeat; box-shadow: none; }
.check input:disabled { opacity: .45; cursor: default; }
/* a refused form: the box that had to be ticked and was not takes a red edge */
.field.bad .check input:not(:checked) { box-shadow: inset 0 0 0 2px var(--red); }
.field > .check { margin: 0; }

/* pills: one or several of a few (radio or check boxes hidden inside labels) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
/* the hidden input fills its tag: a browser that brings the focused input into view then brings the whole tag,
   and it stops above the tab bar of a phone instead of half under it */
.pills input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.pills span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px;
  background: var(--cloth); box-shadow: inset 0 0 0 1px var(--line), inset 0 -2px 0 var(--ink); font-size: 1.125rem; line-height: 1.15; transition: background-color .15s;
}
.pills label:hover span { box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 -2px 0 var(--ink); }
.pills input:checked + span { background: var(--ink); color: var(--cloth); font-weight: 700; box-shadow: inset 0 -4px 0 var(--red); }
.pills input:focus-visible + span { outline: 3px dashed var(--ink); outline-offset: 3px; }

/* ---------- deal terms: the five-level selector ----------
   The word always carries the meaning; thread colour and weight only support it:
   must — red cloth; want — red outline; any — pale outline; unwanted — ink outline; impossible — black cloth. */
.lv { display: inline-block; padding: 3px 9px 2px; font: 700 1rem/1.25 var(--sans); letter-spacing: .02em; white-space: nowrap; }
.lv-must { background: var(--red); color: var(--cloth); }
.lv-want { color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.lv-any { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--pale); }
.lv-unwanted { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lv-impossible { background: var(--ink); color: var(--cloth); }

.legend { margin: 0 0 10px; }
.termtools { margin: 0 0 4px; text-align: right; }
.term { padding: 6px 0; background: var(--run) top / auto 2px repeat-x; }
.term > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 48px; padding: 6px 0; }
.term > summary::-webkit-details-marker { display: none; }
.term .q { flex: 1 0 100%; min-width: 0; font-weight: 700; }
/* the chip and «змінити» stay on one line while they fit; with text set very large «змінити» goes under the chip */
.term .now { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; flex: none; max-width: 100%; }
.term .now .lv { white-space: normal; }
.term .change::after { content: "змінити"; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.term[open] .change::after { content: "згорнути"; }
/* Without the script the chip beside a term is the answer the page came with and does not follow a new choice:
   once another level is pressed (the checked one is no longer the one marked in the markup) the chip steps aside,
   and the pressed level below, with its check mark, is the only answer in sight. */
html:not(.js) .term:has(.levels input:checked:not([checked])) [data-term-chip] { display: none; }
.term[open] > summary { margin-bottom: 6px; }
.term .theirs { display: block; margin: 2px 0 0; font-size: 1rem; font-weight: 400; color: var(--ink-2); }
.term .errorlist { margin-bottom: 8px; }
/* the five levels share the room their term has, not the screen (the bid panel beside the photographs is as narrow
   as a phone): as many in a row as fit at 132px, and every row is stretched to the full width, so a level never
   stands alone in a part of a row */
.levels { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; }
.levels label { position: relative; flex: 1 1 132px; min-width: 0; cursor: pointer; }
/* on a phone never more than two in a row (one where two do not fit): two, two and the last one whole */
@media (max-width: 639.98px) {
  .levels label { flex-basis: max(132px, 34%); }
}
/* the hidden input fills its level, for the same reason as in .pills */
.levels input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.levels span {
  display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 6px 8px; text-align: center;
  background: var(--cloth); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 1rem; line-height: 1.1; transition: background-color .15s;
}
.levels label:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.levels input:checked + span { font-weight: 700; }
/* the chosen level carries a check mark besides its thread, so the choice never rests on colour alone */
.levels input:checked + span::before { content: ""; flex: none; width: 14px; height: 12px; background: currentColor; -webkit-mask: var(--i-check-ink) center / 14px 12px no-repeat; mask: var(--i-check-ink) center / 14px 12px no-repeat; }
.levels label:nth-child(1) input:checked + span { background: var(--red); color: var(--cloth); box-shadow: none; }
.levels label:nth-child(2) input:checked + span { background: var(--cloth); color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.levels label:nth-child(3) input:checked + span { background: var(--ground); color: var(--ink); box-shadow: inset 0 0 0 2px var(--pale); }
.levels label:nth-child(4) input:checked + span { background: var(--cloth); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.levels label:nth-child(5) input:checked + span { background: var(--ink); color: var(--cloth); box-shadow: none; }
.levels input:focus-visible + span { outline: 3px dashed var(--ink); outline-offset: 3px; }
.term.clash { margin: 0 -10px; padding: 6px 10px; background: var(--cloth); box-shadow: inset 0 0 0 2px var(--red); }
.term .clashmsg { display: none; position: relative; margin: 0 0 10px; padding-left: 22px; color: var(--red); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.term .clashmsg::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; background: var(--i-cross) center / 14px 14px no-repeat; }
.term.clash .clashmsg { display: block; }
/* a row is the term and its level chip side by side; when both do not fit on one line (a long term name with text set
   very large) the chip moves under the name, at the right, instead of pushing the table past the screen */
table.terms { display: block; width: 100%; border-collapse: collapse; }
table.terms > tbody { display: block; }
table.terms th { flex: 1 1 0; min-width: min-content; text-align: left; font-weight: 400; padding: 11px 12px 11px 0; overflow-wrap: break-word; }
table.terms td { flex: none; max-width: 100%; margin-left: auto; text-align: right; padding: 11px 0; }
table.terms td .lv { white-space: normal; }
table.terms tr { display: flex; flex-wrap: wrap; align-items: center; background: var(--run) top / auto 2px repeat-x; }
table.terms tr:first-child { background: none; }

/* ---------- hair colour ----------
   .swatches is the plain fallback (radio buttons); app.js tucks it away and builds the .tint slider over it. */
.swatch { display: inline-block; flex: none; width: 14px; height: 14px; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(23, 18, 15, .45); }
.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.swatches label { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 1rem; line-height: 1.2; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches i { flex: none; display: block; width: 44px; height: 44px; box-shadow: inset 0 0 0 1px rgba(23, 18, 15, .35); }
.swatches label:hover i { box-shadow: inset 0 0 0 3px var(--ink); }
.swatches input:checked + i { box-shadow: inset 0 0 0 3px var(--cloth), 0 0 0 3px var(--red); }
.swatches input:focus-visible + i { outline: 3px dashed var(--ink); outline-offset: 5px; }

/* the plain controls under the slider still carry the values and are sent with the form; they are hidden from sight,
   from the Tab order and from a screen reader (the slider has names of its own), so focus never goes where nothing shows */
.tucked { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); visibility: hidden; }
.tint { padding: 14px 14px 10px; background: var(--cloth); box-shadow: inset 0 0 0 1px var(--line), inset 0 -2px 0 var(--ink); }
.tint-now { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; min-height: 60px; }
/* the chosen colour as a square of hair: thin strands drawn over the colour */
.tint-now i {
  flex: none; width: 60px; height: 60px; box-shadow: inset 0 0 0 1px rgba(23, 18, 15, .35);
  background-image: repeating-linear-gradient(92deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 4px, rgba(0, 0, 0, .14) 4px 5px, transparent 5px 9px);
  transition: background-color .12s linear;
}
.tint.dual .tint-now i { width: 46px; height: 46px; }
.tint.dual .tint-now i + i { margin-left: -8px; }
.tint-now b { font: 700 1.25rem/1.2 var(--serif); }
.tint.unset .tint-now i { background: var(--weave), var(--ground); background-size: 3px 3px, 3px 3px, auto; box-shadow: inset 0 0 0 1px var(--pale); }
.tint.unset .tint-now b { font: 400 1.125rem/1.3 var(--sans); color: var(--ink-2); }
.tint.odd .tint-now i { background: var(--cloth) var(--i-odd) center / 33px 33px no-repeat; }
.tint.odd.dual .tint-now i + i { display: none; }
/* The rail draws the track; the range inputs above it only carry the thumbs. */
.tint-rail { position: relative; height: 44px; }
.tint-rail::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 22px; box-shadow: inset 0 0 0 1px rgba(23, 18, 15, .45);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 4px), var(--tint-track);
}
/* In range mode everything outside the two thumbs is veiled. */
.tint.dual .tint-rail::before {
  background:
    linear-gradient(90deg, rgba(248, 244, 234, .8) 0 var(--tint-lo, 0%), transparent var(--tint-lo, 0%) var(--tint-hi, 100%), rgba(248, 244, 234, .8) var(--tint-hi, 100%) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 4px), var(--tint-track);
}
.tint-range {
  -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 44px; min-height: 0; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; cursor: grab; touch-action: pan-y;
}
.tint-range:active { cursor: grabbing; }
.tint-range::-webkit-slider-runnable-track { height: 22px; background: none; }
.tint-range::-moz-range-track { height: 22px; background: none; }
/* the thumb stays 36 px wide: app.js places the veil by that width */
.tint-range::-webkit-slider-thumb {
  -webkit-appearance: none; box-sizing: border-box; width: 36px; height: 36px; margin-top: -7px; border-radius: 0;
  background: var(--tint-c, #8b5c36); border: 4px solid var(--cloth); box-shadow: 0 0 0 2px var(--ink);
}
.tint-range::-moz-range-thumb {
  box-sizing: border-box; width: 36px; height: 36px; border-radius: 0;
  background: var(--tint-c, #8b5c36); border: 4px solid var(--cloth); box-shadow: 0 0 0 2px var(--ink);
}
/* Two inputs lie on one rail: only the thumbs take the pointer, so each can be reached. */
.tint.dual .tint-range { pointer-events: none; }
.tint.dual .tint-range::-webkit-slider-thumb { pointer-events: auto; }
.tint.dual .tint-range::-moz-range-thumb { pointer-events: auto; }
.tint-range:focus, .tint-range:focus-visible { outline: none; box-shadow: none; }
.tint-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--cloth), 0 0 0 7px var(--red); }
.tint-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--cloth), 0 0 0 7px var(--red); }
/* both thumbs of a range on one level (the class «same» is the script's): a second ring says there are two */
.tint.dual.same .tint-range::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--cloth), 0 0 0 7px var(--ink); }
.tint.dual.same .tint-range::-moz-range-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--cloth), 0 0 0 7px var(--ink); }
.tint.dual.same .tint-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--cloth), 0 0 0 7px var(--red); }
.tint.dual.same .tint-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--cloth), 0 0 0 7px var(--red); }
.tint.unset .tint-range::-webkit-slider-thumb { background: var(--cloth); }
.tint.unset .tint-range::-moz-range-thumb { background: var(--cloth); }
.tint.odd .tint-rail { opacity: .35; }
.tint.odd .tint-range { cursor: default; }
.tint-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 2px; color: var(--ink-2); font-size: 1rem; line-height: 1.3; }
.tint-ends span:last-child { text-align: right; }
.tint-red { margin-top: 12px; padding-top: 12px; background: var(--ghost) top / auto 2px repeat-x; }
.tint-red[hidden], .tint-odd[hidden] { display: none; }
.tint.odd .tint-red { opacity: .45; }
[data-tint-other][hidden] { display: none; }
[data-tint-other] { margin-top: 14px; }

/* ---------- panels, frames, chips ---------- */
.panel { margin: 0 0 var(--s5); padding: var(--s4); background: var(--panel); box-shadow: inset 0 3px 0 var(--ink); }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel > h2:first-child, .panel > h3:first-child { margin-bottom: var(--s3); }
/* a panel or a frame is titled on the panel rung, whatever page it stands on */
.panel h2, .frame h2 { font-size: var(--t-panel); }
.auth { padding: var(--s5) var(--s4); }
.auth h1 { margin-bottom: var(--s2); font-size: var(--t-long); }

/* the stitched frame with corner rhombi: for the number that matters (a price, a code) */
.pricebox, .codebox, .frame {
  padding: 10px 12px 14px; background: var(--cloth);
  border: calc(9 * var(--st)) solid var(--ink); border-image: var(--frame) 9 / calc(9 * var(--st)) / 0 round;
}
.pricebox { margin: var(--s4) 0 var(--s3); }
.pricebox .lbl { display: block; color: var(--ink-2); font: 700 .875rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
/* The amount never breaks inside itself and is already the largest text of its page: it does not take the system's
   text multiplier, and a large default text of the browser (rem) is followed only as far as a phone screen allows. */
.pricebox .amount, .amount { display: block; font: 700 min(2.875rem, 15vw)/1.05 var(--serif); letter-spacing: -.02em; margin: 6px 0 8px; white-space: nowrap; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.pricebox > p { margin: var(--s3) 0 0; }
.price { font-weight: 700; white-space: nowrap; }

/* a state chip: the word says the state; the thread only supports it */
.state { display: inline-block; padding: 4px 9px 3px; background: var(--red); color: var(--cloth); font: 700 .84375rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.state.deal, .state.open { background: var(--ink); }   /* a lot in a deal, a deal that goes on */
.state.done { background: var(--cloth); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.state.done::before { content: ""; display: inline-block; width: 14px; height: 12px; margin-right: 6px; vertical-align: -1px; background: var(--i-check-ink) center / 14px 12px no-repeat; }
.state.moderation { background: var(--cloth); color: var(--ink); outline: 1.5px dashed var(--ink); outline-offset: -1.5px; }
.state.rework { background: var(--cloth); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.state.rejected, .state.cancelled { background: var(--ink-2); color: var(--cloth); }
.state.draft, .state.unpublished, .state.archived { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--pale); }

/* the moderator's mark, sewn on: used on lots that passed the check */
.stamp { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 4px; background: var(--cloth); color: var(--red); outline: 1px dashed var(--red); outline-offset: -3px; font: 700 .875rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.stamp::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--i-rhomb) center / 10px 10px no-repeat; }
/* the small one is smaller by its margins and spacing; its letters stay at 14 px, the least that reads easily */
.stamp.small { padding: 4px 7px 3px; font-size: .875rem; letter-spacing: .06em; }

/* a photograph on its mount: lighter cloth, a thin margin, a stitch in every corner */
.mount {
  position: relative; padding: 8px;
  background: var(--i-rhomb) left 1px top 1px / 5px 5px no-repeat, var(--i-rhomb) right 1px top 1px / 5px 5px no-repeat,
    var(--i-rhomb) left 1px bottom 1px / 5px 5px no-repeat, var(--i-rhomb) right 1px bottom 1px / 5px 5px no-repeat, var(--cloth);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- the measuring ribbon ----------
   It never lies over a photograph and never claims to be the picture's scale: it shows the length from the description.
   <span class="ribbon" style="--cm: 70"><span class="fill"></span></span>; --m is the width of one centimetre (1px unless a parent sets it). */
.ribbon { position: relative; display: block; height: calc(13 * var(--m, 1px)); background: var(--tape-bare) 0 0 / calc(105 * var(--m, 1px)) calc(13 * var(--m, 1px)) no-repeat; }
.ribbon .fill { position: absolute; inset: 0 auto 0 0; display: block; width: calc((var(--cm) + 1) * var(--m, 1px)); max-width: 100%; background: var(--tape-sewn) 0 0 / calc(105 * var(--m, 1px)) calc(13 * var(--m, 1px)) no-repeat; }
.ribbon .fill::after { content: ""; position: absolute; right: calc(var(--m, 1px) / 2 - 1px); top: -5px; bottom: -5px; width: 2px; background: var(--red); }
/* the hem under a catalogue photo: the ribbon and the stated length on a strip of ground cloth */
.hem { display: flex; align-items: center; gap: 6px; padding: 5px; overflow: hidden; background: var(--weave), var(--ground); background-size: 3px 3px, 3px 3px, auto; }
.hem .ribbon { flex: none; width: calc(105 * var(--m, 1px)); }
.hem .ribbon .fill::after { top: -3px; bottom: -3px; }
.hem b { margin-left: auto; font: 700 1rem/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
/* the large ribbon with a scale of tens under it: <div class="mira"><span class="ribbon">…</span><ol><li>10</li>…<li>100</li></ol></div> */
.mira { --m: 3px; width: calc(105 * var(--m, 1px)); max-width: 100%; margin: var(--s4) 0 var(--s2); }
/* the numbers of the scale are part of the drawing: they keep their size, or «100» would stand past the ribbon's end */
.mira ol { display: grid; grid-template-columns: repeat(10, 1fr); width: calc(100 * var(--m, 1px)); margin: 7px 0 0 calc(var(--m, 1px) / 2); padding: 0; list-style: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-size: 13px; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mira li { text-align: center; transform: translateX(50%); }
.mira li:nth-child(5n) { color: var(--ink); font-weight: 700; }
@media (max-width: 359.98px) { .mira { --m: 2.5px; } }

/* ---------- sub-tabs and list rows ---------- */
.subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s3) 0 var(--s5); }
.subtabs a { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 14px; box-shadow: inset 0 0 0 1.5px var(--ink); text-decoration: none; font-size: 1.0625rem; line-height: 1.1; transition: background-color .15s; }
.subtabs a:hover { background: var(--panel); color: var(--ink); }
.subtabs a.on { background: var(--ink); color: var(--cloth); font-weight: 700; }
.rows { display: grid; }
.item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 14px 0; background: var(--run) bottom / auto 2px repeat-x; color: var(--ink); text-decoration: none; }
.item:has(> .th) { grid-template-columns: 72px minmax(0, 1fr); }
.rows > .item:first-child { background: var(--run) top / auto 2px repeat-x, var(--run) bottom / auto 2px repeat-x; }
.item:hover { color: var(--ink); }
.item .th { display: block; width: 72px; height: 72px; object-fit: cover; background: var(--weave), var(--ground); background-size: 3px 3px, 3px 3px, auto; outline: 1px solid rgba(23, 18, 15, .22); outline-offset: -1px; }
/* a title is free text of up to 80 characters: one long word breaks inside the row, like the meta line below */
.item b { display: block; font: 700 1.25rem/1.2 var(--serif); overflow-wrap: anywhere; }
a.item:hover b { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.item .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 6px; font-size: 1rem; line-height: 1.3; color: var(--ink-2); }
/* one long word (a 30-character nickname, a village name) wraps inside the row and never pushes the list sideways */
.item .meta > * { min-width: 0; overflow-wrap: anywhere; }
.item .meta .state { white-space: normal; }
.item .meta .price { color: var(--ink); font: 700 1.125rem/1.2 var(--serif); }
.item .next { grid-column: 1 / -1; font-size: 1rem; line-height: 1.35; font-weight: 700; color: var(--red); }
.item .next:empty { display: none; }
.empty { margin: var(--s4) 0; padding: var(--s6) var(--s4); text-align: center; color: var(--ink-2); background: var(--run) top / auto 2px repeat-x, var(--run) bottom / auto 2px repeat-x; }
.empty::before { content: ""; display: block; width: 27px; height: 27px; margin: 0 auto var(--s3); background: var(--i-node) center / 27px 27px no-repeat; }
.empty h3 { margin-bottom: 6px; color: var(--ink); }
/* a page that is not there or is not for this person (404, 403, 500): the same block, titled on the page rung */
.empty.lost { margin-top: var(--s5); padding-block: var(--s7); }
.empty.lost h1 { color: var(--ink); text-wrap: balance; }
.empty.lost .btn { margin-top: var(--s2); }
.empty.lost .lostacts { justify-content: center; }
.empty p { margin: var(--s2) auto; max-width: 30em; }
.empty > :last-child { margin-bottom: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin: var(--s6) 0 0; }

/* ---------- catalogue ---------- */
.hero { padding: 0 0 var(--s5); }
.hero h1 { font-size: 2.25rem; line-height: 1.05; margin: 0 0 var(--s3); }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--red); }
.lead, .hero p.lead { margin: 0 0 20px; max-width: 34em; font-size: 1.125rem; color: var(--ink-2); }
.doors { display: grid; gap: 10px; }
.door {
  position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 86px; padding: 14px 18px 14px 20px;
  background: var(--ink); color: var(--cloth); text-decoration: none; transition: background-color .15s;
}
.door::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(248, 244, 234, .5); pointer-events: none; }
.door:first-child { background: var(--red); }
.door:hover { background: var(--ink-soft); color: var(--cloth); }
.door:first-child:hover { background: var(--red-deep); }
.door b { display: block; font: 700 1.5625rem/1.1 var(--serif); margin-bottom: 4px; }
.door span span { display: block; font-size: 1rem; line-height: 1.3; color: #f3e9dc; }
.how { display: grid; gap: var(--s5); margin: 0 0 var(--s5); }
.how article { position: relative; min-width: 0; padding-left: 53px; min-height: 39px; }
.how .num { position: absolute; left: 0; top: 0; width: 39px; height: 39px; display: grid; place-items: center; font: 700 1.0625rem/1 var(--serif); background: var(--i-num) center / 39px 39px no-repeat; }
.how h3 { margin: 4px 0 6px; }
.how p { margin: 0; color: var(--ink-2); }
.promise { list-style: none; margin: var(--s5) 0; padding: var(--s4) 0; display: grid; gap: var(--s3); background: var(--run) top / auto 2px repeat-x, var(--run) bottom / auto 2px repeat-x; }
.promise li { position: relative; padding-left: 27px; }
.promise li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; background: var(--i-rhomb) center / 15px 15px no-repeat; }
.sectionhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--s4); margin: var(--s5) 0 var(--s4); }
.sectionhead h2 { margin: 0; }
.sectionhead a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0 0 var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s3); }
.chip { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 13px; box-shadow: inset 0 0 0 1.5px var(--ink); text-decoration: none; font-size: 1.0625rem; line-height: 1.1; background: transparent; transition: background-color .15s; }
.chip:hover { background: var(--panel); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--cloth); font-weight: 700; }
details > summary::-webkit-details-marker { display: none; }
details.more { margin: 0 0 var(--s5); background: var(--run) bottom / auto 2px repeat-x; }
details.more > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 700; }
details.more > summary::before { content: ""; flex: none; width: 22px; height: 22px; background: var(--i-plus) center / 22px 22px no-repeat; transition: transform .15s; }
details.more[open] > summary::before { transform: rotate(45deg); }
details.more .inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); align-items: end; padding: 4px 0 var(--s5); }
details.more .inner label, details.more .inner .tintfield > .label { display: block; font-size: 1rem; font-weight: 700; }
details.more .inner label > input, details.more .inner label > select { margin-top: 6px; }
details.more .inner label.check { display: flex; font-size: 1.0625rem; font-weight: 400; }
details.more .inner .btn { grid-column: 1 / -1; }
details.more .inner .tintfield { grid-column: 1 / -1; }
details.more .inner .tintfield > .label { margin-bottom: 6px; }
details.more .inner .tintfield .plain { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: end; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding-bottom: var(--s3); background: var(--run) bottom / auto 2px repeat-x; color: var(--ink); text-decoration: none; }
.card:hover { color: var(--ink); }
.card .ph { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--weave), var(--ground); background-size: 3px 3px, 3px 3px, auto; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(23, 18, 15, .22); outline-offset: -1px; }
.card .ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.card:hover .ph::after { box-shadow: inset 0 0 0 2px var(--ink); }
/* plates over the photo: solid, so they read over any picture */
.badge { position: absolute; z-index: 1; left: 0; top: 0; padding: 5px 8px 4px; background: var(--ink); color: var(--cloth); font: 700 .875rem/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.card .body { display: flex; flex-direction: column; gap: 3px; padding-top: 10px; flex: 1; }
.card .body b { font: 700 1.125rem/1.2 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .body b { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.card .where { font-size: 1rem; line-height: 1.25; color: var(--ink-2); }
.card .price { margin-top: auto; padding-top: 6px; font: 700 1.5rem/1.1 var(--serif); letter-spacing: -.01em; }
.card .price small { display: block; font: 400 1rem/1.3 var(--sans); letter-spacing: 0; color: var(--ink-2); }

/* ---------- lot page ---------- */
.crumbs { font-size: 1rem; color: var(--ink-2); margin: 0 0 var(--s2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.lot { display: grid; gap: var(--s4); }
.lot > * { min-width: 0; }
.noimg { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--ink-2); background: var(--weave), var(--ground); background-size: 3px 3px, 3px 3px, auto; }
.prose { max-width: 38em; overflow-wrap: break-word; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); margin: 0; }
.fact { padding: 10px 0 11px; background: var(--run) top / auto 2px repeat-x; }
.fact.wide { grid-column: 1 / -1; }
.fact dt { font: 700 .84375rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 3px; }
.fact dd { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
.fact dd .swatch { vertical-align: -2px; margin-right: 8px; }
/* an explanation in passing: a rhombus and a sentence */
.explain { position: relative; margin: 0 0 var(--s4); padding-left: 27px; font-size: 1.0625rem; line-height: 1.4; }
.explain::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; background: var(--i-rhomb) center / 15px 15px no-repeat; }
.explain > svg { display: none; }
.amountrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.amountrow input { font: 700 1.875rem/1 var(--serif); min-height: 64px; letter-spacing: -.01em; }
.amountrow .cur { display: grid; place-items: center; padding: 0 16px; background: var(--ink); color: var(--cloth); font: 600 1.25rem var(--serif); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quick .btn.quiet { font-weight: 700; }
.feed { width: 100%; border-collapse: collapse; }
.feed tr { background: var(--run) top / auto 2px repeat-x; }
.feed tr:first-child { background: none; }
.feed td { padding: 11px 12px 11px 0; vertical-align: top; line-height: 1.3; }
.feed td:last-child { padding-right: 0; }
/* the amount keeps its size against the system's text multiplier: its column is a fixed 7.2em on a phone */
.feed td:first-child:not(:only-child) { font: 700 1.3125rem/1.2 var(--serif); white-space: nowrap; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.feed tr.mine td { font-weight: 700; }
.feed tr.mine td .small { font-weight: 400; }
.feed .off { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.bidcard { margin: 0 0 var(--s4); padding: var(--s4); background: var(--cloth); box-shadow: inset 0 0 0 1px var(--line), inset 0 3px 0 var(--ink); }
.bidcard .head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.bidcard .head b { font: 700 1.875rem/1.05 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.bidcard .head a { display: inline-flex; align-items: center; min-height: 44px; }
.bidcard details { margin: 10px 0; }
.bidcard summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ---------- selling: the choice of kind and the wizard ---------- */
.choices { display: grid; gap: 8px; }
.choices > *, .choice > span { min-width: 0; }
.choice { position: relative; display: block; min-height: 68px; padding: 12px 14px 13px 54px; background: var(--cloth); box-shadow: inset 0 0 0 1px var(--line), inset 0 -2px 0 var(--ink); color: var(--ink); text-decoration: none; transition: background-color .15s; }
.choice::before { content: ""; position: absolute; left: 14px; top: 14px; width: 27px; height: 27px; background: var(--i-node) center / 27px 27px no-repeat; }
.choice:hover { background: var(--ink); color: var(--cloth); box-shadow: inset 0 -4px 0 var(--red); }
.choice:hover::before { background-image: var(--i-star-cloth); }
.choice .ico { display: none; }
.choice b { display: block; font: 700 1.25rem/1.2 var(--serif); margin-bottom: 3px; }
.choice span span { display: block; font-size: 1rem; line-height: 1.35; color: var(--ink-2); }
.choice:hover span span { color: #e6dccb; }

/* the steps of the wizard: one seam through all the signs; passed steps are sewn in red, the current one is a star */
.steps { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); list-style: none; margin: var(--s4) 0 var(--s5); padding: 0; }
/* Five names in five fifths of a phone's row: like the tab bar, the names keep their size (at most 16 px) when text is
   set very large, since each step's own heading below says its name at full size; a name that still does not fit
   breaks inside its column, never over the next one. */
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding-inline: 2px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-size: min(1rem, 16px); line-height: 1.1; color: var(--ink-2); text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.steps li::before { content: ""; position: relative; z-index: 1; width: 33px; height: 27px; background: var(--i-node) center / 27px 27px no-repeat var(--bg, var(--linen)); }
.steps li::after { content: ""; position: absolute; left: 50%; top: 13px; width: 100%; height: 2px; background: var(--ghost); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); cursor: pointer; }
/* In the edit form a forward step name is pressable too (F89); app.js gives it role=button. */
.steps li[role=button] { cursor: pointer; }
.steps li.done::before { background-image: var(--i-node-done); }
.steps li.done::after { background: var(--run-red); }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now::before { background-image: var(--i-star); }
.wizard .step h2 { margin-top: 0; }
.wizard .step > p.lead, .lead-plain { margin-top: 0; color: var(--ink-2); }
.js .wizard .step { display: none; }
.js .wizard .step.now { display: block; }
.wiznav { display: none; gap: 10px; margin-top: var(--s2); padding-top: var(--s5); background: var(--run) top / auto 2px repeat-x; }
.js .wiznav { display: flex; }
.wiznav [data-back] { flex: 0 0 auto; }
.wiznav [data-next], .wiznav [data-finish] { flex: 1 1 0; }
.js .wizard .nojs-submit { display: none; }
/* the photo drop zone and the previews */
.drop { position: relative; display: block; padding: var(--s5) var(--s4); text-align: center; background: var(--cloth); outline: 2px dashed var(--ink); outline-offset: -2px; cursor: pointer; transition: background-color .15s; }
.drop:hover { background: var(--panel); }
.drop b { display: block; font: 700 1.3125rem/1.2 var(--serif); margin-bottom: 4px; }
.drop span { display: block; font-size: 1rem; line-height: 1.35; }
/* Without the script the browser's own file field stays in sight under the words: it is the only thing that shows
   which files were chosen. With the script the field is invisible and lies over the whole box, so a press anywhere
   opens the choice and files dragged from a computer are dropped right on it; the script writes what was chosen. */
.drop input { display: block; max-width: 100%; margin: var(--s3) auto 0; font-size: 1rem; }
.js .drop input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
/* a file dragged over the box (the class is the script's) */
.drop.over { background: var(--panel); outline-style: solid; }
/* the second line of the box speaks of the camera on a touch screen and of dragging on a computer */
.drop .on-pointer { display: none; }
/* Dragging is offered only with the script: without it only the small native field takes a dropped file, and a file
   dropped elsewhere on the box would be opened by the browser in place of the half-filled form. */
@media (hover: hover) and (pointer: fine) {
  .drop .on-touch { display: none; }
  .js .drop .on-pointer { display: block; }
}
.drop:focus-within { outline: 3px solid var(--red); outline-offset: -3px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: var(--s3); }
.previews:empty { display: none; }
.previews img, .thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; outline: 1px solid rgba(23, 18, 15, .22); outline-offset: -1px; }
.previews .pick { position: relative; display: block; }
/* the remove button keeps a 44 px place for the finger, but only its corner is drawn: a 26 px square with a cross,
   so it covers a corner of the photograph, not a third of it (the «×» of the markup is for readers without styles) */
.previews .pick button { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: transparent; font: 700 1rem/1 var(--sans); cursor: pointer; }
.previews .pick button::before { content: ""; position: absolute; top: 0; right: 0; width: 26px; height: 26px; background: var(--ink) var(--i-cross-cloth) center / 12px 12px no-repeat; }
.previews .pick button:hover::before { background-color: var(--red); }
.previews .pick button:focus-visible { outline-offset: -3px; }
.picknote:empty { display: none; }
.picknote { margin: 8px 0 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.thumbs form { display: flex; flex-direction: column; gap: 4px; align-items: center; margin: 0; }
.thumbs .link { margin-block: 0; }
.thumbs.big { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-bottom: var(--s3); }
.tips { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: 10px; font-size: 1.0625rem; line-height: 1.4; }
.tips li { position: relative; padding-left: 27px; }
.tips li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; background: var(--i-rhomb) center / 15px 15px no-repeat; }
.tips + p { margin-top: var(--s3); }
.tips li.bad { color: var(--red); font-weight: 700; }
.tips li.bad::before { background: var(--i-cross) center / 14px 14px no-repeat; }

/* ---------- deal ---------- */
/* the road of a deal: a vertical seam; passed steps are sewn in red, the current one is a star */
.track { list-style: none; margin: var(--s4) 0 var(--s5); padding: 0; }
.track li { position: relative; min-height: 39px; padding: 6px 0 var(--s5) 52px; font: 600 1.25rem/1.25 var(--serif); color: var(--ink-2); }
.track li:last-child { padding-bottom: 0; }
.track li::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 40px; height: 39px; background: var(--i-node) center / 27px 27px no-repeat var(--bg, var(--linen)); }
.track li::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: -20px; width: 2px; background: var(--ghost-v); }
.track li:last-child::after { display: none; }
.track li.done { color: var(--ink); font-weight: 500; }
.track li.done::before { background-image: var(--i-node-done); }
.track li.done::after { background: var(--run-v-red); }
.track li.now { color: var(--ink); font-weight: 700; }
.track li.now::before { background-image: var(--i-star); }
.track li a, .track li .small { font-family: var(--sans); font-weight: 400; letter-spacing: 0; }
.track li a { white-space: nowrap; }
.panel .track, .panel .steps { --bg: var(--panel); }
.agreed { list-style: none; margin: 0; padding: 0; }
.agreed li { padding: 12px 0; background: var(--run) top / auto 2px repeat-x; }
.agreed li:first-child { background: none; padding-top: 0; }
.agreed .who { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 8px; font-size: 1rem; color: var(--ink-2); }
.agreed .who b { font-weight: 700; color: var(--ink); }
.contact { display: grid; gap: 8px; margin: var(--s3) 0; }
.contact a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 56px; padding: 8px 14px; background: var(--cloth); box-shadow: inset 0 0 0 1px var(--line), inset 0 -2px 0 var(--ink); text-decoration: none; font: 700 1.125rem/1.2 var(--sans); overflow-wrap: anywhere; transition: background-color .15s; }
.contact a:hover { background: var(--ink); color: var(--cloth); }
.contact svg { width: 22px; height: 22px; color: var(--red); stroke-linecap: square; stroke-linejoin: miter; }
.contact a:hover svg { color: var(--cloth); }
details.wrong { margin-top: var(--s5); padding: 2px 0; background: var(--run) top / auto 2px repeat-x, var(--run) bottom / auto 2px repeat-x; }
details.wrong > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 700; }
details.wrong > summary::before { content: ""; flex: none; width: 22px; height: 22px; background: var(--i-plus) center / 22px 22px no-repeat; transition: transform .15s; }
details.wrong[open] > summary::before { transform: rotate(45deg); }
details.wrong[open] { padding-bottom: var(--s4); }

/* ---------- verification and moderation ---------- */
/* a bar only staff see: black cloth with a stitch, so it never passes for part of the page */
/* one strip with both counters side by side (two links); on a narrow phone the words of a link wrap inside its half */
.staffbar { position: relative; display: flex; flex-wrap: wrap; margin: 0 0 var(--s2); background: var(--ink); color: var(--cloth); font: 700 1rem/1.2 var(--sans); }
.staffbar::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(248, 244, 234, .4); pointer-events: none; }
/* the links share a row and wrap their words inside it; a link that cannot be narrower than its longest word
   (the third one on a phone, or any with text set very large) takes the next row */
.staffbar a { display: flex; flex: 1 1 7em; align-items: center; min-width: min-content; min-height: 48px; padding: 10px 14px; color: inherit; text-decoration: none; transition: background-color .15s; }
.staffbar a + a { box-shadow: inset 1px 0 0 rgba(248, 244, 234, .4); }
/* the page one is on: a red hem under its link */
.staffbar a.on { box-shadow: inset 0 -4px 0 var(--red); }
.staffbar a.on + a { box-shadow: inset 1px 0 0 rgba(248, 244, 234, .4); }
.staffbar a + a.on { box-shadow: inset 1px 0 0 rgba(248, 244, 234, .4), inset 0 -4px 0 var(--red); }
.staffbar a:hover { background: var(--ink-soft); color: var(--cloth); }
/* the ink ring of the page would be black on black between the two links: here the ring is cloth and lies inside the link */
.staffbar a:focus-visible { outline: 3px dashed var(--cloth); outline-offset: -8px; }
.staffbar + :not(.staffbar) { margin-top: var(--s4); }
.setup { display: grid; gap: var(--s3); margin: var(--s4) 0 0; padding: var(--s4); background: var(--panel); box-shadow: inset 0 3px 0 var(--ink); }
.setup svg { width: 100%; max-width: 340px; height: auto; justify-self: center; }
.setup h2 { margin: 0; font-size: var(--t-panel); }
.setup ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
/* numbered steps: the number sits in a rhombus beside the step's heading; a finished step fills its rhombus */
.vsteps { list-style: none; margin: var(--s5) 0 0; padding: 0; counter-reset: v; }
.vsteps > li { counter-increment: v; position: relative; padding: var(--s4) 0 var(--s5); background: var(--run) top / auto 2px repeat-x; }
.vsteps > li::before { content: counter(v); position: absolute; left: 0; top: var(--s4); width: 39px; height: 39px; display: grid; place-items: center; font: 700 1.0625rem/1 var(--serif); background: var(--i-num) center / 39px 39px no-repeat; }
.vsteps > li.done::before { background-image: var(--i-num-done); color: var(--cloth); }
.vsteps h2 { display: flex; align-items: center; min-height: 39px; margin: 0 0 var(--s3); padding-left: 51px; font-size: var(--t-panel); overflow-wrap: anywhere; }
.vsteps p { margin: 0 0 var(--s3); }
.codebox { display: grid; gap: 4px; justify-items: center; text-align: center; margin: 0 0 var(--s3); }
.codebox .digits { font: 700 2.75rem/1.1 var(--serif); letter-spacing: .06em; font-variant-numeric: lining-nums tabular-nums; }
.codebox.expired .digits { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 2px; }
/* upload progress: stitches being sewn over the bare seam */
.progress { margin-top: var(--s3); background: var(--ghost) left top / auto 6px repeat-x; }
.progress i { display: block; height: 6px; width: 0; background: var(--run-red) left top / auto 6px repeat-x; transition: width .2s; }
.progress span { display: block; margin-top: 8px; font-size: 1rem; color: var(--ink-2); }
/* what is left to do: the signs of progress, as on .steps and .track (a pale rhombus for a thing not done yet,
   an ink one with a red heart for a thing done). Never a square: a square on this site is a box to tick. */
.todo { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: 10px; font-size: 1.0625rem; line-height: 1.4; }
.todo li { position: relative; padding-left: 34px; min-height: 24px; }
.todo li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; background: var(--i-node) center / 18px 18px no-repeat; }
.todo li.ok { color: var(--ink-2); }
.todo li.ok::before { background-image: var(--i-node-done); }
video.recording { display: block; width: 100%; max-height: 70vh; margin-bottom: var(--s3); background: #000; }
.decision .check { margin: 0; }
.words dt { font-weight: 700; margin-top: var(--s3); }
.words dd { margin: 2px 0 0; color: var(--ink-2); }
.qr { display: flex; justify-content: center; margin: var(--s3) 0; scroll-margin-top: 24px; }
.qr img { display: block; width: auto; max-width: 100%; height: auto; image-rendering: pixelated; background: #fff; }

/* ---------- the place box: a text field with suggestions under it ---------- */
.place-box { position: relative; }
.place .suggest {
  position: absolute; z-index: 45; left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none;
  background: var(--cloth); box-shadow: 0 0 0 2px var(--ink); max-height: 46vh; overflow-y: auto;
}
.place .suggest li { display: block; min-height: 44px; padding: 10px 14px; line-height: 1.3; cursor: pointer; background: var(--ghost) bottom / auto 1px repeat-x; }
.place .suggest li small { display: block; font-size: 1rem; color: var(--ink-2); }
.place .suggest li:hover, .place .suggest li.on { background-color: var(--panel); box-shadow: inset 4px 0 0 var(--red); }
.place .suggest li.none { cursor: default; color: var(--ink-2); background-color: transparent; box-shadow: none; }
.place .suggest li.none .link { margin-block: 0; color: var(--ink); }
.place [data-place-missing], .place [data-place-back] { margin-top: 6px; margin-bottom: 0; }

/* ---------- 640 px: wide phone and tablet ---------- */
@media (min-width: 640px) {
  .two { grid-template-columns: 1fr 1fr; align-items: start; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doors { grid-template-columns: 1fr 1fr; max-width: 760px; }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choices { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .term > summary { flex-wrap: nowrap; }
  .term .q { flex: 1 1 auto; }
  .setup { grid-template-columns: 300px 1fr; align-items: center; }
  .setup h2 { grid-column: 1 / -1; }
  .panel { padding: var(--s5); }
  .wiznav [data-next], .wiznav [data-finish] { flex: 0 1 auto; margin-left: auto; }
}

/* ---------- 960 px: desktop ---------- */
@media (min-width: 960px) {
  :root { --st: 3px; --u: 3px; --gut: 32px; --t-page: 3rem; --t-long: 2.5rem; --t-section: 2.125rem; --t-panel: 1.6875rem; }
  body, body.has-stickybid { padding-bottom: 0; font-size: 1.1875rem; }
  html, html:has(body.has-stickybid) { scroll-padding-bottom: 0; }
  .tabbar, .stickybid, .top .enter { display: none; }
  h3 { font-size: 1.4375rem; }
  .page { padding-top: var(--s6); padding-bottom: var(--s7); }
  /* two narrow columns become a two-column page on desktop (the profile, the verification): their notes grow with them */
  .page:has(> .myprofile) > .note, .page:has(> .verifypage) > .note { max-width: none; }
  .top { min-height: 76px; }
  .brand svg { width: 36px; height: 36px; }
  .brand b { font-size: 1.625rem; }
  /* on a desktop the name keeps its line: of the whole header only the nickname gives way */
  .brand { flex: none; }
  .brand b { white-space: nowrap; }
  /* the items stand closer on a narrow desktop (--navpad), and of all of them only the nickname gives way:
     a long one is cut with an ellipsis, so the last button never leaves the screen */
  .topnav { --navpad: clamp(7px, 3vw - 21.5px, 14px); display: flex; align-items: center; gap: 4px; min-width: 0; margin-left: auto; }
  .topnav > * { flex: none; }
  .topnav a:not(.btn), .topnav button {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--navpad); border: 0; background: none; cursor: pointer;
    color: var(--ink); font: 400 1.125rem/1.2 var(--sans); text-decoration: none; white-space: nowrap; transition: color .15s;
  }
  .topnav a.me { flex: 0 1 auto; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 44px; }
  .topnav a.on { font-weight: 700; }
  /* the same count of deals that wait for the person as on the phone's tab bar */
  .topnav .wait { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; background: var(--red); color: var(--cloth); font: 700 .8125rem/1 var(--sans); font-style: normal; }
  .topnav a.on::after, .topnav a:not(.btn):hover::after, .topnav button:hover::after { content: ""; position: absolute; left: var(--navpad); right: var(--navpad); bottom: 6px; height: 2px; background: var(--run-red); }
  .topnav a:not(.btn):hover, .topnav button:hover { color: var(--ink); }
  .topnav .btn { margin-left: var(--navpad); min-height: 46px; padding-inline: clamp(12px, 3vw - 16px, 22px); }
  /* A browser set to a larger default text (Chrome's «Великий», 20 px, or «Дуже великий», 24 px) grows the header
     with it, and on a narrow desktop it no longer fits one row. The header needs about 58 of its own text sizes (rem)
     of width; in less, the menu goes to a second row under the name and may wrap there itself. At the usual 16 px
     this never happens on a desktop (58 rem is 928 px), so the usual look and the shrinking nickname stay. */
  .topbox { container: top / inline-size; }
  @container top (max-width: 58rem) {
    .top { flex-wrap: wrap; row-gap: 0; padding-bottom: 8px; }
    .topnav { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
  }
  .foot { margin-top: var(--s8); }

  .hero { padding: 4px 0 var(--s6); }
  .hero h1 { font-size: 4rem; line-height: 1; letter-spacing: -.02em; margin-bottom: 20px; max-width: 14em; }
  .lead, .hero p.lead { font-size: 1.3125rem; line-height: 1.45; margin-bottom: 28px; }
  .door { min-height: 98px; padding: 16px 26px 16px 28px; }
  .door b { font-size: 1.8125rem; }
  .door span span { font-size: 1.0625rem; }
  .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s6); }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
  .card .body b { font-size: 1.25rem; }
  .card .price { font-size: 1.75rem; }
  .card .where, .card .price small { font-size: 1.0625rem; }
  .pager { justify-content: center; gap: var(--s6); }

  .lot { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .lot .side { position: sticky; top: 24px; }
  .pricebox .amount, .amount { font-size: 3.75rem; }
  .pricebox, .codebox, .frame { padding: 14px 20px 20px; }
  .cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .panel { padding: var(--s5) 28px 28px; }
  .wizard { max-width: 760px; }
  .steps li { font-size: min(1.125rem, 18px); }
  .item { grid-template-columns: minmax(0, 1fr) auto; }
  .item:has(> .th) { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .item .th { width: 88px; height: 88px; }
  .item .next { grid-column: auto; text-align: right; max-width: 22em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
