.account-dialog{width:min(520px,94vw);max-height:90dvh;padding:40px 28px;background:#171a15;color:#f6f7f0;border:1px solid #424735;border-radius:20px}.account-dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}.account-dialog h2{font-size:30px;line-height:1.15;margin:15px 0}.account-dialog label{display:grid;gap:7px;font-size:15px;margin:17px 0}.account-dialog input,.account-dialog textarea{box-sizing:border-box;width:100%;padding:13px;border:1px solid #515746;background:#24281f;color:#fff;border-radius:8px;font:inherit}.account-dialog textarea{min-height:100px}.account-dialog p{font-size:14px;line-height:1.6}.account-tabs{display:flex;gap:12px;margin:24px 0}.account-tabs button{padding:10px;color:#fff;background:none;border:0;border-bottom:2px solid transparent}.account-tabs .selected{border-color:#d7fc51;color:#d7fc51}.role-badge{display:inline-block;background:#d7fc51;color:#171a15;border-radius:20px;padding:4px 14px}.account-message{color:#d7fc51;min-height:24px}.account-dialog button:disabled{opacity:.5}header{flex-wrap:wrap}header .bag{font-size:14px}dialog[open]{animation:account-in .2s ease-out}@keyframes account-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){dialog[open]{animation:none}}
/* Profile and touch-friendly storefront */
header>button:last-child{display:flex;align-items:center;gap:9px;max-width:300px;min-height:44px}
header>button:last-child span{border:0;width:auto;height:auto;margin:0;display:inline-flex}
.profile-avatar{display:inline-flex;align-items:center;justify-content:center;width:32px!important;height:32px!important;flex:0 0 auto;border-radius:50%;object-fit:cover;border:1px solid #ffffff30!important;margin:0!important;background:#343a2b;color:#d7fc51;font-weight:800}
.profile-avatar.large{width:78px!important;height:78px!important;font-size:30px}.profile-avatar[hidden]{display:none!important}
.header-nickname{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.role-badge{display:inline-flex!important;align-items:center;gap:6px;width:auto!important;height:auto!important;margin:0!important;border:1px solid #ffffff22!important;border-radius:20px!important;padding:5px 10px!important;font-size:12px!important;letter-spacing:.03em;line-height:1.3;background:#31382a;color:#d4dfc2;font-weight:700}
.role-badge span{width:auto!important;height:auto!important;border:0!important;margin:0!important}.role-owner{background:#392f16;color:#f7d06c;border-color:#756030!important}.role-seller{background:#273c31;color:#96e6b7;border-color:#3c6e52!important}.role-manager{background:#283446;color:#a8ccff;border-color:#435c7c!important}.role-member{background:#2c3029;color:#c4cbbd}
.profile-heading{display:flex;align-items:center;gap:18px;margin:22px 0 26px}.profile-heading h2{overflow-wrap:anywhere;margin:0 0 10px;font-size:28px}.account-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 32px));scrollbar-width:thin;scrollbar-color:#596147 #171a15}.account-dialog .close{color:#d1dac5;width:44px;height:44px;top:8px;right:8px}.account-dialog .primary{background:#d7fc51;color:#161a12;border-radius:10px;min-height:48px}.account-dialog .primary:hover{background:#e4ff83}.account-dialog form+form{border-top:1px solid #ffffff1c;margin-top:22px;padding-top:10px}.avatar-message{color:#d7fc51}.account-dialog input:focus-visible,.account-dialog textarea:focus-visible{outline:2px solid #d7fc51;outline-offset:3px}.account-dialog input:disabled{opacity:.5}.account-dialog input[type=file]{font-size:14px}.account-dialog input[type=file]::file-selector-button{border:0;border-radius:6px;background:#414c2c;color:#ecf6da;padding:9px;margin-right:10px;font:inherit;cursor:pointer}
#productDialog{border-radius:18px;padding:36px;box-shadow:0 24px 90px #0005}#productDialog[open]{animation:product-in .38s cubic-bezier(.2,.8,.2,1) both}#productDialog[open].motion-closing{animation:product-out .2s ease-in both}#productDialog .detail>div{min-width:0}#productDialog h2{overflow-wrap:anywhere}#productDialog .detail label{display:grid;gap:8px;margin:22px 0;font-size:15px}#productDialog select{max-width:none;min-height:48px;border:1px solid #a8ad9d;border-radius:8px;padding:12px;font-size:16px}#productDialog .primary{min-height:48px;border-radius:8px}.product-image{border-radius:12px}.product-meta{gap:12px}.product-meta strong,.product p{overflow-wrap:anywhere}
@keyframes product-in{from{opacity:0;transform:translateY(24px) scale(.965)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes product-out{to{opacity:0;transform:translateY(14px) scale(.98)}}
@media(max-width:850px){header{height:auto;min-height:88px;gap:16px;padding:16px 4.5%}header nav{gap:20px}.hero h1{font-size:clamp(40px,6vw,65px)}header>button:last-child{max-width:250px}.header-nickname{max-width:100px}}
@media(max-width:600px){header{display:grid;grid-template-columns:1fr auto;height:auto;gap:12px;padding:14px 5%}header .logo{grid-column:1;grid-row:1}header nav{grid-column:1/-1;grid-row:2;justify-content:space-between;gap:12px;border-top:1px solid #ffffff18;padding-top:12px}header nav a{font-size:14px;min-height:36px;display:flex;align-items:center}header .bag#cartOpen{grid-column:2;grid-row:2;font-size:0;justify-self:end}header nav{padding-right:48px}header>button:last-child{grid-column:2;grid-row:1;padding:0;font-size:13px;gap:7px;max-width:205px;justify-self:end}.header-nickname{max-width:85px}header .role-badge{padding:4px 7px!important;font-size:11px!important}header .profile-avatar{width:28px!important;height:28px!important}.account-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:38px 20px 24px;border-radius:18px}.account-dialog h2{font-size:26px}.account-dialog input,.account-dialog textarea{font-size:16px}.profile-heading{gap:14px}.profile-heading .profile-avatar.large{width:64px!important;height:64px!important}.profile-heading h2{font-size:25px}.filters{flex-wrap:nowrap;overflow-x:auto;padding:5px 0 12px;scrollbar-width:thin}.filters button{flex-shrink:0;min-height:44px}.grid{gap:26px 12px;margin-top:12px}.product-meta strong,.product p{font-size:14px}.product-meta span{font-size:14px}#productDialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:44px 20px 24px;border-radius:18px}#productDialog .detail{gap:18px}#productDialog .detail img{height:230px;width:100%;object-fit:contain;border-radius:12px}#productDialog h2{font-size:26px}#productDialog .detail p{font-size:16px}.close{min-height:44px;min-width:44px}.people-links{grid-template-columns:1fr}#toast{bottom:calc(16px + env(safe-area-inset-bottom))}}
@media(max-width:360px){header>button:last-child .header-nickname{max-width:60px}header .role-badge{font-size:10px!important}.hero h1{font-size:38px}.profile-heading h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){#productDialog[open],#productDialog[open].motion-closing{animation:none!important}}
.account-zone{display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-width:0}.account-zone .profile-button{display:flex;align-items:center;gap:9px;max-width:300px;min-height:44px}.account-zone .profile-button span{border:0;width:auto;height:auto;margin:0;display:inline-flex}.balance-button{border:1px solid #d7fc5133;border-radius:20px;background:#d7fc5110;color:#d7fc51;padding:7px 12px;font-size:13px;min-height:34px;white-space:nowrap}.balance-button:hover{background:#d7fc5120}header{height:auto;min-height:108px;padding-top:12px;padding-bottom:12px}.wallet-card{border:1px solid #d7fc5138;border-radius:18px;padding:26px;margin:20px 0 28px;background:radial-gradient(ellipse at top right,#d7fc511a,transparent 70%),#23291d;display:grid;gap:10px}.wallet-card>span{font-size:14px;color:#b9c3ac}.wallet-card strong{font-size:38px;letter-spacing:-.04em;color:#d7fc51}.wallet-card small{color:#a6b299}.wallet-dialog h2{font-size:26px}.amount-label{margin-top:22px!important}.amount-presets{display:flex;gap:8px}.amount-presets button{flex:1;padding:11px;background:#2d3425;color:#e3edda;border:1px solid #4b563a;border-radius:8px;font-size:15px}.fee-breakdown{margin:24px 0;display:grid;gap:13px}.fee-breakdown>div{display:flex;justify-content:space-between;gap:12px;font-size:15px}.fee-breakdown span{color:#bac4ac}.fee-total{border-top:1px solid #ffffff20;padding-top:16px}.fee-total strong{color:#d7fc51}.wallet-history{border-top:1px solid #ffffff1c;padding-top:16px;margin-top:22px}.wallet-history h3{font-size:17px}.wallet-history p{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#b9c4ad}.wallet-history small{width:100%}.order-card{display:grid;grid-template-columns:1fr auto;gap:10px;text-align:left;width:100%;padding:18px;border:1px solid #515c43;border-radius:12px;background:#252c20;color:white;margin:16px 0}.order-card small{grid-column:1/-1;color:#b1bf9f}.order-card:hover{border-color:#d7fc51}.order-summary{border:1px solid #ffffff20;border-radius:12px;padding:12px 18px}.order-summary small{display:block;color:#b8c3ad}.order-chat{max-height:300px;overflow:auto;border:1px solid #ffffff18;border-radius:12px;padding:12px;background:#11170e;overscroll-behavior:contain}.chat-message{background:#252f1c;border-radius:12px;padding:12px;margin:8px 24px 8px 0;overflow-wrap:anywhere}.chat-message.mine{margin:8px 0 8px 24px;background:#334224}.chat-message p{white-space:pre-wrap;margin:6px 0}.chat-message small,.chat-message time{font-size:12px;color:#b5c3a5}.chat-message time{display:block;text-align:right}.wallet-dialog .copy{color:#d7fc51;text-align:center;line-height:1.6}.wallet-dialog .primary:disabled{opacity:.55;cursor:not-allowed}#balancePurchase{margin-top:12px}
@media(max-width:600px){header{min-height:0}.account-zone{grid-column:2;grid-row:1;max-width:220px;gap:1px}.account-zone .profile-button{max-width:220px;gap:6px;padding:0;min-height:40px;font-size:13px}.balance-button{font-size:12px;min-height:32px;padding:5px 9px}.wallet-card strong{font-size:34px}.fee-breakdown>div{font-size:14px}.order-chat{max-height:260px}.wallet-dialog input,.wallet-dialog textarea{font-size:16px}}
