/* Vendor app layout */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(22,17,14,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.topbar .brand img { width: 34px; height: 34px; border-radius: 10px; }
.topbar .brand b { font: 700 19px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line); white-space: nowrap; }
.sync.ok { color: var(--ok); } .sync.busy { color: var(--warn); } .sync.off { color: var(--bad); }

main.view { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(100px + env(safe-area-inset-bottom)); }
.view-title { font: 700 26px/1.15 var(--display); margin: 6px 0 4px; }
.view-sub { color: var(--mut); margin: 0 0 16px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(26,20,17,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { background: none; border: 0; padding: 9px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--mut); font-size: 12px; font-weight: 600; cursor: pointer; }
.tabbar button .ic { font-size: 21px; line-height: 1; }
.tabbar button.on { color: var(--brand2); }
@media (min-width: 900px) { .tabbar { left: 50%; transform: translateX(-50%); max-width: 760px; bottom: 14px; border: 1px solid var(--line); border-radius: 18px; } }

.fab { position: fixed; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 25; width: 60px; height: 60px; border-radius: 20px; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #1a0f08; font-size: 30px; font-weight: 700; box-shadow: 0 12px 28px rgba(255,107,44,.45); cursor: pointer; }
@media (min-width: 900px) { .fab { right: calc(50% - 380px + 18px); } }

/* item list */
.cat-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 8px; }
.cat-head h4 { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.item { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; }
.item.sold { opacity: .6; }
.item.hidden-item { opacity: .45; border-style: dashed; }
.item .thumb { width: 58px; height: 58px; border-radius: 12px; background: var(--card2) center/cover no-repeat; flex: none; display: grid; place-items: center; font-size: 24px; }
.item .info { flex: 1; min-width: 0; }
.item .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .meta { font-size: 13px; color: var(--mut); display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.item .price { font-weight: 700; color: var(--brand2); }
.item .sold-toggle { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--mut); }

.empty { text-align: center; padding: 40px 18px; color: var(--mut); }
.empty .big { font-size: 46px; }

/* day picker */
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days button { width: 46px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--mut); font-weight: 700; cursor: pointer; }
.days button.on { background: var(--brand); color: #1a0f08; border-color: var(--brand); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-size: 14px; }
.tags input { display: none; }
.tags label:has(input:checked) { background: var(--brand); color: #1a0f08; border-color: var(--brand); }

.photo-pick { width: 100%; aspect-ratio: 16/10; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--bg) center/cover no-repeat; display: grid; place-items: center; color: var(--mut); cursor: pointer; position: relative; overflow: hidden; }
.photo-pick.has { border-style: solid; }
.photo-pick .rm { position: absolute; top: 8px; right: 8px; }
.logo-pick { width: 84px; height: 84px; border-radius: 20px; aspect-ratio: 1; }

.setting { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting .t { flex: 1; } .setting .t b { display: block; } .setting .t span { font-size: 13px; color: var(--mut); }

.list-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; font-weight: 600; }
.list-btn:last-child { border-bottom: 0; }
.list-btn .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--card2); display: grid; place-items: center; font-size: 17px; flex: none; }
.list-btn .chev { margin-left: auto; color: var(--mut); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 2px; cursor: pointer; text-align: center; }
.week button b { display: block; font-size: 13px; }
.week button span { font-size: 12px; color: var(--mut); }
.week button.today { border-color: var(--brand); }
.week button.closed span { color: var(--bad); }

.check-list .ck { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-list .ck input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }

.qr-box { background: #fff; border-radius: 18px; padding: 14px; width: min(280px, 80vw); margin: 0 auto; }
.qr-box svg { width: 100%; height: auto; display: block; }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

/* activation */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0%, #2a1d16, var(--bg) 70%); }
.gate .box { width: 100%; max-width: 420px; text-align: center; }
.gate .box img { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 24px; }
.gate h1 { font: 700 32px/1.1 var(--display); margin: 0 0 6px; }
.gate .key { text-align: center; font: 600 20px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.err { color: var(--bad); font-size: 14px; margin-top: 10px; min-height: 20px; }
.steps { text-align: left; margin-top: 20px; }

.banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,107,44,.18), rgba(255,181,52,.1)); border: 1px solid rgba(255,107,44,.4); margin-bottom: 14px; }
.banner b { display: block; }

.changelog h4 { margin: 14px 0 4px; } .changelog ul { margin: 6px 0 0; padding-left: 20px; } .changelog li { margin: 4px 0; }
.menu-pop { position: fixed; top: calc(60px + env(safe-area-inset-top)); right: 12px; z-index: 50; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 230px; }
.menu-pop button { display: flex; gap: 10px; width: 100%; padding: 11px 12px; background: none; border: 0; border-radius: 10px; cursor: pointer; text-align: left; }
.menu-pop button:hover { background: var(--card2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); display: inline-block; }
