*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#eef0f3;color:#111827}button,input{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app{min-height:100vh;max-width:900px;margin:auto;background:#f7f7f8}.header{height:64px;background:#000;color:#fff;padding:0 14px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10}.brand{height:52px}.brand img{height:48px;max-width:190px;object-fit:contain}.header-right{display:flex;align-items:center;gap:8px}.kasa-badge{font-size:12px;font-weight:800;background:#fff;color:#000;border-radius:999px;padding:7px 10px}.main{padding:16px 14px 100px}.screen{display:none}.screen.active{display:block}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.section-head h2{margin:0;font-size:21px}.section-head p{margin:4px 0 0;color:#6b7280;font-size:13px}.products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-tile{min-height:96px;border:1px solid #ddd;border-radius:16px;padding:14px;text-align:left;box-shadow:0 2px 8px #0000000a;background:var(--bg);color:var(--text)}.product-tile:active{transform:scale(.98)}.product-name{display:block;font-size:16px;font-weight:700}.product-price{display:block;margin-top:7px;opacity:.75}.bold{font-weight:800}.card,.list-item{background:#fff;border:1px solid #e1e4e8;border-radius:16px;padding:14px}.card{margin-top:16px}.cart-item{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}.cart-item:last-child{border-bottom:0}.cart-main{flex:1}.cart-main small{display:block;color:#6b7280;margin-top:2px}.qty{display:flex;align-items:center;gap:5px}.qty button{width:32px;height:32px;border:1px solid #d1d5db;background:#fff;border-radius:8px}.total-row{display:flex;justify-content:space-between;border-top:1px solid #ddd;padding-top:13px;margin-top:7px;font-size:18px}.total-row strong{font-size:23px}.primary,.danger,.ghost{border-radius:10px;padding:11px 14px;font-weight:700}.primary{border:0;background:#111827;color:#fff}.danger{border:0;background:#fee2e2;color:#991b1b}.ghost{border:1px solid #d1d5db;background:#fff;color:#374151}.big{width:100%;padding:15px;margin-top:14px}.list{display:flex;flex-direction:column;gap:10px}.row{display:flex;justify-content:space-between;align-items:center;gap:10px}.muted{color:#6b7280;font-size:13px}.tabs{position:fixed;bottom:0;left:0;right:0;height:72px;max-width:900px;margin:auto;background:#fff;border-top:1px solid #ddd;display:grid;grid-template-columns:repeat(4,1fr);z-index:20}.tab{border:0;background:#fff;color:#6b7280;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px}.tab.active{color:#111827;font-weight:800}.modal{position:fixed;inset:0;background:#0008;z-index:30;display:flex;align-items:flex-end;justify-content:center}.modal-box{background:#fff;width:min(100%,560px);border-radius:20px 20px 0 0;padding:18px;max-height:92vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.modal-head h2{margin:0}.icon{border:0;background:transparent;font-size:27px;color:#6b7280}.field{display:block;margin:12px 0;color:#374151;font-size:13px;font-weight:700}.field input,.select{width:100%;display:block;margin-top:6px;border:1px solid #d1d5db;border-radius:10px;padding:12px;background:#fff;color:#111827}.radio-group{border:1px solid #e5e7eb;border-radius:12px;padding:10px;margin:14px 0}.radio-row{display:flex;gap:8px;align-items:center;margin:8px 0}.color-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.color-field{display:flex;align-items:center;justify-content:space-between;border:1px solid #e5e7eb;border-radius:10px;padding:10px}.color-field input{width:42px;height:32px;border:0;background:transparent}.modal-actions{display:flex;gap:8px;align-items:center;margin-top:18px}.spacer{flex:1}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.summary-box{background:#fff;border:1px solid #e1e4e8;border-radius:13px;padding:12px}.summary-box span{display:block;color:#6b7280;font-size:12px}.summary-box strong{font-size:18px}.full{grid-column:1/-1}.history-day{margin-bottom:12px}.history-button{width:100%;text-align:left;border:1px solid #e1e4e8;background:#fff;border-radius:14px;padding:13px}.detail{background:#f7f8fa;border:1px solid #e1e4e8;border-radius:14px;padding:12px;margin-top:8px}.product-admin{display:flex;justify-content:space-between;gap:10px;align-items:center}.admin-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.grip{font-size:20px;color:#9ca3af;cursor:grab}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:18px;background:#111}.login-card{width:min(100%,410px);background:#fff;border-radius:22px;padding:24px}.login-logo{display:block;max-width:220px;max-height:80px;margin:0 auto 20px}.login-card h1{text-align:center;margin:0 0 8px}.login-card p{text-align:center;color:#6b7280;font-size:13px}.error{background:#fee2e2;color:#991b1b;border-radius:10px;padding:10px;margin-top:10px;font-size:13px}.device-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.device-choice button{min-height:110px;border:1px solid #ddd;border-radius:16px;background:#fff;font-weight:800;font-size:18px}.top-note{background:#f0f3f6;border:1px solid #e1e4e8;border-radius:12px;padding:10px;font-size:12px;color:#4b5563;margin-bottom:12px}.sync{font-size:11px;color:#d1d5db}.product-list{display:flex;flex-direction:column;gap:9px}.product-admin-main{display:flex;align-items:center;gap:9px;min-width:0}.product-admin-main>div:last-child{min-width:0}.closing-total{background:#111827;color:#fff}.closing-actions{display:flex;gap:8px}.closing-actions>*{flex:1}@media(max-width:480px){.products-grid{grid-template-columns:1fr}.color-grid,.summary-grid,.device-choice{grid-template-columns:1fr}.admin-actions{width:100%}.product-admin{align-items:flex-start;flex-direction:column}}@media(min-width:700px){.modal{align-items:center}.modal-box{border-radius:20px}}