/*
  Title:      Zen HQ styles (ivory, black, gold)
  File:       app/static/hq_style.css
  Version:    1.2.4
  Date:       2026-10-07
  Sections:   1 tokens, 2 base, 3 header and menu, 4 page parts (titles, feeds strip, cards, buttons, forms),
              5 tables in scroll boxes with sticky headers, 6 messages, 7 sign-in pages, 8 phones, 9 print
  Depends on: Google Fonts Cormorant Garamond + Figtree (loaded in hq_base.html and the sign-in pages)
  Used by:    every page (templates/hq_base.html, hq_login.html, hq_link.html)
  Purpose:    The Zen look of the hub, the website and Zen Desk (tokens copied from the hub's zh_hub.css 1.2.0 and Zen Desk's
              zd_style.css 1.18.0): a warm ivory page, near-black text, a black title bar with a gold foil rule, gold buttons.
              Red is kept for real problems only (one per screen).
  Revisions:  1.2.4 2026-10-07 Claude Code: the small "Demo" badge (.demo-badge) for a demo instance (Zentelle).
              1.2.3 2026-10-07 Claude Code: Home banner: the lantern is removed (owner and his wife: it landed in odd spots when
              the window was resized; rules archived in templates/archive/hq_lantern_snippet.html). The coin is solid and a
              warmer yellow-gold (hq_panda_art.html 1.3.0); its motion is unchanged.
              1.2.2 2026-10-07 Claude Code: Home banner: the gold coin (as hq_splash.css 1.2.0, right of Mae on wide screens,
              beside the panda's head in one column); the lantern hangs from a bamboo stalk above Mae's hand on wide screens and
              from the hall's right upper eave in one column (owner: the tiles and buttons hid it); the words never cover the
              panda's face (owner): the top line in two lines (.hb-date), the words at the middle and stopped short of the panda's
              head on wide screens, above the panda's ears in one column (padding below).
              1.2.1 2026-10-07 Claude Code: the Home banner gets the artwork's gentle touches, same as hq_splash.css 1.1.0
              (blink, rarer wink with a lifted smile, a drifting blossom petal, the lantern's sway and glow; off under reduced motion).
              1.2.0 2026-10-07 Claude Code: section 11, the Zen apps menu (.zapps, as in Zen Desk zd_style.css §21 and Zen Ledger):
              the gold constellation button beside the name, the panel in the black bar's colours, the Zen Spa hub first and
              larger with a gold rule under it, Zen HQ greyed; on a phone the panel spans the bar under the button.
              Section 8 (owner): the ☰ shows only on a true phone (600 px and less; it showed up to 760 px, so on tablets and
              narrow windows it repeated Accounting, Admin, Lock, Sign out); tablets keep the name, Lock and Sign out and put the
              menu on a row of its own; the phone ☰ panel tidied (name and role on top, the links, Lock and Sign out side by side).
              1.1.0 2026-10-07 Claude Code: phase 2: label.inline (tick boxes in a row), input.narrow, ul.lines.scroll (long previews
              scroll inside the card), code, inputs inside table cells; Home (owner): the Panda Home banner (.hb, the artwork's parts
              and motion as on the sign-in splash, still under reduced motion), the tiles (.tiles, .tile), the Lock button; the menu on
              the menu as in Zen Desk and Zen Booking: short words, a thin gold underline for the current one, the ☰ panel on phones.
              1.0.0 2026-10-07 Claude Code: first version.
*/

/* ---------- 1. tokens ---------- */
:root{
  --page:#F3EEE3; --card:#FBF8F2; --ink:#1D1913; --mu:#6A5F50; --line:#D6CAB4; --line-2:#E6DCC8;
  --black:#12100E; --on-dark:#F4EEE4; --on-dark-2:#CFC6B8;
  --gold:#B08A3E; --gold-lt:#E9CF8F; --gold-ink:#7A5A22; --gold-bg:#F6EBCF;
  --ok:#2F5A1F; --ok-bg:#E3EFD9; --warn:#8A5A12; --warn-bg:#F7E7C6; --bad:#9B3A2E; --bad-bg:#F6DCD6;
  --info:#2E4F6B; --info-bg:#DCE7F0;
  --foil:linear-gradient(115deg,#8C6A2F 0%,#E9CF8F 42%,#A57C35 70%,#D9B872 100%);
  --display:"Cormorant Garamond","Iowan Old Style",Georgia,serif;
  --body:"Figtree","Segoe UI",system-ui,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;
  --radius:12px;
}

/* ---------- 2. base ---------- */
*{box-sizing:border-box}
body{margin:0;background:var(--page);color:var(--ink);font:16px/1.55 var(--body);-webkit-font-smoothing:antialiased}
a{color:var(--gold-ink)}
h1,h2,h3{font-family:var(--display);font-weight:600;line-height:1.15}
.zh{color:var(--mu);font-size:.85em;margin-left:6px;font-weight:500}
.muted{color:var(--mu)}
.small{font-size:14px}
.hidden{display:none}

/* ---------- 3. header and menu (sticky) ---------- */
.bar{position:sticky;top:0;z-index:20;background:var(--black);color:var(--on-dark);border-bottom:3px solid transparent;
  border-image:var(--foil) 1}
.bar-in{max-width:1240px;margin:0 auto;display:flex;align-items:center;gap:18px;padding:10px 18px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;color:var(--on-dark);text-decoration:none}
.brand img{width:42px;height:42px;flex:none}
.brand b{font:600 26px var(--display);letter-spacing:.05em}
.brand small{display:block;font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold-lt)}
.menu{display:flex;flex-wrap:wrap;gap:4px;flex:1}   /* 1.1.0: the same menu as Zen Desk and Zen Booking */
.menu a[aria-current="page"]{opacity:1;color:var(--on-dark);background:rgba(246,230,180,.14);box-shadow:inset 0 -2px 0 var(--gold)}
.phone-only{display:none}
.more{position:relative}
.more summary{list-style:none;cursor:pointer;font-size:1.5rem;line-height:1;padding:6px 10px;border:1px solid rgba(246,230,180,.4);border-radius:8px;color:var(--on-dark)}
.more summary::-webkit-details-marker{display:none}
.more-panel{position:absolute;right:0;top:calc(100% + 8px);background:var(--black);border:1px solid rgba(246,230,180,.35);border-radius:10px;
  padding:8px;display:grid;gap:2px;min-width:240px;box-shadow:0 12px 30px rgba(0,0,0,.45);z-index:60}
.more-panel a{color:var(--on-dark);text-decoration:none;font-weight:600;padding:10px 12px;border-radius:8px}
.more-panel a:hover{background:rgba(246,230,180,.1)}
.more-who{display:block;padding:6px 12px 10px;border-bottom:1px solid rgba(246,230,180,.2);margin-bottom:4px;color:var(--on-dark);font-weight:600;line-height:1.3}
.more-who small{display:block;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#C9B27C;font-weight:500;margin-top:2px}
.more-acts{display:flex;gap:8px;padding:10px 12px 6px;border-top:1px solid rgba(246,230,180,.2);margin-top:4px}
.more-panel form{margin:0;flex:1}
.more-panel button{width:100%;background:transparent;color:var(--on-dark);border:1px solid rgba(246,230,180,.4);border-radius:8px;padding:9px 10px;font:inherit;font-weight:600;white-space:nowrap;cursor:pointer}
.more-panel button:hover{border-color:var(--gold)}
.menu a{color:var(--on-dark);text-decoration:none;font-weight:600;font-size:.98rem;padding:8px 12px;border-radius:8px;opacity:.86;white-space:nowrap}
.menu a:hover{opacity:1;background:rgba(246,230,180,.08)}
.menu a.soon{opacity:.62}
.menu a.soon::after{content:"next";font-size:10px;letter-spacing:.1em;text-transform:uppercase;margin-left:5px;color:var(--gold-lt)}
.menu a.on.soon::after{color:var(--black)}
.who{display:flex;align-items:center;gap:12px;font-size:.92rem;color:#E9DDBF}
.who .role{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#C9B27C}
.who form{margin:0}
.who button{background:transparent;color:var(--on-dark);border:1px solid rgba(246,230,180,.4);border-radius:8px;padding:7px 12px;font:inherit;font-weight:600;cursor:pointer}
.who button:hover{border-color:var(--gold)}

/* ---------- 4. page parts ---------- */
main{max-width:1240px;margin:0 auto;padding:18px 18px 60px}
.head{position:sticky;top:68px;z-index:10;background:var(--page);padding:8px 0 10px;border-bottom:1px solid var(--line-2);margin-bottom:16px}
.head h1{font-size:34px;margin:0}
.head .sub{margin:2px 0 0;color:var(--mu)}
.feeds{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:8px;font-size:14px}
.feeds .lbl{font-weight:600;letter-spacing:.06em;text-transform:uppercase;font-size:12px;color:var(--mu);margin-right:2px}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--card);border-radius:999px;
  padding:2px 10px;white-space:nowrap}
.chip i{font-style:normal;font-size:12px;border-radius:999px;padding:0 7px}
.chip.on i{background:var(--ok-bg);color:var(--ok)}
.chip.off i{background:var(--warn-bg);color:var(--warn)}
.chip.warn i{background:var(--warn-bg);color:var(--warn)}
.chip.via i{background:var(--info-bg);color:var(--info)}
.chip.later i{background:#EEE7DA;color:var(--mu)}
.chip.no{opacity:.45;text-decoration:line-through}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.card{background:var(--card);border:1px solid var(--line-2);border-radius:var(--radius);padding:16px 18px;position:relative}
.card.gold{border-top:3px solid var(--gold)}
.card h2,.card h3{margin:0 0 6px}
.card h2{font-size:24px}
.card h3{font-size:21px}
.card .feeds{margin-top:6px}
.card.soon{opacity:.7}
.card a.cover{position:absolute;inset:0;text-indent:-9999px;overflow:hidden}
.pill{display:inline-block;border-radius:999px;padding:1px 9px;font-size:13px;background:#EEE7DA;color:var(--mu)}
.pill.ok{background:var(--ok-bg);color:var(--ok)}
.pill.warn{background:var(--warn-bg);color:var(--warn)}
.pill.bad{background:var(--bad-bg);color:var(--bad)}
.pill.info{background:var(--info-bg);color:var(--info)}
.btn{display:inline-flex;align-items:center;gap:6px;height:42px;padding:0 18px;border-radius:10px;border:1px solid #9C7A3A;
  background:var(--foil);color:var(--ink);font:600 15px var(--body);cursor:pointer;text-decoration:none}
.btn.plain{background:var(--card);border-color:var(--line);font-weight:500}
.btn.small{height:32px;padding:0 12px;font-size:14px}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}
form.f label{display:grid;gap:4px;font-weight:600;font-size:14px}
form.f input[type=text],form.f input[type=email],form.f input[type=date],form.f input[type=time],form.f select{
  font:inherit;font-weight:400;height:42px;padding:0 12px;border:1px solid var(--ink);border-radius:10px;background:#fff;color:var(--ink)}
form.f input:focus,form.f select:focus{outline:2px solid var(--gold);outline-offset:1px}
.two{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.note{background:var(--gold-bg);border-left:4px solid var(--gold);border-radius:8px;padding:10px 14px;margin:10px 0}
.lines{list-style:none;margin:8px 0 0;padding:0}
.lines li{padding:6px 0;border-bottom:1px dashed var(--line-2)}
.lines li.same{color:var(--mu)}
.lines li.diff b{color:var(--gold-ink)}

label.inline{display:inline-flex;align-items:center;gap:6px;margin-right:14px;font-weight:500;white-space:nowrap}
form.f input.narrow,input.narrow{width:80px}
.lines.scroll{max-height:320px;overflow:auto}
code{font-family:ui-monospace,monospace;font-size:13px;background:#fff;border:1px solid var(--line-2);border-radius:6px;padding:1px 6px}
table form{margin:0}
td input[type=text],td select{font:inherit;height:34px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:#fff}

/* ---------- 5. tables in scroll boxes (sticky headers standard) ---------- */
.tablewrap{max-height:calc(100vh - 260px);overflow:auto;border:1px solid var(--line-2);border-radius:var(--radius);background:var(--card)}
table{width:100%;border-collapse:collapse;font-size:15px}
th,td{padding:8px 12px;text-align:left;border-bottom:1px solid var(--line-2);vertical-align:top}
th{position:sticky;top:0;background:#EFE7D6;z-index:2;font-weight:600;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--mu)}
td.num{text-align:right}
tr.closed td{color:var(--mu)}
.hours td input[type=time]{width:130px}

/* ---------- 6. messages ---------- */
.flash{border-radius:10px;padding:10px 14px;margin:0 0 10px;font-size:15px}
.flash.ok{background:var(--ok-bg);color:var(--ok)}
.flash.gold{background:var(--warn-bg);color:var(--warn)}
.flash.err{background:var(--bad-bg);color:var(--bad)}
.linkbox{word-break:break-all;background:#fff;border:1px dashed var(--gold);border-radius:8px;padding:10px;font-family:ui-monospace,monospace;font-size:13px}

/* ---------- 7. sign-in pages ---------- */
body.door{background:radial-gradient(ellipse 80% 70% at 50% 40%,#2A2219 0%,#17130F 55%,#0B0A08 100%) fixed,var(--black);color:var(--on-dark);
  min-height:100vh;display:flex;flex-direction:column}
.door-top{display:flex;justify-content:space-between;align-items:baseline;padding:20px clamp(16px,4vw,44px)}
.door-top .brand b{font-size:30px}
.door-top .tag{font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--on-dark-2)}
.door-main{flex:1;display:grid;place-items:center;padding:20px 16px 40px}
.door-card{width:min(400px,100%);background:rgba(251,248,242,.97);color:var(--ink);border-radius:16px;padding:28px 26px 24px;
  box-shadow:0 30px 70px rgba(0,0,0,.6),0 0 0 1px rgba(233,207,143,.55);position:relative}
.door-card::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;border-radius:16px 16px 0 0;background:var(--foil)}
.door-card h1{font-size:32px;margin:0;text-align:center}
.door-card .sub{text-align:center;color:var(--mu);margin:2px 0 18px;font-size:14px}
.door-card label{display:grid;gap:5px;font-weight:600;font-size:14px;margin-bottom:12px}
.door-card input{font:inherit;height:46px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink)}
.door-card input:focus{outline:2px solid var(--gold);outline-offset:1px}
.door-card button[type=submit]{width:100%;height:48px;border:1px solid #9C7A3A;border-radius:10px;background:var(--foil);color:var(--ink);
  font:600 16px var(--body);cursor:pointer;margin-top:4px}
.door-card .err{background:var(--bad-bg);color:var(--bad);border-radius:8px;padding:8px 12px;font-size:14px;margin:0 0 12px}
.door-card .ok{background:var(--ok-bg);color:var(--ok);border-radius:8px;padding:8px 12px;font-size:14px;margin:0 0 12px}
.door-card .forgot{text-align:center;font-size:14px;margin:12px 0 0}
.door-card .fine{text-align:center;font-size:12px;color:var(--mu);margin:14px 0 0}
.door-foot{text-align:center;font-size:13px;color:#CBB98F;padding:16px}

/* ---------- 8. tablets and phones (1.2.0, owner: the ☰ only on a true phone, as in Zen Desk) ----------
   Tablets and narrow windows (601-1000 px) keep the full header: name, Lock and Sign out stay; the menu moves to its own
   row under them. Phones (600 px and less): Home · Business · Services in the bar, the rest in a tidy ☰ panel. */
@media (max-width:1000px){
  .brand small{display:none}
  .menu{order:5;flex:1 1 100%}
  .head{top:112px}
}
@media (max-width:760px){
  .head h1{font-size:28px}
  main{padding:12px 12px 50px}
  .hours td input[type=time]{width:110px}
  th,td{padding:7px 8px}
}
@media (max-width:600px){
  .desk-only{display:none!important}
  .phone-only{display:block}
  .bar-in{flex-wrap:nowrap;gap:6px;padding:8px 12px}
  .brand span{display:none}
  .brand img{width:34px;height:34px}
  .menu{order:0;flex:1 1 auto;flex-wrap:nowrap;gap:2px}
  .menu a{padding:7px 9px;font-size:.95rem}
  .head{top:56px}
}
@media print{.bar,.actions,form button{display:none}.head{position:static}.tablewrap{max-height:none;overflow:visible}}

/* ---------- 10. small helpers (no inline styles: strict CSP) and the password eye (hq_pw.js) ---------- */
.logo-row{display:flex;gap:14px;align-items:center;margin-bottom:10px}
.m0{margin:0}.mb{margin-bottom:14px}.mt{margin-top:14px}
.inline{display:inline}.nowrap{white-space:nowrap}
.tablewrap.short{max-height:340px}
.pw-wrap{position:relative;display:block}.pw-wrap input{width:100%;padding-right:46px!important}
.pw-wrap .pw-eye{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:grid;place-items:center;
  border:0!important;background:transparent!important;color:#6A5F50;border-radius:8px;cursor:pointer;padding:0;margin:0!important;height:38px!important;width:38px!important}
.pw-wrap .pw-eye:hover{color:#1D1913}.pw-wrap .pw-eye:focus-visible{outline:2px solid #B08A3E;outline-offset:1px}
.pw-caps{display:block;margin:4px 0 0;font-size:13px;font-weight:600;color:#8A5A12}.pw-caps[hidden]{display:none}

/* ---------- 10. Home: the Panda Home banner and the tiles (1.1.0, owner) ---------- */
body{overflow-x:clip}
.hb{position:relative;overflow:hidden;background:#1D1913;color:#F6E6B4;min-height:400px;margin:-18px calc(50% - 50vw) 0}
.hb .art{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:max(1100px,100%);height:auto;opacity:.9;pointer-events:none}
.hb-fade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(29,25,19,.95) 0,rgba(29,25,19,.62) 38%,rgba(29,25,19,.05) 62%,rgba(29,25,19,.55) 100%)}
.hb-in{position:relative;z-index:2;max-width:1240px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:24px;align-items:end;min-height:400px;padding:36px 18px 0}
.hstats{position:relative;z-index:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:-26px 0 0;padding:0 14px}
.hs{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:0 10px 26px rgba(29,25,19,.12);position:relative;overflow:hidden}
.hs::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#E9CF8F,#8C6A2F)}
.hs .k{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--mu)}
.hs .v{font:600 30px var(--display);margin:4px 0 2px}.hs .v.small-v{font-size:20px;line-height:1.2}.hs .v.okv{color:var(--ok)}
.hs .s{font-size:13px;color:var(--mu)}
.hb-eb{font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold-lt);opacity:.85;margin:0 0 12px}
.hb-eb .hb-date{display:block;margin-top:5px}   /* 1.2.2 (owner): the date on its own line */
/* 1.2.2 (owner): the words never cover the panda's face. Wide screens: the words sit at the banner's middle and stop short of
   the panda's head (the art is centred, the head's left edge is at about 44% of the width, the art never narrower than 1100 px).
   Narrow screens (one column): the words end above the panda's ears (padding below them, the art is 513 px tall there). */
.hb-words{align-self:center;max-width:min(460px,calc(44vw - 50px));padding-bottom:26px}
.hb h1{font:500 clamp(36px,4.6vw,58px)/1.05 var(--display);color:#FFF4D2;margin:0 0 10px}
.hb-zh{display:block;font:600 clamp(20px,2.2vw,28px) "Noto Serif SC","Songti SC",serif;letter-spacing:.18em;background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;margin-top:6px}
.hb-lede{max-width:50ch;color:#EFE3C2;margin:0 0 14px;font-size:17px}
.hb-lede em{font-style:italic;font-family:var(--display);font-size:1.15em;background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent}
.hb-sum{margin:0 0 34px;display:flex;gap:8px;flex-wrap:wrap}
.hb-mae{justify-self:center;text-align:center}
.hb-mae img{width:min(300px,100%);height:auto;display:block;filter:drop-shadow(0 18px 30px rgba(0,0,0,.55))}
.hb-sig{font:400 34px "Pinyon Script",cursive;background:var(--foil);-webkit-background-clip:text;background-clip:text;color:transparent;margin:-4px 0 26px}
.hb .art .st{fill:none;stroke:url(#pstalk);stroke-linecap:round}
.hb .art .nd{stroke:#F3DDA0;stroke-width:1.6;stroke-linecap:round;opacity:.55}
.hb .art .lf{fill:url(#pg);stroke:#8C6A2F;stroke-width:.6;opacity:.9}
.hb .art .vn{stroke:#6E5428;stroke-width:.8;opacity:.6;fill:none}
.hb .art .grove{opacity:.85}
.hb .art .seal{font:600 19px "Noto Serif SC","Songti SC",serif;fill:#FBEFD0}
.hb .art .sun-glow{transform-origin:600px 392px;animation:hq-breathe 7s ease-in-out infinite}
.hb .art .sun-disc{transform-origin:600px 392px;animation:hq-breathe-disc 7s ease-in-out infinite}
.hb .art .sun-rays{transform-origin:600px 392px;animation:hq-turn 240s linear infinite}
.hb .art .sway{transform-origin:0 0;animation:hq-sway 6s ease-in-out infinite}
.hb .art .grove{transform-box:fill-box;transform-origin:50% 100%;animation:hq-grove 8s ease-in-out infinite}
.hb .art g[transform] > .grove{animation-duration:9.5s;animation-delay:-3.5s}
.hb .art .sway.s2{animation-duration:7.5s;animation-delay:-2.5s}
.hb .art .sway.s3{animation-duration:9s;animation-delay:-4s}
@keyframes hq-breathe{0%,100%{opacity:.72;transform:scale(.95)}50%{opacity:1;transform:scale(1.05)}}
@keyframes hq-breathe-disc{0%,100%{opacity:.9}50%{opacity:1}}
@keyframes hq-turn{to{transform:rotate(360deg)}}
@keyframes hq-sway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(6deg)}}
@keyframes hq-grove{0%,100%{transform:rotate(-0.9deg)}50%{transform:rotate(1.1deg)}}
/* the gentle touches (owner and his wife, 2026-10-07): a blink now and then, a rarer wink with a lifted smile, one blossom
   petal drifting down now and then (two at most) (the lantern was removed in 1.2.3). Long cycles with uneven gaps so it
   never feels mechanical: blinks 8.3, 6.8, 9.3, 6.6 s apart (31 s cycle); winks 38 and 45 s apart (83 s cycle); petals every
   31 and 37 s, out of step. */
.hb .art .eyes,.hb .art .wink{transform-box:fill-box;transform-origin:50% 50%}
.hb .art .eyes{animation:hq-blink 31s linear infinite}
.hb .art .wink{animation:hq-wink 83s ease-in-out infinite}
.hb .art .smile{animation:hq-smile 83s linear infinite}
.hb .art .smile-w{opacity:0;animation:hq-smile-w 83s linear infinite}
.hb .art .petal{opacity:0}
.hb .art .p1{animation:hq-petal1 31s linear 3s infinite}
.hb .art .p2{animation:hq-petal2 37s linear 19s infinite}
.hb .art .pdrift{animation:hq-drift 4.2s ease-in-out infinite}
.hb .art .p2 .pdrift{animation-duration:5.1s;animation-delay:-1.7s}
@keyframes hq-blink{0%,4%,4.55%,30.8%,31.35%,52.7%,53.25%,82.7%,83.25%,100%{transform:scaleY(1)}4.25%,31.05%,52.95%,82.95%{transform:scaleY(.1)}}
@keyframes hq-wink{0%,14%,15.2%,60%,61.2%,100%{transform:scaleY(1)}14.25%,14.9%,60.25%,60.9%{transform:scaleY(.08)}}
@keyframes hq-smile{0%,14.05%,15.2%,60.05%,61.2%,100%{opacity:1}14.25%,14.95%,60.25%,60.95%{opacity:0}}
@keyframes hq-smile-w{0%,14.05%,15.2%,60.05%,61.2%,100%{opacity:0}14.25%,14.95%,60.25%,60.95%{opacity:1}}
@keyframes hq-petal1{0%{opacity:0;transform:translate(800px,120px)}4%{opacity:.9}34%{opacity:.85}38%{opacity:0;transform:translate(700px,546px)}38.01%,100%{opacity:0;transform:translate(700px,546px)}}
@keyframes hq-petal2{0%{opacity:0;transform:translate(410px,160px)}4%{opacity:.9}31%{opacity:.85}34%{opacity:0;transform:translate(490px,546px)}34.01%,100%{opacity:0;transform:translate(490px,546px)}}
@keyframes hq-drift{0%,100%{transform:translateX(-16px) rotate(-30deg) scaleX(1)}25%{transform:translateX(0) rotate(2deg) scaleX(.55)}50%{transform:translateX(16px) rotate(35deg) scaleX(1)}75%{transform:translateX(0) rotate(2deg) scaleX(.6)}}
/* the gold coin (owner's wife, 2026-10-07): a solid round coin (no hole since 1.2.3) drifts down now and then, turning slowly so it
   flashes; one element, two drops in a 67 s cycle (about 31 and 36 s apart, the first 9 s after the page opens), so never two on
   screen. Its path keeps clear of the petals (x 700-800 and 410-490) and of the sign-in card and the words: on the right beyond
   the petals on wide screens, just right of the panda's head (left of petal 1) on narrow ones. */
.hb .art .coin{opacity:0;animation:hq-coin-hb 67s linear 9s infinite}
.hb .art .cdrift{animation:hq-cdrift 5.6s ease-in-out infinite}
.hb .art .cspin{transform-box:fill-box;transform-origin:50% 50%;animation:hq-cspin 3.2s linear infinite}
.hb .art .cglint{animation:hq-cglint 3.2s linear infinite}
@media (max-width:1000px){.hb .art .coin{animation-name:hq-coin-hb-ph}}
@keyframes hq-coin-hb{0%{opacity:0;transform:translate(1060px,240px)}1.5%{opacity:1}13.5%{opacity:1}15%{opacity:0;transform:translate(1060px,540px)}15.01%,46%{opacity:0;transform:translate(1090px,255px)}47.5%{opacity:1}59.5%{opacity:1}61%{opacity:0;transform:translate(1090px,540px)}61.01%,100%{opacity:0;transform:translate(1060px,240px)}}
@keyframes hq-coin-hb-ph{0%{opacity:0;transform:translate(690px,300px)}1.5%{opacity:1}7.5%{opacity:1}9%{opacity:0;transform:translate(690px,382px)}9.01%,46%{opacity:0;transform:translate(696px,306px)}47.5%{opacity:1}53.5%{opacity:1}55%{opacity:0;transform:translate(696px,382px)}55.01%,100%{opacity:0;transform:translate(690px,300px)}}
@keyframes hq-cdrift{0%,100%{transform:translateX(-8px) rotate(-12deg)}50%{transform:translateX(8px) rotate(10deg)}}
@keyframes hq-cspin{0%,100%{transform:scaleX(1)}12.5%,87.5%{transform:scaleX(.7)}25%,75%{transform:scaleX(.06)}37.5%,62.5%{transform:scaleX(-.7)}50%{transform:scaleX(-1)}}
@keyframes hq-cglint{0%,50%,100%{opacity:1}10%,40%,60%,90%{opacity:.15}}
@media (prefers-reduced-motion:reduce){.hb .art .sun-glow,.hb .art .sun-disc,.hb .art .sun-rays,.hb .art .sway,.hb .art .grove,.hb .art .eyes,.hb .art .wink,
  .hb .art .smile,.hb .art .smile-w,.hb .art .petal,.hb .art .pdrift,
  .hb .art .coin,.hb .art .cdrift,.hb .art .cspin,.hb .art .cglint{animation:none}.hb .art .petal,.hb .art .coin{display:none}}
.tiles-h{margin:24px 0 10px}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tile{display:flex;flex-direction:column;gap:8px;background:var(--card);border:1px solid var(--line-2);border-radius:14px;padding:16px 18px;
  text-decoration:none;color:var(--ink);position:relative;overflow:hidden;box-shadow:0 8px 22px rgba(29,25,19,.07)}
.tile::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#E9CF8F,#8C6A2F)}
a.tile:hover{border-color:var(--gold)}
.tile.warn::before{background:linear-gradient(180deg,#F1C27A,#8A5A12)}
.tile.wide{display:block}
.tile-top{display:flex;align-items:center;gap:10px}
.tile-top b{font:600 22px var(--display)}
.tile-d{font-size:14px;color:var(--mu)}
.tile .feeds{margin-top:0}
.tile .pill{align-self:flex-start}
.ic{width:26px;height:26px;color:var(--gold-ink);flex:none}
.m0{margin:0}
.who .zh-lock{font-size:.85em;opacity:.8}
@media (max-width:1000px){.hb-in{grid-template-columns:1fr;padding-bottom:210px}.hb-words{max-width:none;padding-bottom:0}.hb-mae{order:-1}.hb-mae img{width:170px}.tiles,.hstats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.tiles,.hstats{grid-template-columns:1fr}.hb-in{padding:16px 16px 210px}.hb-mae img{width:130px}.hb-sig{margin-bottom:10px}}
table.mini{width:auto;font-size:14px}
table.mini td{padding:3px 10px 3px 0;border:0}
.tiles.sm{grid-template-columns:repeat(4,minmax(0,1fr))}
.tiles.sm .tile-top b{font-size:20px}
.group-h{margin:22px 0 8px;font:600 15px var(--body);letter-spacing:.14em;text-transform:uppercase;color:var(--gold-ink)}
@media (max-width:1000px){.tiles.sm{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.tiles.sm{grid-template-columns:1fr}}

/* ---------- 11. the Zen apps menu (1.2.0; same look as Zen Desk zd_style.css §21 and Zen Ledger; hq_zenapps.html, hq_app.js) ---------- */
.zapps{position:relative;margin-left:auto}
.zapps summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;width:40px;height:38px;
  border:1px solid rgba(246,230,180,.4);border-radius:8px}
.zapps summary::-webkit-details-marker{display:none}
.zapps summary:hover,.zapps[open] summary{border-color:var(--gold);background:rgba(246,230,180,.08)}
.zapps summary:focus-visible{outline:2px solid var(--gold-lt);outline-offset:2px}
.zapps-ln{stroke:var(--gold)}
.zapps-dt{fill:var(--gold-lt)}
.zapps-dt .zapps-c{fill:#F6E6B4}
.zapps-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:240px;max-width:calc(100vw - 16px);background:var(--black);
  border:1px solid rgba(246,230,180,.35);border-radius:10px;padding:6px;box-shadow:0 12px 30px rgba(0,0,0,.35);display:grid;gap:2px}
.zapps-item{display:block;color:var(--on-dark);text-decoration:none;padding:9px 12px;border-radius:8px;line-height:1.25;white-space:nowrap}
.zapps-item b{font-weight:600}
.zapps-item span{color:#C9B27C;margin-left:4px}
.zapps-item small{display:block;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:#C9B27C;margin-top:2px}
a.zapps-item:hover,a.zapps-item:focus-visible{background:rgba(246,230,180,.1);outline:none;box-shadow:inset 2px 0 0 var(--gold)}
.zapps-here{opacity:.5;cursor:default}
.zapps-hub{border-bottom:1px solid rgba(246,230,180,.25);border-radius:8px 8px 0 0;margin-bottom:4px;padding:11px 12px 12px}
.zapps-hub b{font:600 22px var(--display);letter-spacing:.04em;color:#F6E6B4}
.zapps-hub small{font-size:.78rem;color:var(--gold-lt)}
@media (max-width:600px){
  .zapps summary{width:36px;height:36px}
  .bar-in{position:relative}
  .zapps{position:static}
  .zapps-menu{left:12px;right:12px;top:calc(100% + 4px)}
}

/* Demo badge (Zentelle demo; hq_brand.DEMO): beside the name in the header */
.demo-badge{display:inline-block; align-self:center; margin-left:8px; padding:3px 7px; border:1px solid #B08D57; border-radius:2px;
  color:#E9CF8F; font:600 11px/1 "Figtree",sans-serif; letter-spacing:.2em; text-transform:uppercase; white-space:nowrap; vertical-align:middle}
