/* Dordooneh · «قنادی» style (data-style="pastry", the default). Loaded last.
   The colour tokens themselves live at the top of design.css (cream & cocoa light, chocolate dark, strawberry accent); this file is the shop's character:
     · a cocoa sidebar, like the wooden frame of a pastry counter
     · ONE decorative signature: each page header carries a real photo of that part of the shop in a perforated postage stamp
     · editorial type: a caramel eyebrow, a heavy Kalameh title
     · selected tabs are cocoa pills, primary actions are strawberry, status pills are pistachio / caramel / strawberry
   Everything else stays quiet: the panels are used all day. Motion: only the stamp drops in, once per page visit. */

html[data-style="pastry"] { --r: 18px; --r-sm: 12px; }
html[data-style="pastry"] body { background: var(--bg); }
html[data-style="pastry"] .main { background: radial-gradient(90% 300px at 70% -140px, color-mix(in srgb, var(--blush) 60%, transparent), transparent 72%) no-repeat; }

/* ---------- the cocoa sidebar (its own little token world, so every child adapts) ---------- */
html[data-style="pastry"] .side {
  --ink: var(--side-ink); --ink-2: color-mix(in srgb, var(--side-ink) 82%, transparent); --mute: var(--side-mute);
  --panel: rgba(255, 240, 228, 0.05); --panel-2: rgba(255, 240, 228, 0.06); --panel-3: rgba(255, 240, 228, 0.09); --line: rgba(255, 240, 228, 0.10); --line-2: rgba(255, 240, 228, 0.18);
  --accent-soft: color-mix(in srgb, var(--fill) 26%, transparent); --accent-ink: color-mix(in srgb, var(--fill) 45%, #fff); --side-on: color-mix(in srgb, var(--fill) 55%, #fff);
  background: var(--side-bg); color: var(--side-ink); border-inline-end: 0; box-shadow: inset 1px 0 0 rgba(255, 240, 228, 0.04);
}
html[data-style="pastry"] .side .brand b { font-weight: 900; font-size: 18px; color: #fff4ea; }
html[data-style="pastry"] .side .brand .mark { background: var(--fill); color: #fff; border-radius: 50%; font-weight: 900; box-shadow: 0 0 0 3px rgba(255, 240, 228, 0.08); }
html[data-style="pastry"] .side .nav a { color: var(--ink-2); }
html[data-style="pastry"] .side .nav a:hover { background: rgba(255, 240, 228, 0.06); color: #fff4ea; }
html[data-style="pastry"] .side .nav a.on { background: color-mix(in srgb, var(--fill) 22%, transparent); color: #fff4ef; box-shadow: inset -3px 0 0 var(--side-on); }
html[data-style="pastry"] .side .nav a.on svg { color: var(--side-on); }
html[data-style="pastry"] .side .ngh { color: var(--side-mute); } html[data-style="pastry"] .side .ng.here .ngh { color: #fff4ea; }
html[data-style="pastry"] .side .shiftbox { background: rgba(255, 240, 228, 0.06); border: 1px solid rgba(255, 240, 228, 0.08); }
html[data-style="pastry"] .side .side-foot .chip { background: rgba(255, 240, 228, 0.07); color: var(--side-mute); }
html[data-style="pastry"] .side kbd { background: rgba(255, 240, 228, 0.10); color: var(--side-ink); border-color: transparent; }

/* ---------- top bar: cream glass ---------- */
html[data-style="pastry"] .top { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom-color: var(--line); }
html[data-style="pastry"] .top .tt small { color: var(--caramel-ink); font-weight: 700; }

/* ---------- page header: eyebrow, heavy title, the stamp ---------- */
.phead .ph-t { display: flex; align-items: center; gap: 18px; min-width: 0; }
.phead .ph-t > div { min-width: 0; }
.ph-k { display: block; font-size: 12px; font-weight: 700; color: var(--caramel-ink); margin-bottom: 2px; }
html[data-style="pastry"] .phead { align-items: center; margin-bottom: 2px; }
html[data-style="pastry"] .phead h2 { font-size: 28px; font-weight: 900; line-height: 1.35; letter-spacing: 0; }
html[data-style="pastry"] .phead p { font-size: 13.5px; margin-top: 2px; max-width: 70ch; }

/* the stamp: two nested masks punch the perforations (top/bottom, then sides); sizes are whole multiples of the hole spacing --s */
.dd-stamp { --s: 12px; --r: 4.5px; --w: 84px; --h: 108px; flex: none; display: block; width: var(--w); height: var(--h); transform: rotate(-3deg); filter: drop-shadow(0 8px 12px rgba(74, 45, 34, 0.20)); }
.dd-stamp .st-a, .dd-stamp .st-b { display: block; width: 100%; height: 100%; }
.dd-stamp .st-a { -webkit-mask: radial-gradient(circle var(--r) at 50% 0, #0000 97%, #000) 0 0 / var(--s) 51% repeat-x, radial-gradient(circle var(--r) at 50% 100%, #0000 97%, #000) 0 100% / var(--s) 51% repeat-x;
  mask: radial-gradient(circle var(--r) at 50% 0, #0000 97%, #000) 0 0 / var(--s) 51% repeat-x, radial-gradient(circle var(--r) at 50% 100%, #0000 97%, #000) 0 100% / var(--s) 51% repeat-x; }
.dd-stamp .st-b { padding: 7px; background: var(--stamp-paper);
  -webkit-mask: radial-gradient(circle var(--r) at 0 50%, #0000 97%, #000) 0 0 / 51% var(--s) repeat-y, radial-gradient(circle var(--r) at 100% 50%, #0000 97%, #000) 100% 0 / 51% var(--s) repeat-y;
  mask: radial-gradient(circle var(--r) at 0 50%, #0000 97%, #000) 0 0 / 51% var(--s) repeat-y, radial-gradient(circle var(--r) at 100% 50%, #0000 97%, #000) 100% 0 / 51% var(--s) repeat-y; }
.dd-stamp img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); background: var(--panel-3); }
.dd-stamp.dd-in { animation: ddStampIn 560ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
@keyframes ddStampIn { from { opacity: 0; transform: translateY(-14px) rotate(-11deg) scale(0.9); } }
html:not([data-style="pastry"]) .phead .dd-stamp { display: none; }

/* ---------- surfaces ---------- */
html[data-style="pastry"] .card { border-radius: var(--r); border-color: var(--line); box-shadow: var(--shadow-1); }
html[data-style="pastry"] .kpi small { color: var(--ink-2); font-weight: 500; }
html[data-style="pastry"] .kpi b { font-weight: 800; }
html[data-style="pastry"] .kpi.accent { background: linear-gradient(165deg, var(--blush), color-mix(in srgb, var(--blush) 35%, var(--panel)) 70%); border-color: color-mix(in srgb, var(--accent) 18%, transparent); }
html[data-style="pastry"] .kpi.accent b { color: var(--accent-ink); }
html[data-style="pastry"] .tbl thead th { color: var(--mute); font-weight: 600; }

/* ---------- controls ---------- */
html[data-style="pastry"] .btn { border-radius: 12px; }
html[data-style="pastry"] .btn.gold { background: var(--fill); color: #fff; box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--fill) 90%, transparent); }
@media (hover: hover) and (pointer: fine) { html[data-style="pastry"] .btn.gold:hover { background: color-mix(in srgb, var(--fill) 86%, #000); filter: none; } }
html[data-style="pastry"] :is(.tabs, .chips.seg, .seg) { background: var(--panel-3); }
html[data-style="pastry"] :is(.tab.on, .chips.seg .chip.on, .seg .chip.on) { background: var(--ink); color: var(--bg); box-shadow: 0 6px 14px -10px rgba(43, 27, 22, 0.7); }
html[data-style="pastry"] .tab.on em { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
html[data-style="pastry"] .chips:not(.seg) button.chip.on { background: var(--ink); color: var(--bg); }
html[data-style="pastry"] .chip.gold { background: var(--accent-soft); color: var(--accent-ink); }
html[data-style="pastry"] .chip.ok { background: var(--ok-bg); color: var(--ok); } html[data-style="pastry"] .chip.warn { background: var(--warn-bg); color: var(--warn); } html[data-style="pastry"] .chip.bad { background: var(--bad-bg); color: var(--bad); }
html[data-style="pastry"] :is(.meter, .bar) { background: var(--panel-3); }

/* ---------- login: the cake in a big stamp, the keypad on cream ---------- */
.lg-art { display: none; }
html[data-style="pastry"] .login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 440px); align-items: center; justify-items: center; gap: clamp(24px, 6vw, 96px); padding: clamp(20px, 5vw, 64px);
  background: radial-gradient(60% 70% at 85% 30%, var(--blush), transparent 70%), radial-gradient(50% 60% at 10% 90%, color-mix(in srgb, var(--pistachio) 22%, transparent), transparent 70%), var(--bg); }
html[data-style="pastry"] .lg-art { display: grid; justify-items: center; gap: 26px; order: 2; }
html[data-style="pastry"] .login .box { order: 1; }
.dd-stamp.dd-stamp-lg { --s: 16px; --r: 6px; --w: 320px; --h: 400px; transform: rotate(3deg); filter: drop-shadow(0 30px 40px rgba(74, 45, 34, 0.28)); }
.dd-stamp.dd-stamp-lg .st-b { padding: 12px; }
.lg-copy { display: grid; justify-items: center; gap: 4px; text-align: center; }
.lg-copy b { font-size: clamp(40px, 5vw, 60px); font-weight: 900; line-height: 1.1; color: var(--ink); }
.lg-copy span { font-size: 15px; color: var(--ink-2); }
html[data-style="pastry"] .login .logo { background: var(--fill); color: #fff; border-radius: 50%; }
html[data-style="pastry"] .login h1 { font-weight: 900; }
@media (max-width: 900px) { html[data-style="pastry"] .login { grid-template-columns: 1fr; } html[data-style="pastry"] .lg-art { display: none; } }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .dd-stamp { --s: 8px; --r: 3px; --w: 56px; --h: 72px; }
  .dd-stamp .st-b { padding: 5px; }
  html[data-style="pastry"] .phead h2 { font-size: 22px; }
  .phead .ph-t { gap: 12px; }
}

/* ---------- loading placeholders (first screen after login) ---------- */
.dd-skel { min-height: 118px; background: linear-gradient(100deg, var(--panel) 30%, var(--panel-3) 50%, var(--panel) 70%) 0 0 / 300% 100%; animation: ddShimmer 1.3s linear infinite; border-color: var(--line); }
.dd-skel.tall { min-height: 260px; }
@keyframes ddShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.page.page-wait:has(.dd-skel) { opacity: 1; }

/* phones: tables turn into cards (design.css) — a desktop min-width (the roster's 980px) must not survive that */
@media (max-width: 640px) { .page table.tbl:not(.keep) { min-width: 0; } .page table.tbl:not(.keep) tfoot { display: block; } .page .tbl-wrap.rs-wrap { overflow-x: auto; } }   /* the weekly roster stays a grid and scrolls sideways */

/* ══════════ «شیرینی‌فروشی‌تر» — the shop sign, the pastry-box lid, the glaze ══════════
   · titles in Lalezar (OFL, subset to Persian: fonts/Lalezar-dd.woff2), the rest stays Kalameh
   · each page header is a pastry-box lid: blush card, a scatter of sprinkles on the far side, a scalloped bottom edge
   · the sidebar's top is a strawberry glaze that drips onto the cocoa */
@font-face { font-family: 'Lalezar'; src: url(fonts/Lalezar-dd.woff2) format('woff2'); font-display: swap; }
:root { --f-display: 'Lalezar', 'Kalameh', Tahoma, sans-serif;
  --sprinkles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='96'%3E%3Cg%3E%3Crect x='10' y='12' width='11' height='3.6' rx='1.8' fill='%23b83a62' transform='rotate(25 15 14)'/%3E%3Crect x='46' y='32' width='11' height='3.6' rx='1.8' fill='%23e3a25e' transform='rotate(-40 51 34)'/%3E%3Crect x='96' y='14' width='11' height='3.6' rx='1.8' fill='%2389a865' transform='rotate(70 101 16)'/%3E%3Crect x='126' y='56' width='11' height='3.6' rx='1.8' fill='%23f09ab0' transform='rotate(-15 131 58)'/%3E%3Crect x='22' y='66' width='11' height='3.6' rx='1.8' fill='%237d9ad4' transform='rotate(55 27 68)'/%3E%3Crect x='72' y='74' width='11' height='3.6' rx='1.8' fill='%23b83a62' transform='rotate(-65 77 76)'/%3E%3Crect x='66' y='4' width='11' height='3.6' rx='1.8' fill='%23ffffff' transform='rotate(10 71 6)'/%3E%3Crect x='110' y='82' width='11' height='3.6' rx='1.8' fill='%23e3a25e' transform='rotate(35 115 84)'/%3E%3Ccircle cx='38' cy='46' r='2.1' fill='%23ffffff'/%3E%3Ccircle cx='136' cy='30' r='2.1' fill='%23b83a62'/%3E%3Ccircle cx='88' cy='52' r='1.8' fill='%2389a865'/%3E%3C/g%3E%3C/svg%3E");
  --drip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 34' preserveAspectRatio='none'%3E%3Crect width='240' height='10'/%3E%3Crect x='14' width='12' height='25' rx='6'/%3E%3Crect x='44' width='9' height='16' rx='4.5'/%3E%3Crect x='70' width='14' height='32' rx='7'/%3E%3Crect x='104' width='10' height='20' rx='5'/%3E%3Crect x='128' width='13' height='27' rx='6.5'/%3E%3Crect x='160' width='9' height='14' rx='4.5'/%3E%3Crect x='184' width='14' height='30' rx='7'/%3E%3Crect x='214' width='10' height='18' rx='5'/%3E%3C/svg%3E"); }
:root, [data-theme="light"] { --band: #f8e1dc; --band-2: #fbeee8; }
[data-theme="dark"] { --band: #2c1a1e; --band-2: #24171a; }

/* the pastry-box lid */
html[data-style="pastry"] .phead { position: relative; isolation: isolate; padding: 18px 22px 20px; margin-bottom: 14px; border-radius: 24px; background: linear-gradient(160deg, var(--band), var(--band-2)); }
html[data-style="pastry"] .phead::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--sprinkles) 0 0 / 150px 96px;
  -webkit-mask-image: linear-gradient(to left, transparent 32%, #000 82%); mask-image: linear-gradient(to left, transparent 32%, #000 82%); opacity: 0.9; }
html[data-style="pastry"][data-theme="dark"] .phead::before { opacity: 0.45; }
html[data-style="pastry"] .phead::after { content: ""; position: absolute; inset-inline: 26px; bottom: -8px; height: 9px; z-index: -1; background: radial-gradient(circle at 50% 0, var(--band-2) 6.5px, transparent 7px) 0 0 / 16px 9px repeat-x; }
html[data-style="pastry"] .phead h2 { font-family: var(--f-display); font-weight: 400; font-size: 31px; line-height: 1.45; color: var(--ink); }
html[data-style="pastry"] .phead p { color: var(--ink-2); }
html[data-style="pastry"] .phead .dd-stamp { margin-block: -4px; }
/* the till keeps a plain, compact header */
html[data-style="pastry"] .shell[data-screen="pos"] .phead { padding: 0; background: none; margin-bottom: 4px; } html[data-style="pastry"] .shell[data-screen="pos"] .phead::before, html[data-style="pastry"] .shell[data-screen="pos"] .phead::after { display: none; }
html[data-style="pastry"] .shell[data-screen="pos"] .phead h2 { font-size: 24px; }

/* the glazed sidebar top */
html[data-style="pastry"] .side .brand { position: relative; margin: -18px -14px 22px; padding: 22px 20px 16px; background: var(--fill); border-radius: 0; }
html[data-style="pastry"] .side .brand::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 26px; background: var(--fill); -webkit-mask: var(--drip) 0 0 / 100% 100% no-repeat; mask: var(--drip) 0 0 / 100% 100% no-repeat; pointer-events: none; }
html[data-style="pastry"] .side .brand b { font-family: var(--f-display); font-weight: 400; font-size: 25px; line-height: 1.3; color: #fff; }
html[data-style="pastry"] .side .brand small { color: rgba(255, 245, 240, 0.85); }
html[data-style="pastry"] .side .brand .mark { background: #fff4ef; color: var(--fill); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.35); font-family: var(--f-display); font-weight: 400; font-size: 22px; }

/* sign-like big numbers and the login */
html[data-style="pastry"] :is(.kpi b.num, .dd-hq .dd-big) { font-family: var(--f-display); font-weight: 400; letter-spacing: 0; }
html[data-style="pastry"] .lg-copy b, html[data-style="pastry"] .login h1 { font-family: var(--f-display); font-weight: 400; }
html[data-style="pastry"] .login h1 { font-size: 28px; }
html[data-style="pastry"] .login::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: var(--sprinkles) 0 0 / 150px 96px; opacity: 0.35;
  -webkit-mask-image: radial-gradient(60% 60% at 25% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 25% 50%, #000, transparent 75%); }

/* glazed primary buttons */
html[data-style="pastry"] .btn.gold { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px -12px color-mix(in srgb, var(--fill) 90%, transparent); }

@media (max-width: 640px) {
  html[data-style="pastry"] .phead { padding: 14px 14px 16px; border-radius: 20px; }
  html[data-style="pastry"] .phead h2 { font-size: 25px; }
  html[data-style="pastry"] .phead::before { -webkit-mask-image: linear-gradient(to left, transparent 45%, #000 95%); mask-image: linear-gradient(to left, transparent 45%, #000 95%); }
}
.dd-cup { display: block; width: 46px; height: 46px; margin: 0 auto 8px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
/* the phone/tablet drawer opens over the top bar, so the glazed brand is not hidden under it */
@media (max-width: 980px) { html[data-style="pastry"] .side { z-index: 75; } html[data-style="pastry"] .side-scrim { z-index: 74; } }
/* phones: the «your turn» bar scrolls away with the page instead of covering a third of the screen */
@media (max-width: 640px) { .abar { position: relative; top: auto; } }

/* ══════════ top bar, redone by one rule set (owner: «ببین چقدر بده — اصولی‌ترش کن») ══════════
   One size for every control (40px), one shape (circle), one weight (ghost icons on the cream bar), ONE filled control (the strawberry «+»).
   Badges are small strawberry pills ringed in the bar colour. The avatar is a plain disc. Phones keep five things:
   menu + the wordmark on the right, then search · alerts · + · me on the left; the clock and chat step aside (chat is in «me»). */
html[data-style="pastry"] .top { height: 64px; gap: 6px; padding: 0 18px; background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--line); }
html[data-style="pastry"] .top :is(.icon-btn.rnd, .menu-btn) { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; background: transparent; border: 0; box-shadow: none; color: var(--ink-2); display: grid; place-items: center; transition: background var(--t) var(--ease), color var(--t); }
html[data-style="pastry"] .top :is(.icon-btn.rnd, .menu-btn) svg.i { width: 21px; height: 21px; }
@media (hover: hover) and (pointer: fine) { html[data-style="pastry"] .top :is(.icon-btn.rnd, .menu-btn, .clockchip):hover { background: var(--panel-3); color: var(--ink); } }
html[data-style="pastry"] .top :is(.icon-btn.rnd, .menu-btn):active { background: var(--panel-3); }
html[data-style="pastry"] .top .psearch { height: 40px; min-height: 40px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: none; color: var(--mute); }
html[data-style="pastry"] .top .clockchip { height: 40px; min-height: 40px; background: transparent; border: 0; color: var(--ink); font-weight: 700; padding: 0 10px; }
html[data-style="pastry"] .top .vr { height: 22px; background: var(--line-2); }
html[data-style="pastry"] .top .newbtn { height: 40px; min-height: 40px; border-radius: 999px; background: var(--fill); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -8px color-mix(in srgb, var(--fill) 80%, transparent); }
html[data-style="pastry"] .top .userchip { height: 40px; min-height: 40px; padding: 0 3px 0 10px; gap: 8px; border-radius: 999px; background: transparent; border: 0; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { html[data-style="pastry"] .top .userchip:hover { background: var(--panel-3); } }
html[data-style="pastry"] .top .userchip .av { width: 34px; height: 34px; border-radius: 50%; background: var(--fill); color: #fff; font-weight: 700; font-size: 15px; box-shadow: none; border: 0; display: grid; place-items: center; }
html[data-style="pastry"] .top .userchip .av .netdot { width: 9px; height: 9px; bottom: 0; inset-inline-end: 0; box-shadow: 0 0 0 2px var(--bg); }
html[data-style="pastry"] .top :is(#bell, #chatbtn, .icon-btn) .badge { top: 3px; inset-inline-end: 1px; inset-inline-start: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--fill); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; box-shadow: 0 0 0 2px var(--bg); }
.top-brand { display: none; }
.pi-phone { display: none !important; }
@media (max-width: 640px) {
  html[data-style="pastry"] .top { height: 58px; gap: 2px; padding: 0 8px; }
  html[data-style="pastry"] .top .top-brand { display: block; font-family: var(--f-display); font-size: 22px; line-height: 1; color: var(--fill); margin-inline-start: 2px; white-space: nowrap; }
  html[data-style="pastry"] .top :is(.tt, .clockchip, #clockhost, .vr, #chatbtn, #theme) { display: none; }
  html[data-style="pastry"] .top > .grow { order: 1; flex: 1; }
  html[data-style="pastry"] .top > :is(.psearch, #bell, .pop-wrap) { order: 2; }
  html[data-style="pastry"] .top .psearch { width: 40px; padding: 0; justify-content: center; background: transparent; border: 0; color: var(--ink-2); }
  html[data-style="pastry"] .top .newbtn { width: 36px; min-width: 36px; height: 36px; min-height: 36px; margin: 0 2px; padding: 0; justify-content: center; }
  html[data-style="pastry"] .top .newbtn .qlbl { display: none; }
  html[data-style="pastry"] .top .userchip { width: 40px; padding: 0; justify-content: center; } html[data-style="pastry"] .top .userchip .av { width: 36px; height: 36px; }
  html[data-style="pastry"] .top .userchip .t { display: none; }
  .pi-phone { display: flex !important; }
}
html[data-style="pastry"] .top :is(#bell, #chatbtn, .icon-btn) .badge { top: 2px; inset-inline-end: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; line-height: 16px; }

/* «الان نوبت شماست»: a calm note card in the pastry style; on phones a compact list (one line per task, small buttons) */
html[data-style="pastry"] .abar-in { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 26px -22px rgba(74, 45, 34, 0.5); }
html[data-style="pastry"] .abar-t b { color: var(--ink); }
html[data-style="pastry"] .ab { background: var(--panel-2); border: 1px solid var(--line); }
html[data-style="pastry"] .ab-ic { background: var(--band); color: var(--accent-ink); border-radius: 50%; }
@media (max-width: 640px) {
  html[data-style="pastry"] .abar { margin: 8px 0 12px; }
  html[data-style="pastry"] .abar-in { padding: 8px 10px; gap: 6px; border-radius: 18px; }
  html[data-style="pastry"] .abar-l { gap: 6px; }
  html[data-style="pastry"] .ab { padding: 6px 6px 6px 8px; gap: 8px; border-radius: 14px; min-height: 0; }
  html[data-style="pastry"] .ab-ic { width: 30px; height: 30px; } html[data-style="pastry"] .ab-ic svg.i { width: 16px; height: 16px; }
  html[data-style="pastry"] .ab-tx b { font-size: 13px; } html[data-style="pastry"] .ab-tx small { display: none; }
  html[data-style="pastry"] .ab .btn { height: 32px; min-height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
}

/* ══════════ one hierarchy for controls ══════════
   primary = strawberry fill · secondary = icing-white with a hairline · ghost = text only. Inputs match secondary. One height (40px), one radius (12px). */
html[data-style="pastry"] .btn:not(.gold):not(.ghost):not(.bad):not(.ok) { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) and (pointer: fine) { html[data-style="pastry"] .btn:not(.gold):not(.ghost):not(.bad):not(.ok):hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 28%, transparent); } }
html[data-style="pastry"] .btn.ghost { background: transparent; box-shadow: none; color: var(--ink-2); }
html[data-style="pastry"] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) { background: var(--panel); border-color: var(--line-2); border-radius: 12px; }
html[data-style="pastry"] .card-h, html[data-style="pastry"] .card > h3 { color: var(--ink); }
html[data-style="pastry"] .tabbar { background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line); }
html[data-style="pastry"] .tabbar a.on { color: var(--accent-ink); }

/* the manager's cockpit greeting wears the same pastry-box lid as every page header */
html[data-style="pastry"] .cp-head { position: relative; isolation: isolate; padding: 18px 22px 20px; margin-bottom: 6px; border-radius: 24px; background: linear-gradient(160deg, var(--band), var(--band-2)); flex-wrap: wrap; gap: 12px; }
html[data-style="pastry"] .cp-head::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--sprinkles) 0 0 / 150px 96px; -webkit-mask-image: linear-gradient(to left, transparent 32%, #000 82%); mask-image: linear-gradient(to left, transparent 32%, #000 82%); opacity: 0.9; }
html[data-style="pastry"][data-theme="dark"] .cp-head::before { opacity: 0.45; }
html[data-style="pastry"] .cp-head::after { content: ""; position: absolute; inset-inline: 26px; bottom: -8px; height: 9px; z-index: -1; background: radial-gradient(circle at 50% 0, var(--band-2) 6.5px, transparent 7px) 0 0 / 16px 9px repeat-x; }
html[data-style="pastry"] .cp-head h2 { font-family: var(--f-display); font-weight: 400; font-size: 31px; line-height: 1.45; }
html[data-style="pastry"] .cp-head small { color: var(--caramel-ink); font-weight: 700; }
@media (max-width: 640px) { html[data-style="pastry"] .cp-head { padding: 14px 14px 16px; } html[data-style="pastry"] .cp-head h2 { font-size: 25px; } }
