@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#202d27;--muted:#788079;--paper:#f5f6f2;--line:#e1e5dc;--green:#294f3c;--lime:#d5ed98}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #8baa58;outline-offset:3px}input,select,textarea{color:var(--ink);background:white;border:1px solid #d9dfd4;border-radius:8px;padding:12px;max-width:100%;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #294f3c12}label{display:block;font-size:12px;font-weight:600;margin:16px 0}label input,label select,label textarea{display:block;margin-top:7px}h1,h2,h3,h4{font-family:'Manrope',system-ui,sans-serif;margin:0;font-weight:700}h1{font-size:40px;letter-spacing:-1.8px}h2{font-size:27px;letter-spacing:-1px}h3{font-size:18px}h4{font-size:14px}.muted{color:var(--muted);line-height:1.6}.small{font-size:11px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;margin-bottom:12px}.primary,.secondary{display:inline-flex;gap:12px;align-items:center;justify-content:center;padding:12px 18px;border-radius:8px;font-weight:600;border:1px solid transparent}.primary{background:var(--green);color:#fff}.primary:hover{background:#1b392a}.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.secondary:hover{background:#f0f3eb}.wide{width:100%;justify-content:space-between}.text-button{border:0;background:transparent;color:var(--green);padding:8px 0}.icon{border:0;background:transparent;font-size:25px;padding:0 8px;color:var(--muted)}.error{color:#a13d32;font-size:12px;line-height:1.5}.error:empty{display:none}[hidden]{display:none!important}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:#172923;color:#f4f6ec;padding:9vw 8vw;position:relative;overflow:hidden}.login-brand:after{content:'';position:absolute;width:360px;height:360px;border:1px solid #ffffff12;transform:rotate(40deg);bottom:-140px;right:-70px;box-shadow:0 0 0 70px #ffffff03,0 0 0 140px #ffffff03}.mark{display:inline-flex;width:36px;height:36px;background:var(--lime);color:#172923;align-items:center;justify-content:center;font-size:25px;font-weight:800;border-radius:7px}.login-brand>p:first-of-type{font-size:11px;letter-spacing:2px;margin:28px 0 70px}.login-brand h1{font-size:clamp(36px,4.5vw,64px);line-height:1.1;letter-spacing:-2.5px}.login-brand>p{line-height:1.8;color:#b6c4ba}.brand-foot{font-size:9px;letter-spacing:2px;margin-top:100px;color:var(--lime)}.login-form{width:360px;max-width:100%;align-self:center;justify-self:center;padding:35px 20px}.login-form form{margin-top:28px}.login-form .small{margin-top:28px}aside{width:238px;background:#192c24;color:#c9d3ca;position:fixed;inset:0 auto 0 0;padding:32px 22px;display:flex;flex-direction:column}.logo{text-decoration:none;color:white;font:800 25px 'Manrope',sans-serif;display:grid;grid-template-columns:38px 1fr;column-gap:11px;line-height:1}.logo .mark{grid-row:span 2}.logo-sub{font:8px 'DM Sans',sans-serif;letter-spacing:2px;margin-top:5px}.nav-label{font-size:8px;letter-spacing:1.3px;color:#7f9788;margin:65px 0 15px}.nav{width:100%;background:#31483a;color:#e7f2dd;border:1px solid #476044;border-radius:7px;text-align:left;padding:13px;font-size:12px}.nav span{float:right;color:var(--lime)}.aside-bottom{margin-top:auto;font-size:10px;color:#a7bcac}.aside-bottom p{overflow-wrap:anywhere;font-size:11px;margin-top:22px}.aside-bottom button{color:#c8d9c5;font-size:11px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lime);margin-right:6px}main{margin-left:238px}header{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;font-size:11px;color:var(--muted)}.slash{margin:0 14px;color:#b9c1b4}.header-brand{font-size:9px;letter-spacing:1.5px}.workspace{padding:42px 44px;max-width:1600px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:32px}.page-heading p{font-size:12px;margin:8px 0}.accent{color:#759645}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:34px}.stat{background:#fff;border:1px solid var(--line);padding:21px;border-radius:9px}.stat:first-child{background:#eaf0df;border-color:#dbe5ca}.stat-label{font-size:11px;color:#717c6d;display:flex;justify-content:space-between}.stat-number{font:600 34px 'Manrope',sans-serif;margin:13px 0 3px;letter-spacing:-1px}.stat-foot{font-size:10px;color:#939b8d}.toolbar{display:flex;gap:10px;margin-bottom:25px;align-items:center}.search{display:flex;align-items:center;gap:8px;flex:1;margin:0;background:white;border:1px solid var(--line);border-radius:8px;padding-left:13px}.search span{font-size:23px;color:#6b7868}.search input{border:0;margin:0;box-shadow:none;background:transparent;font-size:12px}.toolbar select{width:175px;font-size:12px}.toolbar button{font-size:12px;white-space:nowrap}.list-head{display:flex;justify-content:space-between;color:#8a9383;font-size:9px;letter-spacing:1.4px;margin-bottom:12px}.order-card{width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:9px;padding:22px 23px;margin-bottom:12px;display:grid;grid-template-columns:1.4fr 1fr 1fr auto;align-items:center;gap:20px;color:var(--ink)}.order-card:hover{border-color:#a6b697;box-shadow:0 4px 16px #24351906}.order-name{font-weight:700;font-size:15px;margin-bottom:7px}.order-meta{font-size:11px;color:#8a9383}.badge{display:inline-block;font-size:10px;border-radius:5px;padding:6px 9px;background:#f0f1ec;color:#747c69;white-space:nowrap}.badge.s1{background:#fff1dc;color:#a57725}.badge.s2{background:#e4f0d9;color:#527435}.badge.s3{background:#e7eeeb;color:#3b6853}.progress{height:4px;border-radius:4px;background:#eff1e9;width:100%;margin-top:8px}.progress span{display:block;height:100%;border-radius:4px;background:#8caf5e}.money{font-size:14px;font-weight:600;margin-bottom:6px}.arrow{font-size:20px;color:#809371}.empty{background:white;border:1px dashed #d4deca;border-radius:10px;text-align:center;padding:65px 20px;color:#7c8875}.empty strong{display:block;font:600 20px 'Manrope',sans-serif;color:var(--ink);margin-bottom:9px}.empty .empty-icon{font-size:32px;margin-bottom:18px;color:#8ea479}footer{display:flex;justify-content:space-between;font-size:9px;color:#9aa291;padding-top:32px}dialog{border:1px solid var(--line);border-radius:14px;box-shadow:0 30px 100px #15291e30;padding:30px;max-width:620px;width:calc(100% - 32px);max-height:90dvh;color:var(--ink)}dialog::backdrop{background:#10221980;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading .eyebrow{font-size:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.product-heading{border-top:1px solid var(--line);padding-top:25px;margin:28px 0 18px}.product-heading .small{display:block;margin-top:6px}.product-row{border-bottom:1px solid var(--line);padding:15px 0;display:flex;align-items:center;gap:10px}.product-row .product-info{flex:1;min-width:0;overflow-wrap:anywhere}.product-row strong{display:block;font-size:13px;margin-bottom:7px}.product-row button{font-size:11px}.delete{color:#a85c4e}#product-form{background:var(--paper);padding:18px;border-radius:8px;margin-top:22px}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#223e2e;color:white;z-index:10;border-radius:8px;padding:13px 20px;box-shadow:0 8px 30px #0002;max-width:90%;display:none}#notice.show{display:block}@media(min-width:1600px){.workspace{padding-top:60px}}@media(max-width:1050px){aside{width:190px;padding:30px 18px}main{margin-left:190px}.workspace{padding:30px 24px}header{padding:0 24px}.stats{gap:8px}.stat{padding:16px}.order-card{grid-template-columns:1.4fr 1fr auto;gap:14px}.order-card .amount-col{display:none}}@media(max-width:720px){aside{position:static;width:auto;height:66px;flex-direction:row;align-items:center;padding:14px 20px}.logo{font-size:21px}.logo .mark{width:32px;height:32px;font-size:23px}.logo-sub{font-size:7px}.nav-label,.nav{display:none}.aside-bottom{margin:0 0 0 auto;font-size:0}.aside-bottom .dot,.aside-bottom p{display:none}.aside-bottom button{font-size:10px;margin:0}main{margin:0}header{height:48px;padding:0 20px;font-size:10px}.header-brand{font-size:7px}.workspace{padding:26px 20px}h1{font-size:32px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:22px}.page-heading .eyebrow{font-size:8px;letter-spacing:1px}.page-heading .primary{font-size:11px;padding:11px;white-space:nowrap;margin-top:23px}.page-heading p{font-size:11px;max-width:170px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:24px}.stat{padding:16px}.stat-number{font-size:29px;margin:8px 0 2px}.stat-label{font-size:10px}.toolbar{flex-wrap:wrap;gap:8px}.search{flex-basis:100%}.toolbar select{flex:1}.toolbar button{font-size:11px}.order-card{padding:18px 16px;grid-template-columns:1fr auto;gap:15px}.order-card .progress-col{grid-column:1 / -1;grid-row:2;display:flex;align-items:center;gap:10px}.order-card .progress{flex:1;margin:0}.order-card .arrow{display:none}.order-name{font-size:14px}dialog{padding:22px;max-height:93dvh}.product-row{flex-wrap:wrap}.product-row .product-info{flex-basis:65%}.form-grid{gap:10px}.login{grid-template-columns:1fr}.login-brand{padding:30px;min-height:245px}.login-brand>p:first-of-type{margin:15px 0 24px}.login-brand h1{font-size:37px}.login-brand>p:last-of-type,.brand-foot{display:none}.login-form{padding:35px 25px}.login-form h2{font-size:25px}.empty{padding:45px 15px}footer span{display:none}}
.login{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.login-form{min-width:0;width:min(360px,100%)}@media(max-width:720px){.login{grid-template-columns:minmax(0,1fr)}}
@media(max-width:400px){.page-heading{flex-wrap:wrap}.page-heading .primary{margin-top:0}.page-heading p{max-width:none}}
/* FSK / Night workshop */
:root{color-scheme:dark;--ink:#f0f2f4;--muted:#92999f;--paper:#101214;--line:#303439;--green:#9cdb78;--lime:#b1e990}body{background:radial-gradient(ellipse at 75% -20%,#26352866,transparent 48%),#101214;color:var(--ink)}button,input,select,textarea{font-family:'DM Sans',system-ui,sans-serif}input,select,textarea{background:#1b1e22;border-color:#373d42;color:#f0f2f4}input::placeholder,textarea::placeholder{color:#737d83}input:focus,select:focus,textarea:focus{border-color:#8cc76a;box-shadow:0 0 0 3px #9cdb7812}label{color:#c2c9ce}.muted{color:var(--muted)}.primary{background:#a9e386;color:#14200e;border:1px solid #b3ed90;box-shadow:0 4px 22px #8ad3590a}.primary:hover{background:#bbec9d;box-shadow:0 4px 22px #8ad35920}.secondary{background:#22262a;border-color:#3b4248;color:#dce2e5}.secondary:hover{background:#2a3035}.text-button{color:#b1df97}.error{color:#ff9b92}.mark{background:#a9e386;color:#172510;box-shadow:0 0 26px #a9e38610}.topbar{height:92px;padding:0 max(32px,calc((100vw - 1440px)/2));display:grid;grid-template-columns:1fr auto 1fr;align-items:center;background:#141719e6;backdrop-filter:blur(16px);border-bottom:1px solid #303739;position:sticky;top:0;z-index:2;color:#ecf0eb;gap:24px}.logo{display:flex;align-items:center;gap:12px;font-size:22px;letter-spacing:-.5px}.logo .mark{width:42px;height:42px;font-size:29px}.logo small{display:block;font:8px 'DM Sans',sans-serif;letter-spacing:2.7px;color:#a7b1a9;margin-top:7px}.topbar nav{display:flex;gap:5px;background:#0f1214;border:1px solid #303638;border-radius:12px;padding:5px}.tab{background:transparent;border:1px solid transparent;color:#929b9f;border-radius:8px;padding:11px 25px;font-size:13px;font-weight:600}.tab:hover{color:#d6e1d5}.tab.active{color:#def5cf;border-color:#3d4e38;background:#283225;box-shadow:0 2px 8px #0003}.user-menu{justify-self:end;display:flex;align-items:center;gap:18px}.user-menu #account{color:#8a9498;font-size:10px;max-width:180px;overflow:hidden;text-overflow:ellipsis}.user-menu .text-button{font-size:11px;color:#b4beb9;white-space:nowrap}main{margin:0}.workspace{max-width:1440px;padding:48px 32px 30px}.page-heading{margin-bottom:34px;align-items:center}.page-heading h1{font-size:40px;letter-spacing:-1.7px}.eyebrow{color:#829977;font-size:9px;letter-spacing:2px}.page-heading p{font-size:13px;margin-top:10px}.accent{color:#a9e386}.stats{gap:16px;margin-bottom:40px}.stat,.stat:first-child{background:linear-gradient(130deg,#20252a,#1b1f22);border:1px solid #343c40;border-radius:13px;padding:23px 24px;position:relative;overflow:hidden;box-shadow:0 5px 18px #00000010}.stat:first-child{background:linear-gradient(130deg,#2a3828,#202a20);border-color:#465d3d}.stat-label{color:#adb7bd;font-size:12px;gap:10px;line-height:1.5}.stat-label span{color:#92a58b;font-size:18px}.stat-number{color:#f0f5ed;font-size:42px;letter-spacing:-1.8px;margin:14px 0 5px}.stat-foot{color:#7c898d;font-size:10px}.stat:first-child .stat-label,.stat:first-child .stat-number{color:#d8f2c9}.stat-1 .stat-label span{color:#efb381}.stat-2 .stat-label span{color:#87b9e7}.stat-3 .stat-label span{color:#a6de86}.section-label{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.7px;color:#77878a;border-bottom:1px solid #2b3235;padding-bottom:17px;margin-bottom:29px}.section-label span{font-size:10px;letter-spacing:0;color:#6e7c80}.overview-group{margin-bottom:31px}.group-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.group-heading h2{font-size:18px;letter-spacing:-.3px;display:flex;align-items:center;gap:12px}.group-index{font:10px 'DM Sans',sans-serif;letter-spacing:1px;color:#65736e}.group-count{background:#242a2d;border:1px solid #343c3f;border-radius:6px;padding:3px 7px;font:10px 'DM Sans',sans-serif;color:#b0beb4}.order-list{border:1px solid #343b3f;border-radius:12px;overflow:hidden;background:#1b1f22;box-shadow:0 4px 18px #0000000a}.order-card{display:flex;align-items:center;gap:18px;border:0;border-bottom:1px solid #303639;border-radius:0;margin:0;padding:22px 23px;position:relative;background:transparent;color:#e6ece7;min-width:0;box-shadow:none}.order-card:last-child{border-bottom:0}.order-card:before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:#a3b08f}.order-card.s0:before{background:#d99970}.order-card.s1:before{background:#73a9d9}.order-card.s2:before{background:#a9db83}.order-card.s3:before{background:#7b9890}.order-card:hover{background:#242b2e;box-shadow:none;border-color:#303639}.order-icon{flex:0 0 46px;display:flex;align-items:center;justify-content:center;height:46px;border-radius:11px;background:#2a3232;color:#a3b59d;font-size:25px}.order-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.order-name{font-size:14px;font-weight:600;margin:0;letter-spacing:-.1px}.order-summary{font-size:12px;color:#929e9f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.order-meta{font-size:10px;color:#68777b}.order-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}.money{font-size:13px;font-weight:500;color:#dce5df;margin:0}.badge{border:1px solid #67503a;background:#3d3026;color:#efbd94;border-radius:5px;font-size:10px;padding:4px 8px}.badge.s1{background:#243747;color:#9dcaf0;border-color:#375770}.badge.s2{background:#2a3c25;color:#b3df94;border-color:#405b36}.badge.s3{background:#293633;color:#adc8be;border-color:#3d514a}.card-arrow{font-size:18px;color:#687d71;margin-left:8px}.group-empty{padding:32px;display:flex;align-items:center;justify-content:center;gap:12px;color:#717e81;font-size:12px;background:#171b1e}.group-empty>span{display:inline-flex;align-items:center;justify-content:center;border:1px solid #354039;background:#212925;color:#7e9b74;width:29px;height:29px;border-radius:50%;font-size:13px}.toolbar{margin-bottom:29px;gap:12px}.search{background:#1b2023;border-color:#353d41}.search input{background:transparent;color:#dbe4dc;padding:13px}.search span{color:#8fa087}.toolbar select{background:#1d2225;border-color:#353d41;width:184px;font-size:11px}.toolbar button{font-size:11px}.list-head{color:#74867b;margin-bottom:14px}.empty{background:#191e21;border-color:#37423a;color:#8b9c91}.empty strong{color:#cddccc;font-size:18px}.empty .empty-icon{color:#78916d}.dot{background:#a9e386;box-shadow:0 0 8px #a9e38640}footer{border-top:1px solid #293134;margin-top:38px;padding-top:22px;color:#687c71;font-size:9px}dialog{background:#1b2023;color:#e9eeeb;border-color:#3c4840;border-radius:16px;box-shadow:0 30px 110px #0008}dialog::backdrop{background:#030907b0;backdrop-filter:blur(7px)}.dialog-heading .eyebrow{color:#8ba57c}.icon{color:#8c9a91}.product-heading{border-color:#35403b}.product-row{border-color:#323d37}.delete{color:#e69d8c}#product-form{background:#141a18;border:1px solid #303d34;border-radius:11px}#notice{background:#c1eaa5;color:#1b2e13;box-shadow:0 10px 50px #0005}.login-brand{background:radial-gradient(ellipse at top left,#30482c,#15231d 70%)}.login-form input{background:#1b2023}.login-form .eyebrow{color:#9cb98e}.login-form .small{color:#738377}.login-form h2{color:#eef4eb}.login-brand h1{color:#edf5e7}.login-brand>p{color:#9eb09f}
@media(max-width:1050px){.topbar{padding:0 24px;gap:16px}.user-menu #account{display:none}.workspace{padding:35px 24px}.stat,.stat:first-child{padding:20px 17px}.stat-label{font-size:11px}.stats{gap:12px}}
@media(max-width:720px){.topbar{height:auto;min-height:117px;grid-template-columns:1fr auto;padding:17px 20px 13px;gap:16px}.topbar .logo{font-size:20px}.logo .mark{width:34px;height:34px;font-size:25px}.logo small{font-size:6px;letter-spacing:2px;margin-top:5px}.topbar nav{grid-column:1/-1;grid-row:2;width:100%;padding:4px;border-radius:9px}.tab{flex:1;font-size:12px;padding:9px 14px}.user-menu{grid-column:2;grid-row:1}.user-menu .text-button{font-size:10px}.workspace{padding:28px 18px 22px}.page-heading{flex-wrap:wrap;gap:18px;margin-bottom:25px}.page-heading h1{font-size:32px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.6px}.page-heading p{font-size:11px;max-width:none;margin:9px 0 0}.page-heading .primary{margin:0;font-size:11px;padding:11px 14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:28px}.stat,.stat:first-child{padding:17px 14px;border-radius:11px}.stat-label{font-size:10px;gap:4px}.stat-label span{font-size:15px}.stat-number{font-size:33px;margin:10px 0 5px}.stat-foot{font-size:9px;line-height:1.6}.section-label{margin-bottom:24px;font-size:8px}.section-label span{font-size:8px}.group-heading h2{font-size:15px;gap:9px}.overview-group{margin-bottom:25px}.order-card{display:flex;flex-wrap:wrap;padding:17px 15px;gap:12px}.order-icon{flex-basis:34px;height:34px;border-radius:8px;font-size:21px}.order-info{flex:1;min-width:0}.order-name{font-size:12px}.order-summary{font-size:10px}.order-meta{font-size:9px}.order-right{flex-basis:100%;flex-direction:row;align-items:center;justify-content:space-between;border-top:1px solid #2a3334;padding-top:11px;margin-left:46px}.money{font-size:12px}.badge{font-size:9px}.card-arrow{display:none}.group-empty{font-size:10px;padding:24px 14px}.toolbar{gap:9px}.toolbar select{width:auto;min-width:0;flex:1}.toolbar .search{flex-basis:100%}.search input{font-size:11px;min-width:0}.list-head{font-size:8px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-row{gap:8px}dialog{padding:21px;max-height:92dvh}.dialog-heading h2{font-size:22px}footer{font-size:8px;margin-top:30px}footer span{display:block}footer span:last-child{display:none}}
/* Single-step order composer */
#order-dialog{max-width:700px}.number-field{margin-top:25px}.number-field input{background:linear-gradient(110deg,#283225,#1b2420);border-color:#42543a;color:#d4edc6;font-weight:600;letter-spacing:.2px;cursor:default}.number-field .small{display:block;font-size:10px;font-weight:400;margin-top:7px}.draft-section{margin:22px 0 28px;border-top:1px solid #354038;padding-top:24px}.draft-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.draft-heading h3{font-size:17px}.draft-heading h3 span{font-size:12px;color:#7f9483;font-family:'DM Sans',sans-serif;font-weight:400}.draft-heading button{font-size:11px;padding:9px 12px}.draft-labels{display:grid;grid-template-columns:66px 1fr;gap:12px;color:#8b9b91;font-size:10px;margin:0 0 8px}.draft-row{margin-bottom:12px;border:1px solid #323f36;background:#171d1a;border-radius:10px;padding:11px}.draft-line{display:grid;grid-template-columns:64px minmax(0,1fr) 30px;gap:10px;align-items:center}.quantity-box,.name-box{margin:0;min-width:0}.quantity-box{position:relative}.quantity-box input{margin:0;width:64px;height:48px;text-align:center;padding:10px 20px 10px 7px;font-size:15px;font-weight:600;appearance:textfield;-moz-appearance:textfield}.quantity-box input::-webkit-inner-spin-button,.quantity-box input::-webkit-outer-spin-button{appearance:none;margin:0}.quantity-box>span:last-child{position:absolute;right:12px;top:15px;color:#8d9c8b;font-size:12px;pointer-events:none}.name-box input{margin:0;height:48px;font-size:12px;padding:12px}.remove-row{border:0;background:transparent;color:#9f7d76;font-size:22px;width:30px;height:36px;border-radius:6px}.remove-row:hover{background:#502e2c;color:#ffc1b5}.product-stage{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin:12px 40px 0 74px;padding-top:10px;border-top:1px solid #2b3830;font-size:10px;color:#87978d}.product-stage select{width:135px;margin:0;padding:7px 9px;font-size:10px}.notes-last{margin-top:24px}.notes-last textarea{resize:vertical}.order-bottom{border-top:1px solid #344137;padding-top:20px;margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.order-bottom .actions{margin:0;margin-left:auto}.danger{background:#3b2424;border:1px solid #71423e;color:#f2a99a;border-radius:8px;padding:11px 13px;font-size:11px;font-weight:600;cursor:pointer}.danger:hover{background:#512c2c}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#confirm-dialog{max-width:450px;background:#1c2420;color:#e9eeeb;border:1px solid #4b554b}#confirm-dialog h2{font-size:21px}#confirm-dialog p{font-size:12px;line-height:1.8}#confirm-dialog .danger{font-size:12px}.order-entry{position:relative;display:flex;align-items:center;border-bottom:1px solid #303639}.order-entry:last-child{border-bottom:0}.order-entry .order-card{flex:1;border-bottom:0;min-width:0}.order-entry .order-card:before{border-radius:0}.stage-action{margin-right:20px;border:1px solid #3b4b3c;background:#253224;color:#b6d6a4;border-radius:6px;font-size:10px;padding:8px 10px;white-space:nowrap;cursor:pointer}.stage-action:hover{background:#34462e}
@media(max-width:720px){#order-dialog{padding:20px;width:calc(100% - 20px)}.draft-heading h3{font-size:15px}.draft-heading button{font-size:10px;padding:9px 10px}.draft-labels{grid-template-columns:55px 1fr;gap:10px}.draft-line{grid-template-columns:53px minmax(0,1fr) 24px;gap:7px}.draft-row{padding:9px}.quantity-box input{width:53px;padding-right:17px;height:44px;font-size:14px}.quantity-box>span:last-child{right:8px;top:14px;font-size:11px}.name-box input{height:44px;font-size:11px;padding:10px}.remove-row{width:24px;padding:0}.order-bottom .actions{width:100%;justify-content:flex-end}.order-bottom .actions button{font-size:11px;padding:11px 13px}.product-stage{margin:10px 31px 0 60px;flex-wrap:wrap;justify-content:flex-start}.product-stage select{width:100%}.order-entry{display:block}.stage-action{margin:0 15px 15px 61px;font-size:9px}.order-entry .order-card{width:100%}.order-entry .order-card:before{bottom:0}.draft-section{margin-bottom:23px}}
/* Stable tab geometry and consistent controls */
html{overflow-y:scroll;scrollbar-gutter:stable}.workspace{width:100%;min-width:0}.page-heading{min-height:103px}.stat-label>span,.stat-1 .stat-label span,.stat-2 .stat-label span,.stat-3 .stat-label span{color:#a4c390;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.stat-label svg{width:20px;height:20px}input[name="amount"]{appearance:textfield;-moz-appearance:textfield}input[name="amount"]::-webkit-inner-spin-button,input[name="amount"]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.field-hint{display:block;font-size:9px;color:#708276;margin-top:6px;font-weight:400}#summary-dialog{max-width:650px;background:#1b2023;color:#e9eeeb;border-color:#3c4840}.summary-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;padding:24px 0;margin-bottom:22px;border-bottom:1px solid #344137}.summary-meta>div{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.summary-meta>div>span:first-child{font-size:10px;color:#8fa092}.summary-meta strong{font-size:14px;font-weight:500}.summary-products{margin-top:15px}.summary-product{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #303d34}.summary-product strong{flex:1;min-width:0;font-size:12px;font-weight:500;overflow-wrap:anywhere}.summary-qty{color:#bdd8aa;background:#273324;border:1px solid #3c5034;border-radius:6px;padding:8px;font-size:12px;flex-shrink:0}.summary-notes{margin-top:25px}.summary-notes p{color:#9aa99e;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.summary-hint{color:#708276;font-size:10px;border-top:1px solid #344137;margin:25px 0 0;padding-top:18px}@media(max-width:720px){.page-heading{min-height:130px;align-content:flex-start}.stat-label svg{width:17px;height:17px}.summary-meta{gap:12px;grid-template-columns:1fr 1fr}.summary-meta>div:last-child{grid-column:1/-1}.summary-product{flex-wrap:wrap;gap:9px}.summary-product .badge{margin-left:45px}.summary-product strong{flex-basis:calc(100% - 53px)}}
/* Four independent order stages */
.stats{grid-template-columns:repeat(5,minmax(0,1fr))}.stat-label{align-items:flex-start;min-height:36px}.stat-4 .stat-label span{color:#a4c390}@media(max-width:1050px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats .stat:last-child{grid-column:1/-1}.stat-label{min-height:30px}}
/* Short, quiet motion — no delays before controls become usable */
@keyframes fsk-reveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes fsk-dialog{from{opacity:0;transform:translateY(9px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes fsk-backdrop{from{opacity:0}to{opacity:1}}
@keyframes fsk-toast{from{opacity:0;transform:translate(-50%,7px)}to{opacity:1;transform:translate(-50%,0)}}
#app:not([hidden]){animation:fsk-reveal 220ms cubic-bezier(.2,.7,.25,1)}
dialog[open]{animation:fsk-dialog 180ms cubic-bezier(.2,.7,.25,1);transform-origin:50% 35%}dialog[open]::backdrop{animation:fsk-backdrop 150ms ease-out}
#notice.show{animation:fsk-toast 180ms ease-out}
.primary,.secondary,.danger,.stage-action,.tab,.remove-row,.icon,.text-button{transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease,box-shadow 140ms ease,transform 140ms ease}
.primary:active,.secondary:active,.danger:active,.stage-action:active,.tab:active{transform:scale(.98)}
.order-card{transition:background-color 160ms ease,box-shadow 160ms ease}.order-icon{transition:background-color 160ms ease,color 160ms ease,transform 160ms ease}.badge{transition:background-color 160ms ease,border-color 160ms ease,color 160ms ease}
.stat{transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease}
input,select,textarea{transition:border-color 140ms ease,box-shadow 140ms ease}
@media(hover:hover) and (pointer:fine){.primary:hover,.secondary:hover{transform:translateY(-1px)}.primary:active,.secondary:active{transform:translateY(0) scale(.98)}.stat:hover{transform:translateY(-2px);border-color:#5b7053;box-shadow:0 8px 24px #0002}.order-card:hover .order-icon{background:#33422e;color:#bfdcae;transform:scale(1.035)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.recovery-page{min-height:100dvh;display:grid;place-items:center;padding:32px 20px;background:radial-gradient(ellipse at top,#273a26,#101614 65%)}.recovery-card{width:420px;max-width:100%;background:#1b2220;border:1px solid #3b4b3b;border-radius:18px;padding:35px;box-shadow:0 22px 70px #0003}.recovery-card>.mark{margin-bottom:25px}.recovery-card h1{font-size:29px;letter-spacing:-1px;line-height:1.25}.recovery-card>.muted{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.recovery-card .eyebrow{margin-bottom:10px}.recovery-card form{margin-top:24px}.recovery-card .small{font-size:10px;line-height:1.7}.recovery-card #recovery-back{font-size:11px;display:block;margin-top:20px}.recovery-card #recovery-success{border-top:1px solid #354236;margin-top:20px;padding-top:10px;font-size:13px}@media(max-width:480px){.recovery-card{padding:25px 22px}.recovery-page{padding:22px 14px}.recovery-card h1{font-size:26px}}
.recovery-page{grid-template-columns:minmax(0,1fr)}.recovery-card{min-width:0;width:min(420px,100%)}

.finance-tools,.ledger-heading,#finance-pages,.partner,.partner>div{display:flex;align-items:center;gap:12px}
.finance-tools{justify-content:flex-end;margin-bottom:20px;flex-wrap:wrap}
#finance-state{color:#c1cebf;font-size:1rem}
#finance-state:empty{display:none}
.finance-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.finance-metric,.partner{padding:22px;border:1px solid #36423c;border-radius:14px;background:#1c2222;min-width:0}
.finance-metric span,.partner span,.ledger-heading>span,.cost-help{color:#a8b7ae;font-size:.9rem}
.finance-metric strong{display:block;margin-top:12px;font:700 clamp(1.4rem,2.4vw,2.35rem)/1.2 Manrope,sans-serif;overflow-wrap:anywhere}
.finance-metric:last-child{background:linear-gradient(115deg,#293828,#202a22);border-color:#49603f}
.finance-metric:last-child strong,.partner b{color:#d5edc6}
.finance-heading{font-size:1.32rem;margin:26px 0 14px;letter-spacing:-.035em}
.partners{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.partner,.ledger-heading{justify-content:space-between}
.partner{flex-wrap:wrap}.partner>div{flex-direction:column;align-items:flex-start;gap:4px}.partner strong,.partner b{font-size:1.08rem}
.ledger-heading{align-items:baseline;flex-wrap:wrap}
#finance-ledger{border:1px solid #36423c;border-radius:12px;background:#191f1e;overflow:hidden}
.finance-table{width:100%;border-collapse:collapse;font-size:.92rem;font-variant-numeric:tabular-nums}
.finance-table th,.finance-table td{padding:14px 12px;text-align:right}
.finance-table thead{background:#222a26;color:#bdcbbc}.finance-table th:first-child{text-align:left}
.finance-table tbody tr+tr{border-top:1px solid #333d38}.finance-table small{display:block;color:#9dac9f;margin-top:3px;font-weight:400}.finance-table td:nth-child(4){color:#d4edc5;font-weight:600}
#finance-pages{justify-content:center;margin-top:16px}
.cost-help{line-height:1.55}
@media(max-width:720px){
  .finance-tools{justify-content:flex-start}.finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .finance-metric,.partner{padding:14px}.finance-metric:last-child{grid-column:1/-1}
  .partners{gap:8px}.partner{align-items:flex-start;flex-direction:column}
  .finance-table,.finance-table tbody,.finance-table th,.finance-table td{display:block}
  .finance-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  .finance-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:14px;gap:12px}
  .finance-table tr>th{grid-column:1/-1;padding:0}.finance-table td{padding:0;text-align:left;overflow-wrap:anywhere}
  .finance-table td::before{content:attr(data-label);display:block;color:#a8b7ae;font-size:.875rem;font-weight:400;margin-bottom:4px}
}


/* Brief cues for navigation, newly added inputs and confirmed updates. */
.topbar .tab { position: relative; }
.topbar .tab::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 28%;
  right: 28%;
  height: 2px;
  border-radius: 2px;
  background: #a5cb8d;
  pointer-events: none;
  transform: scaleX(0);
  opacity: 0;
}
.topbar .tab.active::after { transform: scaleX(1); opacity: .85; }

@keyframes fsk-tile-in {
  from { opacity: .82; translate: 0 4px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fsk-row-in {
  from { opacity: .65; translate: 0 -4px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fsk-order-updated {
  from { background-color: #30442c; }
}
@media (prefers-reduced-motion: no-preference) {
  .topbar .tab::after { transition: transform 160ms ease-out, opacity 130ms ease-out; }
  #overview-view:not([hidden]) .stat,
  #finance-content:not([hidden]) .finance-metric {
    animation: fsk-tile-in 160ms ease-out backwards;
  }
  #overview-view .stat:nth-child(2), .finance-metric:nth-child(2) { animation-delay: 20ms; }
  #overview-view .stat:nth-child(3), .finance-metric:nth-child(3) { animation-delay: 40ms; }
  #overview-view .stat:nth-child(n+4) { animation-delay: 60ms; }
  .added-row { animation: fsk-row-in 160ms ease-out; }
  .order-updated { animation: fsk-order-updated 320ms ease-out; }
}

.template-picker{border-block:1px solid #354139;padding:12px 0 16px;margin:0 0 16px}
.template-heading,.template-line,#template-chips{display:flex;align-items:center;gap:10px}
.template-heading{justify-content:space-between;flex-wrap:wrap;margin-bottom:8px}
.template-heading strong{font-size:.9rem}.template-heading .text-button{color:#b9d6ab;font-size:.875rem}
#template-chips{flex-wrap:wrap}.template-chip{border:1px solid #48623e;background:#273624;color:#d6efc9;border-radius:8px;padding:9px 13px;font-size:.94rem;overflow-wrap:anywhere;max-width:100%}
.template-chip:hover{background:#33452e}.template-chip:active{background:#405637}
#template-dialog{width:min(590px,calc(100% - 24px))}
.template-line{padding:12px 0;border-bottom:1px solid #384039;flex-wrap:wrap;font-size:.94rem}
.template-line strong{flex:1;min-width:min(100%,8rem);overflow-wrap:anywhere}.template-line span{color:#b4c6aa}
#template-form{padding-top:22px}#template-form input{font-size:1rem}

.template-actions{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:500px){.template-line{justify-content:space-between}.template-actions{flex-basis:100%}.template-actions button{min-height:42px}}

.order-actions:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:10px}
