/* Shared design tokens: every interactive surface has a light and dark treatment. */
:root {
  color-scheme:light;
  --page:#fafbf8; --surface:#fff; --surface-soft:#f3f5ee;
  --ink:#233b2d; --muted:#687263; --line:#e1e7dc;
  --accent:#304c39; --accent-text:#fff; --focus:#6d8546;
  --shadow:0 10px 32px #20321d08;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
html {scroll-behavior:smooth;background:var(--page)}
body {background:var(--page);color:var(--ink)}
::selection {background:#b4cc82;color:#17251b}
:focus-visible {outline:3px solid var(--focus);outline-offset:4px}
.skip-link {position:fixed;top:-80px;left:20px;z-index:100;padding:12px 18px;border-radius:8px;background:var(--accent);color:var(--accent-text)}
.skip-link:focus {top:12px}
.announcement {background:#203729;padding-top:9px;padding-bottom:9px}
header {background:var(--surface);border-bottom:1px solid var(--line)}
.profile-menu{position:relative}
.profile-menu>summary{list-style:none;cursor:pointer;border-radius:50%;width:44px;height:44px;border:1px solid var(--line);display:grid;place-items:center;background:var(--surface-soft)}
.profile-menu>summary::-webkit-details-marker{display:none}
.profile-menu>summary img{width:42px;height:42px;object-fit:cover;border-radius:50%}
.profile-placeholder{font-size:26px;color:var(--muted)}
.profile-menu>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.profile-menu nav{position:absolute;right:0;top:calc(100% + 10px);z-index:60;min-width:180px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #0002;display:grid}
.profile-menu nav a,.profile-menu nav button{display:block;width:100%;text-align:left;padding:12px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:inherit;text-decoration:none;cursor:pointer}
.profile-menu nav a:hover,.profile-menu nav button:hover{background:var(--surface-soft)}
.product-store{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.store-rating{font-size:.75rem;white-space:nowrap;color:var(--muted)}
.visit-store{display:block;width:fit-content;margin-top:12px}
.store-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.7fr);gap:22px;padding:24px;margin:0 0 24px;background:var(--surface);border:1px solid var(--line);border-radius:18px}
.store-description{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.store-intro form{display:grid;gap:10px;align-content:start}.store-intro form .field{margin:0}
.store-intro>.text-link{grid-column:1/-1}
@media(max-width:700px){.store-intro{grid-template-columns:1fr;padding:18px}.store-intro input{font-size:16px}}
.header-main {gap:32px;padding-top:22px;padding-bottom:22px}
.brand {letter-spacing:-1px;font-size:23px}
.brand img {border-radius:11px;box-shadow:0 3px 9px #1c33291a}
.brand small {font-size:7px;letter-spacing:2.8px;margin-top:6px}
.header-main form {background:var(--surface-soft);border-color:transparent;border-radius:12px;padding:5px 10px;transition:border-color .18s,box-shadow .18s}
.header-main form:focus-within {border-color:var(--focus);box-shadow:0 0 0 3px #7a96571a}
.header-main input {color:var(--ink);font-size:13px}
input::placeholder,textarea::placeholder {color:var(--muted);opacity:.85}
.header-main form button {color:var(--ink);border-radius:8px}
.header-main form button:hover {background:var(--line)}
.header-actions {gap:18px;font-size:12px}
.theme-toggle {display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 11px;min-height:38px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:11px;font-weight:600;transition:background .2s,border-color .2s}
.theme-toggle:hover {background:var(--surface-soft);border-color:var(--focus)}
.theme-toggle svg {width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.icon-sun {display:none}.cart-link {padding-left:18px}.cart-link span {background:var(--accent);color:var(--accent-text)}
.nav {padding-bottom:15px;font-size:12px}.nav>div {gap:7px}.nav>div>a {padding:8px 12px;border-radius:7px;transition:background .2s,color .2s}
.nav a:hover {text-decoration:none;background:var(--surface-soft)}
.nav a[aria-current="page"] {background:#e9f0de;color:#355025;font-weight:600}
.sell-link {border:1px solid var(--line);border-radius:7px;padding:8px 12px;font-size:11px}
.demo-strip {background:var(--surface-soft);color:var(--muted);border:0;font-size:8px;letter-spacing:1.2px}
.hero-wrap {padding-top:30px}
.hero {background:linear-gradient(115deg,#e8eddd 5%,#f2f3e9 65%,#e1e8d4);border:1px solid #dde5d1;border-radius:24px;min-height:440px}
.hero-copy {padding:48px 0 43px 44px}.hero h1 {font-family:Georgia,'Times New Roman',serif;font-size:59px;line-height:1.08;letter-spacing:-2.2px;margin-top:25px}.hero h1 em {color:#647b4a}
.hero p {font-size:13px;line-height:1.85;max-width:330px;margin-bottom:24px}
.hero-art {background:radial-gradient(ellipse at center,#fdfcf3bb,transparent 65%)}
.hero-art:before {border-color:#b9c8a6aa;width:350px;height:350px}
.hero-art>img {height:390px;transition:transform .5s}
.hero-art:hover>img {transform:rotate(-4deg) translateY(-5px)}
.hero-label {background:#ffffffeb;border:1px solid #fff8;border-radius:12px;padding:17px 20px;backdrop-filter:blur(16px);box-shadow:0 8px 30px #2537210d}
.floating-tag {background:#b65438;box-shadow:0 4px 15px #9b45231a}
.btn {border-radius:10px;background:var(--accent);border-color:var(--accent);color:var(--accent-text);min-height:44px;font-size:12px;transition:transform .2s,box-shadow .2s,background .2s}
.btn:hover {background:#405e38;box-shadow:0 4px 14px #273d2420;transform:translateY(-1px)}
.btn.secondary {background:var(--surface);color:var(--ink);border-color:var(--line)}
.btn.secondary:hover {background:var(--surface-soft)}
.btn.small {min-height:36px;border-radius:8px}
.btn.light {background:#dce9ae;border-color:#dce9ae;color:#243a2d}
.btn.light:hover {background:#eaf2cd}
.btn.danger {background:var(--surface);border-color:#e9cbbf;color:#a84530}
.benefits {padding:26px 0;gap:16px}.benefit {justify-content:start;padding-left:16px}
.benefit i {width:38px;height:38px;display:grid;place-items:center;background:#eef2e5;border-radius:11px;font-size:22px;color:#5b7543}
.benefit strong {font-size:11px}.benefit span {font-size:10px}
.section {padding-top:43px}.section-head {margin-bottom:25px}.section-head h2 {font-size:32px;letter-spacing:-.9px}
.section-head .eyebrow {letter-spacing:2px;font-size:9px}.text-link {font-size:11px;transition:color .2s}
.categories {gap:16px}.category {padding:17px 20px;border-radius:14px;border-color:var(--line);box-shadow:0 2px 2px #00000001;background:var(--surface-soft);transition:transform .2s,box-shadow .2s}
.category:hover {transform:translateY(-4px);box-shadow:var(--shadow)}.category strong {font-size:12px}.category img {transition:transform .3s}.category:hover img{transform:rotate(-6deg) scale(1.08)}
.grid {gap:22px 18px}
.product {background:var(--surface);padding:9px 9px 16px;border:1px solid var(--line);border-radius:17px;transition:transform .2s,box-shadow .2s,border-color .2s;overflow:hidden}
.product:hover {transform:translateY(-4px);box-shadow:0 12px 32px #20321d0e;border-color:#bdcdb1}
.product-image {height:230px;border-radius:11px;background:#f1f3eb}
.product-image img {padding:19px;transition:transform .35s}
.product-store,.product-name,.product-bottom,.product .stock {margin-left:7px;margin-right:7px}
.product-store {letter-spacing:1.1px;font-size:8px;margin-top:16px;color:var(--muted)}
.product-name {min-height:39px;font-size:12px;line-height:1.6}
.product-bottom {margin-top:6px}.product .stock {font-size:9px;margin-top:9px}
.badge {font-size:8px;font-weight:700;letter-spacing:.4px;padding:6px 8px;background:#fffffff2;border:1px solid #e2e9d9;border-radius:5px;color:#4d6836}
.add-btn {width:34px;height:34px;display:grid;place-items:center;background:var(--surface-soft);border-color:var(--line);transition:background .2s,color .2s,transform .2s}
.add-btn:hover {background:var(--accent);color:var(--accent-text);transform:rotate(90deg)}
.price {font-variant-numeric:tabular-nums}.price del {color:var(--muted)}
.seller-banner {border-radius:19px;background:radial-gradient(ellipse at right top,#4b6437,transparent 60%),#243d2c;border:1px solid #425d36;padding:35px 39px}
.seller-banner h2 {font-size:33px;letter-spacing:-.6px}.seller-banner .btn {white-space:nowrap}
footer {background:var(--surface-soft)}.footer-top {padding-top:46px;padding-bottom:38px}
.footer-top h3 {font-size:12px}.footer-top a:not(.brand) {font-size:12px}.footer-top p {font-size:12px}.footer-note p {font-size:23px}.footer-bottom {font-size:10px}
.page {padding-top:35px}.page-title {font-size:39px;letter-spacing:-1.1px}.breadcrumb {font-size:11px}
.form-card,.order-card,.table-wrap,.help-grid article {background:var(--surface);border-color:var(--line);border-radius:16px;box-shadow:var(--shadow)}
.form-card {padding:30px}.field {font-size:12px;font-weight:500;gap:8px;margin-bottom:19px}
.field input,.field textarea,.field select,.commission-input,select {background:var(--surface);border-color:var(--line);color:var(--ink);border-radius:9px;transition:border-color .2s,box-shadow .2s}
.field input:focus,.field textarea:focus,.field select:focus {outline:none;border-color:var(--focus);box-shadow:0 0 0 3px #869d5d20}
.form-error {background:#fff0e9;color:#a53924;border:1px solid #f1d7ca;line-height:1.6}
.auth-story {background:linear-gradient(135deg,#e5ebd9,#f2f4e9);border:1px solid var(--line);border-radius:20px}
.auth-story h2 {font-size:46px;letter-spacing:-1px}
.notice {background:#eef4e4;border-color:#dae5ca;color:#59694c;border-radius:10px}
.empty {background:var(--surface-soft);border-color:var(--line);border-radius:18px}
.summary {background:var(--surface);border-radius:16px;border-color:var(--line);padding:28px;box-shadow:var(--shadow)}
.stat {background:var(--surface);border-color:var(--line);border-radius:14px;padding:24px;box-shadow:var(--shadow)}.stat strong {font-weight:600;letter-spacing:-1px}
th {background:var(--surface-soft);color:var(--muted)}.table-wrap {box-shadow:none}
td img,.cart-item img,.order-line img {background:var(--surface-soft)}
.qty button {background:var(--surface);color:var(--ink);border-color:var(--line);width:32px;height:32px;border-radius:7px}
.tab {background:var(--surface);color:var(--muted);border-color:var(--line);padding:10px 15px}
.tab.active {background:var(--accent);color:var(--accent-text);border-color:var(--accent)}
.pill {background:#e9f1dc;color:#536e39;font-weight:500;padding:6px 10px}
dialog {background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:35px;box-shadow:0 30px 100px #0004}
.dialog-close {background:var(--surface-soft);color:var(--ink);width:34px;height:34px}
.detail-grid>img {background:var(--surface-soft)}
#toast {background:var(--accent);color:var(--accent-text);border:1px solid var(--line);box-shadow:0 10px 35px #0003;border-radius:12px;line-height:1.6}
.loading {font-size:13px;letter-spacing:.2px;min-height:340px;display:flex;align-items:center;justify-content:center;gap:12px}
.loading:before {content:'';width:17px;height:17px;border:2px solid var(--line);border-top-color:var(--focus);border-radius:50%;animation:spin .75s linear infinite}
@keyframes spin {to {transform:rotate(360deg)}}
/* Dark mode: no bright panels, including dialogs, checkout and dashboards. */
:root[data-theme="dark"] {
  color-scheme:dark;
  --page:#111a16; --surface:#19241e; --surface-soft:#202d24;
  --ink:#e6ecdD; --muted:#a8b3a1; --line:#344236;
  --accent:#d4e6a5; --accent-text:#1d301e; --focus:#b7d77b;
  --shadow:0 10px 32px #00000014;
}
[data-theme="dark"] .icon-sun {display:block}[data-theme="dark"] .icon-moon {display:none}
[data-theme="dark"] .announcement {background:#0d1510;color:#c7d6b8}
[data-theme="dark"] .brand img {outline:1px solid #536346}
[data-theme="dark"] .nav a[aria-current="page"] {background:#35452b;color:#dcebbf}
[data-theme="dark"] .hero {background:linear-gradient(115deg,#28392b 5%,#243026 65%,#303f2b);border-color:#3c4e36}
[data-theme="dark"] .hero h1 em {color:#b6cf8f}
[data-theme="dark"] .hero p {color:#bcc9b1}
[data-theme="dark"] .hero .dot {background:#bedb88}
[data-theme="dark"] .hero-art {background:radial-gradient(ellipse at center,#b9d78b14,transparent 65%)}
[data-theme="dark"] .hero-art:before {border-color:#83966544}
[data-theme="dark"] .hero-art>img {filter:drop-shadow(18px 20px 15px #0004)}
[data-theme="dark"] .hero-label {background:#19251de8;border-color:#4d604233;box-shadow:0 8px 30px #0002}
[data-theme="dark"] .hero-label span {color:#aebb9f}
[data-theme="dark"] .floating-tag {background:#a75136}
[data-theme="dark"] .btn:hover {background:#e3efc6}
[data-theme="dark"] .btn.secondary:hover {background:#2a392c}
[data-theme="dark"] .btn.danger {color:#f0a98b;border-color:#76503c}
[data-theme="dark"] .btn.danger:hover {background:#422b23}
[data-theme="dark"] .benefit i {background:#2b3c28;color:#bbd78d}
[data-theme="dark"] .category {background:#243126;border-color:#354735}
[data-theme="dark"] .category:nth-child(2) {background:#352f26}
[data-theme="dark"] .category:nth-child(3) {background:#26352e}
[data-theme="dark"] .category:nth-child(4) {background:#343727}
[data-theme="dark"] .product-image {background:#2b362a}
[data-theme="dark"] .product:nth-child(3n+2) .product-image {background:#34332b}
[data-theme="dark"] .product:nth-child(3n+3) .product-image {background:#27382d}
[data-theme="dark"] .product:hover {border-color:#748d54;box-shadow:0 12px 32px #0003}
[data-theme="dark"] .badge {background:#34452c;color:#dfedc8;border-color:#52653c}
[data-theme="dark"] .seller-banner {background:radial-gradient(ellipse at right top,#4a6034,transparent 65%),#253b28;border-color:#455c36;color:#eef4e5}
[data-theme="dark"] .seller-banner .eyebrow {color:#d5e6ae}
[data-theme="dark"] .seller-banner p {color:#c3d1b7}
[data-theme="dark"] .auth-story {background:linear-gradient(135deg,#283b29,#202e23)}
[data-theme="dark"] .notice {background:#283923;border-color:#3d532f;color:#c5d5b2}
[data-theme="dark"] .form-error {background:#3e2720;color:#f1b8a1;border-color:#664030}
[data-theme="dark"] .pill {background:#31472a;color:#c8e0a5}
[data-theme="dark"] .pill.cancelled,[data-theme="dark"] .pill.suspended {background:#482d25;color:#f2b196}
[data-theme="dark"] .pill.pending,[data-theme="dark"] .pill.placed {background:#423d23;color:#dfd397}
[data-theme="dark"] .remove {color:#dfaa91}
[data-theme="dark"] dialog::backdrop {background:#050a07bc}
@media(min-width:761px) {header {position:sticky;top:0;z-index:20;box-shadow:0 2px 14px #16281705}.summary {position:sticky;top:175px}.product-editor {scroll-margin-top:170px}}
@media(max-width:1050px) {.header-main{gap:20px}.header-actions{gap:12px}.hero h1{font-size:49px}.hero-copy{padding-left:32px}.hero-art>img{height:350px}.hero-art:before{width:290px;height:290px}.hero{min-height:410px}.nav>div>a{padding:7px 9px}.product-image{height:195px}}
@media(max-width:760px) {
 .header-main{gap:14px;padding-top:18px;padding-bottom:15px}.header-main .brand{font-size:20px}.brand img{width:34px;height:34px}.brand small{font-size:6px;letter-spacing:2.2px}.header-actions{gap:10px;font-size:11px}.theme-toggle{padding:8px;width:35px;min-height:35px;border-radius:9px}.theme-label{display:none}.cart-link{padding-left:10px}.cart-link span{margin-left:3px}.header-main form{border-radius:10px}.nav{padding-bottom:12px;gap:0;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav>div{gap:4px}.nav>div>a{padding:8px 10px;font-size:11px}.hero-wrap{padding-top:20px}.hero{min-height:360px;border-radius:20px}.hero-copy{padding:29px 0 25px 24px}.hero h1{font-size:41px;letter-spacing:-1.6px}.hero p{font-size:12px;max-width:260px}.hero-art>img{height:270px}.hero-art:before{width:210px;height:210px}.hero-label{padding:12px;right:14px;bottom:25px}.hero-label strong{font-size:10px}.benefits{gap:20px 10px;padding:23px 0}.benefit{padding-left:2px;gap:9px}.benefit i{width:32px;height:32px;min-width:32px;border-radius:9px;font-size:18px}.benefit strong{font-size:10px}.benefit span{font-size:9px}.section{padding-top:32px}.section-head h2{font-size:27px}.section-head .eyebrow{font-size:8px}.text-link{font-size:10px}.categories{gap:10px}.category{padding:15px 13px;border-radius:12px}.category strong{font-size:11px}.category span{font-size:9px}.category img{width:55px}.grid{gap:16px 10px}.product{padding:6px 6px 13px;border-radius:13px}.product-image{height:180px;border-radius:9px}.product-image img{padding:12px}.product-store,.product-name,.product-bottom,.product .stock{margin-left:5px;margin-right:5px}.product-store{font-size:7px;letter-spacing:.7px}.product-name{font-size:11px;min-height:35px}.price{font-size:13px}.price del{font-size:9px;margin-left:4px}.add-btn{width:31px;height:31px;flex-shrink:0}.badge{top:9px;left:9px;font-size:7px;padding:5px 6px}.product .stock{font-size:8px}.seller-banner{border-radius:15px;padding:27px}.seller-banner h2{font-size:29px}.footer-top{gap:30px 20px}.footer-top a:not(.brand){font-size:11px}.footer-note p{font-size:21px}.footer-bottom{font-size:9px}.page-title{font-size:32px}.form-card{padding:23px}.stat{padding:18px 12px}.form-row{grid-template-columns:1fr}.cart-item{grid-template-columns:60px 1fr auto;gap:10px}.cart-item img{width:60px;height:70px}.qty{gap:8px}.qty button{width:28px;height:28px}.summary{padding:24px}.order-card{padding:19px}.order-card-top{flex-wrap:wrap}.detail-grid h2{font-size:28px}
}
@media(max-width:520px) {
 .hero{min-height:0}.hero-copy{padding:29px 25px 0}.hero h1{font-size:44px;line-height:1.07;letter-spacing:-1.6px;margin:20px 0 17px}.hero p{max-width:100%;font-size:12px;margin-bottom:19px}.hero-art{height:235px;min-height:235px;margin-top:5px}.hero-art>img{height:245px;width:75%}.hero-art:before{width:210px;height:210px}.hero-label{bottom:17px;right:19px;padding:12px;max-width:185px}.floating-tag{right:25px;top:8px}.hero .eyebrow{font-size:8px;letter-spacing:1.2px}.hero .btn{padding:12px 16px;font-size:11px}.header-main .brand{font-size:18px}.header-actions{gap:8px}.brand{gap:8px}.header-main{gap:12px}.header-main .brand small{letter-spacing:1.8px}.cart-link{padding-left:8px}.product-image{height:165px}.price{font-size:12px}.price del{font-size:9px}.product-bottom{gap:3px}.header-actions>a:first-of-type{max-width:60px;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:380px) {.hero-art{display:flex}.hero h1{font-size:39px}.header-main .brand{font-size:16px}.brand img{width:30px;height:30px}.header-actions{gap:6px}.brand small{display:none}.header-main{gap:8px}.product-image{height:145px}.price del{display:block;margin:4px 0 0}.category img{width:43px}.category strong{font-size:10px}}
@media(prefers-reduced-motion:reduce) {html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.product:hover,.category:hover,.hero-art:hover>img,.btn:hover{transform:none}}
.feature-form{margin:18px 0}.feature-result{margin-top:16px;overflow-wrap:anywhere;line-height:1.8;font-size:13px;color:var(--ink)}.chat-message{padding:16px;background:var(--surface-soft);border-radius:10px;white-space:pre-wrap;font-size:13px;line-height:1.7}.chat-message.own{border-left:3px solid var(--focus)}.photo-gallery{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.photo-gallery img{width:90px;height:90px;object-fit:cover;border-radius:8px}.detail-photo{width:100%;max-height:360px;object-fit:contain;border-radius:14px;background:var(--surface-soft)}.product-tools{margin:20px 0}

.profile-avatar{object-fit:cover;border-radius:50%}.seller-badges{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}.seller-badges .pill{font-size:11px}.table-wrap .feature-form{min-width:180px;padding:12px}

.p2p-cover{width:100%;max-height:340px;object-fit:contain;border-radius:16px}.p2p-gallery{margin-bottom:16px}.photo-gallery>div{display:flex;flex-direction:column;gap:6px;align-items:flex-start}

.visit-store{margin:12px auto 0;text-align:center}
.store-intro{display:block}.store-header-row{display:flex;align-items:center;gap:16px;overflow-x:auto;padding-bottom:8px}.store-logo{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:0 0 56px;border:1px solid var(--line)}.store-logo-empty{display:grid;place-items:center;background:var(--surface-soft);font-weight:700}.store-header-name{white-space:nowrap}.store-intro .store-header-row form{display:flex;align-items:center;gap:8px;margin-left:auto;flex:1;min-width:270px}.store-header-row input{min-width:150px;width:100%}.store-header-row button{white-space:nowrap}.store-intro>.store-description{margin:16px 0}

/* Store identity and search share equal halves. */
.store-intro{overflow-x:auto}.store-header-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-width:760px;gap:20px;overflow:visible;align-items:center}.store-header-identity{display:flex;align-items:center;gap:10px;min-width:0;overflow-x:auto;padding:4px 0}.store-header-name{min-width:70px;max-width:180px;overflow:hidden;text-overflow:ellipsis}.store-header-identity .store-rating,.store-header-identity .seller-badges{flex-shrink:0}.store-header-identity .seller-badges{display:flex;flex-wrap:nowrap;gap:6px;margin:0;white-space:nowrap}.store-intro .store-header-row form{min-width:0;margin:0;width:100%;display:flex}.store-header-row input{flex:1;min-width:0;width:0}.store-header-row button{flex-shrink:0}

.seller-product-filters{display:grid;grid-template-columns:minmax(180px,2fr) 1fr 1fr auto;gap:14px;align-items:end;margin:18px 0}.seller-product-filters .field{margin:0}@media(max-width:700px){.seller-product-filters{grid-template-columns:1fr 1fr}.seller-product-filters .field:first-child{grid-column:1/-1}.seller-product-filters input,.seller-product-filters select{font-size:16px}}
