:root{--ink:#17372d;--green:#176b54;--lime:#dcef8c;--cream:#f7f1e6;--paper:#fffdf8;--orange:#eb703d;--muted:#68756f;--line:#dedfd7;--shadow:0 18px 55px rgba(23,55,45,.12);font-family:"IBM Plex Sans Thai",sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,select{font:inherit}button,a{cursor:pointer}a{color:inherit;text-decoration:none}.announcement{height:32px;display:grid;place-items:center;background:var(--ink);color:#fff;font-size:12px}.topbar{height:72px;display:flex;align-items:center;gap:30px;padding:0 max(4vw,24px);border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(255,253,248,.94);backdrop-filter:blur(16px);z-index:20}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:23px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:var(--lime);border-radius:13px 13px 13px 3px}.desktop-nav{display:flex;gap:22px;font-size:14px}.desktop-nav a:hover{color:var(--green)}.search-mini{margin-left:auto;display:flex;align-items:center;gap:8px;background:#f0efe8;border-radius:999px;padding:9px 14px;min-width:230px}.search-mini input{border:0;outline:0;background:transparent;width:100%}.header-actions{display:flex;align-items:center;gap:8px}.icon-btn{border:0;background:transparent;padding:9px;border-radius:99px;color:var(--ink)}.icon-btn:hover{background:#eef3ef}.cart-button b{background:var(--orange);color:#fff;padding:1px 6px;border-radius:99px}.avatar{width:36px;height:36px;display:grid;place-items:center;background:#ffd9c5;border-radius:50%;font-weight:700}.page{max-width:1200px;margin:auto;padding:34px max(4vw,24px) 80px}.hero{display:grid;grid-template-columns:1.08fr .92fr;min-height:480px;background:var(--cream);border-radius:32px;overflow:hidden}.hero-copy{padding:64px;display:flex;flex-direction:column;justify-content:center;position:relative}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--green)}h1{font-size:clamp(44px,6vw,78px);line-height:.98;letter-spacing:-2.8px;margin:15px 0 22px}h2{font-size:clamp(30px,4vw,48px);line-height:1.1;margin:8px 0 12px;letter-spacing:-1.2px}h3{margin:5px 0}.hero p,.section-head p{color:var(--muted);line-height:1.7;max-width:580px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.btn{border:0;border-radius:14px;padding:13px 20px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn-primary{background:var(--green);color:#fff}.btn-primary:hover{background:#0f5643}.btn-light{background:#fff;border:1px solid var(--line)}.hero-art{position:relative;background:#d8a175;min-height:420px;overflow:hidden}.hero-art:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 20%,#ffe8bb 0 14%,transparent 14.5%),linear-gradient(145deg,transparent 45%,rgba(23,107,84,.35) 45% 52%,transparent 52%)}.basket{position:absolute;width:260px;height:290px;left:50%;top:52%;transform:translate(-50%,-50%) rotate(4deg);border-radius:50% 50% 44% 44%;background:repeating-linear-gradient(85deg,#b85e32 0 8px,#df9160 8px 15px);box-shadow:var(--shadow)}.basket:after{content:"ทำด้วยใจ";position:absolute;left:45px;right:45px;top:112px;background:#fff6df;padding:16px;text-align:center;font-size:24px;font-weight:700;transform:rotate(-3deg)}.float-card{position:absolute;background:#fff;padding:12px 16px;border-radius:16px;box-shadow:var(--shadow);font-size:13px}.float-card.one{left:7%;top:10%}.float-card.two{right:6%;bottom:9%}.trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:18px;overflow:hidden;margin:28px 0 70px}.trust-item{background:#fff;padding:18px;display:flex;gap:12px;align-items:center}.trust-item b{display:block}.trust-item small{color:var(--muted)}.section-head{display:flex;justify-content:space-between;align-items:end;margin:24px 0}.section-head a{font-weight:600;color:var(--green)}.categories{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.category{border:1px solid var(--line);border-radius:18px;padding:20px 12px;text-align:center;background:#fff;transition:.2s}.category:hover{transform:translateY(-3px);border-color:var(--green)}.category span{font-size:30px;display:block;margin-bottom:8px}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.product-card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;position:relative;transition:.2s}.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.product-visual{height:230px;display:grid;place-items:center;font-size:78px;background:var(--tone)}.product-body{padding:15px}.product-body small{color:var(--muted)}.product-meta{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.price{font-family:Manrope,sans-serif;font-weight:700}.save{position:absolute;right:12px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:#fff}.story-band{margin-top:70px;background:var(--green);color:#fff;border-radius:28px;padding:48px;display:grid;grid-template-columns:1.4fr .6fr;align-items:center}.story-band p{color:#d7e9e2}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat{background:rgba(255,255,255,.12);padding:18px;border-radius:18px}.stat strong{font:700 30px Manrope;display:block}.filters{display:flex;gap:10px;overflow:auto;padding-bottom:12px}.chip{border:1px solid var(--line);background:#fff;border-radius:99px;padding:9px 16px;white-space:nowrap}.chip.active{background:var(--ink);color:#fff;border-color:var(--ink)}.browse-bar{display:grid;grid-template-columns:1fr auto;gap:12px;margin:20px 0 30px}.browse-bar input{border:1px solid var(--line);border-radius:14px;padding:14px}.browse-bar select{border:1px solid var(--line);border-radius:14px;padding:0 14px;background:#fff}.detail{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}.detail-visual{min-height:520px;border-radius:30px;display:grid;place-items:center;font-size:170px;background:var(--tone)}.detail-copy{padding:20px 0}.rating{color:#ce6a26;margin:14px 0}.detail-price{font:700 34px Manrope;margin:18px 0}.seller-box{border:1px solid var(--line);padding:16px;border-radius:16px;display:flex;align-items:center;gap:12px;margin:24px 0}.seller-pic{width:44px;height:44px;border-radius:50%;background:var(--lime);display:grid;place-items:center}.quantity{display:flex;align-items:center;border:1px solid var(--line);border-radius:12px;width:max-content}.quantity button{border:0;background:transparent;padding:10px 14px}.seller-hero{background:linear-gradient(125deg,#17372d,#2e8068);color:#fff;border-radius:30px;padding:58px;display:grid;grid-template-columns:1.15fr .85fr;gap:30px}.seller-hero p{color:#dcebe5}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px}.step{padding:24px;border:1px solid var(--line);border-radius:20px}.step-num{font:700 13px Manrope;color:var(--orange)}.signup-card{background:#fff;color:var(--ink);border-radius:24px;padding:28px}.field{display:grid;gap:6px;margin:12px 0}.field label{font-size:13px;color:var(--muted)}.field input,.field select{padding:12px;border:1px solid var(--line);border-radius:12px;width:100%;background:#fff}.dashboard{display:grid;grid-template-columns:220px 1fr;gap:28px}.side-panel{background:var(--ink);color:#fff;padding:24px;border-radius:24px;height:max-content}.side-panel a{display:block;padding:11px;border-radius:10px;color:#c8d8d2}.side-panel a.active,.side-panel a:hover{background:rgba(255,255,255,.1);color:#fff}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metric{border:1px solid var(--line);border-radius:18px;padding:18px;background:#fff}.metric small{color:var(--muted)}.metric strong{display:block;font:700 28px Manrope;margin-top:8px}.chart{height:220px;border:1px solid var(--line);border-radius:20px;margin-top:18px;padding:22px;display:flex;gap:12px;align-items:end}.bar{flex:1;background:var(--lime);border-radius:8px 8px 2px 2px;min-height:12px}.orders{width:100%;border-collapse:collapse;margin-top:24px;background:#fff}.orders th,.orders td{text-align:left;padding:14px;border-bottom:1px solid var(--line);font-size:14px}.badge{background:#e3f2e9;color:var(--green);border-radius:99px;padding:5px 9px;font-size:12px}.empty{text-align:center;padding:80px 20px}.mobile-nav{display:none}#toast{position:fixed;right:24px;bottom:24px;background:var(--ink);color:#fff;padding:14px 20px;border-radius:13px;transform:translateY(100px);opacity:0;transition:.25s;z-index:50}#toast.show{transform:none;opacity:1}
@media(max-width:900px){.desktop-nav{display:none}.search-mini{min-width:0}.hero,.detail,.seller-hero{grid-template-columns:1fr}.hero-copy{padding:42px}.categories{grid-template-columns:repeat(3,1fr)}.product-grid{grid-template-columns:repeat(2,1fr)}.story-band{grid-template-columns:1fr}.dashboard{grid-template-columns:1fr}.side-panel{display:none}.metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){body{padding-bottom:66px}.announcement{font-size:10px}.topbar{height:62px;padding:0 16px}.brand{font-size:19px}.brand-mark{width:34px;height:34px}.search-mini{display:none}.header-actions .icon-btn:first-child{display:none}.page{padding:20px 16px 52px}.hero{border-radius:22px}.hero-copy{padding:34px 24px}.hero-art{min-height:330px}h1{font-size:43px}.trust-row{grid-template-columns:1fr;margin-bottom:48px}.categories{grid-template-columns:repeat(3,1fr)}.category{padding:14px 6px;font-size:12px}.product-grid{grid-template-columns:repeat(2,1fr);gap:10px}.product-visual{height:160px;font-size:56px}.product-body{padding:12px}.story-band{padding:28px}.detail{gap:20px}.detail-visual{min-height:360px;font-size:120px}.seller-hero{padding:30px 22px}.steps{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr;gap:9px}.metric{padding:14px}.orders{display:block;overflow-x:auto}.mobile-nav{display:flex;position:fixed;z-index:30;bottom:0;left:0;right:0;height:66px;background:#fff;border-top:1px solid var(--line);justify-content:space-around;align-items:center}.mobile-nav a{display:grid;text-align:center;font-size:19px}.mobile-nav span{font-size:10px}.cart-button{font-size:0}.cart-button b{font-size:12px}}

.brand{gap:11px;font-size:inherit;letter-spacing:normal}
.brand-logo{width:46px;height:46px;flex:none;filter:drop-shadow(0 4px 8px rgba(23,55,45,.12))}
.brand-copy{display:flex;flex-direction:column;line-height:1.08;gap:4px}
.brand-copy strong{font-size:19px;font-weight:700;letter-spacing:-.35px;color:var(--ink)}
.brand-copy small{font-size:10px;font-weight:500;letter-spacing:.25px;color:var(--green)}
@media(max-width:600px){.brand{gap:8px}.brand-logo{width:40px;height:40px}.brand-copy strong{font-size:16px}.brand-copy small{font-size:9px}}

:root{--ink:#17372d;--green:#176b54;--lime:#e7efb7;--cream:#f4eee3;--paper:#fffdf8;--orange:#c9572e;--muted:#495b53;--line:#d8d8ce;--shadow:0 20px 60px rgba(23,55,45,.13)}
body{font-family:"Anuphan","IBM Plex Sans Thai",Tahoma,sans-serif;font-size:18px;line-height:1.75;color:var(--ink)}
h1,h2{font-family:"Noto Serif Thai","Anuphan",serif;line-height:1.22;letter-spacing:0}
h3{font-family:"Anuphan",sans-serif;line-height:1.45}
.eyebrow{text-transform:none;letter-spacing:0;font-size:14px}
p{line-height:1.8}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #bc4f2b;outline-offset:3px}
button,.btn,summary{min-height:46px}
.skip-link{position:absolute;top:-100px;left:16px;background:#fff;color:var(--ink);padding:12px 18px;border-radius:10px;z-index:100;box-shadow:var(--shadow)}
.skip-link:focus{top:12px}
.hero{border:1px solid #e8decb;box-shadow:0 18px 50px rgba(65,54,33,.07)}
.hero-copy{padding:clamp(36px,5vw,70px)}
.hero h1{font-size:clamp(46px,5vw,70px);line-height:1.24;letter-spacing:-1px}
.hero-art{background-image:url("maker-hero.png?v=20261012-2");background-size:cover;background-position:65% center;min-height:480px}
.hero-art:before,.basket{display:none}
.float-card{font-weight:600;border:1px solid rgba(23,55,45,.08);box-shadow:0 12px 30px rgba(23,55,45,.15)}
.section-head{gap:18px}
.section-head h2{font-size:clamp(30px,3.7vw,44px)}
.trust-item{min-height:92px}
.product-card{box-shadow:0 6px 20px rgba(23,55,45,.04)}
.product-visual{position:relative}
.announcement{min-height:38px;height:auto;padding:5px 16px;font-size:14px;letter-spacing:.1px}
.topbar{gap:22px}
.search-mini{min-height:48px}
.search-mini input{font-size:16px}
.header-actions{gap:6px}
.a11y-menu{position:relative}
.a11y-menu summary{list-style:none;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 11px;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}
.a11y-menu summary::-webkit-details-marker{display:none}
.a11y-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(300px,90vw);padding:18px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);z-index:40}
.a11y-panel>div{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.a11y-panel button{border:1px solid var(--line);background:#fff;border-radius:10px;min-width:48px;padding:8px 12px;color:var(--ink)}
.a11y-panel button[data-contrast]{flex:1;font-size:14px}
.video-teaser{max-width:1200px;margin:32px auto 66px;padding:22px 26px;display:flex;align-items:center;gap:16px;border:1px solid #d4d9c3;border-radius:20px;background:linear-gradient(110deg,#edf1d9,#fff8e8);box-shadow:0 12px 35px rgba(23,55,45,.06)}
.video-teaser-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:var(--green);color:#fff;flex:none}
.video-teaser strong,.video-teaser small{display:block}
.video-teaser strong{font:600 20px "Noto Serif Thai",serif}
.video-teaser small{font-size:15px;color:var(--muted);margin-top:3px}
.video-teaser>b{margin-left:auto;font-size:24px;color:var(--green)}
.video-page{max-width:1200px}
.video-hero{display:grid;grid-template-columns:1fr .86fr;gap:42px;align-items:center;padding:clamp(26px,4vw,52px);border-radius:32px;background:radial-gradient(circle at 10% 10%,#f9f3df 0,#f1eee2 45%,#e3ebdc 100%);border:1px solid #e3e2d4}
.video-intro h1{font-size:clamp(44px,5.3vw,68px);margin:12px 0 18px}
.video-intro>p{font-size:19px;color:#3d5148;max-width:610px}
.quota-banner{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-top:26px;background:#fff;border:1px solid #d7dfc3;border-radius:18px;max-width:420px;box-shadow:0 10px 28px rgba(23,55,45,.07)}
.quota-icon{width:46px;height:46px;display:grid;place-items:center;background:var(--green);color:#fff;border-radius:15px;flex:none}
.quota-banner strong,.quota-banner small{display:block}
.quota-banner strong{font-size:18px}
.quota-banner small{font-size:14px;color:var(--muted)}
.video-demo-note{font-size:14px!important;color:#53655c!important;margin-top:12px}
.video-upload-card{background:#fff;border:1px solid #e0e2d8;border-radius:24px;padding:26px;box-shadow:0 18px 50px rgba(23,55,45,.1)}
.upload-heading{display:flex;gap:14px;align-items:center;margin-bottom:18px}
.upload-heading h2{font-size:26px;margin:0}
.upload-heading p{font-size:14px;color:var(--muted);margin:3px 0 0}
.upload-symbol{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:#e8edcf;color:var(--green);font-size:26px}
.file-drop{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:2px dashed #a8b39a;border-radius:17px;background:#fcfcf7;text-align:center;padding:15px;cursor:pointer}
.file-drop>span{font-size:28px;color:var(--green);line-height:1.2}
.file-drop strong{font-size:17px}
.file-drop small{font-size:13px;color:var(--muted)}
.file-drop input{max-width:100%;font-size:14px;margin-top:8px}
.clip-preview{margin-top:12px;display:grid;grid-template-columns:90px 1fr;gap:12px;align-items:center;color:var(--muted);font-size:14px}
.clip-preview[hidden]{display:none}
.clip-preview video{width:90px;height:160px;object-fit:cover;border-radius:12px;background:#17251e}
.video-caption-label{display:block;font-weight:600;margin-top:16px}
.video-upload-card textarea{display:block;width:100%;margin:6px 0 14px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;resize:vertical;min-height:60px;font-size:16px}
.video-submit{width:100%;min-height:52px}
.video-submit:disabled{opacity:.56;cursor:not-allowed}
.free-posting-note{text-align:center;color:var(--muted);font-size:13px;margin:8px 0 0}
.form-error{min-height:0;margin:5px 0 0;color:#a73621;font-size:14px;font-weight:600}
.video-list-section{margin-top:64px}
.daily-limit{display:inline-flex;align-items:center;min-height:40px;padding:6px 14px;border-radius:999px;background:#e7edcf;color:#294a3b;font-size:14px;font-weight:700;white-space:nowrap}
.video-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.video-post-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 24px rgba(23,55,45,.06)}
.video-frame{position:relative;background:#17251e;aspect-ratio:9/16}
.video-frame video{width:100%;height:100%;object-fit:cover}
.video-duration{position:absolute;right:10px;top:10px;background:rgba(18,34,27,.82);color:#fff;border-radius:8px;padding:3px 8px;font-size:12px;pointer-events:none}
.video-post-copy{padding:15px;display:grid;gap:5px}
.video-post-copy p{font-weight:600;margin:0}
.video-post-copy small{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.video-post-badge{width:max-content;margin-top:4px;color:#255640;background:#e7f0df;border-radius:999px;padding:4px 9px;font-size:12px}
.video-empty{grid-column:1/-1;min-height:190px;display:grid;place-content:center;text-align:center;border:1px dashed #bec6b3;border-radius:20px;background:#fbfcf7;padding:25px}
.video-empty>span{margin:auto;width:48px;height:48px;border-radius:16px;background:#e7edcf;color:var(--green);display:grid;place-items:center}
.video-empty h3{margin:9px 0 2px}
.video-empty p{margin:0;color:var(--muted)}
body.high-contrast{--ink:#071f16;--green:#00472f;--muted:#26352d;--line:#858e87;--paper:#fff;--cream:#fff7df;background:#fff;color:#071f16}
body.high-contrast .announcement,body.high-contrast .side-panel{background:#071f16}
body.high-contrast .btn-primary{background:#00472f}
@media(max-width:1000px){.topbar{gap:13px}.desktop-nav{gap:13px}.search-mini{min-width:155px}.video-teaser{margin-left:24px;margin-right:24px}}
@media(max-width:900px){.video-hero{grid-template-columns:1fr;gap:24px}.video-upload-card{max-width:640px}.hero-art{min-height:430px}}
@media(max-width:600px){body{font-size:18px}.topbar{gap:8px}.brand-logo{width:40px;height:40px}.brand-copy strong{font-size:16px}.brand-copy small{font-size:9px}.header-actions{gap:3px}.a11y-menu summary{padding:0 8px;min-width:42px}.header-actions .icon-btn{padding:7px;min-width:42px}.avatar{min-width:40px}.video-teaser{margin:24px 16px 48px;padding:16px;gap:12px}.video-teaser strong{font-size:17px}.video-teaser small{font-size:14px;line-height:1.45}.video-teaser-icon{width:42px;height:42px}.video-hero{padding:24px 18px;border-radius:22px;gap:20px}.video-intro h1{font-size:43px}.video-intro>p{font-size:17px}.video-upload-card{padding:19px;border-radius:20px}.video-list-section{margin-top:44px}.video-post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.video-post-copy{padding:11px}.video-post-copy p{font-size:15px}.daily-limit{font-size:12px;padding:5px 10px}.section-head{align-items:center}.mobile-nav{height:72px}.mobile-nav a{min-width:20%;min-height:64px;align-content:center;font-size:22px}.mobile-nav span{font-size:11px}.hero-art{min-height:330px;background-position:70% center}.announcement{font-size:12px}}

.hero-slider{position:relative;overflow:hidden;border-radius:32px;background:var(--cream);border:1px solid #e8decb;box-shadow:0 18px 50px rgba(65,54,33,.07)}
.hero-slide{display:none;grid-template-columns:1.02fr .98fr;min-height:470px}
.hero-slide.is-active{display:grid}
.hero-slide .hero-copy{padding:clamp(32px,5vw,70px)}
.hero-slide h1{font-family:"Noto Serif Thai",serif;font-size:clamp(42px,4.8vw,64px);line-height:1.28;letter-spacing:-1px;margin:14px 0 18px}
.hero-slide p{color:var(--muted);line-height:1.8;max-width:580px;font-size:17px}
.hero-slide .hero-art{min-height:100%;background-size:cover;background-position:center}
.hero-art-print{background-image:url("3d-print-slide.png?v=20261012-2");background-position:62% center}
.hero-art-maker{background-image:url("maker-hero.png?v=20261012-2");background-position:66% center}
.hero-controls{position:absolute;right:24px;bottom:20px;display:flex;align-items:center;gap:12px;padding:7px 9px;background:rgba(255,253,248,.94);border:1px solid rgba(23,55,45,.12);border-radius:999px;box-shadow:0 8px 22px rgba(23,55,45,.12);font-size:13px}
.hero-controls button{width:38px;height:38px;border:0;border-radius:50%;background:var(--ink);color:#fff;font-size:18px}
.hero-controls button:hover{background:var(--green)}
.category{padding:10px 8px 14px;overflow:hidden;min-width:0}

/* Marketplace information pages and expanded navigation */
.desktop-nav{gap:clamp(9px,1.1vw,20px);white-space:nowrap;flex-shrink:1}
.desktop-nav a{font-size:clamp(12px,.9vw,14px)}
.info-page{max-width:1120px;margin:0 auto;padding-top:34px}
.info-back,.info-inline-link{display:inline-flex;color:var(--green);font-weight:700;margin:0 0 22px}
.info-hero{margin:0 0 24px;padding:30px 34px;border-radius:24px;background:linear-gradient(125deg,#f7f1e6,#edf2e3);border:1px solid var(--line)}
.info-hero h1{font:700 clamp(36px,5vw,56px)/1.2 "Noto Serif Thai",serif;margin:10px 0}
.info-hero p{font-size:18px;color:var(--muted);margin:0;line-height:1.7}
.info-notice{border:1px solid #e7c994;background:#fff8e8;border-radius:18px;padding:17px 20px;margin:20px 0;color:#60471f}
.info-notice p{margin:5px 0 0;line-height:1.65}
.info-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;margin:16px 0;scroll-margin-top:95px}
.info-card h2{font:700 24px "Noto Serif Thai",serif;margin:0 0 12px}
.info-card p,.info-card li{font-size:16px;line-height:1.8;color:#43564d}
.info-card ul,.info-card ol{padding-left:24px;margin:12px 0}
.info-card li{padding:3px 0}
.info-danger{border-color:#e7c0ad;background:#fffaf7}
.info-danger h2{color:#8c3a23}
.info-warning{background:#fff8e8;border-color:#e7c994}
.info-empty{text-align:center;padding:48px 22px}
.info-empty p{max-width:600px;margin:0 auto 20px}
.info-icon{display:grid;place-items:center;margin:0 auto 12px;width:54px;height:54px;border-radius:17px;background:#eaf1d2;color:var(--green);font-size:25px}
.info-link-row{display:flex;flex-wrap:wrap;gap:18px}
.info-link-row a,.info-inline-link{color:var(--green);font-weight:700}
.info-faq{border-top:1px solid var(--line);padding:16px 0}
.info-faq summary{font-weight:700;cursor:pointer}
.info-faq p{margin:10px 0 0}
.info-toc{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}
.info-toc a{border:1px solid var(--line);border-radius:999px;padding:9px 14px;background:#fff;color:var(--green);font-weight:600}
.info-footnote{color:var(--muted);font-size:14px;line-height:1.7;padding:4px 4px 30px}
.mobile-more{display:none}
@media(max-width:1280px) and (min-width:901px){.topbar{gap:14px;padding-left:max(2vw,18px);padding-right:max(2vw,18px)}.desktop-nav{gap:9px}.desktop-nav a{font-size:12px}.search-mini{min-width:155px}.header-actions{gap:6px}}
@media(max-width:900px){body{padding-bottom:70px}.desktop-nav{display:none}.mobile-nav{display:flex;position:fixed;z-index:30;bottom:0;left:0;right:0;height:68px;background:#fff;border-top:1px solid var(--line);justify-content:space-around;align-items:center}.mobile-nav>a{display:grid;text-align:center;align-content:center;min-width:16%;min-height:60px;font-size:21px}.mobile-nav> a span,.mobile-more summary span{font-size:10px}.mobile-more{display:block;position:relative;min-width:16%;text-align:center}.mobile-more summary{list-style:none;display:grid;justify-items:center;align-content:center;min-height:60px;font-size:23px;cursor:pointer}.mobile-more summary::-webkit-details-marker{display:none}.mobile-more-panel{position:absolute;right:4px;bottom:65px;min-width:190px;display:grid;padding:8px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);text-align:left}.mobile-more-panel a{display:block!important;padding:12px!important;border-radius:9px;font-size:15px!important}.info-page{padding-top:24px}}
@media(max-width:600px){.info-page{padding:18px 14px 40px}.info-hero{padding:23px 20px;border-radius:20px}.info-hero p{font-size:16px}.info-card{padding:19px;margin:12px 0}.info-card h2{font-size:21px}.info-card p,.info-card li{font-size:15px}.info-toc{gap:7px}.info-toc a{font-size:13px;padding:8px 11px}.mobile-nav{height:72px}.mobile-nav>a{min-height:64px}.mobile-more summary{min-height:64px}}
.category-image{display:block;width:100%;aspect-ratio:1.45;border-radius:13px;margin-bottom:10px;background-image:url("category-sprite.png");background-size:300% 200%;background-repeat:no-repeat}
.category-food .category-image{background-position:0 0}
.category-fashion .category-image{background-position:50% 0}
.category-home .category-image{background-position:100% 0}
.category-beauty .category-image{background-position:0 100%}
.category-craft .category-image{background-position:50% 100%}
.category-3d .category-image{background-position:100% 100%}
.category-label{display:block;font-size:15px;line-height:1.4}
@media(max-width:900px){.hero-slide{grid-template-columns:1fr}.hero-slide .hero-copy{padding:36px 42px 18px}.hero-slide .hero-art{min-height:340px}.hero-controls{bottom:16px;right:18px}}
@media(max-width:600px){.hero-slider{border-radius:22px}.hero-slide .hero-copy{padding:30px 24px 14px}.hero-slide h1{font-size:39px}.hero-slide p{font-size:16px}.hero-slide .hero-art{min-height:250px}.hero-controls{bottom:12px;right:12px;gap:8px}.hero-controls button{width:36px;height:36px}.categories{gap:9px}.category{padding:8px 6px 11px;border-radius:15px}.category-image{aspect-ratio:1.15;border-radius:11px}.category-label{font-size:13px}}

.marketplace-home{padding-top:24px}
.market-home-hero{display:grid;grid-template-columns:1.08fr .92fr;min-height:390px;border:1px solid #e8decb;border-radius:30px;overflow:hidden;background:var(--cream);box-shadow:0 18px 50px rgba(65,54,33,.07)}
.market-home-copy{padding:clamp(28px,4.5vw,58px);display:flex;flex-direction:column;justify-content:center}
.market-creative-tagline{letter-spacing:0;text-transform:none;font-size:15px;line-height:1.55}
.market-home-copy h1{font-family:"Noto Serif Thai",serif;font-size:clamp(38px,4.5vw,60px);line-height:1.25;letter-spacing:-1px;margin:12px 0 16px}
.market-home-copy p{max-width:580px;color:var(--muted);font-size:17px;line-height:1.8}
.market-home-image{min-height:360px;background:url("maker-hero.png?v=20261012-2") 62% center/cover no-repeat}
.marketplace-home .trust-row{margin:24px 0 54px}
.marketplace-home .section-head{margin:34px 0 20px}
.marketplace-home .section-head p{margin:8px 0;color:var(--muted);line-height:1.6}
.marketplace-home .categories{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.marketplace-home .category-image{background-image:url("category-sprite-v2.png?v=20261012-2");aspect-ratio:1.25}
.marketplace-home .category-food .category-image{background-position:0 100%}
.marketplace-home .category-fashion .category-image{background-position:50% 100%}
.marketplace-home .category-home .category-image{background-position:100% 0}
.marketplace-home .category-book .category-image{background-position:0 0}
.marketplace-home .category-toy .category-image{background-position:50% 0}
.marketplace-home .category-craft .category-image{background-position:100% 100%}
.marketplace-home .product-grid{margin-bottom:52px}
.short-video-section{margin:48px 0 56px}
.seller-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.seller-video-card{display:block;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;transition:.2s}
.seller-video-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.video-poster{position:relative;display:flex;align-items:end;justify-content:space-between;aspect-ratio:9/16;padding:14px;background-image:url("category-sprite-v2.png?v=20261012-2");background-size:300% 200%;background-repeat:no-repeat;color:#fff}
.video-poster:before{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(23,55,45,.72))}
.video-poster-book{background-position:0 0}.video-poster-toy{background-position:50% 0}.video-poster-craft{background-position:100% 100%}
.video-poster i,.video-poster b{position:relative;z-index:1}
.video-poster i{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#fff;color:var(--ink);font-style:normal}
.video-poster b{font-size:12px;font-weight:500}
.seller-video-copy{display:grid;gap:5px;padding:14px}
.seller-video-copy small,.video-owner-note,.assistant-demo-note{color:var(--muted);font-size:13px;line-height:1.6}
.video-owner-note{margin:12px 0 0}
.assistant-section{padding:36px;border-radius:28px;background:#f6f4ec;border:1px solid #e5e1d3}
.assistant-section .section-head{margin:0 0 20px}
.assistant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.assistant-card{padding:24px;border-radius:22px;background:#fff;border:1px solid var(--line)}
.assistant-mark{width:44px;height:44px;display:grid;place-items:center;border-radius:15px;background:#eaf1e9;color:var(--green);font-size:25px;margin-bottom:16px}
.assistant-card h3{font-size:24px;line-height:1.35;margin:8px 0}
.assistant-card>p{color:var(--muted);line-height:1.7}
.assistant-card form{margin-top:18px}
.assistant-card label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.assistant-input-row{display:flex;gap:8px}
.assistant-input-row input{min-width:0;flex:1;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}
.assistant-input-row .btn{white-space:nowrap;padding:11px 15px}
.assistant-start-link{display:inline-block;margin-top:14px;color:var(--green);font-weight:600}
.seller-draft{padding:14px;border-radius:12px;background:#f1f4e9;color:var(--ink);line-height:1.7}
.assistant-demo-note{margin:16px 0 0}
.buyer-faq-list{display:grid;gap:0;margin-top:12px;border-top:1px solid var(--line)}
.buyer-faq-item{border-bottom:1px solid var(--line)}
.buyer-faq-item summary{position:relative;list-style:none;cursor:pointer;padding:14px 34px 14px 2px;font-weight:600;line-height:1.55}
.buyer-faq-item summary::-webkit-details-marker{display:none}
.buyer-faq-item summary::after{content:"＋";position:absolute;right:3px;top:13px;color:var(--green);font-size:18px}
.buyer-faq-item[open] summary::after{content:"−"}
.buyer-faq-item summary:focus-visible{outline:2px solid #97bcaa;outline-offset:2px;border-radius:5px}
.buyer-faq-item p{margin:0;padding:0 2px 15px;color:var(--muted);font-size:14px;line-height:1.75}
.seller-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:52px 0 0;padding:30px 34px;border-radius:24px;background:var(--ink);color:#fff}
.seller-welcome .eyebrow{color:var(--lime)}
.seller-welcome h2{font-size:clamp(24px,3vw,34px);margin:8px 0}
.seller-welcome p{max-width:670px;margin:0;color:#d7e9e2;line-height:1.7}
.seller-welcome .btn{flex:none;background:var(--lime);color:var(--ink)}
@media(max-width:900px){.market-home-hero{grid-template-columns:1fr}.market-home-copy{padding:36px 38px 20px}.market-home-image{min-height:320px;background-position:center 57%}.marketplace-home .categories{grid-template-columns:repeat(3,minmax(0,1fr))}.assistant-section{padding:26px}.seller-video-grid{gap:12px}}
@media(max-width:600px){.marketplace-home{padding-top:14px}.market-home-hero{border-radius:22px}.market-home-copy{padding:28px 22px 18px}.market-creative-tagline{font-size:14px}.market-home-copy h1{font-size:38px}.market-home-copy p{font-size:16px}.market-home-copy .actions{display:grid;grid-template-columns:1fr}.market-home-image{min-height:230px}.marketplace-home .trust-row{margin:18px 0 36px}.marketplace-home .categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.marketplace-home .category{padding:8px 7px 12px}.marketplace-home .category-image{aspect-ratio:1.4}.marketplace-home .category-label{font-size:14px}.seller-video-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.video-poster{aspect-ratio:9/16;padding:8px}.video-poster i{width:34px;height:34px}.video-poster b{font-size:10px}.assistant-section{padding:20px 16px;border-radius:22px}.assistant-grid{grid-template-columns:1fr;gap:12px}.assistant-card{padding:20px 17px}.assistant-card h3{font-size:21px}.assistant-input-row{display:grid;grid-template-columns:1fr}.assistant-input-row .btn{width:100%}.seller-welcome{display:grid;padding:24px 20px;gap:16px}.seller-welcome .btn{width:100%}}
.marketplace-home>.video-teaser{display:none}
.seller-listing-panel{margin:34px 0 0;padding:30px;border:1px solid var(--line);border-radius:26px;background:#fff}
.seller-listing-panel .section-head{margin:0 0 20px}
.seller-listing-panel .section-head h2{font-size:clamp(26px,3.5vw,38px)}
.seller-listing-panel .section-head p{color:var(--muted);line-height:1.65}
.seller-product-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px;border-radius:20px;background:#f8f7f1}
.seller-product-form label{display:grid;gap:7px;font-size:14px;font-weight:600}
.seller-product-form input,.seller-product-form select,.seller-product-form textarea{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}
.seller-product-form textarea{resize:vertical;line-height:1.6}
.seller-product-form .seller-description-field{grid-column:1/-1}
.seller-product-form .seller-photo-field small{font-weight:400;color:var(--muted)}
.seller-product-form>.btn{width:max-content}
.seller-listing-note{grid-column:1/-1;margin:0;color:var(--muted);font-size:13px}
.seller-listing-results{display:grid;gap:12px;margin-top:16px}
.seller-listing-results>p{padding:16px;border:1px dashed var(--line);border-radius:14px;color:var(--muted)}
.seller-listing-preview-card{display:grid;grid-template-columns:140px 1fr;gap:16px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:16px}
.seller-listing-preview-card img{width:140px;height:120px;object-fit:cover;border-radius:12px}
.seller-listing-preview-card p{margin:6px 0;color:var(--muted);line-height:1.6}
.seller-listing-preview-card small{color:var(--green);font-weight:700}
@media(max-width:600px){.seller-listing-panel{padding:20px 14px;border-radius:20px}.seller-product-form{grid-template-columns:1fr;padding:16px}.seller-product-form .seller-description-field,.seller-listing-note{grid-column:auto}.seller-product-form>.btn{width:100%}.seller-listing-preview-card{grid-template-columns:94px 1fr;gap:12px}.seller-listing-preview-card img{width:94px;height:94px}}
.related-products{margin-top:68px;padding-top:34px;border-top:1px solid var(--line)}
.related-products .section-head{align-items:end;gap:20px}
.related-products .section-head p{margin:8px 0 0;color:var(--muted);line-height:1.6}
.related-card{min-width:0}
.related-reason{display:inline-flex;margin:0 0 8px 4px;padding:5px 10px;border-radius:999px;background:#edf2e6;color:var(--green);font-size:12px;font-weight:600}
@media(max-width:600px){.related-products{margin-top:44px;padding-top:26px}.related-products .section-head{align-items:start}.related-products .section-head>a{font-size:13px;white-space:nowrap}}

/* Friendly generated basket icon replaces the text cart glyph. */
.cart-button{font-size:0;display:flex;align-items:center;gap:4px;padding:4px 8px}
.cart-button::before{content:"";display:inline-block;width:34px;height:34px;background:url("cart-basket.png?v=20261012-1") center/contain no-repeat;filter:drop-shadow(0 2px 3px rgba(23,55,45,.16))}
.cart-button b{font-size:12px}

/* Approved market-basket logo lockup */
.topbar{height:96px}
.brand{gap:0}
.brand-logo{display:block;width:132px;height:88px;flex:none;object-fit:contain;filter:none}
@media(max-width:600px){.topbar{height:72px}.brand-logo{width:102px;height:68px}}

/* Accessibility control: magnifier with a plus sign. */
.a11y-menu summary{position:relative;width:44px;height:44px;padding:0;color:var(--ink);font-size:0;background-image:url("accessibility-magnifier.png?v=20261012-1");background-size:34px 34px;background-position:center;background-repeat:no-repeat}
.a11y-menu summary::before,.a11y-menu summary::after{display:none}

/* Seller-only chat helper prototype in the dashboard. */
.seller-ai{grid-column:1/-1;display:grid;grid-template-columns:.72fr 1.28fr;gap:22px;margin-top:8px;padding:26px;border:1px solid #dce2d4;border-radius:24px;background:linear-gradient(135deg,#f3f5e7,#fffaf0)}
.seller-ai-intro{align-self:center}
.seller-ai-intro .eyebrow{color:var(--green)}
.seller-ai-intro h2{font-size:clamp(25px,3vw,34px);margin:8px 0}
.seller-ai-intro p{color:var(--muted);line-height:1.65;margin:0}
.seller-ai-mode{display:inline-flex;margin-top:14px;padding:6px 10px;border-radius:99px;background:#e8eddb;color:#375446;font-size:12px;font-weight:600}
.seller-ai-chat{min-width:0;padding:17px;border:1px solid var(--line);border-radius:18px;background:#fff}
.seller-ai-log{height:250px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:2px 4px 12px;scroll-behavior:smooth}
.seller-ai-message{max-width:88%;padding:11px 14px;border-radius:15px;background:#edf2e6;color:var(--ink)}
.seller-ai-message[data-from="user"]{align-self:flex-end;background:var(--green);color:#fff;border-bottom-right-radius:5px}
.seller-ai-message[data-from="assistant"]{align-self:flex-start;border-bottom-left-radius:5px}
.seller-ai-message small{display:block;margin-bottom:3px;font-size:11px;font-weight:700;opacity:.78}
.seller-ai-message p{margin:0;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.seller-ai-prompts{display:flex;flex-wrap:wrap;gap:7px;margin:6px 0 12px}
.seller-ai-prompts button{border:1px solid var(--line);border-radius:99px;padding:7px 11px;background:#fff;color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
.seller-ai-prompts button:hover{border-color:var(--green);background:#f5f8ef}
.seller-ai-form{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end}
.seller-ai-form textarea{min-height:48px;max-height:130px;resize:vertical;padding:11px 13px;border:1px solid var(--line);border-radius:13px;background:#fff;font:inherit;font-size:15px;line-height:1.45}
.seller-ai-form textarea:focus{outline:2px solid #97bcaa;outline-offset:1px}
.seller-ai-form .btn{min-height:46px;padding:10px 16px}
.seller-ai-disclaimer{display:block;margin-top:9px;color:var(--muted);font-size:11px;line-height:1.5}
@media(max-width:900px){.seller-ai{grid-template-columns:1fr;gap:15px}}
@media(max-width:600px){.seller-ai{padding:18px 14px;border-radius:20px}.seller-ai-log{height:220px}.seller-ai-form{grid-template-columns:1fr}.seller-ai-form .btn{width:100%}.seller-ai-message{max-width:94%}}

/* Buyer-facing seller profiles, chat, best-seller highlights, and local video feed. */
.best-selling-section{margin:52px 0 12px}
.best-selling-badge{position:absolute;z-index:2;left:12px;top:12px;padding:5px 10px;border-radius:99px;background:#f0a23d;color:#fff;font-size:12px;font-weight:700;box-shadow:0 3px 10px rgba(91,57,19,.12)}
.verified-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:99px;background:#e7f2ec;color:#176b54;font-size:12px;font-weight:700;white-space:nowrap}
.seller-contact-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}
.seller-contact-actions .btn{min-width:142px}
.seller-profile-hero{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;margin:22px 0 36px;padding:30px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#f3eedf,#fffdf8)}
.seller-profile-avatar{width:84px;height:84px;display:grid;place-items:center;border-radius:25px;background:#dcef8c;font-size:42px}
.seller-profile-copy h1{margin:7px 0;font-size:clamp(30px,5vw,52px);line-height:1.15;letter-spacing:-1px}
.seller-profile-copy p{margin:5px 0;color:var(--muted)}
.seller-profile-proof{margin:14px 0 0;padding:11px 14px;border-radius:12px;background:#f1f3eb;color:#56665d;font-size:12px;line-height:1.5}
.seller-profile-product{display:grid;grid-template-columns:90px 1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff}
.seller-profile-product-visual{width:90px;height:90px;display:grid;place-items:center;border-radius:14px;background:var(--tone);font-size:42px}
.seller-profile-product h3{margin:0 0 4px}
.seller-profile-product p{margin:0;color:var(--muted);font-size:13px}
.seller-profile-product .price{white-space:nowrap}
.customer-chat{max-width:760px;margin:22px auto 60px;padding:20px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow)}
.customer-chat-header{display:flex;align-items:center;gap:13px;padding-bottom:15px;border-bottom:1px solid var(--line)}
.customer-chat-header .seller-profile-avatar{width:52px;height:52px;border-radius:16px;font-size:27px}
.customer-chat-header h2{font-size:21px;margin:0}
.customer-chat-header small{color:var(--muted)}
.customer-chat-log{height:320px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:16px 4px}
.customer-chat-message{max-width:84%;padding:11px 14px;border-radius:15px;background:#edf2e6;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.customer-chat-message[data-from="user"]{align-self:flex-end;background:var(--green);color:#fff;border-bottom-right-radius:5px}
.customer-chat-message[data-from="seller"]{align-self:flex-start;border-bottom-left-radius:5px}
.customer-chat-typing{color:var(--muted);font-size:13px}
.customer-chat-note{display:block;padding:10px 12px;border-radius:12px;background:#f7f1e6;color:#6a6558;font-size:12px;line-height:1.5}
.customer-chat-form{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:12px;align-items:end}
.customer-chat-form textarea{min-height:48px;max-height:140px;resize:vertical;padding:11px 13px;border:1px solid var(--line);border-radius:13px;background:#fff;font:inherit;font-size:15px}
.customer-chat-form textarea:focus{outline:2px solid #97bcaa;outline-offset:1px}
.home-uploaded-videos{margin:22px 0}
.home-uploaded-videos[hidden]{display:none}
.home-uploaded-videos .video-post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.browse-bar{grid-template-columns:minmax(180px,1fr) minmax(150px,190px) minmax(140px,170px)}
.typing-dots{display:inline-flex;gap:4px;padding:4px 1px 2px}
.typing-dots i{width:6px;height:6px;border-radius:50%;background:#6c8276;animation:typingPulse 1.05s ease-in-out infinite}
.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}
@keyframes typingPulse{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(max-width:900px){.seller-profile-hero{grid-template-columns:auto 1fr}.seller-profile-hero>.btn{grid-column:1/-1;width:max-content}.home-uploaded-videos .video-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.browse-bar{grid-template-columns:1fr 1fr}.browse-bar input{grid-column:1/-1}}
@media(max-width:600px){.seller-profile-hero{grid-template-columns:1fr;gap:14px;padding:20px}.seller-profile-avatar{width:68px;height:68px;font-size:34px}.seller-profile-hero>.btn{width:100%}.seller-profile-product{grid-template-columns:68px 1fr;gap:11px;padding:10px}.seller-profile-product-visual{width:68px;height:68px;font-size:32px}.seller-profile-product .price{grid-column:2}.customer-chat{padding:14px;border-radius:18px}.customer-chat-log{height:260px}.customer-chat-form{grid-template-columns:1fr}.customer-chat-form .btn{width:100%}.home-uploaded-videos .video-post-grid{grid-template-columns:1fr}.browse-bar{grid-template-columns:1fr}.browse-bar input{grid-column:auto}}

.market-home-carousel{position:relative;min-height:390px;height:100%;overflow:hidden;background:#d8d4c4;isolation:isolate;touch-action:pan-y}
.market-home-slides,.market-home-slide{position:absolute;inset:0}
.market-home-slide{opacity:0;pointer-events:none;transition:opacity .75s ease}
.market-home-slide.is-active{opacity:1;pointer-events:auto}
.market-home-image{display:block;width:100%;height:100%;min-height:390px;object-fit:cover;object-position:center;background:none}
.market-home-controls{position:absolute;right:14px;bottom:16px;z-index:2;display:flex;align-items:center;justify-content:center;gap:7px;padding:0}
.market-home-credit{position:absolute;left:14px;bottom:12px;z-index:2;max-width:calc(100% - 140px);padding:6px 10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(23,55,45,.78);color:#fff;font-size:11px;line-height:1.35;text-decoration:none;backdrop-filter:blur(5px)}
.market-home-credit:focus-visible{outline:2px solid #f0c45a;outline-offset:3px}
.market-home-dot{display:block;width:8px;height:8px;min-width:0;min-height:0;padding:0;border:1px solid rgba(255,255,255,.9);border-radius:999px;background:rgba(23,55,45,.35);box-shadow:0 1px 5px rgba(0,0,0,.35);cursor:pointer;transition:width .2s,background .2s}
.market-home-dot[aria-pressed="true"]{width:19px;background:#fff}
.market-home-dot:focus-visible{outline:2px solid #f0c45a;outline-offset:3px}
@media(max-width:900px){.market-home-carousel{min-height:320px}.market-home-image{min-height:320px}}
@media(max-width:600px){.market-home-carousel{min-height:230px}.market-home-image{min-height:230px}.market-home-controls{right:10px;bottom:10px;gap:6px}.market-home-credit{left:10px;bottom:8px;max-width:calc(100% - 120px);padding:5px 8px;font-size:10px}.market-home-dot{width:7px;height:7px}.market-home-dot[aria-pressed="true"]{width:16px}}
@media(prefers-reduced-motion:reduce){.market-home-slide,.market-home-dot{transition:none}}

/* Persistent basket contents and safe handling of locally stored video previews. */
.cart-page .cart-title{font-family:"Noto Serif Thai",serif;font-size:clamp(34px,5vw,52px);line-height:1.2;letter-spacing:-.5px;margin:8px 0}
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}
.cart-items{display:grid;gap:12px}
.cart-item,.cart-legacy-item{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff}
.cart-item-visual{width:112px;height:112px;display:grid;place-items:center;border-radius:14px;background:var(--tone);font-size:48px}
.cart-item-info{min-width:0}
.cart-item-info>small{color:var(--muted)}
.cart-item-info h3{margin:4px 0 6px;font-size:19px;line-height:1.45}
.cart-item-info p{margin:4px 0;color:var(--muted);font-size:13px;line-height:1.55}
.cart-item-controls{display:grid;justify-items:end;gap:10px}
.cart-item-controls .quantity{margin:0}
.cart-remove{border:0;background:transparent;color:#9c472e;text-decoration:underline;text-underline-offset:3px;font-size:13px}
.cart-legacy-item{grid-template-columns:112px minmax(0,1fr);background:#faf8f2}
.cart-summary{position:sticky;top:112px;display:grid;gap:14px;padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff}
.cart-summary h2{font-size:24px;margin:0}
.cart-summary p{display:flex;justify-content:space-between;gap:10px;margin:0;color:var(--muted)}
.cart-summary small{color:var(--muted);line-height:1.55}
.cart-empty{display:grid;justify-items:center;text-align:center;padding:72px 20px 100px}
.cart-empty-icon{font-size:64px}
.cart-empty h2{font-family:"Noto Serif Thai",serif;font-size:32px;margin:18px 0 8px}
.cart-empty p{color:var(--muted);margin:0 0 18px}
@media(max-width:760px){.cart-layout{grid-template-columns:1fr}.cart-summary{position:static}.cart-item,.cart-legacy-item{grid-template-columns:82px minmax(0,1fr) auto;gap:11px;padding:10px}.cart-item-visual{width:82px;height:82px;font-size:38px}.cart-item-info h3{font-size:16px}.cart-item-controls .quantity{gap:5px}.cart-item-controls .quantity button{width:30px;height:30px}.cart-legacy-item{grid-template-columns:82px minmax(0,1fr)}}
@media(max-width:430px){.cart-item{grid-template-columns:70px minmax(0,1fr)}.cart-item-visual{width:70px;height:70px;font-size:32px}.cart-item-controls{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:space-between;justify-items:initial}.cart-legacy-item{grid-template-columns:70px minmax(0,1fr)}.cart-legacy-item .cart-item-visual{width:70px;height:70px}}

/* Seller dashboard navigation and responsive views */
.dashboard{align-items:start}
.side-panel{position:sticky;top:108px}
.dashboard-shop-label{font-size:12px;color:#9fb7ae;margin:0 0 12px}
.dashboard-nav{display:grid;gap:4px}
.dashboard-nav a{display:block;padding:11px;border-radius:10px;color:#c8d8d2;transition:background .15s ease,color .15s ease}
.dashboard-nav a.active,.dashboard-nav a:hover,.dashboard-nav a:focus-visible{background:rgba(255,255,255,.14);color:#fff;outline:none}
.dashboard-nav a:focus-visible{box-shadow:0 0 0 2px #dcef8c}
.dashboard-nav .badge{margin-left:4px;background:#e3f2e9;color:var(--green)}
.dashboard-admin-entry{display:grid;gap:4px;margin:14px 0 4px;padding:12px;border:1px solid #ffffff36;border-radius:13px;color:#fff;text-decoration:none;background:#ffffff0c}
.dashboard-admin-entry span,.dashboard-admin-entry small{font-size:12px;color:#c8d8d2}
.dashboard-admin-entry strong{font-size:14px}
.admin-page{max-width:1120px}
.admin-hero{margin:24px 0 20px}
.admin-hero h1{margin:5px 0 8px;font-size:clamp(34px,5vw,52px)}
.admin-hero p{color:var(--muted);font-size:18px}
.admin-prototype-alert{padding:18px 20px;border:1px solid #d98155;border-left:5px solid #c94e25;border-radius:16px;background:#fff4e9;color:#59351f}
.admin-prototype-alert p{margin:6px 0 0;line-height:1.6}
.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 30px}
.admin-metrics article,.admin-work-grid article,.admin-section{border:1px solid var(--line);border-radius:18px;background:#fff;padding:20px}
.admin-metrics article{display:grid;gap:5px}
.admin-metrics small,.admin-metrics span{color:var(--muted)}
.admin-metrics strong{font-family:"Noto Serif Thai",serif;font-size:32px;color:var(--ink)}
.admin-section{margin:18px 0}
.admin-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.admin-section-heading h2{margin:4px 0;font-size:26px}
.admin-section-heading p{margin:5px 0;color:var(--muted)}
.admin-status-pill,.admin-role-tag{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eef2df;color:#536c49;font-size:13px;font-weight:700;white-space:nowrap}
.admin-work-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-work-grid article{padding:16px;background:#fbfcf7}
.admin-work-grid article>span{font-size:24px;color:var(--green)}
.admin-work-grid h3{margin:8px 0}
.admin-work-grid p{min-height:48px;margin:0 0 12px;color:var(--muted);font-size:14px;line-height:1.5}
.admin-work-grid button{min-height:40px;padding:7px 11px;border:1px solid var(--line);border-radius:10px;background:#f3f2ed;color:#6c746f;font:inherit}
.admin-role-table-wrap{overflow-x:auto}
.admin-role-table-wrap table{width:100%;border-collapse:collapse;min-width:620px}
.admin-role-table-wrap th,.admin-role-table-wrap td{padding:12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.admin-role-table-wrap thead th{color:var(--muted);font-size:14px}
.admin-security-note{margin:15px 0 0;padding:13px 15px;border-radius:12px;background:#f1f5ea;color:#395747;line-height:1.6}
.admin-contact-card{scroll-margin-top:24px;border-color:#d5dfc9;background:#fbfcf6}
.admin-contact-card h2{margin:6px 0}
.admin-contact-form{display:grid;gap:9px;margin-top:15px}
.admin-contact-form label{font-weight:700}
.admin-contact-form select,.admin-contact-form textarea{width:100%;padding:11px 12px;border:1px solid #cfd7c8;border-radius:12px;background:white;color:var(--ink);font:inherit;font-size:16px}
.admin-contact-form textarea{resize:vertical}
.admin-contact-status{margin:2px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.wanmai-prompts [data-contact-admin],.seller-ai-prompts [data-contact-admin]{border-color:#bbceae;background:#f3f7eb;color:#1c694e;font-weight:700}
@media(max-width:850px){.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.admin-section{padding:14px}.admin-section-heading{align-items:flex-start;flex-direction:column}.admin-work-grid{grid-template-columns:1fr}.admin-work-grid p{min-height:0}.admin-metrics article{padding:14px}.admin-metrics strong{font-size:27px}.admin-prototype-alert{padding:14px}}
.dashboard-demo-note{font-size:11px;color:#b7cbc3;margin:18px 0 0}
.dashboard-account-actions{display:grid;gap:3px;margin-top:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.18)}
.dashboard-account-actions>button,.dashboard-account-more>summary,.dashboard-delete-account{display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:9px 11px;border:0;border-radius:10px;background:transparent;color:#d5e2dc;text-align:left;font:inherit;font-size:13px;cursor:pointer}
.dashboard-account-actions>button:hover,.dashboard-account-actions>button:focus-visible,.dashboard-account-more>summary:hover,.dashboard-account-more>summary:focus-visible{background:rgba(255,255,255,.1);color:#fff;outline:2px solid #dcef8c;outline-offset:1px}
.dashboard-account-actions>button span{width:18px;text-align:center;font-size:17px}
.dashboard-account-more{margin-top:2px}
.dashboard-delete-account{min-height:38px;margin:2px 0 0 8px;width:calc(100% - 8px);color:#dcb9b1;font-size:12px}
.dashboard-delete-account:hover,.dashboard-delete-account:focus-visible{background:rgba(177,76,55,.18);color:#fff;outline:2px solid #e7a092;outline-offset:1px}
.dashboard-account-more>summary{min-height:36px;color:#a9beb5;font-size:11px;cursor:pointer;list-style:none}
.dashboard-account-more>summary::-webkit-details-marker{display:none}
.dashboard-account-more>summary::after{content:"⌄";margin-left:auto;font-size:14px}
.dashboard-account-more[open]>summary::after{content:"⌃"}
.dashboard-main{min-width:0}
.dashboard-panel-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:0 0 24px}
.dashboard-panel-head h2{margin:8px 0}
.dashboard-panel-head p{color:var(--muted);margin:0;line-height:1.6}
.dashboard-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:#fff}
.dashboard-table-wrap .orders{margin:0;min-width:620px}
.dashboard-table-wrap .orders th,.dashboard-table-wrap .orders td{vertical-align:middle}
.dashboard-product-emoji{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;font-size:25px}
.dashboard-subline{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.dashboard-section-title{margin:28px 0 12px}
.finance-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.sales-report{margin-top:18px;padding:24px;border:1px solid #d9e0d6;border-radius:24px;background:linear-gradient(145deg,#fff 0%,#f7faf2 100%);box-shadow:0 12px 34px #17372d0c}
.sales-report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.sales-report-header h3{margin:7px 0;font-family:"Noto Serif Thai",serif;font-size:26px}
.sales-report-header p{margin:0;color:var(--muted);line-height:1.6}
.sales-demo-tag{flex:none;padding:7px 11px;border:1px solid #e9dcc2;border-radius:99px;background:#fff8e9;color:#8b6337;font-size:12px;font-weight:700}
.sales-quarter-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0 14px}
.sales-quarter-tab{display:grid;gap:2px;min-height:58px;padding:9px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.sales-quarter-tab:hover{transform:translateY(-1px);border-color:#86ae99}
.sales-quarter-tab.is-active{border-color:var(--green);background:#e8f2e9;box-shadow:inset 0 0 0 1px var(--green)}
.sales-quarter-tab strong{font-size:14px}
.sales-quarter-tab small{color:var(--muted);font-size:12px}
.sales-quarter-tab:focus-visible{outline:3px solid #83ae96;outline-offset:2px}
.sales-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sales-summary-grid article{display:grid;align-content:start;gap:7px;min-height:96px;padding:14px;border:1px solid #e2e7de;border-radius:15px;background:#fff}
.sales-summary-grid small{color:var(--muted);font-size:12px;line-height:1.4}
.sales-summary-grid strong{font-family:"Noto Serif Thai",serif;font-size:20px;line-height:1.3}
.sales-chart-frame{margin-top:16px;padding:17px 15px 10px;border:1px solid #e2e7de;border-radius:18px;background:#fff}
.sales-chart-title{display:flex;align-items:baseline;gap:10px;margin:0 0 8px}
.sales-chart-title strong{font-family:"Noto Serif Thai",serif;font-size:18px}
.sales-chart-title span{color:var(--muted);font-size:12px}
.sales-chart-svg{display:block;width:100%;height:auto;overflow:visible}
.sales-grid-line line{stroke:#e9eee7;stroke-width:1}
.sales-grid-line text{fill:#708078;font:12px "Anuphan",sans-serif}
.sales-bars rect{fill:var(--sales-fill);transform-box:fill-box;transform-origin:center bottom;transition:filter .18s,opacity .18s}
.sales-month-bar:hover rect,.sales-month-bar:focus rect{filter:brightness(1.08);opacity:.9}
.sales-month-bar:focus{outline:none}
.sales-value-label{fill:#174735;font:700 13px "Anuphan",sans-serif}
.sales-month-label{fill:#17372d;font:700 14px "Anuphan",sans-serif}
.sales-orders-label{fill:#738178;font:12px "Anuphan",sans-serif}
.sales-month-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.sales-month-card{display:grid;gap:5px;padding:14px;border:1px solid #e2e7de;border-radius:15px;background:#fff}
.sales-month-card>span{color:var(--muted);font-size:13px}
.sales-month-card strong{font-family:"Noto Serif Thai",serif;font-size:20px}
.sales-month-card small{color:var(--muted);line-height:1.5}
.sales-demo-note{margin:13px 2px 0;color:#748178;font-size:12px;line-height:1.55}
.store-settings-card{display:flex;align-items:center;gap:16px;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff}
.store-settings-card h3{font-size:20px}
.store-settings-card p{color:var(--muted);margin:7px 0 12px}
.store-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.store-info-item{padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}
.store-info-item small{color:var(--muted)}
.store-info-item p{margin:8px 0 0;line-height:1.65}
.store-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fff}
.store-edit-field{display:grid;gap:7px;align-content:start}
.store-edit-field label{font-weight:700;font-size:14px}
.store-edit-field input,.store-edit-field textarea{width:100%;min-height:48px;padding:11px 12px;border:1px solid #bfc9bf;border-radius:12px;background:#fffdf8;color:var(--ink);font:inherit}
.store-edit-field textarea{min-height:112px;resize:vertical;line-height:1.6}
.store-edit-field input:focus,.store-edit-field textarea:focus{outline:3px solid #83ae96;outline-offset:2px}
.store-edit-wide{grid-column:1/-1}
.store-edit-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.store-edit-status{min-height:24px;margin:0;color:var(--green);font-size:14px}
.store-verify-action{margin-top:10px;min-height:46px;padding:9px 13px;border:1px solid #b7c8b9;border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.store-verify-note{display:block;margin-top:8px;color:var(--muted);line-height:1.6}
@media(max-width:900px){.dashboard{grid-template-columns:1fr;gap:18px}.side-panel{display:block;position:static;padding:16px 18px;border-radius:18px}.side-panel h2{margin:0 0 4px}.dashboard-shop-label{margin-bottom:10px}.dashboard-nav{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding-bottom:2px}.dashboard-nav a{white-space:nowrap;flex:none}.dashboard-demo-note{display:none}}
@media(max-width:760px){.sales-report{padding:16px;border-radius:19px}.sales-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-chart-frame{padding:12px 8px 8px}.sales-month-breakdown{gap:7px}.sales-month-card{padding:10px}}
@media(max-width:600px){.dashboard-panel-head{align-items:start;flex-direction:column}.dashboard-panel-head .btn{width:100%}.dashboard-panel-head h2{font-size:30px}.store-info-grid,.store-edit-form{grid-template-columns:1fr}.store-edit-wide{grid-column:auto}.store-edit-form{padding:15px}.store-edit-actions .btn{width:100%}.finance-metrics{grid-template-columns:1fr 1fr}.dashboard-table-wrap .orders{min-width:580px}.sales-report-header{align-items:flex-start}.sales-report-header h3{font-size:22px}.sales-demo-tag{padding:5px 8px;font-size:11px}.sales-quarter-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:15px 0 10px}.sales-quarter-tab{min-height:54px}.sales-summary-grid article{min-height:90px;padding:11px}.sales-summary-grid strong{font-size:18px}.sales-month-breakdown{grid-template-columns:1fr}.sales-month-card{grid-template-columns:1fr auto;align-items:center}.sales-month-card small{grid-column:1/-1}.sales-chart-title{gap:7px}.sales-chart-title span{font-size:11px}}

/* Vertical, autoplay-first short-video experience for shoppers. */
.video-page{max-width:1240px}
.video-watch-section{display:grid;grid-template-columns:minmax(260px,.82fr) minmax(360px,1fr);gap:clamp(24px,5vw,72px);align-items:center;padding:clamp(24px,4vw,54px);border:1px solid #dfe2d7;border-radius:30px;background:radial-gradient(circle at 12% 18%,#f9f3df 0,#f1eee2 48%,#e2ecdf 100%)}
.video-watch-heading h1{font-family:"Noto Serif Thai",serif;font-size:clamp(40px,5.4vw,66px);line-height:1.18;letter-spacing:-1.4px;margin:13px 0 18px}
.video-watch-heading>p{font-size:18px;line-height:1.7;color:#43564d;max-width:420px}
.video-upload-link{display:inline-flex;align-items:center;min-height:48px;margin-top:12px;padding:10px 16px;border-radius:14px;background:var(--green);color:#fff;font-weight:700}
.video-upload-link:hover{background:#0f5643}
.video-feed-shell{min-width:0;display:grid;justify-items:center}
.video-feed{width:100%;height:min(78dvh,760px);min-height:500px;display:flex;flex-direction:column;align-items:center;gap:20px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:thin;scrollbar-color:#94a79a transparent;padding:0 4px 8px}
.video-feed-card{width:auto;height:100%;min-height:0;aspect-ratio:9/16;flex:none;scroll-snap-align:start;scroll-snap-stop:always;border-radius:24px;background:#13251e}
.video-feed-card .video-frame{height:100%;aspect-ratio:auto;background:#13251e}
.video-feed-player{display:block;width:100%;height:100%;object-fit:cover;background:#13251e}
.video-ad-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:14px;background:linear-gradient(180deg,rgba(5,18,13,.52),transparent 24%,transparent 50%,rgba(5,18,13,.8));color:#fff;pointer-events:none}
.video-ad-top,.video-ad-bottom{display:flex;align-items:center;gap:10px}
.video-ad-top{justify-content:space-between}
.video-ad-label{padding:7px 10px;border-radius:999px;background:rgba(11,32,24,.62);font-size:12px;font-weight:700;backdrop-filter:blur(8px)}
.video-ad-bottom{align-items:flex-end}
.video-ad-copy{min-width:0;flex:1}
.video-ad-copy p{margin:0 0 4px;font-size:17px;line-height:1.4;font-weight:700;text-shadow:0 1px 8px #10231b}
.video-ad-copy small{display:block;color:#f0f4ef;font-size:12px;overflow-wrap:anywhere;text-shadow:0 1px 6px #10231b}
.video-ad-copy .video-post-badge{display:inline-flex;margin-top:8px;color:#18382e;background:#e7f0df}
.video-feed-card .video-duration{position:static;flex:none;background:rgba(11,32,24,.68);color:#fff}
.video-play-toggle,.video-sound-toggle{pointer-events:auto;display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.65);border-radius:50%;background:rgba(10,32,24,.72);color:#fff;font-size:17px;backdrop-filter:blur(8px)}
.video-play-toggle.is-paused{background:#fff;color:var(--ink)}
.video-sound-toggle{width:48px;height:48px;font-size:20px}
.video-feed-hint{margin:9px 0 0;color:var(--muted);font-size:13px}
.video-feed .video-empty{width:min(100%,430px);height:100%;min-height:0;aspect-ratio:9/16;flex:none;scroll-snap-align:start;align-content:center;padding:26px;border:1px dashed #bec6b3;border-radius:24px;background:rgba(255,253,248,.75)}
.video-creator-section{display:grid;grid-template-columns:minmax(260px,.82fr) minmax(360px,1fr);gap:clamp(24px,5vw,72px);align-items:start;margin-top:62px;padding:clamp(18px,3vw,32px)}
.video-creator-intro h2{font-family:"Noto Serif Thai",serif;font-size:clamp(30px,3vw,42px);line-height:1.2;margin:10px 0}
.video-creator-intro>p{color:var(--muted);line-height:1.7}
.video-creator-section .video-upload-card{width:100%;max-width:650px}
@media(max-width:760px){.video-watch-section{grid-template-columns:1fr;gap:22px;padding:22px 16px}.video-watch-heading h1{font-size:42px}.video-watch-heading>p{font-size:16px;margin:10px 0}.video-upload-link{margin-top:4px}.video-feed{height:calc(100svh - 205px);min-height:440px;max-height:720px;padding-bottom:4px}.video-feed-card,.video-feed .video-empty{max-width:min(100%,calc((100svh - 205px)*.5625));border-radius:21px}.video-creator-section{grid-template-columns:1fr;gap:14px;margin-top:42px;padding:8px 0}.video-creator-section .video-upload-card{max-width:none}.video-ad-copy p{font-size:15px}.video-ad-copy small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.video-feed{scroll-behavior:auto}.video-upload-link{transition:none}}

/* Floating pixel companion and accessible conversation panel. */
#wanmai-widget-root [hidden]{display:none!important}
.wanmai-launcher{position:fixed;right:20px;bottom:22px;z-index:120;width:76px;height:76px;display:grid;place-items:center;padding:3px;border:2px solid #fff;border-radius:50%;background:#dceca6;box-shadow:0 8px 24px #17372d38;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.wanmai-launcher:hover{transform:translateY(-3px);box-shadow:0 12px 28px #17372d48}
.wanmai-launcher:focus-visible,.wanmai-close:focus-visible,.wanmai-actions button:focus-visible,.wanmai-prompts button:focus-visible,.wanmai-message-actions :focus-visible{outline:3px solid #4f8d71;outline-offset:3px}
.wanmai-launcher-glow{position:absolute;inset:4px;border:1px solid #fff9;border-radius:50%;pointer-events:none}
.wanmai-illustration{display:block;flex:0 0 auto;background-image:url('wanmai-pixel-sprite.png?v=20261015-2');background-repeat:no-repeat;background-size:300% 100%;background-position:0 0;image-rendering:pixelated;animation:wanmai-idle-blink 4.4s steps(1,end) infinite}
.wanmai-illustration.is-talking{background-image:url('wanmai-point-up-pixel-sprite.png?v=20261015-1');animation:wanmai-speaking 1.05s steps(1,end) infinite}
.wanmai-pixel-avatar{display:block;flex:0 0 auto;background-image:url('wanmai-pixel-sprite.png?v=20261015-3');background-repeat:no-repeat;background-size:300% 100%;background-position:0 0;image-rendering:pixelated;animation:wanmai-idle-blink 4.4s steps(1,end) infinite}
.wanmai-character{position:relative;width:70px;height:70px;filter:drop-shadow(0 3px 2px #17372d35)}
.wanmai-launcher-hint{position:absolute;right:72px;bottom:6px;padding:7px 11px;border-radius:13px;background:#17372d;color:#fff;white-space:nowrap;font-size:14px;font-weight:700;box-shadow:0 3px 10px #17372d25;opacity:0;transform:translateX(4px);transition:opacity .18s ease,transform .18s ease;pointer-events:none}
.wanmai-launcher:hover .wanmai-launcher-hint,.wanmai-launcher:focus-visible .wanmai-launcher-hint{opacity:1;transform:translateX(0)}
.wanmai-panel{position:fixed;right:24px;bottom:120px;z-index:119;width:min(408px,calc(100vw - 32px));height:min(620px,calc(100svh - 150px));min-height:360px;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d7dfd0;border-radius:22px;background:#fffdf8;box-shadow:0 18px 56px #17372d35;transform-origin:bottom right;animation:wanmai-open .2s ease-out}
.wanmai-panel-header{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #e4e7dc;background:linear-gradient(110deg,#f0f3df,#fffaf1)}
.wanmai-panel-avatar{width:58px;height:58px}
.wanmai-panel-title{display:grid;gap:2px;min-width:0;flex:1}
.wanmai-panel-title strong{font-family:"Noto Serif Thai",serif;font-size:19px;color:var(--ink)}
.wanmai-panel-title span{font-size:13px;color:#52665a}
.wanmai-close{width:46px;height:46px;border:1px solid #d5ddce;border-radius:14px;background:#fff;color:#234438;font-size:29px;line-height:1;cursor:pointer}
.wanmai-panel-body{min-height:0;flex:1;display:flex;flex-direction:column;padding:12px;overflow:hidden}
.wanmai-log{min-height:0;flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:4px;scroll-behavior:smooth}
.wanmai-message{max-width:96%;display:flex;align-items:flex-start;gap:8px;padding:11px 12px;border-radius:17px;background:#edf2e6;color:var(--ink);line-height:1.65}
.wanmai-message[data-from="user"]{align-self:flex-end;background:var(--green);color:#fff;border-bottom-right-radius:5px}
.wanmai-message[data-from="assistant"]{align-self:flex-start;border-bottom-left-radius:5px}
.wanmai-message-avatar{width:42px;height:42px}
.wanmai-message-copy{min-width:0;flex:1}
.wanmai-message-head{display:flex;align-items:center;gap:8px;margin-bottom:3px;font-size:14px}
.wanmai-message-head span{color:var(--muted);font-size:12px}
.wanmai-message[data-from="user"] .wanmai-message-head span{color:#e4f1ea}
.wanmai-message p{margin:0;white-space:pre-line;font-size:16px;line-height:1.65}
.wanmai-message-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
.wanmai-message-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:7px 10px;border:1px solid #d5ddce;border-radius:11px;background:#fff;color:#155b47;font:inherit;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer}
.wanmai-prompts{flex:0 0 auto;display:flex;flex-wrap:wrap;gap:7px;margin:9px 0}
.wanmai-prompts button{min-height:42px;padding:7px 10px;border:1px solid #ccd7c9;border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
.wanmai-prompts-label{flex:1 0 100%;color:var(--muted);font-size:12px;font-weight:700}
.wanmai-more-prompts{flex:0 0 auto}
.wanmai-more-prompts>summary{min-height:42px;display:flex;align-items:center;padding:7px 12px;border:1px dashed #aebaae;border-radius:999px;background:#f8faf4;color:var(--ink);font-size:13px;cursor:pointer;list-style:none}
.wanmai-more-prompts>summary::-webkit-details-marker{display:none}
.wanmai-more-prompts>div{display:flex;flex-wrap:wrap;gap:7px;padding-top:7px}
.wanmai-more-prompts button{min-height:40px;font-size:13px}
.wanmai-form{flex:0 0 auto;display:grid;gap:8px;padding-top:10px;border-top:1px solid var(--line)}
.wanmai-form label{font-size:16px;font-weight:700}
.wanmai-form textarea{width:100%;min-height:70px;padding:11px 12px;border:1px solid #aebaae;border-radius:13px;background:#fff;color:var(--ink);font:inherit;font-size:17px;line-height:1.5;resize:vertical}
.wanmai-form textarea:focus{outline:3px solid #4f8d71;outline-offset:2px}
.wanmai-actions{display:flex;flex-wrap:wrap;gap:8px}
.wanmai-actions .btn{min-height:50px;padding:9px 12px;font-size:16px}
.wanmai-send-button{margin-left:auto}
.wanmai-status{min-height:1.3em;margin:0;color:#305840;font-size:14px;line-height:1.4}
.wanmai-note{flex:0 0 auto;display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.5}
.wanmai-typing{align-self:flex-start;display:flex;align-items:center;gap:7px;color:var(--muted);font-size:14px;padding:3px 10px;animation:wanmai-dots 1s ease-in-out infinite alternate}
.wanmai-typing-avatar{width:44px;height:44px}
.wanmai-actions button:disabled{opacity:.55;cursor:wait}
@keyframes wanmai-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes wanmai-open{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes wanmai-dots{from{opacity:.55}to{opacity:1}}
@keyframes wanmai-idle-blink{0%,88%,100%{background-position:0 0}90%,94%{background-position:50% 0}}
@keyframes wanmai-speaking{0%,42%,100%{background-position:0 0}45%,50%{background-position:50% 0}54%,96%{background-position:100% 0}}
.site-loader{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:var(--paper);color:var(--ink);transition:opacity .34s ease,visibility .34s ease}
.site-loader.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.site-loader-walker{display:block;width:112px;height:149px;background-image:url('wanmai-walk-sprite.png?v=20261015-1');background-position:0 0;background-size:400% 100%;background-repeat:no-repeat;image-rendering:pixelated;filter:drop-shadow(0 4px 2px rgba(23,55,45,.12));animation:wanmai-walk-steps .8s steps(3,end) infinite}
.site-loader-ground{width:104px;height:7px;margin-top:-2px;border-radius:50%;background:#17372d16;animation:wanmai-walk-ground .4s ease-in-out infinite alternate}
.site-loader>strong{margin-top:14px;font-family:"Noto Serif Thai","Anuphan",serif;font-size:23px;line-height:1.35}
.site-loader-message{margin-top:2px;color:var(--muted);font-size:16px}
.site-loader-dots{display:inline-block;width:1.4em;text-align:left;animation:wanmai-loader-dots 1.1s steps(4,end) infinite}
@keyframes wanmai-walk-steps{to{background-position:100% 0}}
@keyframes wanmai-walk-ground{to{transform:scaleX(.82);opacity:.62}}
@keyframes wanmai-loader-dots{0%{opacity:0}35%{opacity:1}70%,100%{opacity:.45}}
.seller-ai-form{grid-template-columns:1fr;align-items:stretch}
.seller-ai-form textarea{min-height:82px;font-size:17px}
.seller-ai-actions{display:flex;flex-wrap:wrap;gap:9px}
.seller-ai-actions .btn{min-height:50px;font-size:16px}
.seller-ai-status{min-height:1.5em;margin:0;color:#305840;font-size:14px;line-height:1.5}
@media(max-width:760px){.wanmai-launcher{right:12px;bottom:calc(82px + env(safe-area-inset-bottom));width:76px;height:76px}.wanmai-character{width:70px;height:70px}.wanmai-panel{right:10px;bottom:calc(164px + env(safe-area-inset-bottom));width:min(408px,calc(100vw - 20px));height:min(620px,calc(100svh - 190px));min-height:330px;border-radius:20px}.wanmai-panel-avatar{width:58px;height:58px}.wanmai-message-avatar{width:42px;height:42px}.wanmai-panel-body{padding:10px}.wanmai-message{max-width:100%;padding:10px}.wanmai-message p{font-size:16px}.wanmai-actions{display:grid;grid-template-columns:1fr 1fr}.wanmai-actions .btn{width:100%;min-height:52px;padding:8px;font-size:15px}.wanmai-send-button{grid-column:1/-1;margin:0}.wanmai-note{font-size:11px}.seller-ai-actions{display:grid;grid-template-columns:1fr 1fr}.seller-ai-actions .btn{width:100%;min-height:54px;padding:9px 7px;font-size:15px}}

/* Profile photo controls and Wanmai's empty-catalog illustration. */
.avatar{overflow:hidden}
.avatar img,.profile-photo-frame img,.seller-pic img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.account-profile-page{max-width:860px}
.account-profile-card{max-width:620px;margin:28px auto 0;padding:clamp(24px,5vw,48px);display:grid;justify-items:center;gap:16px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow);text-align:center}
.account-profile-card h1{margin:0;font-size:clamp(34px,5vw,50px)}
.account-profile-card>small,.store-settings-card small{max-width:460px;color:var(--muted);line-height:1.65}
.account-profile-card>.btn{margin-top:4px}
.profile-photo-frame{width:152px;height:152px;display:grid;place-items:center;overflow:hidden;border:4px solid #e5edc6;border-radius:50%;background:#ffd9c5;font-size:52px;font-weight:700;box-shadow:0 5px 20px #17372d20}
.profile-photo-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.profile-photo-picker{position:relative;overflow:hidden}
.profile-photo-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.profile-photo-picker:focus-within{outline:3px solid #4f8d71;outline-offset:3px}
.profile-photo-status{min-height:1.4em;margin:0;color:var(--green);font-size:14px}
.seller-pic{width:96px;height:96px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;border:3px solid #e5edc6;border-radius:24px;background:#ffd9c5;font-size:38px;font-weight:700}
.product-empty-state{display:flex;align-items:center;justify-content:center;gap:28px;max-width:720px;min-height:260px;margin:20px auto;padding:22px;border:1px solid var(--line);border-radius:24px;background:#fff}
.product-empty-state img{display:block;width:auto;height:220px;max-width:42%;object-fit:contain;image-rendering:pixelated}
.product-empty-state h2{font-size:clamp(25px,3vw,34px)}
.product-empty-state p{color:var(--muted);line-height:1.7}
.product-empty-state .btn{margin-top:6px}
.product-empty-state[hidden]{display:none!important}
@media(max-width:600px){.product-empty-state{flex-direction:column;gap:10px;text-align:center}.product-empty-state img{height:190px;max-width:72%}.profile-photo-actions{justify-content:center}.store-settings-card{align-items:flex-start}.seller-pic{width:76px;height:76px}}
@media(prefers-reduced-motion:reduce){.wanmai-illustration{animation:none!important}.wanmai-panel{animation:none!important}.wanmai-launcher,.wanmai-launcher-hint{transition:none}}
@media(prefers-reduced-motion:reduce){.site-loader-walker,.site-loader-ground,.site-loader-dots{animation:none}.site-loader-walker{background-position:100% 0}.site-loader{transition:none}}

/* Friendly buyer/seller messaging prototype, styled to match Wanmai's soft palette. */
.header-chat-link{position:relative;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px;border:1px solid #dfe6d8;border-radius:15px;background:linear-gradient(135deg,#f0f4df,#fffaf1);color:var(--green);font-size:14px;font-weight:700;transition:transform .18s ease,box-shadow .18s ease}
.header-chat-link:hover,.header-chat-link:focus-visible{transform:translateY(-1px);box-shadow:0 5px 14px #17372d19;outline:2px solid #9ab99f;outline-offset:2px}
.header-chat-link svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.inbox-page{max-width:1120px}
.inbox-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 24px}
.inbox-heading h1{margin:6px 0;font-size:clamp(38px,5vw,56px);letter-spacing:-1.5px}
.inbox-heading p{margin:0;color:var(--muted);font-size:17px}
.inbox-demo-pill{flex:0 0 auto;padding:9px 14px;border:1px solid #dbe5d2;border-radius:999px;background:#f1f4e5;color:#4e6b57;font-size:14px;font-weight:700}
.inbox-layout{min-height:590px;display:grid;grid-template-columns:minmax(270px,.8fr) minmax(0,1.5fr);overflow:hidden;border:1px solid #dce2d6;border-radius:24px;background:#fffdf8;box-shadow:0 16px 44px #17372d12}
.inbox-threads{min-width:0;padding:16px;border-right:1px solid #e4e8df;background:linear-gradient(180deg,#f6f5e9,#fffdf8 58%)}
.inbox-list-heading{display:flex;align-items:center;justify-content:space-between;padding:6px 5px 14px}
.inbox-list-heading strong{font-family:"Noto Serif Thai",serif;font-size:20px}
.inbox-list-heading small{color:var(--muted)}
.inbox-thread{display:flex;align-items:center;gap:11px;padding:12px 9px;border:1px solid transparent;border-radius:17px;transition:background .16s ease,border-color .16s ease}
.inbox-thread:hover{background:#f1f4e9}
.inbox-thread.is-active{border-color:#dce6ce;background:#edf2e4;box-shadow:inset 3px 0 #8cae7d}
.inbox-avatar{width:48px;height:48px;flex:0 0 auto;display:grid;place-items:center;border:2px solid #e5edc6;border-radius:17px;background:#ffd9c5;color:var(--ink);font-size:22px;font-weight:700}
.inbox-thread-copy{min-width:0;display:grid;gap:2px;flex:1}
.inbox-thread-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.inbox-thread-copy small,.inbox-thread-copy>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}
.inbox-thread-copy>span{color:#52665a;font-size:13px}
.inbox-thread-arrow{color:#77917a;font-size:24px}
.inbox-list-note{margin:12px 5px 0;padding-top:12px;border-top:1px solid #e4e8df;color:var(--muted);font-size:12px;line-height:1.6}
.inbox-conversation{min-width:0;min-height:590px;display:flex;flex-direction:column;padding:18px 20px;background:radial-gradient(ellipse at 90% 0,#f1f4e6 0,transparent 35%),#fffdf8}
.inbox-conversation-head{display:flex;align-items:center;gap:12px;padding:0 0 15px;border-bottom:1px solid #e5e8df}
.inbox-avatar-large{width:54px;height:54px;font-size:25px}
.inbox-conversation-head>div{min-width:0;flex:1}
.inbox-conversation-head h2{margin:0 0 2px;font-size:21px}
.inbox-conversation-head small{color:var(--muted)}
.inbox-product-link{flex:0 0 auto;min-height:42px;display:inline-flex;align-items:center;padding:7px 12px;border:1px solid #dce4d5;border-radius:12px;background:#fff;color:var(--green);font-size:14px;font-weight:700}
.inbox-product-context{display:flex;align-items:center;gap:10px;margin:13px 0 2px;padding:10px 12px;border:1px solid #e1e7d8;border-radius:15px;background:#f5f6ed}
.inbox-product-context>span:first-child{font-size:25px}
.inbox-product-context>span:nth-child(2){min-width:0;display:grid;gap:1px;flex:1}
.inbox-product-context small{color:var(--muted);font-size:11px}
.inbox-product-context .price{font-size:14px;white-space:nowrap}
.inbox-log{min-height:230px;max-height:350px;display:flex;flex:1;flex-direction:column;gap:10px;overflow:auto;padding:16px 3px;scroll-behavior:smooth}
.inbox-message{max-width:82%;display:grid;gap:4px;padding:10px 13px;border:1px solid #e3e8da;border-radius:17px 17px 17px 5px;background:#edf2e6;color:var(--ink);box-shadow:0 3px 10px #17372d08}
.inbox-message[data-from="buyer"]{align-self:flex-end;border-color:#d8e7dd;border-radius:17px 17px 5px 17px;background:#e5f1e9}
.inbox-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6}
.inbox-message small{color:#66776c;font-size:11px}
.inbox-message[data-from="buyer"] small{text-align:right}
.inbox-demo-note{margin:0;padding:9px 11px;border-radius:12px;background:#faf3e6;color:#746a58;font-size:12px;line-height:1.55}
.inbox-form{display:grid;gap:7px;margin-top:10px}
.inbox-form>label{font-size:14px;font-weight:700}
.inbox-form>div{display:flex;align-items:stretch;gap:9px}
.inbox-form textarea{min-width:0;min-height:52px;max-height:130px;flex:1;resize:vertical;padding:11px 13px;border:1px solid #cfd9cc;border-radius:15px;background:#fff;color:var(--ink);font:inherit;font-size:16px;line-height:1.5}
.inbox-form textarea:focus{outline:3px solid #98bba4;outline-offset:1px}
.inbox-form .btn{min-width:90px;min-height:52px;border-radius:15px}
@media(max-width:760px){.inbox-layout{grid-template-columns:1fr;min-height:0}.inbox-threads{display:flex;gap:7px;overflow-x:auto;padding:11px;border-right:0;border-bottom:1px solid #e4e8df}.inbox-list-heading,.inbox-list-note{display:none}.inbox-thread{min-width:150px;flex:0 0 auto;padding:8px}.inbox-thread-copy small{display:none}.inbox-thread-copy>span{max-width:105px}.inbox-thread-arrow{display:none}.inbox-conversation{min-height:520px;padding:14px}.inbox-log{min-height:210px}.inbox-demo-pill{font-size:12px}}
@media(max-width:600px){.header-chat-link{min-width:40px;min-height:40px;width:40px;height:40px;padding:7px;border-radius:50%}.header-chat-link span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.header-actions .header-chat-link{flex:0 0 auto}.inbox-heading{align-items:flex-start}.inbox-heading h1{font-size:39px}.inbox-heading p{max-width:245px;font-size:15px}.inbox-layout{border-radius:19px}.inbox-threads{gap:5px;padding:8px}.inbox-thread{min-width:132px;gap:7px;padding:7px}.inbox-avatar{width:40px;height:40px;border-radius:14px;font-size:19px}.inbox-thread-copy strong{font-size:13px}.inbox-thread-copy>span{max-width:78px;font-size:11px}.inbox-conversation{min-height:500px;padding:12px}.inbox-conversation-head h2{font-size:18px}.inbox-conversation-head small{font-size:12px}.inbox-product-link{min-height:40px;padding:6px 9px;font-size:12px}.inbox-message{max-width:90%}.inbox-message p{font-size:15px}.inbox-form>div{align-items:stretch}.inbox-form .btn{min-width:68px;padding:8px}.inbox-demo-pill{padding:7px 9px}}
@media(prefers-reduced-motion:reduce){.header-chat-link,.inbox-thread{transition:none}}

/* Optional, device-local profile and seller dashboard backgrounds. */
.page.has-page-background{background-size:cover;background-position:center;background-repeat:no-repeat;border-radius:26px}
.account-profile-page.has-page-background .account-profile-card{background:rgba(255,255,255,.91);backdrop-filter:blur(5px)}
.dashboard.has-page-background{padding:26px;border:1px solid rgba(222,223,215,.8)}
.page-background-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:14px 16px;border:1px solid #dce4d6;border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 8px 24px rgba(23,55,45,.07);text-align:left}
.page-background-controls>div:first-child{display:grid;gap:3px}
.page-background-controls>div:first-child strong{font-size:15px}
.page-background-controls small{color:var(--muted);line-height:1.5}
.page-background-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page-background-picker{position:relative;overflow:hidden;min-height:42px;white-space:nowrap}
.page-background-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.page-background-controls .btn{min-height:42px;padding:9px 13px;font-size:14px}
.page-background-status{flex:0 0 100%;margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.page-background-controls:has(.page-background-status:empty) .page-background-status{display:none}
.inbox-thread{width:100%;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.inbox-thread:focus-visible{outline:3px solid #98bba4;outline-offset:2px}
@media(max-width:680px){.dashboard.has-page-background{padding:14px}.page-background-controls{align-items:flex-start;flex-direction:column}.page-background-actions{width:100%}.page-background-actions .btn{flex:1}.page-background-controls .btn{min-height:46px}}

/* Personal profile cover and identity layout, inspired by familiar social profiles. */
.account-profile-page{max-width:1040px}
.profile-back-link{display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-weight:600}
.account-profile-card.account-profile-facebook{max-width:960px;display:block;overflow:hidden;margin:18px auto 0;padding:0 0 30px;border-radius:24px;background:#fff;text-align:left}
.profile-cover-photo{position:relative;height:280px;background:radial-gradient(ellipse at 82% 24%,rgba(255,255,255,.25),transparent 24%),radial-gradient(ellipse at 13% 90%,rgba(220,239,140,.32),transparent 35%),linear-gradient(130deg,#17372d,#397661 58%,#a4a957);background-position:center;background-size:cover}
.profile-cover-toolbar{position:absolute;inset:auto 18px 16px;display:flex;align-items:end;justify-content:space-between;gap:12px}
.profile-cover-status{max-width:55%;min-height:0;margin:0;padding:6px 10px;border-radius:10px;background:rgba(23,55,45,.65);color:#fff;font-size:12px;line-height:1.45}
.profile-cover-status:empty{display:none}
.profile-cover-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.profile-cover-picker{position:relative;overflow:hidden;min-height:42px;padding:9px 13px;border:1px solid rgba(255,255,255,.76);background:rgba(255,255,255,.92);color:var(--ink);font-size:14px;white-space:nowrap}
.profile-cover-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.profile-cover-picker:focus-within{outline:3px solid #dcef8c;outline-offset:2px}
.profile-identity-row{position:relative;display:flex;align-items:flex-end;gap:18px;margin-top:-65px;padding:0 30px}
.profile-identity-row .profile-photo-frame{position:relative;flex:0 0 auto;width:152px;height:152px;border:6px solid #fff;background:#ffd9c5}
.profile-identity-copy{min-width:0;flex:1;padding:0 0 13px}
.profile-identity-copy .eyebrow{letter-spacing:.6px}
.profile-identity-copy h1{margin:5px 0 4px;font-size:clamp(30px,4vw,42px);line-height:1.2;letter-spacing:-1px}
.profile-identity-copy p{margin:0;color:var(--muted);font-size:15px}
.profile-content{padding:8px 30px 0 200px}
.profile-content .profile-photo-actions{justify-content:flex-start;margin:0 0 8px}
.profile-content .profile-photo-status{min-height:1.4em}
.profile-info-card{margin:12px 0 16px;padding:16px 18px;border:1px solid #e3e7de;border-radius:16px;background:#f8f9f4}
.profile-info-card p{margin:6px 0 0;color:var(--muted);font-size:14px;line-height:1.65}
.profile-content>.btn{min-height:44px}
@media(max-width:600px){
 .account-profile-page{padding:18px 12px 42px}
 .account-profile-card.account-profile-facebook{margin-top:10px;padding-bottom:20px;border-radius:20px}
 .profile-cover-photo{height:190px}
 .profile-cover-toolbar{inset:auto 10px 10px;align-items:flex-end;gap:5px}
 .profile-cover-status{max-width:44%;padding:5px 7px;font-size:11px}
 .profile-cover-actions{gap:5px}
 .profile-cover-picker{min-height:40px;padding:8px 9px;font-size:12px}
 .profile-identity-row{align-items:flex-end;gap:10px;margin-top:-48px;padding:0 14px}
 .profile-identity-row .profile-photo-frame{width:104px;height:104px;border-width:5px;font-size:38px}
 .profile-identity-copy{padding-bottom:8px}
 .profile-identity-copy .eyebrow{font-size:10px}
 .profile-identity-copy h1{font-size:clamp(23px,7vw,32px);letter-spacing:-.5px}
 .profile-identity-copy p{font-size:12px;line-height:1.4}
 .profile-content{padding:12px 14px 0}
 .profile-content .profile-photo-actions{gap:7px}
 .profile-content .profile-photo-actions .btn{min-height:44px;padding:9px 11px;font-size:14px}
 .profile-info-card{padding:13px 14px}
 .profile-content>.btn{width:100%}
}

/* Keep narrow phone and in-app browser layouts within the visible screen. */
@media(max-width:900px){
 html,body{max-width:100%;overflow-x:clip}
 #app,.page,.dashboard,.dashboard-main,.side-panel{min-width:0;max-width:100%}
 #app{overflow-x:clip}
 .page{width:100%;overflow-x:clip}
 .dashboard-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;overflow:visible}
 .dashboard-nav a{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px;min-width:0;white-space:normal;text-align:center;line-height:1.35}
 .store-settings-card{min-width:0}
 .store-settings-card>div:last-child{min-width:0;flex:1 1 0}
 .store-settings-card small{overflow-wrap:anywhere}
 .mobile-more-panel{right:0;max-width:calc(100vw - 24px);max-height:min(65vh,400px);overflow-y:auto}
}
@media(max-width:600px){
 .dashboard-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .dashboard-nav a{min-height:46px;padding:8px 6px;font-size:14px}
 .dashboard-nav .badge{margin:0}
 .dashboard.has-page-background{padding:12px}
 .dashboard-panel-head,.store-settings-card,.store-info-item,.metric,.sales-report,.page-background-controls{min-width:0;max-width:100%}
 .store-settings-card{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:start;gap:12px;padding:14px}
 .store-settings-card>.seller-pic{width:58px;height:58px;font-size:24px}
 .store-settings-card>div:last-child{min-width:0;width:100%}
 .store-settings-card h3,.store-settings-card p,.store-settings-card small{overflow-wrap:anywhere}
 .store-settings-card p{font-size:15px;line-height:1.55}
 .store-settings-card .profile-photo-actions{justify-content:flex-start;flex-wrap:wrap}
 .store-settings-card .profile-photo-actions .btn{min-height:44px;padding:9px 12px;font-size:14px}
 .dashboard-table-wrap{max-width:100%}
 .mobile-more-panel{min-width:0;width:min(230px,calc(100vw - 24px))}
}
@media(max-width:380px){
 .topbar{gap:5px;padding-inline:10px}
 .header-actions{gap:1px}
 .a11y-menu summary,.header-actions .icon-btn{min-width:36px;padding-inline:5px}
 .header-chat-link{min-width:36px!important;width:36px!important;height:36px!important}
 .avatar{min-width:34px;width:34px;height:34px}
 .page{padding-inline:12px}
 .dashboard-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .side-panel{padding:13px}
 .store-settings-card{grid-template-columns:48px minmax(0,1fr);gap:9px;padding:12px}
 .store-settings-card>.seller-pic{width:48px;height:48px}
}

/* Buyer-facing product detail: clear sample status, shop provenance, and purchase expectations. */
.product-detail-page{max-width:1280px}
.product-back-link{display:inline-flex;align-items:center;min-height:44px;color:var(--green);font-weight:600}
.product-demo-note{display:flex;align-items:flex-start;gap:14px;margin:22px 0 28px;padding:16px 20px;border:1px solid #dbe6ca;border-radius:18px;background:#f4f7ec}
.product-demo-note-mark{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:#e4edc9;color:var(--ink);font-weight:700}
.product-demo-note strong{display:block;margin:1px 0 3px}
.product-demo-note p{margin:0;color:#52665a;line-height:1.6}
.detail.product-detail{grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);align-items:start;gap:clamp(28px,5vw,68px);margin-top:0}
.detail-gallery{min-width:0}
.detail.product-detail .detail-visual{position:relative;display:flex;min-height:clamp(400px,48vw,590px);flex-direction:column;align-items:center;justify-content:center;gap:20px;overflow:hidden;padding:58px 24px 24px;border:1px solid #e5ddcf;background:radial-gradient(circle at 52% 44%,rgba(255,255,255,.94) 0 20%,transparent 20.5%),radial-gradient(circle at 80% 18%,rgba(255,255,255,.42),transparent 25%),linear-gradient(145deg,color-mix(in srgb,var(--tone) 72%,#fff 28%),#f7f3e8 78%);font-size:inherit;text-align:center}
.detail.product-detail .detail-visual:before{position:absolute;inset:0;border-radius:inherit;background:radial-gradient(ellipse at 50% 100%,rgba(23,55,45,.09),transparent 48%);content:"";pointer-events:none}
.detail-image-label{position:absolute;z-index:1;top:18px;left:18px;padding:8px 12px;border:1px solid rgba(23,55,45,.1);border-radius:999px;background:rgba(255,255,255,.88);color:var(--ink);font-size:13px;font-weight:700}
.detail-product-emoji{position:relative;z-index:1;width:min(68%,350px);aspect-ratio:1;display:grid;place-items:center;border:1px solid rgba(23,55,45,.07);border-radius:34px;background:rgba(255,255,255,.66);box-shadow:0 22px 60px rgba(23,55,45,.12);font-size:clamp(112px,14vw,176px);line-height:1}
.detail-image-caption{position:relative;z-index:1;max-width:360px;color:#58675e;font-size:14px;line-height:1.6}
.product-detail-points{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.product-detail-points span{padding:7px 10px;border-radius:999px;background:#f3f4ef;color:#56645c;font-size:12px}
.detail.product-detail .detail-copy{padding:4px 0 0}
.product-detail-title{margin:10px 0 14px;font-size:clamp(34px,4vw,48px);line-height:1.2;letter-spacing:-1px}
.detail-demo-metrics{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#5b655e;font-size:14px}
.sample-data-pill{padding:6px 10px;border:1px solid #e2e4d9;border-radius:999px;background:#f8f8f3;color:#536258;font-size:12px;font-weight:600}
.detail-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;color:var(--ink)}
.detail-price small{color:var(--muted);font:500 13px "IBM Plex Sans Thai",sans-serif}
.product-description{margin:0;color:#59665f;font-size:17px;line-height:1.8}
.detail.product-detail .seller-box{margin:22px 0;padding:15px;border-color:#dce2d8;background:#fff}
.detail.product-detail .seller-pic{width:58px;height:58px;border-radius:18px;border-width:1px;font-size:24px}
.seller-box-copy{display:grid;gap:3px;min-width:0}
.seller-box-copy b{font-size:16px}
.seller-box-copy small{color:var(--muted)}
.seller-demo-status{color:#6d6552;font-size:12px}
.seller-box-link{margin-left:auto;padding:10px 12px;border:1px solid var(--line);border-radius:11px;color:var(--green);font-size:14px;font-weight:600;white-space:nowrap}
.product-quantity-field{display:flex;align-items:center;justify-content:space-between;margin:22px 0 10px}
.product-quantity-field>label{font-weight:600}
.product-quantity-field .quantity{margin:0}
.product-detail-actions{margin-top:12px}
.product-detail-actions .btn{min-height:52px}
.product-order-note{margin:10px 0 0;color:#647069;font-size:13px;line-height:1.6}
.product-detail-page .related-products{margin-top:64px}
.product-detail-page .related-products .section-head p{margin:4px 0 0}
@media(max-width:900px){.detail.product-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}.detail.product-detail .detail-visual{min-height:430px}.detail-product-emoji{width:min(76%,300px)}}
@media(max-width:680px){.product-demo-note{margin:16px 0 20px;padding:14px}.detail.product-detail{grid-template-columns:1fr;gap:18px}.detail.product-detail .detail-visual{min-height:340px;padding:54px 18px 20px;border-radius:24px}.detail-product-emoji{width:min(62%,230px);border-radius:26px;font-size:112px}.detail-image-label{top:14px;left:14px;font-size:12px}.detail-image-caption{font-size:13px}.detail.product-detail .detail-copy{padding:0}.product-detail-title{font-size:36px}.product-description{font-size:16px}.detail.product-detail .seller-box{gap:10px;padding:12px}.detail.product-detail .seller-pic{width:50px;height:50px}.seller-box-link{padding:9px 10px;font-size:13px}.product-detail-actions{display:grid;grid-template-columns:1fr}.product-detail-actions .btn{width:100%}.product-detail-page .related-products{margin-top:42px}}

.v41-page{width:min(1120px,calc(100% - 36px));margin:24px auto 80px;min-width:0}
.v41-heading{margin:14px 0 28px}
.v41-heading h1{margin:8px 0;font-size:clamp(34px,5vw,52px);line-height:1.2}
.v41-heading>p{max-width:760px;color:var(--muted);font-size:17px;line-height:1.7}
.v41-card{min-width:0;margin:16px 0;padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 10px 34px rgba(23,55,45,.045)}
.v41-card h2{margin:0 0 16px;font-size:21px}
.v41-notice{max-width:760px;padding:28px;border-color:#e8d1bd;background:#fffaf4}
.v41-notice h1{margin:8px 0;font-size:clamp(28px,4vw,40px)}
.v41-notice p,.v41-muted{color:var(--muted);line-height:1.7}
.v41-form{display:grid;gap:14px;max-width:680px;margin:16px 0}
.v41-field{display:grid;gap:7px;color:var(--ink);font-weight:600}
.v41-field input,.v41-field textarea,.v41-field select{width:100%;min-height:48px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.v41-field textarea{min-height:108px;resize:vertical}
.v41-profile-media{display:flex;align-items:center;gap:22px;min-width:0}
.v41-profile-media .profile-photo-frame{flex:0 0 auto;width:112px;height:112px;border-width:4px;font-size:38px}
.v41-profile-media .v41-form{flex:1;min-width:0}
.v41-profile-media .v41-muted{margin:8px 0 0}
.v41-checkbox{display:flex;align-items:center;gap:10px}
.v41-checkbox input{width:22px;min-height:22px;margin:0}
.v41-field input:focus-visible,.v41-field textarea:focus-visible,.v41-field select:focus-visible{outline:3px solid #28796555;border-color:var(--green)}
.v41-state{min-height:1.5em;margin:0;color:#17644e;font-size:14px;line-height:1.6}
.v41-empty{margin:0;padding:22px;border:1px dashed #cbd3c5;border-radius:14px;background:#fafbf7;color:var(--muted);line-height:1.65}
.v41-list{display:grid;gap:10px}
.v41-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.v41-row>div:first-child{flex:1 1 240px;min-width:0;overflow-wrap:anywhere}
.v41-row p{margin:5px 0;color:var(--muted);line-height:1.55}
.v41-row small{display:block;color:#69756d;line-height:1.55;overflow-wrap:anywhere}
.v41-actions{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
.v41-actions .btn{min-height:40px}
.v41-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.v41-product{display:grid;align-content:start;gap:10px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff}
.v41-product h2{margin:0;font-size:21px}
.v41-product p{margin:0;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.v41-product strong{font-size:22px}
.v41-product .btn{justify-self:start;margin-top:6px}
.v41-chat-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:18px;min-height:360px}
.v41-chat-layout>aside{min-width:0;padding-right:14px;border-right:1px solid var(--line)}
.v41-threads{display:grid;gap:6px;margin-top:12px}
.v41-thread{display:block;padding:11px;border-radius:11px;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.v41-thread:hover,.v41-thread.is-active{background:#eef3e8}
.v41-chat-body{display:grid;align-content:start;gap:14px;min-width:0}
.v41-message-list{display:grid;align-content:start;gap:10px;max-height:420px;min-height:180px;overflow:auto;padding:12px;border-radius:14px;background:#f8f8f3}
.v41-message{max-width:82%;padding:11px 13px;border-radius:14px 14px 14px 4px;background:#eaf1e5;overflow-wrap:anywhere}
.v41-message.is-mine{justify-self:end;border-radius:14px 14px 4px 14px;background:#dff1e8}
.v41-message p{margin:0;white-space:pre-wrap;line-height:1.6}
.v41-message small{display:block;margin-top:5px;color:var(--muted);font-size:11px}
.v41-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}
.v41-admin-grid .v41-card{margin:0}
.v41-return-form{max-width:none;padding:14px;border:1px solid var(--line);border-radius:14px}
@media(max-width:850px){.v41-products{grid-template-columns:repeat(2,minmax(0,1fr))}.v41-admin-grid{grid-template-columns:1fr}}
@media(max-width:600px){.v41-page{width:min(100% - 24px,1120px);margin:14px auto 84px}.v41-card{padding:16px;border-radius:16px}.v41-heading{margin:12px 0 20px}.v41-heading h1{font-size:34px}.v41-heading>p{font-size:15px}.v41-row{align-items:flex-start;padding:13px}.v41-actions{width:100%}.v41-actions .btn{flex:1 1 auto}.v41-products{grid-template-columns:1fr}.v41-chat-layout{grid-template-columns:1fr}.v41-chat-layout>aside{padding:0 0 12px;border-right:0;border-bottom:1px solid var(--line)}.v41-message{max-width:94%}.v41-notice{padding:19px}.v41-profile-media{align-items:flex-start;flex-direction:column}.v41-profile-media .profile-photo-frame{width:92px;height:92px;font-size:32px}}

/* Buyer-first account entry for v41. */
.v41-auth-shell{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.75fr);gap:clamp(22px,5vw,64px);align-items:center;min-height:min(720px,calc(100svh - 190px));max-width:1120px}
.v41-auth-welcome{position:relative;isolation:isolate;min-height:560px;display:flex;align-items:flex-end;overflow:hidden;padding:clamp(24px,4vw,48px);border:1px solid #dfe4d5;border-radius:30px;background:linear-gradient(180deg,rgba(17,47,38,.02) 12%,rgba(17,47,38,.82) 100%),url('maker-hero.png?v=20261014-1') center/cover no-repeat,#e8eed9;box-shadow:0 18px 50px rgba(23,55,45,.12)}
.v41-auth-welcome-copy{position:relative;z-index:1;max-width:510px;color:#fff}
.v41-auth-welcome-copy .eyebrow{color:#f1f5d3}
.v41-auth-welcome-copy h1{margin:10px 0;font-family:'Noto Serif Thai',serif;font-size:clamp(36px,5vw,58px);line-height:1.2;text-shadow:0 2px 18px rgba(0,0,0,.22)}
.v41-auth-welcome-copy>p{max-width:460px;margin:0;color:#fff;font-size:17px;line-height:1.7;text-shadow:0 1px 12px rgba(0,0,0,.4)}
.v41-auth-mascot{display:flex;align-items:center;gap:12px;margin-top:24px;width:max-content;max-width:100%;padding:9px 16px 9px 9px;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:rgba(255,253,247,.94);color:var(--ink);font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.15)}
.v41-auth-mascot img{width:64px;height:64px;object-fit:contain;image-rendering:pixelated}
.v41-auth-panel{min-width:0;padding:16px 0}
.v41-auth-panel>h2{margin:10px 0 4px;font-family:'Noto Serif Thai',serif;font-size:clamp(32px,4vw,44px);line-height:1.3}
.v41-auth-intro,.v41-auth-hint{color:var(--muted);line-height:1.65}
.v41-auth-card{margin-top:18px;padding:clamp(20px,3vw,30px)}
.v41-auth-card .v41-form{max-width:none;margin:0}
.v41-auth-card .btn-primary{width:100%;min-height:52px;margin-top:4px}
.v41-auth-privacy{margin:16px 0 0;font-size:13px}
.v41-auth-hint{margin:0;font-size:13px}
.v41-auth-switch{margin:18px 0 0;text-align:center}
.v41-auth-switch a,.v41-auth-reset-link a{color:var(--green);font-weight:700}
.v41-password-wrap{position:relative;display:flex;align-items:center}
.v41-password-wrap input{padding-right:76px}
.v41-password-toggle{position:absolute;right:8px;min-width:58px;min-height:38px;border:0;border-radius:9px;background:#f3f5ed;color:var(--green);font:inherit;font-weight:700;cursor:pointer}
.v41-auth-gate{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.v41-auth-gate>div{max-width:660px}
.v41-auth-gate h2{margin-bottom:8px}
.v41-auth-gate p{color:var(--muted);line-height:1.65}
@media(max-width:760px){.v41-auth-shell{grid-template-columns:1fr;gap:14px;min-height:0}.v41-auth-welcome{min-height:330px;padding:22px;border-radius:22px}.v41-auth-welcome-copy h1{font-size:clamp(32px,9vw,44px)}.v41-auth-welcome-copy>p{font-size:15px}.v41-auth-mascot{margin-top:14px}.v41-auth-mascot img{width:54px;height:54px}.v41-auth-panel{padding:8px 0}.v41-auth-panel>h2{font-size:34px}}
@media(max-width:420px){.v41-auth-welcome{min-height:300px}.v41-auth-gate>.btn{width:100%;justify-content:center}}
.video-creator-section[hidden],.video-upload-link[hidden],.short-video-section[hidden]{display:none!important}
