/* KIVRA / Sage — shared interface, navigation and dashboard. */
:root {
  color-scheme:light;
  --fx-bg:#f5f5ef;
  --fx-panel:#ffffff;
  --fx-panel-raised:#f1f5ef;
  --fx-text:#18392f;
  --fx-muted:#596f61;
  --fx-line:#dce5db;
  --fx-accent:#27634d;
  --fx-accent-strong:#1b4d3b;
  --fx-radius:18px;
  --fx-shadow:0 12px 36px #18392f0d;
  --fx-sidebar:236px;
  --fx-ease:cubic-bezier(.22,1,.36,1);
  --ink:var(--fx-text);--muted:var(--fx-muted);--line:var(--fx-line);
  --ink-black:var(--fx-text);--soft-text:var(--fx-muted);--soft-line:var(--fx-line);
  --wine:var(--fx-accent);--wine-deep:var(--fx-accent-strong);--wine-soft:#27634d0d;
  --red:var(--fx-accent);--red-dark:var(--fx-accent-strong);
  --canvas:var(--fx-bg);--surface:var(--fx-panel);--warm-canvas:var(--fx-bg);
  --app-canvas:var(--fx-bg);--app-surface:var(--fx-panel);--app-ink:var(--fx-text);
  --app-muted:var(--fx-muted);--app-line:var(--fx-line);--app-accent:var(--fx-accent);
}
html{background:var(--fx-bg)!important;scroll-behavior:smooth;scroll-padding-top:100px}
body,.app-shell{background:var(--fx-bg)!important;color:var(--fx-text)!important;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
body{background-image:radial-gradient(ellipse at 90% 0,#d9e8dc70,transparent 45%),radial-gradient(ellipse at 15% 80%,#ede7db60,transparent 45%)!important}
.app-shell{background:transparent!important}
::selection{background:#dcebcf;color:#18392f}
::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#becdbf;border-radius:20px}::-webkit-scrollbar-thumb:hover{background:#97ad99}
button,input,select{font:inherit}button{color:inherit}button:disabled{cursor:default;opacity:.5}
button,a,input,select{touch-action:manipulation}
button,a{transition:background-color .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease,transform .22s var(--fx-ease)}
button:active:not(:disabled){transform:scale(.98)!important}
button:focus-visible,a:focus-visible{outline:2px solid var(--fx-accent)!important;outline-offset:4px!important}
input:focus-visible,select:focus-visible{outline:0!important}
.ui-icon{display:inline-block;flex:0 0 auto;vertical-align:middle;stroke-width:1.7;pointer-events:none;overflow:visible}
.ui-icon *{vector-effect:non-scaling-stroke}
:is(.icon-btn,.icon-close,.scan-button,.print-back,.quick-print,.btn){display:inline-flex;align-items:center;justify-content:center;gap:9px}
.btn-block{display:flex!important}
:is(.btn-primary,.home-test-print){color:#ffffff!important;background:linear-gradient(120deg,#39775d,#27634d)!important;border:1px solid #1b4d3b20!important;box-shadow:0 5px 22px #18392f12,inset 0 1px #ffffff20!important;font-weight:750}
:is(.btn-primary,.home-test-print):hover{color:#ffffff!important;background:linear-gradient(120deg,#367256,#255f48)!important;box-shadow:0 7px 28px #18392f20!important}
.btn{border-radius:12px!important;min-height:46px;letter-spacing:.01em}
.btn-soft{background:#f1f5ef!important;border:1px solid #dce5db!important;color:#395746!important}
.btn-soft:hover{background:#dce5db!important;border-color:#b9ccb9!important}
.btn-outline{background:#f7faf5!important;border:1px solid #b9ccbb!important;color:var(--fx-accent)!important}
.btn-outline:hover{background:#e4eee2!important;border-color:#82a58c!important}
.icon-btn,.icon-close{width:42px;min-width:42px;height:42px;min-height:42px;padding:8px!important;border-radius:12px!important;font-size:inherit!important;background:#ffffff!important;border:1px solid var(--fx-line)!important;color:var(--fx-muted)!important}
.icon-btn:hover,.icon-close:hover{color:var(--fx-accent)!important;background:#edf3e9!important;border-color:#b9ccbb!important}
.search,.admin-search,.category-search,.history-search{border:1px solid #dce5db!important;background:#ffffff!important;border-radius:14px!important;box-shadow:inset 0 1px #ffffff!important;color:var(--fx-muted)!important;transition:border-color .22s,box-shadow .22s,background-color .22s}
:is(.search,.admin-search):focus-within{border-color:#83a68d!important;background:#ffffff!important;box-shadow:0 0 0 4px #27634d0d!important}
:is(.search,.admin-search) input{color:var(--fx-text)!important;background:transparent!important;min-width:0}
:is(.search,.admin-search) input::placeholder{color:#66796a!important;opacity:1}
:is(.search,.admin-search)>span{display:flex;align-items:center;justify-content:center;font-size:inherit!important;flex:none}
:is(.section-heading,.category-section-heading,.recent-heading) h2{color:var(--fx-text)!important;letter-spacing:-.03em}
:is(.section-heading,.category-section-heading,.recent-heading) button,.signout-link{display:inline-flex;align-items:center;gap:8px;color:var(--fx-accent)!important;min-height:40px}
.muted{color:var(--fx-muted)!important}
.screen{animation:workspace-enter .4s var(--fx-ease) backwards}
@keyframes workspace-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
/* A consistent header makes every area of the app feel like one workspace. */
.app-shell .topbar,.app-shell .topbar.dark,.app-shell .topbar:has(.icon-btn[data-action='back']){display:flex!important;align-items:center;gap:14px;position:sticky!important;top:0;z-index:40;height:88px!important;min-height:88px!important;background:#f5f5efe8!important;backdrop-filter:blur(20px);border-bottom:1px solid #dce5db!important;overflow:visible!important}
.topbar .brand-lockup{display:none!important}
.topbar-title{min-width:0;flex:1}
.topbar-context{display:block;font-size:9px;font-weight:650;letter-spacing:.16em;text-transform:uppercase;color:#5d7265;margin-bottom:6px}
.topbar .topbar-title h1{margin:0;color:var(--fx-text)!important;letter-spacing:-.035em;font-size:21px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-user{display:flex;align-items:center;gap:10px;flex:none;padding-left:14px;border-left:1px solid var(--fx-line)}
.workspace-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(140deg,#d9e9db,#edf3e6);border:1px solid #c8d9c6;color:#27634d;font-size:12px;font-weight:750;box-shadow:inset 0 1px #f1f5ef}
.workspace-user b,.workspace-user small{display:block}.workspace-user b{max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#18392f}.workspace-user small{font-size:10px;color:#596f61;margin-top:3px}
/* Dashboard */
.home-screen,.home-screen .home-hero,.home-screen .content-section{background:transparent!important}
.home-screen .home-hero{padding-top:26px!important}
.home-commandbar{margin:0 0 24px!important;display:flex!important;gap:12px!important}
.home-commandbar .search{width:100%;height:56px!important;margin:0!important;padding:0 18px!important}
.home-commandbar .search input{font-size:13px!important}
.welcome-banner{padding:34px 36px!important;min-height:196px!important;gap:24px;border-radius:24px!important;background:radial-gradient(ellipse at 80% -15%,#b7d6bd50,transparent 65%),linear-gradient(110deg,#e7efe2,#f1f3e8)!important;border:1px solid #d1dfcd!important;box-shadow:0 18px 45px #18392f08,inset 0 1px #ffffff!important;margin:0!important}
.welcome-banner:before{content:'';position:absolute;width:300px;height:300px;right:-60px;top:-140px;border:1px solid #799f861c;border-radius:50%;box-shadow:0 0 0 48px #799f8608,0 0 0 96px #799f8605;pointer-events:none;z-index:-1}
.welcome-banner:after{background:linear-gradient(#70987908 1px,transparent 1px),linear-gradient(90deg,#70987908 1px,transparent 1px)!important;background-size:40px 40px!important}
.greeting{max-width:540px;padding:0!important}.greeting .eyebrow{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border:1px solid #c0d3bb;border-radius:6px;background:#f0f6ec;color:#27634d;font-size:9px;letter-spacing:.16em;margin-bottom:17px}
.welcome-banner .greeting h2{text-shadow:none!important;font-size:clamp(28px,3.1vw,42px)!important;font-weight:650;line-height:1.1!important;color:#18392f!important;margin-bottom:12px!important;letter-spacing:-.05em!important}
.greeting p{color:#506b59!important;font-size:13px!important;line-height:1.7}
.welcome-tip{position:relative!important;top:auto!important;right:auto!important;display:flex!important;align-items:flex-start!important;gap:12px!important;width:280px!important;min-width:240px;max-width:280px!important;min-height:0!important;margin:0!important;padding:18px!important;background:#ffffffb3!important;border:1px solid #d6e1cf!important;box-shadow:inset 0 1px #ffffff!important;border-radius:16px!important}
.welcome-tip>span{display:grid;place-items:center;width:34px!important;height:34px!important;flex:none;border-radius:10px;background:#e7f0e2!important;color:var(--fx-accent)!important;font-size:inherit!important}
.welcome-tip b{color:#274c37!important;font-size:12px!important}.welcome-tip small{display:block;color:#596f61!important;font-size:11px!important;line-height:1.7!important;margin-top:5px}
.overview-grid{gap:16px;margin:20px 0 28px}
.overview-card{position:relative;display:flex;gap:16px;min-height:100px;padding:22px 24px;background:linear-gradient(125deg,#ffffff,#fafbf7)!important;border:1px solid #dce5db!important;border-radius:18px;box-shadow:inset 0 1px #ffffff!important;color:var(--fx-text)!important}
.overview-card:after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:none}
.overview-card:hover{border-color:#a9c4aa!important;box-shadow:0 8px 28px #18392f0d!important;transform:translateY(-3px)}
.overview-card>i{background:linear-gradient(135deg,#e6f0e3,#f0f6ec)!important;border:1px solid #c6d9c1;color:#327052!important;border-radius:14px;width:46px;height:46px;box-shadow:inset 0 1px #ffffff}
.overview-card.attention>i{background:#fbefd8!important;border-color:#eedcba;color:#916128!important}
.overview-card:nth-child(3)>i{background:#eeeaf5!important;border-color:#dbd2ec;color:#705989!important}
.overview-card b{color:#18392f!important;font-size:29px;font-weight:600;letter-spacing:-.035em}.overview-card small{color:#596f61!important;font-size:11px;margin-top:5px}
.home-screen .category-section-heading{margin:0 0 15px!important}.category-section-heading>div{display:flex;align-items:center;gap:10px}.category-section-heading>div>span{color:#327052!important;display:flex;font-size:inherit!important}
.category-section-heading h2,.section-heading h2{font-size:18px!important;font-weight:650!important}.category-section-heading button{font-size:11px!important;font-weight:600!important}
.home-screen .category-grid{gap:16px!important}
.home-screen .category-card.photo-card,.add-category-card{height:172px!important;min-height:172px!important;border:1px solid #dce5db!important;border-radius:18px!important;box-shadow:0 6px 20px #18392f0a!important;transition:transform .3s var(--fx-ease),box-shadow .3s,border-color .3s!important}
.home-screen .category-card.photo-card{background-color:#ffffff!important;background-size:cover!important}
.home-screen .category-card:after{background:linear-gradient(180deg,#14291f0a 0%,#14291f45 32%,#14291fef 100%)!important}
.home-screen .category-card.photo-card:hover{transform:translateY(-4px)!important;border-color:#88ae91!important;box-shadow:0 12px 30px #18392f1a,0 0 0 1px #27634d0d!important}
.home-screen .category-card .category-icon{display:grid!important;place-items:center;left:14px!important;top:14px!important;width:39px!important;height:39px!important;border-radius:12px!important;background:#18392f9e!important;border:1px solid #ffffff30!important;color:#edf6e9!important;font-size:inherit!important;box-shadow:inset 0 1px #dce5db!important;backdrop-filter:blur(10px)}
.home-screen .category-card .category-icon .ui-icon{width:21px;height:21px}
.home-screen .category-card>b{bottom:40px!important;left:15px!important;max-width:calc(100% - 45px)!important;margin:0!important;font-size:14px!important;font-weight:650!important;letter-spacing:-.02em;color:#fff!important}
.home-screen .category-card .category-counts{bottom:14px!important;left:15px!important;display:flex;align-items:center;gap:8px;filter:none!important}
.home-screen .category-card .category-counts small:first-child{font-size:9px!important;padding:3px 6px;border:1px solid #ffffff30;background:#ffffff12;color:#f1f5eb!important;font-weight:500}
.home-screen .category-card .category-counts .category-expiry{color:#d5e4d5!important;font-size:9px!important}.home-screen .category-card .category-counts .category-expiry.has-expiry{color:#ffe0a3!important;background:#b06a072b!important}
.home-screen .category-card>i{display:grid;place-items:center;right:12px!important;bottom:18px!important;width:23px!important;height:23px!important;border-radius:50%;background:#ffffff15!important;color:#d7ecd6!important;font-size:inherit!important;box-shadow:none!important}
.home-screen .category-card>i .ui-icon{width:15px;height:15px}
.add-category-card{display:flex;align-items:center;justify-content:center;gap:5px;flex-direction:column;background:linear-gradient(145deg,#27634d0a,#f6f8f1)!important;border:1px dashed #b9ccbb!important;color:#327052!important}
.add-category-card>span{display:grid;place-items:center;width:38px;height:38px;margin:0 0 7px!important;border-radius:12px;background:#e4eee2!important;color:#27634d!important;border:1px solid #c6d9c1;font-size:inherit}
.add-category-card>b{font-size:12px!important;font-weight:650}.add-category-card>small{font-size:10px!important;color:#596f61!important}.add-category-card:hover{background:#e7f0e2!important;border-color:#82a58c!important;transform:translateY(-3px)}
.home-screen .content-section{padding-top:12px!important}.home-screen .recent-heading{margin:8px 0 15px!important;align-items:center!important}.recent-heading h2{display:flex;align-items:center;gap:9px;margin:0!important;color:var(--fx-text)!important}.recent-heading h2 .ui-icon{color:#39775d}.recent-heading p{margin-top:7px!important;color:var(--fx-muted)!important;font-size:11px!important}
.home-screen .recent-list{border:0!important;gap:14px!important}.home-screen .recent-list:not(.is-empty){display:grid!important}
.home-screen .recent-list .recent-row{display:grid!important;grid-template-columns:54px minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;gap:12px!important;min-height:90px!important;padding:16px!important;border:1px solid #dce5db!important;border-radius:16px!important;background:#ffffff!important;box-shadow:inset 0 1px #ffffff!important}
.home-screen .recent-row:hover{border-color:#bed1ba!important;background:#f6f9f2!important;transform:translateY(-2px)!important}.home-screen .recent-row .food-thumb{grid-row:auto!important;width:54px!important;height:54px!important;border-radius:12px!important;border-color:#dce5db!important}.home-screen .recent-row .row-copy{grid-column:auto!important;grid-row:auto!important}.home-screen .recent-row .row-copy b{font-size:12px!important;color:#18392f!important;font-weight:600}.home-screen .recent-row .row-copy small{font-size:10px!important;color:#596f61!important}.home-screen .recent-row .quick-print{grid-row:auto!important;grid-column:auto!important;display:flex!important;gap:5px;min-width:36px!important;padding:9px!important;margin:0!important;background:#27634d0d!important;color:#27634d!important;border:1px solid #c6d9c1!important;border-radius:10px!important;font-size:10px!important}
.home-screen .recent-list.is-empty{background:#ffffff99!important;border:1px dashed #c7d7c3!important;border-radius:18px!important}.home-screen .empty{padding:34px!important;color:#596f61!important}.empty>span{display:grid;place-items:center;font-size:inherit!important}.empty .ui-icon{width:30px;height:30px;color:#39775d;margin-bottom:12px}.empty b{color:#395746!important;font-size:13px!important}.empty small{color:#596f61!important;line-height:1.6}
.home-search-results{background:#ffffff!important;border:1px solid #b9ccbb!important;box-shadow:0 24px 60px #18392f1a!important;top:calc(100% + 8px)!important}.search-result-count{color:#596f61!important}.home-search-result{background:transparent!important;border-color:#f1f5ef!important;color:var(--fx-text)!important}.home-search-result:hover,.home-search-result:focus-visible{background:#edf3e9!important}.home-search-result span small{color:var(--fx-muted)!important}.home-search-result>strong,.home-search-result>i{color:var(--fx-accent)!important}.home-search-empty{background:transparent!important}.home-search-empty b{color:#27634d!important}.home-search-empty small{color:#596f61!important}
.toast{background:#ffffff!important;border:1px solid #dce5db!important;color:#18392f!important;backdrop-filter:blur(16px);box-shadow:0 14px 40px #18392f15!important;border-radius:14px!important;transition:opacity .25s,transform .35s var(--fx-ease)}.toast.success{background:#e7f0e2!important;border-color:#27634d26!important}.toast.error{background:#fff1f0!important;border-color:#eac3c3!important}.form-error{color:#a34848!important}
@media(min-width:760px){
  .app-shell{padding-bottom:0!important}
  .app-shell .bottom-nav{position:fixed!important;inset:0 auto 0 0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;width:var(--fx-sidebar)!important;height:100dvh!important;padding:24px 18px!important;gap:7px!important;background:linear-gradient(180deg,#1c4033,#143227)!important;border:0!important;border-right:1px solid #264d3c!important;box-shadow:none!important;z-index:60!important}
  .app-shell .bottom-nav .nav-brand{display:flex!important;align-items:center!important;justify-content:center!important;height:92px!important;min-height:92px!important;flex:0 0 92px!important;margin:0 0 26px!important;padding:12px 18px!important;background:linear-gradient(140deg,#f6f8ef,#e7efde)!important;border:1px solid #bfd3bd80!important;border-radius:15px!important;box-shadow:0 8px 20px #102b2420!important}
  .app-shell .bottom-nav .nav-brand-logo{display:block!important;width:100%!important;height:65px!important;object-fit:contain!important;filter:none!important}
  .app-shell .bottom-nav button:not(.nav-brand):not(.sidebar-printer){width:100%!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;min-height:52px!important;height:52px!important;flex:0 0 52px!important;padding:0 15px!important;gap:12px!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;color:#b8cebe!important;box-shadow:none!important;font-size:13px!important;font-weight:550!important}
  .app-shell .bottom-nav button:not(.nav-brand) i{display:grid!important;place-items:center!important;width:22px!important;color:inherit!important;font-size:inherit!important}.bottom-nav .ui-icon{width:21px;height:21px!important}
  .app-shell .bottom-nav button:not(.nav-brand) span{font-size:12px!important}
  .app-shell .bottom-nav button:not(.nav-brand):not(.sidebar-printer):hover{color:#f2f7ed!important;background:#ffffff0a!important;border-color:#ffffff12!important;transform:translateX(2px)}
  .app-shell .bottom-nav button:not(.nav-brand).active{color:#edf6dc!important;background:linear-gradient(100deg,#c5dea422,#c5dea40c)!important;border-color:#c5dea423!important;box-shadow:inset 3px 0 #b5d39a!important}
  .app-shell .bottom-nav .sidebar-printer{display:none!important}
  .app-shell .bottom-nav:after{content:'KIVRA / FOOD INTELLIGENCE';margin-top:auto;border-top:1px solid #ffffff12!important;color:#aec5b5!important;letter-spacing:.13em!important;line-height:1.8;font-size:8px!important;padding:22px 8px 0!important}
  .app-shell .workspace-nav{display:none!important}
  .app-shell .topbar,.app-shell .topbar.dark,.app-shell .topbar:has(.icon-btn[data-action='back']){margin-left:var(--fx-sidebar)!important;width:calc(100% - var(--fx-sidebar))!important;padding:0 32px!important}
  .app-shell .screen:not(.home-screen){width:100%!important;max-width:none!important;margin:0!important;min-height:calc(100dvh - 88px)!important;padding:30px 32px 48px calc(var(--fx-sidebar) + 32px)!important;background:transparent!important}
  .app-shell .home-screen{width:100%!important;max-width:none!important;margin:0!important;min-height:calc(100dvh - 88px)!important;padding:0 0 42px var(--fx-sidebar)!important}
  .app-shell .home-screen .home-hero,.app-shell .home-screen .content-section{padding-left:32px!important;padding-right:32px!important}
  .app-shell .home-screen .home-hero>*,.app-shell .home-screen .content-section>*{max-width:1360px!important;margin-left:auto!important;margin-right:auto!important}
  .app-shell .home-screen .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.app-shell .home-screen .recent-list:not(.is-empty){grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(min-width:1400px){.app-shell .home-screen .category-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.app-shell .home-screen .recent-list:not(.is-empty){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:760px) and (max-width:1099px){
  :root{--fx-sidebar:92px}.app-shell .bottom-nav{padding:22px 12px!important}.app-shell .bottom-nav .nav-brand{height:60px!important;min-height:60px!important;flex-basis:60px!important;padding:8px!important;border-radius:13px!important}.app-shell .bottom-nav .nav-brand-logo{height:42px!important}
  .app-shell .bottom-nav button:not(.nav-brand):not(.sidebar-printer){justify-content:center!important;padding:0!important;gap:0!important}.app-shell .bottom-nav button:not(.nav-brand) span{display:none!important}.app-shell .bottom-nav:after{content:'KIVRA';text-align:center;padding:20px 0 0!important;font-size:8px!important}
  .app-shell .topbar,.app-shell .topbar.dark,.app-shell .topbar:has(.icon-btn[data-action='back']){padding-inline:24px!important}.app-shell .screen:not(.home-screen){padding-left:calc(var(--fx-sidebar) + 24px)!important;padding-right:24px!important}.app-shell .home-screen .home-hero,.app-shell .home-screen .content-section{padding-inline:24px!important}
  .welcome-tip{display:none!important}.overview-card{padding:18px}.overview-card b{font-size:25px}.app-shell .home-screen .category-grid{gap:12px!important}
}
@media(max-width:759px){
  .app-shell{padding-bottom:calc(90px + env(safe-area-inset-bottom))!important}
  .app-shell .topbar,.app-shell .topbar.dark,.app-shell .topbar:has(.icon-btn[data-action='back']){height:76px!important;min-height:76px!important;margin-left:0!important;padding:12px 18px!important;width:100%!important;gap:10px}
  .topbar-context{font-size:8px;letter-spacing:.12em;margin-bottom:5px}.topbar .topbar-title h1{font-size:18px!important}.workspace-user{padding-left:0;border-left:0}.workspace-user>span:last-child{display:none}.workspace-avatar{width:34px;height:34px;border-radius:11px;font-size:11px}
  .app-shell .screen:not(.home-screen){padding:20px 16px 30px!important;min-height:calc(100dvh - 76px)!important;background:transparent!important}.app-shell .home-screen{padding:0!important;min-height:calc(100dvh - 76px)!important}.app-shell .home-screen .home-hero,.app-shell .home-screen .content-section{padding-inline:16px!important}.app-shell .home-screen .home-hero{padding-top:18px!important}
  .home-commandbar{margin-bottom:18px!important}.home-commandbar .search{height:50px!important;padding-inline:14px!important}.home-commandbar .search input{font-size:12px!important}
  .welcome-banner{padding:26px 23px!important;min-height:170px!important;border-radius:20px!important}.greeting .eyebrow{font-size:8px;letter-spacing:.1em;padding:5px 7px;margin-bottom:15px}.welcome-banner .greeting h2{text-shadow:none!important;font-size:30px!important}.greeting p{font-size:12px!important;line-height:1.6}.welcome-tip{display:none!important}
  .overview-grid{gap:9px;margin:16px 0 25px}.overview-card{display:block;min-height:120px;padding:13px 11px!important;border-radius:14px}.overview-card>i{width:33px;height:33px;border-radius:10px;margin-bottom:9px}.overview-card>i .ui-icon{width:18px;height:18px}.overview-card b{font-size:23px}.overview-card small{font-size:9px;line-height:1.5}
  .app-shell .home-screen .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}.home-screen .category-card.photo-card,.add-category-card{height:155px!important;min-height:155px!important;border-radius:15px!important}.home-screen .category-card>b{font-size:12px!important;bottom:39px!important}.home-screen .category-card .category-icon{width:34px!important;height:34px!important;top:12px!important;left:12px!important}.home-screen .category-card .category-counts{gap:5px;left:12px!important}.home-screen .category-card>i{display:none!important}.home-screen .category-card .category-counts small{font-size:8px!important}.category-section-heading h2,.section-heading h2{font-size:16px!important}.category-section-heading button{font-size:10px!important}
  .home-screen .recent-heading{gap:12px}.recent-heading p{font-size:10px!important}.recent-heading>button{font-size:10px!important}.app-shell .home-screen .recent-list:not(.is-empty){grid-template-columns:1fr!important}.home-screen .recent-list .recent-row{min-height:84px!important;padding:13px!important}
  .app-shell .bottom-nav{position:fixed!important;inset:auto 10px calc(10px + env(safe-area-inset-bottom))!important;width:calc(100% - 20px)!important;height:66px!important;min-height:66px!important;display:flex!important;padding:5px!important;gap:3px;background:#fffffff2!important;border:1px solid #dce5db!important;border-radius:20px!important;backdrop-filter:blur(22px);box-shadow:0 14px 36px #18392f17!important;z-index:60!important}
  .app-shell .bottom-nav button{display:flex!important;flex:1!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;height:54px!important;min-height:54px!important;margin:0!important;padding:4px!important;gap:5px!important;border-radius:14px!important;background:transparent!important;color:#596f61!important;font-size:9px!important;font-weight:550!important}
  .app-shell .bottom-nav button.active{background:#e7f0df!important;color:#27634d!important;box-shadow:inset 0 1px #ffffff!important}.app-shell .bottom-nav button i{display:grid!important;place-items:center;font-size:inherit!important}.app-shell .bottom-nav .ui-icon{width:20px;height:20px!important}.app-shell .bottom-nav button span{font-size:9px!important}
  .toast{bottom:calc(88px + env(safe-area-inset-bottom))!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.screen{animation:none!important}*,*::before,*::after{animation:none!important;transition:none!important}}
@media print{html,body,.app-shell{background:#fff!important;color:#000!important}.screen{animation:none!important}.topbar,.bottom-nav{display:none!important}}
/* Keep dashboard surfaces coherent across legacy mobile selectors. */
.app-shell .home-screen .home-commandbar .search{border-color:var(--fx-line)!important}
.app-shell .home-screen .category-section-heading{display:flex!important;align-items:center;justify-content:space-between;gap:12px}
.app-shell .home-screen .recent-list:not(.is-empty){background:transparent!important;border:0!important;box-shadow:none!important}
.app-shell .home-screen .recent-section{border-top:0!important}
@media(max-width:759px){.home-screen .recent-row .quick-print{width:auto!important;min-width:74px!important;white-space:nowrap}.home-screen .recent-row .quick-print .ui-icon{width:16px;height:16px}.app-shell .home-screen .recent-row .row-copy small:before{display:none!important}}

.app-shell .topbar .icon-btn{display:inline-flex!important;align-items:center;justify-content:center;width:42px;height:42px;min-height:42px;background:#ffffff!important;border:1px solid var(--fx-line)!important;color:var(--fx-muted)!important;box-shadow:none!important;font-size:inherit!important}
.app-shell .topbar .icon-btn:hover{background:#edf3e9!important;color:var(--fx-accent)!important;border-color:#b9ccbb!important}
.app-shell .print-workspace .print-back,.app-shell .category-heading .category-back{display:none!important}
.app-shell .home-screen .category-section-heading>button{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}

.home-screen .category-card:focus-visible{outline-color:var(--fx-accent)!important}
