@import url('https://fonts.googleapis.com/css2?family=Shrikhand&family=Nunito:wght@400;700;800;900&display=swap');
:root{--ink:#2E2A24;--soft:#5E574C;--muted:#8A8478;--blue:#3F5F7A;--blue-d:#2B4458;--blue-l:#EEF3F7;--cream:#FBF6EC;--sand:#F3EFE8;--line:#E8DCC6;--orange:#D98C4A;--orange-l:#FBEBD9;--green:#2F6B45;--green-l:#E8F1EA;--red:#8A2E2E;--red-l:#FBF1EC}
*{box-sizing:border-box}
html,body{margin:0;background:#fff;color:var(--ink);font-family:Nunito,system-ui,sans-serif;font-size:16px;line-height:1.45}
a{color:var(--blue)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid #7F9DBA;outline-offset:2px}
.brand{font-family:Shrikhand,serif;color:var(--blue);font-weight:400}
.wrap{max-width:560px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;background:#fff}
.wrap.wide{max-width:1280px}
header.top{display:flex;justify-content:space-between;align-items:center;padding:14px 16px 6px;gap:10px}
header.top .brand{font-size:22px;margin:0;line-height:1.15}
.btn.small{white-space:nowrap}
main{flex:1;padding:0 16px 96px}
h1,h2,h3{margin:0;line-height:1.2}
h1{font-size:22px;font-weight:900}
h2{font-size:18px;font-weight:900}
p{margin:0}
.muted{color:var(--soft)}
.small{font-size:13px}
.stack{display:flex;flex-direction:column;gap:12px}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.btn{min-height:46px;padding:0 18px;border-radius:14px;border:none;background:var(--blue);color:#fff;font-weight:900;font-size:16px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
.btn:hover{background:var(--blue-d)}
.btn.ghost{background:#fff;color:var(--blue);border:2px solid var(--blue)}
.btn.orange{background:var(--orange);color:#2A1C14}
.btn.red{background:var(--red)}
.btn.green{background:var(--green)}
.btn.small{min-height:36px;padding:0 12px;font-size:14px;border-radius:18px}
.btn.block{width:100%}
.btn[disabled]{opacity:.55;cursor:default}
.link{background:none;border:none;padding:0;color:var(--blue);font-weight:800;text-decoration:underline;cursor:pointer;min-height:44px}
label.field{display:flex;flex-direction:column;gap:6px;font-weight:800;font-size:15px}
input[type=text],input[type=email],input[type=tel],input[type=number],select,textarea{min-height:48px;padding:10px 14px;border-radius:12px;border:1px solid #D8D2C8;background:#fff;font-size:16px;font-weight:400}
textarea{resize:vertical}
label.check{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.4}
label.check input{width:22px;height:22px;flex:none;accent-color:var(--blue);margin-top:1px}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px}
.note{padding:12px 14px;border-radius:12px;background:var(--sand);font-size:14px}
.note.ok{background:var(--green-l);color:var(--green);font-weight:800}
.note.err{background:var(--red-l);color:var(--red);font-weight:800}
.note.warn{background:#FFF8F1;border:2px solid var(--orange)}
.pill{display:inline-block;white-space:nowrap;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:900;background:var(--sand)}
.pill.biz{background:var(--blue-l);color:var(--blue-d)}
.pill.live{background:var(--green-l);color:var(--green)}
.pill.review{background:var(--orange-l);color:#7A3E12}
.pill.hidden,.pill.removed{background:var(--red-l);color:var(--red)}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
.chips button{flex:none;padding:8px 14px;border-radius:18px;border:none;background:var(--sand);font-weight:800;font-size:13px;cursor:pointer}
.chips button.on{background:var(--ink);color:#fff}
.search{display:flex;align-items:center;gap:8px;min-height:46px;padding:0 14px;border-radius:12px;background:var(--sand)}
.search input{flex:1;border:none;background:transparent;min-height:44px;padding:0;outline:none}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tile{border:none;background:none;padding:0;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:3px;text-decoration:none;color:inherit}
.tile .ph{position:relative;width:100%;aspect-ratio:1;border-radius:14px;background:var(--sand) center/cover no-repeat}
.tile .ph .tag{position:absolute;top:6px;left:6px}
.tile .price{font-size:16px;font-weight:900}
.tile .t{font-size:14px;line-height:1.3}
.tile .s{font-size:12px;color:var(--muted)}
.band{border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px}
.band.specials{background:var(--orange-l)}
.band.offers{background:var(--blue-l)}
.hscroll{display:flex;gap:10px;overflow-x:auto}
.hscroll .tile{flex:none;width:150px;background:#fff;border-radius:12px;padding-bottom:8px;overflow:hidden}
.hscroll .tile .ph{border-radius:0;aspect-ratio:3/2}
.hscroll .tile .price,.hscroll .tile .t{padding:0 8px}
.tag{padding:3px 8px;border-radius:10px;background:var(--orange);color:#2A1C14;font-size:11px;font-weight:900}
.gallery{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px}
.gallery img{flex:none;width:100%;max-height:420px;object-fit:contain;background:var(--sand);scroll-snap-align:start}
.seller{display:flex;gap:10px;align-items:center;padding:12px;border-radius:14px;background:var(--cream)}
.av{width:44px;height:44px;border-radius:22px;background:#C9D8E3;display:flex;align-items:center;justify-content:center;font-weight:900;color:var(--blue-d);flex:none}
nav.bottom{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #EFEAE1;display:flex;justify-content:center}
nav.bottom .in{width:100%;max-width:560px;display:flex;justify-content:space-around;padding:6px 0 12px}
nav.bottom a{min-width:60px;min-height:44px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;color:var(--soft);text-decoration:none;position:relative}
nav.bottom a.on{color:var(--blue);font-weight:900}
nav.bottom .dot{position:absolute;top:0;right:12px;min-width:18px;height:18px;border-radius:9px;background:var(--orange);color:#2A1C14;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;padding:0 4px}
.list .item{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #F1ECE3;text-decoration:none;color:inherit}
.list .thumb{width:56px;height:56px;border-radius:10px;background:var(--sand) center/cover no-repeat;flex:none}
.list .grow{flex:1;min-width:0}
.list .t{font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.unread .t::after{content:'';display:inline-block;width:8px;height:8px;border-radius:4px;background:var(--orange);margin-left:6px;vertical-align:middle}
.msgs{display:flex;flex-direction:column;gap:8px;padding:8px 0}
.msg{max-width:80%;padding:10px 12px;border-radius:14px;background:var(--sand);font-size:15px;white-space:pre-wrap;word-wrap:break-word}
.msg.mine{align-self:flex-end;background:var(--blue);color:#fff}
.msg.sys{align-self:center;max-width:95%;background:var(--green-l);color:var(--green);font-weight:800;font-size:14px;text-align:center}
.msg.offer{font-weight:900}
.compose{position:sticky;bottom:70px;display:flex;gap:8px;background:#fff;padding:8px 0}
.compose textarea{flex:1;min-height:46px;max-height:120px}
.paybox{border:2px solid var(--green);background:var(--green-l);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:6px}
.paybox .big{font-size:20px;font-weight:900;letter-spacing:.5px}
.photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.photos .p{aspect-ratio:1;border-radius:12px;background:var(--sand) center/cover no-repeat;position:relative}
.photos .p button{position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:14px;border:none;background:#fff;font-weight:900;cursor:pointer}
.photos label.add{aspect-ratio:1;border-radius:12px;border:2px dashed #B9AE9C;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:var(--soft);cursor:pointer}
fieldset{margin:0;padding:12px;border-radius:14px;border:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
legend{font-weight:900;padding:0 6px}
.modal{position:fixed;inset:0;background:rgba(46,42,36,.45);display:flex;align-items:flex-end;justify-content:center;z-index:20}
.modal .sheet{background:#fff;width:100%;max-width:560px;border-radius:22px 22px 0 0;padding:20px 16px 28px;max-height:90vh;overflow:auto}
.empty{padding:30px 10px;text-align:center;color:var(--soft)}
table.t{width:100%;border-collapse:collapse;font-size:14px}
table.t th{text-align:left;color:var(--soft);padding:8px 6px;font-size:13px}
table.t td{padding:9px 6px;border-top:1px solid #F1ECE3;vertical-align:top}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.kpi{padding:14px;border-radius:14px;background:#fff;border:1px solid var(--line)}
.kpi b{display:block;font-size:26px;font-weight:900}
.adminbody{background:#F7F3EC}
.side{display:flex;flex-wrap:wrap;min-height:100vh}
.side nav{flex:1 1 200px;max-width:240px;background:var(--ink);color:#F7F3EC;padding:22px 14px;display:flex;flex-direction:column;gap:4px}
.side nav .brand{color:#F7F3EC;font-size:22px;margin-bottom:14px}
.side nav button{min-height:44px;padding:0 12px;border-radius:10px;border:none;background:transparent;color:#F7F3EC;font-weight:800;text-align:left;display:flex;justify-content:space-between;align-items:center;cursor:pointer}
.side nav button.on{background:#4A4038}
.side nav .badge{font-size:12px;padding:2px 8px;border-radius:10px;background:var(--orange);color:#2A1C14}
.side .content{flex:999 1 560px;min-width:0;padding:24px clamp(14px,3vw,34px);display:flex;flex-direction:column;gap:18px}
.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
.scroll-x{overflow-x:auto}
@media print{nav,.noprint{display:none!important}main{padding:0}}
.list .thumb{text-decoration:none;overflow:hidden}
nav.bottom .dot[hidden]{display:none}
/* managed list (My yarns, My listings, and any future product) */
.mlist{display:flex;flex-direction:column;gap:8px}
.mhead{display:flex;align-items:center;justify-content:space-between}
.ibtn{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--sand);color:var(--ink);font-size:22px;font-weight:700;text-decoration:none;line-height:1}
.ibtn:hover{background:var(--line)}
.mfilter{align-self:flex-start;border:1px solid var(--line);border-radius:18px;padding:6px 12px;font-size:13px;font-weight:800;background:#fff}
.mrows{border-top:1px solid #F1ECE3}
.mrow{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #F1ECE3}
.mrow input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:var(--blue)}
.mth{width:48px;height:48px;border-radius:8px;flex:none;background:var(--sand) center/cover no-repeat;display:flex;align-items:center;justify-content:center;font-weight:900;color:var(--soft);text-decoration:none}
.mtx{flex:1;min-width:0;color:inherit;text-decoration:none;display:flex;flex-direction:column}
.mtx b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.mtx span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qbtn{width:36px;height:36px;border-radius:50%;border:none;background:var(--blue);color:#fff;font-size:18px;font-weight:900;cursor:pointer;flex:none;display:inline-flex;align-items:center;justify-content:center}
.qbtn.off{background:var(--sand);color:var(--muted);cursor:default}
.mbar{position:sticky;bottom:76px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:14px;background:var(--ink);color:#fff;font-weight:800;font-size:14px}
.mbar[hidden]{display:none}
.mbar .btn.ghost{background:transparent;color:#fff;border-color:#fff}
.mnote{font-size:14px}
.mbar [hidden]{display:none}
select.mfilter{width:auto;min-height:0;height:32px;padding:0 10px}
/* Galaxy Card */
.gcard{display:flex;flex-direction:column;justify-content:space-between;gap:18px;padding:18px 20px;border-radius:18px;color:#fff;text-decoration:none;min-height:150px;
  background:radial-gradient(circle at 85% 15%,rgba(255,255,255,.18) 0 2px,transparent 3px),radial-gradient(circle at 70% 70%,rgba(255,255,255,.14) 0 1.5px,transparent 2.5px),radial-gradient(circle at 20% 80%,rgba(255,255,255,.12) 0 1.5px,transparent 2.5px),linear-gradient(135deg,#2B4458 0%,#3F5F7A 55%,#D98C4A 140%);box-shadow:0 6px 18px rgba(43,68,88,.25)}
.gcard .gtop,.gcard .gmid{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.gcard .gname{font-family:Shrikhand,serif;font-size:22px}
.gcard .gsmall{font-size:12px;opacity:.85;display:block}
.gcard .gwho{display:block;font-weight:900;font-size:18px}
.gcard .gref{display:block;font-weight:900;font-size:24px;letter-spacing:.04em}
.gcard.big{min-height:220px}
.gcard .gqr{width:120px;height:120px;background:#fff;border-radius:10px;padding:4px;flex:none}
/* tiers */
.pill.tier{background:var(--blue-l);color:var(--blue-d)}
.pill.t-cosmic{background:#EEF0FB;color:#3D3F8F}
.pill.t-galaxy{background:#F3ECFA;color:#5B2E86}
.pill.t-constellation{background:linear-gradient(90deg,#2B4458,#5B2E86);color:#fff}
.tierrow{border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.tierrow.on{border-color:var(--blue);background:var(--blue-l)}
/* Storefronts */
.shops{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.shopcard{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;overflow:hidden;text-decoration:none;color:inherit;position:relative;background:#fff}
.shopcard.featured{border:2px solid #5B2E86}
.shopcard .sb{height:76px;background:var(--sand) center/cover no-repeat;position:relative}
.shopcard .sb .tag{position:absolute;top:6px;left:6px}
.sl{width:44px;height:44px;border-radius:12px;background:#fff center/cover no-repeat;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center;font-weight:900;color:var(--soft);flex:none}
.shopcard .sl{margin:-22px 0 0 10px;position:relative}
.sl.big{width:84px;height:84px;border-radius:18px;font-size:30px}
.shopcard .st{display:flex;flex-direction:column;padding:6px 10px 10px;gap:2px}
.shopcard .st span{font-size:12px;color:var(--muted)}
.shophero{height:150px;border-radius:16px;background:linear-gradient(135deg,#2B4458,#3F5F7A) center/cover no-repeat}
/* My yarns | My listings tabs */
.mytabs{display:flex;flex-direction:column;gap:10px}
.tabbar{display:flex;border-bottom:2px solid var(--sand)}
.tabbar button{flex:1;background:none;border:none;padding:10px 6px;font-weight:900;font-size:15px;color:var(--muted);cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-2px}
.tabbar button.on{color:var(--ink);border-bottom-color:var(--blue)}
.tabbar .cnt{display:inline-block;min-width:20px;padding:0 6px;border-radius:10px;background:var(--sand);font-size:12px;color:var(--soft)}
.tabbar button.on .cnt{background:var(--blue);color:#fff}
.tabpane[hidden]{display:none}
.tabpane .mlist{display:grid;grid-template-columns:1fr auto;align-items:center}
.tabpane .mhead{order:2}
.tabpane .mhead h2{display:none}
.tabpane .mfilter{order:1;justify-self:start}
.tabpane .mrows,.tabpane .mbar,.tabpane .mnote{order:3;grid-column:1/-1}
/* replies on yarns */
.replies .reply{border-top:1px solid #F1ECE3;padding:10px 0}
.replies .reply.sub{margin-left:22px;border-left:3px solid var(--sand);padding-left:10px;border-top:none}
.replies .reply.new{background:#F6FAF6}
.replies .reply p{margin:2px 0}
.newr{color:var(--green)}
.dotnew{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--orange);margin-left:4px;vertical-align:middle}
/* alerts bell */
.bell{position:relative;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px}
.bell .dot{position:absolute;top:0;right:0;min-width:18px;height:18px;border-radius:9px;background:var(--orange);color:#2A1C14;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;padding:0 4px}
.bell .dot[hidden]{display:none}
.item.alert{align-items:flex-start}
.item.alert.unread{background:#FFF8F1}
.aicon{font-size:20px;width:28px;text-align:center;flex:none}
.replies .reply.pinned{background:#FFF8F1;border-radius:10px;padding:10px}
/* Brews & News */
.newsstrip{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:14px;background:#FFF4E8;border:1px solid #F3DCC2;text-decoration:none;color:var(--ink)}
.newsstrip .nl{font-size:12px;font-weight:900;color:#B4612A;letter-spacing:.02em}
.newspost h2{font-size:19px}
