:root{color:#111827;font-synthesis:none;background:#f3f5f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at top,#e8edf4 0,#f3f5f8 42%,#eef1f5 100%);min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}.page-shell{min-height:100vh;padding:0}.app{background:#fff;max-width:520px;min-height:100vh;margin:0 auto;box-shadow:0 0 36px #0f172a14}.hero{color:#fff;background:linear-gradient(135deg,#111827,#202938);padding:20px 18px 18px;position:relative;overflow:hidden}.hero:after{content:"";border:1px solid #ffffff14;border-radius:50%;width:130px;height:130px;position:absolute;top:-50px;right:-42px}.brand-line{align-items:center;gap:10px;display:flex}.logo{letter-spacing:.08em;font-size:25px;font-weight:950}.beta{letter-spacing:.13em;color:#cbd5e1;border:1px solid #ffffff47;border-radius:999px;padding:4px 6px;font-size:9px;font-weight:900}.sub{color:#cbd5e1;margin-top:5px;font-size:12px;line-height:1.45}.tabs{z-index:10;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff5;border-bottom:1px solid #e5e7eb;gap:8px;padding:10px 12px;display:flex;position:sticky;top:0;overflow:auto}.tabs button{color:#374151;cursor:pointer;background:#eef2f7;border:0;border-radius:999px;padding:9px 14px;font-weight:800}.tabs button.active{color:#fff;background:#111827}main{padding:16px 14px 30px}h2{letter-spacing:-.02em;margin:3px 0 14px;font-size:23px}.card{border:1px solid #e5e7eb;border-radius:18px;margin-bottom:13px;padding:15px;box-shadow:0 5px 18px #0f172a09}.field{margin:10px 0;display:block}.field>span{color:#6b7280;margin-bottom:6px;font-size:12px;font-weight:800;display:block}input,select,textarea{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:12px;outline:none;width:100%;padding:12px;transition:border .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:#111827;box-shadow:0 0 0 3px #11182714}textarea{resize:vertical;min-height:86px}.grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.btn{color:#fff;cursor:pointer;background:#111827;border:0;border-radius:12px;padding:12px 14px;font-weight:850;transition:transform .15s,opacity .15s}.btn:active{transform:scale(.985)}.full{width:100%}.ok{background:#047857}.map{background:#2563eb;margin-top:3px}.row{justify-content:space-between;align-items:center;gap:12px;display:flex}.muted{color:#6b7280;font-size:12px;line-height:1.4}.price{white-space:nowrap;font-size:20px;font-weight:950}.badge{color:#047857;white-space:nowrap;background:#ecfdf5;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:850}.info{grid-template-columns:1fr 1fr;gap:8px;margin-top:12px;display:grid}.info div{color:#6b7280;background:#f8fafc;border-radius:11px;padding:10px;font-size:12px;overflow:hidden}.info b{color:#111827;white-space:nowrap;text-overflow:ellipsis;margin-top:3px;display:block;overflow:hidden}.offer{border-left:4px solid #111827}.counter{background:#f8fafc;border-radius:13px;margin-top:12px;padding:10px 11px}.counter .field{margin-top:0}.counter .row input{min-width:0}.counter .row .btn{white-space:nowrap}.history{border-left:2px solid #d1d5db;margin:10px 0 2px;padding-left:10px;font-size:12px}.history div{margin:6px 0}.client{color:#1d4ed8}.supplier{color:#047857}.success{color:#065f46;background:#ecfdf5;border-radius:11px;margin-top:10px;padding:10px 11px;font-size:13px}.warn{color:#9a3412;background:#fff7ed}.mapbox{text-align:center;background:linear-gradient(135deg,#dbeafe,#dcfce7);border-radius:13px;justify-content:center;align-items:center;height:134px;margin-top:10px;font-size:13px;line-height:1.55;display:flex}.deal-row{border-bottom:1px solid #f1f5f9;align-items:flex-start;padding:10px 0}.deal-row b{text-align:right;max-width:62%}.deal-button{margin-top:15px}@media (width<=420px){.grid{grid-template-columns:1fr}.counter .row{flex-direction:column;align-items:stretch}.counter .row .btn{width:100%}.row{gap:8px}.price{font-size:18px}}@media (width>=700px){.page-shell{padding:24px 0}.app{border-radius:22px;min-height:calc(100vh - 48px);overflow:hidden}}.api-status{letter-spacing:.12em;margin-top:10px;font-size:10px;font-weight:900}.api-status.online{color:#86efac}.api-status.offline{color:#fca5a5}.global-error{color:#991b1b;background:#fef2f2;border-radius:10px;margin:12px 16px 0;padding:10px 12px;font-size:13px;font-weight:700}.title-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.link-btn{color:#2563eb;cursor:pointer;background:0 0;border:0;font-weight:800}.empty{text-align:center;color:#6b7280;padding:24px}.btn:disabled{opacity:.55;cursor:not-allowed}.splash{color:#cbd5e1;background:#0f172a;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:100vh;font-weight:700;display:flex}.splash-logo{letter-spacing:.12em;color:#fff;font-size:30px;font-weight:950}.auth-page{background:radial-gradient(circle at 50% 0,#29364a 0,#111827 38%,#0b1020 100%);justify-content:center;align-items:flex-start;min-height:100vh;padding:28px 14px;display:flex}.auth-card{background:#fff;border-radius:24px;width:min(560px,100%);padding:24px 22px;box-shadow:0 30px 80px #00000059}.auth-brand{letter-spacing:.1em;color:#111827;font-size:30px;font-weight:950}.auth-sub{color:#6b7280;margin-top:4px;font-size:13px}.auth-switch{background:#f1f5f9;border-radius:14px;grid-template-columns:1fr 1fr;gap:6px;margin:22px 0 16px;padding:5px;display:grid}.auth-switch button,.mini-switch button{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:10px;padding:10px;font-weight:850}.auth-switch button.active,.mini-switch button.active{color:#fff;background:#111827;box-shadow:0 3px 10px #0f172a29}.auth-error{margin:0 0 12px}.auth-submit{margin-top:10px;padding:14px}.auth-foot{text-align:center;color:#64748b;margin-top:16px;font-size:13px}.auth-foot button{color:#2563eb;cursor:pointer;background:0 0;border:0;font-weight:850}.choice-label{color:#64748b;margin:14px 0 7px;font-size:12px;font-weight:850}.choice-grid{grid-template-columns:1fr 1fr;gap:9px;display:grid}.choice{text-align:left;cursor:pointer;color:#111827;background:#fff;border:1px solid #dbe1ea;border-radius:14px;padding:13px}.choice b{font-size:14px;display:block}.choice span{color:#64748b;margin-top:4px;font-size:11px;line-height:1.35;display:block}.choice.active{border-color:#111827;box-shadow:0 0 0 2px #111827}.choice.active:after{content:"✓";float:right;margin-top:-37px;font-weight:950}.mini-switch{background:#f1f5f9;border-radius:12px;grid-template-columns:1fr 1fr;gap:5px;padding:4px;display:grid}.legal-note{color:#94a3b8;margin-top:12px;font-size:10px;line-height:1.45}.user-menu{z-index:2;align-items:center;gap:8px;margin-left:auto;display:flex;position:relative}.user-avatar{color:#111827;background:#fff;border-radius:50%;place-items:center;width:34px;height:34px;font-weight:950;display:grid}.user-mini{flex-direction:column;max-width:145px;display:flex}.user-mini b{white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.user-mini span{color:#94a3b8;font-size:9px}.user-menu button{color:#cbd5e1;cursor:pointer;background:#ffffff0d;border:1px solid #ffffff2e;border-radius:8px;padding:6px 8px;font-size:10px;font-weight:800}.version-pill{border:1px solid;border-radius:999px;margin-left:8px;padding:3px 6px;font-size:8px}.owner-strip{background:#eff6ff;border-radius:12px;align-items:center;gap:8px;margin-bottom:10px;padding:10px 12px;font-size:12px;display:flex}.owner-strip span{color:#64748b}.owner-strip em{color:#2563eb;margin-left:auto;font-style:normal;font-weight:750}.supplier-welcome{text-align:center;padding:28px 18px}.supplier-icon{color:#fff;background:#111827;border-radius:16px;place-items:center;width:54px;height:54px;margin:0 auto 12px;font-size:25px;font-weight:950;display:grid}.supplier-welcome b{margin-bottom:6px;font-size:18px;display:block}.supplier-copy{margin-bottom:0;line-height:1.6}@media (width<=520px){.auth-card{border-radius:20px;padding:20px 16px}.choice-grid{grid-template-columns:1fr}.user-mini{display:none}.hero .brand-line{align-items:flex-start}.user-menu button{padding:6px}.auth-page{padding-top:14px}.auth-card .grid{grid-template-columns:1fr}}.trade-module .market-order{border-left:4px solid #111827}.trade-module .bid-box{background:#f8fafc;border-radius:13px;margin-top:12px;padding:12px}.trade-module .bid-box>label{color:#64748b;margin-bottom:7px;font-size:12px;font-weight:800;display:block}.trade-module .bid-box input{min-width:0}.trade-module .my-offer{color:#065f46;background:#ecfdf5;border-radius:10px;flex-direction:column;gap:4px;margin-top:10px;padding:10px;font-size:12px;display:flex}.trade-module .order-comment{color:#475569;background:#f8fafc;border-radius:10px;margin-top:10px;padding:10px;font-size:13px}.trade-module .trade-foot{text-align:right;margin-top:10px}.trade-module .history{margin:10px 0 12px}.trade-module .history div{flex-wrap:wrap;align-items:baseline;gap:5px;display:flex}.trade-module .history small{color:#94a3b8;margin-left:auto}@media (width<=520px){.trade-module .bid-box .row{flex-direction:column;align-items:stretch}.trade-module .bid-box .btn{width:100%}}.supplier-trade-state{background:#f8fafb;border:1px solid #dfe5eb;border-radius:14px;margin:16px 0 4px;padding:14px}.supplier-trade-state>div:first-child{justify-content:space-between;align-items:center;gap:12px;display:flex}.supplier-trade-state span{color:#66717d;font-size:13px}.supplier-trade-state b{font-size:18px}.counter-alert{background:#eef8f0;border:1px solid #bfe1c6;border-radius:12px;flex-direction:column;gap:4px;margin-top:12px;padding:13px;align-items:flex-start!important;display:flex!important}.counter-alert strong{color:#186b2d;font-size:23px}.counter-alert small{color:#58705e}.accept-counter{margin-top:10px}.trade-notice{margin-bottom:14px}.waiting-counter{color:#735f16;background:#fff8df;border:1px solid #eedb92;border-radius:11px;margin:14px 0;padding:11px 13px;font-size:13px}.waiting-counter b{font-size:15px}
