:root{--ink:#36503b;--green:#4e8056;--deep:#2d6543;--pale:#eff6e9;--cream:#fffcf6;--line:#dce7d3;--warm:#fbf6eb;--danger:#a54b49;--shadow:0 6px 20px #455f3512;font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif;color:var(--ink);background:#f9f7ef}
*{box-sizing:border-box}html{min-width:290px}body{margin:0;min-height:100vh}body::before{content:'';pointer-events:none;position:fixed;inset:0;background:linear-gradient(#faf9f2ed,#faf9f2ed),url('/assets/otteok-background.jpg') center top / 700px auto;z-index:-1}
main{width:min(1050px,100%);margin:auto;padding:12px 14px 60px}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b6d5ab;outline-offset:2px}
.top{background:#f0f6e5;border:1px solid #d8e9cf;border-radius:23px;box-shadow:var(--shadow);padding:12px 18px 14px;margin-bottom:13px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:118px}
.top-brand{display:flex;align-items:center;gap:13px;min-width:0}.brand-logo{display:block;width:180px;max-width:100%;height:90px;object-fit:contain;object-position:left center;mix-blend-mode:multiply}.top-info{display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right;max-width:240px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:850;color:#689273}.small{font-size:12px;color:#67826e}.small-2{font-size:11px;color:#7b8d7d}.user{font-weight:850;color:var(--deep);font-size:13px;overflow-wrap:anywhere}.logo-sub{color:#749373;font-weight:750;font-size:11px}
nav{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:0 0 14px}nav button{border:1px solid var(--line);border-radius:13px;background:#fffefa;padding:13px 5px;font-size:13px;color:#5e8064;font-weight:800;min-height:47px}nav button.active{background:var(--green);color:white;border-color:var(--green)}
.panel{border:1px solid var(--line);border-radius:19px;background:#fffef9;box-shadow:var(--shadow);padding:17px;margin-bottom:13px}.panel h2{font-size:18px;font-weight:900;letter-spacing:-.5px;color:#355c3e;margin:0 0 8px}.panel h3{font-size:14px;font-weight:850;margin:9px 0;color:#4b6c51}.caption{font-size:12px;color:#728276;line-height:1.55;margin:4px 0 14px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:9px}.view{display:none}.view.active{display:block}
.stack{display:grid;gap:12px}.layout{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(290px,.9fr);gap:13px;align-items:start}.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product{padding:8px;border:1px solid #e3eadc;background:#fffefa;border-radius:13px;min-width:0}.photo{width:100%;height:116px;display:block;object-fit:contain;border-radius:10px;background:#f5f5eb}.prodname{font-size:13px;font-weight:850;margin-top:7px;overflow-wrap:anywhere;min-height:19px}.prodprice{font-size:14px;color:#2b6744;font-weight:900;margin:3px 0}.stock{font-size:11px;color:#738779}.stock.sold{color:#ab5350;font-weight:850}.counter{display:flex;gap:5px;align-items:center;margin-top:8px}.counter button{min-height:36px;padding:6px 9px;flex:1}.count{min-width:23px;text-align:center;font-weight:850}
.btn{border:1px solid #d5e3cf;background:#edf6e9;color:#376c47;border-radius:11px;padding:10px 13px;min-height:41px;font-size:13px;font-weight:850}.btn.primary{background:#53865e;color:white;border-color:#53865e}.btn.secondary{background:#fffefa}.btn.danger{background:#fff2ed;color:var(--danger);border-color:#f0d0c8}.btn.dark{background:#315b3b;color:#fff}.btn.wide{width:100%;min-height:50px;margin-top:9px}.btn.compact{padding:6px 9px;font-size:12px;min-height:34px}.btn.large{font-size:17px;min-height:59px}.row{display:flex;align-items:center;justify-content:space-between;gap:9px}.gap{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.grow{flex:1;min-width:0}.cartline{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:12px 0;border-bottom:1px solid #eff1e9;font-size:13px}.cartline .name{font-weight:800;overflow-wrap:anywhere;flex:1}.empty{padding:18px 6px;text-align:center;font-size:13px;color:#8a9587}.total{font-weight:950;font-size:29px;color:#39784c;letter-spacing:-1.2px}.total-lbl{font-size:12px;color:#738776}.pay-methods{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}.pay-methods label{display:flex;align-items:center;justify-content:center;gap:5px;border-radius:11px;border:1px solid #d7e7cf;background:#f7fbf3;padding:12px 6px;font-size:13px;font-weight:850}.pay-methods label:has(input:checked){border-color:#83b48c;background:#eaf6e7}.pay-methods input{accent-color:#478e5c}
.field{display:block;font-size:12px;font-weight:800;color:#57755d;margin:11px 0 6px}.input,textarea,select{border:1px solid #d0dfc9;background:#fff;border-radius:11px;width:100%;padding:11px;min-height:43px;color:#334e38;font-size:15px}textarea{resize:vertical}.formgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.formgrid>*{min-width:0}.formgrid label{font-size:11px;font-weight:750;color:#67816b;display:block;margin-bottom:4px}.input[type=file]{font-size:12px}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:12px}.metric{background:#f2f8ee;border:1px solid #e1eddb;border-radius:13px;padding:12px}.metric b{font-size:20px;font-weight:950;color:#317247;display:block;margin-top:5px}.metric span{font-size:11px;color:#64806d}
.order{border:1px solid #e0e9db;border-radius:13px;padding:13px;margin:10px 0;background:#fffefa}.order.pending{border-color:#eccf96;background:#fffcf3}.order-top{display:flex;justify-content:space-between;align-items:center;gap:7px;flex-wrap:wrap}.order-title{font-size:15px;font-weight:900}.pill{border-radius:99px;background:#e8f4e6;color:#3b7950;padding:5px 9px;font-size:11px;font-weight:800}.pill.pending{background:#fff0d5;color:#995e2c}.pill.void{background:#f6eae7;color:#875a55}.order-lines{font-size:12px;color:#56715c;line-height:1.8;white-space:pre-line;margin:9px 0}.order-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.order-actions .btn{flex:1;min-width:70px}.memo{font-size:12px;background:#edf4e8;padding:9px;border-radius:9px;margin:6px 0;white-space:pre-wrap}.time{font-size:11px;color:#829184;margin:6px 0}.notice{background:#fff9ed;border:1px solid #eddfbd;color:#836a42;border-radius:12px;padding:12px;line-height:1.7;font-size:12px}.status{margin:10px 0 0;padding:10px 12px;background:#edf7e7;border:1px solid #d7e9cf;border-radius:11px;font-size:12px;line-height:1.6;white-space:pre-wrap;color:#38694a}.status.error{background:#fff1eb;color:#aa5147;border-color:#f0d3cf}.hidden{display:none!important}.pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}.code{font-size:28px;letter-spacing:2px;font-weight:950;color:#3a7653;white-space:nowrap}.url{font-size:12px;overflow-wrap:anywhere;background:#f2f5ed;border-radius:9px;padding:10px;line-height:1.65;color:#53705a}.foot{font-size:11px;text-align:center;color:#8b988a;line-height:1.6;margin:16px 0}.rule{border:0;border-top:1px solid #e6eddf;margin:15px 0}.link{color:#37764e;font-size:12px;font-weight:850;text-decoration:underline;cursor:pointer;background:none;border:0;padding:0}.login-wrap{width:min(460px,100%);margin:8vh auto 30px;padding:0 16px}.login-hero{width:240px;height:140px;object-fit:contain;display:block;margin:0 auto 6px;mix-blend-mode:multiply}.login-wrap .panel{padding:22px}.switch{display:flex;gap:7px;margin-bottom:14px}.switch .btn{flex:1}.switch .active{background:#4f8259;color:#fff}.notice.kiosk{font-size:14px}.customer-main{max-width:970px}.customer-top .brand-logo{width:145px}.customer-main .product{padding:11px}.customer-main .photo{height:155px}.customer-main .counter button{font-size:16px;min-height:49px}.customer-main .product .prodname{font-size:16px}.customer-main .prodprice{font-size:16px}.customer-main .panel h2{font-size:21px}.customer-main .layout{grid-template-columns:minmax(0,1.4fr) minmax(285px,.8fr)}
@media(min-width:900px){.products{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-main .products{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:690px){main{padding:8px 9px 40px}.top{min-height:106px;padding:10px 12px}.brand-logo{width:142px;height:84px}.top-info{font-size:11px;max-width:150px}.layout,.customer-main .layout{grid-template-columns:1fr}.panel{padding:13px}.pair{grid-template-columns:1fr}.summary{grid-template-columns:repeat(3,minmax(0,1fr))}.metric{padding:10px 8px}.metric b{font-size:18px}.formgrid{grid-template-columns:1fr 1fr}nav button{font-size:11px;padding:9px 3px}}@media(max-width:360px){.formgrid{grid-template-columns:1fr}.products{gap:6px}.top-info{max-width:118px}.brand-logo{width:128px}.code{font-size:25px}.summary{gap:5px}.metric b{font-size:15px}.photo{height:88px}}

/* V10: independent QR pairing channels */
.connector-notice{background:#ecf5e9;padding:13px;border-radius:12px;font-size:13px;color:#376b4b;margin:12px 0 16px;line-height:1.7;font-weight:750}
.connector-notice icon{font-style:normal;font-weight:900;color:#c58a3b}.pair-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.pair-card{background:#fffdfa;border:1px solid #dce7d3;border-radius:18px;padding:18px;min-width:0}.pair-card h3{font-size:17px;margin:5px 0 6px}.channel-head{display:flex;align-items:flex-start;justify-content:space-between}.channel-icon{font-size:32px;color:#7da882}.qr-frame{width:230px;height:230px;max-width:100%;margin:14px auto 10px;background:white;border:1px dashed #d5e6d0;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:6px}.qr-img{width:100%;height:100%;object-fit:contain}.qr-frame .empty{padding:20px}.code-sm{font-size:25px;letter-spacing:3px;font-weight:950;color:#4e8056;text-align:center}.pair-card .url{font-size:12px;min-height:55px}.channel-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.channel-actions button{font-size:12px;min-height:44px;flex:1}.receipt-screen{position:fixed;inset:0;z-index:20;background:#f5f9f0f7;display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}.receipt-card{width:min(460px,100%);border:1px solid #d3e4d0;background:#fffef8;padding:28px 20px;border-radius:23px;box-shadow:0 18px 60px #2d5c4020;text-align:center}.receipt-duck{width:90px;height:90px;object-fit:contain;display:block;margin:0 auto 10px}.receipt-card h2{font-size:23px;color:#2e6845}.receipt-number{font-weight:950;font-size:50px;color:#3d8054;background:#f0f6e6;padding:14px;border-radius:16px;margin:20px 0}.receipt-card .caption{font-size:15px}.is-kiosk .product .photo{height:190px}@media(max-width:730px){.pair-cards{grid-template-columns:1fr}.qr-frame{width:220px;height:220px}}

/* V10.1 상품 사진 선택 · 미리보기 · 취소 */
.photo-editor{margin-top:13px;background:#f7faf2;border:1px solid #e0ead8;border-radius:15px;padding:13px}
.photo-editor .field{margin:0 0 7px;font-size:13px}
.optional{color:#80957f;font-size:11px;font-weight:650}
.photo-help{font-size:12px;line-height:1.8;color:#657b66;margin:0 0 12px;overflow-wrap:anywhere}
.photo-help strong{color:#47774e}
.photo-picker{display:flex;align-items:center;gap:14px}
.photo-preview{height:136px;width:136px;flex:none;object-fit:contain;background:white;border:1px solid #d8e5d3;border-radius:13px}
.photo-picker-actions{min-width:0;flex:1;display:flex;align-items:flex-start;gap:7px;flex-wrap:wrap}
.photo-choose{display:inline-flex;justify-content:center;align-items:center;min-width:100px;cursor:pointer;user-select:none}
.photo-status{width:100%;margin:2px 0 0;font-size:12px;color:#657b66;line-height:1.55;overflow-wrap:anywhere}
.photo-status.error{color:#ae534e;font-weight:800}
.photo-status.success{color:#41764b}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.form-buttons{display:flex;gap:8px;align-items:center}
.form-buttons .btn{flex:1;min-width:0}
.inventory-photo{width:54px;height:54px;border-radius:10px;object-fit:contain;background:#f5f5eb;border:1px solid #e3ebdd;flex:none;margin-right:5px}
#inventory .cartline{gap:9px;flex-wrap:wrap}
#inventory .cartline .gap{margin-left:auto}
@media(max-width:450px){.photo-picker{align-items:flex-start;gap:10px}.photo-preview{width:102px;height:102px}.photo-picker-actions{flex-direction:column;align-items:stretch}.photo-picker-actions .btn{width:100%}.photo-status{font-size:11px}.form-buttons{flex-direction:column;align-items:stretch}.form-buttons .btn{width:100%}}

/* V11 responsive fullscreen order handling and receipt */
.one-channel{grid-template-columns:1fr;max-width:560px;margin:18px auto}.one-channel .pair-card{padding:20px}.order-overlay{position:fixed;inset:0;z-index:60;background:#27382dc9;display:flex;align-items:center;justify-content:center;padding:12px;overflow:auto}
.order-sheet{width:min(650px,100%);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;background:#fffef8;border-radius:23px;box-shadow:0 24px 80px #122b2680;border:2px solid #d7e6c9;padding:21px}
.order-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.order-sheet-head h2{font-size:24px;color:#315e3f;margin:5px 0}.order-product-list{margin:15px 0;max-height:min(47vh,470px);overflow:auto}.order-product-row{display:flex;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid #e8eee4}.order-product-row img{height:90px;width:90px;flex:none;object-fit:contain;background:#f8f7f0;border-radius:14px}.order-product-details{flex:1;min-width:0}.order-product-details strong{display:block;font-size:17px;overflow-wrap:anywhere}.order-product-details .qty{font-size:16px;color:#446c50;margin-top:5px;font-weight:800}.order-product-row .line-total{font-size:16px;font-weight:800;white-space:nowrap}.order-grand{display:flex;justify-content:space-between;align-items:center;background:#edf7e7;padding:16px;border-radius:15px;gap:12px}.order-grand span{font-size:16px;font-weight:700}.order-grand strong{font-size:30px;color:#287045;white-space:nowrap}.order-actions-large{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.order-actions-large .btn{font-size:17px;min-height:62px}.order-actions-large .btn:last-child{grid-column:span 2}.btn.warm{background:#e9ae53;color:#423018;border:1px solid #d6a149}.cash-calculator{margin-top:15px;padding:16px;background:#f9faf5;border:1px solid #dce9d5;border-radius:15px}.cash-calculator h3{margin:0;color:#3b6947}.cash-result{background:#eaf3e7;padding:13px;border-radius:11px;margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.cash-result strong{font-size:23px;color:#2d7747}.cash-presets{margin-top:10px}.cash-presets .btn{font-size:12px}.small-pending{max-width:100%}
.receipt-screen{z-index:45}.payment-receipt{width:min(545px,100%);max-height:calc(100dvh - 16px);overflow:auto;padding:22px}.receipt-summary{background:#eef7e9;border-radius:13px;padding:15px;margin:12px 0;font-size:21px;font-weight:900;color:#39794f;overflow-wrap:anywhere}.receipt-total-caption{font-size:14px;color:#6b7c6a;margin-top:15px}.receipt-total{font-size:clamp(32px,7vw,46px);color:#2e7547;font-weight:950;margin:2px 0 16px}.receipt-bank{border:1px solid #e1e8d9;border-radius:14px;padding:12px;background:#fffefb;margin:10px 0}.receipt-bank h3{font-size:17px;margin:4px}.receipt-bank-qr{display:block;margin:8px auto;width:min(220px,80%);height:220px;object-fit:contain;border:1px solid #e4e9dc;background:#fff}.receipt-bank-text{font-size:15px;line-height:1.75;font-weight:800;color:#41654b;white-space:pre-line;word-break:break-all}.receipt-cash{background:#f7f9f4;color:#6f765d;padding:11px;border-radius:11px;font-size:14px}.receipt-card .caption{font-size:14px}
@media(max-width:580px){.order-sheet{padding:13px;border-radius:16px}.order-sheet-head h2{font-size:20px}.order-product-row{gap:8px}.order-product-row img{height:70px;width:70px}.order-product-details strong{font-size:15px}.order-product-row .line-total{font-size:13px}.order-grand strong{font-size:24px}.order-product-list{max-height:38vh}.order-actions-large .btn{font-size:15px}.receipt-bank-qr{height:180px;width:180px}}
