/* «بطاقة هوية قطعة» — the WIDE card (owner decision 29 Nov 2026 04:34): the shape and element order of the owner's reference
   picture, as an ID card. One fixed design canvas, width:height = 1.70:1 (owner, 29 Nov: wide and low), scaled as a whole to the card's width: every size
   below is in cqw (1 % of the card's width), so at 340 px the card is about 340 x 224 px with the same proportions and order.
   RTL: header «بطاقة هوية قطعة» on the right, logo on the left; the fields column on the right (الاسم large, then label …
   value rows with dotted leaders) and the price box bottom right; the picture with its caption and the round stamp over its
   lower outer corner on the left, QR + site + No. under it; the two-line machine-readable strip in the bottom band.
   English mirrors (LTR). Long texts are clamped to their box (one line, full text in the title); the card never grows. */
@font-face{font-family:AmiriD;src:url('/assets/site-id/Amiri-Bold-arabic-s17a.woff2') format('woff2');font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+200C-200E,U+2010-2011,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:AmiriD;src:url('/assets/site-id/Amiri-Bold-latin.woff2') format('woff2');font-weight:700;font-display:swap;unicode-range:U+0000-00FF,U+2013-2014}
@font-face{font-family:PlexMonoD;src:url('/assets/site-id/PlexMono-500-latin.woff2') format('woff2');font-weight:500;font-display:swap}
.spid{
  --spid-paper:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cg fill='none' stroke='%232f6a55' stroke-opacity='.13' stroke-width='0.5'%3E%3Cpath d='M0 -6 Q20 -13 40 -6 T80 -6 T120 -6 T160 -6 M0 0 Q20 -7 40 0 T80 0 T120 0 T160 0 M0 6 Q20 -1 40 6 T80 6 T120 6 T160 6 M0 12 Q20 5 40 12 T80 12 T120 12 T160 12 M0 18 Q20 11 40 18 T80 18 T120 18 T160 18 M0 24 Q20 17 40 24 T80 24 T120 24 T160 24 M0 30 Q20 23 40 30 T80 30 T120 30 T160 30 M0 36 Q20 29 40 36 T80 36 T120 36 T160 36 M0 42 Q20 35 40 42 T80 42 T120 42 T160 42 M0 48 Q20 41 40 48 T80 48 T120 48 T160 48 M0 54 Q20 47 40 54 T80 54 T120 54 T160 54'/%3E%3Cpath d='M0 -6 Q20 1 40 -6 T80 -6 T120 -6 T160 -6 M0 0 Q20 7 40 0 T80 0 T120 0 T160 0 M0 6 Q20 13 40 6 T80 6 T120 6 T160 6 M0 12 Q20 19 40 12 T80 12 T120 12 T160 12 M0 18 Q20 25 40 18 T80 18 T120 18 T160 18 M0 24 Q20 31 40 24 T80 24 T120 24 T160 24 M0 30 Q20 37 40 30 T80 30 T120 30 T160 30 M0 36 Q20 43 40 36 T80 36 T120 36 T160 36 M0 42 Q20 49 40 42 T80 42 T120 42 T160 42 M0 48 Q20 55 40 48 T80 48 T120 48 T160 48 M0 54 Q20 61 40 54 T80 54 T120 54 T160 54'/%3E%3C/g%3E%3C/svg%3E");
  --spid-head:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='48' viewBox='0 0 160 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='0.5'%3E%3Cpath d='M0 -6 Q20 -13 40 -6 T80 -6 T120 -6 T160 -6 M0 0 Q20 -7 40 0 T80 0 T120 0 T160 0 M0 6 Q20 -1 40 6 T80 6 T120 6 T160 6 M0 12 Q20 5 40 12 T80 12 T120 12 T160 12 M0 18 Q20 11 40 18 T80 18 T120 18 T160 18 M0 24 Q20 17 40 24 T80 24 T120 24 T160 24 M0 30 Q20 23 40 30 T80 30 T120 30 T160 30 M0 36 Q20 29 40 36 T80 36 T120 36 T160 36 M0 42 Q20 35 40 42 T80 42 T120 42 T160 42 M0 48 Q20 41 40 48 T80 48 T120 48 T160 48 M0 54 Q20 47 40 54 T80 54 T120 54 T160 54'/%3E%3Cpath d='M0 -6 Q20 1 40 -6 T80 -6 T120 -6 T160 -6 M0 0 Q20 7 40 0 T80 0 T120 0 T160 0 M0 6 Q20 13 40 6 T80 6 T120 6 T160 6 M0 12 Q20 19 40 12 T80 12 T120 12 T160 12 M0 18 Q20 25 40 18 T80 18 T120 18 T160 18 M0 24 Q20 31 40 24 T80 24 T120 24 T160 24 M0 30 Q20 37 40 30 T80 30 T120 30 T160 30 M0 36 Q20 43 40 36 T80 36 T120 36 T160 36 M0 42 Q20 49 40 42 T80 42 T120 42 T160 42 M0 48 Q20 55 40 48 T80 48 T120 48 T160 48 M0 54 Q20 61 40 54 T80 54 T120 54 T160 54'/%3E%3C/g%3E%3C/svg%3E");
  --spid-rosette:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23a8843c' stroke-opacity='.22' stroke-width='0.6'%3E%3Ccircle cx='206.0' cy='160.0' r='92'/%3E%3Ccircle cx='205.6' cy='166.0' r='92'/%3E%3Ccircle cx='204.4' cy='171.9' r='92'/%3E%3Ccircle cx='202.5' cy='177.6' r='92'/%3E%3Ccircle cx='199.8' cy='183.0' r='92'/%3E%3Ccircle cx='196.5' cy='188.0' r='92'/%3E%3Ccircle cx='192.5' cy='192.5' r='92'/%3E%3Ccircle cx='188.0' cy='196.5' r='92'/%3E%3Ccircle cx='183.0' cy='199.8' r='92'/%3E%3Ccircle cx='177.6' cy='202.5' r='92'/%3E%3Ccircle cx='171.9' cy='204.4' r='92'/%3E%3Ccircle cx='166.0' cy='205.6' r='92'/%3E%3Ccircle cx='160.0' cy='206.0' r='92'/%3E%3Ccircle cx='154.0' cy='205.6' r='92'/%3E%3Ccircle cx='148.1' cy='204.4' r='92'/%3E%3Ccircle cx='142.4' cy='202.5' r='92'/%3E%3Ccircle cx='137.0' cy='199.8' r='92'/%3E%3Ccircle cx='132.0' cy='196.5' r='92'/%3E%3Ccircle cx='127.5' cy='192.5' r='92'/%3E%3Ccircle cx='123.5' cy='188.0' r='92'/%3E%3Ccircle cx='120.2' cy='183.0' r='92'/%3E%3Ccircle cx='117.5' cy='177.6' r='92'/%3E%3Ccircle cx='115.6' cy='171.9' r='92'/%3E%3Ccircle cx='114.4' cy='166.0' r='92'/%3E%3Ccircle cx='114.0' cy='160.0' r='92'/%3E%3Ccircle cx='114.4' cy='154.0' r='92'/%3E%3Ccircle cx='115.6' cy='148.1' r='92'/%3E%3Ccircle cx='117.5' cy='142.4' r='92'/%3E%3Ccircle cx='120.2' cy='137.0' r='92'/%3E%3Ccircle cx='123.5' cy='132.0' r='92'/%3E%3Ccircle cx='127.5' cy='127.5' r='92'/%3E%3Ccircle cx='132.0' cy='123.5' r='92'/%3E%3Ccircle cx='137.0' cy='120.2' r='92'/%3E%3Ccircle cx='142.4' cy='117.5' r='92'/%3E%3Ccircle cx='148.1' cy='115.6' r='92'/%3E%3Ccircle cx='154.0' cy='114.4' r='92'/%3E%3Ccircle cx='160.0' cy='114.0' r='92'/%3E%3Ccircle cx='166.0' cy='114.4' r='92'/%3E%3Ccircle cx='171.9' cy='115.6' r='92'/%3E%3Ccircle cx='177.6' cy='117.5' r='92'/%3E%3Ccircle cx='183.0' cy='120.2' r='92'/%3E%3Ccircle cx='188.0' cy='123.5' r='92'/%3E%3Ccircle cx='192.5' cy='127.5' r='92'/%3E%3Ccircle cx='196.5' cy='132.0' r='92'/%3E%3Ccircle cx='199.8' cy='137.0' r='92'/%3E%3Ccircle cx='202.5' cy='142.4' r='92'/%3E%3Ccircle cx='204.4' cy='148.1' r='92'/%3E%3Ccircle cx='205.6' cy='154.0' r='92'/%3E%3Ccircle cx='160' cy='160' r='144'/%3E%3Ccircle cx='160' cy='160' r='148'/%3E%3Ccircle cx='160' cy='160' r='40'/%3E%3C/g%3E%3C/svg%3E");
  --spid-ink:#16241e;--spid-muted:#45554e;--spid-gold:#b08d47;--spid-gold-ink:#6a4d12;--spid-green:#173f33;
  container:spid/inline-size;color-scheme:only light;position:relative;display:block;width:100%;max-width:760px;margin-inline:auto;
  aspect-ratio:1.7/1;overflow:hidden;
  background:var(--spid-rosette) no-repeat 30% 55%/38cqw 38cqw,var(--spid-paper) repeat 0 0/24cqw 7.2cqw,linear-gradient(180deg,#fbf8ef,#f3eedf);
  background-color:#f8f4e8;border:1px solid #d6c9a8;border-radius:3.7cqw;box-shadow:0 2.4cqw 6cqw rgba(22,45,36,.16);
  /* the header band: as tall as the earlier card's band at phone width (34 px on a 334-364 px card), scaled above that */
  --spid-hh:max(34px,9.3cqw);
  color:var(--spid-ink);font-family:Sarh,SarhLatin,system-ui,sans-serif;font-size:2.9cqw;line-height:1.3;text-align:start}
.spid *,.spid-dlg *{box-sizing:border-box}
.spid bdi{unicode-bidi:isolate}
.spid p{margin:0}

/* header band */
.spid-head{position:absolute;inset-inline:0;top:0;height:var(--spid-hh);border-radius:3.7cqw 3.7cqw 0 0;display:flex;align-items:center;justify-content:space-between;gap:2cqw;padding-inline:4cqw;
  background:var(--spid-head) repeat 0 0/24cqw 7.2cqw,linear-gradient(180deg,#1f4e41,#123a2f);color:#fff;border-bottom:.45cqw solid var(--spid-gold)}
.spid .spid-title{margin:0;font:700 5.2cqw/1 AmiriD,Sarh,serif;color:#fff;white-space:nowrap}
.spid-brand{display:flex;align-items:center;gap:1.6cqw;min-width:0}
.spid-mark{flex:none;display:flex;align-items:center;padding:.5cqw 1.2cqw;border-radius:1.6cqw;background:#fff;border:.3cqw solid #d9bd7c;box-shadow:0 0 0 .35cqw #173f33}
.spid .spid-mark img{display:block;width:auto;height:5.4cqw;max-width:none}
.spid-words{display:none;flex-direction:column;line-height:1.15}
@container spid (min-width:560px){.spid-words{display:flex}}
.spid-words b{font:700 2.3cqw/1.2 AmiriD,serif;letter-spacing:.14em;color:#fff;white-space:nowrap}
.spid-words small{font:500 1.6cqw/1.2 PlexMonoD,ui-monospace,monospace;letter-spacing:.16em;color:#ecdcb4;white-space:nowrap}
.spid-rule{position:absolute;inset-inline:0;top:calc(var(--spid-hh) + .45cqw);height:0;border-top:.15cqw solid rgba(176,141,71,.7)}
.spid .spid-band{position:absolute;inset-inline-end:4cqw;bottom:9.3cqw;width:33cqw;height:7.6cqw;   /* a reference has no QR: the band takes that place, under the picture */display:flex;align-items:center;padding:1cqw 1.6cqw;
  border:.3cqw solid #c4a35c;border-radius:1.8cqw;background:#fffaee;color:#56400f;font-weight:700;font-size:2cqw;line-height:1.25;overflow:hidden}

/* body: the fields column (start side) and the picture column (end side) */
.spid-body{position:absolute;inset-inline:0;top:calc(var(--spid-hh) + .6cqw);bottom:8.2cqw}
.spid-main{position:absolute;inset-inline-start:4cqw;top:.9cqw;width:54cqw;bottom:9.4cqw;display:flex;flex-direction:column;min-width:0}
.spid-k{display:block;font-size:2.1cqw;line-height:1.15;color:var(--spid-muted)}
.spid-name{margin:0;font:700 4.4cqw/1.15 AmiriD,Sarh,serif;color:#111d18;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.spid-name a{color:inherit;text-decoration:none}
.spid-name [lang=en]{font-family:SarhLatin,Sarh,system-ui,sans-serif;font-size:.8em}
.spid .spid-name-note{font-size:1.9cqw;color:var(--spid-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spid-rows{flex:1;display:flex;flex-direction:column;justify-content:space-evenly;margin:0;padding:0;min-height:0}
.spid-row{display:flex;align-items:baseline;gap:1cqw;min-width:0;line-height:1.25}
.spid-row::after{content:'';order:1;flex:1 1 2cqw;min-width:2cqw;border-bottom:.3cqw dotted rgba(110,90,45,.55);transform:translateY(-.5cqw)}
.spid-row dt{order:0;flex:none;font-size:2.4cqw;color:var(--spid-muted);white-space:nowrap}
/* 29 Nov 2026 (audit defect 8): a value is never cut (the ellipsis used to fall on the START of a Latin line in this RTL
   card, «…NTRA 16»): it wraps, whole */
.spid-row dd{order:2;margin:0;flex:0 1 auto;max-width:60cqw;font-weight:700;font-size:3cqw;color:var(--spid-ink);white-space:normal;overflow-wrap:anywhere;text-align:end}
.spid-pn{font-family:SarhLatin,Sarh,system-ui,sans-serif;font-weight:700;letter-spacing:.02em}
.spid-row--pn dd{font-size:3.4cqw}
.spid-row.is-muted dd{font-weight:500;color:var(--spid-muted)}
.spid-row--avail.is-confirmed dd{color:#155a3b}
.spid-row--avail.is-unavailable dd{color:#5d4a44}
.spid-type{display:inline-block;padding:0 1.2cqw;line-height:1.3;border:.25cqw solid var(--spid-green);border-radius:1cqw;background:#fff;color:var(--spid-green);font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
.spid-type.is-original{background:var(--spid-green);color:#fff}
.spid-type.is-plain{border-color:#a99a72;background:#fffaf0;color:#46524c;font-weight:600}
.spid-type-v{white-space:nowrap}
.spid-fit{display:inline-block;padding:0 1.4cqw;border-radius:5cqw;font-weight:700}
.spid-fit--needs_match{border:.25cqw solid #c0953a;background:#fff4d9;color:#5f4200}
.spid-fit--proven{border:.25cqw solid #2f7d55;background:#e6f4eb;color:#124d2f}
.spid-fit--not_fit{border:.25cqw solid #a3281c;background:#fdeae7;color:#7e1c12}

/* picture, caption and stamp */
.spid-pic{position:absolute;inset-inline-end:4cqw;top:1.4cqw;width:33cqw;margin:0}
.spid-frame{position:relative;padding:1cqw;background:#fff;border:.25cqw solid #e2d8bf;border-radius:2.4cqw;box-shadow:0 .6cqw 2cqw rgba(30,50,40,.14)}
.spid-frame img{display:block;width:100%;height:auto;aspect-ratio:1.6/1;object-fit:contain;border-radius:1.4cqw;background:#fff}
.spid-zoom{display:block;width:100%;margin:0;padding:0;border:0;border-radius:1.4cqw;background:none;cursor:zoom-in;color:inherit;text-decoration:none}
.spid-golink{cursor:pointer}
.spid-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.spid-zoom:focus-visible,.spid a:focus-visible,.spid button:focus-visible{outline:3px solid #1d5f4a;outline-offset:2px}
.spid-noimg{display:grid;place-content:center;justify-items:center;gap:1cqw;aspect-ratio:1.6/1;color:var(--spid-muted);font-size:2.2cqw;text-align:center}
.spid-noimg svg{width:8cqw;height:8cqw;fill:none;stroke:#7f8f87;stroke-width:2;stroke-linejoin:round}
.spid-cap{margin:.8cqw 0 0;font-size:2.2cqw;color:var(--spid-muted);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spid-stamp{position:absolute;inset-inline-end:-2.6cqw;bottom:-2.6cqw;display:grid;place-content:center;justify-items:center;width:11.6cqw;height:11.6cqw;
  border-radius:50%;background:#fbf6e6;border:.45cqw solid var(--spid-gold);outline:.2cqw solid rgba(176,141,71,.75);outline-offset:-1.2cqw;
  color:var(--spid-gold-ink);text-align:center;line-height:1.1;transform:rotate(-10deg);box-shadow:0 .6cqw 1.6cqw rgba(60,45,10,.2);pointer-events:none}
.spid-stamp b{font:700 3cqw/1.1 AmiriD,Sarh,serif}
.spid-stamp span{font-size:1.9cqw;font-weight:700}
.spid-stamp--pending{border-color:#8c9a92;outline-color:rgba(140,154,146,.8);color:#3e4d47}
.spid-stamp--unavailable{border-color:#9a8f86;outline-color:rgba(154,143,134,.8);color:#4b4540;background:#f3efe9}

/* price box (bottom of the fields side) and QR (bottom of the picture side) */
.spid-price{position:absolute;inset-inline-start:4cqw;bottom:1cqw;width:max-content;min-width:19cqw;max-width:30cqw;height:7.6cqw;display:flex;flex-direction:column;justify-content:center;padding:.6cqw 2cqw;
  border:.3cqw solid var(--spid-gold);border-radius:2cqw;background:#fffdf6;box-shadow:inset 0 0 0 .6cqw #fffdf6,inset 0 0 0 .8cqw rgba(176,141,71,.5);overflow:hidden}
.spid-price-k{font-size:1.9cqw;line-height:1.1;color:var(--spid-muted);white-space:nowrap}
.spid-price-v{display:flex;align-items:baseline;gap:1.2cqw;color:var(--spid-gold-ink);white-space:nowrap}
.spid-amount{font:700 4.8cqw/1.05 AmiriD,serif}
.spid-price-v small{font-weight:700;font-size:2.5cqw}
.spid-price.is-quote .spid-price-v{font-size:3.4cqw;font-weight:700}
.spid-price-note{font-size:1.7cqw;color:var(--spid-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spid-qr{position:absolute;inset-inline-end:4cqw;bottom:1.3cqw;display:flex;flex-direction:row-reverse;align-items:center;gap:1.6cqw;width:34cqw;justify-content:flex-start}
.spid-qr-code{flex:none;width:8.2cqw;height:8.2cqw;padding:.6cqw;border-radius:1.6cqw;background:#fff;box-shadow:0 .4cqw 1.4cqw rgba(30,50,40,.18)}
.spid-qr-code svg{display:block;width:100%;height:100%}
.spid-qr-code.is-missing{display:none}
.spid-qr-t{display:flex;flex-direction:column;min-width:0;line-height:1.3;color:var(--spid-muted)}
.spid-qr-t b{font-size:2.3cqw;color:var(--spid-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spid-qr-t small{font-size:1.8cqw;white-space:nowrap}

/* machine-readable strip: the bottom band */
.spid-mrz{position:absolute;inset-inline:0;bottom:0;height:8.2cqw;display:flex;flex-direction:column;justify-content:center;padding-inline:4cqw;
  border-top:.25cqw solid rgba(120,98,48,.4);background:rgba(234,227,207,.78);color:#1f2d27;font:500 2.7cqw/1.3 PlexMonoD,ui-monospace,monospace;letter-spacing:.1em;white-space:pre;overflow:hidden}

/* notes that belong to a reference card but not to the ID-card face sit under the card, never inside it */
.spid-extra{margin:2cqw 0 0;font-size:.875rem;line-height:1.6;color:#45554e}

/* dialogs: the picture and the drawing */
.spid-dlg.spid-dlg{width:min(96vw,920px);max-width:96vw;max-height:92vh;padding:0;border:0;border-radius:16px;background:#fff;color:#16241e;color-scheme:only light}
.spid-dlg::backdrop{background:rgba(8,20,15,.72)}
.spid-dlg-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 8px 8px 14px;background:#fff;border-bottom:1px solid #e3e8e2}
.spid-dlg-head strong{font-size:0.9375rem;line-height:1.4}
.spid-dlg-x{flex:none;width:50px;height:50px;border:1px solid #cfd8d3;border-radius:12px;background:#fff;color:#16241e;font-size:1.625rem;line-height:1;cursor:pointer}
/* 29 Nov 2026 (audit defect 7): the drawing opens whole on any screen: its height is bounded by the window, its width
   follows its own ratio, and the mark layer (inset 0) stays the size of the picture */
.spid-dlg-pic{position:relative;margin:12px auto;width:fit-content;max-width:calc(100% - 24px)}
.spid-dlg-pic img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(92vh - 96px)}
.spid-dlg-mark{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.spid-dlg-mark rect,.spid-dlg-mark circle{fill:rgba(214,40,40,.16);stroke:#d62828;stroke-width:3;vector-effect:non-scaling-stroke}
.spid-dlg .spid-note{margin:0 14px 14px}
@media (prefers-reduced-motion:no-preference){.spid-draw,.spid-zoom{transition:background-color .15s}}

/* print: the green band and gold rules print as they are, so the white header text stays readable */

@media print{.spid,.spid *{-webkit-print-color-adjust:exact;print-color-adjust:exact}.spid{box-shadow:none;break-inside:avoid}}

/* batch b (29 Nov 2026): a catalogue reference's notes, drawing button, alternates and vehicle list, UNDER its card */
.spid-wrap{display:block;width:100%;max-width:760px;margin-inline:auto}
.spid-wrap>.spid{margin:0}
.spid-extra{margin:8px 2px 0;font-size:.875rem;line-height:1.6;color:#45554e}
.spid-extra .spid-note{margin:6px 0 0}
.spid-extra .spid-list{margin:4px 0 0;padding-inline-start:18px;font-size:.875rem;line-height:1.7}
.spid-extra .spid-rel{color:#45554e}
.spid-extra .spid-pn{font-family:SarhLatin,Sarh,system-ui,sans-serif;font-weight:700}
.spid-extra summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:700;color:#173f33}
.spid-extra summary::before{content:none;display:none}
.spid-extra .spid-draw{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;width:100%;min-height:48px;margin-top:8px;padding:10px 14px;
  border:1.5px solid #173f33;border-radius:12px;background:#fff;color:#173f33;font:inherit;font-weight:700;font-size:.9375rem;cursor:pointer;text-align:start}
.spid-extra .spid-draw-pos{padding:2px 10px;border-radius:999px;background:#f2e8cc;color:#4f3a0d;font-size:.875rem}
.spid-extra .spid-onshelf{margin:8px 0 0;padding:8px 12px;border-radius:10px;background:#e8f3ec;color:#124d2f;font-weight:700}
.spid-extra .spid-onshelf a{display:inline-flex;align-items:center;min-height:44px;color:#0e5533}
.spid-more-n{padding:0 1cqw;border-radius:3cqw;background:#efe5c9;color:#4f3a0d}
.spid-extra .spid-more-n{padding:0 8px;border-radius:999px;font-size:.8125rem}

/* «tap the card to see it enlarged» (29 Nov 2026): the same card, cloned, filling the screen in its landscape proportion */
.spid.spid--tap{cursor:zoom-in}
.spid.spid--tap:focus-visible{outline:3px solid #1d5f4a;outline-offset:3px}
.spid-dlg.spid-big{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:rgba(8,20,15,.9);overflow:hidden}
.spid-big::backdrop{background:rgba(8,20,15,.9)}
.spid-big-stage{position:absolute;inset:0;overflow:hidden}
.spid-big .spid.spid--big{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(calc(100vw - 24px),calc((100dvh - 24px) * 1.7));max-width:none;margin:0;cursor:default}
/* 29 Nov 2026 (mobile UX lane A, D42): on a portrait phone the enlarged card is no longer turned a quarter (it opened sideways);
   it fills the screen's width upright, in its phone form, and scrolls when taller than the screen */
@media (orientation:portrait){.spid-big .spid.spid--big{width:calc(100vw - 24px);transform:translate(-50%,-50%)}}
.spid-big .spid-big-stage{overflow:auto}
.spid-big .spid.spid--big.spid--flow{position:relative;left:auto;top:auto;transform:none;width:calc(100vw - 24px);max-width:520px;margin:max(64px,calc(50dvh - 220px)) auto 24px}
.spid-big .spid-big-x{position:fixed;top:max(10px,env(safe-area-inset-top));inset-inline-end:10px;z-index:2;background:#fff}

/* 29 Nov 2026 (mobile UX lane A, D16/D17): the PHONE form of the same card. Below 520 px of card width (every phone, the
   chat on a phone) the one-canvas card drew its labels at 6-11 px and cut the name, type and domain with «…». The card
   keeps its face (green band, logo, paper, dotted rows, stamp, price box, QR, machine strip) but flows: it grows with its
   text, nothing is cut, and the smallest text is 12 px on screen. part-id.js sets .spid--flow from the card's own width
   (ResizeObserver); the wide canvas above stays unchanged from 520 px up. */
.spid.spid--flow{aspect-ratio:auto;height:auto;display:flex;flex-direction:column;font-size:14px;line-height:1.45;border-radius:14px;box-shadow:0 8px 22px rgba(22,45,36,.14);
  background:var(--spid-rosette) no-repeat 30% 55%/150px 150px,var(--spid-paper) repeat 0 0/96px 29px,linear-gradient(180deg,#fbf8ef,#f3eedf)}
.spid.spid--flow .spid-head{position:relative;inset:auto;height:auto;min-height:44px;padding:6px 14px;border-radius:14px 14px 0 0;border-bottom-width:2px;background-size:96px 29px,auto}
.spid.spid--flow .spid-title{font-size:20px;line-height:1.3}
.spid.spid--flow .spid-mark{padding:2px 5px;border-radius:6px;border-width:1px;box-shadow:0 0 0 1.5px #173f33}
.spid.spid--flow .spid-mark img{height:22px}
.spid.spid--flow .spid-rule{display:none}
.spid.spid--flow .spid-band{position:static;inset:auto;width:auto;height:auto;margin:10px 14px 0;padding:6px 10px;border-width:1px;border-radius:8px;font-size:13px;line-height:1.5}
.spid.spid--flow .spid-body{position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-rows:auto auto 1fr auto auto auto;
  grid-template-areas:"k pic" "name pic" "note pic" "rows rows" "price price" "qr qr";gap:4px 12px;padding:10px 14px 12px}
.spid.spid--flow .spid-main{display:contents}
.spid.spid--flow .spid-k{grid-area:k;font-size:12px;line-height:1.3}
.spid.spid--flow .spid-name{grid-area:name;font-size:19px;line-height:1.35;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.spid.spid--flow .spid-name-note{grid-area:note;font-size:12px;white-space:normal;overflow:visible;text-overflow:clip}
.spid.spid--flow .spid-rows{grid-area:rows;display:flex;flex-direction:column;gap:6px;margin:8px 0 2px}
.spid.spid--flow .spid-row{gap:6px;line-height:1.4}
.spid.spid--flow .spid-row::after{flex:1 1 12px;min-width:12px;border-bottom-width:1.5px;transform:translateY(-3px)}
.spid.spid--flow .spid-row dt{font-size:13px}
.spid.spid--flow .spid-row dd{max-width:68%;font-size:14px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
/* 3 Dec 2026 (review D11): a very long number wraps inside the card instead of running out of it; a usual one still fits on one line */
.spid.spid--flow .spid-row--pn dd{font-size:15px;white-space:normal}
.spid.spid--flow .spid-type{padding:0 6px;border-width:1px;border-radius:6px;white-space:normal;overflow:visible;text-overflow:clip}
.spid.spid--flow .spid-type-v{white-space:normal}
.spid.spid--flow .spid-fit{padding:0 8px;border-width:1px;border-radius:999px}
.spid.spid--flow .spid-more-n{padding:0 6px;border-radius:999px}
.spid.spid--flow .spid-pic{grid-area:pic;position:relative;inset:auto;width:auto;align-self:start;margin:0}
.spid.spid--flow .spid-frame{padding:4px;border-width:1px;border-radius:10px;box-shadow:0 2px 8px rgba(30,50,40,.14)}
.spid.spid--flow .spid-frame img,.spid.spid--flow .spid-zoom{border-radius:7px}
.spid.spid--flow .spid-noimg{font-size:12px;gap:4px}
.spid.spid--flow .spid-noimg svg{width:30px;height:30px}
.spid.spid--flow .spid-cap{margin-top:4px;font-size:12px;line-height:1.35;white-space:normal;overflow:visible;text-overflow:clip}
.spid.spid--flow .spid-stamp{inset-inline-end:-10px;bottom:-12px;width:68px;height:68px;line-height:1.05;border-width:2px;outline-width:1px;outline-offset:-5px;box-shadow:0 2px 6px rgba(60,45,10,.2)}
.spid.spid--flow .spid-stamp b{font-size:13px}
.spid.spid--flow .spid-stamp span{font-size:11px}
.spid.spid--flow .spid-price{grid-area:price;position:relative;inset:auto;width:auto;min-width:58%;max-width:100%;height:auto;justify-self:start;margin-top:6px;padding:6px 10px;border-width:1.5px;border-radius:9px;
  box-shadow:inset 0 0 0 2px #fffdf6,inset 0 0 0 3px rgba(176,141,71,.5)}
.spid.spid--flow .spid-price-k{font-size:12px;white-space:normal}
.spid.spid--flow .spid-price-v{gap:5px;flex-wrap:wrap}
.spid.spid--flow .spid-amount{font-size:24px}
.spid.spid--flow .spid-price-v small{font-size:13px}
.spid.spid--flow .spid-price.is-quote .spid-price-v{font-size:15px}
.spid.spid--flow .spid-price-note{font-size:12px;white-space:normal;overflow:visible;text-overflow:clip}
.spid.spid--flow .spid-qr{grid-area:qr;position:relative;inset:auto;width:auto;margin-top:6px;flex-direction:row;gap:8px;justify-content:flex-start}
.spid.spid--flow .spid-qr-code{width:44px;height:44px;padding:3px;border-radius:6px}
.spid.spid--flow .spid-qr-t{line-height:1.3}
.spid.spid--flow .spid-qr-t b{font-size:13px;white-space:normal;overflow:visible;text-overflow:clip}
.spid.spid--flow .spid-qr-t small{font-size:12px}
.spid.spid--flow .spid-mrz{position:relative;inset:auto;height:auto;padding:5px 14px;border-top-width:1px;font-size:11px;letter-spacing:.02em;line-height:1.35;border-radius:0 0 14px 14px}
.spid.spid--flow .spid-extra{margin-top:8px}
/* a reference has no price box and no QR: its rows take the whole width and the bottom line closes */
.spid.spid--flow.spid--reference .spid-body{grid-template-areas:"k pic" "name pic" "note pic" "rows rows"}
/* the picture link stays a 44 px target on screen even on the narrowest card (three to a row on a phone held sideways) */
.spid.spid--flow .spid-zoom{min-height:49px;display:flex;align-items:center}
