/*
Theme Name: 云幕壁纸
Theme URI: https://yunmaku.com/
Author: 云幕壁纸
Author URI: https://yunmaku.com/
Description: 高清壁纸站独立主题：瀑布流壁纸、动态壁纸预览、多设备样机、头像制作、壁纸社区、图搜图、收藏与下载统计，内置 DIY 首页模块、悬浮工具条、完整主题设置面板、壁纸采集中心（支持站点智能识别与人工确认批量抓取）与主题授权中心。
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yunmu
Tags: dark, light, masonry, wallpaper, gallery, community
*/

/* =========================================================
   0. Design tokens
   ========================================================= */
:root {
  --hw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --hw-radius: 15px;
  --hw-radius-sm: 10px;
  --hw-radius-xs: 7px;
  --hw-gap: 24px;
  --hw-accent: #3b6bff;
  --hw-accent-2: #6f8bbe;
  --hw-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  --hw-shadow-sm: 0 8px 26px rgba(0, 0, 0, .35);
  --hw-blur: 18px;
  --hw-max: 1760px;
  --hw-pad: 34px;
  --hw-header-h: 112px;
  --hw-bar-h: 76px;
  --hw-transition: .28s cubic-bezier(.22, .61, .36, 1);
}

body.hw-dark {
  --hw-bg: #191919;
  --hw-bg-2: #262625;
  --hw-bg-3: #141313;
  --hw-text: #ffffff;
  --hw-text-2: #c8c8c8;
  --hw-text-3: #a3a3a3;
  --hw-card: rgba(255, 255, 255, .09);
  --hw-card-hover: rgba(255, 255, 255, .14);
  --hw-card-solid: #232222;
  --hw-pill: rgba(35, 34, 34, .82);
  --hw-pill-solid: #232222;
  --hw-border: rgba(255, 255, 255, .12);
  --hw-border-strong: rgba(255, 255, 255, .24);
  --hw-input: rgba(0, 0, 0, .3);
  --hw-overlay: rgba(0, 0, 0, .58);
  --hw-footer: #171616;
  --hw-chip: rgba(255, 255, 255, .11);
  --hw-chip-text: #ededed;
  --hw-scroll: rgba(255, 255, 255, .22);
  --hw-primary-bg: #ffffff;
  --hw-primary-fg: #121212;
  --hw-link: #8fb0ff;
  --hw-danger: #ff8f8f;
}

body.hw-light {
  --hw-bg: #f1f2f4;
  --hw-bg-2: #fafbfc;
  --hw-bg-3: #ffffff;
  --hw-text: #1b1b1d;
  --hw-text-2: #34343a;
  --hw-text-3: #56565e;
  --hw-card: rgba(255, 255, 255, .94);
  --hw-card-hover: #ffffff;
  --hw-card-solid: #ffffff;
  --hw-pill: rgba(255, 255, 255, .9);
  --hw-pill-solid: #ffffff;
  --hw-border: rgba(0, 0, 0, .1);
  --hw-border-strong: rgba(0, 0, 0, .2);
  --hw-input: rgba(0, 0, 0, .045);
  --hw-overlay: rgba(255, 255, 255, .78);
  --hw-footer: #e8e9ec;
  --hw-chip: rgba(0, 0, 0, .055);
  --hw-chip-text: #2c2c30;
  --hw-scroll: rgba(0, 0, 0, .22);
  --hw-shadow: 0 18px 40px rgba(20, 24, 36, .12);
  --hw-shadow-sm: 0 8px 24px rgba(20, 24, 36, .09);
  --hw-accent: #2852d8;
  --hw-accent-2: #405da8;
  --hw-primary-bg: #1b1b1d;
  --hw-primary-fg: #ffffff;
  --hw-link: #2852d8;
  --hw-danger: #b42318;
}

/* =========================================================
   1. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--hw-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--hw-text);
  background: var(--hw-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color var(--hw-transition); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
figure { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--hw-accent); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--hw-scroll); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

.hw-shell { position: relative; min-height: 100vh; }

/* Background layer */
.hw-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--hw-bg);
}
.hw-bg::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: var(--hw-bg-image, radial-gradient(120% 90% at 18% 0%, #2d2d2d 0%, #1a1a1a 52%, #0f0f0f 100%));
  background-size: cover;
  background-position: center;
  filter: blur(26px) saturate(.8);
  opacity: var(--hw-bg-opacity, .9);
  transition: opacity .4s;
}
body.hw-light .hw-bg::before {
  filter: blur(50px) saturate(.55) brightness(2.15);
  opacity: .16;
}
.hw-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, .05), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .35) 100%);
}
body.hw-light .hw-bg::after {
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(255, 255, 255, .2), transparent 72%),
    linear-gradient(180deg, rgba(241, 242, 244, .9) 0%, rgba(241, 242, 244, .97) 100%);
}

/* =========================================================
   2. Icons / common
   ========================================================= */
.hw-icon { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
.hw-icon svg { width: 100%; height: 100%; display: block; }
.hw-icon--sm { width: 14px; height: 14px; }
.hw-icon--lg { width: 22px; height: 22px; }

.hw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--hw-chip);
  color: var(--hw-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--hw-transition), color var(--hw-transition), transform var(--hw-transition), border-color var(--hw-transition);
}
.hw-btn:hover { background: var(--hw-card-hover); transform: translateY(-1px); }
.hw-btn--primary { background: var(--hw-primary-bg); color: var(--hw-primary-fg); font-weight: 600; }
.hw-btn--primary:hover { background: var(--hw-primary-bg); filter: brightness(.94); }
.hw-btn--accent { background: var(--hw-accent); color: #fff; }
.hw-btn--ghost { background: transparent; border-color: var(--hw-border-strong); }
.hw-btn--ghost:hover { background: var(--hw-chip); }
.hw-btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.hw-btn--block { width: 100%; }

.hw-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--hw-chip);
  color: var(--hw-chip-text);
  font-size: 12.5px;
  line-height: 1;
  border: 1px solid transparent;
  transition: all var(--hw-transition);
}
.hw-chip:hover { background: var(--hw-card-hover); color: var(--hw-text); }
.hw-chip.is-active { background: var(--hw-text); color: var(--hw-bg); font-weight: 600; }

.hw-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  backdrop-filter: blur(6px);
}

/* =========================================================
   3. Header
   ========================================================= */
.hw-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--hw-pad);
  pointer-events: none;
  transition: transform var(--hw-transition), padding var(--hw-transition);
}
.hw-top > * { pointer-events: auto; }
.hw-top.is-hidden { transform: translateY(-110%); }

.hw-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 62px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: var(--hw-pill);
  border: 1px solid var(--hw-border);
  backdrop-filter: blur(var(--hw-blur)) saturate(1.2);
  box-shadow: var(--hw-shadow-sm);
  transition: background var(--hw-transition);
}
.hw-logo:hover { background: var(--hw-card-hover); }
.hw-logo__mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.hw-logo__mark img { width: 100%; height: 100%; object-fit: contain; }
.hw-logo__text {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--hw-text);
  opacity: .92;
}
@media (max-width: 1100px) {
  .hw-logo__text { font-size: 20px; }
}

.hw-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  height: 60px;
  padding: 5px;
  border-radius: 999px;
  background: var(--hw-pill);
  border: 1px solid var(--hw-border);
  backdrop-filter: blur(var(--hw-blur)) saturate(1.2);
  box-shadow: var(--hw-shadow-sm);
}
.hw-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 50px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--hw-text-2);
  white-space: nowrap;
  transition: background var(--hw-transition), color var(--hw-transition);
}
.hw-nav__link .hw-icon { opacity: .72; }
.hw-nav__link:hover { color: var(--hw-text); background: rgba(255, 255, 255, .07); }
body.hw-light .hw-nav__link:hover { background: rgba(0, 0, 0, .05); }
.hw-nav__link.is-active { background: var(--hw-text); color: var(--hw-bg); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.hw-nav__link.is-active .hw-icon { opacity: 1; }
.hw-nav__link--ext .hw-icon { opacity: .55; }

.hw-top__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hw-top__tools {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--hw-pill);
  border: 1px solid var(--hw-border);
  backdrop-filter: blur(var(--hw-blur));
  box-shadow: var(--hw-shadow-sm);
}
.hw-theme-toggle {
  position: relative;
  width: 62px;
  height: 32px;
  margin: 0 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .14);
}
body.hw-light .hw-theme-toggle { background: rgba(0, 0, 0, .12); }
.hw-theme-toggle__sun,
.hw-theme-toggle__moon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transition: color var(--hw-transition);
}
.hw-theme-toggle__sun { right: 5px; color: #f2c94c; }
.hw-theme-toggle__moon { left: 5px; color: #b7b7b7; }
.hw-theme-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1c40f;
  box-shadow: 0 0 12px rgba(241, 196, 15, .55);
  transition: transform var(--hw-transition), background var(--hw-transition), box-shadow var(--hw-transition);
}
body.hw-light .hw-theme-toggle__thumb {
  transform: translateX(30px);
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.hw-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--hw-text-2);
  transition: background var(--hw-transition), color var(--hw-transition);
  position: relative;
}
.hw-iconbtn:hover { background: var(--hw-card); color: var(--hw-text); }
.hw-iconbtn__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #eb5757;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.hw-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 15px 0 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--hw-pill), var(--hw-pill)) padding-box,
    linear-gradient(135deg, rgba(120, 140, 255, .85), rgba(255, 255, 255, .14) 45%, rgba(80, 220, 255, .75)) border-box;
  color: var(--hw-text);
  font-size: 13px;
  letter-spacing: .01em;
  backdrop-filter: blur(var(--hw-blur));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
  transition: transform var(--hw-transition), box-shadow var(--hw-transition), filter var(--hw-transition);
  overflow: hidden;
}
.hw-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .1) 48%, transparent 66%);
  transform: translateX(-110%);
  transition: transform .55s ease;
  pointer-events: none;
}
.hw-login:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0, 0, 0, .26); color: var(--hw-text); }
.hw-login:hover::before { transform: translateX(110%); }
.hw-login__orb {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #8fa4ff, #aef0ff);
  color: #0c1220;
  box-shadow: 0 4px 12px rgba(103, 138, 255, .35);
  transition: transform var(--hw-transition);
}
.hw-login:hover .hw-login__orb { transform: rotate(-8deg) scale(1.05); }
.hw-login__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.08; }
.hw-login__text b { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
.hw-login__text em { font-style: normal; font-size: 9.5px; color: var(--hw-text-3); letter-spacing: .08em; }
.hw-login.is-user {
  padding: 0;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  border: 1px solid var(--hw-border-strong);
  background: var(--hw-card);
  box-shadow: 0 0 0 3px rgba(120, 140, 255, .1), 0 10px 24px rgba(0, 0, 0, .22);
}
.hw-login.is-user::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #57d98a;
  border: 2px solid var(--hw-bg);
  box-shadow: 0 0 0 2px rgba(87, 217, 138, .18);
}
.hw-login.is-user:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(120, 140, 255, .16), 0 14px 30px rgba(0, 0, 0, .26); }
.hw-login img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* dropdown panels */
.hw-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  width: 288px;
  padding: 18px;
  border-radius: 16px;
  background: var(--hw-card-solid);
  border: 1px solid var(--hw-border);
  box-shadow: var(--hw-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transition: all var(--hw-transition);
}
.hw-dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.hw-userbox { position: relative; }
.hw-userbox__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hw-border); }
.hw-userbox__head--guest { border-bottom: 0; padding-bottom: 0; }
.hw-userbox__avatar { width: 46px; height: 46px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; background: var(--hw-bg-3); border: 1px solid var(--hw-border); }
.hw-userbox__avatar--guest { display: grid; place-items: center; color: var(--hw-text); background: linear-gradient(135deg, rgba(120, 140, 255, .24), rgba(80, 220, 255, .12)); }
.hw-userbox__avatar--guest .hw-icon { width: 22px; height: 22px; }
.hw-userbox__identity { min-width: 0; display: grid; gap: 4px; }
.hw-userbox__identity b { font-size: 14.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-userbox__identity span { font-size: 11.5px; color: var(--hw-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-userbox__online { width: 7px; height: 7px; margin-left: auto; flex: 0 0 auto; border-radius: 50%; background: #57d98a; box-shadow: 0 0 0 3px rgba(87, 217, 138, .12); }
.hw-userbox__title { font-size: 13px; color: var(--hw-text-2); text-align: center; margin-bottom: 14px; }
.hw-userbox__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.hw-userbox__stats > span { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--hw-border); background: var(--hw-card); font-size: 11.5px; color: var(--hw-text-3); }
.hw-userbox__stats em { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 8px; background: var(--hw-chip); color: var(--hw-text-2); font-style: normal; }
.hw-userbox__stats em .hw-icon { width: 13px; height: 13px; }
.hw-userbox__stats b { color: var(--hw-text); font-weight: 700; font-size: 15px; line-height: 1; }
.hw-userbox__stats small { color: var(--hw-text-3); font-size: 10.5px; }
.hw-userbox__cta { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px; padding: 0 16px; border-radius: 12px; background: linear-gradient(135deg, var(--hw-accent), #7a8dff); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px rgba(59, 107, 255, .28); }
.hw-userbox__cta:hover { filter: brightness(1.06); }
.hw-userbox__cta .hw-icon { opacity: .8; }
.hw-userbox__perks { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.hw-userbox__perks span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: var(--hw-chip); color: var(--hw-text-3); font-size: 10.5px; }
.hw-userbox__perks .hw-icon { width: 11px; height: 11px; color: #57d98a; }
.hw-userbox__menu { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--hw-border); }
.hw-userbox__setting {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid var(--hw-border);
  font-size: 13px; color: var(--hw-text-2);
}
.hw-switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 99px;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: background var(--hw-transition), border-color var(--hw-transition), box-shadow var(--hw-transition);
}
body.hw-light .hw-switch { background: rgba(0, 0, 0, .15); border-color: rgba(0, 0, 0, .08); }
body.hw-light .hw-switch:hover { background: rgba(0, 0, 0, .2); }
body.hw-light .hw-switch.is-on,
body.hw-light .hw-switch.is-on:hover {
  background: var(--hw-accent);
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(40, 82, 216, .16);
}
.hw-switch:hover { background: rgba(255, 255, 255, .25); }
body.hw-light .hw-switch:hover { background: rgba(0, 0, 0, .2); }
.hw-switch:focus-visible { outline: 2px solid var(--hw-accent); outline-offset: 2px; }
.hw-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
  transition: transform var(--hw-transition), box-shadow var(--hw-transition);
}
.hw-switch.is-on {
  background: var(--hw-accent);
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(59, 107, 255, .2);
}
.hw-switch.is-on:hover { background: var(--hw-accent); box-shadow: 0 0 0 4px rgba(59, 107, 255, .24); }
.hw-switch.is-on::after { transform: translateX(20px); box-shadow: 0 1px 4px rgba(0, 0, 0, .32); }
.hw-notice-list { max-height: 300px; overflow: auto; }
.hw-notice { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hw-border); }
.hw-notice:last-child { border-bottom: 0; }
.hw-notice__dot { width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: #eb5757; flex: 0 0 auto; }
.hw-notice__body { font-size: 12.5px; color: var(--hw-text-2); }
.hw-notice__body b { display: block; color: var(--hw-text); font-weight: 500; margin-bottom: 2px; }
.hw-notice__body time { color: var(--hw-text-3); font-size: 11.5px; }

/* =========================================================
   4. Wallpaper grid
   ========================================================= */
.hw-main {
  position: relative;
  z-index: 1;
  padding: var(--hw-header-h) var(--hw-pad) calc(var(--hw-bar-h) + 60px);
  max-width: var(--hw-max);
  margin: 0 auto;
}
.hw-main--flush { padding-top: 0; }

.hw-grid-wrap { position: relative; }
.hw-grid {
  position: relative;
  width: 100%;
  transition: height .35s ease;
}
.hw-card {
  position: absolute;
  top: 0; left: 0;
  width: 0;
  border-radius: var(--hw-radius);
  overflow: hidden;
  background: var(--hw-card);
  box-shadow: var(--hw-shadow);
  transition: box-shadow var(--hw-transition), transform var(--hw-transition);
  will-change: transform, width;
}
body.hw-low-power .hw-card { box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.hw-card:hover { box-shadow: 0 26px 60px rgba(0, 0, 0, .55); }
body.hw-light .hw-card:hover { box-shadow: 0 22px 50px rgba(0, 0, 0, .18); }

.hw-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--hw-ar, 16 / 9);
  overflow: hidden;
  background: var(--hw-bg-2);
}
.hw-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.hw-card:hover .hw-card__img { transform: scale(1.045); }
.hw-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.hw-card__video.is-playing,
.hw-card.is-video-live .hw-card__video { opacity: 1; }
.hw-card.is-video-live .hw-card__img { transform: none; }
.hw-card.is-video-live .hw-card__badge--video { background: rgba(0, 0, 0, .62); }
.hw-card.is-video-live .hw-card__badge--video i { background: #57d98a; box-shadow: 0 0 0 0 rgba(87, 217, 138, .55); animation: hw-live-pulse 1.6s ease-out infinite; }
@keyframes hw-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(87, 217, 138, .55); }
  70% { box-shadow: 0 0 0 8px rgba(87, 217, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 217, 138, 0); }
}
.hw-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: opacity var(--hw-transition);
  pointer-events: none;
}
.hw-card__play .hw-icon { width: 15px; height: 15px; }
.hw-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .45);
  color: #fff; font-size: 11px;
  backdrop-filter: blur(6px);
}
.hw-card__badge--video i { width: 5px; height: 5px; border-radius: 50%; background: #a6a6a6; }
.hw-card__quick {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--hw-transition), transform var(--hw-transition);
}
.hw-card:hover .hw-card__quick, .hw-card:focus-within .hw-card__quick { opacity: 1; transform: none; }
.hw-card__qbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(18, 18, 18, .55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background var(--hw-transition), transform var(--hw-transition);
}
.hw-card__qbtn:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.hw-card__qbtn.is-fav { color: #ffd76a; border-color: rgba(255, 215, 106, .55); }

.hw-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, .06) 38%, rgba(0, 0, 0, .55) 100%);
  transition: opacity var(--hw-transition);
}
.hw-card:hover .hw-card__overlay { opacity: 1; }
.hw-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-right: 10px;
}
.hw-card__tags .hw-tag { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .14); }
.hw-card__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: -10px;
}
.hw-card__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
  transition: background var(--hw-transition), transform var(--hw-transition);
}
.hw-card__go:hover { background: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.hw-card__go .hw-icon { width: 16px; height: 16px; }
.hw-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .82);
  font-size: 11.5px;
  flex-wrap: wrap;
}
.hw-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.hw-card__meta .hw-icon { width: 13px; height: 13px; }

/* skeleton */
.hw-card--skeleton { background: linear-gradient(100deg, var(--hw-card) 20%, var(--hw-card-hover) 40%, var(--hw-card) 60%); background-size: 200% 100%; animation: hw-shimmer 1.4s infinite; }
@keyframes hw-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* =========================================================
   5. Filter bar
   ========================================================= */
.hw-filters {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 24px);
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--hw-pill);
  border: 1px solid var(--hw-border);
  backdrop-filter: blur(var(--hw-blur)) saturate(1.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
body.hw-light .hw-filters { box-shadow: 0 16px 40px rgba(0, 0, 0, .14); }

.hw-filter__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  width: 208px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--hw-input);
  border: 1px solid transparent;
  transition: border-color var(--hw-transition), background var(--hw-transition);
}
.hw-filter__search:focus-within { border-color: var(--hw-border-strong); }
.hw-filter__search .hw-icon { color: var(--hw-text-3); }
.hw-filter__search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 13.5px;
  color: var(--hw-text);
}
.hw-filter__search input::placeholder { color: var(--hw-text-3); }

.hw-filter__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 50px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--hw-text-2);
  font-size: 13.5px;
  white-space: nowrap;
  transition: background var(--hw-transition), color var(--hw-transition);
}
.hw-filter__btn:hover, .hw-filter__btn.is-open { background: var(--hw-card); color: var(--hw-text); }
.hw-filter__btn .hw-icon { width: 16px; height: 16px; opacity: .8; }
.hw-filter__btn.is-active { background: var(--hw-text); color: var(--hw-bg); }
.hw-filter__btn--icon { width: 50px; padding: 0; justify-content: center; }

.hw-filters__divider { width: 1px; height: 26px; background: var(--hw-border); margin: 0 2px; }

/* popovers */
.hw-pop {
  position: absolute;
  bottom: calc(100% + 14px);
  z-index: 130;
  min-width: 190px;
  padding: 12px;
  border-radius: 16px;
  background: var(--hw-card-solid);
  border: 1px solid var(--hw-border);
  box-shadow: var(--hw-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--hw-transition);
}
.hw-pop.is-open { opacity: 1; visibility: visible; transform: none; }
.hw-pop--right { right: 0; }
.hw-pop--left { left: 0; }
.hw-pop__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--hw-text-2);
  text-align: left;
  transition: background var(--hw-transition), color var(--hw-transition);
}
.hw-pop__item:hover { background: var(--hw-chip); color: var(--hw-text); }
.hw-pop__item.is-active { color: var(--hw-text); background: var(--hw-chip); font-weight: 600; }
.hw-pop__item .hw-icon { width: 15px; height: 15px; opacity: .7; }
.hw-pop__title { padding: 4px 12px 8px; font-size: 12px; color: var(--hw-text-3); }

/* resolution grid */
.hw-pop--res { width: 300px; padding: 14px; }
.hw-res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hw-res-btn {
  height: 40px;
  border-radius: 9px;
  background: var(--hw-chip);
  color: var(--hw-text-2);
  font-size: 13px;
  transition: all var(--hw-transition);
}
.hw-res-btn:hover, .hw-res-btn.is-active { background: var(--hw-text); color: var(--hw-bg); font-weight: 600; }
.hw-res-custom { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.hw-res-custom input {
  width: 100%; height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--hw-border-strong);
  background: var(--hw-input);
  font-size: 12.5px;
  outline: 0;
}
.hw-res-custom span { color: var(--hw-text-3); font-size: 12px; }
.hw-pop__hint { margin-top: 10px; font-size: 11.5px; color: var(--hw-text-3); line-height: 1.5; }

/* advanced filter */
.hw-pop--filter {
  width: min(660px, calc(100vw - 32px));
  padding: 0;
  right: 0;
  overflow: hidden;
}
.hw-filterpanel { display: flex; }
.hw-filterpanel__tabs {
  width: 108px;
  padding: 14px 10px;
  border-right: 1px solid var(--hw-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}
.hw-filterpanel__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--hw-text-3);
  text-align: left;
}
.hw-filterpanel__tab b { font-weight: 500; color: var(--hw-text); }
.hw-filterpanel__tab.is-active { background: var(--hw-chip); }
.hw-filterpanel__tab.is-active b { color: var(--hw-text); }
.hw-filterpanel__tab em { font-style: normal; font-size: 11px; color: var(--hw-text-3); }
.hw-filterpanel__body { flex: 1; min-width: 0; padding: 16px 18px; max-height: 60vh; overflow: auto; }
.hw-filterpanel__pane { display: none; }
.hw-filterpanel__pane.is-active { display: block; }
.hw-filterpanel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 14px; }
.hw-catcell { padding: 8px 4px; border-radius: 8px; transition: background var(--hw-transition); }
.hw-catcell:hover { background: var(--hw-chip); }
.hw-catcell__name { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hw-text); white-space: nowrap; }
.hw-catcell__name .hw-check { width: 15px; height: 15px; border-radius: 4px; border: 1px solid var(--hw-border-strong); display: inline-grid; place-items: center; font-size: 9px; color: transparent; flex: 0 0 auto; }
.hw-catcell.is-on .hw-check { background: var(--hw-text); color: var(--hw-bg); border-color: var(--hw-text); }
.hw-catcell__sub { font-size: 11px; color: var(--hw-text-3); margin-top: 2px; padding-left: 21px; line-height: 1.35; }
.hw-filterpanel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--hw-border);
  background: var(--hw-card);
}
.hw-filterpanel__foot small { color: var(--hw-text-3); font-size: 11.5px; }

/* layout popover */
.hw-pop--layout { width: 230px; padding: 16px; }
.hw-pop__label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--hw-text-2); margin-bottom: 8px; }
.hw-range { width: 100%; accent-color: var(--hw-text); }
.hw-pop__cols { display: flex; gap: 6px; margin-top: 12px; }
.hw-colbtn { flex: 1; height: 38px; border-radius: 8px; background: var(--hw-chip); font-size: 13px; color: var(--hw-text-2); }
.hw-colbtn.is-active { background: var(--hw-text); color: var(--hw-bg); }

/* =========================================================
   6. Pagination
   ========================================================= */
.hw-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 46px auto 0;
  flex-wrap: wrap;
}
.hw-page {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 6px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--hw-text-2);
  transition: all var(--hw-transition);
}
.hw-page:hover { background: var(--hw-card); color: var(--hw-text); }
.hw-page.is-current { background: var(--hw-text); color: var(--hw-bg); font-weight: 600; }
.hw-page--arrow { background: var(--hw-card); }
.hw-page--dots { pointer-events: none; }
.hw-page--go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: var(--hw-card);
}
.hw-page--go input {
  width: 60px;
  height: 32px;
  border: 0;
  outline: 0;
  border-radius: 99px;
  background: var(--hw-input);
  text-align: center;
  font-size: 12.5px;
  color: var(--hw-text);
}
.hw-page--go button { font-size: 12.5px; color: var(--hw-text-2); padding: 0 8px; }
.hw-page--go button:hover { color: var(--hw-text); }

/* infinite loading */
.hw-infinite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 64px;
  margin-top: 30px;
  color: var(--hw-text-3);
  font-size: 13px;
}
.hw-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--hw-border-strong);
  border-top-color: var(--hw-text);
  border-radius: 50%;
  animation: hw-spin .8s linear infinite;
}
@keyframes hw-spin { to { transform: rotate(360deg); } }

/* =========================================================
   7. Footer
   ========================================================= */
.hw-footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  background: var(--hw-footer);
  border-top: 1px solid var(--hw-border);
  padding: 56px var(--hw-pad) 0;
}
.hw-footer__inner {
  max-width: var(--hw-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 46px;
}
.hw-footer__brand { display: flex; align-items: flex-start; gap: 14px; }
.hw-footer__logo { width: 46px; height: 46px; flex: 0 0 auto; }
.hw-footer__logo img { width: 100%; height: 100%; object-fit: contain; }
.hw-footer__name { font-size: 20px; font-weight: 600; margin-bottom: 2px; }
.hw-footer__en { font-size: 10px; letter-spacing: .28em; color: var(--hw-text-3); text-transform: uppercase; margin-bottom: 16px; }
.hw-footer__desc { font-size: 12.5px; color: var(--hw-text-2); line-height: 1.8; max-width: 330px; }
.hw-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.hw-footer__social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hw-border-strong);
  color: var(--hw-text-2);
  transition: all var(--hw-transition);
}
.hw-footer__social a:hover { color: var(--hw-text); border-color: var(--hw-text); transform: translateY(-2px); }
.hw-footer__col h4 { font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.hw-footer__links { display: flex; flex-direction: column; gap: 12px; }
.hw-footer__links a, .hw-footer__links span { font-size: 12.5px; color: var(--hw-text-2); display: inline-flex; align-items: center; gap: 8px; }
.hw-footer__links a:hover { color: var(--hw-text); }
.hw-footer__links .hw-icon { width: 15px; height: 15px; opacity: .55; }
.hw-footer__links em { font-style: normal; color: var(--hw-text-3); display: block; font-size: 11.5px; }
.hw-footer__bottom {
  max-width: var(--hw-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--hw-border);
  font-size: 12px;
  color: var(--hw-text-3);
  flex-wrap: wrap;
}
.hw-footer__bottom a { color: var(--hw-text-3); }
.hw-footer__bottom a:hover { color: var(--hw-text); }
.hw-footer__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hw-footer__top {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--hw-card);
}
.hw-footer__top:hover { background: var(--hw-card-hover); color: var(--hw-text); }

/* =========================================================
   8. Modals / toast / forms
   ========================================================= */
.hw-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--hw-transition), visibility var(--hw-transition);
}
.hw-modal.is-open { opacity: 1; visibility: visible; }
.hw-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, #2a2929, #141313 70%);
  border: 1px solid var(--hw-border-strong);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
  transform: translateY(12px) scale(.98);
  transition: transform var(--hw-transition);
}
body.hw-light .hw-modal__panel { background: radial-gradient(circle at 50% 0%, #ffffff, #f1f1f1 70%); }
.hw-modal.is-open .hw-modal__panel { transform: none; }
.hw-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--hw-text-2);
  transition: all var(--hw-transition);
  z-index: 3;
}
.hw-modal__close:hover { background: var(--hw-card); color: var(--hw-text); }
.hw-modal__title { font-size: 20px; font-weight: 600; text-align: center; margin-bottom: 6px; }
.hw-modal__sub { font-size: 12.5px; color: var(--hw-text-3); text-align: center; margin-bottom: 24px; }

.hw-field { margin-bottom: 16px; }
.hw-field label { display: block; font-size: 12.5px; color: var(--hw-text-2); margin-bottom: 7px; }
.hw-input, .hw-textarea, select.hw-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--hw-border-strong);
  background: var(--hw-input);
  color: var(--hw-text);
  font-size: 13.5px;
  outline: 0;
  transition: border-color var(--hw-transition);
}
.hw-input:focus, .hw-textarea:focus { border-color: var(--hw-text-2); }
.hw-textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.7; }
.hw-input::placeholder, .hw-textarea::placeholder { color: var(--hw-text-3); }

.hw-toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  z-index: 300;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 90vw;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(20, 20, 20, .92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--hw-transition);
}
.hw-toast.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.hw-toast--error { background: #c0392b; }

/* =========================================================
   9. Single wallpaper (shared base)
   ========================================================= */
.hw-detail-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hw-detail-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(60px) saturate(1.1) brightness(.55);
  transform: scale(1.12);
}
.hw-detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .72) 60%, rgba(0, 0, 0, .85) 100%);
}

/* =========================================================
   10. Generic page / archive header
   ========================================================= */
.hw-page-head { margin-bottom: 26px; }
.hw-page-head__crumb { font-size: 12px; color: var(--hw-text-3); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hw-page-head__crumb a:hover { color: var(--hw-text); }
.hw-page-head h1 { font-size: 30px; font-weight: 600; letter-spacing: .01em; }
.hw-page-head p { margin-top: 8px; color: var(--hw-text-2); font-size: 13.5px; max-width: 720px; }

.hw-article {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--hw-header-h) var(--hw-pad) 80px;
}
.hw-article .hw-entry { font-size: 15px; line-height: 1.95; color: var(--hw-text-2); }
.hw-article .hw-entry h2 { margin: 34px 0 14px; font-size: 22px; color: var(--hw-text); }
.hw-article .hw-entry h3 { margin: 26px 0 10px; font-size: 18px; color: var(--hw-text); }
.hw-article .hw-entry a { color: var(--hw-accent-2); text-decoration: underline; }
.hw-article .hw-entry img { border-radius: 12px; margin: 18px 0; }
.hw-article .hw-entry ul, .hw-article .hw-entry ol { padding-left: 22px; list-style: disc; margin: 0 0 1em; }

/* comments */
.hw-comments { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--hw-border); }
.hw-comments__title { font-size: 17px; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.hw-comment-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.hw-comment {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--hw-card);
}
.hw-comment__avatar { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.hw-comment__body { flex: 1; min-width: 0; }
.hw-comment__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.hw-comment__name { font-size: 13.5px; font-weight: 600; }
.hw-comment__time { font-size: 11.5px; color: var(--hw-text-3); }
.hw-comment__text { font-size: 13.5px; color: var(--hw-text-2); line-height: 1.7; }
.hw-comment__reply { font-size: 12px; color: var(--hw-text-3); margin-top: 6px; display: inline-block; }
.hw-comment__reply:hover { color: var(--hw-text); }
.hw-comment-form .hw-btn { margin-top: 4px; }

/* 404 */
.hw-404 { text-align: center; padding: 150px 24px 80px; }
.hw-404__code { font-size: clamp(88px, 18vw, 200px); font-weight: 700; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, var(--hw-text), var(--hw-text-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw-404 p { color: var(--hw-text-2); margin: 18px 0 28px; }

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 1280px) {
  :root { --hw-pad: 24px; --hw-gap: 20px; }
  .hw-nav__link { padding: 0 13px; font-size: 14px; }
}
@media (max-width: 1080px) {
  .hw-nav { display: none; }
  .hw-top { padding: 16px 20px; }
  .hw-logo { height: 54px; padding: 0 16px 0 12px; }
  .hw-logo__mark { width: 34px; height: 34px; }
  .hw-logo__text { font-size: 18px; }
  .hw-main { padding-top: 100px; }
  .hw-filter__search { width: 170px; }
}

/* mobile nav: icon-only pill */
.hw-nav--mobile {
  display: none;
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 85;
  align-items: center;
  gap: 2px;
  height: 58px;
  padding: 5px 6px;
  border-radius: 999px;
  background: var(--hw-pill);
  border: 1px solid var(--hw-border);
  backdrop-filter: blur(var(--hw-blur));
  box-shadow: var(--hw-shadow-sm);
}
.hw-nav--mobile .hw-nav__link { width: 52px; justify-content: center; padding: 0; height: 46px; }
.hw-nav--mobile .hw-nav__link > span:not(.hw-icon) { display: none; }
.hw-nav--mobile .hw-nav__mob-theme { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--hw-text-2); cursor: pointer; }
.hw-nav--mobile .hw-nav__mob-theme:hover { color: var(--hw-text); background: rgba(255,255,255,.07); }

@media (max-width: 900px) {
  :root { --hw-pad: 16px; --hw-gap: 14px; --hw-header-h: 150px; }
  .hw-main { padding-top: var(--hw-header-h); padding-bottom: 120px; }
  .hw-top { align-items: flex-start; }
  .hw-login { width: auto; height: 42px; padding: 0 12px 0 7px; gap: 7px; font-size: 12px; }
  .hw-login__orb { width: 27px; height: 27px; }
  .hw-login__text b { font-size: 12px; }
  .hw-login__text em { font-size: 9px; }
  .hw-nav--mobile { display: flex; }
  .hw-filters {
    left: 12px; right: 12px;
    bottom: 12px;
    transform: none;
    max-width: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 22px;
    padding: 8px;
  }
  .hw-filter__search { order: -1; flex: 1 1 100%; width: auto; height: 44px; }
  .hw-filter__btn { height: 40px; padding: 0 7px; font-size: 11.5px; gap: 4px; }
  .hw-filter__btn .hw-icon { width: 13px; height: 13px; }
  .hw-filters { gap: 2px; }
  .hw-filters [data-pop="layout"], .hw-filters [data-imgsearch-open], .hw-filters [data-shuffle] { display: none; }
  .hw-main { padding-bottom: 160px; }
  .hw-filters__divider { display: none; }
  .hw-footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hw-footer { padding-top: 40px; }
  .hw-footer__brand { grid-column: 1 / -1; }
  .hw-pop { position: fixed; left: 12px; right: 12px; bottom: 96px; width: auto; transform: translateY(200%); }
  .hw-pop.is-open { transform: none; }
  .hw-pop--filter { width: auto; max-height: 60vh; display: flex; flex-direction: column; }
  .hw-modal__panel { padding: 24px 20px; border-radius: 20px; }
}
@media (max-width: 560px) {
  .hw-top__tools { display: none; }
}
@media (max-width: 620px) {
  .hw-footer__inner { grid-template-columns: 1fr; }
  .hw-footer__bottom { flex-direction: column; align-items: flex-start; }
  .hw-page-head h1 { font-size: 22px; }
  .hw-page { min-width: 36px; height: 36px; font-size: 13px; }
  .hw-card__play { height: 36px; padding: 0 14px; font-size: 11px; }
  .hw-card__play span { display: none; }
}

/* =========================================================
   12. Accessibility / motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.hw-focus { outline: 2px solid var(--hw-accent); outline-offset: 2px; }

/* =========================================================
   13. Masonry fallback / layout state
   ========================================================= */
.hw-grid:not(.is-ready) {
  display: grid;
  grid-template-columns: repeat(var(--hw-cols, 4), minmax(0, 1fr));
  gap: var(--hw-gap);
}
.hw-grid:not(.is-ready) .hw-card {
  position: relative;
  width: auto !important;
  transform: none !important;
}
.hw-grid.is-ready .hw-card { opacity: 1; }
.hw-grid.is-layout .hw-card { transition: none; }
@media (max-width: 900px) {
  .hw-grid:not(.is-ready) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   14. Empty / notices
   ========================================================= */
.hw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 320px;
  padding: 54px 24px;
  border-radius: var(--hw-radius);
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  text-align: center;
}
.hw-empty__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--hw-chip);
  color: var(--hw-text-2);
}
.hw-empty h3 { font-size: 18px; }
.hw-empty p { color: var(--hw-text-3); font-size: 13.5px; max-width: 420px; }
.hw-empty .hw-btn { margin-top: 8px; }

/* =========================================================
   15. Documents (page / article)
   ========================================================= */
.hw-doc {
  max-width: 940px;
  margin: 0 auto;
  padding: 18px 0 30px;
}
.hw-doc__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: .01em;
  margin: 6px 0 10px;
}
.hw-doc__meta { font-size: 12.5px; color: var(--hw-text-3); margin-bottom: 22px; }
.hw-doc__thumb { margin: 0 0 26px; border-radius: var(--hw-radius); overflow: hidden; box-shadow: var(--hw-shadow); }
.hw-doc__thumb img { width: 100%; object-fit: cover; }
.hw-doc__content {
  font-size: 15px;
  line-height: 1.95;
  color: var(--hw-text-2);
}
.hw-doc__content > * + * { margin-top: 1em; }
.hw-doc__content h2 { font-size: 22px; color: var(--hw-text); margin: 34px 0 12px; }
.hw-doc__content h3 { font-size: 18px; color: var(--hw-text); margin: 26px 0 10px; }
.hw-doc__content a { color: var(--hw-accent-2); text-decoration: underline; text-underline-offset: 3px; }
.hw-doc__content img { border-radius: 12px; margin: 18px 0; }
.hw-doc__content ul, .hw-doc__content ol { padding-left: 24px; list-style: disc; }
.hw-doc__content ol { list-style: decimal; }
.hw-doc__content code { padding: 2px 6px; border-radius: 5px; background: var(--hw-chip); font-size: 13px; }
.hw-doc__content pre { padding: 18px; border-radius: 12px; background: var(--hw-bg-3); overflow: auto; }
.hw-doc__share { display: flex; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hw-border); }

/* =========================================================
   16. Blog grid / article cards
   ========================================================= */
.hw-postgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hw-gap);
}
@media (max-width: 1000px) { .hw-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hw-postgrid { grid-template-columns: 1fr; } }
.hw-article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--hw-radius);
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  box-shadow: var(--hw-shadow-sm);
  transition: transform var(--hw-transition), box-shadow var(--hw-transition);
}
.hw-article-card:hover { transform: translateY(-3px); box-shadow: var(--hw-shadow); }
.hw-article-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hw-bg-2); }
.hw-article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hw-article-card:hover .hw-article-card__media img { transform: scale(1.04); }
.hw-article-card__ph { display: grid; place-items: center; height: 100%; color: var(--hw-text-3); }
.hw-article-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.hw-article-card__body h3 { font-size: 16.5px; line-height: 1.45; }
.hw-article-card__body p { font-size: 13px; color: var(--hw-text-3); margin: 0; }
.hw-article-card__meta { font-size: 11.5px; color: var(--hw-text-3); margin-top: auto; }

/* =========================================================
   17. Comments (aliases)
   ========================================================= */
.hw-comments__list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.hw-comments__form-title { font-size: 17px; margin: 28px 0 12px; }
.hw-comments__note { font-size: 12px; color: var(--hw-text-3); margin-bottom: 12px; }
.hw-comments .hw-comment-list { gap: 16px; }
.hw-comments .comment-respond { margin-top: 26px; }
.hw-comments .comment-form label { display: block; font-size: 12.5px; color: var(--hw-text-2); margin-bottom: 6px; }
.hw-comments .comment-form input[type="text"], .hw-comments .comment-form input[type="email"], .hw-comments .comment-form input[type="url"], .hw-comments .comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--hw-border-strong);
  background: var(--hw-input);
  color: var(--hw-text);
  font-size: 13.5px;
  outline: 0;
}
.hw-comments .comment-form textarea { min-height: 120px; resize: vertical; }
.hw-comments .form-submit { margin-top: 14px; }
.hw-comments .comment-notes, .hw-comments .logged-in-as { font-size: 12px; color: var(--hw-text-3); }

/* =========================================================
   18. Vertical pager (mobile wallpapers)
   ========================================================= */
.hw-vpager {
  position: fixed;
  left: 10px;
  top: 50%;
  z-index: 70;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-height: 70vh;
  overflow: auto;
  padding: 8px 5px;
  border-radius: 14px;
  background: var(--hw-pill);
  border: 1px solid var(--hw-border);
  backdrop-filter: blur(var(--hw-blur));
}
.hw-vpager__item {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--hw-text-3);
}
.hw-vpager__item:hover { background: var(--hw-chip); color: var(--hw-text); }
.hw-vpager__item.is-current { background: var(--hw-text); color: var(--hw-bg); font-weight: 600; }
.hw-vpager__dots { font-size: 11px; color: var(--hw-text-3); }
.hw-vpager__total { margin-top: 6px; font-size: 10.5px; color: var(--hw-text-3); writing-mode: vertical-rl; }
.hw-main--mobilewall { padding-left: calc(var(--hw-pad) + 38px); }
.hw-grid--wallpaper5 { --hw-cols: 5; }
@media (max-width: 900px) {
  .hw-vpager { display: none; }
  .hw-main--mobilewall { padding-left: var(--hw-pad); }
}

/* =========================================================
   19. Collections
   ========================================================= */
.hw-collection-card {
  overflow: hidden;
  border-radius: var(--hw-radius);
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  box-shadow: var(--hw-shadow-sm);
  transition: transform var(--hw-transition), box-shadow var(--hw-transition);
}
.hw-collection-card:hover { transform: translateY(-3px); box-shadow: var(--hw-shadow); }
.hw-collection-card__link { display: block; }
.hw-collection-card__covers {
  display: grid;
  gap: 2px;
  aspect-ratio: 16 / 10;
  background: var(--hw-bg-2);
}
.hw-collection-card__covers--1 { grid-template-columns: 1fr; }
.hw-collection-card__covers--2 { grid-template-columns: 1fr 1fr; }
.hw-collection-card__covers--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.hw-collection-card__covers--3 img:first-child { grid-row: 1 / 3; }
.hw-collection-card__covers--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hw-collection-card__covers img { width: 100%; height: 100%; object-fit: cover; }
.hw-collection-card__empty { display: grid; place-items: center; aspect-ratio: 16 / 10; color: var(--hw-text-3); }
.hw-collection-card__info { display: flex; align-items: center; gap: 10px; padding: 13px 15px; }
.hw-collection-card__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.hw-collection-card__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-collection-card__meta { font-size: 11.5px; color: var(--hw-text-3); }

.hw-collections-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hw-gap); }
@media (max-width: 1200px) { .hw-collections-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 880px) { .hw-collections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hw-collections-grid { grid-template-columns: 1fr; } }

.hw-collections-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.hw-collection-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 30px;
  align-items: stretch;
  margin-bottom: 40px;
  padding: 22px;
  border-radius: 24px;
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  box-shadow: var(--hw-shadow);
}
.hw-collection-hero__covers { display: grid; gap: 3px; border-radius: 16px; overflow: hidden; min-height: 300px; }
.hw-collection-hero__covers--1 { grid-template-columns: 1fr; }
.hw-collection-hero__covers--2 { grid-template-columns: 1fr 1fr; }
.hw-collection-hero__covers--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.hw-collection-hero__covers--3 img:first-child { grid-row: 1 / 3; }
.hw-collection-hero__covers--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hw-collection-hero__covers img { width: 100%; height: 100%; object-fit: cover; }
.hw-collection-hero__info { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 8px 0; }
.hw-collection-hero__info h1 { font-size: clamp(24px, 3vw, 34px); }
.hw-collection-hero__author { display: flex; align-items: center; gap: 10px; color: var(--hw-text-2); font-size: 13px; }
.hw-collection-hero__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hw-collection-hero__author a { font-weight: 600; color: var(--hw-text); }
.hw-collection-hero__desc { color: var(--hw-text-2); font-size: 13.5px; line-height: 1.8; }
.hw-collection-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 860px) {
  .hw-collection-hero { grid-template-columns: 1fr; }
  .hw-collection-hero__covers { min-height: 220px; }
}

/* =========================================================
   20. Author profile
   ========================================================= */
.hw-profile {
  overflow: hidden;
  border-radius: 24px;
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  box-shadow: var(--hw-shadow);
}
.hw-profile__cover {
  height: 190px;
  background:
    radial-gradient(70% 130% at 18% 0%, rgba(91, 140, 255, .42), transparent 60%),
    radial-gradient(70% 130% at 85% 10%, rgba(255, 98, 165, .3), transparent 60%),
    linear-gradient(140deg, #2a2a2a, #1a1a1a);
}
body.hw-light .hw-profile__cover { background: linear-gradient(140deg, #e3ebff, #f7e6f0 55%, #e8e8e8); }
.hw-profile__head { display: flex; align-items: flex-end; gap: 20px; padding: 0 28px 24px; margin-top: -56px; flex-wrap: wrap; }
.hw-profile__avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--hw-card-solid); box-shadow: var(--hw-shadow-sm); }
.hw-profile__info { flex: 1; min-width: 200px; padding-bottom: 4px; }
.hw-profile__info h1 { font-size: 24px; }
.hw-profile__info p { margin: 4px 0; font-size: 13px; color: var(--hw-text-3); }
.hw-profile__stats { display: flex; gap: 22px; font-size: 12.5px; color: var(--hw-text-2); }
.hw-profile__stats b { font-size: 16px; color: var(--hw-text); font-weight: 600; margin-right: 4px; }
.hw-profile__tabs { display: flex; gap: 6px; margin: 22px 0 24px; }
.hw-profile__tab { padding: 10px 18px; border-radius: 999px; font-size: 13.5px; color: var(--hw-text-2); background: var(--hw-chip); }
.hw-profile__tab.is-active { background: var(--hw-text); color: var(--hw-bg); font-weight: 600; }

/* follow button */
.hw-author__follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--hw-chip);
  border: 1px solid var(--hw-border);
  color: var(--hw-text);
  font-size: 12.5px;
  white-space: nowrap;
  align-self: flex-start;
}
.hw-author__follow:hover { background: var(--hw-card-hover); }
.hw-author__follow.is-on { background: var(--hw-accent); border-color: transparent; color: #fff; }

.hw-author__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  align-self: flex-start;
}

.hw-author__block {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--hw-border);
  color: var(--hw-text-3);
  font-size: 12.5px;
  white-space: nowrap;
  transition: background var(--hw-transition), color var(--hw-transition), border-color var(--hw-transition);
}

.hw-author__block:hover {
  background: var(--hw-card-hover);
  color: var(--hw-text);
}

.hw-author__block.is-on {
  color: var(--hw-danger);
  border-color: rgba(255, 143, 143, .4);
  background: rgba(255, 143, 143, .08);
}

/* =========================================================
   21. Login page
   ========================================================= */
.hw-main--login { padding-top: calc(var(--hw-header-h) + 26px); }
.hw-loginpage {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 0;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto 54px;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--hw-bg-2);
  border: 1px solid var(--hw-border);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .3);
}
.hw-loginpage__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 44px 40px 34px;
  background:
    radial-gradient(520px 300px at 12% 0%, rgba(93, 112, 255, .34), transparent 66%),
    radial-gradient(420px 260px at 100% 18%, rgba(45, 195, 255, .2), transparent 64%),
    linear-gradient(158deg, #1b1e30 0%, #10121b 52%, #090a10 100%);
  color: #fff;
}
.hw-loginpage__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 72%);
  pointer-events: none;
}
.hw-loginpage__art { position: absolute; inset: 0; pointer-events: none; }
.hw-loginpage__art span { position: absolute; display: block; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 26px 60px rgba(0, 0, 0, .38); opacity: .32; }
.hw-loginpage__art span:nth-child(1) { width: 210px; height: 130px; right: -122px; top: 66px; transform: rotate(13deg); background: linear-gradient(150deg, #6e8cff, #18265f 56%, #0c1224); }
.hw-loginpage__art span:nth-child(2) { width: 184px; height: 116px; right: -92px; top: 178px; transform: rotate(-7deg); background: linear-gradient(140deg, #9ad9ef, #316b8f 60%, #101e2c); }
.hw-loginpage__art span:nth-child(3) { width: 146px; height: 92px; left: -94px; bottom: 118px; transform: rotate(9deg); background: linear-gradient(140deg, #ffb98a, #68402c 58%, #1a1111); opacity: .3; }
.hw-loginpage__logo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; align-self: flex-start; }
.hw-loginpage__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.hw-loginpage__mark img { width: 28px; height: 28px; object-fit: contain; }
.hw-loginpage__brandname { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.hw-loginpage__brandname em { font-style: normal; font-size: 8px; letter-spacing: .22em; color: rgba(255, 255, 255, .48); }
.hw-loginpage__eyebrow { position: relative; z-index: 2; display: inline-block; margin-top: 48px; font-size: 9.5px; font-weight: 600; letter-spacing: .22em; color: #a9b6ff; }
.hw-loginpage__brand h1 { position: relative; z-index: 2; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.18; letter-spacing: -.03em; margin: 14px 0 12px; color: #fff; }
.hw-loginpage__brand > p { position: relative; z-index: 2; margin: 0; color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.72; max-width: 300px; }
.hw-loginpage__perks { position: relative; z-index: 2; display: grid; gap: 11px; margin: auto 0 0; padding: 34px 0 0; list-style: none; }
.hw-loginpage__perks li { display: flex; align-items: center; gap: 11px; }
.hw-loginpage__perks li > span { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #b7c3ff; }
.hw-loginpage__perks div { display: grid; gap: 2px; }
.hw-loginpage__perks b { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hw-loginpage__perks small { font-size: 10.5px; color: rgba(255, 255, 255, .48); }
.hw-loginpage__quote { position: relative; z-index: 2; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .4); font-size: 10.5px; line-height: 1.6; }
.hw-loginpage__form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 58px;
  background: radial-gradient(460px 260px at 100% 0%, rgba(59, 107, 255, .09), transparent 68%), var(--hw-bg-2);
}
body.hw-light .hw-loginpage__form { background: radial-gradient(460px 260px at 100% 0%, rgba(59, 107, 255, .08), transparent 68%), #fff; }
.hw-loginpage__head { margin-bottom: 24px; }
.hw-loginpage__kicker { display: inline-block; font-size: 9.5px; font-weight: 600; letter-spacing: .22em; color: var(--hw-text-3); }
.hw-loginpage__title { font-size: 30px; line-height: 1.18; letter-spacing: -.025em; font-weight: 700; margin: 8px 0 7px; }
.hw-loginpage__sub { margin: 0; color: var(--hw-text-3); font-size: 12.5px; line-height: 1.6; }
.hw-loginpage__formbody { display: grid; gap: 0; }
.hw-loginpage__formbody .hw-field { margin-bottom: 16px; }
.hw-loginpage__logged { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hw-loginpage__logged img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--hw-border); box-shadow: var(--hw-shadow-sm); }
.hw-loginpage__logged h2 { font-size: 22px; }
.hw-loginpage__logged p { margin: 0; color: var(--hw-text-3); font-size: 12.5px; }
.hw-loginpage__logged-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.hw-loginpage__alt { margin: 18px 0 0; font-size: 12px; color: var(--hw-text-3); text-align: center; }
.hw-loginpage__alt a { display: inline-flex; align-items: center; gap: 3px; color: var(--hw-link); font-weight: 600; text-decoration: none; }
.hw-loginpage__alt a .hw-icon { width: 13px; height: 13px; opacity: .7; }
.hw-loginpage__alt a:hover { text-decoration: underline; }
.hw-loginpage__hint { margin: 10px 0 0; text-align: center; font-size: 10.5px; line-height: 1.5; color: var(--hw-text-3); }
.hw-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 16px; font-size: 12.5px; color: var(--hw-text-3); }
.hw-auth__row a:hover { color: var(--hw-text); }
.hw-check-label, .hw-meta__check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--hw-text-2); cursor: pointer; }
.hw-check-label input, .hw-meta__check input { width: 15px; height: 15px; accent-color: var(--hw-accent); }
@media (max-width: 880px) {
  .hw-main--login { padding-top: calc(var(--hw-header-h) + 12px); }
  .hw-loginpage { grid-template-columns: 1fr; gap: 0; margin: 0 auto 32px; border-radius: 22px; }
  .hw-loginpage__brand { padding: 28px 26px 26px; }
  .hw-loginpage__art { display: none; }
  .hw-loginpage__eyebrow { margin-top: 30px; }
  .hw-loginpage__brand h1 { font-size: 30px; }
  .hw-loginpage__perks { display: none; }
  .hw-loginpage__quote { display: none; }
  .hw-loginpage__form { padding: 32px 24px 28px; }
  .hw-loginpage__title { font-size: 25px; }
}
@media (max-width: 480px) {
  .hw-loginpage { border-radius: 18px; }
  .hw-loginpage__brand { padding: 22px 20px 24px; }
  .hw-loginpage__brand h1 { font-size: 26px; }
  .hw-loginpage__form { padding: 26px 18px 24px; }
  .hw-loginpage__title { font-size: 23px; }
}

/* 404 search */
.hw-404__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  margin: 0 auto 18px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
}
.hw-404__search .hw-icon { color: var(--hw-text-3); }
.hw-404__search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; font-size: 13.5px; color: var(--hw-text); }
.hw-search-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--hw-text-3); }

/* =========================================================
   22. Forms inside modals / auth
   ========================================================= */
.hw-modal__panel--auth {
  width: min(860px, 100%);
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
  border-color: rgba(255, 255, 255, .12);
  background: var(--hw-bg-2);
  box-shadow: 0 46px 120px rgba(0, 0, 0, .62);
}
body.hw-light .hw-modal__panel--auth { background: #fff; border-color: rgba(0, 0, 0, .08); }
.hw-authmodal {
  display: grid;
  grid-template-columns: 338px minmax(0, 1fr);
  max-height: calc(100vh - 48px);
}
.hw-authmodal__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 34px 30px 26px;
  background:
    radial-gradient(520px 300px at 12% 0%, rgba(93, 112, 255, .34), transparent 66%),
    radial-gradient(420px 260px at 100% 18%, rgba(45, 195, 255, .2), transparent 64%),
    linear-gradient(158deg, #1b1e30 0%, #10121b 52%, #090a10 100%);
  color: #fff;
}
.hw-authmodal__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 72%);
  pointer-events: none;
}
.hw-authmodal__art { position: absolute; inset: 0; pointer-events: none; }
.hw-authmodal__art span {
  position: absolute;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .38);
  opacity: .32;
}
.hw-authmodal__art span:nth-child(1) {
  width: 190px; height: 118px; right: -120px; top: 68px;
  transform: rotate(13deg);
  background: linear-gradient(150deg, #6e8cff, #18265f 56%, #0c1224);
}
.hw-authmodal__art span:nth-child(2) {
  width: 160px; height: 100px; right: -112px; top: 172px;
  transform: rotate(-7deg);
  background: linear-gradient(140deg, #9ad9ef, #316b8f 60%, #101e2c);
}
.hw-authmodal__art span:nth-child(3) {
  width: 132px; height: 84px; right: -66px; left: auto; bottom: 96px;
  transform: rotate(9deg);
  background: linear-gradient(140deg, #ffb98a, #68402c 58%, #1a1111);
  opacity: .3;
}
.hw-authmodal__brandtop {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hw-authmodal__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}
.hw-authmodal__mark img { width: 26px; height: 26px; object-fit: contain; }
.hw-authmodal__brandname { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.hw-authmodal__brandname em { font-style: normal; font-size: 8px; letter-spacing: .22em; color: rgba(255, 255, 255, .48); }
.hw-authmodal__copy { position: relative; z-index: 2; margin-top: 46px; }
.hw-authmodal__eyebrow { display: inline-block; font-size: 9.5px; font-weight: 600; letter-spacing: .22em; color: #a9b6ff; }
.hw-authmodal__copy h2 { margin: 14px 0 12px; font-size: 33px; line-height: 1.18; letter-spacing: -.03em; font-weight: 700; color: #fff; }
.hw-authmodal__copy p { margin: 0; max-width: 250px; color: rgba(255, 255, 255, .62); font-size: 12.5px; line-height: 1.72; }
.hw-authmodal__perks { position: relative; z-index: 2; display: grid; gap: 10px; margin: auto 0 0; padding: 26px 0 0; list-style: none; }
.hw-authmodal__perks li { display: flex; align-items: center; gap: 11px; }
.hw-authmodal__perks li > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #b7c3ff; }
.hw-authmodal__perks div { display: grid; gap: 2px; }
.hw-authmodal__perks b { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.hw-authmodal__perks small { font-size: 10.5px; color: rgba(255, 255, 255, .48); }
.hw-authmodal__quote { position: relative; z-index: 2; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .4); font-size: 10.5px; line-height: 1.6; }
.hw-authmodal__body {
  position: relative;
  min-width: 0;
  overflow: auto;
  padding: 38px 40px 28px;
  background:
    radial-gradient(460px 260px at 100% 0%, rgba(59, 107, 255, .09), transparent 68%),
    var(--hw-bg-2);
}
body.hw-light .hw-authmodal__body { background: radial-gradient(460px 260px at 100% 0%, rgba(59, 107, 255, .08), transparent 68%), #fff; }
.hw-authmodal__head { margin-bottom: 22px; }
.hw-authmodal__body .hw-authmodal__eyebrow { color: var(--hw-text-3); }
.hw-authmodal__title { margin: 8px 0 6px; font-size: 27px; line-height: 1.2; letter-spacing: -.025em; font-weight: 700; color: var(--hw-text); }
.hw-authmodal__sub { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--hw-text-3); }
.hw-authmodal .hw-modal__close { top: 14px; right: 14px; }
.hw-authmodal .hw-modal__close:hover { background: var(--hw-chip); }
.hw-modal__panel--wide { width: min(880px, 100%); }
.hw-modal__panel--download { width: min(520px, 100%); }
.hw-auth__switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 22px;
  width: 100%;
  border-radius: 12px;
  background: var(--hw-input);
  border: 1px solid var(--hw-border);
}
.hw-auth__switch button {
  flex: 1;
  height: 38px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--hw-text-3);
  transition: background var(--hw-transition), color var(--hw-transition), box-shadow var(--hw-transition);
}
.hw-auth__switch button:hover { color: var(--hw-text); }
.hw-auth__switch button.is-active { background: linear-gradient(135deg, #4e75ff, #7d8dff); color: #fff; font-weight: 600; box-shadow: 0 8px 20px rgba(59, 107, 255, .28); }
.hw-auth__form { margin-top: 0; }
.hw-auth__form .hw-field { margin-bottom: 15px; }
.hw-field--icon .hw-inputwrap { position: relative; }
.hw-inputwrap__icon { position: absolute; left: 15px; top: 50%; z-index: 2; display: grid; place-items: center; width: 16px; height: 16px; transform: translateY(-50%); color: var(--hw-text-3); pointer-events: none; }
.hw-inputwrap .hw-input { height: 48px; padding-left: 42px; padding-right: 15px; border-radius: 12px; background: var(--hw-input); border-color: var(--hw-border); }
.hw-inputwrap .hw-input:focus { border-color: rgba(97, 123, 255, .65); box-shadow: 0 0 0 3px rgba(59, 107, 255, .12); }
.hw-inputwrap .hw-input::placeholder { color: var(--hw-text-3); opacity: .8; }
.hw-pass-toggle { position: absolute; top: 50%; right: 5px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: var(--hw-text-3); transform: translateY(-50%); transition: background var(--hw-transition), color var(--hw-transition); }
.hw-pass-toggle:hover, .hw-pass-toggle.is-on { background: var(--hw-chip); color: var(--hw-text); }
.hw-pass-toggle.is-on { opacity: .8; }
.hw-auth__row { margin: 4px 0 18px; }
.hw-auth__submit { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; font-weight: 600; box-shadow: 0 12px 28px rgba(0, 0, 0, .16); }
.hw-auth__submit .hw-icon { width: 15px; height: 15px; opacity: .55; }
.hw-auth__msg { margin-top: 10px; font-size: 12.5px; text-align: center; color: var(--hw-text-3); }
.hw-auth__msg.is-error { color: #ff8a8a; }
.hw-auth__msg.is-ok { color: #57d98a; }
.hw-auth__alt { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 8px; }
.hw-auth__alt > span { font-size: 12px; color: var(--hw-text-3); }
.hw-auth__wx { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: #07c160; color: #fff; font-size: 12.5px; }
.hw-auth__wx .hw-icon { width: 16px; height: 16px; }
.hw-auth__register-link { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; color: var(--hw-link); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.hw-auth__register-link .hw-icon { width: 13px; height: 13px; opacity: .7; }
.hw-auth__register-link:hover { text-decoration: underline; }
.hw-auth__hint { text-align: center; font-size: 10.5px; line-height: 1.5; color: var(--hw-text-3); margin: 8px 0 0; }
@media (max-width: 820px) {
  .hw-modal__panel--auth { width: min(520px, 100%); border-radius: 22px; }
  .hw-authmodal { grid-template-columns: 1fr; max-height: calc(100vh - 32px); }
  .hw-authmodal__brand { display: none; }
  .hw-authmodal__body { padding: 30px 24px 22px; }
  .hw-authmodal__title { font-size: 24px; }
  .hw-modal__panel--auth { max-height: calc(100vh - 32px); }
}
@media (max-width: 430px) {
  .hw-modal { padding: 12px; }
  .hw-authmodal__body { padding: 26px 18px 18px; }
  .hw-authmodal__title { font-size: 22px; }
  .hw-inputwrap .hw-input { height: 46px; }
  .hw-auth__submit { height: 46px; }
}

/* =========================================================
   23. Download modal
   ========================================================= */
.hw-download { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--hw-input); }
.hw-download__preview { width: 128px; height: 76px; flex: 0 0 auto; border-radius: 9px; overflow: hidden; background: var(--hw-bg-3); }
.hw-download__preview img { width: 100%; height: 100%; object-fit: cover; }
.hw-download__info { min-width: 0; }
.hw-download__info h3 { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-download__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--hw-text-3); }
.hw-download__meta span { display: inline-flex; align-items: center; gap: 4px; }
.hw-download__meta .hw-icon { width: 13px; height: 13px; }
.hw-download__meta b { color: var(--hw-text-2); font-weight: 500; }
.hw-download__note { margin: 14px 0 12px; font-size: 11.5px; color: var(--hw-text-3); line-height: 1.6; }
.hw-download__actions { display: flex; flex-direction: column; gap: 8px; }
.hw-download__actions .hw-btn { height: 46px; border-radius: 12px; }
.hw-download__status { min-height: 20px; margin-top: 8px; font-size: 12px; text-align: center; color: var(--hw-text-2); }
.hw-download__status.is-error { color: #ff8a8a; }
.hw-download__login { text-align: center; font-size: 11.5px; color: var(--hw-text-3); margin: 12px 0 0; }
.hw-download__login a { color: var(--hw-text); text-decoration: underline; }

/* fake human check */
.hw-human {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--hw-input);
  border: 1px solid var(--hw-border);
  font-size: 12.5px;
  color: var(--hw-text-2);
  cursor: pointer;
}
.hw-human input { position: absolute; opacity: 0; pointer-events: none; }
.hw-human__box {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 1px solid var(--hw-border-strong);
  color: transparent;
  flex: 0 0 auto;
  transition: all var(--hw-transition);
}
.hw-human input:checked + .hw-human__box { background: #27ae60; border-color: #27ae60; color: #fff; }
.hw-human em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--hw-text-3); }

/* =========================================================
   24. Crop modal
   ========================================================= */
.hw-crop { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
.hw-crop__stage {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 14px;
  background: #161616;
  overflow: hidden;
}
body.hw-light .hw-crop__stage { background: #e9e9e9; }
.hw-crop__stage canvas { width: 100%; height: auto; border-radius: 8px; cursor: grab; touch-action: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.hw-crop__stage canvas:active { cursor: grabbing; }
.hw-crop__side { padding-top: 4px; }
.hw-crop__group { margin-bottom: 16px; }
.hw-crop__group label { display: block; font-size: 12px; color: var(--hw-text-3); margin-bottom: 8px; }
.hw-crop__ratios, .hw-crop__sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.hw-crop__ratios button, .hw-crop__sizes button {
  flex: 1 1 auto;
  min-width: 52px;
  height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--hw-chip);
  color: var(--hw-text-2);
  font-size: 12px;
}
.hw-crop__ratios button.is-active, .hw-crop__sizes button.is-active { background: var(--hw-text); color: var(--hw-bg); font-weight: 600; }
.hw-crop__hint { font-size: 11.5px; color: var(--hw-text-3); line-height: 1.6; margin: 4px 0 16px; }
@media (max-width: 760px) {
  .hw-crop { grid-template-columns: 1fr; }
}

/* =========================================================
   25. Image search
   ========================================================= */
.hw-imgsearch__mode { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }
.hw-imgsearch__mode button { height: 34px; padding: 0 16px; border-radius: 999px; background: var(--hw-chip); color: var(--hw-text-2); font-size: 12.5px; }
.hw-imgsearch__mode button.is-active { background: var(--hw-text); color: var(--hw-bg); font-weight: 600; }
.hw-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 220px;
  padding: 24px;
  border-radius: 16px;
  border: 1.5px dashed var(--hw-border-strong);
  background: var(--hw-input);
  text-align: center;
  cursor: pointer;
  transition: all var(--hw-transition);
  overflow: hidden;
}
.hw-dropzone.is-drag { border-color: var(--hw-accent); background: rgba(91, 140, 255, .1); }
.hw-dropzone__icon { display: flex; gap: 10px; color: var(--hw-text-3); margin-bottom: 6px; }
.hw-dropzone__icon .hw-icon { width: 26px; height: 26px; }
.hw-dropzone__title { font-size: 13.5px; color: var(--hw-text-2); margin: 0; }
.hw-dropzone__hint { font-size: 11.5px; color: var(--hw-text-3); margin: 0; }
.hw-dropzone__preview { position: absolute; inset: 0; display: none; }
.hw-dropzone__preview.has-file { display: block; }
.hw-dropzone__preview img { width: 100%; height: 100%; object-fit: cover; }
.hw-imgsearch__url { margin-top: 12px; }
.hw-imgsearch__foot { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 6px; }
.hw-imgsearch__or { font-size: 11.5px; color: var(--hw-text-3); }
.hw-imgsearch__status { min-height: 20px; text-align: center; font-size: 12px; color: var(--hw-text-2); }
.hw-imgsearch__status.is-error { color: #ff8a8a; }
.hw-imgsearch__results { margin-top: 10px; max-height: 50vh; overflow: auto; }
.hw-imgsearch__results .hw-grid { --hw-cols: 4; }
@media (max-width: 700px) { .hw-imgsearch__results .hw-grid { --hw-cols: 2; } }

/* =========================================================
   26. Misc components
   ========================================================= */
.hw-ad { margin: 20px 0; padding: 10px; border-radius: 12px; background: var(--hw-card); border: 1px solid var(--hw-border); text-align: center; font-size: 12px; color: var(--hw-text-3); overflow: hidden; }
.hw-ad img { max-width: 100%; height: auto; }

.hw-userbox__link { display: flex; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 9px; font-size: 12.5px; color: var(--hw-text-2); }
.hw-userbox__link:hover { background: var(--hw-chip); color: var(--hw-text); }
.hw-userbox__link .hw-icon { width: 15px; height: 15px; opacity: .7; }

.hw-pop__setting { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hw-border); font-size: 12.5px; color: var(--hw-text-2); }

.hw-colorgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hw-colorcell { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; color: var(--hw-text-3); text-align: left; }
.hw-colorcell:hover { background: var(--hw-chip); }
.hw-colorcell.is-on { background: var(--hw-chip); color: var(--hw-text); box-shadow: inset 0 0 0 1px var(--hw-border-strong); }
.hw-colorcell__dot { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }

.hw-detail__setting .hw-switch { flex: 0 0 auto; }
.hw-favbtn .hw-icon { width: 20px; height: 20px; }

@media (max-width: 700px) {
  .hw-colorgrid { grid-template-columns: repeat(3, 1fr); }
  .hw-download { flex-direction: column; align-items: stretch; }
  .hw-download__preview { width: 100%; height: 140px; }
}

/* section title used outside the detail page */
.hw-section-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.hw-section-title .hw-icon { color: var(--hw-text-2); }
.hw-similar { margin-top: 42px; }


/* Promo card (shared by detail + community) */
.hw-promo {
  margin-top: 16px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(59, 107, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid var(--hw-border);
}
body.hw-light .hw-promo { background: linear-gradient(145deg, rgba(59, 107, 255, .12), rgba(255, 255, 255, .65)); }
.hw-promo--compact { padding: 16px; }
.hw-promo__head { display: flex; gap: 12px; align-items: flex-start; }
.hw-promo__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b6bff, #8a5cff);
  color: #fff;
  flex: 0 0 auto;
}
.hw-promo__head h4 { font-size: 14.5px; margin: 0 0 4px; }
.hw-promo__head p { margin: 0; font-size: 11.5px; color: var(--hw-text-3); line-height: 1.6; }
.hw-promo__features { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 14px 0; }
.hw-promo__features span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--hw-text-2); }

/* v1.5 comment like */
.hw-comment__tools { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.hw-comment__like {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0; border: 0; background: none;
  color: var(--hw-text-3); font-size: 12px; cursor: pointer;
  transition: color .2s;
}
.hw-comment__like:hover { color: var(--hw-text); }
.hw-comment__like.is-on { color: var(--hw-accent); }
.hw-comment__like .hw-icon { width: 13px; height: 13px; }

/* =========================================================
   v1.5.2 — media loading, mobile tab bar, interaction polish
   ========================================================= */
.hw-card__media {
  background:
    linear-gradient(100deg, var(--hw-card) 20%, var(--hw-card-hover) 38%, var(--hw-card) 58%);
  background-size: 220% 100%;
  animation: hw-card-shimmer 1.5s ease-in-out infinite;
}
.hw-card.is-media-loaded .hw-card__media {
  animation: none;
}
.hw-card__img { opacity: 0; transition: opacity .45s ease, transform .55s cubic-bezier(.22,.61,.36,1); }
.hw-card.is-media-loaded .hw-card__img { opacity: 1; }
@keyframes hw-card-shimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -80% 0; }
}
@keyframes hw-card-in {
  from { opacity: 0; transform: translate3d(var(--hw-tx, 0), calc(var(--hw-ty, 0px) + 14px), 0); }
  to { opacity: 1; transform: translate3d(var(--hw-tx, 0), var(--hw-ty, 0px), 0); }
}

.hw-cropbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 62px;
  height: 52px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--hw-border-strong);
  background: rgba(255, 255, 255, .08);
  color: var(--hw-text);
  font-size: 12px;
  transition: all var(--hw-transition);
}
.hw-cropbtn:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.hw-cropbtn .hw-icon { width: 15px; height: 15px; }
body.hw-light .hw-cropbtn { background: #fff; border-color: rgba(0,0,0,.12); }

/* Mobile bottom navigation — Zibll-like persistent dock */
.hw-tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--hw-bg) 88%, transparent);
  border-top: 1px solid var(--hw-border);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
}
.hw-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 46px;
  border-radius: 12px;
  color: var(--hw-text-3);
  font-size: 10px;
  transition: color .2s, background .2s;
}
.hw-tabbar__item .hw-icon { width: 19px; height: 19px; }
.hw-tabbar__item.is-active { color: var(--hw-text); background: var(--hw-chip); }
.hw-tabbar__item:active { transform: scale(.94); }
.hw-tabbar__item:focus-visible,
.hw-card:focus-within { outline: 2px solid var(--hw-accent); outline-offset: 3px; }
.hw-card a:focus-visible { outline: none; }

/* Page transition: gentle content lift */
.hw-main { animation: hw-page-in .45s cubic-bezier(.22,.61,.36,1) both; }
@keyframes hw-page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-main, .hw-card__media, .hw-card__img { animation: none !important; transition: none !important; }
}

@media (max-width: 700px) {
  .hw-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .hw-filters { bottom: calc(66px + env(safe-area-inset-bottom)); padding: 6px 8px; max-width: calc(100vw - 16px); flex-wrap: nowrap; gap: 4px; overflow: hidden; }
  .hw-filter__search { flex: 1 1 auto; width: auto; min-width: 0; height: 44px; padding: 0 12px; }
  .hw-filter__search input { font-size: 12px; }
  .hw-filters > .hw-filter__btn[data-pop="kind"],
  .hw-filters > .hw-filter__btn[data-pop="res"] { display: none; }
  .hw-filters > .hw-filter__btn { flex: 0 0 36px; width: 36px; padding: 0; justify-content: center; height: 44px; }
  .hw-filters > .hw-filter__btn span:not(.hw-icon) { display: none; }
  .hw-main { padding-bottom: calc(var(--hw-bar-h) + 84px); }
  .hw-footer { padding-bottom: 84px; }
}


/* =========================================================
   21. Global search dialog, floating actions (v1.5.7)
   ========================================================= */
.hw-iconbtn--search { color: var(--hw-text-2); }
.hw-iconbtn--search:hover { color: var(--hw-text); background: var(--hw-card); }

.hw-search-modal {
  align-items: flex-start;
  padding: 9vh 24px 24px;
  overflow-y: auto;
  z-index: 210;
}
.hw-search__panel {
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(78vh, 760px);
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #1c1b1b;
  border: 1px solid var(--hw-border-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
body.hw-light .hw-search__panel {
  background: #ffffff;
  box-shadow: 0 34px 80px rgba(20, 24, 40, .18), 0 0 0 1px rgba(0, 0, 0, .04) inset;
}

.hw-search__form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hw-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
}
body.hw-light .hw-search__form { background: linear-gradient(180deg, #fbfbfc, #ffffff); }
.hw-search__lead { display: grid; place-items: center; width: 24px; height: 24px; color: var(--hw-text-3); flex: 0 0 auto; }
.hw-search__lead .hw-icon { width: 20px; height: 20px; }
.hw-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--hw-text);
  font-size: 16px;
  letter-spacing: .01em;
  outline: none;
  appearance: none;
}
.hw-search__input::placeholder { color: var(--hw-text-3); opacity: .8; }
.hw-search__input::-webkit-search-cancel-button { display: none; }
.hw-search__clear {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--hw-text-3);
  flex: 0 0 auto;
  transition: all var(--hw-transition);
}
.hw-search__clear:hover { background: var(--hw-card); color: var(--hw-text); }
.hw-search__submit {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--hw-primary-bg);
  color: var(--hw-primary-fg);
  font-size: 13px;
  font-weight: 600;
  transition: transform var(--hw-transition), opacity var(--hw-transition);
}
.hw-search__submit:hover { transform: translateY(-1px); opacity: .9; }
.hw-search__submit:active { transform: none; }
.hw-search__close {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--hw-text-2);
  flex: 0 0 auto;
}
.hw-search__close:hover { background: var(--hw-card); color: var(--hw-text); }

.hw-search__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 8px; }
.hw-search__block { margin-bottom: 18px; }
.hw-search__block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--hw-text-3);
  letter-spacing: .04em;
}
.hw-search__block-head > span { display: inline-flex; align-items: center; gap: 6px; }
.hw-search__block-head em { font-style: normal; color: var(--hw-text-2); letter-spacing: 0; }
.hw-search__block-head > a,
.hw-search__block-head > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--hw-text-3);
  font-size: 12px;
  transition: color var(--hw-transition);
}
.hw-search__block-head > a:hover,
.hw-search__block-head > button:hover { color: var(--hw-text); }
.hw-search__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-search__chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--hw-chip);
  border: 1px solid transparent;
  color: var(--hw-chip-text);
  font-size: 12.5px;
  transition: all var(--hw-transition);
}
.hw-search__chip:hover { background: var(--hw-card-hover); border-color: var(--hw-border-strong); transform: translateY(-1px); }
body.hw-light .hw-search__chip { background: #f2f3f5; color: var(--hw-text-2); }
body.hw-light .hw-search__chip:hover { background: #e9ebef; color: var(--hw-text); }

.hw-search__list { display: flex; flex-direction: column; gap: 4px; }
.hw-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 7px 10px;
  border-radius: 14px;
  transition: background var(--hw-transition), transform var(--hw-transition);
  outline: none;
}
.hw-search__item:hover,
.hw-search__item.is-active,
.hw-search__item:focus-visible { background: var(--hw-card); }
.hw-search__item.is-active { transform: translateX(2px); }
body.hw-light .hw-search__item:hover,
body.hw-light .hw-search__item.is-active,
body.hw-light .hw-search__item:focus-visible { background: #f3f4f7; }
.hw-search__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 82px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--hw-card);
}
.hw-search__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-search__badge {
  position: absolute;
  left: 5px;
  top: 5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 9.5px;
  font-style: normal;
  letter-spacing: .02em;
  backdrop-filter: blur(4px);
}
.hw-search__item-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hw-search__item-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hw-text);
}
.hw-search__item-main em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--hw-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hw-search__item-go {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--hw-chip);
  color: var(--hw-text-3);
  font-size: 11px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--hw-transition);
}
.hw-search__item:hover .hw-search__item-go,
.hw-search__item.is-active .hw-search__item-go,
.hw-search__item:focus-visible .hw-search__item-go { opacity: 1; transform: none; color: var(--hw-text); }

.hw-search__empty { padding: 34px 16px 40px; text-align: center; color: var(--hw-text-3); }
.hw-search__empty .hw-icon { width: 34px; height: 34px; opacity: .45; margin-bottom: 12px; }
.hw-search__empty strong { display: block; font-size: 14px; font-weight: 600; color: var(--hw-text-2); margin-bottom: 6px; }
.hw-search__empty p { font-size: 12.5px; color: var(--hw-text-3); }
.hw-search__skeleton { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 18px; }
.hw-search__skeleton span {
  display: block;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--hw-card) 20%, var(--hw-card-hover) 40%, var(--hw-card) 60%);
  background-size: 220% 100%;
  animation: hwSearchShimmer 1.3s linear infinite;
}
@keyframes hwSearchShimmer { to { background-position: -220% 0; } }

.hw-search__foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 11px 18px;
  border-top: 1px solid var(--hw-border);
  color: var(--hw-text-3);
  font-size: 11px;
  background: rgba(255, 255, 255, .015);
}
body.hw-light .hw-search__foot { background: #fbfbfc; }
.hw-search__foot span { display: inline-flex; align-items: center; gap: 5px; }
.hw-search__foot kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--hw-card);
  border: 1px solid var(--hw-border);
  color: var(--hw-text-2);
  font: 10.5px/1 var(--hw-font);
}
.hw-search__brand { margin-left: auto; color: var(--hw-text-3); font-size: 11.5px; letter-spacing: .08em; opacity: .75; }

/* Inline search form on the results page */
.hw-search-page {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(560px, 100%);
  height: 50px;
  margin: 18px 0 4px;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: var(--hw-input);
  border: 1px solid var(--hw-border);
  transition: border-color var(--hw-transition), background var(--hw-transition);
}
.hw-search-page:focus-within { border-color: var(--hw-border-strong); background: var(--hw-card); }
.hw-search-page__lead { display: grid; place-items: center; width: 22px; height: 22px; color: var(--hw-text-3); flex: 0 0 auto; }
.hw-search-page input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--hw-text);
  font-size: 13.5px;
  outline: none;
  appearance: none;
}
.hw-search-page input::-webkit-search-cancel-button { display: none; }
.hw-search-page button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--hw-primary-bg);
  color: var(--hw-primary-fg);
  font-size: 12.5px;
  font-weight: 600;
}

/* Floating back to top */
.hw-totop {
  position: fixed;
  right: 26px;
  bottom: 96px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hw-pill);
  border: 1px solid var(--hw-border);
  backdrop-filter: blur(var(--hw-blur));
  box-shadow: var(--hw-shadow-sm);
  color: var(--hw-text-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.94);
  transition: opacity var(--hw-transition), visibility var(--hw-transition), transform var(--hw-transition), color var(--hw-transition);
}
.hw-totop.is-on { opacity: 1; visibility: visible; transform: none; }
.hw-totop:hover { color: var(--hw-text); border-color: var(--hw-border-strong); transform: translateY(-2px); }

@media (max-width: 900px) {
  .hw-search-modal { padding: 68px 12px 20px; }
  .hw-search__panel { max-height: calc(100vh - 104px); }
  .hw-totop { right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  .hw-search-modal { padding: 10px; align-items: stretch; }
  .hw-search__panel { width: 100%; max-height: calc(100vh - 20px); border-radius: 18px; }
  .hw-search__form { gap: 6px; padding: 10px 12px; }
  .hw-search__input { height: 42px; font-size: 15px; }
  .hw-search__submit { display: none; }
  .hw-search__clear { display: none; }
  .hw-search__close { display: grid; }
  .hw-search__body { padding: 14px 14px 4px; }
  .hw-search__thumb { width: 66px; height: 44px; }
  .hw-search__item { min-height: 58px; padding: 6px 8px; gap: 10px; }
  .hw-search__item-go { display: none; }
  .hw-search__foot { gap: 12px; padding: 10px 14px; }
  .hw-search__foot span:nth-child(2) { display: none; }
  .hw-search__brand { display: none; }
  .hw-search-page { height: 46px; margin: 14px 0 2px; }
  .hw-search-page input { font-size: 12.5px; }
  .hw-search-page button { height: 34px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-search__item,
  .hw-search__chip,
  .hw-search__submit,
  .hw-totop { transition: none; }
  .hw-search__skeleton span { animation: none; }
}

/* =========================================================
   Header personal notifications — v1.6.0
   ========================================================= */
.hw-dropdown--notice { min-width: 300px; }
.hw-dropdown--notice .hw-userbox__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.hw-notice-all {
  color: var(--hw-link);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.hw-notice-all:hover { text-decoration: underline; }
.hw-notice__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--hw-bg-3);
}
.hw-notice.is-unread {
  background: rgba(59, 107, 255, .07);
  border-radius: 10px;
}
.hw-notice.is-unread .hw-notice__body b { color: var(--hw-text); }
.hw-notice__body b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hw-notice__body time { display: block; }

/* Keep fixed header and mobile bar below the WordPress admin bar. */
body.admin-bar .hw-top { top: 32px; }
body.admin-bar .hw-nav--mobile { top: 116px; }
@media (max-width: 782px) {
  body.admin-bar .hw-top { top: 46px; }
  body.admin-bar .hw-nav--mobile { top: 130px; }
}


/* Small phones: keep the floating mobile navigation readable instead of
   reducing every destination to an anonymous icon. The pill scrolls
   horizontally when the labels do not fit. */
@media (max-width: 480px) {
  .hw-nav--mobile {
    max-width: calc(100% - 24px);
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .hw-nav--mobile::-webkit-scrollbar { display: none; }
  .hw-nav--mobile .hw-nav__link {
    width: 56px;
    flex: 0 0 auto;
    padding: 0;
    font-size: 10.5px;
    line-height: 1.15;
    gap: 2px;
    flex-direction: column;
  }
  .hw-nav--mobile .hw-nav__link > span:not(.hw-icon) { display: inline; }
  .hw-nav--mobile .hw-nav__link--ext { display: none; }
  .hw-nav--mobile .hw-nav__mob-theme { width: 40px; flex: 0 0 auto; }
}
/* =========================================================
   DIY homepage & floating tools — v1.8.0
   ========================================================= */
.hw-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}
.hw-section-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.hw-section-head p {
  margin: 6px 0 0;
  color: var(--hw-text-3);
  font-size: 12.5px;
  line-height: 1.7;
}
.hw-section-count,
.hw-section-head__more {
  color: var(--hw-text-3);
  font-size: 12px;
  white-space: nowrap;
}
.hw-section-head__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hw-text-2);
  transition: color var(--hw-transition);
}
.hw-section-head__more:hover { color: var(--hw-text); }
.hw-section-head__more .hw-icon { width: 13px; height: 13px; }

/* Homepage hero */
.hw-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 382px;
  margin: 0 0 var(--hw-gap);
  padding: 46px 50px;
  border-radius: calc(var(--hw-radius) + 10px);
  border: 1px solid var(--hw-border);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(80% 120% at 12% 0%, rgba(59, 107, 255, .30) 0%, transparent 58%),
    radial-gradient(70% 110% at 92% 100%, rgba(130, 90, 255, .22) 0%, transparent 55%),
    linear-gradient(135deg, #202127 0%, #131316 52%, #1b1a20 100%);
  box-shadow: var(--hw-shadow);
}
.hw-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: .32;
  filter: saturate(.9);
  transform: scale(1.02);
}
.hw-hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 12, 16, .90) 0%, rgba(12, 12, 16, .62) 52%, rgba(12, 12, 16, .26) 100%);
}
.hw-hero__body {
  position: relative;
  z-index: 2;
  width: min(640px, 58%);
  color: #fff;
}
.hw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .62);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hw-hero__eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--hw-accent);
}
.hw-hero__title {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.045em;
  color: #fff;
  text-wrap: balance;
}
.hw-hero__desc {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  line-height: 1.8;
}
.hw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hw-hero__btn {
  height: 46px;
  padding: 0 22px;
  font-size: 13.5px;
}
.hw-hero__btn--ghost {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
}
.hw-hero__btn--ghost:hover { background: rgba(255, 255, 255, .15); }
.hw-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 34px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hw-hero__stat b {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.hw-hero__stat em {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, .52);
  font-size: 11px;
  font-style: normal;
  letter-spacing: .04em;
}
.hw-hero__visual {
  position: absolute;
  top: 50%;
  right: 52px;
  z-index: 1;
  width: 44%;
  max-width: 520px;
  height: 300px;
  transform: translateY(-50%);
  pointer-events: none;
}
.hw-hero__shot {
  position: absolute;
  display: block;
  width: 62%;
  max-width: 280px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  background: #222;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.hw-hero__shot img { width: 100%; height: 100%; object-fit: cover; }
.hw-hero__shot--1 { top: 2%; left: 2%; transform: rotate(-7deg); }
.hw-hero__shot--2 { top: 29%; left: 24%; transform: rotate(3deg); z-index: 2; }
.hw-hero__shot--3 { top: 8%; right: 0; transform: rotate(9deg); z-index: 3; }
.hw-hero:hover .hw-hero__shot--1 { transform: rotate(-9deg) translateY(-6px); }
.hw-hero:hover .hw-hero__shot--2 { transform: rotate(4deg) translateY(-8px); }
.hw-hero:hover .hw-hero__shot--3 { transform: rotate(11deg) translateY(-5px); }

/* Homepage quick entries */
.hw-quick { margin: 0 0 var(--hw-gap); }
.hw-quick__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hw-quick__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--hw-border);
  border-radius: calc(var(--hw-radius) + 2px);
  background: var(--hw-card);
  box-shadow: var(--hw-shadow-sm);
  transition: background var(--hw-transition), border-color var(--hw-transition), transform var(--hw-transition), box-shadow var(--hw-transition);
}
.hw-quick__item:hover {
  background: var(--hw-card-hover);
  border-color: var(--hw-border-strong);
  transform: translateY(-3px);
  box-shadow: var(--hw-shadow);
}
.hw-quick__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--hw-text);
  background: color-mix(in srgb, var(--hw-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--hw-accent) 22%, transparent);
}
.hw-quick__icon .hw-icon { width: 21px; height: 21px; }
.hw-quick__body { min-width: 0; }
.hw-quick__body strong {
  display: block;
  color: var(--hw-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-quick__body em {
  display: block;
  margin-top: 3px;
  color: var(--hw-text-3);
  font-size: 11.5px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-quick__arrow {
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--hw-text-3);
  opacity: .55;
}

/* Homepage notice */
.hw-announce {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--hw-accent) 24%, var(--hw-border));
  border-radius: calc(var(--hw-radius) + 2px);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--hw-accent) 11%, transparent), transparent 62%),
    var(--hw-card);
  box-shadow: var(--hw-shadow-sm);
  transition: opacity .24s ease, transform .24s ease;
}
.hw-announce.is-out { opacity: 0; transform: translateY(-6px); }
.hw-announce__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--hw-accent);
  background: color-mix(in srgb, var(--hw-accent) 13%, transparent);
}
.hw-announce__text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  color: var(--hw-text-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.hw-announce__text b {
  flex: 0 0 auto;
  color: var(--hw-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}
.hw-announce__text span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hw-announce__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--hw-link);
  font-size: 12px;
  font-weight: 500;
}
.hw-announce__link:hover { text-decoration: underline; }
.hw-announce__close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--hw-text-3);
  transition: background var(--hw-transition), color var(--hw-transition);
}
.hw-announce__close:hover { background: var(--hw-chip); color: var(--hw-text); }

/* Homepage layout + sidebar */
.hw-home-layout { display: block; }
.hw-home-content { min-width: 0; }
.hw-home-layout.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hw-sidebar, 320px);
  gap: var(--hw-gap);
  align-items: start;
}
.hw-home-aside {
  position: sticky;
  top: calc(var(--hw-header-h) + 2px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.hw-aside-card {
  padding: 18px;
  border: 1px solid var(--hw-border);
  border-radius: calc(var(--hw-radius) + 2px);
  background: var(--hw-card);
  box-shadow: var(--hw-shadow-sm);
}
.hw-aside-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.hw-aside-card h3 .hw-icon { width: 15px; height: 15px; color: var(--hw-text-3); }
.hw-aside-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hw-aside-stats span {
  min-width: 0;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--hw-chip);
  text-align: center;
}
.hw-aside-stats b {
  display: block;
  color: var(--hw-text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.hw-aside-stats em {
  display: block;
  margin-top: 4px;
  color: var(--hw-text-3);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-aside-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.hw-aside-tags a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--hw-border);
  color: var(--hw-text-2);
  font-size: 11.5px;
  transition: background var(--hw-transition), border-color var(--hw-transition), color var(--hw-transition);
}
.hw-aside-tags a:hover { background: var(--hw-card-hover); border-color: var(--hw-border-strong); color: var(--hw-text); }
.hw-aside-tags em {
  color: var(--hw-text-3);
  font-size: 10px;
  font-style: normal;
}
.hw-aside-hot { display: flex; flex-direction: column; gap: 3px; }
.hw-aside-hot__item {
  display: grid;
  grid-template-columns: 18px 58px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hw-border);
}
.hw-aside-hot__item:last-child { border-bottom: 0; }
.hw-aside-hot__rank {
  color: var(--hw-text-3);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.hw-aside-hot__item:nth-child(-n+3) .hw-aside-hot__rank { color: var(--hw-accent); }
.hw-aside-hot__item img {
  width: 58px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--hw-bg-2);
}
.hw-aside-hot__body { min-width: 0; }
.hw-aside-hot__body strong {
  display: block;
  color: var(--hw-text);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-aside-hot__body em {
  display: block;
  margin-top: 2px;
  color: var(--hw-text-3);
  font-size: 10px;
  font-style: normal;
}
.hw-aside-card--promo {
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--hw-accent) 15%, transparent) 0%, transparent 60%),
    var(--hw-card);
}
.hw-aside-card--promo p { margin: 0 0 12px; color: var(--hw-text-2); font-size: 12px; line-height: 1.7; }
.hw-aside-card--promo ul { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hw-aside-card--promo li { display: flex; align-items: center; gap: 6px; color: var(--hw-text-2); font-size: 11.5px; }
.hw-aside-card--promo li .hw-icon { width: 13px; height: 13px; color: var(--hw-accent); }
.hw-aside-card__btn { width: 100%; height: 38px; font-size: 12px; }

/* Floating tools */
.hw-float { display: none; }
@media (min-width: 901px) {
  .hw-float {
    position: fixed;
    right: 22px;
    bottom: 104px;
    z-index: 94;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--hw-border);
    background: var(--hw-pill);
    backdrop-filter: blur(var(--hw-blur)) saturate(1.2);
    box-shadow: var(--hw-shadow-sm);
  }
  .hw-float--left { left: 22px; right: auto; }
  body.hw-has-float .hw-totop { display: none; }
}
.hw-float__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--hw-text-2);
  transition: background var(--hw-transition), color var(--hw-transition), transform var(--hw-transition);
}
.hw-float__btn .hw-icon { width: 19px; height: 19px; }
.hw-float__btn:hover { background: var(--hw-card-hover); color: var(--hw-text); transform: scale(1.04); }
.hw-float__btn::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--hw-pill-solid);
  border: 1px solid var(--hw-border);
  color: var(--hw-text);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--hw-transition), transform var(--hw-transition), visibility var(--hw-transition);
}
.hw-float__btn:hover::after { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.hw-float--left .hw-float__btn::after { right: auto; left: calc(100% + 12px); transform: translateY(-50%) translateX(-6px); }
.hw-float--left .hw-float__btn:hover::after { transform: translateY(-50%) translateX(0); }

/* Card hover variants */
body.hw-card-lift .hw-card:hover { transform: translateY(-6px); }
body.hw-card-lift .hw-card:hover .hw-card__img { transform: none; }
body.hw-card-flat .hw-card:hover { box-shadow: var(--hw-shadow); }
body.hw-card-flat .hw-card:hover .hw-card__img { transform: none; }

/* Responsive */
@media (max-width: 1280px) {
  .hw-home-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 286px; }
  .hw-quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hw-hero { padding: 40px; min-height: 344px; }
  .hw-hero__visual { right: 34px; width: 42%; }
}
@media (max-width: 1100px) {
  .hw-home-layout.has-sidebar { display: block; }
  .hw-home-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--hw-gap);
  }
  .hw-hero__body { width: 64%; }
  .hw-hero__visual { opacity: .55; width: 40%; right: 18px; }
}
@media (max-width: 900px) {
  .hw-hero { min-height: 0; padding: 30px 26px; margin-bottom: 18px; }
  .hw-hero__body { width: 100%; }
  .hw-hero__title { font-size: clamp(32px, 8vw, 44px); }
  .hw-hero__desc { font-size: 13px; margin-top: 14px; }
  .hw-hero__visual { display: none; }
  .hw-hero__stats { gap: 18px 26px; margin-top: 24px; padding-top: 18px; }
  .hw-hero__stat b { font-size: 16px; }
  .hw-quick__grid { gap: 10px; }
  .hw-quick__item { padding: 13px; gap: 10px; }
  .hw-quick__icon { width: 36px; height: 36px; }
  .hw-quick__body em { display: none; }
  .hw-home-aside { grid-template-columns: 1fr; }
  .hw-announce { align-items: flex-start; padding: 11px 13px; }
  .hw-announce__text { flex-wrap: wrap; gap: 2px 8px; }
  .hw-announce__text span { white-space: normal; }
  .hw-announce__link { display: none; }
}
@media (max-width: 560px) {
  .hw-section-head { align-items: flex-start; }
  .hw-section-head h2 { font-size: 18px; }
  .hw-section-count { display: none; }
  .hw-quick__grid { grid-template-columns: 1fr 1fr; }
  .hw-quick__body strong { font-size: 13px; }
  .hw-hero__actions { gap: 8px; }
  .hw-hero__btn { height: 42px; padding: 0 16px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-hero__shot,
  .hw-quick__item,
  .hw-card { transition: none !important; }
  .hw-hero:hover .hw-hero__shot--1,
  .hw-hero:hover .hw-hero__shot--2,
  .hw-hero:hover .hw-hero__shot--3 { transform: none; }
}

/* =========================================================
   23. Public author profile — v1.8.1 refinement
   ========================================================= */
.hw-profile {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--hw-card-solid);
  border: 1px solid var(--hw-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
}
.hw-profile__cover {
  position: relative;
  height: 164px;
  background:
    radial-gradient(560px 280px at 8% -18%, rgba(93, 112, 255, .46), transparent 66%),
    radial-gradient(460px 260px at 48% -6%, rgba(45, 195, 255, .22), transparent 62%),
    radial-gradient(520px 300px at 96% 8%, rgba(242, 93, 154, .22), transparent 62%),
    linear-gradient(150deg, #1c2136 0%, #11141f 54%, #0a0c13 100%);
}
body.hw-light .hw-profile__cover {
  background:
    radial-gradient(560px 280px at 8% -18%, rgba(93, 112, 255, .34), transparent 66%),
    radial-gradient(460px 260px at 48% -6%, rgba(45, 195, 255, .18), transparent 62%),
    radial-gradient(520px 300px at 96% 8%, rgba(242, 93, 154, .16), transparent 62%),
    linear-gradient(150deg, #dfe7ff 0%, #eef4ff 54%, #f8eff5 100%);
}
.hw-profile__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 90%);
  pointer-events: none;
}
body.hw-light .hw-profile__cover::after { background-image: linear-gradient(rgba(25, 35, 60, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 35, 60, .05) 1px, transparent 1px); }
.hw-profile__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 30px 26px;
  margin-top: -62px;
  flex-wrap: wrap;
}
.hw-profile__avatar {
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--hw-card-solid);
  background: var(--hw-bg-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32), 0 0 0 1px var(--hw-border);
}
.hw-profile__info {
  flex: 1;
  min-width: 220px;
  padding-bottom: 0;
}
.hw-profile__eyebrow {
  display: block;
  margin-bottom: 7px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--hw-text-3);
}
.hw-profile__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hw-profile__info h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.hw-profile__handle {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hw-border);
  background: var(--hw-chip);
  color: var(--hw-text-3);
  font-size: 11px;
  letter-spacing: .01em;
}
.hw-profile__info p {
  margin: 6px 0 13px;
  max-width: 560px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--hw-text-3);
}
.hw-profile__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--hw-text-3);
}
.hw-profile__stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid var(--hw-border);
  background: var(--hw-chip);
}
.hw-profile__stats b {
  margin: 0;
  font-size: 15px;
  line-height: 1;
  color: var(--hw-text);
  font-weight: 600;
}
.hw-author__actions {
  align-self: center;
  margin-left: auto;
}
.hw-author__follow {
  height: 40px;
  padding: 0 18px;
  background: var(--hw-text);
  border-color: transparent;
  color: var(--hw-bg);
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}
.hw-author__follow:hover { background: var(--hw-text); opacity: .9; }
.hw-author__follow.is-on { background: var(--hw-accent); color: #fff; box-shadow: 0 10px 26px rgba(242, 93, 154, .28); }
.hw-author__block { height: 40px; }
.hw-profile__tabs {
  display: inline-flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 24px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--hw-border);
  background: var(--hw-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hw-profile__tab {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--hw-text-2);
  font-size: 13px;
  white-space: nowrap;
  transition: background var(--hw-transition), color var(--hw-transition);
}
.hw-profile__tab:hover { background: var(--hw-card-hover); color: var(--hw-text); }
.hw-profile__tab.is-active {
  background: linear-gradient(135deg, #5d70ff, #4a63e8);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(74, 99, 232, .32);
}
@media (max-width: 760px) {
  .hw-profile__cover { height: 140px; }
  .hw-profile__head { padding: 0 20px 22px; margin-top: -54px; gap: 18px; }
  .hw-profile__avatar { width: 96px; height: 96px; }
  .hw-profile__info h1 { font-size: 24px; }
  .hw-profile__info { min-width: 0; }
  .hw-author__actions { width: 100%; margin-left: 0; }
  .hw-profile__tabs { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hw-profile__tabs::-webkit-scrollbar { display: none; }
  .hw-profile__tab { flex: 0 0 auto; }
}
@media (max-width: 420px) {
  .hw-profile__cover { height: 126px; }
  .hw-profile__head { padding: 0 16px 20px; margin-top: -48px; gap: 14px; }
  .hw-profile__avatar { width: 84px; height: 84px; }
  .hw-profile__info h1 { font-size: 21px; }
  .hw-profile__stats span { padding: 5px 9px; }
  .hw-profile__stats b { font-size: 14px; }
}