/* ==========================================================================
   Quail Farm v2.55 — Native App Experience layer
   Loaded AFTER style.css. Palette + mobile app UI (top app bar, bottom tab
   bar, bottom sheets, card lists). No business logic is touched here.
   ========================================================================== */

/* ---------- 1. Design tokens: "Golden Quail" palette ---------- */
:root{
  --bg:#f6f3ea;--surface:#ffffff;--surface-2:#faf8f1;
  --ink:#14291f;--muted:#6a796f;--line:#e9e5d8;
  --brand:#12513b;--brand-2:#1f8a5f;--brand-3:#0c3a2a;--brand-soft:#e5f3ec;
  --accent:#f2a93b;--accent-2:#ffc861;--accent-soft:#fff2d6;
  --danger:#e0574a;--danger-soft:#fff0ee;--success:#1f8a5f;
  --shadow:0 2px 14px rgba(18,81,59,.07);
  --shadow-lg:0 14px 40px rgba(12,58,42,.16);
  --radius:22px;
  --tab-h:66px;
  --safe-b:env(safe-area-inset-bottom,0px);
  --safe-t:env(safe-area-inset-top,0px);
}
/* vivid tone chips used by stat cards, quick tiles, module tiles */
.tone-amber{--tone-ink:#b06a00;--tone-light:#fff1d1;--tone-border:#fbdf9c}
.tone-sky{--tone-ink:#1c6fc2;--tone-light:#e3f0ff;--tone-border:#c3dcfa}
.tone-rose{--tone-ink:#cc4458;--tone-light:#ffe8ec;--tone-border:#f9c9d3}
.tone-lime{--tone-ink:#4a8f1f;--tone-light:#eaf8da;--tone-border:#cfeab0}
.tone-violet{--tone-ink:#7c55d6;--tone-light:#f1eaff;--tone-border:#dccdfa}
.tone-teal{--tone-ink:#0f8a8f;--tone-light:#dff6f5;--tone-border:#b8e8e6}
.tone-blue{--tone-ink:#2e62c9;--tone-light:#e6eeff;--tone-border:#c9d9fb}
.tone-mint{--tone-ink:#16915f;--tone-light:#dcf7ea;--tone-border:#b7e9d0}
.tone-coral{--tone-ink:#d0572b;--tone-light:#ffebe0;--tone-border:#fbcdb7}

body{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
::selection{background:var(--accent-2);color:var(--brand-3)}
.ui-icon{stroke-width:1.9}

/* ---------- 2. Shared brand / desktop polish ---------- */
.sidebar{background:linear-gradient(180deg,#0f4833 0%,#0a3326 100%)}
.brand-mark{background:linear-gradient(145deg,var(--accent-2),var(--accent));color:var(--brand-3);box-shadow:0 6px 16px rgba(242,169,59,.35),inset 0 1px 0 #fff8}
.brand-mark .ui-icon{width:24px;height:24px;stroke-width:2}
.brand-mark.big .ui-icon{width:32px;height:32px}
.nav-home.active{background:linear-gradient(135deg,#fff,#fff7e4);color:var(--brand-3)}
.nav-children a.active{background:rgba(242,169,59,.16);color:#ffe2a8}
.topbar{background:rgba(246,243,234,.9)}
.panel{border:1px solid rgba(233,229,216,.7);box-shadow:var(--shadow)}
.btn.primary{background:linear-gradient(135deg,var(--brand-2),var(--brand));box-shadow:0 6px 16px rgba(18,81,59,.22)}
.btn.secondary{background:var(--brand-soft);color:var(--brand)}
.kicker{color:#c98412}
.badge{background:var(--accent-soft);color:#8a5a00}
.stat-card{border-color:rgba(233,229,216,.8);box-shadow:var(--shadow)}
.stat-card strong{color:var(--ink)}
.stat-card-icon{border:0}
.profit-card{border-color:#bfe6d2;background:linear-gradient(145deg,#fff,#eaf8f0)}
.loss-card{border-color:#f6cfc9;background:linear-gradient(145deg,#fff,#fff1ef)}

/* kpi section header with icon (dashboard) */
.kpi-section-head{gap:10px}
.kpi-section-head .ks-ico{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:var(--tone-light);color:var(--tone-ink)}
.kpi-section-head .ks-ico .ui-icon{width:17px;height:17px}
.kpi-section-head span:not(.ks-ico){font-size:15px;font-weight:800;color:var(--ink)}

/* mobile-only chrome is hidden on desktop */
.tabbar,.subnav,.topbar-lead,.more-sheet-wrap,.ptr{display:none}
.home-hero,.qa-strip.home-quick{display:none}

/* ---------- 3. Desktop: dashboard hero stays friendly ---------- */
@media(min-width:901px){
  .home-hero{display:block;margin-bottom:18px}
  .qa-strip.home-quick{display:none}
  .quick-add{background:linear-gradient(135deg,var(--accent-2),var(--accent));color:var(--brand-3)}
  .quick-add-floating{background:linear-gradient(135deg,var(--accent-2),var(--accent))!important;color:var(--brand-3)!important}
}

/* ---------- 4. Hero card (dashboard) ---------- */
.home-hero{position:relative;overflow:hidden;border-radius:26px;padding:20px 20px 18px;color:#fff;
  background:radial-gradient(120% 90% at 100% 0%,rgba(255,200,97,.28) 0,transparent 55%),linear-gradient(145deg,#1b7a55 0%,#12513b 55%,#0c3a2a 100%);
  box-shadow:var(--shadow-lg)}
.home-hero::after{content:"";position:absolute;right:-46px;bottom:-60px;width:190px;height:190px;border-radius:50%;border:26px solid rgba(255,255,255,.06);pointer-events:none}
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hero-hello{display:grid;gap:1px}
.hero-hello small{font-size:12px;color:#bfe0d0;font-weight:600}
.hero-hello b{font-size:17px;font-weight:800;letter-spacing:-.01em}
.hero-date{font-size:11px;font-weight:700;background:rgba(255,255,255,.14);padding:6px 11px;border-radius:999px;white-space:nowrap}
.hero-main{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:16px 0 14px}
.hero-main span{display:block;font-size:12px;color:#cfe8dc;font-weight:700}
.hero-main strong{display:block;font-size:42px;line-height:1.05;font-weight:800;letter-spacing:-.03em;margin-top:2px}
.hero-main strong em{font-style:normal;font-size:15px;font-weight:700;color:#cfe8dc;margin-left:5px}
.hero-rate{flex:0 0 auto;text-align:center;background:linear-gradient(145deg,var(--accent-2),var(--accent));color:var(--brand-3);border-radius:18px;padding:9px 13px;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.hero-rate b{display:block;font-size:20px;font-weight:800;line-height:1.1}
.hero-rate small{font-size:11px;font-weight:800;opacity:.8}
.hero-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;position:relative;z-index:1}
.hero-chips div{background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:10px 11px;min-width:0}
.hero-chips span{display:flex;align-items:center;gap:5px;font-size:11px;color:#cfe8dc;font-weight:700}
.hero-chips span .ui-icon{width:13px;height:13px}
.hero-chips b{display:block;font-size:15px;margin-top:3px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* quick action strip */
.qa-strip{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 6px;margin:14px -2px 4px;scrollbar-width:none;scroll-snap-type:x proximity}
.qa-strip::-webkit-scrollbar{display:none}
.qa-strip a{flex:0 0 auto;width:78px;display:grid;justify-items:center;gap:7px;text-align:center;font-size:11.5px;font-weight:700;color:var(--ink);scroll-snap-align:start}
.qa-strip i{width:56px;height:56px;border-radius:20px;display:grid;place-items:center;background:var(--tone-light);color:var(--tone-ink);box-shadow:0 4px 12px rgba(18,81,59,.08);font-style:normal}
.qa-strip i .ui-icon{width:25px;height:25px}

/* ---------- 5. MOBILE NATIVE EXPERIENCE ---------- */
@media(max-width:900px){
  html{background:var(--brand-3)}
  .sidebar{box-shadow:none}
  body.drawer-open .sidebar{box-shadow:18px 0 60px rgba(13,45,34,.3)}
  body{background:var(--bg);padding-bottom:0}
  .main{min-height:100vh;background:var(--bg)}

  /* --- top app bar --- */
  .topbar{height:auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px;
    padding:calc(var(--safe-t) + 10px) 14px 12px;border:0;
    background:linear-gradient(160deg,#1a7452 0%,#12513b 60%,#0e4531 100%);
    backdrop-filter:none;border-radius:0 0 26px 26px;box-shadow:0 10px 30px rgba(12,58,42,.18);z-index:60}
  .topbar-lead{display:block;flex:0 0 auto;order:0}
  .topbar-center{flex:1 1 0;min-width:0;order:1}
  .top-actions{order:2}
  .subnav{order:5}
  .topbar .eyebrow{color:#b9dccb;font-size:11px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar h1{color:#fff;font-size:20px;font-weight:800;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
  .back-btn,.lead-logo{width:42px;height:42px;border:0;border-radius:15px;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.14);cursor:pointer;padding:0}
  .back-btn .ui-icon{width:22px;height:22px;stroke-width:2.3}
  .lead-logo{background:linear-gradient(145deg,var(--accent-2),var(--accent));color:var(--brand-3)}
  .lead-logo .ui-icon{width:23px;height:23px;stroke-width:2.1}
  .top-actions{gap:8px}
  .top-actions .avatar{display:grid!important;width:42px;height:42px;border-radius:15px;background:rgba(255,255,255,.16);color:#fff;border:0;font-size:16px;cursor:pointer}
  .topbar .top-actions .menu-btn,.topbar .quick-add{display:none!important}

  /* sub navigation chips (module pages) */
  .subnav{display:flex;flex:0 0 calc(100% + 28px);gap:8px;overflow-x:auto;margin:2px -14px -2px;padding:4px 14px 2px;scrollbar-width:none;scroll-snap-type:x proximity}
  .subnav::-webkit-scrollbar{display:none}
  .subnav:empty{display:none}
  .subnav a{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.12);color:#d4eadf;font-size:12.5px;font-weight:700;white-space:nowrap;scroll-snap-align:start}
  .subnav a .ui-icon{width:15px;height:15px}
  .subnav a.active{background:linear-gradient(135deg,var(--accent-2),var(--accent));color:var(--brand-3);font-weight:800;box-shadow:0 4px 12px rgba(0,0,0,.18)}

  /* loading bar while app-shell navigates */
  html.app-nav-busy .topbar::after{content:"";position:absolute;left:14px;right:14px;bottom:0;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,var(--accent-2),transparent);animation:qfload 1s linear infinite}
  @keyframes qfload{from{transform:translateX(-60%);opacity:.4}to{transform:translateX(60%);opacity:1}}
  .topbar{position:sticky}

  /* --- page canvas --- */
  .page-wrap{padding:16px 14px calc(var(--tab-h) + var(--safe-b) + 34px)}
  .panel{border-radius:22px;padding:16px;margin-bottom:14px}
  .page-intro{border-radius:18px;background:var(--brand-soft);border:0;box-shadow:none;padding:12px 14px}
  .page-intro p{color:#2d5a47;font-size:12.5px}
  .panel-top h2,.section-head h2{font-size:17px}

  /* --- hero + quick strip --- */
  .home-hero{display:block;margin-bottom:0}
  .qa-strip.home-quick{display:flex}

  /* --- KPI cards: 2 readable columns, tinted by tone --- */
  .dashboard-kpi-sections{display:grid;gap:18px}
  .kpi-section{border:0;background:transparent;padding:0;box-shadow:none}
  .kpi-section:hover{transform:none;box-shadow:none}
  .dashboard-kpis,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .dashboard-kpis .stat-card,.stat-card{min-height:96px!important;padding:13px!important;border-radius:20px;border:0;
    background:linear-gradient(160deg,#fff 0%,#fff 55%,var(--tone-light) 140%)}
  .dashboard-kpis .stat-card>span,.stat-card>span,.stat-card-top>span{font-size:11.5px!important;line-height:1.3;color:#5d6d63}
  .dashboard-kpis .stat-card strong,.stat-card strong{font-size:20px!important;margin:8px 0 3px!important;line-height:1.15;word-break:break-word}
  .dashboard-kpis .stat-card small,.stat-card small{font-size:11px!important;line-height:1.35;color:var(--muted)}
  .stat-card-top{align-items:flex-start;gap:6px}
  .stat-card-icon{width:34px;height:34px;border-radius:12px}
  .stat-card::after{display:none}

  /* --- lists/tables become cards --- */
  .table-wrap:has(table.m-cards){border:0;background:transparent;overflow:visible;border-radius:0}
  table.m-cards{display:block;width:100%;min-width:0!important}
  table.m-cards thead{display:none}
  table.m-cards tbody,table.m-cards tfoot{display:grid;gap:10px}
  table.m-cards tr{display:grid;background:#fff;border-radius:18px;padding:4px 14px;box-shadow:var(--shadow);border:1px solid rgba(233,229,216,.8)}
  table.m-cards td,table.m-cards th{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 0;border:0;border-bottom:1px dashed var(--line);white-space:normal;text-align:right;font-size:13.5px;font-weight:600;color:var(--ink);min-width:0}
  table.m-cards td::before,table.m-cards th::before{content:attr(data-label);flex:0 0 auto;max-width:46%;text-align:left;color:var(--muted);font-size:11.5px;font-weight:700}
  table.m-cards td:last-child,table.m-cards th:last-child{border-bottom:0}
  table.m-cards td:first-child{font-weight:800}
  table.m-cards td[colspan]{display:block;text-align:center;border:0}
  table.m-cards td[colspan]::before,table.m-cards td:not([data-label])::before,table.m-cards td[data-label=""]::before{display:none}
  table.m-cards td:has(.row-actions){justify-content:flex-end;background:var(--surface-2);margin:2px -14px -4px;padding:10px 14px;border-radius:0 0 18px 18px;border-bottom:0}
  table.m-cards .row-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}
  .row-actions>*{min-height:34px;padding:6px 12px;border-radius:11px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:800;color:var(--brand);display:inline-flex;align-items:center;gap:5px;cursor:pointer}
  .row-actions .text-danger,.row-actions button.text-danger{color:var(--danger);background:var(--danger-soft);border-color:#f8d4cf}
  .row-actions form{display:contents}

  .panel:has(table.m-cards){background:transparent;box-shadow:none;border:0;padding:0 0 4px}
  .panel:has(table.m-cards) .panel-top{padding:0 4px;margin-bottom:10px}

  /* --- forms --- */
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{
    font-size:16px!important;min-height:50px;border:1.5px solid #e4dfcf!important;border-radius:15px!important;padding:12px 14px!important;background:#fff!important;color:var(--ink)!important;transition:border-color .15s,box-shadow .15s}
  textarea{min-height:92px}
  input:focus,select:focus,textarea:focus{outline:0;border-color:var(--brand-2)!important;box-shadow:0 0 0 4px rgba(31,138,95,.14)!important}
  .form-grid label,.filter-row label{font-size:12.5px;font-weight:800;color:#4b5d52;gap:7px}
  .form-grid{gap:14px}
  .btn{min-height:50px;border-radius:15px;font-size:15px;padding:12px 18px}
  .btn.primary{width:100%}
  .filter-row .btn,.inline-form .btn,.row-actions .btn,.page-intro .btn,.panel-top .btn,.mini-link{width:auto}
  .btn:active,.tabbar a:active,.tab-fab:active,.quick-grid a:active,.more-tile:active,.qa-strip a:active,.subnav a:active,.stat-card:active{transform:scale(.97)}
  .btn,.tabbar a,.tab-fab,.quick-grid a,.more-tile,.qa-strip a,.subnav a,.stat-card{transition:transform .12s ease,background .15s}
  .panel:hover,.stat-card:hover,.quick-grid a:hover{transform:none;box-shadow:var(--shadow)}

  /* toast → snackbar under the app bar */
  .toast{position:fixed;left:14px;right:14px;top:calc(var(--safe-t) + 78px);z-index:200;border:0;border-radius:16px;padding:13px 16px;font-size:13.5px;font-weight:700;box-shadow:var(--shadow-lg)}
  .toast-ok{background:#0f4a36;color:#fff}
  .toast-error{background:#b3392d;color:#fff}

  /* --- bottom tab bar --- */
  .tabbar{display:grid;grid-template-columns:1fr 1fr 76px 1fr 1fr;align-items:end;position:fixed;left:0;right:0;bottom:0;z-index:100;
    height:calc(var(--tab-h) + var(--safe-b));padding:0 6px var(--safe-b);background:rgba(255,255,255,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
    border-top:1px solid rgba(233,229,216,.9);box-shadow:0 -8px 28px rgba(12,58,42,.08)}
  .tabbar>a,.tabbar>button.tab-more{height:var(--tab-h);display:grid;justify-items:center;align-content:center;gap:3px;border:0;background:none;color:#7b897f;font-size:11px;font-weight:700;cursor:pointer;padding:0;font-family:inherit}
  .tab-ico{width:46px;height:28px;border-radius:14px;display:grid;place-items:center}
  .tab-ico .ui-icon{width:22px;height:22px}
  .tabbar .active{color:var(--brand);font-weight:800}
  .tabbar .active .tab-ico{background:var(--brand-soft)}
  .tabbar .active .tab-ico .ui-icon{stroke-width:2.2}
  .tab-fab{justify-self:center;align-self:start;margin-top:-24px;width:62px;height:62px;border-radius:22px;border:4px solid var(--bg);
    background:linear-gradient(145deg,var(--accent-2),var(--accent));color:var(--brand-3);display:grid;place-items:center;cursor:pointer;padding:0;
    box-shadow:0 10px 24px rgba(242,169,59,.5)}
  .tab-fab .ui-icon{width:28px;height:28px;stroke-width:2.6}
  body.quick-open .tab-fab .ui-icon{transform:rotate(45deg)}
  .tab-fab .ui-icon{transition:transform .2s ease}
  .quick-add-floating{display:none!important}

  /* --- bottom sheets (quick entry + more) --- */
  .sheet{max-height:86vh;overflow-y:auto;border-radius:28px 28px 0 0;padding:12px 16px calc(22px + var(--safe-b))}
  .sheet-handle{background:#d9d4c4}
  .sheet-head h3{font-size:19px}
  .close-btn{background:var(--brand-soft)}
  .quick-grid{gap:10px}
  .quick-grid a{display:flex;align-items:center;gap:11px;padding:12px;border-radius:18px;background:linear-gradient(145deg,#fff 45%,var(--tone-light,#f4f4ee) 220%)!important;border:1px solid var(--line)}
  .quick-grid a b{display:block;font-size:13.5px;color:var(--ink)}
  .quick-grid a span{display:block;font-size:11px;color:var(--muted);font-weight:600;line-height:1.3;margin-top:1px}
  .quick-action-icon{width:42px;height:42px;border-radius:14px;background:var(--tone-light,#eef);color:var(--tone-ink,#333);border:0}
  .quick-grid a:nth-child(1){--tone-ink:#b06a00;--tone-light:#fff1d1}
  .quick-grid a:nth-child(2){--tone-ink:#d0572b;--tone-light:#ffebe0}
  .quick-grid a:nth-child(3),.quick-grid a:nth-child(5){--tone-ink:#4a8f1f;--tone-light:#eaf8da}
  .quick-grid a:nth-child(4){--tone-ink:#0f8a8f;--tone-light:#dff6f5}
  .quick-grid a:nth-child(6),.quick-grid a:nth-child(7){--tone-ink:#7c55d6;--tone-light:#f1eaff}
  .quick-grid a:nth-child(8){--tone-ink:#1c6fc2;--tone-light:#e3f0ff}
  .quick-grid a:nth-child(9){--tone-ink:#cc4458;--tone-light:#ffe8ec}
  .quick-grid a:nth-child(10){--tone-ink:#2e62c9;--tone-light:#e6eeff}

  #moreModal.modal{display:block!important;visibility:hidden;pointer-events:none;opacity:0;position:fixed;inset:0;z-index:130;transition:opacity .22s ease,visibility 0s linear .32s!important}
  #moreModal.modal .modal-backdrop{opacity:0;transition:opacity .24s ease!important}
  #moreModal.modal .sheet{left:0;right:0;top:auto;bottom:0;width:100%;transform:translate3d(0,105%,0);transition:transform .32s cubic-bezier(.2,.78,.24,1)!important;will-change:transform}
  #moreModal.modal.open{visibility:visible;pointer-events:auto;opacity:1;transition:opacity .22s ease!important}
  #moreModal.modal.open .modal-backdrop{opacity:1}
  #moreModal.modal.open .sheet{transform:translate3d(0,0,0)!important}
  body.more-open{overflow:hidden}
  .more-sheet-wrap{display:block}
  .more-profile{display:flex;align-items:center;gap:12px;padding:6px 2px 14px}
  .more-profile .avatar{width:50px;height:50px;border-radius:17px;background:linear-gradient(145deg,var(--accent-2),var(--accent));color:var(--brand-3);border:0;font-size:20px}
  .more-profile div:last-child{display:grid;min-width:0}
  .more-profile b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .more-profile span{font-size:12px;color:var(--muted);font-weight:600}
  .more-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
  .more-tile{display:grid;justify-items:center;gap:7px;padding:12px 4px 10px;border-radius:18px;background:var(--surface-2);border:1px solid var(--line);font-size:12px;font-weight:800;color:var(--ink);text-align:center}
  .more-tile i{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:var(--tone-light);color:var(--tone-ink);font-style:normal}
  .more-tile i .ui-icon{width:23px;height:23px}
  .more-tile.active{border-color:var(--brand-2);background:var(--brand-soft)}
  .more-list{margin-top:14px;display:grid;gap:8px}
  .more-list a,.more-list button{display:flex;align-items:center;gap:12px;width:100%;padding:13px 14px;border-radius:16px;background:var(--surface-2);border:1px solid var(--line);font-size:14px;font-weight:800;color:var(--ink);cursor:pointer;font-family:inherit;text-align:left}
  .more-list .ui-icon{width:20px;height:20px;color:var(--brand-2)}
  .more-list em{margin-left:auto;font-style:normal;color:#9aa69f}
  .more-list em .ui-icon{width:16px;height:16px;color:#9aa69f}
  .more-list .danger{color:var(--danger);background:var(--danger-soft);border-color:#f8d4cf}
  .more-list .danger .ui-icon{color:var(--danger)}
  .more-list [data-pwa-install][hidden]{display:none}

  /* --- pull to refresh indicator --- */
  .ptr{display:grid;position:fixed;left:50%;top:calc(var(--safe-t) + 70px);z-index:90;width:40px;height:40px;margin-left:-20px;border-radius:50%;background:#fff;box-shadow:var(--shadow-lg);place-items:center;color:var(--brand-2);opacity:0;transform:translateY(-60px) rotate(0);pointer-events:none}
  .ptr .ui-icon{width:20px;height:20px}
  .ptr.pulling{opacity:1}
  .ptr.loading .ui-icon{animation:qfspin .8s linear infinite}
  @keyframes qfspin{to{transform:rotate(360deg)}}

  /* cards on dashboard sections */
  .recipe-capacity-panel{padding:14px}
  .chart-grid{gap:14px}
}

@media(max-width:380px){
  .hero-main strong{font-size:36px}
  .hero-chips b{font-size:13.5px}
  .tabbar{grid-template-columns:1fr 1fr 70px 1fr 1fr}
  .more-grid{grid-template-columns:repeat(3,1fr)}
}

@media(prefers-reduced-motion:reduce){
  .ptr.loading .ui-icon,html.app-nav-busy .topbar::after{animation:none}
  .btn,.tabbar a,.tab-fab,.stat-card{transition:none}
}

/* ---------- 6. Login / setup (native splash feel) ---------- */
.auth-body{background:linear-gradient(170deg,#1a7452 0%,#12513b 38%,#0c3a2a 100%);align-content:center}
.auth-brand h1{color:#fff;font-size:26px;letter-spacing:-.01em}
.auth-brand p{color:#b9dccb}
.auth-card{border:0;border-radius:28px;box-shadow:0 30px 80px rgba(0,0,0,.28)}
.auth-card h2{font-size:22px}
.auth-card input{font-size:16px;min-height:50px;border:1.5px solid #e4dfcf;border-radius:15px;padding:12px 14px;width:100%;background:#fff}
.auth-card input:focus{outline:0;border-color:var(--brand-2);box-shadow:0 0 0 4px rgba(31,138,95,.14)}
.auth-card .btn{width:100%;min-height:52px;border-radius:16px;font-size:16px}
.auth-card label{font-size:12.5px;font-weight:800;color:#4b5d52;display:grid;gap:7px}
@media(max-width:620px){.auth-body{background:linear-gradient(170deg,#1a7452 0%,#12513b 38%,#0c3a2a 100%);padding:20px}}

@media print{.tabbar,.subnav,.topbar-lead,.ptr,#moreModal,.home-quick{display:none!important}}

/* ==========================================================================
   v2.56 — smooth horizontal strips + compact "minimal table & view" lists
   ========================================================================== */
.qa-strip,.subnav{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scroll-snap-type:none!important;scroll-behavior:auto}
.qa-strip a,.subnav a{scroll-snap-align:none!important;transition:none!important;-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none}
.qa-strip a:active,.subnav a:active{transform:none!important;opacity:.72}
.qa-strip i{transition:none}

/* hero chip with a longer label */
.hero-chips div{display:grid;align-content:space-between;gap:4px}
.hero-chips span{align-items:center;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-chips span .ui-icon{margin-top:1px;flex:0 0 13px}

/* desktop keeps normal tables; compact helpers only act on mobile */
@media(max-width:900px){
  .table-wrap:has(table.qc){background:#fff;border:1px solid rgba(233,229,216,.9)!important;border-radius:20px;box-shadow:var(--shadow);overflow:hidden!important}
  .panel:has(table.qc){background:transparent;box-shadow:none;border:0;padding:0 0 4px}
  .panel:has(table.qc) .panel-top{padding:0 4px;margin-bottom:10px}
  .panel:has(table.qc)>h2{padding:0 4px;margin:0 0 10px}
  .panel:has(table.qc) .calculation-note{display:none}

  table.qc{display:block!important;width:100%!important;min-width:0!important;border:0}
  table.qc thead,table.qc tbody,table.qc tfoot{display:block!important}
  table.qc thead{background:var(--surface-2);border-bottom:1px solid var(--line)}
  table.qc thead tr{display:flex!important;align-items:center;gap:8px;padding:9px 14px}
  table.qc thead tr::after{content:"";flex:0 0 12px}
  table.qc.qc-flat thead tr::after{display:none}
  table.qc thead th{display:none!important}
  table.qc thead th.qc-sum{display:block!important;min-width:0;padding:0!important;border:0!important;background:none!important;font-size:11px;font-weight:800;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  table.qc thead th.qc-sum[data-short]{font-size:0}
  table.qc thead th.qc-sum[data-short]::after{content:attr(data-short);font-size:11px}

  table.qc tbody tr{display:block}
  table.qc tbody tr.qc-row{display:flex!important;flex-wrap:wrap;align-items:center;gap:0 8px;padding:0 14px;background:#fff;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;position:relative;cursor:pointer;-webkit-user-select:none;user-select:none}
  table.qc tbody tr.qc-row:last-child{border-bottom:0}
  table.qc tbody tr.qc-row.qc-flat-row{cursor:default}
  table.qc tbody tr.qc-row td{display:none!important}
  table.qc tbody tr.qc-row td.qc-sum{display:block!important;min-width:0;padding:14px 0!important;border:0!important;background:none!important;font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  table.qc tbody tr.qc-row td.qc-sum.qc-r{overflow:visible;text-overflow:clip}
  table.qc tbody tr.qc-row td.qc-sum svg,table.qc tbody tr.qc-row td.qc-sum small{display:none}
  table.qc tbody tr.qc-row td.qc-sum::before{display:none}
  table.qc tbody tr.qc-row td.qc-sum.qc-first{font-weight:800}
  .qc-r{text-align:right}
  table.qc tbody tr.qc-row.qc-more::after{content:"";flex:0 0 7px;width:7px;height:7px;border-right:2px solid #9aa69f;border-bottom:2px solid #9aa69f;transform:rotate(45deg);margin:-3px 2px 0 3px;transition:transform .15s ease}
  table.qc tbody tr.qc-row.open{background:#f6fbf8;box-shadow:inset 3px 0 0 var(--brand-2)}
  table.qc tbody tr.qc-row.open::after{transform:rotate(-135deg);margin-top:3px}
  table.qc tbody tr.qc-row.open td.qc-sum{padding-bottom:10px!important}
  table.qc tbody tr.qc-row.open td.qc-hide{display:flex!important;flex:0 0 100%;order:9;align-items:center;justify-content:space-between;gap:14px;padding:9px 0!important;border:0!important;border-top:1px dashed #dfe8e2!important;background:none!important;font-size:13px;font-weight:700;text-align:right;white-space:normal;color:var(--ink);min-width:0}
  table.qc tbody tr.qc-row.open td.qc-hide::before{content:attr(data-label);flex:0 0 auto;max-width:44%;text-align:left;color:var(--muted);font-size:11.5px;font-weight:700}
  table.qc tbody tr.qc-row.open td.qc-hide.qc-act{justify-content:flex-end;padding:12px 0 14px!important}
  table.qc tbody tr.qc-row.open td.qc-hide.qc-act::before{display:none}
  table.qc tbody tr.qc-row.open td.qc-hide small{display:inline;color:var(--muted);font-weight:600;font-size:11px;margin-left:6px}
  table.qc td.qc-hide.qc-act .row-actions,table.qc td.qc-hide.qc-act .qf-invoice-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
  table.qc td.qc-hide.qc-act .fuh-edit,table.qc td.qc-hide.qc-act .text-edit{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:6px 12px;border-radius:11px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:800;color:var(--brand);text-decoration:none}
  table.qc td.qc-hide.qc-act .fuh-edit svg{width:14px;height:14px}
  table.qc td.qc-hide.qc-act .text-danger,.row-actions .text-danger{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border-radius:11px;background:var(--danger-soft);border:1px solid #f8d4cf;color:var(--danger);font-size:12px;font-weight:800;cursor:pointer;font-family:inherit}
  table.qc td.qc-hide.qc-act .row-actions>*,table.qc td.qc-hide.qc-act .row-actions .record-view{display:inline-flex;align-items:center}
  table.qc tbody tr:not(.qc-row){display:block;padding:0}
  table.qc tbody td[colspan]{display:block!important;text-align:center;padding:20px 14px!important;border:0!important}

  table.qc tfoot tr{display:flex!important;flex-wrap:wrap;gap:4px 12px;align-items:center;justify-content:space-between;padding:12px 14px;background:#ebf7f1;border-top:2px solid #cfe8da}
  table.qc tfoot th,table.qc tfoot td{display:block!important;padding:0!important;border:0!important;background:none!important;color:#195e49!important;font-size:12.5px;font-weight:800;text-align:left}
  table.qc tfoot th[colspan]{flex:1 1 55%}

  /* neutralise legacy per-table mobile card CSS (invoices etc.) when compact mode is on */
  table.qc thead{position:static!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important}
  table.qc tbody tr.qc-row{grid-template-columns:none!important;margin:0!important;overflow:visible!important;border-radius:0!important}
  table.qc tbody tr.qc-row td::before{margin:0!important}
  table.qc tbody tr.qc-row td{grid-column:auto!important}
  .week-panel .panel-top{margin-bottom:10px}
}

/* ======================================================================
   Quail Farm v2.57 — compact mobile-first histories and recipe cards
   ====================================================================== */
/* Daily egg production: one horizontal, readable line, no month/year. */
.egg-week-panel{min-width:0;overflow:hidden}
.egg-week-panel .panel-top{margin-bottom:12px}
.egg-day-strip{
  display:flex;align-items:stretch;gap:9px;overflow-x:auto;overflow-y:hidden;
  padding:3px 2px 12px;margin:0 -2px 0;scrollbar-width:thin;
  scrollbar-color:#d5ddce transparent;-webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;touch-action:pan-x pan-y;
}
.egg-day-pill{
  --eday-bg:#eaf7f0;--eday-ink:#166446;--eday-border:#bfe7d1;
  display:inline-flex;align-items:center;flex:0 0 auto;gap:9px;
  padding:10px 12px;border:1px solid var(--eday-border);
  border-radius:999px;background:var(--eday-bg);color:var(--eday-ink);
  white-space:nowrap;min-height:45px;font-variant-numeric:tabular-nums;
  box-shadow:0 3px 9px rgba(24,51,40,.045);
}
.egg-day-pill .egg-day-symbol{flex:0 0 23px;width:23px;height:23px;display:grid;place-items:center;
  border-radius:50%;background:rgba(255,255,255,.64)}
.egg-day-pill .egg-day-symbol svg{width:14px;height:14px}
.egg-day-symbol-calendar{background:rgba(255,255,255,.78)}
.egg-day-date{display:inline-flex;align-items:center;font-size:15px;font-weight:900;min-width:12px;text-align:center}
.egg-day-count,.egg-day-percent{position:relative;display:inline-flex;align-items:center;gap:6px;padding-left:12px;margin-left:2px}
.egg-day-count::before,.egg-day-percent::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:1px;height:18px;background:color-mix(in srgb,currentColor 28%, transparent);border-radius:1px}
.egg-day-count{font-size:13px;font-weight:850}
.egg-day-percent{font-size:13px;font-weight:900}
.egg-day-inline-icon{display:grid;place-items:center;align-self:center;flex:0 0 14px;line-height:1}
.egg-day-inline-icon .ui-icon{width:14px;height:14px;display:block}
.egg-day-tone-0{--eday-bg:#e4f6e9;--eday-ink:#136947;--eday-border:#bfe5ce}
.egg-day-tone-1{--eday-bg:#fff0d7;--eday-ink:#9b5a04;--eday-border:#f9d8a1}
.egg-day-tone-2{--eday-bg:#e9f1ff;--eday-ink:#1e58a9;--eday-border:#c8daf8}
.egg-day-tone-3{--eday-bg:#f1eafe;--eday-ink:#7043ae;--eday-border:#dccafa}
.egg-day-tone-4{--eday-bg:#ffedeb;--eday-ink:#aa5049;--eday-border:#faccc6}
.egg-day-tone-5{--eday-bg:#dcf6f7;--eday-ink:#166d7c;--eday-border:#ade1e5}
.egg-day-tone-6{--eday-bg:#f2f6db;--eday-ink:#5b7824;--eday-border:#d9e8aa}
.egg-day-pill.egg-day-empty{opacity:.77}
.egg-week-panel .mini-link{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.egg-week-panel .mini-link svg{width:15px;height:15px}

/* Quick navigation: labels never wrap; on phones horizontally scroll the group. */
.qf-egg-links a{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;white-space:nowrap;
  font-size:12px;font-weight:800;text-align:center}
.qf-egg-links a b{font-size:inherit;white-space:nowrap;display:inline}
.qf-egg-links a .ui-icon{width:18px;height:18px;flex:0 0 18px;color:#227f64}
@media(min-width:901px){.qf-egg-links{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* New recipe cards: decorative gradients never conceal numbers or stock info. */
.recipe-capacity-panel{margin:18px 0!important;min-width:0}
.recipe-capacity-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.recipe-capacity-title{display:flex;align-items:center;gap:11px;min-width:0}
.recipe-capacity-title .kicker{font-size:11px;display:block;margin:0 0 1px;color:#75917e;font-weight:800}
.recipe-capacity-title h2{font-size:17px;line-height:1.3;margin:0;font-weight:850;color:var(--ink)}
.recipe-heading-icon{width:39px;height:39px;border-radius:14px;background:#e7f2e5;color:#1c7e53;
 display:grid;place-items:center;flex:0 0 39px}
.recipe-heading-icon svg{width:22px;height:22px}
.recipe-all-link{display:inline-flex;gap:3px;align-items:center;flex:0 0 auto;white-space:nowrap;
 color:#168056;font-size:11.5px;font-weight:850}
.recipe-all-link svg{width:15px;height:15px}
.recipe-capacity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:11px}
.recipe-capacity-panel .recipe-capacity-card,
.recipe-capacity-panel .recipe-capacity-card.can-make,
.recipe-capacity-panel .recipe-capacity-card.cannot-make{
  --recipe-light:#e5f6ed;--recipe-rich:#176b4d;--recipe-outline:#c6e7d5;
  display:flex;flex-direction:column;gap:12px;min-width:0;
  background:linear-gradient(135deg,#fff 0%,#fff 43%,var(--recipe-light) 160%)!important;
  border:1px solid var(--recipe-outline)!important;border-radius:20px!important;
  padding:15px!important;box-shadow:0 6px 20px rgba(34,54,43,.06)!important;
  color:#1b3026;transition:transform .17s ease,box-shadow .17s ease;
}
.recipe-capacity-panel .recipe-tint-0{--recipe-light:#e2f8eb;--recipe-rich:#1a8157;--recipe-outline:#c0e6ce}
.recipe-capacity-panel .recipe-tint-1{--recipe-light:#fff1dd;--recipe-rich:#a36b08;--recipe-outline:#f3e0b6}
.recipe-capacity-panel .recipe-tint-2{--recipe-light:#e7f1ff;--recipe-rich:#2a64b5;--recipe-outline:#d3e0f6}
.recipe-capacity-panel .recipe-tint-3{--recipe-light:#f2eaff;--recipe-rich:#794daf;--recipe-outline:#e3d7f7}
.recipe-capacity-panel .recipe-tint-4{--recipe-light:#ffece9;--recipe-rich:#c1604b;--recipe-outline:#f4d6ce}
.recipe-capacity-panel .recipe-tint-5{--recipe-light:#e5f7f9;--recipe-rich:#1d7882;--recipe-outline:#bfe6e9}
.recipe-capacity-panel .recipe-capacity-card.cannot-make{opacity:.88}
.recipe-capacity-panel .recipe-capacity-head{display:flex;align-items:center;gap:10px;min-width:0}
.recipe-card-symbol{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;
  border-radius:15px;background:var(--recipe-light);color:var(--recipe-rich)}
.recipe-card-symbol svg{width:22px;height:22px}
.recipe-card-name{flex:1 1 auto;min-width:0}
.recipe-card-name h3{margin:0 0 2px;line-height:1.28;font-size:14.5px;font-weight:850;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recipe-card-name>span{display:block;font-size:11px;color:#68796c;font-weight:750}
.recipe-card-arrow{flex:0 0 23px;display:grid;place-items:center;color:var(--recipe-rich)}
.recipe-card-arrow svg{width:17px;height:17px}
.recipe-capacity-panel .recipe-capacity-output{display:flex;align-items:baseline;gap:7px;margin-top:0}
.recipe-capacity-panel .recipe-capacity-output strong,
.recipe-capacity-panel .recipe-capacity-card.cannot-make .recipe-capacity-output strong{
  color:var(--recipe-rich)!important;font-size:clamp(23px,2.5vw,31px);line-height:1;font-weight:900}
.recipe-capacity-panel .recipe-capacity-output span{font-size:11.5px;color:#65786b;font-weight:750}
.recipe-card-foot{display:flex;gap:8px;flex-wrap:wrap;align-items:center;
 border-top:1px solid rgba(45,82,59,.09);padding-top:10px;margin-top:auto}
.recipe-status{font-size:11px;font-weight:900;padding:4px 8px;border-radius:999px;white-space:nowrap}
.recipe-status.is-ready{background:#dff5e9;color:#146647}
.recipe-status.is-short{background:#fff0e8;color:#9f4a36}
.recipe-bottleneck{min-width:0;max-width:100%;display:inline-flex;align-items:center;gap:3px;
 font-size:11px;font-weight:750;color:#67766b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recipe-bottleneck svg{width:12px;height:12px;flex:0 0 12px}
.recipe-empty-link{display:flex;align-items:center;gap:9px;padding:18px;border-radius:18px;
 background:linear-gradient(120deg,#e7f5ed,#eef7ff);font-size:13px;font-weight:800;color:#126847}
.recipe-empty-link .ui-icon{width:19px;height:19px}
.recipe-empty-link .ui-icon:last-child{margin-left:auto}
@media(hover:hover){.recipe-capacity-panel .recipe-capacity-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(34,54,43,.12)!important}}

/* Compact widths: keep module navigation, record titles and action links on one line. */
@media(max-width:900px){
  .qf-egg-links{display:flex!important;flex-wrap:nowrap!important;gap:8px;
   margin:0 -14px 15px;padding:2px 14px 9px;overflow-x:auto;overflow-y:hidden;
   max-width:calc(100% + 28px);scrollbar-width:none;-webkit-overflow-scrolling:touch;
   overscroll-behavior-x:contain;touch-action:pan-x pan-y}
  .qf-egg-links::-webkit-scrollbar{display:none}
  .qf-egg-links a{flex:0 0 auto;width:auto;min-width:0;padding:10px 13px!important;
   border-radius:999px!important;white-space:nowrap!important;display:inline-flex!important;
   line-height:1.2!important;box-shadow:none!important}
  .qf-egg-links a .ui-icon{width:17px;height:17px}
  .subnav{flex-wrap:nowrap!important;white-space:nowrap}
  .subnav a,.subnav a span{white-space:nowrap!important;flex-wrap:nowrap!important;word-break:normal!important}
  .subnav a span{display:inline-block!important}
  .panel-top{min-width:0;gap:10px;align-items:center}
  .panel-top>div{min-width:0;flex:1 1 auto}
  .panel-top h2,.panel>h2,.fuh-table-panel .panel-top h2{max-width:100%;white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis;min-width:0}
  .panel-top>.mini-link,.panel-top>a:not(.btn){flex:0 0 auto;white-space:nowrap!important}
  .fuh-heading .fuh-title{min-width:0;max-width:100%}
  .fuh-title>div{min-width:0}
  .fuh-title h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .qf-recipe-summary-info h2,.qf-recipe-summary-actions a{white-space:nowrap}
  .recipe-capacity-panel .recipe-capacity-card{min-height:152px}
}
@media(max-width:530px){
  .egg-day-pill{gap:7px;padding:9px 11px;min-height:43px}
  .egg-day-count,.egg-day-percent{font-size:12px}
  .egg-day-date{font-size:14px}
  .recipe-capacity-grid{grid-template-columns:minmax(0,1fr)!important;gap:9px}
  .recipe-capacity-panel .recipe-capacity-card,
  .recipe-capacity-panel .recipe-capacity-card.can-make,
  .recipe-capacity-panel .recipe-capacity-card.cannot-make{padding:13px 14px!important;min-height:0}
  .recipe-capacity-panel .recipe-capacity-output strong{font-size:26px}
  .recipe-capacity-title h2{font-size:15px}
  .recipe-heading-icon{width:35px;height:35px;flex-basis:35px;border-radius:12px}
  .recipe-all-link{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.recipe-capacity-panel .recipe-capacity-card{transition:none!important}}

.recipe-capacity-top,.recipe-capacity-title,.recipe-all-link{display:none!important}
.recipe-capacity-panel{padding-top:15px!important}
.recipe-capacity-panel .recipe-capacity-head{align-items:flex-start}
.recipe-capacity-panel .recipe-card-symbol{margin-top:1px;align-self:flex-start}
.recipe-capacity-panel .recipe-card-name h3{white-space:normal;overflow:visible;text-overflow:clip}


/* v2.59 clean mobile refinements */
@media(max-width:900px){
  .subnav{gap:7px!important;padding-top:3px!important;padding-bottom:2px!important}
  .subnav a{font-size:11.4px!important;padding:8px 12px!important;min-height:38px!important;max-width:max-content!important}
  .subnav a,.subnav a *,
  .qf-egg-links a,.qf-egg-links a *,.qa-strip a,.qa-strip a *{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important}
  .qf-egg-links a{font-size:11.6px!important;padding:10px 12px!important;max-width:max-content!important}
  .qf-egg-links a b{font-size:11.6px!important}
  .panel-top .mini-link{font-size:11.5px!important}
}

/* Remove extra helper notes/subtitles but keep errors/alerts */
.qf-editor-subtitle,
.fuh-editor-link,
.fuh-title p,
.qf-report-shortcut p,
.fuh-info-note,
.qf-card-note,
.qf-editor-quick,
.qf-recipe-price-hint,
.recipe-auto-hint,
.purchase-auto-hint{display:none!important}

/* Keep report shortcut compact after helper text removal */
.qf-report-shortcut{align-items:center!important}

/* Slightly tighter pill on phones */
@media(max-width:530px){
  .egg-day-pill{gap:6px;padding:9px 10px;min-height:42px}
  .egg-day-symbol{width:18px;height:18px;flex-basis:18px}
  .egg-day-symbol svg{width:13px!important;height:13px!important}
  .egg-day-date{font-size:13.5px}
  .egg-day-count,.egg-day-percent{font-size:11.6px;padding-left:10px}
  .egg-day-count::before,.egg-day-percent::before{height:16px}
}

/* v2.60: genuinely single-line compact record rows, even on 320px devices.
   The expanded detail stays beneath the primary row, never alongside it. */
@media (max-width:900px){
 table.qc thead tr{display:flex!important;flex-wrap:nowrap!important;min-width:0!important;gap:6px!important;padding-inline:10px!important}
 table.qc tbody tr.qc-row{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;padding-inline:10px!important;min-width:0!important;width:100%!important}
 table.qc thead th.qc-sum,table.qc tbody tr.qc-row td.qc-sum{
   box-sizing:border-box!important;min-width:0!important;max-width:none!important;
   flex:1 1 0!important;white-space:nowrap!important;overflow:hidden!important;
   text-overflow:ellipsis!important;overflow-wrap:normal!important;word-break:normal!important;
   line-height:1.4!important;
 }
 table.qc thead th.qc-sum:first-child,table.qc tbody tr.qc-row td.qc-sum.qc-first{flex:1.7 1 0!important;text-align:left!important}
 table.qc tbody tr.qc-row td.qc-sum.qc-r{overflow:hidden!important;text-overflow:ellipsis!important}
 table.qc tbody tr.qc-row.qc-more::after{flex:0 0 9px!important;width:7px!important;margin:0 0 0 1px!important;align-self:center!important}
 /* Only detail cells may use another line after user expands the record. */
 table.qc tbody tr.qc-row.open{flex-wrap:wrap!important}
 table.qc tbody tr.qc-row.open td.qc-hide{flex:0 0 100%!important;min-width:0!important}
 .subnav,.qf-egg-links{min-width:0!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important}
 .subnav a,.qf-egg-links a{flex:0 0 auto!important;white-space:nowrap!important;word-break:keep-all!important;min-width:max-content!important}
}
@media(max-width:360px){
 table.qc tbody tr.qc-row td.qc-sum{font-size:11.5px!important;padding-block:13px!important}
 table.qc thead th.qc-sum,table.qc thead th.qc-sum[data-short]::after{font-size:11px!important}
 table.qc tbody tr.qc-row{gap:4px!important;padding-inline:8px!important}
 table.qc thead tr{gap:4px!important;padding-inline:8px!important}
}

/* v2.61: per-recipe ready-feed stock and runway */
.recipe-ready-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:1px}
.recipe-ready-metric{min-width:0;padding:10px 11px;border:1px solid var(--recipe-outline);background:rgba(255,255,255,.68);border-radius:13px;display:grid;gap:5px}
.recipe-ready-metric>span{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;font-weight:750;color:#60766a}
.recipe-ready-metric>span svg{width:14px;height:14px;flex:0 0 14px;color:var(--recipe-rich)}
.recipe-ready-metric>strong{font-size:17px;line-height:1.25;color:var(--recipe-rich);font-weight:900;white-space:nowrap}
.recipe-ready-metric strong small{font-size:11px;font-weight:750}
@media(max-width:380px){.recipe-ready-metric{padding:9px 8px}.recipe-ready-metric>span{font-size:11px}.recipe-ready-metric>strong{font-size:15px}}
@media(max-width:530px){.hero-chips>div{padding:9px 7px}.hero-chips span{font-size:11px;gap:3px;white-space:nowrap;letter-spacing:-.035em}.hero-chips span svg{width:12px;height:12px;flex:0 0 12px}.hero-chips b{font-size:13px}}

/* v2.62: tap-to-select ready-feed stock cards */
.qf-ready-choose{display:grid;gap:11px;min-width:0}
.qf-ready-choose-head{display:flex;justify-content:space-between;align-items:center;gap:9px}
.qf-ready-choose-head strong{display:inline-flex;align-items:center;gap:7px;font-size:14px;color:var(--ink)}
.qf-ready-choose-head strong svg{width:18px;height:18px;color:#188a64}
.qf-ready-choose-head>span{font-size:11px;color:var(--muted);white-space:nowrap}
.qf-ready-choose-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:9px;min-width:0}
.qf-ready-choose-card{--qf-feed-ink:#186a4c;--qf-feed-light:#edf9f1;--qf-feed-line:#cfeada;cursor:pointer;display:flex;align-items:center;text-align:left;gap:10px;min-width:0;padding:12px 13px;border-radius:16px;background:linear-gradient(125deg,#fff,var(--qf-feed-light));border:1.5px solid var(--qf-feed-line);color:var(--qf-feed-ink);transition:transform .15s,border-color .15s,box-shadow .15s}
.qf-ready-choose-card:active{transform:scale(.985)}
.qf-ready-choose-card:focus-visible{outline:3px solid #e2a73c;outline-offset:2px}
.qf-ready-tone-1{--qf-feed-ink:#935708;--qf-feed-light:#fff5de;--qf-feed-line:#f4dfb9}
.qf-ready-tone-2{--qf-feed-ink:#265ca8;--qf-feed-light:#e9f3ff;--qf-feed-line:#cddffa}
.qf-ready-tone-3{--qf-feed-ink:#754ca7;--qf-feed-light:#f3ebff;--qf-feed-line:#e0d0fa}
.qf-ready-tone-4{--qf-feed-ink:#ae5147;--qf-feed-light:#fff0ed;--qf-feed-line:#f4d2cc}
.qf-ready-tone-5{--qf-feed-ink:#197486;--qf-feed-light:#e5f9fb;--qf-feed-line:#bee6eb}
.qf-ready-choose-icon{width:36px;height:36px;flex:0 0 36px;border-radius:12px;display:grid;place-items:center;background:#ffffffbb}
.qf-ready-choose-icon svg{width:20px;height:20px}
.qf-ready-choose-main{display:grid;gap:2px;min-width:0;flex:1}
.qf-ready-choose-main strong{font-size:13px;line-height:1.35;font-weight:800;overflow-wrap:anywhere}
.qf-ready-choose-main small{font-size:11px;color:var(--muted);font-weight:650}
.qf-ready-choose-main small b{color:var(--qf-feed-ink);font-weight:850}
.qf-ready-choose-check{flex:0 0 24px;width:24px;height:24px;display:grid;place-items:center;border:1.5px solid currentColor;border-radius:50%;opacity:.4}
.qf-ready-choose-check svg{width:14px;height:14px;opacity:0}
.qf-ready-choose-card.is-selected{border-color:var(--qf-feed-ink);box-shadow:0 0 0 2px color-mix(in srgb,var(--qf-feed-ink) 11%,transparent)}
.qf-ready-choose-card.is-selected .qf-ready-choose-check{opacity:1;background:var(--qf-feed-ink);color:#fff;border-color:var(--qf-feed-ink)}
.qf-ready-choose-card.is-selected .qf-ready-choose-check svg{opacity:1}
@media(max-width:480px){.qf-ready-choose-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.qf-ready-choose-card{gap:6px;padding:10px 8px;border-radius:13px}.qf-ready-choose-icon{width:26px;height:26px;flex-basis:26px;border-radius:8px}.qf-ready-choose-icon svg{width:16px;height:16px}.qf-ready-choose-main strong{font-size:11px}.qf-ready-choose-main small{font-size:11px}.qf-ready-choose-check{flex-basis:18px;width:18px;height:18px}.qf-ready-choose-check svg{width:12px;height:12px}.qf-ready-choose-head>span{font-size:11px}}

/* v2.64: elegant tinted recipe cards and clear aggregate runway label. */
.recipe-capacity-panel .recipe-capacity-card,
.recipe-capacity-panel .recipe-capacity-card.can-make,
.recipe-capacity-panel .recipe-capacity-card.cannot-make{
  background:linear-gradient(135deg,var(--recipe-light) 0%,#eef4f0 125%)!important;
  border-color:var(--recipe-outline)!important;
  box-shadow:0 8px 22px rgba(30,61,45,.065)!important;
}
.recipe-capacity-panel .recipe-tint-0{--recipe-light:#e6f6eb}
.recipe-capacity-panel .recipe-tint-1{--recipe-light:#fff0dc}
.recipe-capacity-panel .recipe-tint-2{--recipe-light:#e6f0ff}
.recipe-capacity-panel .recipe-tint-3{--recipe-light:#f0e8fc}
.recipe-capacity-panel .recipe-tint-4{--recipe-light:#ffebea}
.recipe-capacity-panel .recipe-tint-5{--recipe-light:#e4f4f4}
.recipe-capacity-panel .recipe-ready-metric{background:rgba(255,255,255,.49)}
@media(max-width:530px){.recipe-capacity-panel .recipe-ready-metric>span{white-space:nowrap;font-size:11px;letter-spacing:-.02em}}


/* v2.65: unified translucent dashboard KPI system; three cards on every phone */
.dashboard-kpi-sections{gap:10px!important}
.dashboard-kpi-sections .kpi-section{
  --section-rgb:34,130,100;--section-ink:#16624e;
  padding:12px!important;border:1px solid rgba(var(--section-rgb),.20)!important;
  border-radius:19px!important;
  background:linear-gradient(140deg,rgba(var(--section-rgb),.105),rgba(var(--section-rgb),.040))!important;
  box-shadow:0 7px 20px rgba(24,58,46,.045)!important;
}
.dashboard-kpi-sections .kpi-section:nth-child(1){--section-rgb:42,141,100;--section-ink:#126447}
.dashboard-kpi-sections .kpi-section:nth-child(2){--section-rgb:89,130,70;--section-ink:#3d672c}
.dashboard-kpi-sections .kpi-section:nth-child(3){--section-rgb:96,114,159;--section-ink:#394d7f}
.dashboard-kpi-sections .kpi-section:nth-child(4){--section-rgb:66,120,141;--section-ink:#265c70}
.dashboard-kpi-sections .kpi-section-head{margin:0 0 9px!important}
.dashboard-kpi-sections .kpi-section-head span{color:var(--section-ink)!important}
.dashboard-kpi-sections .kpi-section-head .ks-ico{background:rgba(var(--section-rgb),.13)!important;color:var(--section-ink)!important}
.dashboard-kpi-sections .dashboard-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
.dashboard-kpi-sections .dashboard-kpis .stat-card,
.dashboard-kpi-sections .dashboard-kpis .stat-card.day-today,
.dashboard-kpi-sections .dashboard-kpis .stat-card.day-yesterday,
.dashboard-kpi-sections .dashboard-kpis .stat-card.profit-card,
.dashboard-kpi-sections .dashboard-kpis .stat-card.loss-card{
  --tone-ink:var(--section-ink)!important;--tone-light:rgba(var(--section-rgb),.09)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.64),rgba(255,255,255,.22))!important;
  backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px);
  border:1px solid rgba(255,255,255,.78)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 3px 9px rgba(var(--section-rgb),.06)!important;
  border-radius:13px!important;padding:10px!important;min-height:89px!important;
  gap:4px!important;min-width:0!important;
}
.dashboard-kpi-sections .dashboard-kpis .stat-card::after{display:none!important}
.dashboard-kpi-sections .dashboard-kpis .stat-card-top{align-items:center!important;gap:3px!important;min-width:0!important}
.dashboard-kpi-sections .dashboard-kpis .stat-card-top>span{
  display:block!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  word-break:normal!important;overflow-wrap:normal!important;
  font-size:11px!important;line-height:1.35!important;font-weight:750!important;
  color:var(--section-ink)!important;
}
.dashboard-kpi-sections .dashboard-kpis .stat-card.day-today .stat-card-top>span::before,
.dashboard-kpi-sections .dashboard-kpis .stat-card.day-yesterday .stat-card-top>span::before{display:none!important}
.dashboard-kpi-sections .dashboard-kpis .stat-card-icon{
  width:23px!important;height:23px!important;flex:0 0 23px!important;
  background:rgba(var(--section-rgb),.13)!important;color:var(--section-ink)!important;
  border:1px solid rgba(var(--section-rgb),.14)!important;border-radius:8px!important;
}
.dashboard-kpi-sections .dashboard-kpis .stat-card-icon svg{width:13px!important;height:13px!important}
.dashboard-kpi-sections .dashboard-kpis .stat-card strong{
  font-size:clamp(14px,1.7vw,19px)!important;line-height:1.12!important;
  margin:2px 0 0!important;color:#193b34!important;
  overflow-wrap:anywhere!important;word-break:normal!important;
}
.dashboard-kpi-sections .dashboard-kpis .stat-card small{
  font-size:11px!important;line-height:1.25!important;
  color:#567069!important;margin-top:auto!important;
  display:-webkit-box!important;-webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;overflow:hidden!important;
}
@media(max-width:900px){
 .dashboard-kpi-sections .dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 .dashboard-kpi-sections .kpi-section{padding:9px!important;border-radius:15px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card,
 .dashboard-kpi-sections .dashboard-kpis .stat-card.day-today,
 .dashboard-kpi-sections .dashboard-kpis .stat-card.day-yesterday{
    min-height:80px!important;padding:7px 6px!important;border-radius:11px!important;gap:3px!important;
 }
 .dashboard-kpi-sections .dashboard-kpis .stat-card-top>span{font-size:11px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card-icon{width:18px!important;height:18px!important;flex-basis:18px!important;border-radius:6px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card-icon svg{width:11px!important;height:11px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card strong{font-size:14px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card small{font-size:11px!important}
}
@media(max-width:360px){
 .dashboard-kpi-sections .dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
 .dashboard-kpi-sections .kpi-section{padding:7px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card{padding:7px 5px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card-top>span{font-size:11px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card-icon{width:16px!important;height:16px!important;flex-basis:16px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card-icon svg{width:10px!important;height:10px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card strong{font-size:12.5px!important}
 .dashboard-kpi-sections .dashboard-kpis .stat-card small{font-size:11px!important}
}

/* v2.67: Explicit egg overview parity with dashboard glass KPI layout. */
.qf-eggs-overview-kpi-sections .kpi-section{
  --section-rgb:42,141,100;
  --section-ink:#126447;
}
.qf-eggs-overview-kpi-sections .dashboard-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.qf-eggs-overview-kpi-sections .stat-card-top>span{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
@media(max-width:900px){
  .qf-eggs-overview-kpi-sections .dashboard-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
  }
}
@media(max-width:360px){
  .qf-eggs-overview-kpi-sections .dashboard-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
  }
}

/* v2.68: One consistent green glass KPI system for every secondary page.
   The dashboard and egg overview retain their already-matched layouts.
   This also covers the distinct summary widgets used by history/report pages. */
:root{--qf-kpi-green:34,125,89;--qf-kpi-ink:#23664d}
.stats-grid.compact,
.fuh-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;margin-bottom:14px!important;min-width:0}
.stats-grid.compact>.stat-card,
.fuh-metrics>.fuh-metric,
.fuh-metrics>.qf-metric-loss{
  --tone-ink:var(--qf-kpi-ink)!important;--tone-light:rgba(var(--qf-kpi-green),.1)!important;
  --tone-border:rgba(255,255,255,.78)!important;
  --met-ink:var(--qf-kpi-ink)!important;--met-bg:rgba(var(--qf-kpi-green),.12)!important;
  --met-border:rgba(255,255,255,.78)!important;
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:4px!important;
  padding:10px!important;min-width:0!important;min-height:89px!important;
  border:1px solid rgba(255,255,255,.78)!important;border-radius:13px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(215,239,226,.52))!important;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.82),0 3px 10px rgba(31,109,72,.07)!important;
  color:#193b34!important;
}
.stats-grid.compact>.stat-card::after{display:none!important}
.stats-grid.compact .stat-card-top,
.fuh-metrics .fuh-metric-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:3px!important;min-width:0!important}
.stats-grid.compact .stat-card-top>span,
.fuh-metrics .fuh-metric-head>span{
  display:block!important;flex:1 1 auto!important;min-width:0!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  word-break:normal!important;overflow-wrap:normal!important;
  font-size:11px!important;line-height:1.35!important;font-weight:750!important;
  color:var(--qf-kpi-ink)!important;
}
.stats-grid.compact .stat-card-top>span::before{display:none!important}
.stats-grid.compact .stat-card-icon,
.fuh-metrics .fuh-metric-head>i{
  display:grid!important;place-items:center!important;flex:0 0 23px!important;
  width:23px!important;height:23px!important;border-radius:8px!important;
  background:rgba(var(--qf-kpi-green),.13)!important;color:var(--qf-kpi-ink)!important;
  border:1px solid rgba(var(--qf-kpi-green),.14)!important;margin:0!important;
}
.stats-grid.compact .stat-card-icon svg,
.fuh-metrics .fuh-metric-head>i svg{width:13px!important;height:13px!important}
.stats-grid.compact .stat-card>strong,
.fuh-metrics .fuh-metric>strong{
  display:block!important;margin:2px 0 0!important;
  font-size:clamp(14px,1.7vw,19px)!important;line-height:1.12!important;
  font-weight:800!important;color:#193b34!important;
  overflow-wrap:anywhere!important;word-break:normal!important;
}
.stats-grid.compact .stat-card>small,
.fuh-metrics .fuh-metric>p{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  overflow:hidden!important;font-size:11px!important;line-height:1.25!important;
  color:#567069!important;margin-top:auto!important;margin-bottom:0!important;
}
@media(max-width:900px){
  .stats-grid.compact,.fuh-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .stats-grid.compact>.stat-card,.fuh-metrics>.fuh-metric{min-height:80px!important;padding:7px 6px!important;border-radius:11px!important;gap:3px!important}
  .stats-grid.compact .stat-card-top>span,.fuh-metrics .fuh-metric-head>span{font-size:11px!important}
  .stats-grid.compact .stat-card-icon,.fuh-metrics .fuh-metric-head>i{width:18px!important;height:18px!important;flex-basis:18px!important;border-radius:6px!important}
  .stats-grid.compact .stat-card-icon svg,.fuh-metrics .fuh-metric-head>i svg{width:11px!important;height:11px!important}
  .stats-grid.compact .stat-card>strong,.fuh-metrics .fuh-metric>strong{font-size:14px!important}
  .stats-grid.compact .stat-card>small,.fuh-metrics .fuh-metric>p{font-size:11px!important}
}
@media(max-width:360px){
  .stats-grid.compact,.fuh-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .stats-grid.compact>.stat-card,.fuh-metrics>.fuh-metric{padding:7px 5px!important}
  .stats-grid.compact .stat-card-top>span,.fuh-metrics .fuh-metric-head>span{font-size:11px!important}
  .stats-grid.compact .stat-card-icon,.fuh-metrics .fuh-metric-head>i{width:16px!important;height:16px!important;flex-basis:16px!important}
  .stats-grid.compact .stat-card-icon svg,.fuh-metrics .fuh-metric-head>i svg{width:10px!important;height:10px!important}
  .stats-grid.compact .stat-card>strong,.fuh-metrics .fuh-metric>strong{font-size:12.5px!important}
  .stats-grid.compact .stat-card>small,.fuh-metrics .fuh-metric>p{font-size:11px!important}
}

/* v2.69: production ledger has the same compact green glass KPIs as other pages. */
.qf-production-formula{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:12px 15px;background:linear-gradient(120deg,rgba(231,246,236,.9),rgba(248,252,249,.94));border:1px solid #d5e9db;border-radius:14px;color:#265f48}
.qf-production-formula>span{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;background:#d6ebdd;border-radius:9px}
.qf-production-formula svg{width:18px;height:18px}
.qf-production-formula b{display:block;font-size:13px}
.qf-production-formula small{display:block;margin-top:4px;color:#56746a;font-size:11.5px;line-height:1.6}
.qf-ledger-warning{display:flex;align-items:flex-start;gap:8px;margin:0 0 14px;padding:11px 13px;border:1px solid #f0d5a4;background:#fff8e9;border-radius:12px;color:#85580d;font-size:12px;line-height:1.6}
.qf-ledger-warning svg{width:18px;height:18px;flex:0 0 18px}
.qf-ledger-missing{display:inline-block;font-size:11px;font-weight:750;color:#92590d;background:#fff3d8;border-radius:8px;padding:6px 7px;line-height:1.3}
.qf-report-production-shortcut{border-color:#cfe9da;background:linear-gradient(110deg,#eefaf2,#f6faf8)}
.qf-report-production-shortcut b,.qf-report-production-shortcut b svg{color:#247352}
@media(max-width:900px){.qf-production-formula{padding:10px 12px}.qf-production-formula b{font-size:12px}.qf-production-formula small{font-size:11px}}


/* ===== v2.70 UX polish ===== */
/* hero chips: never overflow the card now that labels are 11px */
.hero-chips span{overflow:hidden;min-width:0}

/* native confirmation sheet */
.confirm-modal{z-index:200}
.confirm-sheet{text-align:center;padding:12px 20px calc(22px + var(--safe-b,0px))}
.confirm-sheet .cf-icon{width:56px;height:56px;margin:10px auto 12px;border-radius:20px;display:grid;place-items:center;background:#fdecec;color:var(--danger,#c0392b)}
.confirm-sheet .cf-icon svg{width:28px;height:28px}
.confirm-sheet h3{margin:0 0 6px;font-size:19px}
.confirm-sheet .cf-msg{margin:0 0 18px;color:var(--muted,#5d6d63);font-size:14.5px;line-height:1.7}
.confirm-sheet .cf-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.confirm-sheet .cf-actions .btn{min-height:50px;width:100%}
body.confirm-open{overflow:hidden}
@media(min-width:901px){
  #confirmModal .sheet{top:50%!important;bottom:auto!important;left:50%!important;right:auto!important;width:min(92vw,420px)!important;border-radius:24px!important;padding-bottom:22px!important;opacity:0;transform:translate3d(-50%,-44%,0)!important;transition:transform .22s ease,opacity .2s ease!important}
  #confirmModal.open .sheet{opacity:1;transform:translate3d(-50%,-50%,0)!important}
}

/* touch targets: at least 44px on phones */
@media(max-width:900px){
  .row-actions>*,.row-actions .text-danger,table.qc td.qc-hide.qc-act .text-danger{min-height:44px!important;padding:10px 14px!important}
  .back-btn,.top-actions .avatar,.top-actions .menu-btn{width:44px!important;height:44px!important}
}

/* v2.92: friendly greetings without altering existing mobile layout */
.qf-greeting{margin:0 0 12px;padding:12px 15px;border-radius:15px;background:linear-gradient(110deg,#eaf6ee,#f4f8ea);color:#14553b;font-weight:650;font-size:13px;line-height:1.6;border:1px solid #dbeee2}
@media(max-width:600px){.qf-greeting{margin-bottom:10px;font-size:12px;padding:10px 12px}}
