/* ZeroWrong console in the website's own language (08.10.2026). Loaded after brand-app.css.
 *
 * What you act on is paper on the board: each order is a strip, the popup is a pinned sheet,
 * the batch bar is a strip. On the board (dark theme) the paper is light; on paper (light
 * theme) it is black paper, as on zerowrong.com. Kinds of information keep their colours as
 * hand-drawn OUTLINES only, no fills, no glow (red = problem, blue = what the customer typed,
 * green = delivery / done). Labels are handwriting, not monospace capitals.
 * Rough paper edges are masks generated by scratchpad/redesign/make_brand_ui.py.
 */

/* which ink the paper takes: the opposite of the ground it lies on */
:root:not([data-theme="light"]) :is(.pg-orders #bar, .pg-quick .save, .pg-form #bar, .pg-orders #sender, .print, .pg-quick .q, .pg-form .ctl, .pg-settings .q, .pg-home .q, .pg-onb .pane, .pg-auth .card, .pg-orders .sheet, .pg-orders .colpick, .zw-lc) { --ink:#1A1A1C;--ink-2:#4A4844;--muted:#66625C;--ok-rgb:14,134,92;--info-rgb:36,99,209;--bad-rgb:194,55,45;
  --ok-ink:#0E7A54;--info-ink:#2158C0;--bad-ink:#B3322A;--warn-ink:#8F5600;--surface:#F7F4ED;--surface-2:#FBF9F4;--field:#FFFFFF;
  --line:rgba(26,26,28,.12);--line-2:rgba(26,26,28,.24);--line-3:rgba(26,26,28,.38);--led-base:26,26,28;--panel:#F6F3EC;--panel-2:#FAF8F3;
  --edge:rgba(26,26,28,.16);--edge-2:rgba(26,26,28,.28);--primary:#1A1A1C;--primary-hi:#000000;--primary-ink:#F1EDE3;--focus:#1A1A1C;
  --paper:radial-gradient(140% 120% at 28% 12%,#FBF8F1 0%,#F2EDE2 58%,#E6DECD 100%);--paper-tex:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");--paper-blend:multiply;
  --paper-edge:inset 0 0 26px rgba(120,96,60,.16);color-scheme:light }
[data-theme="light"] :is(.pg-orders #bar, .pg-quick .save, .pg-form #bar, .pg-orders #sender, .print, .pg-quick .q, .pg-form .ctl, .pg-settings .q, .pg-home .q, .pg-onb .pane, .pg-auth .card, .pg-orders .sheet, .pg-orders .colpick, .zw-lc) { --ink:#F1EEE6;--ink-2:#BDB9B0;--muted:#918D85;--ok-rgb:63,215,160;--info-rgb:106,166,255;--bad-rgb:255,107,94;
  --ok-ink:#78E6BD;--info-ink:#A3C6FF;--bad-ink:#FF9A90;--warn-ink:#F2B65E;--surface:#1A1D21;--surface-2:#1E2126;--field:#121417;
  --line:rgba(241,238,230,.10);--line-2:rgba(241,238,230,.22);--line-3:rgba(241,238,230,.36);--led-base:241,238,230;--panel:rgba(241,238,230,.035);--panel-2:rgba(241,238,230,.06);
  --edge:rgba(241,238,230,.13);--edge-2:rgba(241,238,230,.24);--primary:#F1EDE3;--primary-hi:#FFFFFF;--primary-ink:#1A1A1C;--focus:#F1EEE6;
  --paper:radial-gradient(140% 120% at 30% 10%,#27282C 0%,#1C1D20 58%,#141517 100%);--paper-tex:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .075 0'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");--paper-blend:normal;
  --paper-edge:inset 0 0 30px rgba(0,0,0,.45);color-scheme:dark }

/* Pencil (Niki 5.11.2026): no colour, only marks. White pencil on the dark panels, black pencil on paper: the marks take the text
   colour, so one set serves both. Every mark is a mask on a pseudo-element, so it has no effect on layout and needs no font or file.
   Red stays for real problems only; a shop's own button colour stays in its preview and its swatches. The rules are at the end of this file. */
:root {
  --scribble: var(--pencil-under-1);
  --pencil-box-1: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20300%2060'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23000'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M5%209C48%205%20104%2012%20158%208C208%205%20258%2011%20296%206'%20stroke-width%3D'1.5'%20stroke-opacity%3D'0.92'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M290%201C293%2014%20288%2026%20291%2038C293%2046%20290%2052%20292%2058'%20stroke-width%3D'1.25'%20stroke-opacity%3D'0.85'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M298%2052C240%2056%20180%2050%20120%2054C80%2056%2040%2051%202%2055'%20stroke-width%3D'1.7'%20stroke-opacity%3D'0.95'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M9%2059C6%2046%2011%2034%208%2022C7%2014%209%208%208%202'%20stroke-width%3D'1.35'%20stroke-opacity%3D'0.85'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M42%208C92%206%20134%2011%20214%209'%20stroke-width%3D'0.9'%20stroke-opacity%3D'0.5'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M132%2056C94%2054%2054%2054%2022%2056'%20stroke-width%3D'0.9'%20stroke-opacity%3D'0.5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --pencil-box-2: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20300%2060'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23000'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M2%206C62%2010%20118%204%20176%208C222%2011%20262%205%20294%209'%20stroke-width%3D'1.35'%20stroke-opacity%3D'0.9'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M295%203C291%2016%20297%2028%20294%2040C292%2047%20295%2052%20293%2057'%20stroke-width%3D'1.6'%20stroke-opacity%3D'0.92'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M299%2056C236%2051%20170%2057%20110%2053C70%2051%2036%2056%206%2052'%20stroke-width%3D'1.45'%20stroke-opacity%3D'0.9'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M6%2058C10%2044%204%2032%207%2018C8%2011%206%206%207%201'%20stroke-width%3D'1.25'%20stroke-opacity%3D'0.82'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M178%209C212%2011%20250%207%20282%209'%20stroke-width%3D'0.9'%20stroke-opacity%3D'0.5'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M295%2019C293%2028%20295%2036%20295%2046'%20stroke-width%3D'0.8'%20stroke-opacity%3D'0.45'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --pencil-box-3: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20300%2060'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23000'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M8%205C70%209%20126%204%20190%208C232%2010%20268%205%20298%208'%20stroke-width%3D'1.65'%20stroke-opacity%3D'0.95'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M292%202C289%2016%20294%2030%20291%2042C289%2049%20292%2054%20291%2059'%20stroke-width%3D'1.3'%20stroke-opacity%3D'0.85'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M296%2053C226%2050%20164%2056%2096%2053C60%2051%2030%2055%201%2051'%20stroke-width%3D'1.3'%20stroke-opacity%3D'0.85'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M7%2057C3%2044%209%2032%206%2018C5%2011%207%207%206%203'%20stroke-width%3D'1.5'%20stroke-opacity%3D'0.9'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M20%207C60%209%2092%206%20132%208'%20stroke-width%3D'0.9'%20stroke-opacity%3D'0.5'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M202%2054C232%2052%20262%2054%20286%2055'%20stroke-width%3D'0.85'%20stroke-opacity%3D'0.45'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --pencil-ring-1: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20200%2060'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23000'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M32%209C84%201%20168%203%20190%2022C204%2040%20150%2056%2092%2057C36%2058%202%2048%207%2028C11%2013%2046%206%2096%205C130%204%20158%206%20174%2012'%20stroke-width%3D'1.35'%20stroke-opacity%3D'0.9'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --pencil-ring-2: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20200%2060'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23000'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M170%208C120%201%2040%203%2012%2022C-3%2040%2050%2057%20110%2057C166%2058%20200%2046%20194%2027C188%2012%20150%205%20104%204C74%203%2050%206%2034%2011'%20stroke-width%3D'1.3'%20stroke-opacity%3D'0.88'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --pencil-under-1: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20300%2012'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23000'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M2%207C60%204%20130%209%20200%206C240%204%20275%206%20298%205'%20stroke-width%3D'1.6'%20stroke-opacity%3D'0.92'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M30%207C90%207%20150%208%20230%206'%20stroke-width%3D'0.9'%20stroke-opacity%3D'0.5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --pencil-under-2: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20300%2012'%20preserveAspectRatio%3D'none'%3E%3Cg%20fill%3D'none'%20stroke%3D'%23000'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M3%205C70%208%20150%204%20220%207C255%208%20280%206%20297%207'%20stroke-width%3D'1.5'%20stroke-opacity%3D'0.9'%2F%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M120%206C170%206%20210%207%20270%207'%20stroke-width%3D'0.9'%20stroke-opacity%3D'0.5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --pencil-circle: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20%3E%3Cg%20fill%3D'none'%20stroke%3D'%23000'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M8.5%202.2C12%201.8%2014.4%204.4%2014%208.2C13.6%2012%2010.8%2014.2%207.6%2013.8C4%2013.4%201.8%2010.6%202.2%207.2C2.6%204.2%205%202.2%209.4%202.6'%20stroke-width%3D'1.3'%20stroke-opacity%3D'0.95'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  --pencil-check: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20%3E%3Cg%20fill%3D'none'%20stroke%3D'%23000'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20vector-effect%3D'non-scaling-stroke'%20d%3D'M2.6%208.6C3.8%209.8%205%2011.4%206.2%2013.2C8%209%2010.6%205.4%2013.8%202.6'%20stroke-width%3D'1.5'%20stroke-opacity%3D'0.95'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
:root:not([data-theme="light"]), [data-theme="light"] :is(.pg-orders #bar, .pg-quick .save, .pg-form #bar, .pg-orders #sender, .print, .pg-quick .q, .pg-form .ctl, .pg-settings .q, .pg-home .q, .pg-onb .pane, .pg-auth .card, .pg-orders .sheet, .pg-orders .colpick, .zw-lc) {
  --ink:#FCFBF8; --ink-2:#DBD8D1; --muted:#B5B2AA; --line:rgba(252,251,248,.14); --line-2:rgba(252,251,248,.30); --line-3:rgba(252,251,248,.50); --led-base:252,251,248;
  --edge:rgba(252,251,248,.18); --edge-2:rgba(252,251,248,.32); --primary:#FCFBF8; --primary-hi:#FFFFFF; --focus:#FCFBF8;
  --ok-ink:var(--ink); --ok-rgb:252,251,248; --warn-ink:var(--ink); --warn:var(--ink-2); --info-ink:var(--ink); }
[data-theme="light"], :root:not([data-theme="light"]) :is(.pg-orders #bar, .pg-quick .save, .pg-form #bar, .pg-orders #sender, .print, .pg-quick .q, .pg-form .ctl, .pg-settings .q, .pg-home .q, .pg-onb .pane, .pg-auth .card, .pg-orders .sheet, .pg-orders .colpick, .zw-lc) {
  --ok-ink:var(--ink); --ok-rgb:26,26,28; --warn-ink:var(--ink); --warn:var(--ink-2); --info-ink:var(--ink); }

/* torn edges that do not grow with the sheet (17.10.2026): one SVG stretched to 100% 100% scaled its
   ~3-unit tears with the height, so a 455-order sheet grew 100+ px teeth over the column header.
   Now: a 10 px strip repeated along the top and bottom, a 4 px strip down each side, and a solid
   centre; the union is the sheet, and the tear is the same depth in px at any height. */
:root { --tear: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 10' preserveAspectRatio='none'%3E%3Cpath d='M0 3.1 L12 2.8 L24 2.0 L36 2.6 L48 2.8 L60 2.5 L72 1.9 L84 3.0 L96 1.5 L108 0.7 L120 1.8 L132 2.3 L144 0.6 L156 0.8 L168 1.1 L180 1.2 L192 3.2 L204 2.1 L216 1.5 L228 2.8 L240 3.1 L240 10 L0 10 Z' fill='white'/%3E%3C/svg%3E") left top / 240px 10px repeat-x, url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 10' preserveAspectRatio='none'%3E%3Cpath d='M0 7.2 L12 8.8 L24 7.0 L36 7.1 L48 7.5 L60 8.2 L72 8.2 L84 7.6 L96 9.6 L108 8.7 L120 8.6 L132 6.9 L144 8.6 L156 7.2 L168 6.8 L180 7.7 L192 8.4 L204 6.9 L216 7.5 L228 7.5 L240 7.2 L240 0 L0 0 Z' fill='white'/%3E%3C/svg%3E") left bottom / 240px 10px repeat-x, url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 200' preserveAspectRatio='none'%3E%3Cpath d='M2.2 0 L2.6 16 L0.4 32 L2.1 48 L0.7 64 L1.9 80 L0.6 96 L1.9 112 L1.5 128 L2.4 144 L0.6 160 L1.4 176 L2.2 192 L4 200 L4 0 Z' fill='white'/%3E%3C/svg%3E") left top / 4px 200px repeat-y, url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 200' preserveAspectRatio='none'%3E%3Cpath d='M1.8 0 L3.7 16 L2.6 32 L1.6 48 L2.3 64 L2.4 80 L2.7 96 L1.4 112 L2.9 128 L2.4 144 L2.6 160 L2.7 176 L1.8 192 L0 200 L0 0 Z' fill='white'/%3E%3C/svg%3E") right top / 4px 200px repeat-y, linear-gradient(#000, #000) center / calc(100% - 8px) calc(100% - 20px) no-repeat; }

/* paper: the sheet is a ::before layer (texture, light falloff, aged edge, torn outline); the
   element carries the shadow, which follows the torn outline */
.pg-orders #bar, .pg-quick .save, .pg-form #bar, .pg-orders #sender, .print, .pg-quick .q, .pg-form .ctl, .pg-settings .q, .pg-home .q, .pg-onb .pane, .pg-auth .card { isolation: isolate; color: var(--ink); }
.pg-orders #sender, .print, .pg-quick .q, .pg-settings .q, .pg-home .q, .pg-onb .pane, .pg-auth .card { position: relative; }
.pg-orders #bar::before, .pg-quick .save::before, .pg-form #bar::before, .pg-orders #sender::before, .print::before, .pg-quick .q::before, .pg-form .ctl::before, .pg-settings .q::before, .pg-home .q::before, .pg-onb .pane::before, .pg-auth .card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--paper-tex), var(--paper); background-blend-mode: var(--paper-blend), normal; box-shadow: var(--paper-edge);
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0.0 0.8 L14.0 0.4 L28.0 1.6 L42.0 0.2 L56.0 1.3 L70.0 0.9 L84.0 0.1 L98.0 1.2 L112.0 0.1 L126.0 1.0 L140.0 0.2 L154.0 0.2 L168.0 1.0 L182.0 2.0 L196.0 0.3 L210.0 0.5 L224.0 1.5 L238.0 2.3 L252.0 1.4 L266.0 1.0 L280.0 2.3 L294.0 0.1 L308.0 2.1 L322.0 0.7 L336.0 0.3 L350.0 0.3 L364.0 0.7 L378.0 2.0 L392.0 0.4 L406.0 1.4 L420.0 1.5 L434.0 0.9 L448.0 1.3 L462.0 0.2 L476.0 0.1 L490.0 0.5 L504.0 1.6 L518.0 1.0 L532.0 0.8 L546.0 1.4 L560.0 1.1 L574.0 0.7 L588.0 1.9 L602.0 1.7 L616.0 0.6 L630.0 1.4 L644.0 1.3 L658.0 2.1 L672.0 1.8 L686.0 0.7 L700.0 2.4 L714.0 0.3 L728.0 1.0 L742.0 1.8 L756.0 0.4 L770.0 1.2 L784.0 0.1 L798.0 1.6 L812.0 1.8 L826.0 1.4 L840.0 2.1 L854.0 0.8 L868.0 1.7 L882.0 1.4 L896.0 1.4 L910.0 1.1 L924.0 2.0 L938.0 2.3 L952.0 1.1 L966.0 1.6 L980.0 0.1 L994.0 1.7 L998.4 14.0 L997.6 28.0 L998.0 42.0 L999.3 56.0 L999.1 70.0 L998.4 84.0 L999.9 98.0 L986.0 98.7 L972.0 99.5 L958.0 99.7 L944.0 99.8 L930.0 97.8 L916.0 99.6 L902.0 99.3 L888.0 98.9 L874.0 97.5 L860.0 99.8 L846.0 98.7 L832.0 98.4 L818.0 97.5 L804.0 97.6 L790.0 97.5 L776.0 99.2 L762.0 98.8 L748.0 99.0 L734.0 97.5 L720.0 97.2 L706.0 99.6 L692.0 99.5 L678.0 99.3 L664.0 99.3 L650.0 98.6 L636.0 98.3 L622.0 99.2 L608.0 100.0 L594.0 98.8 L580.0 98.9 L566.0 98.4 L552.0 97.3 L538.0 98.0 L524.0 98.5 L510.0 98.2 L496.0 98.1 L482.0 99.8 L468.0 97.4 L454.0 97.8 L440.0 97.5 L426.0 97.7 L412.0 98.9 L398.0 98.9 L384.0 99.7 L370.0 98.2 L356.0 99.8 L342.0 99.8 L328.0 99.4 L314.0 99.5 L300.0 99.0 L286.0 99.8 L272.0 100.0 L258.0 99.6 L244.0 99.7 L230.0 99.0 L216.0 99.9 L202.0 97.5 L188.0 98.2 L174.0 99.6 L160.0 99.3 L146.0 99.0 L132.0 99.0 L118.0 99.6 L104.0 97.6 L90.0 97.1 L76.0 98.7 L62.0 98.6 L48.0 99.8 L34.0 99.7 L20.0 99.0 L6.0 99.2 L2.0 86.0 L0.4 72.0 L0.1 58.0 L2.3 44.0 L1.3 30.0 L0.4 16.0 L1.3 2.0 Z' fill='white'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0.0 0.8 L14.0 0.4 L28.0 1.6 L42.0 0.2 L56.0 1.3 L70.0 0.9 L84.0 0.1 L98.0 1.2 L112.0 0.1 L126.0 1.0 L140.0 0.2 L154.0 0.2 L168.0 1.0 L182.0 2.0 L196.0 0.3 L210.0 0.5 L224.0 1.5 L238.0 2.3 L252.0 1.4 L266.0 1.0 L280.0 2.3 L294.0 0.1 L308.0 2.1 L322.0 0.7 L336.0 0.3 L350.0 0.3 L364.0 0.7 L378.0 2.0 L392.0 0.4 L406.0 1.4 L420.0 1.5 L434.0 0.9 L448.0 1.3 L462.0 0.2 L476.0 0.1 L490.0 0.5 L504.0 1.6 L518.0 1.0 L532.0 0.8 L546.0 1.4 L560.0 1.1 L574.0 0.7 L588.0 1.9 L602.0 1.7 L616.0 0.6 L630.0 1.4 L644.0 1.3 L658.0 2.1 L672.0 1.8 L686.0 0.7 L700.0 2.4 L714.0 0.3 L728.0 1.0 L742.0 1.8 L756.0 0.4 L770.0 1.2 L784.0 0.1 L798.0 1.6 L812.0 1.8 L826.0 1.4 L840.0 2.1 L854.0 0.8 L868.0 1.7 L882.0 1.4 L896.0 1.4 L910.0 1.1 L924.0 2.0 L938.0 2.3 L952.0 1.1 L966.0 1.6 L980.0 0.1 L994.0 1.7 L998.4 14.0 L997.6 28.0 L998.0 42.0 L999.3 56.0 L999.1 70.0 L998.4 84.0 L999.9 98.0 L986.0 98.7 L972.0 99.5 L958.0 99.7 L944.0 99.8 L930.0 97.8 L916.0 99.6 L902.0 99.3 L888.0 98.9 L874.0 97.5 L860.0 99.8 L846.0 98.7 L832.0 98.4 L818.0 97.5 L804.0 97.6 L790.0 97.5 L776.0 99.2 L762.0 98.8 L748.0 99.0 L734.0 97.5 L720.0 97.2 L706.0 99.6 L692.0 99.5 L678.0 99.3 L664.0 99.3 L650.0 98.6 L636.0 98.3 L622.0 99.2 L608.0 100.0 L594.0 98.8 L580.0 98.9 L566.0 98.4 L552.0 97.3 L538.0 98.0 L524.0 98.5 L510.0 98.2 L496.0 98.1 L482.0 99.8 L468.0 97.4 L454.0 97.8 L440.0 97.5 L426.0 97.7 L412.0 98.9 L398.0 98.9 L384.0 99.7 L370.0 98.2 L356.0 99.8 L342.0 99.8 L328.0 99.4 L314.0 99.5 L300.0 99.0 L286.0 99.8 L272.0 100.0 L258.0 99.6 L244.0 99.7 L230.0 99.0 L216.0 99.9 L202.0 97.5 L188.0 98.2 L174.0 99.6 L160.0 99.3 L146.0 99.0 L132.0 99.0 L118.0 99.6 L104.0 97.6 L90.0 97.1 L76.0 98.7 L62.0 98.6 L48.0 99.8 L34.0 99.7 L20.0 99.0 L6.0 99.2 L2.0 86.0 L0.4 72.0 L0.1 58.0 L2.3 44.0 L1.3 30.0 L0.4 16.0 L1.3 2.0 Z' fill='white'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.pg-orders #sender::before, .print::before, .pg-quick .q::before, .pg-form .ctl::before, .pg-settings .q::before, .pg-home .q::before, .pg-onb .pane::before, .pg-auth .card::before { -webkit-mask: var(--tear); mask: var(--tear); }
.pg-orders #bar, .pg-quick .save, .pg-form #bar { filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)) drop-shadow(0 10px 16px rgba(0,0,0,.28)); }
[data-theme="light"] :is(.pg-orders #bar, .pg-quick .save, .pg-form #bar) { filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)) drop-shadow(0 10px 16px rgba(40,30,10,.2)); }
.pg-orders #sender, .print, .pg-quick .q, .pg-form .ctl, .pg-settings .q, .pg-home .q, .pg-onb .pane, .pg-auth .card { filter: drop-shadow(0 1px 2px rgba(0,0,0,.38)) drop-shadow(0 16px 26px rgba(0,0,0,.32)); }
[data-theme="light"] :is(.pg-orders #sender, .print, .pg-quick .q, .pg-form .ctl, .pg-settings .q, .pg-home .q, .pg-onb .pane, .pg-auth .card) { filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)) drop-shadow(0 16px 26px rgba(40,30,10,.22)); }
/* one push pin per strip (left end) or sheet (top middle), ink unless the thing has a status */
.pg-orders #bar::after, .pg-quick .save::after, .pg-form #bar::after, .pg-orders #sender::after, .print::after, .pg-quick .q::after, .pg-form .ctl::after, .pg-settings .q::after, .pg-home .q::after, .pg-onb .pane::after, .pg-auth .card::after { content: ""; position: absolute; z-index: 2; --tk: var(--ink); --tkd: 16px; width:calc(var(--tkd) * 2.5);height:calc(var(--tkd) * 2.5);pointer-events:none;background:radial-gradient(circle at 34% 30%,rgba(255,255,255,.95) 0 6%,rgba(255,255,255,0) 14%) 0 0/var(--tkd) var(--tkd) no-repeat,radial-gradient(circle at 38% 34%,rgba(255,255,255,.38),rgba(255,255,255,0) 30%) 0 0/var(--tkd) var(--tkd) no-repeat,radial-gradient(circle closest-side,var(--tk) 0 52%,color-mix(in srgb,var(--tk) 58%,#000) 90%,transparent 100%) 0 0/var(--tkd) var(--tkd) no-repeat,url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><filter id='a' x='-50%' y='-50%' width='200%' height='200%'><feGaussianBlur stdDeviation='1.5'/></filter><filter id='n'><feGaussianBlur stdDeviation='.6'/></filter><path d='M8 8L19 23' stroke='%23000' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' filter='url(%23n)'/><circle cx='19' cy='23' r='6.6' fill='%23000' fill-opacity='.3' filter='url(%23a)'/></svg>") 0 0/100% 100% no-repeat; }
.pg-orders #bar::after, .pg-quick .save::after, .pg-form #bar::after { left: 14px; top: calc(50% - 8px); }
.pg-orders #sender::after, .print::after, .pg-quick .q::after, .pg-form .ctl::after, .pg-settings .q::after, .pg-home .q::after, .pg-onb .pane::after, .pg-auth .card::after { --tkd: 20px; left: calc(50% - 10px); top: 9px; }

/* status: the word in handwriting, ringed in its colour (no filled pills, no monospace) */
.tag, .tag.ready, .tag.review, .tag.t-skip { position: relative; margin-top: 9px; padding: 3px 11px 4px; background: none; border: 0; border-radius: 0;
  font: 700 15px/1.15 var(--hand); letter-spacing: 0; text-transform: none; }
.tag::after { content: ""; position: absolute; inset: -1px -3px; border: 2px solid currentColor; border-radius:55% 45% 52% 48%/62% 46% 56% 42%; transform: rotate(-2.5deg); pointer-events: none; }
.tag.review { color: var(--bad-ink); } .tag.ready { color: var(--ok-ink); } .tag.t-skip { color: var(--muted); }
.tag.ready::before { content: "✓ "; }

/* buttons on paper: hand-drawn outlines; the one main action is ink-filled. The stroke, the wobbly
   outline and the label font are the one button look; the courier switch takes them from here. */
:root { --btn-stroke: 1.8px; --btn-radius: 255px 22px 225px 22px/22px 225px 22px 255px; --btn-font: 700 14.5px/1.1 var(--hand); }
.pick, .undo, .d-text { font: var(--btn-font); letter-spacing: 0; background: none; border: var(--btn-stroke) solid var(--line-3); border-radius: var(--btn-radius); color: var(--ink); }
.pick:hover { background: none; border-color: var(--ink); transform: rotate(-1deg); }
.undo:hover { background: none; border-color: rgb(var(--bad-rgb)); color: var(--bad-ink); }
.pick.main, .pick.main:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .pick { transition: none; } .pick:hover { transform: none; } }

/* ══ the rest of the console, in the same language ════════════════════════════════════════ */
:root { --tick: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'><path d='M4 21 C9 25 13 30 17 36 C23 22 32 11 45 4' fill='none' stroke='black' stroke-width='4.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

/* inside the Shopify admin the app's sections are Shopify's own nav (s-app-nav): the tabs go,
   the theme switch stays */
[data-embedded] .sections { border-bottom: 0; margin-bottom: 6px; }
[data-embedded] .sections a { display: none; }
/* The theme switch and „Обиколка“ sit beside the logo at every width, so the seven tabs keep
   one line each: with both in the tab row, desktop labels broke onto two lines (14.10). The
   switch shows only its glyph; its words stay for screen readers. On a phone the tabs wrap to
   a second row rather than scroll out of sight (4 + 3 at 390 and 375, 3 + 4 at 360). */
.card.wide { position: relative; }
/* The console pages start at the top: centred, a short page left a ~250 px empty band above
   the header inside the admin (mock review ASR 2.1.2). */
.auth-wrap:has(> .card.wide) { align-items: flex-start; }
.sections a { white-space: nowrap; }
/* REA 3.11.2026: „Tour ●“ read as one switch, and the dot (the theme) was clicked for the tour. Two
   controls that look like two: the tour a ▶ chip, the theme a ringed round button, apart. */
.card.wide .sections .mode { position: absolute; top: 30px; right: 30px; margin: 0; padding: 0; gap: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--line-3); border-radius: 50%; }
.card.wide .sections .mode .mode-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card.wide .sections .tour-go { position: absolute; top: 30px; right: 78px; margin: 0; padding: 7px 12px 7px 10px; border: 1.5px solid var(--line-3); border-radius: 999px; }
.sections .tour-go::before { content: '▶'; font-size: 9px; margin-right: 6px; vertical-align: 1px; }
@media (max-width: 720px) {
  .sections { overflow-x: visible; flex-wrap: wrap; gap: 0 2px; }
  .card.wide .sections .mode { top: 16px; right: 14px; }
  .card.wide .sections .tour-go { top: 16px; right: 60px; }
}
@media (max-width: 440px) {
  .sections a { padding: 10px 4px; }
}

/* an error is a red outline, never a filled box */
.err { background: none; border: 2px solid rgba(var(--bad-rgb), .85); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; color: var(--bad-ink); font-weight: 600; }
/* the filled button of sign-in, sign-up and onboarding: an ink pill drawn by hand */
.btn { border-radius:255px 22px 225px 22px/22px 225px 22px 255px; }
a.pick { text-decoration: none; }
.btn.soft { border: 1.8px solid var(--line-3); }
/* a word or number circled by hand, ink unless it says otherwise */
.hand-ring { position: relative; display: inline-block; padding: 0 .3em; margin: 0 .12em; font-family: var(--hand); font-weight: 800; color: var(--ink); }
.hand-ring::after { content: ""; position: absolute; inset: -.2em -.1em -.14em; border: 2.2px solid currentColor; border-radius:55% 45% 52% 48%/62% 46% 56% 42%; transform: rotate(-4deg); pointer-events: none; }

/* on paper: labels in the hand, fields as hand-drawn boxes, focus in ink (no glow) */
.pg-quick .ctl .l, .pg-quick .fees label, .pg-quick .q .l, .pg-form .ctl .l, .pg-settings .form label, .pg-onb .f label, .pg-onb .lbl, .pg-onb .tariff label, .pg-auth .f label { font: 700 15px/1.25 var(--hand); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.pg-quick .q :is(input[type=text], input[type=number]), .pg-form .ctl input[type=text], .pg-settings :is(input.mini, select.mini), .pg-onb .pane :is(.f input, .eu input), .pg-auth .f input { background: transparent; border: 1.8px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; color: var(--ink); box-shadow: none; }
:is(.pg-quick .q :is(input[type=text], input[type=number]), .pg-form .ctl input[type=text], .pg-settings :is(input.mini, select.mini), .pg-onb .pane :is(.f input, .eu input), .pg-auth .f input):focus, :is(.pg-quick .q :is(input[type=text], input[type=number]), .pg-form .ctl input[type=text], .pg-settings :is(input.mini, select.mini), .pg-onb .pane :is(.f input, .eu input), .pg-auth .f input):focus-visible { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pg-quick .q h2, .pg-form .ctl h2, .pg-settings .q h2 { font: 800 23px/1.15 var(--hand); letter-spacing: -.005em; margin: 0; color: var(--ink); }
/* chips: handwriting in a hand-drawn pill; the chosen one is ringed in ink (green is delivery only) */
:is(.pg-quick, .pg-form, .pg-onb) .chip { font: 700 14.5px/1 var(--hand); letter-spacing: 0; background: none; border: 1.6px solid var(--line-3); border-radius:255px 22px 225px 22px/22px 225px 22px 255px; color: var(--ink-2); }
:is(.pg-quick, .pg-form, .pg-onb) .chip:hover { color: var(--ink); border-color: var(--ink); }
:is(.pg-quick, .pg-form, .pg-onb) :is(.chip[aria-pressed=true], .chip.on, .chip.chk:has(input:checked)) { color: var(--ink); background: none; border: 2.4px solid var(--ink); }
:is(.pg-quick, .pg-form, .pg-onb) .chip.chk input[type=checkbox] { accent-color: var(--ink); }

/* a print: a pinned sheet with a picture on it and a caption in the hand */
.print { margin: 0; padding: 36px 14px 12px; }
.print figcaption { margin: 11px 4px 0; font: 700 17px/1.2 var(--hand); color: var(--ink-2); text-align: center; }
.print figcaption b { color: var(--ink); font-weight: 800; }

/* ── Бърза поръчка ── */
.pg-quick .q { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 40px 26px 24px; margin-top: 0; }
.pg-quick .q + .q { margin-top: 24px; }
.pg-quick .phone { background: #101114; padding: 7px; border-radius: 28px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.1); }
.pg-quick .phone .stage { border: 0; border-radius: 21px; overflow: hidden; }
.pg-quick .ground { color: var(--ink-2); font: 700 15px/1 var(--hand); justify-content: center; }
.pg-quick .range output { font: 800 17px/1 var(--hand); }
.pg-quick .chk { background: none; border: 1.6px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; color: var(--ink); font-weight: 600; }
.pg-quick .chk:has(input:checked) { border: 2.4px solid var(--ink); }
.pg-quick .chk input { accent-color: var(--ink); }
.pg-quick details { border: 1.6px solid var(--line-2); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; }
.pg-quick .ctl { background: none; border: 0; box-shadow: none; padding: 0; }
/* Тест | Истински поръчки: two words, the one in force ringed by hand */
.pg-quick .live { float: right; margin: 8px 0 10px 18px; text-align: right; max-width: 100%; }
.seg { display: inline-flex; gap: 2px; padding: 2px; }
.seg button { position: relative; font: 700 16px/1 var(--hand); color: var(--muted); background: none; border: 0; padding: 9px 14px; cursor: pointer; }
.seg button:hover:not(:disabled) { color: var(--ink); }
.seg button[aria-pressed=true] { color: var(--ink); cursor: default; }
.seg button[aria-pressed=true]::after { content: ""; position: absolute; inset: 0 -2px; border: 2.3px solid currentColor; border-radius:55% 45% 52% 48%/62% 46% 56% 42%; transform: rotate(-2deg); pointer-events: none; }
.seg button:disabled { cursor: default; }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.live-note { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.live-note:empty { display: none; }
.live-note.bad { color: var(--bad-ink); font-weight: 600; }
.live-note .pick { margin-left: 8px; min-height: 32px; padding: 6px 13px; }
.live-note .d-text { margin-left: 6px; }
/* the save strip: only there while something is unsaved */
.pg-quick .save { bottom: calc(14px + var(--shopify-safe-area-inset-bottom, 0px)); border: 0; border-radius: 0; background: none; margin-top: 26px; padding: 12px 16px 12px 46px; }
.pg-quick .save .s { font: 700 16px/1.25 var(--hand); color: var(--ink); }
.pg-quick .save .s.bad { color: var(--bad-ink); }
@media (max-width: 760px) {
  .pg-quick .live { float: none; display: block; text-align: left; margin: 0 0 12px; }
  .pg-quick .q { padding: 38px 18px 20px; }
}

/* ── Форма: the preview is a print the page's full width; the controls are a drawer of plain
   paper (a scrolling box cannot carry the torn layer) over a pinned strip of buttons ── */
.pg-form .print { padding: 36px 12px 12px; }
.pg-form .stage { border: 0; border-radius: 3px; padding: 12px; min-height: 0; }
.pg-form .stage-bar { font: 700 15px/1 var(--hand); color: var(--ink-2); }
.pg-form .ctl { border: 0; border-radius: 0; box-shadow: none; padding: 14px 18px 18px; background: var(--paper-tex), var(--paper); background-blend-mode: var(--paper-blend), normal;
  filter: drop-shadow(0 -6px 18px rgba(0,0,0,.42)); }
.pg-form .ctl::before, .pg-form .ctl::after { display: none; }
.pg-form .ctl .hex { font: 700 15px/1 var(--hand); }
.pg-form #bar { border: 0; background: none; padding: 10px 12px calc(10px + var(--shopify-safe-area-inset-bottom, 0px)) 42px; }
.pg-form #bar::after { left: 13px; }
.pg-form #bar .pick[aria-pressed=true] { background: none; border: 2.4px solid var(--ink); }

/* ── Настройки ── */
.pg-settings #out { margin-top: 20px; }
.pg-settings .q { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 40px 26px 20px; margin-top: 0; }
.pg-settings .q + .q { margin-top: 24px; }
.pg-settings .row, .pg-settings .r, .pg-settings .pl, .pg-settings .plans { border-top-color: var(--line-2); }
/* tags: the word ringed by hand. OK = ink with a tick, an upsell = grey, a gap = red */
.pg-settings .tag { margin-top: 0; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.pg-settings .tag.ok, .pg-settings .tag.role { color: var(--ink); }
.pg-settings .tag.ok::before { content: "✓ "; }
.pg-settings .tag.warn { color: var(--bad-ink); }
/* the plan in one row */
.pg-settings .plan-row { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 12px; }
.pg-settings .plan-row .pn { font: 800 24px/1 var(--hand); color: var(--ink); }
.pg-settings .plan-row .use { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.pg-settings .plan-row .use b { font: 800 19px/1 var(--hand); color: var(--ink); }
.pg-settings .plan-row .ubar { flex: 1 1 140px; max-width: 260px; }
.pg-settings .ubar { height: 6px; background: var(--line-2); }
.pg-settings .ubar i { background: var(--ink); }
.pg-settings .ubar.warn i { background: var(--warn-ink); } .pg-settings .ubar.full i { background: rgb(var(--bad-rgb)); }
/* Settings' own words in the headings' hand (Niki 27.10.2026): the same face, at a reading weight
   and size. What a merchant types, and numbers set in mono, stay as they are. */
.pg-settings :is(#sub, #left, #out) { font-family: var(--hand); font-weight: 400; }
.pg-settings #out :is(p, li, span:not(.price), small, label, .help, .hint, .what, .tag, .ferr, .opt-t, .cr-s, .pick, .pn-h, .hits button) { font-family: var(--hand); }
.pg-settings #out :is(p, li, .help, .hint, .what, .cr-s, .pn-sum, .ed-sum) { font-weight: 400; }
.pg-settings .plans { border-bottom: 0; padding: 4px 0 0; }
.pg-settings .plans summary { font: 700 16px/1.3 var(--hand); color: var(--ink-2); }
.pg-settings .pl b i { font: 700 13.5px/1 var(--hand); }
.pg-settings .pl.now b i, .pg-settings .pl.pick b i { color: var(--ink); }
.pg-settings .pl .p { font: 700 14px/1.3 var(--hand); }
.pg-settings .quota { border: 2px solid rgb(var(--bad-rgb)); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; }
/* readiness: one line when it all works, otherwise only what does not */
.pg-settings .all-ok { display: flex; align-items: center; gap: 12px; margin: 12px 0 2px; font: 700 18px/1.3 var(--hand); color: var(--ink); }
.pg-settings .all-ok::before { content: ""; flex: none; width: 30px; height: 26px; background: currentColor; -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.pg-settings .r.ok .m { color: var(--ink); }
.pg-settings .r .m { font: 800 17px/1.2 var(--hand); }
.pg-settings .r a.fix, .pg-settings .empty a { color: var(--ink); font: 700 15px/1.3 var(--hand); text-decoration: underline; text-underline-offset: 3px; }
.pg-settings .help.ok { color: var(--ink); font-weight: 600; }
.pg-settings .hits button { border: 1.6px solid var(--line-2); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; }
.pg-settings .hits button:hover { border-color: var(--ink); }
.pg-settings .once { border: 2px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; }
.pg-settings .once h4 { color: var(--ink); font: 700 16px/1.2 var(--hand); }
.pg-settings .once .pw { font: 800 22px/1 var(--hand); letter-spacing: .04em; }
@media (max-width: 720px) { .pg-settings .q { padding: 38px 18px 18px; } }
/* Начало (13.10.2026): the same paper sheets as Настройки; its own parts are in home.html. */
.pg-home #out { margin-top: 20px; }
.pg-home .q { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 40px 26px 22px; margin-top: 0; }
.pg-home .q + .q { margin-top: 24px; }
.pg-home .q h2 { font: 800 23px/1.15 var(--hand); letter-spacing: -.005em; margin: 0; color: var(--ink); }
@media (max-width: 720px) { .pg-home .q { padding: 38px 18px 18px; } }
/* the sender (09.10): „от офис | от адрес“, an address from the Econt profile, a company's authorised person */
.pg-settings .form label.chk { display: flex; flex-direction: row; align-items: center; gap: 9px; font: 500 14px/1.4 var(--sans); color: var(--ink); cursor: pointer; }
.pg-settings .form label.chk input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--ink); }
.pg-settings .form fieldset.addrs { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-settings .form fieldset.addrs legend { padding: 0; margin-bottom: 6px; font: 700 15px/1.25 var(--hand); color: var(--ink-2); }
.pg-settings .form .seg + .help { margin-left: 10px; }

/* ── Onboarding: each step is a pinned sheet, as sign-in and sign-up are ── */
.pg-onb .card.wide { max-width: 640px; padding-top: 22px; }
.pg-onb .pane.on { padding: 44px 30px 30px; }
.pg-onb .pane > h1 { position: relative; width: fit-content; font: 800 clamp(26px, 3.2vw, 32px)/1.1 var(--hand); letter-spacing: -.01em; margin: 0 0 12px; padding-bottom: 6px; color: var(--ink); }
.pg-onb .pane > h1::after { content: ""; position: absolute; left: 0; right: -4%; bottom: -3px; height: 9px; background: currentColor; opacity: .85;
  -webkit-mask: var(--scribble) 0 0 / 100% 100% no-repeat; mask: var(--scribble) 0 0 / 100% 100% no-repeat; }
.pg-onb .pane .lede { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 20px; }
.pg-onb .steps { margin-bottom: 22px; }
.pg-onb .step .bar { background: var(--line-2); }
.pg-onb .step.on .bar, .pg-onb .step.done .bar { background: var(--ink); }
.pg-onb .step .t { font: 700 13px/1.2 var(--hand); letter-spacing: 0; text-transform: none; color: var(--muted); white-space: nowrap; }
.pg-onb .step.on .t { color: var(--ink); } .pg-onb .step.done .t { color: var(--ink-2); }
.pg-onb .step-now { display: none; margin: -12px 0 18px; font: 700 17px/1.2 var(--hand); color: var(--ink); }
.pg-onb .step-now span { color: var(--muted); }
.pg-onb .cb { background: none; border: 1.6px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; color: var(--ink-2); font: 700 15px/1.1 var(--hand); }
.pg-onb .cb:hover { border-color: var(--ink); color: var(--ink); }
.pg-onb .cb.on { background: none; border: 2.4px solid var(--ink); color: var(--ink); }
.pg-onb .cb .s { font: 500 11.5px/1.3 var(--sans); }
.pg-onb .opt { background: none; border: 1.6px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; }
.pg-onb .opt:hover { border-color: var(--ink); }
.pg-onb .opt.is-on { background: none; border: 2.4px solid var(--ink); }
.pg-onb .opt input { accent-color: var(--ink); }
.pg-onb .opt:focus-within { outline: 2px solid var(--focus); }
.pg-onb .help.picked { color: var(--ink); font-weight: 600; }
.pg-onb .help.bad { color: var(--bad-ink); }
.pg-onb .sug button { border: 1.6px solid var(--line-2); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; }
.pg-onb .sug button:hover { border-color: var(--ink); }
.pg-onb .free-note { background: none; border: 1.6px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; color: var(--ink-2); }
.pg-onb .free-note b { color: var(--ink); }
.pg-onb .free-note.warn { border-color: rgb(var(--bad-rgb)); }
.pg-onb .ready .ok .m { color: var(--ink); }
.pg-onb .ready .no .m { color: var(--bad-ink); }
.pg-onb .ready .soft .m { color: var(--muted); }
.pg-onb .ready .m { font: 800 17px/1.2 var(--hand); }
.pg-onb .ready .r { border-top-color: var(--line-2); }
.pg-onb .ready a.fix { color: var(--ink); font: 700 15px/1.3 var(--hand); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .pg-onb .steps { gap: 4px; }
  .pg-onb .step .t { display: none; }
  .pg-onb .step-now { display: block; }
  .pg-onb .pane.on { padding: 40px 18px 24px; }
}

/* ── Вход / Регистрация: a pinned sheet ── */
.pg-auth .card { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 60px 32px 30px; }
.pg-auth .card > h1 { color: var(--ink); }
.pg-auth .check label { color: var(--ink-2); }
.pg-auth .check a, .pg-auth .alt a { color: var(--ink); }
.pg-auth .check input { accent-color: var(--ink); }
.pg-auth .lede { color: var(--ink-2); font-size: 14px; }

/* a text button on paper keeps its ink on hover (it went white, invisible on light paper) */
.d-text:hover { color: var(--ink); border-color: var(--ink); }

/* ══ Поръчки: one pinned sheet, no popup ══════════════════════════════════════════════════ */
.pg-orders .card.wide { max-width: 1240px; }
.pg-orders .card.wide > .sections { margin-bottom: 16px; }

/* the views: handwriting, the one in force ringed by hand, a count on each */
/* above the sticky bulk bar, so the column picker opens over it */
/* One order (Niki 3.11.2026): the tabs on one line; the search and the filters, then the actions; then the paper. */
.pg-orders .views { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 0 0 18px; position: relative; z-index: 12; }
.pg-orders .tabs { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pg-orders .tabs::-webkit-scrollbar { display: none; }
.pg-orders .v { font: 700 15px/1.2 var(--hand); color: var(--ink-2); background: none; padding: 5px 11px; border: 1.6px solid transparent; border-radius:255px 22px 225px 22px/22px 225px 22px 255px; cursor: pointer; white-space: nowrap; }
.pg-orders .v:hover { color: var(--ink); }
.pg-orders .v[aria-pressed=true] { color: var(--ink); border-color: var(--line-3); }
.pg-orders .v b { font-weight: 800; margin-left: 4px; }
.pg-orders .v b.bad { color: var(--bad-ink); }
.pg-orders .v:focus-visible, .pg-orders .colbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pg-orders .tools { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.pg-orders .finds { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pg-orders .acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pg-orders .acts > [hidden] { display: none; }
.pg-orders .acts > .pick { padding: 7px 14px; }
/* a filter: „Куриер: Всички ▾“; its choices with counts in a small menu; filled while in force */
.pg-orders .fpills { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-orders .fpills:empty { display: none; }
.pg-orders .fpill { position: relative; }
.pg-orders .fpill > button { display: inline-flex; align-items: center; gap: 5px; font: 700 14px/1.2 var(--hand); color: var(--ink-2); background: none; border: 1.6px solid var(--line-3); border-radius: var(--btn-radius); padding: 6px 11px; cursor: pointer; white-space: nowrap; }
.pg-orders .fpill > button b { color: var(--ink); font-weight: 800; }
.pg-orders .fpill > button:hover, .pg-orders .fpill > button[aria-expanded=true] { color: var(--ink); border-color: var(--ink); }
.pg-orders .fpill > button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pg-orders .fpill.on > button, .pg-orders .fpill.on > button b { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pg-orders .fpill.on > button b { background: none; }
.pg-orders .fmenu { min-width: 210px; max-width: 280px; }
.pg-orders .fmenu .opt { display: flex; align-items: center; gap: 8px; }
.pg-orders .fmenu .opt b { margin-left: auto; font-weight: 800; color: var(--ink-2); }
.pg-orders .fmenu .opt .cl { width: 14px; height: 14px; }
.pg-orders .search { display: flex; align-items: center; gap: 8px; color: var(--muted); border: 1.6px solid var(--line-2); border-radius:255px 22px 225px 22px/22px 225px 22px 255px; padding: 0 14px; width: 214px; }
.pg-orders .search:focus-within { border-color: var(--ink); }
.pg-orders .search input { flex: 1; min-width: 0; font: 400 14px/1.2 var(--sans); color: var(--ink); background: none; border: 0; padding: 8px 0; outline: 0; }
.pg-orders .search input::placeholder { color: var(--muted); }
.pg-orders svg.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg-orders .colwrap { position: relative; }
.pg-orders .colbtn { display: flex; align-items: center; gap: 6px; font: 700 15px/1.2 var(--hand); color: var(--ink); background: none; border: 1.6px solid var(--line-3); border-radius:255px 22px 225px 22px/22px 225px 22px 255px; padding: 5px 13px; cursor: pointer; }
.pg-orders .colbtn[aria-expanded=true] { border-color: var(--ink); }
/* the column picker: a small sheet of the other paper */
.pg-orders .colpick { position: absolute; right: 0; top: calc(100% + 8px); width: 286px; padding: 12px 12px 10px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); z-index: 20; }
.pg-orders .colpick > b { font: 800 16px var(--hand); display: block; margin: 0 0 6px 4px; }
.pg-orders .preset { display: flex; gap: 4px; margin: 0 0 4px; }
.pg-orders .preset button { font: 700 13px/1.2 var(--hand); padding: 3px 10px; border: 1.5px solid transparent; border-radius:255px 22px 225px 22px/22px 225px 22px 255px; color: var(--muted); background: none; cursor: pointer; }
.pg-orders .preset button[aria-pressed=true] { border-color: var(--ink); color: var(--ink); }
.pg-orders .cg { font: 700 12.5px var(--hand); color: var(--muted); margin: 8px 4px 2px; }
.pg-orders .cp { display: flex; align-items: center; gap: 8px; padding: 2px 4px; color: var(--ink-2); font-size: 14px; cursor: grab; }
.pg-orders .cp.on { color: var(--ink); }
.pg-orders .cp.fixed { opacity: .7; cursor: default; }
.pg-orders .cp.soon { opacity: .5; cursor: default; }
.pg-orders .cp.drag { opacity: .4; }
.pg-orders .cp.over { box-shadow: 0 -2px 0 var(--ink); }
.pg-orders .cp .grip { color: var(--muted); }
.pg-orders .cp label { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; }
.pg-orders .cp em { margin-left: auto; font: 700 11.5px var(--hand); font-style: normal; color: var(--muted); }
.pg-orders .colpick small { display: block; color: var(--muted); font-size: 12px; margin: 8px 4px 0; }
.pg-orders .colpick .col-err { color: var(--bad-ink); font-weight: 600; }

/* the sheet: torn all round, two pins, the paper on its own layer so the shadow follows the edge */
.pg-orders .sheet { position: relative; color: var(--ink); padding: 40px 24px 22px; }
:root:not([data-theme="light"]) .pg-orders .sheet { --tk: #1E1E21; --zebra: rgba(26,26,28,.045); }
[data-theme="light"] .pg-orders .sheet { --tk: #EDE9DF; --zebra: rgba(241,238,230,.05); }
.pg-orders .ppw { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(0,0,0,.42)) drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
[data-theme="light"] .pg-orders .ppw { filter: drop-shadow(0 12px 18px rgba(40,30,10,.22)) drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.pg-orders .ppw > i { position: absolute; inset: 0; background: var(--paper-tex), var(--paper); background-blend-mode: var(--paper-blend), normal; box-shadow: var(--paper-edge);
  -webkit-mask: var(--tear); mask: var(--tear); }
.pg-orders .sheet > :not(.ppw):not(.pin) { position: relative; }
.pg-orders .sheet > .pin { position: absolute; z-index: 3; --tkd: 20px; top: 8px; width:calc(var(--tkd) * 2.5);height:calc(var(--tkd) * 2.5);pointer-events:none;background:radial-gradient(circle at 34% 30%,rgba(255,255,255,.95) 0 6%,rgba(255,255,255,0) 14%) 0 0/var(--tkd) var(--tkd) no-repeat,radial-gradient(circle at 38% 34%,rgba(255,255,255,.38),rgba(255,255,255,0) 30%) 0 0/var(--tkd) var(--tkd) no-repeat,radial-gradient(circle closest-side,var(--tk) 0 52%,color-mix(in srgb,var(--tk) 58%,#000) 90%,transparent 100%) 0 0/var(--tkd) var(--tkd) no-repeat,url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><filter id='a' x='-50%' y='-50%' width='200%' height='200%'><feGaussianBlur stdDeviation='1.5'/></filter><filter id='n'><feGaussianBlur stdDeviation='.6'/></filter><path d='M8 8L19 23' stroke='%23000' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' filter='url(%23n)'/><circle cx='19' cy='23' r='6.6' fill='%23000' fill-opacity='.3' filter='url(%23a)'/></svg>") 0 0/100% 100% no-repeat; }
.pg-orders .sheet > .pin.l { left: 6%; } .pg-orders .sheet > .pin.r { right: 6%; }
.pg-orders #list.wide-cols { overflow-x: auto; padding-bottom: 120px; margin-bottom: -120px; }
/* the admin's frame at a laptop window: a narrower sheet margin, so the default columns fit */
@media (max-width: 1000px) {
  .pg-orders .auth-wrap { padding-left: 6px; padding-right: 6px; }
  .pg-orders .card.wide { padding-left: 8px; padding-right: 8px; }
  .pg-orders .sheet { padding-left: 10px; padding-right: 10px; }
}

/* one line per order; the source order is the phone's, the grid places the cells */
.pg-orders #list .row { display: grid; grid-template-columns: var(--cols); column-gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); min-height: 46px; outline: 0; }
.pg-orders #list .row.z { background: var(--zebra); }
.pg-orders #list .row[tabindex]:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.pg-orders #list .row > * { grid-row: 1; min-width: 0; }
.pg-orders #list .row .br, .pg-orders #list .li { display: none; }
.pg-orders .thead { font: 700 13px/1.2 var(--hand); color: var(--muted); border-bottom: 1.5px solid var(--line-3) !important; min-height: 0 !important; padding: 0 4px 8px !important; }
.pg-orders .thead .h-typed { color: var(--info-ink); }
.pg-orders .thead .h-sum, .pg-orders .c-sum { text-align: right; }
/* a right-aligned number then a left-aligned column read as one word with only the 8 px gap
   („СумаБележка“): the cell after a number column starts 16 px further in, headers and rows */
.pg-orders #list .row > :is(.h-sum, .c-sum, .c-x.num) + * { padding-left: 16px; }
.pg-orders .c-sum { font-weight: 700; white-space: nowrap; }
/* „Потвърждение“: the shop's confirmation call per order (27.10.2026). Plain box, 1px outline;
   the chosen status in words, „Потвърдена“ in bold. */
/* „Статус“ is its own column after „Клиент“ (Niki 2.11.2026). */
.pg-orders .c-call { position: relative; }
.pg-orders .callbtn { --st: var(--muted); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 9px; font: 600 13px/1.35 var(--sans); color: var(--st); background: none; border: 1.5px solid currentColor; border-radius:255px 14px 225px 14px/14px 225px 14px 255px; cursor: pointer; white-space: nowrap; }
.pg-orders .callbtn > span { overflow: hidden; text-overflow: ellipsis; }
.pg-orders .callbtn[data-status=none] { border-color: var(--line-3); font-weight: 500; }
.pg-orders .callbtn .i { font-size: 11px; color: var(--muted); }
.pg-orders .callbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pg-orders :is(.callbtn, .callmenu .opt) .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--st); }
.pg-orders .callmenu .opt { --st: var(--muted); display: flex; align-items: center; gap: 8px; }
.pg-orders .callmenu { min-width: 190px; max-width: 240px; }
.pg-orders :is(.callbtn, .callmenu .opt)[data-status=approved] { --st: var(--ok-ink); }
.pg-orders :is(.callbtn, .callmenu .opt):is([data-status=no-answer], [data-status=no-answer-2]) { --st: var(--warn-ink); }
.pg-orders :is(.callbtn, .callmenu .opt):is([data-status=cancelled], [data-status=refused], [data-status=returned]) { --st: var(--bad-ink); }
.pg-orders .paid, .pg-orders .cash { display: block; font: 500 11.5px var(--sans); color: var(--muted); }
.pg-orders .c-no { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; white-space: nowrap; padding-left: 4px; }
/* The order number, easy to find (Niki 2.11.2026): 16 px bold, figures of one width. */
.pg-orders .c-no .on { font: 700 16px/1.2 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
/* „Тестов режим: …“ beside the plan line (web/quota-line.js), only while labels are test ones. */
.pg-orders .quota-line:has(+ .test-badge:not([hidden])) { display: inline-block; margin-right: 10px; }
.pg-orders .test-badge { display: inline-block; margin: -8px 0 16px; padding: 1px 9px; font: 600 12px/1.5 var(--sans); color: var(--warn-ink); border: 1.4px solid currentColor; border-radius: 999px; vertical-align: baseline; }
.pg-orders .c-client { display: flex; align-items: center; gap: 5px; position: relative; }
/* The customer card: who, how to reach them, their other orders here. Read only. */
.pg-orders .ccard { display: flex; flex-direction: column; gap: 6px; min-width: 260px; max-width: 320px; padding: 12px 14px; cursor: default; }
.pg-orders .ccard .cc-n { font: 700 15px/1.25 var(--sans); }
.pg-orders .ccard .cc-l { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.pg-orders .ccard .cc-v { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pg-orders .ccard .cc-m, .pg-orders .ccard .cc-h { color: var(--muted); font-size: 12.5px; }
.pg-orders .ccard .cc-a { font-size: 13px; color: var(--ink-2); line-height: 1.4; overflow-wrap: anywhere; }
.pg-orders .ccard .cc-h { padding-top: 6px; border-top: 1px solid var(--line-2); }
.pg-orders .ccard .cc-p { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pg-orders .ccard .cc-p b { font-variant-numeric: tabular-nums; }
.pg-orders .ccard a.row-btn { text-decoration: none; flex: none; }
.pg-orders .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pg-orders .hist { font-size: 12px; color: var(--muted); white-space: nowrap; margin-right: 3px; flex: none; }
.pg-orders .hist b { color: var(--bad-ink); font-weight: 700; }
.pg-orders .hist.new { font: 700 12px var(--hand); }
.pg-orders .ic { width: 28px; height: 26px; display: inline-grid; place-items: center; flex: none; padding: 0; color: var(--ink); background: none; border: 1.5px solid var(--line-3); border-radius:55% 45% 52% 48%/62% 46% 56% 42%; font-size: 15px; cursor: pointer; }
.pg-orders .ic.sm { width: 24px; height: 22px; font-size: 13px; border-color: var(--line-2); }
.pg-orders .ic.off { opacity: .4; }
.pg-orders .ic:hover { border-color: var(--ink); }
.pg-orders .ic:focus-visible, .pg-orders .tel:focus-visible, .pg-orders .sel:focus-visible, .pg-orders .row-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pg-orders .tel { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 700; font-size: 13.5px; padding: 2px 10px; color: var(--ink); border: 1.5px solid var(--ink); border-radius:255px 22px 225px 22px/22px 225px 22px 255px; text-decoration: none; min-width: 0; }
.pg-orders .tel-x { flex: none; background: none; border: 0; padding: 2px; color: var(--muted); cursor: pointer; font-size: 14px; display: inline-grid; place-items: center; }
.pg-orders .c-prod { display: flex; align-items: baseline; gap: 5px; }
.pg-orders .pn { color: var(--ink-2); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pg-orders .c-prod .pd { display: flex; flex-direction: column; min-width: 0; }
.pg-orders .sz { color: var(--muted); font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
/* The waybill under the destination; a real one opens the courier's tracking page. */
.pg-orders .c-deliv .wb { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.pg-orders .c-deliv a.wb { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.pg-orders .plus { flex: none; color: var(--muted); font-size: 13px; }
.pg-orders .c-typed { color: var(--info-ink); font-size: 13.5px; overflow-wrap: anywhere; }
.pg-orders .c-deliv { position: relative; }
/* „Доставка до“ (Niki 2.11.2026): the courier's logo and the place on ONE line, cut with …; the
   whole text in the title and, on a tap, in .fullpop. Rows keep their height. */
.pg-orders .c-deliv .dw { display: flex; flex-direction: column; min-width: 0; }
.pg-orders .c-deliv .dv { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 0; font: 600 14px/1.35 var(--sans); color: var(--ink); text-align: left; background: none; border: 0; cursor: pointer; }
.pg-orders :is(.dv, .sel) .dt { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pg-orders .dv:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pg-orders .cl { flex: none; width: 16px; height: 16px; border-radius: 3px; object-fit: contain; }
.pg-orders .cn { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); }
.pg-orders .fullpop { min-width: 0; width: max-content; max-width: min(360px, 90vw); font-size: 13.5px; line-height: 1.4; padding: 8px 12px; overflow-wrap: anywhere; }
.pg-orders .h-wb { text-align: right; white-space: nowrap; justify-self: unsafe end; } /* wider than its 116 px column: it hangs left into the gap, never past the sheet */
.pg-orders .c-deliv .mine { display: block; font: 700 12px var(--hand); color: var(--muted); }
.pg-orders .c-deliv .mine button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pg-orders .sel { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 9px; font: 600 13.5px/1.35 var(--sans); color: var(--ink); text-align: left; background: none; border: 1.5px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; cursor: pointer; }
.pg-orders .sel .i { font-size: 12px; color: var(--muted); }
.pg-orders .sel.hand { border-style: dashed; border-color: var(--ink); font-family: var(--hand); font-weight: 700; }
.pg-orders .menu { position: absolute; z-index: 15; left: 0; top: calc(100% + 4px); min-width: 280px; max-width: 360px; padding: 6px; background: var(--surface-2); color: var(--ink);
  border: 1.5px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
.pg-orders .opt { display: block; width: 100%; text-align: left; font: 400 14px/1.35 var(--sans); color: var(--ink); background: none; border: 0; padding: 6px 10px; cursor: pointer; }
.pg-orders .opt small { display: block; color: var(--muted); font-size: 12px; }
.pg-orders .opt:hover, .pg-orders .opt:focus-visible { outline: 1.5px solid var(--ink); outline-offset: -1.5px; border-radius:255px 14px 225px 14px/14px 225px 14px 255px; }
.pg-orders .opt.on { font-weight: 700; }
.pg-orders .opt.hand { font: 700 14px/1.35 var(--hand); }
.pg-orders .menu input { display: block; width: 100%; margin: 4px 0; font: 400 14px var(--sans); color: var(--ink); background: transparent; border: 1.5px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; padding: 7px 10px; }
.pg-orders .menu input:focus { outline: 0; border-color: var(--ink); }
.pg-orders .menu .none { color: var(--muted); font-size: 13px; padding: 6px 10px; margin: 0; }
.pg-orders .c-note { font-size: 13.5px; }
.pg-orders .c-note small { color: var(--muted); font-weight: 400; margin-left: 4px; white-space: nowrap; }
.pg-orders .n-bad { color: var(--bad-ink); font-weight: 600; } .pg-orders .n-warn { color: var(--warn-ink); font-weight: 600; }
.pg-orders .n-ok { color: var(--ok-ink); font-weight: 600; } .pg-orders .n-mute { color: var(--ink-2); }
/* A labelled order has three links (PDF, Отмени, Отказана): they wrap inside the 96 px track
   instead of running over „Сума“ (walkthrough 27.10.2026). */
.pg-orders .c-acts { display: flex; flex-wrap: wrap; gap: 2px 6px; justify-content: flex-end; align-items: center; min-width: 0; }
.pg-orders .row-btn { font: 700 13px/1.2 var(--hand); color: var(--ink); background: none; border: 1.5px solid var(--line-3); border-radius:255px 22px 225px 22px/22px 225px 22px 255px; padding: 3px 11px; white-space: nowrap; cursor: pointer; }
.pg-orders .row-btn:hover { border-color: var(--ink); }
.pg-orders .row-btn:disabled { opacity: .45; cursor: default; }
/* never wider than the action it sits under: it wraps instead of pushing the address out */
.pg-orders .c-void { flex-basis: 100%; contain: inline-size; text-align: right; font-size: 11px; line-height: 1.2; color: var(--muted); }
.pg-orders .lnk { font: 700 13px var(--hand); color: var(--ink-2); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.pg-orders .lnk:hover { color: var(--ink); }
.pg-orders .lnk.sure { color: var(--bad-ink); }
/* The label's slot (Niki 29.10.2026): the waybill with its ×; the × splits it into „Откажи?“ over
   „Да“ „Не“, in place. 180 ms, none with reduced motion; ≥40 px to touch on a phone. */
.pg-orders .c-acts.lbl { flex-wrap: nowrap; gap: 2px; overflow: hidden; }
/* After „Сума“ the cell starts 16 px in (the rule above the row cells); the label slot needs that
   room for its number, and the column gap already keeps it off the sum. */
.pg-orders #list .row > :is(.h-sum, .c-sum, .c-x.num) + .c-acts.lbl { padding-left: 4px; }
.pg-orders .wbx { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0; min-width: 0; }
.pg-orders .wbx-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-2); white-space: nowrap; }
.pg-orders a.wbx-n { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-3); }
.pg-orders a.wbx-n:hover { color: var(--ink); text-decoration-color: currentColor; }
.pg-orders .wbx.refused .wbx-n { color: var(--bad-ink); }
.pg-orders .wbx.busy .wbx-n { font: 700 13px var(--hand); color: var(--muted); }
.pg-orders .wbx-x { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.pg-orders .wbx-x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.pg-orders .wbx-x:hover { color: var(--bad-ink); background: rgba(var(--bad-rgb), .1); }
.pg-orders .wbx.confirming { flex-direction: column; align-items: flex-end; gap: 3px; }
/* „Отмени товарителницата?“ (item 8): two short lines that fit the 116 px slot; the hand face is too wide. */
.pg-orders .wbx-q { max-width: 100%; font: 600 11.5px/1.2 var(--sans); color: var(--bad-ink); text-align: right; }
.pg-orders .wbx-yn { display: flex; gap: 4px; }
.pg-orders .all-ask { display: inline-flex; align-items: center; gap: 8px; }
.pg-orders .all-ask .wbx-q { color: var(--ink); text-align: left; font-size: 13px; }
.pg-orders .all-ask .wbx-b.yes { border-color: var(--ink); color: var(--ink); }
.set-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; font-size: 13px; }
.pg-orders .wbx-b { font: 700 13px/1 var(--hand); padding: 4px 9px; border: 1.5px solid var(--line-3); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.pg-orders .wbx-b.yes { border-color: var(--bad-ink); color: var(--bad-ink); }
.pg-orders .wbx-b:hover { background: rgba(var(--bad-rgb), .08); }
.pg-orders :is(.wbx-x, .wbx-b):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@keyframes wbx-up { from { opacity: 0; transform: translateY(6px); } }
@keyframes wbx-down { from { opacity: 0; transform: translateY(-6px); } }
@keyframes wbx-join { from { opacity: 0; letter-spacing: .25em; } }
.pg-orders .wbx.confirming .wbx-q { animation: wbx-up 180ms ease-out; }
.pg-orders .wbx.confirming .wbx-yn { animation: wbx-down 180ms ease-out; }
.pg-orders .wbx.join .wbx-n { animation: wbx-join 160ms ease-out; }
@media (prefers-reduced-motion: reduce) { .pg-orders .wbx :is(.wbx-q, .wbx-yn, .wbx-n) { animation: none; } }
@media (pointer: coarse), (max-width: 640px) { .pg-orders .wbx-x { width: 40px; height: 40px; } .pg-orders .wbx-b { min-width: 40px; min-height: 40px; padding: 0 12px; } .pg-orders .c-acts.lbl .ic { width: 40px; height: 40px; } }
.pg-orders .c-x { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.pg-orders .c-x.num { text-align: right; white-space: nowrap; }
.pg-orders input.cb { appearance: none; -webkit-appearance: none; display: inline-block; flex: none; box-sizing: border-box; width: 17px; height: 17px; min-height: 0; padding: 0; margin: 0; border: 1.6px solid var(--ink-2); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; position: relative; cursor: pointer; background: none; }
.pg-orders input.cb:checked::after { content: "✓"; position: absolute; left: 1px; top: -7px; font: 800 17px/1 var(--hand); color: var(--ink); }
.pg-orders input.cb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the state of an order: its mark, and the group's word, in its colour; nothing else is coloured by state */
.pg-orders .mk { display: inline-grid; place-items: center; width: 19px; height: 19px; flex: none; font: 800 12px/1 var(--hand); }
.pg-orders .mk.need { color: var(--bad-ink); border: 2px solid currentColor; border-radius:55% 45% 52% 48%/62% 46% 56% 42%; }
.pg-orders .mk.ready { color: var(--ok-ink); font-size: 16px; }
.pg-orders .mk.sent, .pg-orders .mk.other { color: var(--muted); font-size: 14px; }
/* delivered: the ready tick inside a hand-drawn ring; came back: an arrow in red */
.pg-orders .mk.done { color: var(--ok-ink); font-size: 11px; border: 2px solid currentColor; border-radius:55% 45% 52% 48%/62% 46% 56% 42%; }
.pg-orders .mk.returned, .pg-orders .mk.refused { color: var(--bad-ink); font-size: 14px; }
.pg-orders .mk.refused { font-size: 17px; }
/* one list, newest first (Niki 23.10): each row says its state in words, in the state's colour */
.pg-orders .c-no { flex-wrap: wrap; row-gap: 2px; }
.pg-orders .c-no .st { flex-basis: 100%; font: 700 11.5px/1.15 var(--hand); white-space: normal; color: var(--muted); }
.pg-orders .c-no .st.need, .pg-orders .c-no .st.returned, .pg-orders .c-no .st.refused { color: var(--bad-ink); }
.pg-orders .c-no .st.ready, .pg-orders .c-no .st.done { color: var(--ok-ink); }
/* „Всички готови“: the paper's first line, its box in the rows' box column */
.pg-orders .selall { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; font: 700 13.5px/1.2 var(--hand); color: var(--ink-2); cursor: pointer; width: max-content; }
.pg-orders .selall b { font-weight: 800; color: var(--ink); }
.pg-orders .more-rows { display: inline-flex; gap: 6px; align-items: center; font: 700 14px var(--hand); color: var(--ink-2); background: none; border: 0; padding: 12px 4px 0; cursor: pointer; }
.pg-orders .more-rows:hover { color: var(--ink); }
.pg-orders .old-fold { display: flex; padding-top: 18px; color: var(--ink-3, var(--ink-2)); }
.pg-orders .old-fold[aria-expanded="true"] svg { transform: rotate(180deg); }
/* the address-check email, under its order, in place of the old popup */
.pg-orders .ask { margin: 2px 4px 12px; padding: 12px 14px; border: 1.6px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; }
.pg-orders .ask .subj { margin: 0 0 6px; font-weight: 600; }
/* One order's shipment options (item 15) */
.pg-orders .so-ord-g { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.pg-orders .so-ord-g > span:first-child { min-width: 130px; font-size: 13.5px; color: var(--ink-2); }
.pg-orders .so-ch { display: flex; gap: 6px; flex-wrap: wrap; }
.pg-orders .so-ch .pick[aria-pressed=true] { border-color: var(--ink); border-width: 2.4px; }
.pg-orders .so-btn.on { border-color: var(--ink); }
.pg-orders .ask textarea { width: 100%; min-height: 180px; padding: 10px 12px; font: 400 14px/1.5 var(--sans); color: var(--ink); background: transparent; border: 1.5px solid var(--line-2); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; resize: vertical; }
.pg-orders .ask textarea:focus { outline: 0; border-color: var(--ink); }
.pg-orders .ask .row2 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.pg-orders .ask .row2 .how { flex: 1; min-width: 200px; font-size: 13px; color: var(--ink-2); margin: 0; }
.pg-orders .ask .err-l { color: var(--bad-ink); font-weight: 600; margin: 0; }
.pg-orders .empty-list { display: flex; align-items: center; gap: 16px; padding: 22px 4px 10px; margin: 0; font: 700 22px/1.2 var(--hand); color: var(--ink); }
.pg-orders .empty-list a { font: 600 14px/1.2 var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; margin-left: auto; }
.pg-orders .empty-list::before { content: ""; flex: none; width: 46px; height: 40px; background: currentColor; opacity: .9; -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.pg-orders #list > .note { margin: 14px 4px; color: var(--ink-2); }

/* above the sheet: the result of a batch, and „Откъде изпращате?“ when it is not known yet */
.pg-orders #msg { margin: 0 0 16px; padding: 12px 14px; border: 2px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; background: none; font-size: 14px; }
.pg-orders #msg.bad { border-color: rgb(var(--bad-rgb)); }
.pg-orders #sender { margin: 0 0 24px; padding: 40px 26px 22px; }
.pg-orders #sender h2 { font: 800 21px/1.2 var(--hand); margin: 0 0 4px; color: var(--ink); }
.pg-orders #sender p { color: var(--ink-2); font-size: 14px; margin: 0 0 12px; }
.pg-orders #sender label { display: block; font: 700 15px var(--hand); color: var(--ink-2); margin-top: 10px; }
.pg-orders #sender input { display: block; width: 100%; max-width: 420px; margin-top: 6px; font: 400 15px var(--sans); color: var(--ink); background: transparent; border: 1.8px solid var(--line-3); border-radius:255px 14px 225px 14px/14px 225px 14px 255px; padding: 9px 12px; }
.pg-orders #sender input:focus { outline: 0; border-color: var(--ink); }
.pg-orders #sender .hit { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.pg-orders #sender .hit small { display: block; color: var(--ink-2); }
.pg-orders #sender .s-err { color: var(--bad-ink); font-weight: 600; margin-top: 10px; }

/* the bulk bar: a strip pinned under the sheet, above Shopify's mobile overlay */
.pg-orders #bar { position: sticky; bottom: calc(14px + var(--shopify-safe-area-inset-bottom, 0px)); z-index: 8; margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 16px 14px 56px; border: 0; border-radius: 0; background: none; }
/* A row brought into view (focus, „scroll into view“) stops above the sticky bar, never under it (390 check, 3.11.2026). */
html:has(.pg-orders #bar:not([hidden])) { scroll-padding-bottom: 96px; }
.pg-orders #bar .bar-n { display: flex; gap: 8px; align-items: center; font: 800 16px var(--hand); margin-right: auto; }
.pg-orders #bar .pick { padding: 8px 18px; }
.pg-orders #bar .pick:disabled { opacity: .45; cursor: default; }
.pg-orders #foot { margin-top: 18px; }

/* phone: the same rows, wrapped like the mockup; a firmer rule between orders */
@media (max-width: 640px) {
  .pg-orders .views { gap: 10px; margin-bottom: 12px; }
  .pg-orders .tabs { width: 100%; gap: 0; }
  .pg-orders .v { padding: 3px 9px; font-size: 13.5px; flex: none; }
  /* the search the whole width, the filters under it, then the actions: nothing past the paper at 390 */
  .pg-orders .tools, .pg-orders .finds { flex-direction: column; align-items: stretch; gap: 10px; }
  .pg-orders .search { min-width: 0; width: auto; }
  .pg-orders .acts { margin-left: 0; }
  .pg-orders .acts #csvUp { margin-left: auto; }
  /* the box on the rows' side: on a phone the rows keep it at their right end */
  .pg-orders .selall { margin-left: auto; padding: 0 8px 10px; }
  .pg-orders .selall input { order: 3; }
  .pg-orders .colwrap { display: none; }
  .pg-orders .sheet { padding: 34px 12px 18px; }
  .pg-orders .sheet > .pin.l { left: 9%; } .pg-orders .sheet > .pin.r { right: 9%; }
  .pg-orders #list .row.thead { display: none; }
  .pg-orders #list .row { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 7px; padding: 14px 8px; border-bottom: 1.5px solid var(--line-2); }
  .pg-orders .nm, .pg-orders .c-sum { font-size: 15px; }
  /* „платена“ under the sum, so a paid order keeps the client's name whole (27.10.2026: „И…“). */
  .pg-orders .paid, .pg-orders .cash { display: block; margin-left: 0; text-align: right; }
  .pg-orders .c-prod, .pg-orders .c-typed, .pg-orders .c-deliv { display: flex; align-items: baseline; gap: 7px; }
  .pg-orders #list .li { display: inline-flex; flex: none; width: 15px; color: var(--muted); font-size: 14px; transform: translateY(2px); }
  .pg-orders #list .row .br { display: block; flex-basis: 100%; height: 0; }
  /* Line 1: the number and the sum; line 2: the name, its buttons and „Статус“ (Niki 2.11.2026: the
     name had shrunk to „Дес…“ beside the bigger number). */
  .pg-orders .c-no { order: 1; } .pg-orders .c-sum { order: 2; margin-left: auto; } .pg-orders #list .br { order: 3; } .pg-orders .c-client { order: 4; flex: 1 1 auto; }
  .pg-orders .c-prod { order: 5; flex-basis: 100%; } .pg-orders .c-typed { order: 6; flex-basis: 100%; } .pg-orders .c-deliv { order: 7; flex-basis: 100%; }
  .pg-orders .c-note { order: 8; flex: 1; } .pg-orders .c-note:empty { display: none; } .pg-orders .c-acts { order: 9; margin-left: auto; } .pg-orders .c-chk { order: 10; }
  .pg-orders .row:not(.need) .c-typed { display: none; }
  .pg-orders .row:not(.need) .c-deliv { flex: 1 1 0; } .pg-orders .row:not(.need) .c-note { order: 11; flex-basis: 100%; }
  .pg-orders .c-x { display: none; }
  /* The call-status box: on a phone a line of its own under the name and the sum (27.10.2026). */
  .pg-orders .c-client { min-width: 0; position: static; }
  .pg-orders #list .row .c-call { display: block; order: 4; flex: none; }
  /* its menu and the order-cancel box open leftwards from the button at the row's right end */
  .pg-orders .c-call .menu { left: auto; right: 0; width: min(320px, calc(100vw - 40px)); }
  .pg-orders .menu.ccard { left: 8px; right: 8px; width: auto; max-width: none; }
  .pg-orders .row { position: relative; }
  .pg-orders .menu { min-width: 0; width: 100%; max-width: none; }
  .pg-orders .sel { white-space: normal; }
  .pg-orders #sender { padding: 38px 16px 18px; }
  .pg-orders #bar { padding: 10px 10px 10px 40px; gap: 8px; flex-wrap: nowrap; }
  .pg-orders #bar::after { left: 10px; }
  .pg-orders #bar .bar-n { font-size: 14px; gap: 6px; white-space: nowrap; }
  .pg-orders #bar .pick { font-size: 13px; padding: 7px 11px; white-space: nowrap; }
}
/* the narrowest phones: the bar keeps one line, the count is in the button itself („Създай 5 …“) */
@media (max-width: 400px) { .pg-orders #bar .bar-n { display: none; } .pg-orders #bar #bar-make, .pg-orders #bar #bar-print { margin-left: auto; } }

/* Waiting on the server (brand-ui.js, Niki 27.10.2026): a hand-drawn ring beside the button's
   words while its request is out, and a thin ink line along the top once the wait is noticeable.
   1px-scale strokes, no glow. Reduced motion: both hold still. */
.zw-busy { cursor: progress; }
.zw-spin { display: inline-block; flex: none; width: .95em; height: .95em; margin-left: .5em; vertical-align: -.15em; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50% 44% 56% 47%; animation: zw-spin .75s linear infinite; }
.zw-spin.still { animation: none; border-style: dotted; border-right-color: currentColor; }
@keyframes zw-spin { to { transform: rotate(360deg); } }
.zw-wait { position: fixed; z-index: 200; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 2px; overflow: hidden; pointer-events: none; }
.zw-wait::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: var(--primary); animation: zw-run 1.1s cubic-bezier(.45,.05,.4,1) infinite; }
.zw-wait.still::before { animation: none; width: 100%; opacity: .5; }
@keyframes zw-run { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

/* „Откажи поръчката в Shopify“ (Niki 29.10.2026): the menu item in the refused colour, and the popover
   on the row that asks before anything is sent (Niki 30.10: „like the label cancel“). It sits where
   the status menu opens (.pg-orders .menu) and uses the slot's own Да / Не buttons. */
.pg-orders .callmenu .opt.ocx { color: var(--bad-ink); border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 8px; }
.pg-orders .ocpop { display: grid; gap: 7px; padding: 10px 12px; width: 300px; max-width: calc(100vw - 32px); white-space: normal; }
.pg-orders .ocpop .oc-q { font-size: 14px; }
.pg-orders .ocpop .oc-facts { color: var(--ink-2); font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.pg-orders .ocpop .oc-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
/* The box beside its words: the menu's search field rule (width 100%) must not stretch it. */
.pg-orders .ocpop .oc-opt input { display: inline-block; flex: none; width: auto; margin: 0; padding: 0; }
.pg-orders .ocpop .oc-note { color: var(--muted); font-size: 12px; }
.pg-orders .ocpop .oc-err { color: var(--bad-ink); font-weight: 600; font-size: 13px; }
.pg-orders .ocpop .oc-yn { display: flex; gap: 6px; justify-content: flex-end; }

/* ── Pencil marks ── */
/* A page's one main action: its label inside a drawn outline, no fill. */
.pg-quick #q-theme.pick.main, .pg-orders #bar-make.pick.main, .pg-orders:not(:has(#bar:not([hidden]))) #allReady.pick.main, .pg-onb .btn, .pg-auth .btn, .pencil { --primary: transparent; --primary-hi: transparent; --primary-ink: var(--ink); position: relative; border-color: transparent; box-shadow: none; }
:is(.pg-quick #q-theme.pick.main, .pg-orders #bar-make.pick.main, .pg-orders:not(:has(#bar:not([hidden]))) #allReady.pick.main, .pg-onb .btn, .pg-auth .btn, .pencil)::before { content: ""; position: absolute; inset: -3px -5px; background: currentColor; pointer-events: none; -webkit-mask: var(--pencil-box-1) center / 100% 100% no-repeat; mask: var(--pencil-box-1) center / 100% 100% no-repeat; }
.pg-orders #allReady.pick.main::before, .pg-onb .btn::before, .pencil.p2::before { -webkit-mask: var(--pencil-box-2) center / 100% 100% no-repeat; mask: var(--pencil-box-2) center / 100% 100% no-repeat; }
.pg-orders #bar-make.pick.main::before, .pg-auth .btn::before, .pencil.p3::before { -webkit-mask: var(--pencil-box-3) center / 100% 100% no-repeat; mask: var(--pencil-box-3) center / 100% 100% no-repeat; }
/* Focus: the same outline, drawn a second time. */
:is(.pg-quick #q-theme.pick.main, .pg-orders #bar-make.pick.main, .pg-orders:not(:has(#bar:not([hidden]))) #allReady.pick.main, .pg-onb .btn, .pg-auth .btn, .pencil):focus-visible { outline: 0; }
:is(.pg-quick #q-theme.pick.main, .pg-orders #bar-make.pick.main, .pg-orders:not(:has(#bar:not([hidden]))) #allReady.pick.main, .pg-onb .btn, .pg-auth .btn, .pencil):focus-visible::after { content: ""; position: absolute; inset: -6px -8px; background: currentColor; pointer-events: none; -webkit-mask: var(--pencil-box-3) center / 100% 100% no-repeat; mask: var(--pencil-box-3) center / 100% 100% no-repeat; }
/* Selected and active: a lighter mark around the word. */
.seg button[aria-pressed=true]::after { inset: -3px -6px; border: 0; border-radius: 0; transform: none; background: currentColor; -webkit-mask: var(--pencil-ring-1) center / 100% 100% no-repeat; mask: var(--pencil-ring-1) center / 100% 100% no-repeat; }
.seg button:focus-visible { outline: 0; }
.seg button:focus-visible::after { content: ""; position: absolute; inset: -3px -6px; background: currentColor; pointer-events: none; -webkit-mask: var(--pencil-ring-2) center / 100% 100% no-repeat; mask: var(--pencil-ring-2) center / 100% 100% no-repeat; }
:is(.pg-quick, .pg-form, .pg-onb) .chip, :is(.pg-quick, .pg-form, .pg-onb) .chip:hover, .pg-quick #presets .chip.real, .pg-quick #presets .chip.real:hover { position: relative; border: 1px solid transparent; background: none; }
:is(.pg-quick, .pg-form, .pg-onb) :is(.chip[aria-pressed=true], .chip.on, .chip.chk:has(input:checked)), .pg-quick #presets .chip.real[aria-pressed=true] { color: var(--ink); border: 1px solid transparent; background: none; }
:is(.pg-quick, .pg-form, .pg-onb) :is(.chip[aria-pressed=true], .chip.on, .chip.chk:has(input:checked), .chip:focus-visible)::after { content: ""; position: absolute; inset: -4px -6px; background: var(--ink); pointer-events: none; -webkit-mask: var(--pencil-ring-2) center / 100% 100% no-repeat; mask: var(--pencil-ring-2) center / 100% 100% no-repeat; }
:is(.pg-quick, .pg-form, .pg-onb) .chip:focus-visible { outline: 0; }
.sections a[aria-current="page"] { position: relative; border-bottom-color: transparent; }
.sections a[aria-current="page"]::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -3px; height: 8px; background: currentColor; pointer-events: none; -webkit-mask: var(--pencil-under-2) center / 100% 100% no-repeat; mask: var(--pencil-under-2) center / 100% 100% no-repeat; }
/* A status: a drawn ring for not yet, a drawn check for done, and plain text. Off is lighter text, with no mark. */
.zw-mark { flex: none; display: inline-block; width: 15px; height: 15px; background: currentColor; }
.zw-mark.todo { -webkit-mask: var(--pencil-circle) center / contain no-repeat; mask: var(--pencil-circle) center / contain no-repeat; }
.zw-mark.done { -webkit-mask: var(--pencil-check) center / contain no-repeat; mask: var(--pencil-check) center / contain no-repeat; }
.mode-i, [data-theme="light"] .mode-i { background: var(--ink-2); }
.pg-home .hm-steps li.done .m { font-size: 0; }
.pg-home .hm-steps li.done .m::before { content: ""; display: inline-block; width: 20px; height: 20px; background: var(--ink); -webkit-mask: var(--pencil-check) center / contain no-repeat; mask: var(--pencil-check) center / contain no-repeat; }
