:root{
  --nw-tab-h:54px;
  --nw-tab-line:1px;
  --nw-gold:#dfc79a;
  --nw-gold-soft:rgba(223,199,154,.42);
}
.nw-tab{ display:none; }
@media (min-width:641px){
  .nw-tab{ display:none !important; }
}
@media (max-width:640px){
  #nwTabBar.nw-tab{
    display:block;
    position:fixed;
    top:auto;
    left:0; right:0; bottom:0;
    z-index:60;
    margin:0;
    padding:0;
    padding-bottom:env(safe-area-inset-bottom);
    align-items:stretch;
    justify-content:flex-start;
    text-shadow:none;
    background:rgba(8,8,10,.94);
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
    border-top:var(--nw-tab-line) solid rgba(255,255,255,.08);
    font-size:16px;
    -webkit-tap-highlight-color:transparent;
  }
  .nw-tab-in{
    display:flex;
    align-items:stretch;
    height:var(--nw-tab-h);
    padding:0 2px;
  }
  .nw-tab-i{
    flex:1 1 0;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    position:relative;
    text-decoration:none;
    color:rgba(242,240,236,.62);
    border-radius:2px;
    transition:color .16s ease;
  }
  .nw-tab-i:active{ color:var(--nw-gold); }
  .nw-tab-i.is-on{ color:var(--nw-gold); }
  .nw-tab-i.is-on::before{
    content:"";
    position:absolute;
    top:0; left:50%;
    width:22px; height:2px;
    transform:translateX(-50%);
    background:linear-gradient(90deg,transparent,var(--nw-gold),transparent);
  }
  .nw-tab-ic{
    position:relative;
    display:block;
    width:20px; height:20px;
    line-height:0;
  }
  .nw-tab-ic svg{
    width:20px; height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.6;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .nw-tab-i.is-on .nw-tab-ic svg{ stroke-width:1.9; }
  .nw-tab-tx{
    font-size:.6rem;
    line-height:1.1;
    letter-spacing:.1em;
    white-space:nowrap;
  }
  .nw-tab-badge{
    position:absolute;
    top:-6px; left:11px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:16px; height:16px;
    padding:0 4px;
    border-radius:9px;
    background:rgba(223,199,154,.16);
    border:1px solid var(--nw-gold-soft);
    color:#f0d6a8;
    font-size:.56rem;
    line-height:1;
    letter-spacing:0;
    font-variant-numeric:tabular-nums;
  }
  .nw-tab-mid .nw-tab-plus{
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px; height:34px;
    border-radius:50%;
    border:1px solid var(--nw-gold-soft);
    background:rgba(223,199,154,.1);
    color:var(--nw-gold);
    line-height:0;
    transition:background .16s ease,border-color .16s ease;
  }
  .nw-tab-mid .nw-tab-plus svg{
    width:18px; height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
  }
  .nw-tab-mid:active .nw-tab-plus,
  .nw-tab-mid.is-on .nw-tab-plus{
    background:rgba(223,199,154,.2);
    border-color:var(--nw-gold);
  }
  .nw-tab-mid .nw-tab-tx{ margin-top:-2px; }
  .nw-tab-i:focus{ outline:none; }
  .nw-tab-i:focus-visible{
    outline:2px solid rgba(223,199,154,.85);
    outline-offset:-3px;
  }
  body{ padding-bottom:calc(var(--nw-tab-h) + var(--nw-tab-line) + env(safe-area-inset-bottom)); }
  @media (max-height:420px){
    :root{ --nw-tab-h:46px; }
    .nw-tab-tx{ font-size:.56rem; }
    .nw-tab-mid .nw-tab-plus{ width:30px; height:30px; }
  }
}
@media (prefers-reduced-motion:reduce){
  .nw-tab-i,.nw-tab-mid .nw-tab-plus{ transition:none; }
}
@media print{
  .nw-tab{ display:none !important; }
  body{ padding-bottom:0 !important; }
}
