.hmt-app{--hmt-bg:#f6f8fb;--hmt-card:#fff;--hmt-text:#142033;--hmt-muted:#687386;--hmt-line:#e5e9f0;--hmt-accent:#2364db;--hmt-accent2:#13a37f;--hmt-danger:#b42318;max-width:1180px;margin:20px auto;padding:16px;background:var(--hmt-bg);border-radius:28px;color:var(--hmt-text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box}.hmt-app *{box-sizing:border-box}.hmt-hero{display:flex;justify-content:space-between;gap:16px;align-items:stretch;padding:22px;border-radius:24px;background:linear-gradient(135deg,#163b79,#2364db);color:#fff;box-shadow:0 14px 34px rgba(35,100,219,.22)}.hmt-eyebrow{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.16);font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.hmt-hero h2{margin:10px 0 6px;font-size:30px;line-height:1.1;color:#fff}.hmt-hero p{margin:0;color:rgba(255,255,255,.86);max-width:640px}.hmt-date-card{min-width:190px;background:rgba(255,255,255,.14);padding:14px;border-radius:18px;align-self:center}.hmt-date-card label{display:block;font-size:12px;text-transform:uppercase;font-weight:800;color:rgba(255,255,255,.78);margin-bottom:6px}.hmt-date-card input{width:100%;border:0;border-radius:14px;padding:11px 12px;font-weight:700;color:#142033}.hmt-tabs{position:sticky;top:0;z-index:10;display:flex;gap:8px;overflow-x:auto;padding:12px 2px;margin:10px 0}.hmt-tabs button{border:1px solid var(--hmt-line);background:#fff;color:#24324a;padding:11px 15px;border-radius:999px;font-weight:800;white-space:nowrap;cursor:pointer;box-shadow:0 4px 12px rgba(20,32,51,.04)}.hmt-tabs button.active{background:var(--hmt-accent);color:#fff;border-color:var(--hmt-accent)}.hmt-tab{display:none}.hmt-tab.active{display:block}.hmt-grid{display:grid;gap:16px}.hmt-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.hmt-card,.hmt-workflow{background:var(--hmt-card);border:1px solid var(--hmt-line);border-radius:22px;padding:18px;box-shadow:0 10px 26px rgba(20,32,51,.06);margin-bottom:16px}.hmt-card h3{margin:0 0 10px;font-size:20px}.hmt-card h4{margin:18px 0 8px;font-size:16px;text-transform:capitalize}.hmt-workflow{display:flex;gap:10px;align-items:flex-start;background:#eef7ff}.hmt-workflow strong{white-space:nowrap}.hmt-workflow span{color:#44516a}.hmt-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.hmt-tile{background:#fff;border:1px solid var(--hmt-line);border-radius:20px;padding:15px;box-shadow:0 10px 22px rgba(20,32,51,.05)}.hmt-tile span{display:block;color:var(--hmt-muted);font-size:13px;font-weight:700}.hmt-tile strong{display:block;font-size:23px;margin-top:4px}.hmt-bar{height:8px;background:#edf1f7;border-radius:999px;margin-top:10px;overflow:hidden}.hmt-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--hmt-accent),var(--hmt-accent2));border-radius:999px}.hmt-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#fff;border:1px solid var(--hmt-line);border-radius:18px;padding:12px 14px;margin-bottom:16px;color:var(--hmt-muted)}.hmt-form label{display:block;font-weight:800;font-size:13px;margin:10px 0;color:#26334d}.hmt-form input,.hmt-form select,.hmt-form textarea,.hmt-search{width:100%;border:1px solid #ccd4e0;border-radius:14px;padding:11px 12px;margin-top:6px;background:#fff;color:#142033;font:inherit}.hmt-form textarea{min-height:86px;resize:vertical}.hmt-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hmt-check{display:flex!important;align-items:center;gap:9px;background:#f6f8fb;border-radius:14px;padding:10px}.hmt-check input{width:auto!important;margin:0!important}.hmt-primary,.hmt-secondary,.hmt-mini button{border:0;border-radius:14px;padding:11px 14px;font-weight:900;cursor:pointer}.hmt-primary{background:var(--hmt-accent);color:#fff;box-shadow:0 8px 20px rgba(35,100,219,.22)}.hmt-secondary,.hmt-mini button{background:#eef3ff;color:#174ea6}.hmt-help,.hmt-muted{color:var(--hmt-muted);font-size:14px}.hmt-alert{padding:12px 14px;border-radius:16px;margin-bottom:12px;font-weight:800}.hmt-alert.good{background:#e9f8f2;color:#05603a}.hmt-alert.bad{background:#fff1f0;color:var(--hmt-danger)}.hmt-list{display:grid;gap:8px;margin-top:10px}.hmt-list.compact{max-height:260px;overflow:auto}.hmt-food-result{display:block}.hmt-food-result button{width:100%;text-align:left;border:1px solid var(--hmt-line);background:#fff;border-radius:16px;padding:12px;cursor:pointer}.hmt-food-result strong{display:block}.hmt-food-result span{display:block;color:var(--hmt-muted);font-size:13px;margin-top:3px}.hmt-selected{margin-top:12px;background:#f7faff;border:1px solid #d9e6ff;border-radius:18px;padding:14px}.hmt-chip-wrap{display:flex;flex-wrap:wrap;gap:8px}.hmt-chip{border:1px solid var(--hmt-line);background:#fff;border-radius:999px;padding:9px 11px;font-weight:800;cursor:pointer}.hmt-chip small{color:var(--hmt-muted);font-weight:700;margin-left:4px}.hmt-table-wrap{overflow-x:auto;border:1px solid var(--hmt-line);border-radius:16px}.hmt-table-wrap table{width:100%;border-collapse:collapse;background:#fff}.hmt-table-wrap th,.hmt-table-wrap td{padding:11px 12px;border-bottom:1px solid var(--hmt-line);text-align:left;vertical-align:top}.hmt-table-wrap th{background:#f8fafc;color:#475569;font-size:12px;text-transform:uppercase}.hmt-table-wrap td small{display:block;color:var(--hmt-muted);margin-top:3px}.hmt-link{border:0;background:transparent;color:var(--hmt-accent);font-weight:900;cursor:pointer;padding:4px}.hmt-link.danger{color:var(--hmt-danger)}.hmt-meal-block h4{text-transform:capitalize}.hmt-builder-empty{padding:14px;border:1px dashed #c9d4e5;border-radius:16px;color:var(--hmt-muted);background:#fbfcfe;margin:12px 0}.hmt-builder-list{display:grid;gap:8px;margin:12px 0}.hmt-builder-item{display:grid;grid-template-columns:1fr 92px auto;gap:10px;align-items:end;border:1px solid var(--hmt-line);border-radius:16px;padding:10px;background:#fff}.hmt-builder-item strong,.hmt-builder-item span{display:block}.hmt-builder-item span{color:var(--hmt-muted);font-size:13px}.hmt-builder-item label{font-size:12px;margin:0!important}.hmt-builder-total{display:flex;justify-content:space-between;gap:10px;background:#f0f7ff;border-radius:16px;padding:12px;font-weight:900;margin-bottom:12px}.hmt-mini{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid var(--hmt-line);border-radius:16px;padding:12px;margin:8px 0;background:#fff}.hmt-mini strong,.hmt-mini span{display:block}.hmt-mini span{color:var(--hmt-muted);font-size:13px}.hmt-login-notice{max-width:700px;margin:20px auto;padding:16px;border-radius:16px;background:#fff3cd;color:#664d03}@media(max-width:900px){.hmt-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.hmt-grid.two{grid-template-columns:1fr}.hmt-hero{flex-direction:column}.hmt-date-card{width:100%}.hmt-workflow{display:block}.hmt-workflow strong{display:block;margin-bottom:5px}}@media(max-width:560px){.hmt-app{padding:10px;border-radius:18px;margin:8px}.hmt-hero{padding:18px;border-radius:20px}.hmt-hero h2{font-size:24px}.hmt-summary{grid-template-columns:1fr}.hmt-row{grid-template-columns:1fr}.hmt-card{padding:14px;border-radius:18px}.hmt-builder-item{grid-template-columns:1fr}.hmt-mini{display:block}.hmt-mini button{margin-top:8px;width:100%}.hmt-actions{display:block}.hmt-actions button{width:100%;margin-bottom:8px}.hmt-tabs button{padding:10px 12px}}
.hmt-inline{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.hmt-inline input{margin-top:0}.hmt-food-result{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:stretch}.hmt-mini-add{border:1px solid var(--hmt-line);background:#f8fafc;border-radius:14px;padding:10px;font-weight:900;color:#174ea6;cursor:pointer}.hmt-partner-add{margin-top:12px;padding:12px;border-radius:16px;background:#fff;border:1px solid var(--hmt-line)}.hmt-partner-add label{display:block;font-weight:800;font-size:13px;margin-bottom:8px}.hmt-partner-add select{width:100%;border:1px solid #ccd4e0;border-radius:14px;padding:10px;background:#fff;margin-top:5px}.hmt-shop{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;border:1px solid var(--hmt-line);border-radius:16px;padding:10px;margin:8px 0;background:#fff}.hmt-shop.done span{text-decoration:line-through;color:var(--hmt-muted)}.hmt-shop small{display:block;color:var(--hmt-muted)}.hmt-selected code{display:inline-block;padding:5px 8px;border-radius:10px;background:#eef3ff;color:#174ea6;font-weight:900;word-break:break-all}.hmt-card hr{border:0;border-top:1px solid var(--hmt-line);margin:18px 0}.hmt-card .hmt-primary,.hmt-card .hmt-secondary{margin-top:8px}.hmt-mini>div:last-child{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.hmt-mini>div:first-child{min-width:0}.hmt-mini code{word-break:break-all}.hmt-search::placeholder,.hmt-form input::placeholder,.hmt-form textarea::placeholder{color:#94a3b8}@media(max-width:700px){.hmt-inline{grid-template-columns:1fr}.hmt-food-result{grid-template-columns:1fr}.hmt-mini>div:last-child{justify-content:flex-start;margin-top:8px}.hmt-shop{grid-template-columns:auto 1fr}.hmt-shop button{grid-column:1 / -1}.hmt-bottom-space{height:60px}}
@media(max-width:560px){.hmt-tabs{position:sticky;top:auto;bottom:0;background:rgba(246,248,251,.96);backdrop-filter:blur(8px);border-radius:18px;padding:8px;box-shadow:0 -8px 22px rgba(20,32,51,.08)}.hmt-tabs button{font-size:13px}.hmt-mini>div:last-child button{width:100%}}

/* Plugin-styled login/register screens */
.hmt-auth-wrap{--hmt-bg:#f6f8fb;--hmt-card:#fff;--hmt-text:#142033;--hmt-muted:#687386;--hmt-line:#e5e9f0;--hmt-accent:#2364db;max-width:980px;margin:24px auto;padding:16px;background:var(--hmt-bg);border-radius:28px;color:var(--hmt-text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box;display:grid;grid-template-columns:1.05fr .95fr;gap:16px;align-items:stretch}.hmt-auth-wrap *{box-sizing:border-box}.hmt-auth-hero{border-radius:24px;background:linear-gradient(135deg,#163b79,#2364db);color:#fff;padding:28px;display:flex;flex-direction:column;justify-content:center;min-height:320px;box-shadow:0 14px 34px rgba(35,100,219,.22)}.hmt-auth-hero h1{margin:12px 0 8px;font-size:34px;line-height:1.08;color:#fff}.hmt-auth-hero p{margin:0;color:rgba(255,255,255,.86);font-size:16px}.hmt-auth-card{background:var(--hmt-card);border:1px solid var(--hmt-line);border-radius:24px;padding:24px;box-shadow:0 10px 26px rgba(20,32,51,.06);align-self:center}.hmt-auth-card h2{margin:0 0 8px;font-size:26px}.hmt-auth-card p{color:var(--hmt-muted)}.hmt-auth-form label{display:block;font-weight:850;font-size:13px;color:#26334d;margin:12px 0}.hmt-auth-form input[type="text"],.hmt-auth-form input[type="email"],.hmt-auth-form input[type="password"]{display:block;width:100%;border:1px solid #ccd4e0;border-radius:14px;padding:12px;margin-top:7px;background:#fff;color:#142033;font:inherit}.hmt-auth-check{display:flex!important;gap:9px;align-items:center;background:#f6f8fb;border-radius:14px;padding:10px}.hmt-auth-check input{margin:0}.hmt-auth-button{display:inline-flex;justify-content:center;align-items:center;width:100%;border:0;border-radius:14px;padding:13px 16px;background:var(--hmt-accent);color:#fff!important;font-weight:900;text-decoration:none;cursor:pointer;box-shadow:0 8px 20px rgba(35,100,219,.22)}.hmt-auth-switch{text-align:center;margin:14px 0 0!important;color:var(--hmt-muted)}.hmt-auth-switch a{font-weight:900;color:var(--hmt-accent);text-decoration:none}.hmt-login-notice{display:none}@media(max-width:760px){.hmt-auth-wrap{grid-template-columns:1fr;margin:8px;padding:10px;border-radius:18px}.hmt-auth-hero{min-height:auto;padding:22px;border-radius:20px}.hmt-auth-hero h1{font-size:26px}.hmt-auth-card{padding:18px;border-radius:20px}}

/* v3.2 app polish */
.hmt-onboarding{border:1px solid rgba(37,99,235,.22);background:linear-gradient(135deg,#eff6ff,#ffffff)}
.hmt-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.hmt-steps span{border:1px solid #dbeafe;background:#fff;border-radius:14px;padding:10px;font-weight:700;font-size:13px;color:#334155}
.hmt-steps span.done{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
.hmt-presets{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 12px}
.hmt-presets button{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:8px 14px;font-weight:800;cursor:pointer}
#hmt-export-output{min-height:190px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;white-space:pre;overflow:auto}
.hmt-auth-card input[readonly],.hmt-card input[readonly],.hmt-selected input[readonly]{background:#f8fafc;color:#334155}
@media (max-width: 720px){
  .hmt-tabs{position:fixed;bottom:0;left:0;right:0;z-index:9999;border-radius:18px 18px 0 0;box-shadow:0 -10px 30px rgba(15,23,42,.18);overflow-x:auto;padding:8px;background:#fff;margin:0}
  .hmt-app{padding-bottom:92px}
  .hmt-tabs button{min-width:92px;padding:11px 10px;border-radius:14px;font-size:12px}
  .hmt-steps{grid-template-columns:1fr 1fr}
  .hmt-hero{border-radius:0 0 24px 24px;margin:-10px -10px 14px}
  .hmt-actions{align-items:stretch}.hmt-actions button{width:100%}
}

/* v4.2 database, charts and PWA polish */
.hmt-app{--hmt-accent:var(--hmt-accent, #16a34a)}
.hmt-food-result.archived{opacity:.55}
.hmt-food-result .hmt-link.danger{align-self:center;background:#fff7f7;border:1px solid #fecaca;border-radius:14px;padding:10px;text-decoration:none}
.hmt-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 14px}
.hmt-summary-grid>div{background:#f8fafc;border:1px solid var(--hmt-line);border-radius:16px;padding:12px;text-align:center}
.hmt-summary-grid strong{display:block;font-size:22px}.hmt-summary-grid span{display:block;color:var(--hmt-muted);font-size:12px;font-weight:800;text-transform:uppercase}
.hmt-chart{height:150px;display:flex;gap:6px;align-items:flex-end;border:1px solid var(--hmt-line);border-radius:16px;padding:12px;margin:10px 0;background:linear-gradient(180deg,#fff,#f8fafc)}
.hmt-chart div{flex:1;min-width:8px;background:linear-gradient(180deg,var(--hmt-accent),#86efac);border-radius:8px 8px 2px 2px}
.hmt-selected p{margin:7px 0}.hmt-food-result{grid-template-columns:1fr auto auto auto auto}
@media(max-width:800px){.hmt-food-result{grid-template-columns:1fr}.hmt-summary-grid{grid-template-columns:1fr}.hmt-chart{height:120px}}

/* v5.0 finish: daily-use polish, privacy/settings hardening and report cards */
.hmt-app{box-shadow:0 20px 50px rgba(15,23,42,.08)}
.hmt-card:focus-within{outline:3px solid color-mix(in srgb,var(--hmt-accent) 22%,transparent)}
.hmt-selected h4{margin:14px 0 6px}.hmt-selected h4:first-child{margin-top:4px}
#hmt-weekly-report{margin-top:12px;max-height:420px;overflow:auto}
.hmt-card button[data-rebuild-pages],.hmt-card button[data-weekly-report],.hmt-card button[data-privacy-notice]{margin-right:8px;margin-bottom:8px}
.hmt-app input:focus,.hmt-app select:focus,.hmt-app textarea:focus,.hmt-auth-wrap input:focus{outline:3px solid rgba(22,163,74,.18);border-color:var(--hmt-accent)}
.hmt-primary:hover,.hmt-secondary:hover,.hmt-mini button:hover,.hmt-chip:hover{transform:translateY(-1px)}
.hmt-primary,.hmt-secondary,.hmt-mini button,.hmt-chip{transition:transform .12s ease, box-shadow .12s ease}
.hmt-danger-zone{border-color:#fecaca;background:#fff7f7}
@media(max-width:720px){
  .hmt-card button[data-rebuild-pages],.hmt-card button[data-weekly-report],.hmt-card button[data-privacy-notice]{width:100%;margin-right:0}
  #hmt-weekly-report{max-height:360px}
}

/* v6.1 polish */
.hmt-code{white-space:pre-wrap;background:#0f172a;color:#e5e7eb;border-radius:16px;padding:14px;overflow:auto;font-size:12px;line-height:1.45}
.hmt-mini div button{margin-left:6px;margin-top:4px}
.hmt-shop small{display:block;opacity:.72;margin-top:2px}
.hmt-app button:disabled{opacity:.55;cursor:not-allowed}
.hmt-workflow{border-left:4px solid var(--hmt-accent,#16a34a)}
@media (max-width: 700px){.hmt-mini{align-items:flex-start}.hmt-mini>div:last-child{display:flex;flex-wrap:wrap;gap:6px}.hmt-mini div button{margin-left:0}}

/* v6.2 stabilisation: camera scanner, accessibility and settings polish */
.hmt-camera{margin-top:12px;border:1px solid var(--hmt-line);border-radius:18px;padding:12px;background:#f8fafc}
.hmt-camera video{width:100%;max-height:280px;background:#0f172a;border-radius:14px;object-fit:cover}
.hmt-admin-settings-form{margin-top:12px;border:1px solid var(--hmt-line);border-radius:18px;padding:14px;background:#fff}
.hmt-app button:focus-visible,.hmt-auth-wrap button:focus-visible,.hmt-app a:focus-visible,.hmt-auth-wrap a:focus-visible{outline:3px solid rgba(22,163,74,.35);outline-offset:2px}
.hmt-app [hidden]{display:none!important}
@media(max-width:700px){.hmt-camera video{max-height:220px}.hmt-inline .hmt-secondary{width:100%}}


/* v6.3.0 UI cleanup: consistent app shell, cards, mobile navigation and form rhythm */
.hmt-app{background:linear-gradient(180deg,#f8fafc 0%,#eef4f8 100%);border:1px solid rgba(148,163,184,.18);line-height:1.45}
.hmt-app h3{letter-spacing:-.015em}.hmt-app h4{letter-spacing:-.005em}.hmt-app p{line-height:1.5}
.hmt-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#0f766e 0%,var(--hmt-accent) 48%,#2563eb 100%)}
.hmt-hero:after{content:"";position:absolute;right:-60px;top:-70px;width:210px;height:210px;border-radius:999px;background:rgba(255,255,255,.12)}
.hmt-hero>div{position:relative;z-index:1}.hmt-eyebrow{box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.hmt-date-card{box-shadow:inset 0 0 0 1px rgba(255,255,255,.13)}.hmt-date-card input{min-height:46px}
.hmt-tabs{scrollbar-width:none}.hmt-tabs::-webkit-scrollbar{display:none}.hmt-tabs button{display:inline-flex;align-items:center;gap:8px;min-height:44px;transition:background .16s ease,border-color .16s ease,transform .12s ease,box-shadow .12s ease}.hmt-tabs button:before{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:10px;background:#f1f5f9;font-size:14px;line-height:1}.hmt-tabs button.active:before{background:rgba(255,255,255,.18)}.hmt-tabs button[data-tab="today"]:before{content:"✓"}.hmt-tabs button[data-tab="foods"]:before{content:"⌕"}.hmt-tabs button[data-tab="recipes"]:before{content:"🍲"}.hmt-tabs button[data-tab="planner"]:before{content:"▦"}.hmt-tabs button[data-tab="progress"]:before{content:"↗"}.hmt-tabs button[data-tab="settings"]:before{content:"⚙"}.hmt-tabs button:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(15,23,42,.08)}
.hmt-card,.hmt-workflow,.hmt-tile{border-color:rgba(148,163,184,.25)}.hmt-card{position:relative}.hmt-card h3{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.hmt-card h3:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--hmt-line),transparent);min-width:36px}.hmt-workflow{background:linear-gradient(135deg,#ecfdf5,#eff6ff);border-radius:20px}.hmt-workflow strong{color:#0f5132}.hmt-workflow span{font-size:14px}
.hmt-summary{align-items:stretch}.hmt-tile{min-height:108px;display:flex;flex-direction:column;justify-content:space-between}.hmt-tile strong{letter-spacing:-.03em}.hmt-bar{height:9px;background:#e2e8f0}
.hmt-actions{background:rgba(255,255,255,.86);backdrop-filter:blur(8px)}.hmt-form label{line-height:1.3}.hmt-form input,.hmt-form select,.hmt-form textarea,.hmt-search,.hmt-auth-form input[type="text"],.hmt-auth-form input[type="email"],.hmt-auth-form input[type="password"]{min-height:46px;box-shadow:inset 0 1px 2px rgba(15,23,42,.035);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.hmt-form textarea{min-height:100px}.hmt-form input:hover,.hmt-form select:hover,.hmt-form textarea:hover,.hmt-search:hover{border-color:#94a3b8}.hmt-row{align-items:end}
.hmt-primary,.hmt-secondary,.hmt-mini button,.hmt-mini-add,.hmt-auth-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none}.hmt-secondary,.hmt-mini button,.hmt-mini-add{border:1px solid #dbeafe}.hmt-primary:active,.hmt-secondary:active,.hmt-mini button:active,.hmt-chip:active{transform:translateY(0)}.hmt-link.danger{font-weight:850}.hmt-alert{box-shadow:0 10px 22px rgba(15,23,42,.06)}
.hmt-food-result button,.hmt-mini,.hmt-shop,.hmt-selected,.hmt-builder-empty,.hmt-builder-item{transition:box-shadow .16s ease,transform .12s ease,border-color .16s ease}.hmt-food-result button:hover,.hmt-mini:hover,.hmt-shop:hover{border-color:rgba(22,163,74,.35);box-shadow:0 10px 22px rgba(15,23,42,.06);transform:translateY(-1px)}.hmt-selected{background:linear-gradient(135deg,#f8fbff,#ffffff)}.hmt-chip-wrap{margin-top:8px}.hmt-chip{background:#fff}.hmt-presets button{min-width:48px;min-height:40px}.hmt-table-wrap{box-shadow:0 10px 22px rgba(15,23,42,.04)}
.hmt-mini{display:grid;grid-template-columns:minmax(0,1fr) auto}.hmt-mini>div:last-child{align-items:center}.hmt-mini button{white-space:nowrap}.hmt-shop input[type="checkbox"],.hmt-check input[type="checkbox"],.hmt-auth-check input[type="checkbox"]{width:18px!important;height:18px!important;accent-color:var(--hmt-accent)}
.hmt-auth-wrap{background:linear-gradient(180deg,#f8fafc 0%,#eef4f8 100%);border:1px solid rgba(148,163,184,.18)}.hmt-auth-hero{background:linear-gradient(135deg,#0f766e 0%,var(--hmt-accent) 45%,#2563eb 100%);position:relative;overflow:hidden}.hmt-auth-hero:after{content:"";position:absolute;right:-70px;top:-70px;width:210px;height:210px;border-radius:999px;background:rgba(255,255,255,.12)}.hmt-auth-hero>*{position:relative;z-index:1}.hmt-auth-card{border-color:rgba(148,163,184,.25)}.hmt-auth-switch{padding-top:10px;border-top:1px solid var(--hmt-line)}
.hmt-camera{background:linear-gradient(135deg,#f8fafc,#eef6ff)}.hmt-camera video{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.hmt-code{border:1px solid rgba(148,163,184,.28)}
.hmt-list:empty:before{content:"Start typing to search the food bank.";display:block;color:var(--hmt-muted);font-size:14px;padding:12px;border:1px dashed #cbd5e1;border-radius:16px;background:#f8fafc}.hmt-help{margin-top:4px}
@media(max-width:900px){.hmt-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.hmt-card h3{font-size:19px}}
@media(max-width:720px){.hmt-app{margin:0;max-width:none;border-radius:0;border-left:0;border-right:0}.hmt-hero{margin:-10px -10px 12px;padding:20px 16px}.hmt-hero p{font-size:14px}.hmt-tabs{display:grid;grid-template-columns:repeat(6,minmax(78px,1fr));gap:6px;overflow-x:auto}.hmt-tabs button{flex-direction:column;gap:3px;min-width:78px;min-height:62px;padding:7px 6px}.hmt-tabs button:before{width:26px;height:24px}.hmt-tabs button span{font-size:11px;line-height:1.1}.hmt-card,.hmt-workflow{margin-bottom:12px}.hmt-card h3{font-size:18px}.hmt-summary{grid-template-columns:1fr 1fr;gap:8px}.hmt-tile{min-height:96px;padding:12px}.hmt-tile strong{font-size:20px}.hmt-inline{gap:8px}.hmt-mini{grid-template-columns:1fr;gap:10px}.hmt-mini>div:last-child{justify-content:stretch}.hmt-mini>div:last-child button,.hmt-mini>div:last-child .hmt-link{flex:1 1 120px}.hmt-selected{padding:12px}.hmt-presets{display:grid;grid-template-columns:repeat(4,1fr)}.hmt-presets button{width:100%}.hmt-auth-wrap{margin:0;max-width:none;border-radius:0;border-left:0;border-right:0}.hmt-auth-hero{border-radius:0 0 22px 22px}.hmt-auth-card{box-shadow:0 8px 22px rgba(15,23,42,.07)}}
@media(max-width:480px){.hmt-summary{grid-template-columns:1fr}.hmt-grid{gap:10px}.hmt-card{padding:13px}.hmt-hero h2{font-size:23px}.hmt-tabs{grid-template-columns:repeat(6,minmax(72px,1fr))}.hmt-row{gap:8px}.hmt-primary,.hmt-secondary,.hmt-mini button,.hmt-mini-add{width:100%}.hmt-inline{grid-template-columns:1fr}.hmt-shop{grid-template-columns:28px 1fr}.hmt-shop button{grid-column:1/-1}.hmt-builder-total{display:block}.hmt-builder-total strong{display:block;margin-top:4px}.hmt-auth-card h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.hmt-app *,.hmt-auth-wrap *{transition:none!important;scroll-behavior:auto!important}.hmt-primary:hover,.hmt-secondary:hover,.hmt-mini button:hover,.hmt-chip:hover,.hmt-food-result button:hover,.hmt-mini:hover,.hmt-shop:hover{transform:none!important}}

/* v6.4.0 Today planner dashboard */
.hmt-grid.today{grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);align-items:start}
.hmt-day-sections{display:grid;gap:12px}
.hmt-day-section{border:1px solid var(--hmt-line);border-radius:18px;background:#fff;padding:12px;box-shadow:0 8px 18px rgba(15,23,42,.04)}
.hmt-day-section.active{border-color:rgba(22,163,74,.55);box-shadow:0 0 0 3px rgba(22,163,74,.12),0 8px 18px rgba(15,23,42,.04)}
.hmt-day-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
.hmt-day-head strong{display:block;font-size:17px}.hmt-day-head span{display:block;color:var(--hmt-muted);font-size:13px;margin-top:2px}
.hmt-mini-plan-form{margin:8px 0}.hmt-mini-plan-form .hmt-inline{grid-template-columns:1fr auto}.hmt-mini-plan-form input[name="notes"]{margin-top:8px}
.hmt-plan-pills{display:grid;gap:8px;margin-top:10px}.hmt-plan-pill{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;border:1px solid #dbeafe;background:#f8fbff;border-radius:14px;padding:9px}.hmt-plan-pill strong{display:block}.hmt-plan-pill small{display:block;color:var(--hmt-muted);margin-top:2px}.hmt-plan-pill button{min-height:36px;border-radius:12px;border:1px solid #dbeafe;background:#eef3ff;color:#174ea6;font-weight:900;cursor:pointer}.hmt-plan-pill .hmt-link{background:transparent;border:0;color:var(--hmt-danger)}
.hmt-shortcuts{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px}.hmt-shortcuts small{color:var(--hmt-muted);font-weight:800}.hmt-shortcuts button{border:1px solid var(--hmt-line);background:#fff;border-radius:999px;padding:7px 9px;font-weight:800;color:#174ea6;cursor:pointer}
.hmt-today-side{position:sticky;top:84px}.hmt-today-side .hmt-inline{grid-template-columns:1fr auto}.hmt-today-side h3:not(:first-child){margin-top:18px}
@media(max-width:980px){.hmt-grid.today{grid-template-columns:1fr}.hmt-today-side{position:static}.hmt-mini-plan-form .hmt-inline,.hmt-today-side .hmt-inline{grid-template-columns:1fr}}
@media(max-width:560px){.hmt-day-head{align-items:flex-start}.hmt-day-head button{width:auto}.hmt-plan-pill{grid-template-columns:1fr}.hmt-plan-pill button{width:100%}.hmt-shortcuts button{flex:1 1 auto}.hmt-day-section{padding:10px}}

/* v6.4.3 Today add modal and safer zero defaults */
body.hmt-modal-open{overflow:hidden}
.hmt-modal[hidden]{display:none!important}
.hmt-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:18px}
.hmt-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(4px)}
.hmt-modal-panel{position:relative;width:min(760px,100%);max-height:min(88vh,900px);overflow:auto;background:#fff;border-radius:26px;box-shadow:0 28px 80px rgba(15,23,42,.34);border:1px solid rgba(148,163,184,.28);padding:18px}
.hmt-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid var(--hmt-line);padding-bottom:12px;margin-bottom:12px}
.hmt-modal-head h3{margin:3px 0 0;font-size:24px;color:#0f172a}
.hmt-modal-close{width:42px;height:42px;border-radius:999px;border:1px solid var(--hmt-line);background:#f8fafc;font-size:28px;line-height:1;cursor:pointer;color:#334155}
.hmt-modal-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0 16px}
.hmt-modal-tabs button{min-height:42px;border-radius:14px;border:1px solid var(--hmt-line);background:#f8fafc;font-weight:900;color:#334155;cursor:pointer}
.hmt-modal-tabs button.active{background:var(--hmt-accent);border-color:var(--hmt-accent);color:#fff}
.hmt-modal-section{display:grid;gap:12px}.hmt-empty-state{border:1px dashed #cbd5e1;background:#f8fafc;border-radius:18px;padding:14px;text-align:center}
.hmt-modal .hmt-food-result{grid-template-columns:1fr}.hmt-modal .hmt-food-result button:first-child{text-align:left;width:100%}
@media(max-width:620px){.hmt-modal{padding:0;align-items:end}.hmt-modal-panel{width:100%;max-height:92vh;border-radius:24px 24px 0 0;padding:14px}.hmt-modal-tabs{grid-template-columns:1fr 1fr}.hmt-modal-head h3{font-size:20px}}

/* v6.4.5: make modal save/create actions obvious and accessible */
.hmt-save-add-button{width:100%;margin-top:16px!important;padding:15px 18px!important;font-size:16px!important;background:#0f7a3d!important;color:#fff!important;border:2px solid #064e2b!important;box-shadow:0 10px 26px rgba(15,122,61,.28)!important;text-align:center!important;display:flex!important}
.hmt-save-add-button::before{content:"✓";font-weight:900}
.hmt-modal-panel .hmt-form button[type=submit],#hmt-modal-new-food-form .hmt-primary,#hmt-fb-create-form .hmt-primary{min-height:52px}
.hmt-modal-panel .hmt-form input[type=number]{appearance:textfield}
.hmt-modal-panel .hmt-form input[type=number]::-webkit-outer-spin-button,.hmt-modal-panel .hmt-form input[type=number]::-webkit-inner-spin-button{margin:0}

/* v6.4.6: button visibility and item-form consistency sweep */
.hmt-app button,.hmt-modal button,.hmt-auth button{font-weight:800!important;border-radius:12px!important;border:1px solid #cbd5e1!important;cursor:pointer!important;line-height:1.2!important;text-decoration:none!important;opacity:1!important;visibility:visible!important}
.hmt-app .hmt-primary,.hmt-modal .hmt-primary,.hmt-auth-button{background:var(--hmt-accent,#16a34a)!important;color:#fff!important;border-color:var(--hmt-accent,#16a34a)!important;box-shadow:0 8px 18px rgba(22,163,74,.22)!important}
.hmt-app .hmt-secondary,.hmt-modal .hmt-secondary{background:#fff!important;color:#0f172a!important;border:1px solid #94a3b8!important;box-shadow:0 5px 14px rgba(15,23,42,.08)!important}
.hmt-app .hmt-link,.hmt-modal .hmt-link{background:#fff!important;color:#0f172a!important;border:1px solid #cbd5e1!important;padding:9px 12px!important}
.hmt-app .hmt-link.danger,.hmt-modal .hmt-link.danger{color:#991b1b!important;border-color:#fecaca!important;background:#fff5f5!important}
.hmt-app button:focus-visible,.hmt-modal button:focus-visible,.hmt-auth button:focus-visible{outline:3px solid #facc15!important;outline-offset:2px!important}
.hmt-action-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.hmt-action-row button{flex:1 1 160px;min-height:44px}.hmt-food-result .hmt-mini-add,.hmt-mini button,.hmt-day-head button{min-height:40px}.hmt-save-add-button{justify-content:center!important;gap:9px!important;min-height:56px!important;text-transform:none!important}
