:root{--blue:#135fe8;--navy:#102448;--ink:#172843;--muted:#5b6d85;--line:#d9e3f1;--bg:#f5f8fd;--gold:#ffcc48}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 'Segoe UI',system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ffbf2f;outline-offset:3px}button{border:1px solid var(--line);border-radius:10px;padding:10px 15px;color:var(--ink);background:white}button.primary{background:var(--blue);border-color:var(--blue);color:white;font-weight:700}button.danger{color:#b42318}a{color:var(--blue)}.wrap{max-width:1180px;margin:auto;padding:0 22px}header{background:white;border-bottom:1px solid var(--line)}nav{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 0;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:800;text-decoration:none;color:var(--navy)}.brand img{height:40px;width:40px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.notice{padding:9px 20px;text-align:center;background:#fff5d8;color:#664e15;font-size:14px}.intro{background:linear-gradient(115deg,#102448,#155cd2);color:white;padding:28px 0 34px}.intro h1{font-size:clamp(26px,4vw,42px);line-height:1.35;margin:0 0 8px}.intro p{margin:0;color:#deebff}.roles{margin-top:22px;display:flex;gap:8px}.roles button{background:transparent;color:white;border-color:#6885b6}.roles .active{background:white;color:var(--blue)}main{padding:26px 0 50px}.panel{background:white;border:1px solid var(--line);padding:22px;border-radius:16px;margin-bottom:22px}.filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:14px;align-items:end}.field{display:flex;flex-direction:column;gap:5px;min-width:0}.field label{font-size:14px;font-weight:650}.field input,.field select,.field textarea{width:100%;min-width:0;padding:10px;border:1px solid #bdcde2;border-radius:8px;background:white;color:var(--ink)}textarea{resize:vertical;min-height:85px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.chip{border-radius:99px;font-size:14px}.chip.active{background:#eaf2ff;border-color:#93b8fa;color:#114db4}.sectionhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}.sectionhead h2{margin:0}.muted,small{color:var(--muted)}small{font-size:14px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{min-width:0;background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}.cover{width:100%;height:200px;display:block;object-fit:cover}.coverbtn{padding:0;position:relative;width:100%;border:0;border-radius:0;overflow:hidden}.coverbtn span{position:absolute;bottom:12px;right:12px;background:#102448e6;color:white;border-radius:7px;padding:5px 9px;font-size:14px}.no-photo{height:155px;display:grid;place-items:center;background:#eaf0fa;color:#607593}.cardbody{padding:18px;flex:1}.card h3{margin:7px 0}.badge{display:inline-block;padding:3px 8px;background:#edf2fb;color:#355278;font-size:13px;border-radius:6px}.badge.pending{background:#fff3d0;color:#76530a}.price{font-size:23px;font-weight:800;margin:10px 0}.price small{font-size:14px;font-weight:400}.facts{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.facts span{background:#f1f5fa;border-radius:6px;font-size:14px;padding:4px 7px}.cardfoot{padding:14px 18px;border-top:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap}.empty{text-align:center;padding:40px 20px;background:white;border:1px dashed #a9bddb;border-radius:16px;grid-column:1/-1}.gallery{display:flex;gap:8px;overflow-x:auto;padding:10px 0;scroll-snap-type:x mandatory}.gallery button{padding:0;flex:0 0 88px;overflow:hidden;scroll-snap-align:start}.gallery img{width:88px;height:70px;object-fit:cover;display:block}.gallery .previewitem{flex:0 0 110px}.previewitem img{width:110px;height:80px;object-fit:cover}.previewitem button{font-size:13px;padding:5px;width:100%}.info{background:#edf4ff;color:#345981;padding:12px;border-radius:9px;font-size:14px}.error{color:#af251f;margin:10px 0}.toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.inquiry{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:12px}.inquiry h3{margin:0}.chat{display:flex;flex-direction:column;gap:12px;max-height:45vh;overflow:auto;padding:14px 0}.bubble{max-width:90%;background:#f0f4fa;border-radius:12px;padding:12px;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#e7f0ff}.bubble p{margin:4px 0;white-space:pre-wrap}.bubble small{display:block}.two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.full{grid-column:1/-1}.wizard{display:flex;gap:6px;flex-wrap:wrap;padding:0;list-style:none}.wizard li{font-size:14px;border-radius:7px;padding:6px 9px;background:#edf2f9}.wizard .active{background:var(--blue);color:white}fieldset{border:0;padding:0;margin:15px 0}legend{font-size:20px;font-weight:700;margin-bottom:10px}.check{display:flex;gap:8px;align-items:start}.check input{margin-top:7px}dialog{border:1px solid var(--line);border-radius:20px;width:min(690px,calc(100% - 24px));max-height:90dvh;padding:0;color:var(--ink);box-shadow:0 25px 90px #051c4960}dialog::backdrop{background:#06142cb3}.dialoghead{position:sticky;top:0;z-index:2;background:white;display:flex;align-items:center;justify-content:space-between;padding:15px 22px;border-bottom:1px solid var(--line);gap:15px}.dialoghead h2{margin:0;font-size:22px}.dialogbody{padding:22px}.close{font-size:24px;line-height:1;padding:8px 12px}.viewer{width:min(1000px,calc(100% - 20px));background:#08162b;color:white}.viewer .dialoghead{background:#08162b}.viewer img{display:block;max-width:100%;height:65dvh;object-fit:contain;margin:auto}.viewer .actions{justify-content:center;padding:12px}.viewer small{color:white}.summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.summary div{padding:10px;background:#f5f8fc;border-radius:8px}.summary strong{display:block}.owner-callout{margin:30px 0;padding:18px 22px;border-left:4px solid var(--blue);display:flex;align-items:center;justify-content:space-between;gap:16px;background:white;border-radius:12px}.owner-callout h3{margin:0}.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);padding:12px 20px;background:#102448;color:white;border-radius:12px;z-index:99}.toast:empty{display:none}footer{border-top:1px solid var(--line);padding:24px 0;color:var(--muted);font-size:14px}.sticky-actions{display:flex;justify-content:space-between;gap:10px;padding-top:18px}.formnote{font-size:14px;color:var(--muted)}@media(max-width:850px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters{grid-template-columns:1fr 1fr}.nav-buttons{width:100%}}@media(max-width:540px){.wrap{padding:0 14px}.grid{grid-template-columns:1fr}.two,.summary{grid-template-columns:1fr}.full{grid-column:auto}.filters{grid-template-columns:1fr}.panel,.dialogbody{padding:16px}.dialoghead{padding:12px 16px}.nav-buttons button{padding:8px 10px;font-size:14px}.owner-callout{align-items:start;flex-direction:column}.brand{font-size:22px}.cardfoot button{flex:1}.intro{padding:22px 0}.viewer img{height:55dvh}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
body:has(dialog[open]){overflow:hidden}.gallery{max-width:100%;overscroll-behavior-x:contain}.gallery::-webkit-scrollbar{height:8px}.gallery::-webkit-scrollbar-thumb{background:#a9bedc;border-radius:8px}.badge{font-size:14px}.previewitem{min-width:110px}dialog .field{margin-bottom:8px}summary{cursor:pointer;font-weight:650}button,input,select{min-height:44px}
.profile-button{display:inline-flex;align-items:center;gap:7px;background:#edf4ff;border-color:#b7cff8;color:#10489f;font-weight:700}.profile-button span:first-child{font-size:18px;line-height:1}.profile-dock{position:fixed;z-index:20;right:18px;bottom:18px;display:none;align-items:center;gap:7px;border-radius:999px;background:#102448;border-color:#102448;color:#fff;font-weight:700;box-shadow:0 8px 25px #10244850}.profile-dock span:first-child{font-size:19px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.profile-meta{margin:12px 0;color:var(--muted);font-size:14px}@media(max-width:540px){.profile-grid{grid-template-columns:1fr}.profile-button span:last-child{display:none}.profile-button{padding:8px 10px}.profile-dock{display:flex}}
.product-main img{width:100%;height:360px;display:block;object-fit:contain;background:#f8fafc}@media(max-width:540px){.product-gallery{min-height:220px;flex-direction:column}.product-thumbs{flex:0 0 auto;flex-direction:row;max-width:100%;max-height:none;overflow-x:auto;overflow-y:hidden;order:2;padding:3px 0}.product-main{min-height:250px}.product-main img{height:250px}.product-thumbs button{flex:0 0 68px}}
.photo-section{margin:0 0 22px}.photo-section h3{margin:0 0 10px;font-size:18px}.product-gallery{display:flex;gap:12px;min-height:260px}.product-thumbs{display:flex;flex:0 0 76px;flex-direction:column;gap:8px;max-height:390px;overflow-y:auto;padding-right:3px}.product-thumbs button{padding:0;border:2px solid transparent;border-radius:9px;overflow:hidden;background:white}.product-thumbs button.selected{border-color:#135fe8}.product-thumbs img{width:68px;height:58px;display:block;object-fit:cover}.product-main{flex:1;min-width:0;display:grid;place-items:center;background:#f1f5fa;border-radius:12px;overflow:hidden}
