:root{color-scheme:dark;--bg:#0b0c10;--card:#13151b;--card2:#181a22;--line:rgba(255,255,255,.085);--text:#f4f3f1;--muted:#888a97;--accent:#d4b7a9;--rose:#a47b7c;--red:#f4aaaa;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{background:radial-gradient(ellipse 46% 42% at 4% 0%,#32232b70,transparent 75%),radial-gradient(ellipse 50% 50% at 94% 80%,#1b223450,transparent 77%),#0b0c10}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}h1,h2,p{margin:0}.hidden{display:none!important}.app{max-width:1410px;margin:auto;padding:24px clamp(16px,3vw,42px) 18px}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.brand{display:flex;align-items:center;gap:13px}.brand-mark{display:grid;place-items:center;width:47px;height:47px;border:1px solid #d4b7a94a;border-radius:16px;color:var(--accent);font-size:31px;background:#d4b7a90b}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:var(--accent)}.brand h1{font-size:clamp(18px,2vw,24px);font-weight:670;letter-spacing:-.9px;margin-top:5px}.h1-dot{color:var(--accent)}.top-actions{display:flex;align-items:center;gap:9px}.sync-pill{white-space:nowrap;border:1px solid var(--line);border-radius:20px;padding:9px 12px;font-size:11px;color:#b6b6bf}.sync-pill.online{color:#a5c7b1}.sync-pill.offline{color:#e0b3a3}.icon-button{height:41px;width:41px;background:#ffffff08;border:1px solid var(--line);color:#e8e8ec;border-radius:13px;display:grid;place-items:center}.icon-button svg,.search-wrap svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.shell{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,.8fr);align-items:stretch;gap:18px}.workspace,.side-panel{min-width:0;border:1px solid var(--line);border-radius:25px;background:linear-gradient(140deg,#1d1c24b8,#0c0e13df 70%);box-shadow:0 18px 70px #0005;backdrop-filter:blur(24px);padding:21px}.workspace{display:flex;flex-direction:column;min-height:600px}.segment{display:grid;grid-template-columns:1fr 1fr;gap:5px;border:1px solid var(--line);border-radius:14px;background:#080a0d;padding:4px;margin-bottom:17px}.segment-btn{border:0;border-radius:10px;background:none;color:#92939c;padding:11px;font-size:13px;font-weight:650}.segment-btn.active{background:#29262b;color:#f6f1ef;box-shadow:0 2px 10px #0006}.total-card{padding:19px 21px 17px;background:linear-gradient(115deg,#29232a,#19191f 60%,#28202a);border:1px solid #d4b7a92a;border-radius:19px;margin-bottom:23px}.total-top,.total-meta{display:flex;align-items:center;justify-content:space-between}.card-label{font-size:10px;letter-spacing:1.9px;color:#d4b7a9;font-weight:750}.currency-label{font-size:11px;border:1px solid #ffffff20;border-radius:6px;padding:4px 8px;color:#c7c0c1}.amount-row{display:flex;align-items:baseline;gap:10px;margin:8px 0 14px}.amount-row strong{font-variant-numeric:tabular-nums;font-size:clamp(38px,5vw,64px);font-weight:680;letter-spacing:-2.7px;overflow-wrap:anywhere}.amount-currency{font-size:14px;color:#a39ca1}.total-meta{border-top:1px solid #ffffff17;padding-top:12px;color:#a7a1a7;font-size:12px}.text-action{border:0;background:none;color:#e6c5b7;font-size:12px}.mode-view{display:flex;flex-direction:column;flex:1;min-height:0}.browse-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-head h2,.side-header h2{font-size:17px;letter-spacing:-.3px;font-weight:660}.section-head p{font-size:12px;color:var(--muted);margin-top:4px}.search-wrap{display:flex;align-items:center;gap:6px;max-width:178px;border-radius:11px;background:#080a0d96;border:1px solid var(--line);padding:0 10px;color:#777b88}.search-wrap svg{width:15px;height:15px;flex-shrink:0}.search-wrap input{border:0;background:none;outline:0;color:white;width:100%;min-width:0;padding:10px 0;font-size:13px}.tabs{display:flex;gap:7px;margin-bottom:17px;overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab{border-radius:21px;padding:9px 15px;border:1px solid var(--line);background:#ffffff07;color:#a9a7af;white-space:nowrap;font-size:12px;font-weight:620}.tab.active{background:#d5b8aa;color:#211b1b;border-color:transparent}.flower-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;align-content:start;overflow-y:auto;max-height:min(44vh,480px);padding:1px 4px 10px 1px;scrollbar-width:thin;scrollbar-color:#56505b transparent}.flower-card{position:relative;border:1px solid var(--line);background:#ffffff07;border-radius:15px;padding:9px 9px 12px;min-width:0;color:white;text-align:left;transition:background .16s,border-color .16s,transform .12s;user-select:none;touch-action:pan-y}.flower-card:hover{background:#ffffff0e;border-color:#c8a9aa55}.flower-card:active{transform:scale(.97)}.flower-card.selected{border-color:#d4b7a967}.photo-box{aspect-ratio:1.25;background:#08090c;border-radius:10px;margin-bottom:9px;overflow:hidden;display:grid;place-items:center}.photo-box img{width:100%;height:100%;object-fit:contain}.photo-placeholder{font-size:29px;color:#bd9e97}.flower-card .name{font-size:12px;line-height:1.4;font-weight:650;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.flower-card .price{font-size:11px;color:#bda79f;margin-top:4px;font-weight:600}.qty-badge{position:absolute;z-index:1;top:5px;right:5px;min-width:23px;height:23px;padding:3px 5px;display:grid;place-items:center;border-radius:9px;background:#e0c4b6;color:#211a1b;font-size:11px;font-weight:800}.bottom-action{display:flex;gap:8px;margin-top:auto;padding-top:15px}.outline-btn{border:1px solid #ffffff20;border-radius:11px;background:#ffffff09;color:#dedde1;padding:12px 14px;font-size:12px;font-weight:650}.bottom-action>*{flex:1}.danger{color:#eeb6b6}.side-panel{display:flex;flex-direction:column;min-height:600px;padding:22px 20px}.side-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:19px}.side-header h2{margin-top:6px;font-size:19px}.count-bubble{background:#d4b7a924;border:1px solid #d4b7a948;color:#d7b7a9;border-radius:10px;padding:5px 10px;font-size:12px;font-weight:700}.selected-list{flex:1;overflow:auto;min-height:180px;max-height:470px;padding:13px 1px}.empty-selection{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:255px}.empty-flower{font-size:44px;color:#b79c95;margin-bottom:12px}.empty-selection strong{font-size:13px;color:#eee}.empty-selection p{color:#8d8c96;font-size:12px;max-width:210px;line-height:1.6;margin-top:9px}.selected-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #ffffff0d}.mini-photo{height:42px;width:42px;border-radius:9px;background:#0b0b0e;display:grid;place-items:center;color:var(--accent)}.mini-photo img{height:100%;width:100%;object-fit:contain}.selected-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-price{font-size:11px;color:#9f9aa3;margin-top:4px}.qty-controls{display:flex;align-items:center;gap:9px}.qty-controls button{border:1px solid var(--line);background:#ffffff0b;color:white;height:25px;width:25px;border-radius:7px}.qty-controls span{font-size:12px;min-width:12px;text-align:center}.summary-footer{border-top:1px solid var(--line);padding-top:16px}.adjust-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.adjust-row label{font-size:12px;color:#b1aeb6}.adjust-row label span{font-size:10px;color:#827c84}.adjust-row input{width:100px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#060708a0;color:#fff;text-align:right}.footer-total{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.footer-total span{font-size:12px;color:#aaa6af}.footer-total strong{font-size:21px;letter-spacing:-.4px;font-variant-numeric:tabular-nums}.primary-btn{border:0;border-radius:12px;background:linear-gradient(120deg,#e1c5b6,#cba6a2);color:#241c21;padding:14px 16px;font-size:13px;font-weight:800}.summary-footer .primary-btn{width:100%}.hint{text-align:center;color:#7e7c85;font-size:10px;margin-top:10px}.footer{display:flex;justify-content:space-between;color:#797680;font-size:11px;padding:16px 7px 0}.calc-note{color:#aaa0a9;font-size:12px;text-align:center;margin-bottom:12px}.calc-expression{background:#080a0d;border:1px solid var(--line);padding:14px;border-radius:12px;text-align:right;min-height:52px;margin-bottom:12px;overflow-wrap:anywhere;color:#e5d1ca}.keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;flex:1}.key{border-radius:12px;border:1px solid var(--line);color:#f2f0f0;background:#ffffff09;font-size:19px;font-weight:600;min-height:55px}.key.op{background:#bf9e9a17;color:#e8c7b9}.key.equal{background:#d9bdb1;color:#292023}.calc-reset{margin-top:10px}.dialog{position:fixed;inset:0;margin:auto;width:min(94vw,540px);max-height:min(87dvh,750px);padding:22px;border:1px solid #ffffff25;border-radius:22px;background:#191a21;color:var(--text);box-shadow:0 30px 100px #000b}.dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:16px}.dialog-head h2{font-size:22px;letter-spacing:-.5px;margin-top:6px}.close-btn{border:1px solid var(--line);background:#ffffff0c;color:white;border-radius:9px;width:35px;height:35px}.dialog-scroll{max-height:57vh;overflow-y:auto}.dialog-footer{padding-top:15px}.history-entry{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:9px;background:#ffffff06}.history-entry .history-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:6px}.history-header strong{font-size:17px}.history-header time{font-size:11px;color:var(--muted)}.history-items{font-size:12px;line-height:1.7;color:#c1b8be}.history-actions{display:flex;gap:8px;margin-top:9px}.history-actions button{background:none;border:0;padding:3px 0;color:#d8b7a6;font-size:12px}.pin-step p{line-height:1.6;color:#b7b2ba;font-size:13px;margin-bottom:15px}.field-label{display:block;font-size:12px;color:#d8d1d6;font-weight:650;margin:14px 0 8px}.dialog input:not([type=file]),.dialog select{width:100%;padding:12px 13px;color:#fff;background:#0b0c11;border:1px solid #ffffff25;border-radius:10px}.dialog input[type=file]{width:100%;font-size:12px;color:#aaa}.pin-step .primary-btn{width:100%;margin-top:16px}.error{font-size:12px;color:#ffaaaa;margin-top:10px}.manager-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#a9a3ac;margin-bottom:11px}.small-btn{padding:10px 13px}.manager-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:9px 0}.manager-row .manager-name{font-size:13px;font-weight:650}.manager-row .manager-sub{font-size:11px;color:#aaa;margin-top:4px}.manager-row button{border:1px solid var(--line);background:#ffffff08;color:white;padding:8px 13px;border-radius:9px;font-size:12px}.full-btn{width:100%;margin-top:15px}.form-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-preview{margin-top:12px;display:grid;place-items:center;min-height:82px;max-height:150px;border:1px dashed #ffffff2a;border-radius:12px;color:#85808b;font-size:12px;overflow:hidden}.photo-preview img{max-width:100%;max-height:140px;object-fit:contain}.muted-small{font-size:11px;color:#88818c;margin-top:8px}.form-actions{display:flex;gap:9px;margin-top:18px}.form-actions>*{flex:1}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,25px);padding:12px 18px;background:#e0c6bb;color:#20191f;font-size:12px;font-weight:700;box-shadow:0 10px 45px #0007;border-radius:13px;opacity:0;pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:980px){.shell{grid-template-columns:minmax(0,1.4fr) minmax(265px,.8fr)}.flower-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace,.side-panel{padding:16px}}@media(max-width:690px){.app{padding:12px 10px 16px}.top{margin-bottom:12px}.brand-mark{height:38px;width:38px;border-radius:12px;font-size:25px}.brand{gap:8px}.brand .eyebrow{font-size:8px;letter-spacing:1.6px}.brand h1{font-size:17px}.top-actions{gap:5px}.sync-pill{font-size:0;padding:7px;height:30px;width:30px;display:grid;place-items:center}.sync-pill::first-letter{font-size:12px}.icon-button{width:35px;height:35px;border-radius:10px}.shell{grid-template-columns:minmax(0,1fr);gap:10px}.workspace,.side-panel{border-radius:18px;padding:13px;min-height:unset}.segment{margin-bottom:11px}.segment-btn{padding:9px}.total-card{padding:14px;margin-bottom:15px}.amount-row{margin:4px 0 8px}.amount-row strong{font-size:40px}.browse-row{align-items:end;margin-bottom:10px}.section-head h2{font-size:15px}.section-head p{font-size:10px}.search-wrap{max-width:130px}.search-wrap input{font-size:12px}.tabs{margin-bottom:11px}.tab{padding:8px 12px;font-size:11px}.flower-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:41dvh}.flower-card{padding:6px 6px 9px;border-radius:12px}.flower-card .name{font-size:11px}.flower-card .price{font-size:10px}.bottom-action{padding-top:9px}.side-panel{min-height:0}.side-header{padding-bottom:10px}.side-header h2{font-size:16px}.selected-list{min-height:0;max-height:220px;padding:4px 0}.empty-selection{min-height:100px}.empty-flower{display:none}.empty-selection p{font-size:11px}.summary-footer{padding-top:12px}.hint{margin-top:6px}.footer{padding:10px 3px 0}.keypad{min-height:335px}.dialog{padding:16px;max-height:90dvh}}@media(max-width:360px){.flower-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand h1{font-size:15px}.amount-row strong{font-size:34px}.section-head p{display:none}}
.no-results{grid-column:1/-1;text-align:center;padding:30px;color:#aaa;font-size:13px}
@media(max-width:690px){.shell{gap:0}.workspace{border-bottom-left-radius:0;border-bottom-right-radius:0}.side-panel{border-top-left-radius:0;border-top-right-radius:0;border-top:0}.side-header{padding-bottom:8px}.selected-list{max-height:155px}.photo-box{aspect-ratio:1.4}.flower-grid{max-height:43dvh}.bottom-action{margin-top:0}}
@media(min-width:691px){.flower-grid{max-height:min(53vh,580px)}}

/* v2: phone-first single-screen market layout */
.mobile-bouquet-bar,.mobile-drawer-close,.drawer-backdrop{display:none}
.side-header-actions{display:flex;align-items:center;gap:9px}
@media(max-width:690px){
 html,body{height:100%;overflow:hidden}
 body{height:100dvh}
 .app{height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding:calc(env(safe-area-inset-top) + 7px) 8px calc(env(safe-area-inset-bottom) + 7px)}
 .top{flex-shrink:0;margin-bottom:7px}
 .shell{flex:1;display:flex;flex-direction:column;min-height:0;gap:0;overflow:hidden}
 .workspace{flex:1;min-height:0;padding:9px;overflow:hidden;border-radius:15px;display:flex;flex-direction:column}
 .segment{flex-shrink:0;margin-bottom:7px}.segment-btn{padding:7px}
 .total-card{flex-shrink:0;padding:9px 12px;margin-bottom:8px;border-radius:13px}
 .total-top .card-label{font-size:9px}.currency-label{padding:2px 6px}
 .amount-row{margin:2px 0 4px}.amount-row strong{font-size:clamp(28px,8vw,38px);letter-spacing:-1.4px}
 .total-meta{padding-top:6px;font-size:10px}
 .mode-view{flex:1;min-height:0;overflow:hidden}
 .browse-row{flex-shrink:0;margin-bottom:6px}.section-head h2{font-size:13px}.section-head p{display:none}
 .search-wrap input{padding:7px 0}.tabs{flex-shrink:0;margin-bottom:7px}.tab{padding:7px 10px}
 .flower-grid{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding-bottom:6px}
 .flower-card{padding:5px 5px 7px}.photo-box{aspect-ratio:1.4;margin-bottom:4px}.flower-card .name{font-size:10px}.flower-card .price{font-size:10px;margin-top:2px}
 .bottom-action{flex-shrink:0;padding-top:7px}.bottom-action .outline-btn{padding:9px}
 .mobile-bouquet-bar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;margin-top:7px;border:1px solid #d4b7a94b;border-radius:13px;padding:9px 13px;background:linear-gradient(120deg,#30252c,#211e26);color:#f4eeee}
 .mobile-bouquet-bar>span:first-child{display:flex;flex-direction:column;gap:2px}
 .mobile-bouquet-bar strong{font-size:17px;font-variant-numeric:tabular-nums}
 .mobile-bouquet-bar small{font-size:10px;color:#baaeb4}
 .view-bouquet-text{font-size:12px;font-weight:650;color:#e8c7b9}.view-bouquet-text span{font-size:17px;margin-left:5px}
 .drawer-backdrop{display:block;position:fixed;inset:0;background:#000a;opacity:0;pointer-events:none;transition:opacity .2s;z-index:50}
 .drawer-backdrop.visible{opacity:1;pointer-events:auto}
 .side-panel{position:fixed;inset:auto 0 0;z-index:51;display:flex;flex-direction:column;max-height:82dvh;height:min(75dvh,660px);min-height:0;border-radius:22px 22px 0 0!important;border:1px solid #ffffff26!important;background:#191821;transform:translateY(110%);transition:transform .25s ease;box-shadow:0 -20px 80px #0009;padding:18px 17px calc(env(safe-area-inset-bottom) + 16px);overflow:hidden}
 .side-panel.open{transform:translateY(0)}
 .mobile-drawer-close{display:block}.selected-list{flex:1;min-height:0;max-height:none;overflow-y:auto;padding:9px 0}.empty-selection{min-height:110px}
 .summary-footer{flex-shrink:0}.adjust-row{margin-bottom:10px}.footer-total{margin-bottom:10px}.hint{display:none}
 .footer{display:none}
 .calc-note{margin-bottom:5px;font-size:10px}.calc-expression{min-height:36px;margin-bottom:7px;padding:9px}
 .keypad{min-height:0;flex:1;gap:6px}.key{min-height:0;font-size:19px}.calc-reset{margin-top:7px;padding:8px}
}
@media(max-width:360px){.flower-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-height:670px) and (max-width:690px){
 .brand-mark{height:32px;width:32px;font-size:20px}.brand h1{font-size:15px}.brand .eyebrow{font-size:7px}
 .top{margin-bottom:4px}.icon-button{width:32px;height:32px}
 .workspace{padding:7px}.total-card{margin-bottom:5px;padding:7px 10px}.amount-row strong{font-size:29px}
 .segment{margin-bottom:5px}.segment-btn{padding:6px}.tabs{margin-bottom:5px}.tab{padding:5px 8px}
 .flower-card .name{font-size:9px}.photo-box{margin-bottom:3px}
 .mobile-bouquet-bar{padding:7px 10px;margin-top:4px}.mobile-bouquet-bar strong{font-size:15px}
}

/* Version 4.2: catalogue editor search */
.manager-search{display:flex;align-items:center;gap:9px;padding:0 12px;margin-bottom:12px;background:#0b0c11;border:1px solid #ffffff25;border-radius:11px}.manager-search:focus-within{border-color:#d4b7a9}.manager-search svg{width:17px;height:17px;flex:none;fill:none;stroke:#b9a5a8;stroke-width:1.8;stroke-linecap:round}.dialog .manager-search input[type=search]{background:transparent;border:0;outline:none;box-shadow:none;width:100%;min-width:0;padding:12px 0;color:#fff;font-size:13px}.manager-empty{color:#aaa1ad;text-align:center;padding:24px 10px;font-size:13px}
