/* ==========================================================================
   WebPouyan client area — navigation shell (pw-*)
   Desktop: icon rail on the right that opens over the page on hover and can be
   pinned open; a light top bar with the site menus, notifications, cart and the
   account menu. Phones: top bar, side drawer for the site menus, a floating
   bottom bar (hides while scrolling down) and two bottom sheets (services and
   account). Markup: layout/header-panel.tpl + layout/footer-panel.tpl.
   ========================================================================== */
:root {
  --pw-accent: #c11539;
  --pw-accent-soft: #fdecef;
  --pw-ink: #101828;
  --pw-ink2: #475467;
  --pw-ink3: #98a2b3;
  --pw-line: #eaecf0;
  --pw-soft: #f5f6f8;
  --pw-card: #ffffff;
  --pw-bad: #d92d20;
  --pw-bad-soft: #fef1f0;
  --pw-rail: 84px;
  --pw-open: 264px;
  --pw-top: 72px;
  --pw-ease: cubic-bezier(.2, .8, .2, 1);
  --pw-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 44px -24px rgba(16, 24, 40, .32);
}
.pw-svg { width: 20px; height: 20px; flex: none; display: block; }
[data-grp="main"] { --g: #2b3445; --g-soft: #eef1f6; }
[data-grp="srv"]  { --g: #2f6fdf; --g-soft: #ecf2fd; }
[data-grp="acc"]  { --g: #0d9b76; --g-soft: #e7f6f0; }
[data-grp="host"] { --g: #0891b2; --g-soft: #e5f6fa; }
[data-grp="vps"]  { --g: #2f6fdf; --g-soft: #ecf2fd; }
[data-grp="net"]  { --g: #7457e8; --g-soft: #f1edfd; }
[data-grp="lic"]  { --g: #c2740c; --g-soft: #fdf3e2; }
[data-grp="sup"]  { --g: #0d9b76; --g-soft: #e7f6f0; }
.pw-shell a, .pw-shell button, .pw-sheet a, .pw-sheet button, .pw-drawer a, .pw-drawer button { -webkit-tap-highlight-color: transparent; }
.pw-shell button:focus, .pw-sheet button:focus, .pw-drawer button:focus,
.pw-shell a:focus, .pw-sheet a:focus, .pw-drawer a:focus { outline: none; }
.pw-shell :focus-visible, .pw-sheet :focus-visible, .pw-drawer :focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(193, 21, 57, .22) !important; }

/* shared round icon button */
.pw-iconbtn {
  position: relative; flex: none; width: 42px; height: 42px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--pw-line); border-radius: 13px; background: var(--pw-card);
  color: var(--pw-ink2); cursor: pointer; text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.pw-iconbtn:hover { color: var(--pw-ink); border-color: #d0d5dd; background: var(--pw-soft); }
.pw-iconbtn:active { transform: scale(.95); }
.pw-badge {
  position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 2px solid #fff; background: var(--pw-accent); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 1;
}

/* ============================ DESKTOP ============================ */
@media (min-width: 1102px) {
  /* the column the fixed rail sits over */
  .pw-shell.pw-has-rail > .d-flex > .sidebar-content {
    flex: 0 0 var(--pw-rail); width: var(--pw-rail); max-width: var(--pw-rail);
    min-height: 100vh; background: transparent !important;
    transition: flex-basis .28s var(--pw-ease), max-width .28s var(--pw-ease), width .28s var(--pw-ease);
  }
  html.pw-pinned .pw-shell.pw-has-rail > .d-flex > .sidebar-content { flex-basis: var(--pw-open); width: var(--pw-open); max-width: var(--pw-open); }
  .pw-shell.pw-has-rail > .d-flex > .header-content { flex: 1 1 0; max-width: none; min-width: 0; }

  .pw-rail {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1040;
    width: var(--pw-rail); padding: 16px 14px 14px;
    display: flex; flex-direction: column;
    background: var(--pw-card); border-left: 1px solid var(--pw-line);
    overflow: hidden;
    transition: width .28s var(--pw-ease), box-shadow .28s ease;
  }
  .pw-rail.is-open, html.pw-pinned .pw-rail { width: var(--pw-open); }
  .pw-rail.is-open { box-shadow: -28px 0 60px -30px rgba(16, 24, 40, .38); }
  html.pw-pinned .pw-rail { box-shadow: none; }

  .pw-rail-logo { position: relative; display: block; height: 44px; margin: 2px 6px 18px; flex: none; }
  .pw-rail-logo img { position: absolute; top: 50%; right: 0; transform: translateY(-50%); transition: opacity .22s ease; }
  .pw-logo-s { width: 44px; height: 44px; border-radius: 13px; }
  .pw-logo-f { height: 36px; width: auto; opacity: 0; }
  .pw-rail.is-open .pw-logo-s, html.pw-pinned .pw-logo-s { opacity: 0; }
  .pw-rail.is-open .pw-logo-f, html.pw-pinned .pw-logo-f { opacity: 1; }

  .pw-rail-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; }
  .pw-ri {
    position: relative; display: flex; align-items: center; gap: 12px; flex: none;
    width: 100%; height: 50px; padding: 0 6px; border: 0; border-radius: 15px;
    background: transparent; color: var(--pw-ink2) !important; text-decoration: none !important;
    font: inherit; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
  }
  .pw-ri .pw-ic {
    flex: none; width: 44px; height: 44px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: var(--g-soft, var(--pw-soft)); color: var(--g, var(--pw-ink2));
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease;
  }
  .pw-ri .pw-ic .pw-svg { width: 21px; height: 21px; }
  .pw-ri .pw-tx { opacity: 0; transform: translateX(-6px); transition: opacity .14s ease, transform .2s ease; }
  .pw-rail.is-open .pw-tx, html.pw-pinned .pw-rail .pw-tx { opacity: 1; transform: none; transition: opacity .22s ease .07s, transform .26s ease .05s; }
  .pw-ri:hover { background: var(--pw-soft); color: var(--pw-ink) !important; }
  .pw-ri:hover .pw-ic { transform: translateY(-1px); }
  .pw-ri.is-active { background: var(--g-soft); color: var(--pw-ink) !important; font-weight: 700; }
  .pw-ri.is-active .pw-ic { background: var(--g); color: #fff; box-shadow: 0 8px 16px -8px var(--g); }
  .pw-ri.is-active::before {
    content: ""; position: absolute; right: -14px; top: 13px; bottom: 13px; width: 4px;
    border-radius: 4px 0 0 4px; background: var(--g);
  }
  .pw-rail-nav .pw-ri.is-active { overflow: visible; }

  .pw-rg {
    display: flex; align-items: center; height: 30px; margin-top: 10px; padding: 0 10px; flex: none;
    font-size: 11px; font-weight: 700; color: var(--pw-ink3); white-space: nowrap;
  }
  .pw-rg span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .26s var(--pw-ease), opacity .18s ease, margin .26s var(--pw-ease); }
  .pw-rg::after { content: ""; flex: 1; height: 1px; background: var(--pw-line); }
  .pw-rail.is-open .pw-rg span, html.pw-pinned .pw-rail .pw-rg span { max-width: 200px; opacity: 1; margin-left: 10px; }

  .pw-rail-foot { flex: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pw-line); }
  .pw-pin { color: var(--pw-ink3) !important; font-size: 12.5px; font-weight: 600; }
  .pw-pin .pw-ic { background: var(--pw-soft); color: var(--pw-ink2); border: 1px dashed #d0d5dd; }
  .pw-pin.is-on .pw-ic { background: #2b3445; color: #fff; border: 1px solid #2b3445; }

  /* ---------- top bar ---------- */
  .pw-shell .big-header.pw-top {
    position: fixed; top: 0; left: 0; right: var(--pw-rail); width: auto !important; height: var(--pw-top);
    z-index: 1030; padding: 0 !important; font-size: 13.5px;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: 1px solid var(--pw-line);
    transition: right .28s var(--pw-ease);
  }
  html.pw-pinned .pw-shell .big-header.pw-top { right: var(--pw-open); }
  .pw-shell:not(.pw-has-rail) .big-header.pw-top { right: 0; }
  .pw-top-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 26px; }
  .pw-top-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
  .pw-top-home {
    width: 40px; height: 40px; border-radius: 12px; margin-left: 4px;
    display: flex; align-items: center; justify-content: center; color: var(--pw-ink2) !important;
    transition: background-color .2s ease, color .2s ease;
  }
  .pw-top-home:hover { background: var(--pw-soft); color: var(--pw-accent) !important; }
  .pw-top-nav .head-item { margin: 0 !important; position: relative; }
  .pw-top-nav .head-item > .dropdown-toggle {
    display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 12px;
    color: var(--pw-ink2) !important; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none !important;
    transition: background-color .2s ease, color .2s ease;
  }
  .pw-top-nav .head-item > .dropdown-toggle::after { display: none; }
  .pw-top-nav .head-item > .dropdown-toggle i { font-size: 12px; transition: transform .2s ease; }
  .pw-top-nav .head-item > .dropdown-toggle:hover,
  .pw-top-nav .head-item.show > .dropdown-toggle { background: var(--pw-soft); color: var(--pw-ink) !important; }
  .pw-top-nav .head-item.show > .dropdown-toggle i { transform: rotate(180deg); color: var(--pw-accent); }
  .pw-top-nav .drop-menu, .pw-top-nav .support {
    border: 1px solid var(--pw-line) !important; border-radius: 20px !important; padding: 20px !important;
    margin-top: 10px !important; box-shadow: 0 30px 70px -28px rgba(16, 24, 40, .32), 0 2px 6px rgba(16, 24, 40, .05) !important;
  }
  .pw-top-nav .dropdown-menu.show { animation: pwPop .2s var(--pw-ease) both; }
  .pw-top-nav .drop-head {
    align-items: center; gap: 10px; padding: 10px 12px !important; border: 0 !important; border-radius: 13px;
    background: var(--pw-soft); font-weight: 700; color: var(--pw-ink);
  }
  .pw-top-nav .drop-head span { margin: 0 !important; }
  .pw-top-nav .drop-menu .mt-4, .pw-top-nav .support .mt-4 { margin-top: 10px !important; }
  .pw-top-nav .drop-menu a, .pw-top-nav .support a { display: block; text-decoration: none !important; }
  .pw-top-nav .drop-menu a p, .pw-top-nav .support a p {
    margin: 0 0 2px; padding: 8px 12px; border-radius: 11px; color: var(--pw-ink2); font-size: 13px;
    transition: background-color .15s ease, color .15s ease;
  }
  .pw-top-nav .drop-menu a:hover p, .pw-top-nav .support a:hover p { background: var(--pw-accent-soft); color: var(--pw-accent); }
  .pw-top-nav .drop-menu .text-center { border-radius: 16px; background: linear-gradient(160deg, #fff5f7, #fff); }

  .pw-top-act { display: flex; align-items: center; gap: 10px; flex: none; }
  .pw-top-sep { width: 1px; height: 28px; background: var(--pw-line); margin: 0 4px; }
  .pw-userchip {
    display: flex; align-items: center; gap: 10px; height: 48px; padding: 5px 5px 5px 12px;
    border: 1px solid var(--pw-line); border-radius: 15px; background: var(--pw-card); cursor: pointer; font: inherit;
    transition: border-color .2s ease, background-color .2s ease;
  }
  .pw-userchip:hover, .pw-user.show .pw-userchip { border-color: #d0d5dd; background: var(--pw-soft); }
  .pw-userchip img { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; }
  .pw-user-tx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.45; text-align: start; }
  .pw-user-tx b { font-size: 13px; color: var(--pw-ink); font-weight: 700; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pw-user-tx small { font-size: 11.5px; color: var(--pw-ink3); }
  .pw-chev { width: 16px; height: 16px; color: var(--pw-ink3); transition: transform .2s ease; }
  .pw-user.show .pw-chev { transform: rotate(180deg); }
  .pw-loginbtn {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 13px;
    background: var(--pw-accent); color: #fff !important; font-weight: 700; text-decoration: none !important;
    box-shadow: 0 10px 22px -12px var(--pw-accent);
  }
}

/* account dropdown (desktop) */
.pw-menu {
  width: 300px; padding: 10px !important; border: 1px solid var(--pw-line) !important; border-radius: 20px !important;
  margin-top: 10px !important; text-align: start;
  box-shadow: 0 30px 70px -28px rgba(16, 24, 40, .32), 0 2px 6px rgba(16, 24, 40, .05) !important;
}
.pw-menu.show { animation: pwPop .2s var(--pw-ease) both; }
.pw-menu-head { display: flex; align-items: center; gap: 12px; padding: 6px 6px 12px; }
.pw-menu-head img { width: 44px; height: 44px; border-radius: 14px; }
.pw-menu-head div { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.pw-menu-head b { font-size: 14px; color: var(--pw-ink); }
.pw-menu-head small { font-size: 11.5px; color: var(--pw-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.pw-menu-credit {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; margin-bottom: 8px;
  border-radius: 14px; background: var(--pw-accent-soft); color: var(--pw-ink) !important; font-size: 12.5px; font-weight: 700; text-decoration: none !important;
}
.pw-menu-credit em { display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 12px; color: var(--pw-accent); }
.pw-menu-credit em .pw-svg { width: 15px; height: 15px; }
.pw-menu-list { display: grid; gap: 1px; padding: 6px 0; border-top: 1px solid var(--pw-line); border-bottom: 1px solid var(--pw-line); }
.pw-mi {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px;
  color: var(--pw-ink2) !important; font-size: 13px; text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease;
}
.pw-mi:hover { background: var(--pw-soft); color: var(--pw-ink) !important; }
.pw-mi-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--pw-soft); color: var(--pw-ink2); }
.pw-mi-ic .pw-svg { width: 17px; height: 17px; }
.pw-mi:hover .pw-mi-ic { background: #fff; color: var(--pw-accent); box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
.pw-mi-out { margin-top: 6px; color: var(--pw-bad) !important; font-weight: 600; }
.pw-mi-out .pw-mi-ic { background: var(--pw-bad-soft); color: var(--pw-bad); }
.pw-mi-out:hover { background: var(--pw-bad-soft); color: var(--pw-bad) !important; }
@keyframes pwPop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============================ PHONES / TABLETS ============================ */
@media (max-width: 1101px) {
  .pw-shell .small-header.pw-mtop {
    position: fixed; top: 0; left: 0; right: 0; width: auto; height: 64px; z-index: 1030;
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px;
    background: rgba(255, 255, 255, .9); box-shadow: none; border-bottom: 1px solid var(--pw-line);
    -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
  }
  .pw-mlogo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; }
  .pw-mlogo img { height: 30px; width: auto; display: block; }
  .pw-mtop-act { display: flex; align-items: center; gap: 8px; }
  .pw-mtop .pw-iconbtn { width: 40px; height: 40px; border-radius: 12px; }
}
@media (min-width: 1102px) {
  .pw-drawer, .pw-sheet { display: none !important; }
}

/* ---------- side drawer (site menus) ---------- */
.pw-drawer, .pw-sheet { position: fixed; inset: 0; z-index: 2147483100; font-family: inherit; }
.pw-drawer[hidden], .pw-sheet[hidden] { display: none; }
.pw-drawer-bg, .pw-sheet-bg {
  position: absolute; inset: 0; background: rgba(12, 17, 28, .46);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s ease; touch-action: none;
}
.pw-drawer.is-open .pw-drawer-bg, .pw-sheet.is-open .pw-sheet-bg { opacity: 1; }
.pw-drawer-box {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(88vw, 380px);
  display: flex; flex-direction: column; gap: 12px; padding: 14px 14px calc(20px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--pw-card); border-radius: 24px 0 0 24px;
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .35);
  transform: translateX(104%); transition: transform .36s cubic-bezier(.32, .72, 0, 1);
}
.pw-drawer.is-open .pw-drawer-box { transform: none; }
.pw-drawer-box.is-drag { transition: none; }
.pw-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 4px; }
.pw-drawer-head img { height: 32px; width: auto; }
.pw-drawer-user, .pw-drawer-login {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px;
  background: var(--pw-soft); color: var(--pw-ink) !important; text-decoration: none !important;
}
.pw-drawer-user img { width: 44px; height: 44px; border-radius: 14px; }
.pw-drawer-user span { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.5; }
.pw-drawer-user b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-drawer-user small { font-size: 12px; color: var(--pw-ink3); }
.pw-drawer-login { background: var(--pw-accent); color: #fff !important; font-weight: 700; justify-content: center; }
.pw-chevs { width: 16px; height: 16px; color: var(--pw-ink3); flex: none; }
.pw-acc { display: flex; flex-direction: column; gap: 10px; }
.pw-acc-g { border: 1px solid var(--pw-line); border-radius: 18px; background: var(--pw-card); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.pw-acc-g[open] { border-color: transparent; box-shadow: 0 0 0 1.5px var(--g); }
.pw-acc-g summary {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; list-style: none;
  color: var(--pw-ink); font-size: 14px; font-weight: 700;
}
.pw-acc-g summary::-webkit-details-marker { display: none; }
.pw-acc-ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--g-soft); color: var(--g); transition: background-color .2s ease, color .2s ease; }
.pw-acc-g[open] .pw-acc-ic { background: var(--g); color: #fff; box-shadow: 0 8px 16px -8px var(--g); }
.pw-acc-tx { flex: 1; }
.pw-acc-g summary em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--pw-ink3); background: var(--pw-soft); border-radius: 99px; padding: 2px 9px; }
.pw-acc-g .pw-chev { width: 18px; height: 18px; color: var(--pw-ink3); transition: transform .25s var(--pw-ease); }
.pw-acc-g[open] .pw-chev { transform: rotate(180deg); color: var(--g); }
.pw-acc-list { display: grid; gap: 2px; padding: 0 10px 10px; animation: pwPop .22s var(--pw-ease) both; }
.pw-acc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px;
  color: var(--pw-ink2) !important; font-size: 13.5px; text-decoration: none !important;
}
.pw-acc-list a:active, .pw-acc-list a:hover { background: var(--g-soft); color: var(--pw-ink) !important; }

/* ---------- bottom bar ---------- */
@media (max-width: 1101px) {
  .pw-shell .footer-cont.pw-bbar {
    position: fixed; left: 0; right: 0; bottom: 0; width: auto; z-index: 1030;
    padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
    transition: transform .34s var(--pw-ease), opacity .25s ease;
  }
  .pw-shell .footer-cont.pw-bbar.is-hidden { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
  .pw-shell .footer-cont .footer.pw-bbar-in {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch;
    height: 66px; padding: 0 4px; border-radius: 22px;
    background: rgba(255, 255, 255, .95); border: 1px solid var(--pw-line);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    box-shadow: 0 18px 40px -18px rgba(16, 24, 40, .38), 0 2px 6px rgba(16, 24, 40, .06);
  }
}
.pw-bi {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--pw-ink3) !important; font: inherit; font-size: 11px; font-weight: 600; text-decoration: none !important;
  transition: color .2s ease;
}
.pw-bi .pw-svg { width: 23px; height: 23px; transition: transform .2s ease; }
.pw-bi:active .pw-svg { transform: scale(.9); }
.pw-bi.is-active { color: var(--pw-accent) !important; }
.pw-bi.is-active::before { content: ""; position: absolute; top: 0; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--pw-accent); }
.pw-bi-c i {
  width: 56px; height: 56px; margin-top: -30px; border-radius: 19px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pw-accent); color: #fff; border: 4px solid #fff;
  box-shadow: 0 14px 26px -10px rgba(193, 21, 57, .65);
  transition: transform .2s ease;
}
.pw-bi-c i .pw-svg { width: 24px; height: 24px; }
.pw-bi-c:active i { transform: scale(.94); }
.pw-bi-c.is-active::before { display: none; }
.pw-bi-c span { color: var(--pw-ink2); }
.pw-bi-c.is-active span { color: var(--pw-accent); }

/* ---------- bottom sheets ---------- */
.pw-sheet-box {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--pw-card); border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 50px -20px rgba(0, 0, 0, .35);
  transform: translateY(104%); transition: transform .36s cubic-bezier(.32, .72, 0, 1);
}
@media (min-width: 560px) { .pw-sheet-box { max-width: 520px; margin: 0 auto; } }
.pw-sheet.is-open .pw-sheet-box { transform: none; }
.pw-sheet-box.is-drag { transition: none; }
.pw-sheet-grab { width: 42px; height: 5px; border-radius: 5px; background: #dfe3ea; margin: 6px auto 10px; }
.pw-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 12px; }
.pw-sheet-head b { font-size: 17px; font-weight: 800; color: var(--pw-ink); }
.pw-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pw-tile {
  display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--pw-line); border-radius: 18px;
  color: var(--pw-ink) !important; font-size: 14px; font-weight: 700; text-decoration: none !important;
  transition: transform .14s ease, border-color .2s ease;
}
.pw-tile:active { transform: scale(.97); border-color: var(--g); }
.pw-tile-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--g-soft); color: var(--g); }
.pw-tile-ic .pw-svg { width: 22px; height: 22px; }
.pw-sheet.is-open .pw-tile { animation: pwTileIn .34s var(--pw-ease) both; animation-delay: calc(var(--i, 0) * 30ms + 60ms); }
@keyframes pwTileIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.pw-sheet-cta {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 18px;
  background: var(--pw-accent-soft); color: var(--pw-ink) !important; text-decoration: none !important;
}
.pw-sheet-cta .pw-tile-ic { background: var(--pw-accent); color: #fff; box-shadow: 0 10px 20px -10px var(--pw-accent); }
.pw-sheet-cta > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.5; }
.pw-sheet-cta b { font-size: 14px; }
.pw-sheet-cta small { font-size: 12px; color: var(--pw-ink2); }
.pw-acc-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--pw-soft); }
.pw-acc-card img { width: 52px; height: 52px; border-radius: 16px; }
.pw-acc-card span { display: flex; flex-direction: column; min-width: 0; line-height: 1.55; }
.pw-acc-card b { font-size: 15px; color: var(--pw-ink); }
.pw-acc-card small { font-size: 12px; color: var(--pw-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.pw-sheet-credit {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 16px;
  border: 1px solid #f9d3db; background: var(--pw-accent-soft); color: var(--pw-ink) !important; text-decoration: none !important;
}
.pw-sheet-credit > span { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pw-sheet-credit > span .pw-svg { color: var(--pw-accent); }
.pw-sheet-credit em { display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--pw-accent); }
.pw-sheet-credit em .pw-svg { width: 16px; height: 16px; }
.pw-sheet-list { display: grid; gap: 2px; margin-top: 12px; }
.pw-sheet-list a {
  display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 14px;
  color: var(--pw-ink) !important; font-size: 14px; text-decoration: none !important;
}
.pw-sheet-list a > span:nth-child(2) { flex: 1; }
.pw-sheet-list a:active { background: var(--pw-soft); }
.pw-sheet-list .pw-mi-ic { width: 38px; height: 38px; border-radius: 12px; }
.pw-sheet-list .pw-mi-ic .pw-svg { width: 19px; height: 19px; }
.pw-sheet-out {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 13px; border-radius: 16px;
  background: var(--pw-bad-soft); color: var(--pw-bad) !important; font-size: 14px; font-weight: 700; text-decoration: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .pw-rail, .pw-drawer-box, .pw-sheet-box, .pw-bbar, .pw-tx { transition: none !important; }
  .pw-sheet.is-open .pw-tile, .pw-acc-list { animation: none !important; }
}
