:root{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:#213831;background:#f4f1e9;--ink:#173a33;--gold:#b49558;--edge:#dbdcd3;--muted:#64736c;--white:#fffdfa;--red:#ad504d;--green:#16755b;--shadow:0 5px 22px #173a3310}
*{box-sizing:border-box}html,body{width:100%;height:100%;height:100dvh;margin:0;overflow:hidden;overscroll-behavior:none;-webkit-text-size-adjust:100%;touch-action:pan-x pan-y}body{position:fixed;inset:0;background:var(--white)}button,input,select,textarea{font:inherit;min-width:0}button{cursor:pointer;-webkit-tap-highlight-color:transparent}input,select,textarea{border:1px solid #cbd4c9;border-radius:10px;padding:9px 10px;background:#fff;color:var(--ink);width:100%;outline-color:var(--gold)}input[type=number]{font-variant-numeric:tabular-nums}input[type=file]{padding:6px;font-size:11px}input:disabled,button:disabled{opacity:.48;cursor:not-allowed}h1,h2,h3,p{margin:0}h2{font-size:clamp(16px,2.9vw,22px)}h3{font-size:14px}p{line-height:1.35}small,.sub{font-size:11px;color:var(--muted)}.initial{height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}.mark{background:#123e37;color:#d8bc83;border:2px solid #d8bc83;border-radius:50%;font-family:Georgia,serif;font-size:30px;width:65px;height:65px;display:grid;place-items:center}.initial h1{letter-spacing:.24em}.shell{display:flex;flex-direction:column;height:100dvh;width:100vw;overflow:hidden}.topbar{flex:0 0 auto;height:61px;background:#123e37;color:#f8f4e8;display:flex;align-items:center;justify-content:space-between;padding:7px 14px;gap:8px}.brand{display:flex;align-items:center;gap:9px;min-width:0}.brand-icon{font-family:Georgia,serif;color:#eccd88;border:1px solid #bd9f69;border-radius:50%;width:38px;height:38px;font-size:24px;display:grid;place-items:center}.brand strong{font-size:15px;letter-spacing:.16em;white-space:nowrap}.brand small{display:block;color:#c3cebd;font-size:10px;letter-spacing:.06em}.head-controls{display:flex;gap:5px;align-items:center}.chip{background:#ffffff1d;color:#fff9e7;border:1px solid #ffffff45;border-radius:9px;padding:8px 9px;font-size:11px;max-width:138px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-btn{width:35px;height:35px;display:grid;place-items:center;background:#ffffff16;border:1px solid #ffffff40;border-radius:10px;color:#fff}.viewport{flex:1;min-height:0;overflow:hidden;padding:clamp(7px,1.5vh,15px);display:flex;flex-direction:column;background:#f4f1e9}.sheet{height:100%;min-height:0;display:flex;flex-direction:column;gap:clamp(5px,.9vh,10px)}.titlebar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:0 0 auto;min-height:35px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:.13em;color:#857248;text-transform:uppercase}.titlebar h2{color:var(--ink);letter-spacing:-.025em}.titlebar small{font-size:10px}.surface{background:var(--white);border:1px solid var(--edge);border-radius:15px;box-shadow:var(--shadow);padding:clamp(8px,1.3vh,14px);overflow:hidden;min-height:0}.surface.flex{flex:1;display:flex;flex-direction:column;min-height:0}.accent{background:#f2ecdd;border:1px solid #dfd2b0}.btn{border:1px solid #c8cec4;background:#fff;border-radius:10px;padding:9px 12px;min-height:38px;color:var(--ink);font-weight:700;font-size:12px;white-space:nowrap}.btn.primary{background:var(--ink);border-color:var(--ink);color:#fff}.btn.gold{background:var(--gold);border-color:var(--gold);color:#fff}.btn.red{background:#fff2f1;color:#b54d49;border-color:#e3b6b0}.btn.soft{background:#f1eee6}.btn.small{padding:6px 9px;min-height:30px;font-size:11px}.btn.wide{width:100%}.btn:focus-visible{outline:3px solid #e3bb75}.row{display:flex;align-items:center;gap:8px;min-width:0}.between{justify-content:space-between}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.field{display:flex;flex-direction:column;gap:3px;min-width:0}.field>span{color:#4c665a;font-size:10px;font-weight:750;letter-spacing:.015em}.field input,.field select{height:38px;font-size:12px;padding:6px 8px}.field textarea{font-size:12px;resize:none;height:54px}.select-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pick{border:1px solid #ccd4c9;background:#fff;padding:13px 8px;min-height:48px;border-radius:12px;color:var(--ink);font-weight:700}.pick.selected{background:#123e37;color:#fff;border-color:#123e37}.hint{font-size:11px;color:#6b776e}.note{border-radius:10px;background:#eef3ed;padding:8px 10px;font-size:11px;color:#385449}.note.warn{background:#fff2e4;color:#835525}.note.error{background:#ffecea;color:#983a33}.error-msg{color:#b1433f;font-size:11px;min-height:14px}.price-grid{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.price-cell{border:1px solid #e7dcbd;background:linear-gradient(150deg,#fffef9,#eee6d7);border-radius:12px;padding:8px 5px;min-width:0;text-align:center}.price-cell span{font-size:10px;color:#6a664d;white-space:nowrap;display:block;font-weight:800}.price-cell strong{display:block;font-size:clamp(15px,3.2vw,24px);color:#193a34;font-variant-numeric:tabular-nums;letter-spacing:-.055em;margin-top:3px}.metal-zone{flex:1;display:flex;flex-direction:column;gap:6px;min-height:0}.metal-list{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.metal-card{background:var(--white);border:1px solid var(--edge);border-radius:13px;display:flex;flex-direction:column;padding:8px 7px;gap:5px;min-height:0}.metal-card header{display:flex;justify-content:space-between;gap:4px;font-size:12px;font-weight:800;color:var(--ink)}.metal-card header span{font-size:10px;color:#af8e4e}.metal-card label{font-size:10px;color:#64766d}.metal-card input{height:clamp(34px,4.6vh,46px);font-size:20px;font-weight:800;text-align:center;padding:3px 5px}.metal-card .regular{font-size:clamp(14px,2.6vw,22px);font-weight:800;color:#163e36;line-height:1.1;font-variant-numeric:tabular-nums}.metal-card .discount{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eee9df;padding:4px 0;gap:4px;font-size:clamp(10px,1.8vw,13px)}.metal-card .discount b{color:#1f5548;font-variant-numeric:tabular-nums;white-space:nowrap}.metal-summary{flex:0 0 auto;display:grid;grid-template-columns:1fr 1fr;gap:7px}.sum-card{border:1px solid #e0ddcf;border-radius:12px;padding:8px;background:#fffdfa;min-width:0}.sum-card h3{font-size:11px;margin-bottom:5px}.sum-card strong{font-size:clamp(16px,3vw,23px);font-variant-numeric:tabular-nums}.sum-discounts{display:flex;justify-content:space-between;gap:4px;font-size:10px;color:#315c4c;padding-top:4px}.sum-discounts span{white-space:nowrap}.sum-card input{height:32px;font-size:15px;text-align:right}.bottomnav{flex:0 0 auto;height:66px;background:#fff;border-top:1px solid var(--edge);padding:5px 8px max(env(safe-area-inset-bottom),5px);display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.navitem{border:0;background:transparent;color:#76817a;border-radius:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:10px;font-weight:800}.navitem>span:first-child{font-size:22px;line-height:1.1}.navitem.active{color:#153f36;background:#edf3e8}.auth-view{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100dvh;padding:18px;background:#f4f1e9}.auth-card{width:min(100%,420px);padding:22px;display:flex;flex-direction:column;gap:12px}.auth-card h1{text-align:center;font-size:23px}.auth-card .logo{text-align:center;font-size:45px;color:var(--gold)}.welcome-list{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(42px,1fr);gap:8px}.welcome-list button{font-size:clamp(14px,2.8vw,19px);white-space:normal}.v-stack{display:flex;flex-direction:column;gap:8px}.v-fill{flex:1;min-height:0}.steps{display:flex;gap:5px}.steps>span{height:4px;flex:1;background:#e7e5da;border-radius:5px}.steps>span.on{background:var(--gold)}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:auto;padding-top:7px}.form-step{display:flex;flex:1;min-height:0;flex-direction:column;gap:9px}.scrollless-list{display:flex;flex-direction:column;gap:7px;flex:1;min-height:0}.listitem{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;min-height:0;flex:1;max-height:84px;border:1px solid var(--edge);border-radius:12px;background:#fff}.listitem b{font-size:13px}.listitem p{font-size:10px;color:var(--muted)}.pill{font-size:10px;border-radius:100px;padding:4px 7px;background:#edf2e9;color:#275b45;font-weight:800;white-space:nowrap}.pill.warn{background:#fff0df;color:#935b21}.actions{display:flex;flex-wrap:wrap;gap:6px}.tabstrip{display:flex;gap:5px;min-height:0}.tabstrip button{flex:1;min-width:0;padding:7px 2px;background:#fff;border:1px solid #dcded6;border-radius:9px;color:#57695f;font-size:10px;font-weight:800}.tabstrip button.on{background:#204d43;color:#fff}.pager{display:flex;align-items:center;justify-content:space-between;padding:2px 0}.tiny{font-size:10px}.number-display{background:#173e34;border-radius:15px;padding:16px;color:#fff;min-height:90px;display:flex;flex-direction:column;justify-content:center;text-align:right}.number-display small{color:#aec9b6}.number-display strong{font-size:clamp(25px,6vw,42px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.keys{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(5,minmax(0,1fr));gap:8px;flex:1;min-height:0}.keys button{border:1px solid #dddcd2;background:#fffdfa;border-radius:15px;font-size:clamp(22px,4vw,30px);font-weight:750}.keys button.op{background:#e9e3d3;color:#58492e}.keys button.eq{background:#173e34;color:#fff}.keys button.clear{background:#fff0ed;color:#a74239}.photo-choice{padding:10px;background:#f8f5ed;border:2px dashed #cdb88e;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:65px}.photo-choice input{max-width:65%;border:0;background:transparent}.modal-cover{position:absolute;inset:0;background:#153a36a8;z-index:10;display:flex;align-items:center;justify-content:center;padding:12px}.modal{width:min(100%,525px);height:min(90%,690px);background:#fffdfa;border-radius:17px;box-shadow:0 15px 55px #10292335;padding:13px;display:flex;flex-direction:column;gap:8px;overflow:hidden}.modal section{flex:1;min-height:0;display:flex;flex-direction:column;gap:9px}.modal .actions{margin-top:auto}.modal header{display:flex;justify-content:space-between;align-items:center}.photo-view{display:block;object-fit:contain;max-width:100%;max-height:100%;margin:auto}.overlay-alert{position:absolute;left:10px;right:10px;top:67px;background:#fff5e9;color:#735321;border:1px solid #d4b97e;padding:12px 36px 12px 12px;border-radius:10px;z-index:12;box-shadow:var(--shadow);font-size:12px}.overlay-alert.error{background:#ffeeed;color:#8b3a34;border-color:#d89f96}.overlay-alert button{position:absolute;right:7px;top:5px;border:0;background:transparent;color:inherit;font-size:21px}.fill-center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;flex:1;text-align:center;padding:15px}.status-green{color:#176745}.status-orange{color:#a16c24}#portrait-warning{display:none;position:fixed;z-index:100;inset:0;background:#123e37;color:#fff;align-items:center;justify-content:center;flex-direction:column;gap:12px}.turn-symbol{font-size:60px;color:#dfc081}@media (orientation:landscape){#portrait-warning{display:flex}#app{display:none}}@media(max-height:720px){.topbar{height:51px}.bottomnav{height:57px}.viewport{padding:6px}.sheet{gap:4px}.surface{padding:6px}.metal-card{padding:5px;gap:2px}.metal-card .discount{padding:2px 0}.price-cell{padding:4px}.sum-card{padding:5px}.titlebar{min-height:28px}.field input,.field select{height:32px}.btn{min-height:32px;padding:6px 9px}}@media(min-width:700px){.viewport{padding-left:max(20px,4vw);padding-right:max(20px,4vw)}.metal-card{padding:12px}.metal-card .discount{padding:7px 0}.topbar{height:68px}.bottomnav{height:74px}}
