/* Cergas leaf look for OMH (Master, 26 Nov 2026): the colours, type and graphics of cergas-warehouse.ai-os.my
   (CergasOne design/warehouse-superuiux/language.md, login-v2, home-v2) over OMH's own layout, UX and functions.
   Loaded last by tools/cergas_leaf.py; OMH's page itself only gets its blues swapped and this one link.

   Palette: Cergas green #47704C (action, active), deep ink #121A2B (text, active chips), ground #F3F6FB, white surfaces.
   Type: system sans for UI, the warehouse serif for greetings, screen titles and big figures.
   Graphics: the Cergas tree logo and Ruby's watercolour leaves (sign-in scene, Home header). */

:root{
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,"Noto Serif",serif;
  --bg:#f3f6fb; --surface:#fff; --sunk:#f1f4f2; --line:#e3e8f0;
  --fg:#121a2b; --muted:#5f6b7f;
  --accent:#47704c; --accent-fg:#fff; --accent-soft:#e9f1e7;
  --leaf-cream:#f6f1e3;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0e1411; --surface:#161e19; --sunk:#1c2620; --line:#2a362e;
  --fg:#e7ece6; --muted:#a3ad9f; --accent:#8fbf8f; --accent-fg:#0e1411; --accent-soft:#1f2e22}}
:root[data-theme="dark"]{
  --bg:#0e1411; --surface:#161e19; --sunk:#1c2620; --line:#2a362e;
  --fg:#e7ece6; --muted:#a3ad9f; --accent:#8fbf8f; --accent-fg:#0e1411; --accent-soft:#1f2e22}
:root[data-theme="light"]{
  --bg:#f3f6fb; --surface:#fff; --sunk:#f1f4f2; --line:#e3e8f0;
  --fg:#121a2b; --muted:#5f6b7f; --accent:#47704c; --accent-fg:#fff; --accent-soft:#e9f1e7}

/* ---------- type: the warehouse serif where the warehouse uses it ---------- */
.bar h1,.hello h2,main h2,.lgn h1,#wkroot h1{font-family:var(--serif);letter-spacing:-.01em}
.bar h1{font-size:19px}
.hello h2{font-size:25px;line-height:1.12}

/* ---------- launch screen: cream ground, watercolour leaves, the Cergas tree ---------- */
html,body{background:var(--bg)!important}
#splash{background:var(--leaf-cream) url("/static/leaf-scene-m.webp") center top / cover no-repeat!important}
#splash .sp-c .sp-w{display:none!important}
#splash .sp-c::before{content:"";position:absolute;left:50%;top:38%;width:150px;height:150px;transform:translate(-50%,-50%);
  background:url("/static/cergas-tree.png") center / contain no-repeat;mix-blend-mode:multiply}
#splash .sp-n{color:#2f4a26!important;font-family:var(--serif)!important;font-size:19px!important}
#splash .sp-d i{background:#47704c!important}
#plsplash{background:var(--leaf-cream)!important}

/* ---------- sign in: the warehouse's leaf world ---------- */
.lgn{background:var(--leaf-cream) url("/static/leaf-scene-m.webp") center top / cover no-repeat!important;color:#1d2a1a!important}
@media (min-width:768px){.lgn{background-image:url("/static/leaf-scene.webp")!important}}
@media (max-width:767px){.lgn{padding-top:calc(140px + env(safe-area-inset-top,0px))!important}}   /* headings below the leaf corner */
.lgn-brand .lgn-logo{display:none!important}   /* the Cergas tree is in the card: one logo, not two */
.lgn-brand span{color:#47704c!important;font-family:var(--serif);font-size:15px!important;letter-spacing:.06em!important;text-transform:none!important}
.pd i{background:#fff!important;border:1px solid #d8d6c8!important}
.pd i::after{background:#d8d6c8!important}.pd i.on::after{background:#2f4a26!important}
.pdw:focus-within .pd i{border-color:#47704c!important}
.lgn h1{color:#1d2a1a!important}.lgn p{color:#4b5446!important}
.lgn-card{background:rgba(255,253,248,.92)!important;border:1px solid #e8e2d0!important;box-shadow:0 24px 60px -28px rgba(29,42,26,.45);backdrop-filter:blur(6px)}
.lgn-client span{color:#4b5446!important}
.lgn-client img{background:transparent!important}
.lgn-f{background:#fff!important;border:1px solid #d8d6c8!important;color:#7c8577!important}
.lgn-f input{color:#1d2a1a!important}.lgn-f input::placeholder{color:#8a8f84!important}
.lgn-f:focus-within{border-color:#47704c!important;box-shadow:0 0 0 3px rgba(71,112,76,.18)!important}
.lgn-btn{background:linear-gradient(180deg,#527d57,#3f6644)!important;color:#fff!important;border-radius:14px!important;box-shadow:0 8px 20px -10px rgba(47,74,38,.7)}
.lgn-lang{color:#8a8f84!important}.lgn-lang button{color:#5d6457!important}
.lgn-lang button.on{color:#47704c!important;border-color:#47704c!important}
.lgn-foot{border-top-color:#e2dccb!important;color:#5d6457!important}.lgn-foot b{color:#1d2a1a!important}
.lgn .msg.bad{background:#fdecec!important;color:#b3261e!important}
/* falling leaves, as on the warehouse sign-in; still for anyone who asks for less motion */
.lgn::before,.lgn::after{content:"";position:fixed;top:-60px;width:34px;height:34px;pointer-events:none;z-index:0;
  background:url("/static/leaf-2.webp") center / contain no-repeat;animation:leaf-fall 15s linear infinite;opacity:.8}
.lgn::before{left:14%}.lgn::after{left:78%;background-image:url("/static/leaf-4.webp");animation-duration:19s;animation-delay:-7s}
.lgn-in{position:relative;z-index:1}
@keyframes leaf-fall{0%{transform:translate(0,0) rotate(0)}50%{transform:translate(40px,55vh) rotate(160deg)}100%{transform:translate(-20px,112vh) rotate(320deg)}}
@media (prefers-reduced-motion:reduce){.lgn::before,.lgn::after{animation:none;display:none}}

/* ---------- header: the Cergas tree replaces OMH's faces; no OMH lockup ---------- */
.omh.omh-l,.omh.omh-d{display:none!important}
#pvpane .pvempty .pvl-l,#pvpane .pvempty .pvl-d{content:url("/static/cergas-tree.png");width:120px!important;height:auto!important;mix-blend-mode:multiply}
#pvpane .pvempty .pvl-d{display:none!important}#pvpane .pvempty .pvl-l{display:block!important}
:root[data-theme="dark"] #pvpane .pvempty .pvl-l{mix-blend-mode:normal;opacity:.85}
.hst .f-load,.hst .f-done,.hst .f-note{content:url("/static/leaf-3.webp");object-fit:contain}

/* ---------- Home: the warehouse's watercolour header behind the greeting ---------- */
.hello{position:relative;isolation:isolate}
.hello::before{content:"";position:absolute;inset:-18px -16px -6px 34%;z-index:-1;pointer-events:none;
  background:url("/static/leaf-header-m.webp") right top / cover no-repeat;opacity:.85;
  -webkit-mask-image:radial-gradient(110% 120% at 100% 0%,#000 35%,transparent 75%);mask-image:radial-gradient(110% 120% at 100% 0%,#000 35%,transparent 75%)}
@media (min-width:768px){.hello::before{background-image:url("/static/leaf-header.webp");background-size:auto 100%}}
:root[data-theme="dark"] .hello::before{opacity:.25}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .hello::before{opacity:.25}}
.hello .avatar{background:#47704c!important;color:#fff!important}

/* ---------- figure tiles: white cards with a thin semantic accent, serif ink figures (warehouse .wh-stat) ---------- */
.tile{background:var(--surface);border:1px solid var(--line);box-shadow:inset 4px 0 0 var(--c),0 1px 2px rgba(18,26,43,.04)}
.tile b{font-family:var(--serif);color:var(--fg);letter-spacing:-.01em}
.tile.warn b,.tile.bad b{color:var(--c)}
.tile[aria-pressed="true"]{outline:2px solid var(--c);background:var(--cs)}

/* ---------- Work: one icon style, the warehouse's green tile with a white line icon (floor Home 'Pick') ---------- */
.wic{--c:#47704c!important;--it:#6f9a72!important;--im:#47704c!important;--ib:#2f4a26!important}

/* ---------- controls: green action, ink chips, tinted not neon ---------- */
.tabbar button[aria-current="page"]{color:var(--accent)}
