/* ============ 设计系统 ============ */
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #fbf9f6;
  --ink: #1c1917;
  --muted: #78716c;
  --muted-2: #a8a29e;
  --line: #e9e3da;
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-soft: #fff1e6;
  --brand-line: #f5c9a8;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --blue: #1d4ed8;
  --blue-soft: #eff6ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 10px 30px rgba(28, 25, 23, .07);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }

/* ============ 通用组件 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px;
  transition: transform .06s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(194, 65, 12, .25); }
.btn-primary:active { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 12px; }
.card-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface);
  border-radius: 11px; padding: 11px 13px; outline: none; font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(194, 65, 12, .1);
}
.textarea { min-height: 72px; resize: vertical; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 13px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted); white-space: nowrap; font-weight: 500;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line);
}
.badge.brand { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-line); }
.badge.green { background: var(--green-soft); color: var(--green); border-color: #bbf7d0; }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: #fde68a; }
.badge.red { background: var(--red-soft); color: var(--red); border-color: #fecaca; }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: #bfdbfe; }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 14px; }
.empty .big { font-size: 34px; display: block; margin-bottom: 8px; opacity: .5; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ============ 员工端布局 ============ */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 96px; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 239, .92);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 560px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand-mark { display: flex; align-items: center; gap: 9px; min-width: 0; }
.logo {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  flex: none;
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: .2px; }
.me-pill {
  display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand-dark); display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.view { padding: 16px; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner { max-width: 560px; margin: 0 auto; display: flex; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; background: none; border: 0; color: var(--muted-2); font-size: 11px;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--brand); font-weight: 700; }

/* ============ 登录 ============ */
.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  padding: 56px 20px 40px; max-width: 560px; margin: 0 auto;
}
.login-brand { text-align: center; margin-bottom: 34px; }
.login-brand .logo { width: 64px; height: 64px; border-radius: 20px; font-size: 28px; margin: 0 auto 16px; }
.login-brand h1 { font-size: 26px; letter-spacing: .5px; }
.login-brand p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.person {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 6px 14px; display: flex; flex-direction: column; align-items: center; gap: 9px;
  box-shadow: var(--shadow-sm); transition: transform .08s ease;
}
.person:active { transform: scale(.96); }
.person .avatar { width: 44px; height: 44px; font-size: 18px; }
.person .pname { font-size: 14px; font-weight: 600; }
.person .prole { font-size: 11px; color: var(--muted-2); }
.login-note { margin-top: 28px; font-size: 12.5px; color: var(--muted-2); text-align: center; line-height: 1.7; }

/* PIN 键盘 */
.pin-head { text-align: center; padding: 8px 0 4px; }
.pin-head .avatar { width: 56px; height: 56px; font-size: 22px; margin: 0 auto 10px; }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin: 22px 0 8px; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted-2); }
.pin-dot.on { background: var(--brand); border-color: var(--brand); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.key {
  height: 58px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  font-size: 22px; font-weight: 600; display: grid; place-items: center;
}
.key:active { background: var(--brand-soft); }
.key.blank { background: transparent; border-color: transparent; box-shadow: none; }
.pin-error { color: var(--red); text-align: center; font-size: 13px; height: 18px; margin-top: 8px; }

/* ============ 下单页 ============ */
.date-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(135deg, #fff7ed, #fff); border: 1px solid var(--brand-line);
  border-radius: var(--radius); padding: 13px 15px;
}
.date-strip .d-label { font-size: 11.5px; color: var(--brand-dark); font-weight: 700; letter-spacing: .4px; }
.date-strip .d-value { font-size: 17px; font-weight: 800; margin-top: 1px; }
.date-strip .d-hint { font-size: 12px; color: var(--muted); }

.search-box { position: relative; margin: 14px 0 12px; }
.search-box input {
  width: 100%; height: 46px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--surface); padding: 0 42px 0 40px; font-size: 15px; outline: none;
}
.search-box input:focus { border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(194, 65, 12, .1); }
.search-box .icon { position: absolute; left: 13px; top: 13px; color: var(--muted-2); }
.search-box .clear {
  position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: 0;
  background: var(--surface-2); border-radius: 50%; color: var(--muted); display: none;
}
.search-box.filled .clear { display: block; }

.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }

.item-list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 13px; padding: 12px 12px 12px 14px;
}
.item .i-main { flex: 1; min-width: 0; }
.item .i-name { font-weight: 600; font-size: 15px; }
.item .i-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.item .i-price { font-size: 12px; color: var(--brand-dark); margin-left: 6px; }
.item .add {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand-soft);
  color: var(--brand); font-size: 21px; line-height: 1; display: grid; place-items: center; flex: none;
}
.item .add:active { background: var(--brand); color: #fff; }
.item.in-cart { border-color: var(--brand-line); background: #fffdfa; }
.item .cart-hint { font-size: 11.5px; color: var(--brand-dark); font-weight: 700; margin-top: 3px; }

.cartbar {
  position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 25;
  padding: 0 16px; pointer-events: none;
}
.cartbar-inner {
  max-width: 528px; margin: 0 auto; background: var(--ink); color: #fff;
  border-radius: 15px; padding: 11px 11px 11px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; box-shadow: 0 12px 30px rgba(28, 25, 23, .3);
  pointer-events: auto;
}
.cartbar-inner .c-count { font-size: 13px; opacity: .75; }
.cartbar-inner .c-main { font-size: 15px; font-weight: 700; }

.notice {
  display: flex; gap: 10px; align-items: flex-start; background: var(--amber-soft);
  border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 11px 13px;
  font-size: 13px; line-height: 1.5;
}
.notice.green { background: var(--green-soft); border-color: #bbf7d0; color: #166534; }
.notice.red { background: var(--red-soft); border-color: #fecaca; color: #991b1b; }
.notice.blue { background: var(--blue-soft); border-color: #bfdbfe; color: #1e40af; }

/* ============ 弹层 ============ */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(28, 25, 23, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease;
}
.overlay.center { align-items: center; padding: 20px; }
.sheet {
  width: 100%; max-width: 560px; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto;
  animation: slideUp .22s cubic-bezier(.2, .8, .3, 1);
}
.sheet-grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto 10px; }
.sheet-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.sheet-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.modal {
  width: 100%; max-width: 520px; background: var(--surface); border-radius: 18px;
  padding: 20px; max-height: 86vh; overflow: auto; animation: pop .18s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: .6; } }
@keyframes pop { from { transform: scale(.96); opacity: .5; } }

.qty-row { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 8px 0 16px; }
.qty-btn {
  width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface-2); font-size: 24px; display: grid; place-items: center;
}
.qty-input {
  width: 128px; height: 56px; text-align: center; font-size: 28px; font-weight: 800;
  border: 1px solid var(--line); border-radius: 14px; outline: none; font-variant-numeric: tabular-nums;
}
.qty-input:focus { border-color: var(--brand); }
.unit-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%);
  background: rgba(28, 25, 23, .92); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; z-index: 90; max-width: 84vw; text-align: center;
  animation: fade .15s ease; pointer-events: none;
}
.toast.error { background: rgba(185, 28, 28, .95); }

/* ============ 订单列表 ============ */
.order-card { display: flex; gap: 12px; align-items: center; padding: 14px; }
.order-date {
  width: 52px; flex: none; text-align: center; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 11px; padding: 6px 0;
}
.order-date .m { font-size: 10.5px; color: var(--muted); }
.order-date .d { font-size: 20px; font-weight: 800; line-height: 1.1; }
.order-card .o-main { flex: 1; min-width: 0; }
.order-card .o-title { font-weight: 700; font-size: 14.5px; }
.order-card .o-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.line-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.line-row:last-child { border-bottom: 0; }
.line-row .l-main { flex: 1; min-width: 0; }
.line-row .l-name { font-weight: 600; font-size: 14.5px; }
.line-row .l-meta { font-size: 12px; color: var(--muted); margin-top: 1px; }
.line-row .l-qty { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 34px; height: 34px; border: 0; background: var(--surface-2); font-size: 18px; display: grid; place-items: center; }
.stepper .v { min-width: 44px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); }

/* ============ 采购端 ============ */
.admin-shell { max-width: 1080px; margin: 0 auto; padding-bottom: 60px; }
.admin-top {
  position: sticky; top: 0; z-index: 20; background: rgba(247, 244, 239, .94);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.admin-top-inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.admin-nav { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px 10px; max-width: 1080px; margin: 0 auto; }
.admin-nav button {
  border: 0; background: transparent; padding: 7px 13px; border-radius: 9px;
  font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap;
}
.admin-nav button.active { background: var(--ink); color: #fff; }
.admin-body { padding: 18px 20px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; }
.stat .s-label { font-size: 12px; color: var(--muted); }
.stat .s-value { font-size: 22px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.stat .s-value small { font-size: 12px; font-weight: 600; color: var(--muted); }

.people-grid-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.person-chip {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px;
}
.person-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.person-chip.submitted { background: var(--green-soft); border-color: #bbf7d0; }
.person-chip.submitted .dot { background: var(--green); }
.person-chip.draft { background: var(--amber-soft); border-color: #fde68a; }
.person-chip.draft .dot { background: var(--amber); }
.person-chip.none .dot { background: var(--muted-2); }
.person-chip .pc-sub { font-size: 11px; color: var(--muted); }

.po-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.po-no { font-size: 18px; font-weight: 800; letter-spacing: .3px; }
.po-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.po-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.po-group { margin-top: 16px; }
.po-group-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 800; color: var(--brand-dark); letter-spacing: .5px;
  padding: 7px 11px; background: var(--brand-soft); border-radius: 9px; margin-bottom: 6px;
}
.po-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.po-table th {
  text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600;
  padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.po-table td { padding: 9px 8px; border-bottom: 1px solid #f2eee8; vertical-align: middle; }
.po-table tr:last-child td { border-bottom: 0; }
.po-table .t-name { font-weight: 600; }
.po-table .t-spec { font-size: 11.5px; color: var(--muted); }
.po-table .t-qty { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.po-table .t-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.po-table input { width: 74px; height: 30px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.po-table input.price { width: 84px; }
.po-table select { height: 30px; border-radius: 7px; border: 1px solid var(--line); font-size: 12.5px; max-width: 130px; }
.src-toggle { border: 0; background: none; color: var(--brand); font-size: 12px; padding: 2px 0; font-weight: 600; }
.src-list { font-size: 12px; color: var(--muted); padding: 4px 0 8px; line-height: 1.7; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--surface); }
.admin-table th { text-align: left; font-size: 11.5px; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 9px 10px; border-bottom: 1px solid #f4f1ec; }
.admin-table tr:hover td { background: #fffdfa; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: auto; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .input, .toolbar .select { height: 38px; padding: 0 11px; font-size: 13.5px; width: auto; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }

.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.skeleton { background: linear-gradient(90deg, #efeae3 25%, #f7f4ef 37%, #efeae3 63%); background-size: 400% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-body { padding: 14px 14px 60px; }
  .admin-top-inner { padding: 10px 14px; }
  .admin-nav { padding: 0 14px 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .po-table { font-size: 12.5px; }
  .po-table .hide-sm { display: none; }
  .people-grid-admin { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .admin-top-inner { flex-wrap: nowrap; gap: 8px; padding: 8px 12px; }
  .admin-top-inner .brand-name { font-size: 14px; white-space: nowrap; }
  .admin-top .small.muted { display: none; }
  .admin-top-inner .badge { display: none; }
  .admin-top-inner a.btn { display: none; }
  .admin-top-inner .btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
  .admin-nav { padding: 0 12px 8px; }
}

.checkbox {
  width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; flex: none;
}
.checkbox.on { background: var(--brand); border-color: var(--brand); }
.order-card.selectable { cursor: pointer; }

.conn {
  display: inline-flex; align-items: center; gap: 5px; height: 22px;
  padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: #ecfdf3; color: #15803d; border: 1px solid #bbf7d0;
  white-space: nowrap; flex: none;
}
.conn i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.conn.offline { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

@media (max-width: 560px) {
  .hide-xs { display: none; }
}

.star {
  width: 32px; height: 32px; border: 0; background: transparent; padding: 0;
  color: #a8a29e; font-size: 20px; line-height: 1;
  display: grid; place-items: center; flex: none;
}
.star.on { color: #f59e0b; }
