
:root{--ink:#263c49;--muted:#68747b;--paper:#faf8f3;--pink:#f2cedd;--teal:#177a79;--yellow:#f6ce54;--line:#e5e5de;--red:#b54142;--radius:22px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:ui-rounded,'Avenir Next',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #d8841e;outline-offset:3px}a{color:var(--teal)}h1,h2,h3,p{margin-top:0}h1{font-size:36px;letter-spacing:-1.3px;line-height:1.2;margin-bottom:10px}h2{font-size:23px;letter-spacing:-.6px}h3{font-size:18px;margin-bottom:8px}.muted{color:var(--muted)}.small{font-size:14px}.eyebrow{font-size:13px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100dvh}.sidebar{padding:30px 20px;position:sticky;top:0;height:100dvh;border-right:1px solid var(--line);background:#fffdf8;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px}.brand img{width:64px;height:64px;object-fit:cover;border-radius:18px}.brand strong{display:block;font-size:20px;letter-spacing:-.8px}.brand span{font-size:12px;color:var(--muted)}nav{display:flex;gap:8px;flex-direction:column;margin-top:45px}.navbtn{border:0;background:none;color:var(--muted);border-radius:14px;text-align:left;padding:14px 16px;display:flex;gap:13px;align-items:center;font-weight:650}.navbtn.active{background:var(--pink);color:var(--ink)}.ico{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.side-note{margin-top:auto;border-radius:18px;padding:18px;background:#f0f1df;font-size:14px}.side-note b{display:block;margin-bottom:6px}.main{max-width:1300px;width:100%;margin:0 auto;padding:30px 46px 60px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:40px;gap:12px}.topbar .date{font-size:14px;color:var(--muted)}.account{display:flex;gap:10px;align-items:center}.avatar{background:#e9dce7;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:750}.plain{background:none;border:0;color:var(--muted);padding:9px;display:inline-flex;align-items:center;gap:6px}.heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.heading p{margin:0}.btn{border:0;border-radius:13px;min-height:48px;padding:12px 20px;background:var(--teal);color:white;font-weight:700;display:inline-flex;justify-content:center;align-items:center;gap:8px;text-decoration:none;white-space:nowrap}.btn.secondary{background:#f2f3ee;color:var(--ink);border:1px solid var(--line)}.btn.pink{background:var(--pink);color:var(--ink)}.btn.smallbtn{padding:8px 12px;min-height:42px;font-size:14px}.welcome{display:grid;grid-template-columns:1fr 200px;border-radius:26px;overflow:hidden;background:var(--pink);margin-bottom:28px;min-height:180px}.welcome-copy{padding:28px 32px}.welcome h2{font-size:28px;margin:8px 0}.welcome p{max-width:530px;margin:0}.welcome-art{position:relative;background:#f8de78;display:flex;align-items:center;justify-content:center;overflow:hidden}.welcome-art img{width:200px;height:200px;object-fit:cover;transform:rotate(8deg);mix-blend-mode:multiply}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.metric{padding:22px;background:white;border:1px solid var(--line);border-radius:var(--radius)}.metric .label{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}.metric strong{display:block;font-size:29px;letter-spacing:-1px;margin:10px 0 4px}.metric small{font-size:13px;color:var(--muted)}.metric.teal{background:#e8f2ee;border-color:#d8e9df}.metric.yellow{background:#fbf0c9;border-color:#eee2af}.columns{display:grid;grid-template-columns:1.3fr 1fr;gap:24px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:24px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:10px}.panel-head h2{margin:0;font-size:20px}.quickgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick{border:1px solid var(--line);background:#fffdf9;border-radius:15px;padding:18px;text-align:left;color:var(--ink);display:flex;align-items:center;gap:12px}.quick .symbol{display:grid;place-items:center;background:#e5f1ed;border-radius:12px;width:42px;height:42px;color:var(--teal)}.quick:nth-child(2) .symbol{background:#fae6ee;color:#934765}.quick:nth-child(3) .symbol{background:#faf0c8;color:#8b6b12}.quick small{display:block;color:var(--muted);margin-top:3px}.empty{text-align:center;padding:32px 16px;color:var(--muted)}.empty .ico{width:38px;height:38px;margin-bottom:12px;color:var(--teal)}.empty h3{color:var(--ink)}.empty p{max-width:380px;margin:0 auto 16px;font-size:14px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.toolbar input{flex:1;min-width:180px}.toolbar select{width:auto;max-width:100%}input,select,textarea{width:100%;padding:12px 14px;min-height:48px;border:1px solid #ccd3d2;border-radius:12px;background:white;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #177a7918}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23263c49' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:36px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product{border:1px solid var(--line);background:white;border-radius:20px;overflow:hidden}.product-photo{height:190px;background:#f0ede3;position:relative;display:grid;place-items:center}.product-photo img{width:100%;height:100%;object-fit:cover}.product-photo>.ico{width:50px;height:50px;color:#b5b9ab}.badge{display:inline-block;font-size:12px;font-weight:750;border-radius:8px;background:#edf2eb;color:#3f6244;padding:4px 8px}.product-photo .badge{position:absolute;top:12px;left:12px;background:#fffaf0}.badge.warn{background:#fcf0cb;color:#7d5a05}.product-body{padding:18px}.product h3{margin:6px 0}.product .prices{display:flex;justify-content:space-between;align-items:end;margin:15px 0}.prices strong{font-size:20px}.split{display:flex;justify-content:space-between;gap:10px}.stockline{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px}.store-list{display:grid;grid-template-columns:1fr 1fr;gap:20px}.store-card{background:white;border:1px solid var(--line);border-radius:22px;padding:24px}.store-icon{width:48px;height:48px;display:grid;place-items:center;background:#fae7ee;border-radius:15px;margin-bottom:16px}.store-numbers{display:flex;justify-content:space-between;margin:20px 0}.store-numbers strong{display:block;font-size:24px}.store-numbers span{font-size:14px;color:var(--muted)}.event{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:16px 0}.event:last-child{border:0}.event-icon{background:#eef3eb;color:var(--teal);width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}.event-main{flex:1;min-width:0}.event-main strong{display:block}.event-main small{color:var(--muted);font-size:13px}.event-amount{text-align:right;white-space:nowrap;font-weight:700}.notice{padding:14px 18px;background:#fff3d6;border-radius:13px;color:#74551b;font-size:14px;margin-bottom:18px}.reportrow{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.reportrow.total{font-weight:800;font-size:20px;border-bottom:none}.positive{color:var(--teal)}.negative{color:var(--red)}.loading{padding:60px;text-align:center}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.auth-art{background:var(--pink);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:50px;text-align:center}.auth-art img{width:min(390px,90%);mix-blend-mode:multiply;border-radius:25px}.auth-art h1{margin-top:25px}.auth-art p{max-width:400px}.auth-form{display:flex;align-items:center;justify-content:center;padding:30px}.auth-box{width:100%;max-width:400px}.auth-box h2{font-size:32px;margin:12px 0}.auth-box .btn{width:100%;margin-top:10px}.auth-box .brand{margin-bottom:35px}.field{display:block;margin-bottom:18px;font-size:14px;font-weight:650}.field input,.field select,.field textarea{margin-top:7px;font-weight:400}.field small{display:block;font-weight:400;color:var(--muted);margin-top:5px}.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.error{color:#9c2b35;background:#fde9e9;border-radius:10px;padding:12px;font-size:14px}.error:empty{display:none}dialog{border:1px solid var(--line);border-radius:24px;padding:0;width:620px;max-width:calc(100% - 24px);max-height:90dvh;color:var(--ink);box-shadow:0 24px 100px #16333133}dialog::backdrop{background:#12262f66;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:23px 26px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.dialog-head h2{margin:0}.dialog-content{padding:24px 26px}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.line-item{background:#f6f7f1;border-radius:14px;padding:14px;margin-bottom:12px}.line-top{display:flex;gap:8px}.line-top select{flex:1;min-width:0}.line-item .row2{margin-top:10px}.line-item .field{margin-bottom:0}.check{display:flex;align-items:center;gap:10px;font-size:14px;margin-bottom:18px}.check input{width:20px;min-height:20px}.upload-preview{height:75px;width:75px;object-fit:cover;border-radius:10px;margin:8px 0}.bottom-nav{display:none}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:14px;padding:14px 22px;z-index:10;max-width:90%;box-shadow:0 5px 20px #0002}#toast:empty{display:none}.month{max-width:175px}.mobile-brand{display:none}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line)}th{color:var(--muted)}
@media(min-width:1500px){.main{padding-top:40px}}
@media(max-width:1100px){.shell{grid-template-columns:200px 1fr}.sidebar{padding:25px 14px}.main{padding:25px}.metrics{grid-template-columns:1fr 1fr}.product-grid{grid-template-columns:1fr 1fr}.columns{grid-template-columns:1fr}.brand img{width:48px;height:48px}.brand strong{font-size:18px}}
@media(max-width:700px){.shell{display:block}.sidebar{display:none}.main{padding:18px 18px 110px}.mobile-brand{display:flex}.mobile-brand img{width:43px;height:43px;border-radius:12px}.mobile-brand strong{font-size:18px}.mobile-brand span{font-size:11px}.topbar{margin-bottom:26px}.topbar>.date{display:none}.account-name{display:none}.heading{align-items:start;margin-bottom:20px}.heading h1{font-size:29px;letter-spacing:-1px}.heading p{font-size:14px}.heading>.btn{padding:10px 13px;font-size:14px;min-height:44px}.welcome{grid-template-columns:1fr 95px;min-height:165px;border-radius:20px;margin-bottom:18px}.welcome-copy{padding:20px}.welcome h2{font-size:23px}.welcome p{font-size:14px}.welcome .eyebrow{font-size:11px}.welcome-art img{width:165px;height:165px;max-width:none}.metrics{gap:10px;margin-bottom:20px}.metric{padding:16px;border-radius:17px}.metric strong{font-size:25px}.metric .label{font-size:13px;gap:6px}.metric small{font-size:12px}.metric .ico{width:17px;height:17px}.panel{padding:18px;border-radius:18px;margin-bottom:18px}.columns{gap:0}.panel-head h2{font-size:18px}.quickgrid{gap:9px}.quick{padding:13px 10px;gap:8px;font-size:14px}.quick .symbol{width:32px;height:36px;flex-shrink:0}.quick small{font-size:12px}.product-grid{gap:12px}.product-photo{height:150px}.product-body{padding:12px}.product h3{font-size:16px}.product .prices{display:block;margin:10px 0}.prices strong{font-size:18px}.prices .muted{font-size:12px}.product .btn{min-height:40px;padding:8px;font-size:13px}.stockline{font-size:12px}.store-list{grid-template-columns:1fr}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;background:#fffdf9ee;backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:8px 4px calc(8px + env(safe-area-inset-bottom));z-index:4}.bottom-nav .navbtn{flex-direction:column;gap:4px;padding:8px 10px;font-size:11px;min-width:58px;border-radius:12px}.bottom-nav .ico{width:22px;height:22px}#toast{bottom:95px}.auth{display:block}.auth-art{display:none}.auth-form{min-height:100dvh;padding:28px;background:linear-gradient(160deg,#f8dfeb 0%,#faf8f3 55%)}.auth-box .brand img{width:75px;height:75px}.auth-box .brand strong{font-size:24px}.auth-box h2{font-size:30px}.dialog-head{padding:18px}.dialog-head h2{font-size:22px}.dialog-content{padding:18px}dialog{max-height:94dvh;border-radius:20px}.toolbar{gap:8px}.toolbar input{min-width:130px}.event-main strong{font-size:14px}.event-main small{font-size:12px}.event-amount{font-size:14px}.event-icon{width:34px;height:36px}.month{max-width:150px;padding:9px;font-size:14px}.heading.report-heading{flex-wrap:wrap}}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-weekday{text-align:center;font-size:13px;color:var(--muted);padding:8px}.calendar-cell{background:#fafaf5;border:1px solid var(--line);border-radius:10px;min-height:100px;padding:10px;text-align:left;color:var(--ink);display:flex;flex-direction:column;gap:5px;overflow:hidden}.calendar-cell.blank{background:none;border:0}.calendar-cell.today{border:2px solid var(--teal)}.calendar-cell.has-event{background:#fae4ed}.calendar-cell span{font-size:12px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.calendar-cell b{font-size:14px}.calendar-event{border:0;background:none;width:100%;display:flex;gap:14px;text-align:left;align-items:center;padding:15px 0;color:var(--ink);border-bottom:1px solid var(--line)}.calendar-event:last-child{border-bottom:0}.calendar-event>span:last-child{min-width:0}.calendar-event small{display:block;color:var(--muted);font-size:13px;margin-top:4px}.calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fbf0c9;border-radius:12px;min-width:48px;min-height:56px;font-weight:800;font-size:22px}.calendar-day small{font-size:11px;margin:0;text-transform:uppercase}@media(max-width:700px){.calendar-grid{gap:3px}.calendar-cell{min-height:66px;padding:6px;border-radius:8px}.calendar-cell span{font-size:10px}.calendar-weekday{font-size:12px;padding:5px 0}.calendar-cell.has-event:after{content:'';width:5px;height:5px;background:#a43f65;border-radius:50%;margin-top:auto}}
.avatar{overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.profile-heading{display:flex;align-items:center;gap:14px;margin:20px 0}.profile-heading .avatar{width:60px;height:60px;font-size:24px}.profile-preview{display:flex;justify-content:center;margin:15px 0 25px}.profile-preview .avatar{width:100px;height:100px;font-size:36px}.team-heading{margin-top:32px}.temporary-password{font-family:monospace;font-size:28px;letter-spacing:3px;background:#faedc6;padding:18px;text-align:center;border-radius:14px;margin:24px 0;user-select:all}.forced{min-height:100dvh;background:#faf1f4}
.status-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:#516e7e;font-variant-numeric:tabular-nums}.status-strip a{color:inherit;text-decoration:none}.status-divider{color:#b5c4cb}.topbar{flex-wrap:wrap}@media(max-width:700px){.status-strip{order:-1;flex-basis:100%;font-size:11px;gap:6px;margin-bottom:5px}.status-strip a{font-size:11px}.status-strip #live-clock{white-space:nowrap}.topbar{row-gap:9px}.status-divider{display:none}}

/* Full-width top strip, separated from the account header. */
.topbar{position:relative;padding-top:45px;margin-top:-30px;min-height:95px}
.status-strip{position:absolute;top:0;left:-46px;right:-46px;min-height:36px;padding:9px 46px;justify-content:flex-end;flex-wrap:wrap;background:#fffdf9;border-bottom:1px solid #dce2df;margin:0;gap:10px}
@media(min-width:1500px){.topbar{margin-top:-40px}}
@media(max-width:1100px){.topbar{margin-top:-25px}.status-strip{left:-25px;right:-25px;padding-left:25px;padding-right:25px}}
@media(max-width:700px){.topbar{margin-top:-18px;padding-top:66px;min-height:110px;row-gap:0}.status-strip{left:-18px;right:-18px;min-height:50px;padding:8px 18px;justify-content:flex-end;column-gap:6px;row-gap:2px;flex-basis:auto;order:initial}.status-strip #live-clock{font-size:11px}.status-strip a{font-size:11px}.status-divider{display:inline}}
.topbar .account{margin-left:auto}
/* Compact date and weather strip. */
.status-strip{min-height:26px;padding-top:4px;padding-bottom:4px;border-bottom:0.5px solid #e7e9e5}
.topbar{padding-top:35px;min-height:85px}
@media(max-width:700px){.status-strip{min-height:28px;padding-top:4px;padding-bottom:4px;row-gap:0}.topbar{padding-top:40px;min-height:84px}}
.sidebar-account{margin-top:auto;padding-top:18px;border-top:1px solid var(--line);display:flex;align-items:center;gap:3px}
.sidebar-profile{min-width:0;flex:1;padding:8px 0;text-align:left;gap:9px;color:var(--ink)}
.sidebar-profile>span:last-child{min-width:0}
.sidebar-profile strong{display:block;font-size:14px;white-space:normal;line-height:1.3}
.sidebar-profile small{display:block;font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.sidebar-logout{padding:8px 3px;flex-shrink:0}
.sidebar nav{margin-bottom:24px}
@media(min-width:701px){.topbar .account{display:none}.topbar{min-height:26px;padding-top:26px;margin-bottom:30px}.sidebar{overflow-y:auto}}
@media(max-width:700px){.sidebar-account{display:none}}
.inline-category{margin:-8px 0 22px;font-size:14px}.inline-category summary{cursor:pointer;color:var(--teal);padding:7px 0;font-weight:650}.category-create-row{display:flex;gap:8px;margin-top:8px}.category-create-row input{min-width:0;flex:1}.inline-category p{margin:6px 0 0}
.sidebar-brand{justify-content:center}.sidebar .sidebar-brand img{width:116px;height:116px;object-fit:contain;border-radius:18px}.sidebar-brand+nav{margin-top:25px}
@media(max-width:700px){.mobile-brand img{width:64px;height:64px;object-fit:contain;border-radius:14px}}

.status-strip{background:#fcf3f7}
.stock-values{margin-bottom:12px}.stock-values .metric{box-shadow:none}

@media(max-width:700px){.bottom-nav .navbtn{flex:1;min-width:0;padding:8px 2px;font-size:10px;white-space:nowrap}}

@media(max-width:700px){.mobile-brand{position:relative;width:min(200px,48vw);aspect-ratio:5.65;overflow:hidden;flex-shrink:0}.mobile-brand img{position:absolute;width:117.2%;height:auto;max-width:none;left:-8.6%;top:-269%;border-radius:0;object-fit:contain}}

@media(max-width:700px){.mobile-brand{width:auto;aspect-ratio:auto;overflow:visible;gap:3px}.mobile-wordmark{display:block;position:relative;width:min(180px,43vw);aspect-ratio:5.65;overflow:hidden}.mobile-brand .mobile-mascot{position:static;width:42px;height:48px;object-fit:contain;flex-shrink:0}.topbar{gap:6px}}

@media(max-width:700px){.mobile-brand .mobile-mascot{order:-1;width:54px;height:60px}.mobile-brand{gap:2px}.mobile-wordmark{width:min(180px,40vw)}}
