/* Weather360 - Custom styles (Bootstrap companion) */
:root {
  --w360-primary: #0f6fff;
  --w360-primary-dark: #074fc7;
  --w360-bg: #f6f9ff;
  --w360-text: #071948;
  --w360-muted: #66789f;
  --w360-line: #dce6f7;
  --w360-sidebar-w: 238px;
  --w360-header-h: 72px;
  --w360-radius: 8px;
  --w360-shadow: 0 8px 24px rgba(23, 70, 161, .08);
}
* { box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 14px; background: var(--w360-bg); color: var(--w360-text); letter-spacing: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

/* Header */
.w360-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--w360-header-h);
  padding-inline: 0 24px !important;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(220,230,247,.72);
  box-shadow: 0 10px 30px rgba(20, 61, 130, .05) !important;
  backdrop-filter: blur(16px);
}
.w360-header > .d-flex {
  gap: 24px !important;
  max-width: none;
  margin-inline: 0;
}
.w360-brand {
  min-width: var(--w360-sidebar-w);
  align-self: stretch;
  padding-left: 22px;
  padding-right: 18px;
  border-right: 1px solid rgba(220,230,247,.72);
  background: rgba(255,255,255,.38);
}
.w360-logo-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #dff3ff 0%, #62a8ff 54%, #1d6fff 100%) !important;
  box-shadow: 0 8px 18px rgba(15, 111, 255, .18);
}
.w360-custom-logo { width: 42px !important; height: 42px !important; min-width: 42px; max-width: 42px; display: grid; place-items: center; flex: 0 0 42px; overflow: hidden; border-radius: 12px; }
.w360-custom-logo .custom-logo-link { display: grid !important; place-items: center; width: 42px !important; height: 42px !important; min-width: 42px; max-width: 42px; overflow: hidden; }
.w360-custom-logo img,
.w360-custom-logo .custom-logo { width: 42px !important; height: 42px !important; min-width: 42px; max-width: 42px; min-height: 42px; max-height: 42px; object-fit: cover; border-radius: 12px; display: block; }
.w360-logo-name { font-size: 21px; color: var(--w360-text); line-height: 1; font-weight: 750; letter-spacing: 0; }
.w360-logo-name strong { color: var(--w360-primary); }
.w360-logo-name strong { font-weight: 800; }
.w360-logo-desc { font-size: 11px; color: #52647f; font-weight: 600; margin-top: 3px; }
.w360-search { max-width: 620px; margin-inline: auto; }
.w360-search .input-group {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(26, 75, 154, .06);
  transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}
.w360-search .form-control,
.w360-search .input-group-text,
.w360-search .btn {
  height: 40px;
  border-color: #dbe6f6;
}
.w360-search .input-group-text,
.w360-search .form-control {
  background: #fff !important;
}
.w360-search .input-group-text {
  width: 46px;
  justify-content: center;
  color: #6f7f9e;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.w360-search .form-control {
  color: var(--w360-text);
  font-size: 13px;
}
.w360-search .form-control::placeholder { color: #7d8ca7; opacity: 1; }
.w360-search .btn {
  min-width: 54px;
  background: var(--w360-primary);
  border-color: var(--w360-primary);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}
.w360-search .input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(15, 111, 255, .13), 0 12px 28px rgba(15, 111, 255, .12);
  transform: translateY(-1px);
}
.w360-search .input-group:focus-within .form-control,
.w360-search .input-group:focus-within .input-group-text,
.w360-search .input-group:focus-within .btn {
  border-color: var(--w360-primary);
}
.w360-search .form-control:focus {
  border-color: var(--w360-primary);
  box-shadow: none;
}
.w360-search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 4px 12px rgba(0,0,0,.1); display: none; z-index: 50; }
.w360-notif-badge { position: absolute; top: 0; right: 0; width: 16px; height: 16px; background: #ef4444; color: #fff; font-size: 9px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
#w360-location-btn.has-location { color: var(--w360-primary); border-color: rgba(15,111,255,.35); background: #eef5ff; }
.w360-header-actions { gap: 12px !important; }
.w360-header-actions .btn {
  min-height: 40px;
  border-radius: 10px;
  border-color: #dbe6f6;
  background: rgba(255,255,255,.88);
  color: #172b55;
  box-shadow: 0 8px 18px rgba(26, 75, 154, .05);
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.w360-header-actions .btn:hover {
  border-color: rgba(15,111,255,.32);
  background: #f7fbff;
  color: var(--w360-primary);
  box-shadow: 0 10px 22px rgba(26, 75, 154, .09);
  transform: translateY(-1px);
}
.w360-header-actions #w360-location-btn {
  padding-inline: 15px;
  color: var(--w360-primary);
  font-weight: 700;
}
.w360-header-actions .w360-unit-toggle,
.w360-header-actions #w360-dark-mode,
.w360-header-actions .w360-notification-btn {
  width: 40px;
  padding-inline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.w360-header-actions .rounded-circle.overflow-hidden {
  width: 40px !important;
  height: 40px !important;
  border: 2px solid rgba(15,111,255,.22) !important;
  box-shadow: 0 8px 20px rgba(26, 75, 154, .12);
}
.w360-header-actions .rounded-circle.overflow-hidden img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.w360-mobile-menu-toggle,
.w360-mobile-search-toggle,
.w360-mobile-menu { display: none; }
.w360-mobile-menu {
  background: #fff;
  border: 1px solid var(--w360-line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(23, 70, 161, .14);
  padding: 8px;
}
.w360-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #223664;
  text-decoration: none;
  font-weight: 600;
}
.w360-mobile-menu a i { color: var(--w360-primary); width: 18px; text-align: center; }
.w360-mobile-menu a.active,
.w360-mobile-menu a:hover { background: #eef5ff; color: var(--w360-primary-dark); }

/* Sidebar */
.w360-sidebar { width: var(--w360-sidebar-w); background: #fff; border-right: 1px solid var(--w360-line); overflow-y: auto; position: sticky; top: var(--w360-header-h); height: calc(100vh - var(--w360-header-h)); flex-shrink: 0; padding: 14px; }
.w360-nav-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 10px 13px; border-radius: 9px; color: #223664; font-size: 13px; text-decoration: none; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.w360-nav-item:hover { background: #eef5ff; color: var(--w360-primary-dark); }
.w360-nav-item.active { background: linear-gradient(135deg, #176cff, #0f5bea); color: #fff !important; font-weight: 700; box-shadow: 0 8px 18px rgba(15, 111, 255, .26); }
.w360-nav-item.active .w360-nav-icon,
.w360-nav-item.active .w360-nav-arrow { color: #fff; }
.w360-nav-sub { position: relative; margin: 10px 0 12px 26px; padding-left: 20px; }
.w360-nav-sub:before { content: ""; position: absolute; left: 0; top: 10px; bottom: 12px; width: 2px; border-radius: 999px; background: #cfe0ff; }
.w360-nav-sub-item { position: relative; display: block; min-height: 34px; padding: 8px 13px; font-size: 13px; line-height: 1.35; color: #52647f; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background-color .15s ease, color .15s ease; }
.w360-nav-sub-item:before { content: ""; position: absolute; left: -22px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #9dbbff; transform: translateY(-50%); }
.w360-nav-sub-item:hover { background: #f3f7ff; color: var(--w360-primary); }
.w360-nav-sub-item.active { background: #eef4ff; color: var(--w360-primary); font-weight: 800; }
.w360-nav-sub-item.active:before { left: -23px; width: 6px; height: 6px; background: var(--w360-primary); box-shadow: 0 0 0 3px #eef4ff; }
.w360-nav-arrow { margin-left: auto; font-size: 11px; line-height: 1; }
.w360-badge-red { background: #ef4444; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; margin-left: auto; }
.w360-badge-new { background: linear-gradient(135deg,#8b5cf6,#d946ef); color: #fff; font-size: 9px; padding: 1px 6px; border-radius: 10px; margin-left: auto; font-weight: 700; }
.w360-sidebar-favorites, .w360-sidebar-app { margin-top: 16px; border: 1px solid var(--w360-line); border-radius: 10px; padding: 12px; background: #fff; box-shadow: 0 8px 20px rgba(23, 70, 161, .04); }
.w360-sidebar-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.w360-sidebar-section-header h3, .w360-sidebar-app h3 { font-size: 13px; margin: 0; font-weight: 800; }
.w360-link-sm { color: var(--w360-primary); text-decoration: none; font-size: 12px; }
button.w360-link-sm { border: 0; background: transparent; padding: 10px 0 0; cursor: pointer; font-weight: 700; }
.w360-fav-cities { display: grid; gap: 4px; }
.w360-fav-city { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 8px; color: #1e293b; font-size: 12px; text-decoration: none; }
.w360-fav-city:hover { background: #f8fafc; color: #1e293b; }
.w360-fav-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #eef5ff; color: var(--w360-primary); overflow: hidden; }
.w360-fav-icon img { width: 30px; height: 30px; object-fit: contain; }
.w360-fav-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 650; }
.w360-fav-temp { margin-left: auto; font-weight: 600; }
.w360-sidebar-fav-empty { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; color: var(--w360-muted); font-size: 12px; text-align: center; }
.w360-sidebar-fav-empty[hidden] { display: none; }
.w360-sidebar-fav-empty i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff7ed; color: #f59e0b; }
.w360-add-location-btn { width: 100%; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 7px; border: 1px dashed #d6e3f7; border-radius: 8px; background: #f8fbff; color: var(--w360-primary); cursor: pointer; font-size: 12px; text-decoration: none; margin-top: 8px; }
.w360-add-location-btn:hover { background: #eef5ff; color: var(--w360-primary); }
.w360-sidebar-app { background: linear-gradient(160deg,#eef5ff,#dbeafe); }
.w360-sidebar-app p { font-size: 12px; color: var(--w360-muted); margin: 8px 0; }
.w360-store-btn { background: #071948; color: #fff; border-radius: 6px; padding: 7px 10px; font-size: 12px; margin-top: 6px; text-align: center; }

.w360-shell { display: flex; min-height: calc(100vh - var(--w360-header-h)); }
.w360-content { flex: 1; min-width: 0; padding: 18px 18px 28px; background: var(--w360-bg); }
.w360-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; min-width: 0; }
.w360-main-grid > * { min-width: 0; }
.w360-right-rail { display: grid; gap: 14px; align-content: start; min-width: 0; }
.w360-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.w360-two-col.wide-left { grid-template-columns: 1.45fr 1fr; }
.w360-three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.w360-three-layout { display: grid; grid-template-columns: 360px minmax(0,1fr) 330px; gap: 18px; align-items: start; }
.w360-ai-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; max-width: 1280px; margin: 0 auto; }

.w360-panel, .w360-location-card, .w360-aqi-hero, .w360-lunar-detail, .w360-widget-preview, .w360-app-hero { background: #fff; border: 1px solid var(--w360-line); border-radius: var(--w360-radius); box-shadow: var(--w360-shadow); padding: 18px; margin-bottom: 14px; overflow: hidden; }
.w360-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.w360-panel-head h2, .w360-panel h2 { font-size: 17px; font-weight: 800; margin: 0; color: var(--w360-text); }
.w360-panel-head a { font-size: 12px; text-decoration: none; color: var(--w360-primary); }
.w360-page-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 4px 0 18px; }
.w360-page-head p { margin: 0 0 10px; color: var(--w360-muted); font-size: 13px; }
.w360-page-head h1 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 850; color: var(--w360-text); }
.w360-page-head span { display: block; margin-top: 8px; color: var(--w360-muted); }
.w360-page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0; flex-shrink: 0; }
.w360-page-actions .w360-btn {
  min-height: 42px;
  margin: 0;
  border-radius: 0;
  border-right-width: 0;
  line-height: 1;
  white-space: nowrap;
}
.w360-page-actions .w360-btn:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.w360-page-actions .w360-btn:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-right-width: 1px;
}
.w360-page-actions .w360-btn span {
  display: inline;
  margin: 0;
  color: inherit;
}
.w360-btn { border: 0; background: var(--w360-primary); color: #fff; border-radius: 8px; padding: 10px 18px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.w360-btn.ghost { background: #fff; color: var(--w360-primary); border: 1px solid var(--w360-line); }
.w360-btn.ghost.is-active { background: #eef5ff; border-color: rgba(15,111,255,.32); color: var(--w360-primary-dark); }
.w360-icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--w360-primary); background: rgba(255,255,255,.92); }

.w360-hero { position: relative; min-height: 345px; border-radius: 10px; overflow: hidden; color: #fff; margin-bottom: 14px; box-shadow: 0 14px 36px rgba(4, 45, 110, .2); background: linear-gradient(135deg,#0f6fff,#0b357e); }
.w360-hero.is-compact { min-height: auto; color: var(--w360-text); background: transparent; box-shadow: none; border-radius: 0; margin: 0; }
.w360-hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,26,79,.72), rgba(3,26,79,.25)), url('https://images.unsplash.com/photo-1528127269322-539801943592?auto=format&fit=crop&w=1400&q=80') center/cover; }
.w360-hero.is-compact .w360-hero-bg { display: none; }
.w360-hero-content { position: relative; padding: 24px; height: 100%; }
.w360-hero.is-compact .w360-hero-content { padding: 0; }
.w360-hero-top, .w360-hero-main { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.w360-hero-top h1 { font-size: 24px; margin: 0; font-weight: 850; }
.w360-hero-top p, .w360-hero-main p { margin: 6px 0 0; opacity: .9; }
.w360-hero-top span { margin-left: 10px; padding: 4px 8px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: 12px; }
.w360-temp-big { font-size: 88px; font-weight: 850; line-height: .95; margin-top: 28px; }
.w360-temp-big sup { font-size: 34px; top: -.85em; }
.w360-hero-main h3 { font-size: 22px; font-weight: 800; margin: 10px 0 0; }
.w360-hero-icon { width: 190px; height: 190px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.22)); align-self: center; }
.w360-hero-stats { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(255,255,255,.24); margin-top: 24px; padding-top: 18px; gap: 8px; }
.w360-hero-stats div { min-width: 0; border-right: 1px solid rgba(255,255,255,.18); padding-right: 10px; }
.w360-hero-stats i { display: inline-block; margin-right: 6px; opacity: .85; }
.w360-hero-stats span { display: block; font-size: 12px; opacity: .82; }
.w360-hero-stats strong { display: block; font-size: 18px; }
.w360-hero.is-compact .w360-hero-top, .w360-hero.is-compact .w360-hero-stats { display: none; }
.w360-hero.is-compact .w360-temp-big { font-size: 42px; margin-top: 0; color: var(--w360-text); }
.w360-hero.is-compact .w360-hero-main h3, .w360-hero.is-compact .w360-hero-main p { color: var(--w360-text); }
.w360-hero.is-compact .w360-hero-icon { width: 88px; height: 88px; }

.w360-scroll-row, .w360-city-strip, .w360-prepare-row, .w360-tool-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.w360-hour-card, .w360-day-card, .w360-prepare-row > div, .w360-city-strip > a, .w360-tool-row > a { flex: 0 0 auto; border: 1px solid var(--w360-line); border-radius: 8px; background: #fff; text-align: center; text-decoration: none; color: var(--w360-text); }
.w360-hour-card { width: 78px; padding: 10px 6px; }
.w360-hour-card span, .w360-hour-card small, .w360-day-card span, .w360-day-card small { display: block; color: var(--w360-muted); font-size: 11px; }
.w360-hour-card strong { display: block; font-size: 17px; margin-top: 6px; }
.w360-hour-card img { width: 42px; height: 42px; }
.w360-day-grid { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 8px; overflow-x: auto; }
.w360-day-card { padding: 10px 8px; min-width: 92px; }
.w360-day-card.is-active { background: #eef5ff; border-color: var(--w360-primary); }
.w360-day-card img { width: 46px; height: 46px; }
.w360-day-card b { display: block; font-size: 18px; }
.w360-day-card em { color: var(--w360-muted); font-style: normal; font-weight: 600; }
.w360-prepare-row > div { min-width: 150px; text-align: left; padding: 12px; display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; align-items: center; }
.w360-prepare-row b { font-size: 26px; grid-row: span 2; }
.w360-prepare-row strong { font-size: 13px; }
.w360-prepare-row span { font-size: 11px; color: var(--w360-muted); }
.w360-city-strip { scrollbar-width: none; }
.w360-city-strip::-webkit-scrollbar { display: none; }
.w360-city-strip > a { width: 185px; min-height: 96px; padding: 12px; text-align: left; position: relative; overflow: hidden; background: linear-gradient(145deg,#f8fbff,#eaf3ff); }
.w360-city-strip strong, .w360-city-strip span, .w360-city-strip small { display: block; }
.w360-city-strip .w360-temp { font-size: 25px; font-weight: 850; margin-top: 6px; color: var(--w360-text); }

.w360-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w360-metric { min-height: 88px; border: 1px solid var(--w360-line); border-radius: 8px; background: #fff; padding: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.w360-metric span { display: block; color: var(--w360-muted); font-size: 12px; margin-bottom: 6px; }
.w360-metric strong { display: block; font-size: 28px; line-height: 1; color: var(--w360-primary); }
.w360-metric small { display: block; font-size: 11px; color: var(--w360-muted); margin-top: 4px; }
.w360-metric i { color: var(--w360-primary); font-size: 26px; opacity: .68; }
.w360-metric.good strong, .w360-metric.good i { color: #16a34a; }
.w360-metric.warn strong, .w360-metric.warn i { color: #f59e0b; }
.w360-metric.bad strong, .w360-metric.bad i { color: #ef4444; }
.w360-lunar-shell > .w360-stat-row .w360-metric.good { background: linear-gradient(135deg, #effaf3, #fff); border-color: #bbf7d0; }
.w360-lunar-shell > .w360-stat-row .w360-metric.warn { background: linear-gradient(135deg, #fff7ed, #fff); border-color: #fed7aa; }
.w360-lunar-shell > .w360-stat-row .w360-metric.bad { background: linear-gradient(135deg, #fff1f2, #fff); border-color: #fecdd3; }
.w360-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }

.w360-alert-item { display: flex; gap: 10px; padding: 10px; border-radius: 8px; background: #fff8ed; color: #9a3412; margin-bottom: 8px; }
.w360-alert-item.danger { background: #fff1f2; color: #dc2626; }
.w360-ai-card { border-radius: 10px; padding: 18px; color: #fff; background: linear-gradient(145deg,#7547e8,#4f7cff); box-shadow: var(--w360-shadow); }
.w360-ai-card h2 { font-size: 16px; font-weight: 800; }
.w360-ai-card h2 span, .w360-pill { font-size: 11px; padding: 3px 7px; border-radius: 99px; background: #8b5cf6; color: #fff; }
.w360-ai-question { background: rgba(255,255,255,.92); color: var(--w360-text); border-radius: 8px; padding: 10px; margin: 18px 0 10px; }
.w360-ai-card a { display: inline-flex; background: #fff; color: #7547e8; text-decoration: none; border-radius: 8px; padding: 9px 28px; font-weight: 800; }
.w360-aqi-number { font-size: 54px; font-weight: 850; color: var(--w360-text); line-height: 1; }
.w360-aqi-number span { display: block; font-size: 16px; color: var(--w360-primary); }
.w360-aqi-bar { height: 8px; border-radius: 999px; margin-top: 14px; background: linear-gradient(90deg,#16a34a,#facc15,#f97316,#ef4444,#7e22ce); }

.w360-map { --map-zoom: 1; position: relative; height: 360px; overflow: hidden; border-radius: 8px; background: linear-gradient(145deg,#e9f6ff,#bfe3ff 55%,#9bd4ff); border: 1px solid var(--w360-line); }
.w360-map:before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px); background-size: 54px 54px; opacity: .35; }
.w360-map-shape { position: absolute; inset: 38px 22% 34px 22%; background: linear-gradient(145deg, rgba(48,180,102,.35), rgba(42,164,86,.22)); clip-path: polygon(42% 0,58% 4%,66% 17%,55% 30%,64% 43%,53% 57%,68% 76%,51% 100%,35% 82%,43% 64%,30% 51%,42% 33%,31% 16%); border: 1px solid rgba(22,163,74,.35); transform: scale(var(--map-zoom)); transform-origin: center; transition: transform .18s ease; }
.w360-map.hanoi .w360-map-shape { inset: 54px 16% 48px 16%; clip-path: polygon(17% 24%,38% 10%,70% 17%,86% 39%,72% 77%,45% 89%,16% 70%,8% 43%); }
.w360-map-pin { position: absolute; background: #fff; border: 2px solid #22c55e; color: #071948; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 800; box-shadow: 0 8px 18px rgba(0,0,0,.12); transform: scale(var(--map-zoom)); transform-origin: center; transition: transform .18s ease; }
.pin-1{left:45%;top:18%}.pin-2{left:58%;top:27%}.pin-3{left:54%;top:55%}.pin-4{left:42%;top:50%}.pin-5{left:56%;top:72%}.pin-6{left:38%;top:70%}.pin-7{left:31%;top:31%}.pin-8{left:48%;top:38%}.pin-9{left:40%;top:58%}.pin-10{left:64%;top:66%}
.w360-map-toolbar { position: absolute; right: 14px; top: 14px; z-index: 6; display: grid; gap: 6px; pointer-events: auto; }
.w360-map-toolbar button { width: 34px; height: 34px; border: 1px solid var(--w360-line); border-radius: 7px; background: #fff; color: var(--w360-text); cursor: pointer; box-shadow: 0 6px 16px rgba(7,25,72,.12); }
.w360-map-toolbar button:hover { border-color: var(--w360-primary); color: var(--w360-primary); }
.w360-map-legend { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: #fff; border-radius: 8px; padding: 10px; font-size: 11px; box-shadow: var(--w360-shadow); min-width: 180px; }
.w360-map-legend i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg,#5da8ff,#4ade80,#facc15,#ef4444); margin: 7px 0; }
.w360-map-legend span:last-child { float: right; }
.w360-map-panel .w360-panel-head { margin-bottom: 8px; }
.w360-map-tabs { position: relative; z-index: 7; display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
.w360-map-tabs::-webkit-scrollbar { display: none; }
.w360-map-tabs button { border: 0; background: transparent; color: #21345d; border-radius: 7px; padding: 8px 16px; font-weight: 750; min-width: 72px; cursor: pointer; }
.w360-map-tabs button.active { background: var(--w360-primary); color: #fff; box-shadow: 0 8px 18px rgba(15,111,255,.22); }
.w360-map-tabs i { margin-right: 6px; }
.w360-map.home-radar { height: 290px; background: radial-gradient(circle at 42% 32%, rgba(250,204,21,.7), transparent 9%), radial-gradient(circle at 55% 42%, rgba(34,197,94,.65), transparent 12%), radial-gradient(circle at 48% 55%, rgba(59,130,246,.72), transparent 20%), linear-gradient(145deg,#113f60,#051936 70%); }
.w360-map.home-radar:before { background-image: radial-gradient(circle at 35% 45%, rgba(255,255,255,.22) 0 1px, transparent 2px); background-size: 14px 14px; opacity: .55; }
.w360-map.home-radar .w360-map-shape { inset: 20px 18% 20px 28%; background: linear-gradient(180deg,rgba(26,148,255,.22),rgba(35,211,145,.16)); clip-path: polygon(26% 0,58% 7%,70% 30%,56% 48%,78% 78%,52% 100%,30% 76%,44% 55%,18% 35%); }
.w360-map.home-radar .w360-map-pin { background: rgba(3,27,57,.75); color: #fff; border-color: rgba(255,255,255,.2); box-shadow: none; }
.w360-map.home-radar .w360-map-legend { left: 86px; right: 130px; bottom: 12px; min-width: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.w360-map.home-radar .w360-map-legend b { display: none; }
.w360-map.home-radar .w360-map-legend i { margin: 0; }
.w360-map.home-radar[data-layer="wind"] { background: radial-gradient(circle at 70% 40%, rgba(125,211,252,.36), transparent 18%), repeating-linear-gradient(130deg, rgba(255,255,255,.18) 0 2px, transparent 2px 28px), linear-gradient(145deg,#0d4774,#061a3a); }
.w360-map.home-radar[data-layer="temp"] { background: radial-gradient(circle at 45% 45%, rgba(248,113,113,.74), transparent 18%), radial-gradient(circle at 58% 30%, rgba(251,191,36,.65), transparent 15%), linear-gradient(145deg,#09224a,#123e67); }
.w360-map.home-radar[data-layer="pressure"] { background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.26) 0 2px, transparent 2px 28px), linear-gradient(145deg,#093052,#061a3a); }
.w360-map.home-radar[data-layer="aqi"] { background: radial-gradient(circle at 45% 45%, rgba(34,197,94,.76), transparent 16%), radial-gradient(circle at 55% 52%, rgba(250,204,21,.7), transparent 16%), linear-gradient(145deg,#092a42,#061a3a); }
.w360-map.home-radar[data-layer="wave"] { background: repeating-linear-gradient(155deg, rgba(125,211,252,.32) 0 8px, transparent 8px 26px), linear-gradient(145deg,#075985,#061a3a); }
.w360-map.home-radar[data-layer="storm"] { background: radial-gradient(circle at 50% 45%, rgba(239,68,68,.78), transparent 18%), radial-gradient(circle at 42% 36%, rgba(250,204,21,.78), transparent 9%), linear-gradient(145deg,#3b1020,#061a3a); }
.w360-map-player { display: flex; align-items: center; gap: 10px; margin-top: -52px; margin-left: 12px; position: relative; z-index: 3; max-width: 560px; }
.w360-map-player button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--w360-primary); color: #fff; display: grid; place-items: center; font-size: 20px; }
.w360-map-player button.is-playing { background: #22c55e; }
.w360-map-player span { background: #fff; border-radius: 6px; padding: 7px 14px; font-weight: 800; color: var(--w360-text); }
.w360-map-player i { flex: 1; height: 12px; border-radius: 999px; background: linear-gradient(90deg,#bde7ff,#5eead4,#facc15,#f97316,#7c3aed); }
.w360-map-player small { font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.w360-map.is-fullscreen { position: fixed; inset: 18px; width: auto; height: auto; z-index: 9999; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.w360-map.is-fullscreen + .w360-map-player { position: fixed; left: 34px; right: 120px; bottom: 38px; z-index: 10000; max-width: none; margin: 0; }
.w360-map.is-fullscreen .w360-map-toolbar { z-index: 10001; }

.w360-weather-glyph { position: absolute; right: 14px; bottom: 18px; width: 46px; height: 34px; }
.w360-weather-glyph:before, .w360-weather-glyph:after, .w360-weather-glyph i { content: ""; position: absolute; display: block; }
.w360-weather-glyph.sunny:before { width: 34px; height: 34px; border-radius: 50%; background: #ffb21c; box-shadow: 0 0 0 6px rgba(255,178,28,.18); right: 2px; top: 0; }
.w360-weather-glyph.sunny:after { width: 46px; height: 46px; right: -4px; top: -6px; background: repeating-conic-gradient(from 0deg,#ffb21c 0 8deg,transparent 8deg 22deg); border-radius: 50%; opacity: .65; }
.w360-weather-glyph.cloudy:before { width: 36px; height: 18px; border-radius: 18px; background: #e9eef5; left: 2px; top: 14px; }
.w360-weather-glyph.cloudy:after { width: 22px; height: 22px; border-radius: 50%; background: #d7e0ec; left: 14px; top: 6px; box-shadow: 16px 8px 0 #4b5563; }
.w360-weather-glyph.rainy:before { width: 38px; height: 20px; border-radius: 18px; background: #cbd5e1; left: 2px; top: 7px; box-shadow: 14px 3px 0 #94a3b8; }
.w360-weather-glyph.rainy:after { width: 4px; height: 12px; border-radius: 99px; background: #2f80ed; left: 12px; top: 28px; box-shadow: 12px 0 0 #2f80ed,24px 0 0 #2f80ed; transform: rotate(18deg); }
.w360-weather-glyph.stormy:before { width: 38px; height: 20px; border-radius: 18px; background: #64748b; left: 2px; top: 7px; }
.w360-weather-glyph.stormy:after { width: 0; height: 0; border-left: 7px solid transparent; border-right: 5px solid transparent; border-top: 18px solid #facc15; left: 18px; top: 24px; transform: skew(-12deg); }

.w360-purpose-grid { display: grid; grid-template-columns: repeat(6, minmax(132px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.w360-purpose-grid::-webkit-scrollbar { display: none; }
.w360-purpose-grid a { min-height: 92px; border-radius: 8px; position: relative; overflow: hidden; color: #fff; text-decoration: none; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg,rgba(2,16,45,.08),rgba(2,16,45,.72)), var(--purpose-bg) center/cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.w360-purpose-grid strong { font-size: 16px; line-height: 1; font-weight: 850; text-shadow: 0 1px 2px rgba(0,0,0,.32); }
.w360-purpose-grid b { font-size: 24px; line-height: 1.05; }
.w360-purpose-grid .w360-temp { display: inline; color: #fff; }
.w360-purpose-grid span:not(.w360-weather-glyph) { font-size: 11px; opacity: .92; }
.w360-purpose-grid small { font-size: 10px; opacity: .85; }
.w360-purpose-grid .w360-weather-glyph { right: 8px; bottom: 9px; transform: scale(.72); transform-origin: right bottom; }

.w360-list { display: grid; gap: 8px; }
.w360-list a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: center; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--w360-text); }
.w360-list a:hover { background: #f3f7ff; }
.w360-list a > span:first-child { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #edf5ff; color: var(--w360-primary); font-weight: 850; grid-row: span 2; }
.w360-list strong { font-size: 13px; line-height: 1.35; }
.w360-list small { color: var(--w360-muted); }
.w360-right-favorites { padding-bottom: 12px; }
.w360-right-fav-row { position: relative; display: grid; grid-template-columns: 28px 1fr auto 20px; gap: 8px; align-items: center; min-height: 34px; padding: 7px 0; border-bottom: 1px solid var(--w360-line); text-decoration: none; color: var(--w360-text); }
.w360-right-fav-row .w360-weather-glyph { position: relative; right: auto; bottom: auto; transform: scale(.48); transform-origin: left center; width: 28px; height: 26px; }
.w360-right-fav-row .w360-temp { font-weight: 850; color: var(--w360-text); }
.w360-right-fav-row i { color: #ef4444; font-size: 14px; }
.w360-add-wide { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--w360-line); border-radius: 8px; padding: 9px; margin-top: 10px; color: var(--w360-primary); text-decoration: none; font-weight: 800; }
.w360-tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.w360-tools-grid a { min-height: 76px; border: 1px solid var(--w360-line); border-radius: 8px; text-decoration: none; color: var(--w360-text); display: grid; place-items: center; text-align: center; padding: 8px 4px; gap: 5px; }
.w360-tools-grid i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: var(--w360-primary); background: #edf5ff; }
.w360-tools-grid a:nth-child(2) i { color: #f59e0b; background: #fff7ed; }
.w360-tools-grid a:nth-child(3) i, .w360-tools-grid a:nth-child(7) i { color: #2f80ed; background: #eff6ff; }
.w360-tools-grid a:nth-child(4) i { color: #facc15; background: #fffbeb; }
.w360-tools-grid a:nth-child(5) i { color: #16a34a; background: #f0fdf4; }
.w360-tools-grid a:nth-child(6) i, .w360-tools-grid a:nth-child(8) i { color: #7c3aed; background: #f5f3ff; }
.w360-tools-grid span { font-size: 11px; line-height: 1.2; }

.w360-chart-box { height: 260px; position: relative; border: 1px solid var(--w360-line); border-radius: 8px; padding: 12px; background: #fff; margin-top: 10px; }
.w360-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.w360-table th, .w360-table td { border-bottom: 1px solid var(--w360-line); padding: 12px 10px; vertical-align: middle; }
.w360-table th { color: var(--w360-muted); font-weight: 800; background: #f8fbff; }
.w360-table img { width: 32px; height: 32px; }
.w360-keyvals { display: grid; gap: 10px; }
.w360-keyvals div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--w360-line); padding-bottom: 9px; }
.w360-keyvals span { color: var(--w360-muted); }
.w360-keyvals strong { color: var(--w360-text); }
.w360-location-card { display: grid; grid-template-columns: 210px 1fr 170px 150px; gap: 22px; align-items: center; }
.w360-location-photo { height: 150px; border-radius: 8px; background: url('https://images.unsplash.com/photo-1528127269322-539801943592?auto=format&fit=crop&w=600&q=80') center/cover; }
.w360-location-card h2 { font-size: 24px; font-weight: 850; margin: 0; }
.w360-location-card p { color: var(--w360-muted); margin: 5px 0; }
.w360-location-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 12px 0 0; }
.w360-location-card dt { color: var(--w360-muted); }
.w360-location-card dd { margin: 0; font-weight: 800; }
.w360-location-card img { width: 150px; }
.w360-summary-temp { font-size: 52px; font-weight: 850; text-align: right; }
.w360-summary-temp span { display: block; font-size: 14px; color: var(--w360-muted); font-weight: 600; }

.w360-long-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.w360-long-layout > * { min-width: 0; }
.w360-long-summary { background: #fff; border: 1px solid var(--w360-line); border-radius: var(--w360-radius); box-shadow: var(--w360-shadow); padding: 18px; margin-bottom: 14px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 150px 150px; gap: 22px; align-items: center; overflow: hidden; }
.w360-long-summary h2 { font-size: 24px; font-weight: 850; margin: 0; }
.w360-long-summary p { margin: 6px 0; color: var(--w360-muted); }
.w360-long-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 12px 0 0; }
.w360-long-summary dt { color: var(--w360-muted); }
.w360-long-summary dd { margin: 0; font-weight: 800; }
.w360-long-summary img { width: 140px; }
.w360-long-tabs { padding-bottom: 12px; }
.w360-long-tabs .w360-tabs { margin-bottom: 14px; border-bottom: 1px solid var(--w360-line); gap: 0; }
.w360-long-tabs .w360-tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--w360-text);
  padding: 11px 18px;
  position: relative;
  box-shadow: none;
}
.w360-long-tabs .w360-tabs button.active {
  background: transparent;
  color: var(--w360-primary);
  border-color: transparent;
}
.w360-long-tabs .w360-tabs button.active:after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--w360-primary);
}
.w360-long-tabs .w360-calendar-tools { margin-bottom: 0; }
.w360-long-tabs .w360-calendar-tools button.active {
  background: var(--w360-primary);
  color: #fff;
  border-color: var(--w360-primary);
}
.w360-long-tabs .w360-calendar-tools input { width: auto; min-width: 220px; margin-left: auto; }
.w360-period-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.w360-period-grid > div { border: 1px solid var(--w360-line); border-radius: 8px; padding: 16px; background: #fff; min-height: 210px; display: grid; align-content: start; gap: 7px; }
.w360-period-grid strong, .w360-period-grid span, .w360-period-grid p, .w360-period-grid small { display: block; }
.w360-period-grid span, .w360-period-grid p, .w360-period-grid small { color: var(--w360-muted); }
.w360-period-grid img { width: 56px; height: 56px; }
.w360-period-grid b { font-size: 26px; color: var(--w360-text); }
.w360-long-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.w360-long-stat-grid > div { border: 1px solid var(--w360-line); border-radius: 8px; padding: 14px; background: #fff; }
.w360-long-stat-grid span, .w360-long-stat-grid small { display: block; color: var(--w360-muted); font-size: 12px; }
.w360-long-stat-grid strong { display: block; color: var(--w360-text); font-size: 28px; line-height: 1.1; margin: 7px 0; }
.w360-note { margin: 12px 0 0; color: var(--w360-muted); font-size: 12px; }
.w360-pollutant-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0; color: var(--w360-muted); font-size: 11px; text-align: center; }
.w360-pollutant-row b { display: block; color: var(--w360-text); font-size: 16px; margin-top: 4px; }
.w360-long-tips { display: grid; gap: 12px; }
.w360-long-tips > div { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: center; }
.w360-long-tips > div > :first-child { grid-row: span 2; font-size: 24px; }
.w360-long-tips strong { display: block; }
.w360-long-tips span { display: block; color: var(--w360-muted); font-size: 12px; }

.w360-aqi-hero { display: grid; grid-template-columns: 1fr 360px; gap: 20px; background: linear-gradient(90deg,#fff,#f4fbf2); }
.w360-aqi-main { font-size: 78px; font-weight: 850; color: #f5a400; line-height: 1; }
.w360-aqi-main span { display: inline-block; font-size: 18px; color: var(--w360-text); margin-left: 12px; }
.w360-pollutants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w360-pollutants div { border: 1px solid var(--w360-line); border-radius: 8px; padding: 13px; background: rgba(255,255,255,.75); text-align: center; }
.w360-pollutants strong { display: block; font-size: 26px; color: #16a34a; }
.w360-donut, .w360-gauge { width: 180px; height: 180px; margin: 20px auto; display: grid; place-items: center; text-align: center; border-radius: 50%; background: conic-gradient(#22c55e 0 38%,#facc15 38% 68%,#f97316 68% 82%,#ef4444 82% 100%); color: var(--w360-text); font-weight: 800; position: relative; }
.w360-donut:after, .w360-gauge:after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: #fff; }
.w360-donut *, .w360-gauge * { position: relative; z-index: 1; }
.w360-gauge { font-size: 46px; }
.w360-gauge span { display: block; font-size: 14px; }

.w360-aqi-tabs { display: flex; align-items: center; gap: 28px; margin: -4px 0 16px; border-bottom: 1px solid var(--w360-line); overflow-x: auto; scrollbar-width: none; }
.w360-aqi-tabs::-webkit-scrollbar { display: none; }
.w360-aqi-tabs a { position: relative; flex: 0 0 auto; padding: 12px 0 13px; color: #52647f; text-decoration: none; font-weight: 750; font-size: 14px; }
.w360-aqi-tabs a.active { color: var(--w360-primary); }
.w360-aqi-tabs a.active:after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 999px 999px 0 0; background: var(--w360-primary); }
.w360-aqi-dashboard .w360-panel { position: relative; border-radius: 10px; }
.w360-aqi-top-layout { margin-bottom: 14px; }
.w360-aqi-hero { position: relative; grid-template-columns: minmax(0, 1.1fr) minmax(160px, .85fr) minmax(280px, .95fr); align-items: stretch; gap: 18px; padding: 22px; background: linear-gradient(100deg,#fff 0%,#fff 52%,#f1fbf3 100%); min-height: 255px; }
.w360-aqi-copy { display: flex; flex-direction: column; min-width: 0; }
.w360-aqi-copy h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; margin-bottom: 3px; }
.w360-aqi-copy h2 i { color: #94a3b8; font-size: 18px; }
.w360-aqi-copy small { color: var(--w360-muted); }
.w360-aqi-main { margin-top: 22px; color: #f0a400; }
.w360-aqi-main span { vertical-align: middle; }
.w360-aqi-bar { position: relative; margin: 16px 0 12px; overflow: visible; }
.w360-aqi-bar b { position: absolute; top: -4px; width: 10px; height: 16px; border-radius: 999px; background: #facc15; box-shadow: 0 0 0 3px rgba(255,255,255,.92), 0 6px 12px rgba(7,25,72,.16); transform: translateX(-50%); }
.w360-aqi-copy p { max-width: 520px; color: #52647f; margin: 0 0 10px; }
.w360-aqi-plant { min-height: 210px; border-radius: 10px; background: radial-gradient(circle at 50% 55%, rgba(34,197,94,.35), transparent 34%), linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.35)), url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=600&q=70') center/cover; }
.w360-aqi-hero .w360-pollutants { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: stretch; }
.w360-aqi-hero .w360-pollutants div { display: flex; flex-direction: column; justify-content: center; min-height: 86px; border-radius: 10px; background: rgba(255,255,255,.9); }
.w360-aqi-hero .w360-pollutants span { color: #16a34a; font-weight: 800; }
.w360-aqi-legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 12px; color: #52647f; font-size: 12px; font-weight: 700; }
.w360-aqi-legend i { display: inline-block; width: 16px; height: 6px; margin-right: 6px; border-radius: 999px; vertical-align: middle; }
.w360-aqi-legend .good { background: #22c55e; }
.w360-aqi-legend .medium { background: #facc15; }
.w360-aqi-legend .bad { background: #f97316; }
.w360-aqi-legend .danger { background: #ef4444; }
.w360-aqi-legend .purple { background: #7c3aed; }
.w360-aqi-legend .maroon { background: #7f1d1d; }
.w360-aqi-map-full { overflow: hidden; }
.w360-aqi-map-full .w360-panel-head { margin-bottom: 8px; }
.w360-aqi-fullscreen-btn { position: absolute; right: 18px; top: 16px; z-index: 8; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--w360-line); border-radius: 8px; background: #fff; color: #0b4dcc; padding: 9px 14px; font-weight: 800; box-shadow: 0 8px 20px rgba(7,25,72,.12); }
.w360-aqi-leaflet-wrap { position: relative; }
.w360-aqi-leaflet-map { height: 470px; overflow: hidden; border: 1px solid var(--w360-line); border-radius: 10px; background: #e9f0f7; z-index: 1; }
.w360-aqi-leaflet-map .leaflet-control-container { font-family: inherit; }
.w360-aqi-leaflet-map .leaflet-control-zoom a { color: #071948; font-weight: 900; }
.w360-aqi-leaflet-wrap.is-fullscreen { position: fixed; inset: 18px; z-index: 9999; border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.45); background: #fff; }
.w360-aqi-leaflet-wrap.is-fullscreen .w360-aqi-leaflet-map { height: 100%; border-radius: 12px; }
.w360-aqi-leaflet-marker { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 7px 18px rgba(7,25,72,.24); border: 2px solid rgba(255,255,255,.9); position: relative; }
.w360-aqi-leaflet-marker:before { content: ""; position: absolute; inset: -8px; border-radius: inherit; background: currentColor; opacity: .16; z-index: -1; }
.w360-aqi-leaflet-marker.good { background: #4ade80; }
.w360-aqi-leaflet-marker.medium { background: #f5b400; }
.w360-aqi-leaflet-marker.bad { background: #f97316; }
.w360-aqi-leaflet-marker.danger { background: #ef4444; }
.w360-aqi-dashboard .w360-map.hanoi { height: 430px; background: linear-gradient(145deg,#f6fbff,#dcecfb); border-radius: 9px; }
.w360-aqi-dashboard .w360-map.hanoi:before { background-image: linear-gradient(rgba(120,148,184,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(120,148,184,.24) 1px, transparent 1px); background-size: 72px 72px; opacity: .42; }
.w360-aqi-dashboard .w360-map.hanoi .w360-map-shape { display: none; }
.w360-aqi-dashboard .w360-map-pin { border: 0; background: #fbbf24; color: #fff; min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; box-shadow: 0 8px 18px rgba(7,25,72,.16); }
.w360-aqi-dashboard .w360-map-pin:nth-of-type(2n) { background: #4ade80; }
.w360-aqi-dashboard .w360-map-pin:nth-of-type(3n) { background: #22c55e; }
.w360-aqi-dashboard .w360-map-pin:after { content: ""; position: absolute; inset: -8px; border-radius: 999px; background: currentColor; opacity: .12; z-index: -1; }
.w360-aqi-map-full .w360-map-legend { display: none; }
.w360-aqi-wide-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .9fr); gap: 14px; align-items: stretch; }
.w360-aqi-wide-row.three { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(280px, .9fr); }
.w360-aqi-wide-row.bottom { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.w360-aqi-wide-row .w360-panel { min-width: 0; }
.w360-aqi-chart-tabs { position: absolute; right: 18px; top: 16px; z-index: 2; display: flex; gap: 8px; }
.w360-aqi-chart-tabs button { border: 1px solid var(--w360-line); border-radius: 8px; background: #fff; color: #52647f; padding: 7px 12px; font-weight: 800; }
.w360-aqi-chart-tabs button.active { background: var(--w360-primary); border-color: var(--w360-primary); color: #fff; }
.w360-aqi-dust { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; align-items: center; }
.w360-aqi-dust .w360-donut { margin: 0 auto; }
.w360-aqi-dust .w360-donut span,
.w360-aqi-dust .w360-donut strong { position: relative; z-index: 1; display: block; }
.w360-aqi-forecast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.w360-aqi-forecast div { min-height: 150px; border: 0; border-radius: 10px; padding: 10px; text-align: center; background: #fff; }
.w360-aqi-forecast span, .w360-aqi-forecast small { display: block; color: #52647f; }
.w360-aqi-forecast strong { display: block; margin: 8px 0 0; font-size: 24px; color: #f0a400; }
.w360-aqi-forecast img { width: 44px; height: 44px; margin-top: 4px; }
.w360-aqi-trend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.w360-aqi-trend-grid div { border: 1px solid var(--w360-line); border-radius: 9px; padding: 11px; background: #fff; }
.w360-aqi-trend-grid strong { display: block; color: #16a34a; font-size: 20px; }
.w360-aqi-trend-grid span { color: #52647f; font-size: 12px; }
.w360-aqi-guide tbody tr:nth-child(1) td:last-child { background: #effaf3; }
.w360-aqi-guide tbody tr:nth-child(2) td:last-child { background: #fff8df; }
.w360-aqi-guide tbody tr:nth-child(3) td:last-child { background: #fff1e8; }
.w360-aqi-guide tbody tr:nth-child(4) td:last-child { background: #fff1f2; }
.w360-aqi-gauge-card { text-align: center; }
.w360-aqi-gauge-card .w360-panel-head { text-align: left; }
.w360-aqi-gauge-card p { color: #52647f; margin: 0; }
.w360-aqi-subpage { display: grid; gap: 14px; }
.w360-aqi-city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.w360-aqi-city-grid a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; min-height: 70px; border: 1px solid var(--w360-line); border-radius: 9px; padding: 12px; text-decoration: none; color: var(--w360-text); background: #fff; }
.w360-aqi-city-grid a:hover { border-color: var(--w360-primary); box-shadow: 0 8px 18px rgba(15,111,255,.08); }
.w360-aqi-city-grid span { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w360-aqi-city-grid strong { grid-row: span 2; min-width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; }
.w360-aqi-city-grid strong.good { background: #22c55e; }
.w360-aqi-city-grid strong.medium { background: #f5b400; }
.w360-aqi-city-grid strong.bad { background: #f97316; }
.w360-aqi-city-grid strong.danger { background: #ef4444; }
.w360-aqi-city-grid small { color: #52647f; }

.w360-calendar-tools, .w360-filterbar, .w360-tabs { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.w360-calendar-tools button, .w360-calendar-tools .w360-cal-btn, .w360-calendar-tools select, .w360-tabs button, .w360-segments button { border: 1px solid var(--w360-line); background: #fff; color: var(--w360-text); border-radius: 8px; padding: 9px 16px; font-weight: 700; text-decoration: none; }
.w360-calendar-tools .w360-cal-title { margin-left: auto; font-weight: 850; color: var(--w360-text); }
.w360-lunar-tools { display: grid; grid-template-columns: auto 42px 42px minmax(140px, 1fr) minmax(110px, .7fr) auto; gap: 14px; padding: 18px !important; margin-bottom: 0; }
.w360-lunar-tools .w360-cal-btn { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding-inline: 14px; }
.w360-lunar-tools .w360-cal-btn:not(:first-child):not(.w360-view-mode) { width: 42px; padding: 0; }
.w360-lunar-tools select { height: 42px; min-width: 0; appearance: auto; }
.w360-lunar-tools .w360-view-mode { margin-left: auto; white-space: nowrap; }
.w360-good-toolbar { display: grid; grid-template-columns: 44px minmax(160px, 1fr) minmax(120px, .65fr) 44px auto; gap: 14px; align-items: center; margin-bottom: 18px; }
.w360-good-toolbar .w360-cal-btn,
.w360-good-toolbar select { height: 44px; border: 1px solid var(--w360-line); border-radius: 8px; background: #fff; color: var(--w360-text); font-weight: 800; }
.w360-good-toolbar .w360-cal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; cursor: pointer; }
.w360-good-toolbar select { padding: 0 16px; appearance: auto; }
.w360-good-toolbar .w360-good-help { margin-left: auto; min-width: 124px; }
.w360-good-calendar-card { padding: 0; overflow: hidden; }
.w360-good-calendar-card .w360-calendar { border: 0; border-radius: 0; }
.w360-good-calendar-card .w360-calendar > b { background: #fff; }
.w360-good-calendar-card .w360-calendar > button.good { background: linear-gradient(135deg, #f6fff8 0%, #fff 58%); }
.w360-good-calendar-card .w360-calendar > button.warn { background: linear-gradient(135deg, #fffaf0 0%, #fff 58%); }
.w360-good-calendar-card .w360-calendar > button.bad,
.w360-good-calendar-card .w360-calendar > button.very-bad { background: linear-gradient(135deg, #fff7f8 0%, #fff 58%); }
.w360-good-calendar-card .w360-calendar > button.selected { background: #effaf3; color: #16a34a; box-shadow: inset 0 0 0 2px rgba(22, 163, 74, .55); }
.w360-good-calendar-card .w360-calendar > button.selected span,
.w360-good-calendar-card .w360-calendar > button.selected small { color: #166534; }
.w360-tabs button.active, .w360-segments button.active { background: var(--w360-primary); color: #fff; border-color: var(--w360-primary); }
.w360-calendar { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--w360-line); border-radius: 8px; overflow: hidden; }
.w360-calendar-tools { grid-column: 1 / -1; padding: 14px; border-bottom: 1px solid var(--w360-line); }
.w360-calendar > b { text-align: center; padding: 14px; background: #f8fbff; border-bottom: 1px solid var(--w360-line); }
.w360-calendar > div:not(.w360-calendar-tools), .w360-calendar > a { min-height: 88px; border-right: 1px solid var(--w360-line); border-bottom: 1px solid var(--w360-line); padding: 13px; position: relative; color: var(--w360-text); text-decoration: none; }
.w360-calendar strong { display: block; font-size: 24px; }
.w360-calendar span { color: var(--w360-muted); }
.w360-calendar small { display: block; margin-top: 6px; color: #7b8cab; font-size: 11px; }
.w360-calendar > button { min-height: 88px; border: 0; border-right: 1px solid var(--w360-line); border-bottom: 1px solid var(--w360-line); padding: 13px; position: relative; color: var(--w360-text); text-align: left; background: #fff; cursor: pointer; }
.w360-calendar i { position: absolute; right: 14px; bottom: 14px; width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; }
.w360-lunar-tools .w360-cal-btn i { position: static; width: auto; height: auto; border-radius: 0; background: transparent; color: currentColor; font-size: 15px; line-height: 1; display: inline-block; }
.w360-lunar-tools .w360-cal-btn:not(:first-child):not(.w360-view-mode) i { font-size: 18px; }
.w360-calendar .good i { background: #16a34a; }
.w360-calendar .bad i { background: #ef4444; }
.w360-calendar .very-bad i { background: #64748b; }
.w360-calendar .selected { background: var(--w360-primary); color: #fff; border-radius: 8px; }
.w360-calendar .selected span, .w360-calendar .selected small { color: #eaf3ff; }
.w360-calendar .today:not(.selected) { box-shadow: inset 0 0 0 2px rgba(15, 111, 255, .35); }
.w360-calendar .muted { color: #a9b5cc; background: #fbfdff; }
.w360-calendar.is-list-view { grid-template-columns: 1fr; }
.w360-calendar.is-list-view > b,
.w360-calendar.is-list-view > .muted { display: none; }
.w360-calendar.is-list-view > button[data-lunar-day] { min-height: 64px; display: grid; grid-template-columns: 54px 90px 1fr 14px; gap: 14px; align-items: center; text-align: left; }
.w360-calendar.is-list-view > button[data-lunar-day] strong { font-size: 22px; }
.w360-calendar.is-list-view > button[data-lunar-day] small { margin-top: 0; }
.w360-legend { display: flex; gap: 22px; justify-content: center; color: var(--w360-muted); margin-top: 14px; }
.w360-legend span:before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #64748b; margin-right: 7px; }
.w360-legend .good:before { background: #16a34a; }
.w360-legend .warn:before { background: #f59e0b; }
.w360-legend .bad:before { background: #ef4444; }
.w360-lunar-date { font-size: 56px; font-weight: 850; color: #16a34a; }
.w360-lunar-date span { display: inline-block; margin-left: 8px; font-size: 14px; text-transform: uppercase; }
.w360-lunar-solar { color: var(--w360-muted); font-weight: 750; margin-bottom: 8px; }
.good-box { background: #effaf3; color: #166534; }
.bad-box { background: #fff1f2; color: #b91c1c; }
.w360-tool-row > a { min-width: 150px; padding: 20px 12px; font-weight: 800; text-decoration: none; color: var(--w360-text); }
.w360-lunar-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; overflow: visible; }
.w360-lunar-quick > a { min-width: 0; min-height: 126px; padding: 22px 14px; display: grid; justify-items: center; align-content: center; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.w360-lunar-quick > a:hover { transform: translateY(-2px); border-color: rgba(15,111,255,.35); box-shadow: 0 12px 26px rgba(15, 111, 255, .12); }
.w360-tool-row > a i { display: block; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #eef5ff; color: var(--w360-primary); margin-bottom: 10px; font-size: 20px; }
.w360-lunar-quick > a:nth-child(1) i { color: #0f6fff; background: #e8f1ff; }
.w360-lunar-quick > a:nth-child(2) i { color: #ef4444; background: #ffe8ed; }
.w360-lunar-quick > a:nth-child(3) i { color: #2563eb; background: #e8f1ff; }
.w360-lunar-quick > a:nth-child(4) i { color: #0f6fff; background: #edf5ff; }
.w360-lunar-quick > a:nth-child(5) i { color: #16a34a; background: #eaf8ef; }
.w360-tool-row > a strong, .w360-tool-row > a span { display: block; }
.w360-tool-row > a span { color: var(--w360-muted); font-weight: 600; margin-top: 4px; }
.w360-lunar-task-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.w360-lunar-task-strip span { border: 1px solid var(--w360-line); border-radius: 10px; padding: 14px 10px; display: grid; gap: 8px; justify-items: center; color: var(--w360-text); font-weight: 800; background: #fff; }
.w360-lunar-task-strip i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #eaf8ef; color: #16a34a; font-size: 20px; }
.w360-lunar-day-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.w360-lunar-day-list a { border: 1px solid var(--w360-line); border-radius: 10px; padding: 14px; color: var(--w360-text); text-decoration: none; display: grid; gap: 4px; background: #fff; }
.w360-lunar-day-list strong { font-size: 28px; color: var(--w360-primary); }
.w360-lunar-day-list span { font-weight: 800; }
.w360-lunar-day-list small { color: var(--w360-muted); }
.w360-lunar-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.w360-lunar-tool-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1.2fr); gap: 14px; align-items: end; }
.w360-lunar-tool-form label { display: grid; gap: 8px; color: var(--w360-muted); font-weight: 800; }
.w360-lunar-tool-form input { border: 1px solid var(--w360-line); border-radius: 8px; padding: 12px 14px; color: var(--w360-text); }
.w360-lunar-tool-form > div { border: 1px solid var(--w360-line); border-radius: 10px; padding: 13px 15px; background: #f8fbff; display: grid; gap: 5px; }
.w360-lunar-tool-form > div span { color: var(--w360-muted); }

.w360-province-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.w360-province-grid a { border: 1px solid var(--w360-line); border-radius: 8px; padding: 13px; text-decoration: none; color: var(--w360-text); display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.w360-province-grid span { color: var(--w360-muted); }
.w360-filterbar input, .w360-filterbar select, .w360-form-stack input, .w360-form-stack select, .w360-panel input, .w360-panel textarea { border: 1px solid var(--w360-line); border-radius: 8px; padding: 11px 13px; width: 100%; }
.w360-filterbar input { max-width: 420px; }
.w360-filterbar select { max-width: 210px; margin-left: auto; }
.w360-filter-empty { margin: 0 0 14px; padding: 14px 16px; border: 1px dashed var(--w360-line); border-radius: 8px; color: var(--w360-muted); background: #fff; }
.w360-rank { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.w360-mini-bar { width: 150px; height: 6px; border-radius: 99px; background: #e5eefb; }
.w360-mini-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#06b6d4,#9333ea); }
.w360-rain-layout { align-items: start; }
.w360-rain-layout main { min-width: 0; }
.w360-rain-tabs { gap: 9px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.w360-rain-tabs::-webkit-scrollbar { display: none; }
.w360-rain-tabs button { flex: 0 0 auto; padding-inline: 18px; }
.w360-rain-tabs.small button { padding: 8px 14px; font-size: 13px; }
.w360-rain-map-panel { overflow: hidden; }
.w360-rain-map-wrap { position: relative; min-height: 480px; border-radius: 10px; overflow: hidden; background: #eaf3fb; border: 1px solid var(--w360-line); }
.w360-rain-map { position: absolute; inset: 0; z-index: 1; min-height: 480px; }
.w360-rain-map .leaflet-control-zoom a { color: #071948; font-weight: 900; }
.w360-rain-map .leaflet-popup-content { color: #071948; font-weight: 700; }
.w360-rain-legend { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: 500; min-width: 92px; display: grid; gap: 8px; padding: 12px; border-radius: 8px; color: #52647f; background: rgba(255,255,255,.94); box-shadow: 0 12px 28px rgba(7,25,72,.16); font-size: 12px; font-weight: 800; }
.w360-rain-legend strong { color: var(--w360-text); }
.w360-rain-legend i { display: inline-block; width: 18px; height: 18px; margin-right: 8px; border-radius: 5px; vertical-align: -4px; border: 1px solid rgba(7,25,72,.08); }
.w360-rain-leaflet-icon { background: transparent; border: 0; }
.w360-rain-leaflet-icon span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 7px; border-radius: 999px; border: 2px solid rgba(255,255,255,.92); color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 8px 20px rgba(7,25,72,.24); }
.w360-rain-stats { grid-template-columns: repeat(5, minmax(0,1fr)); }
.w360-rain-stats .w360-metric strong em { display: block; margin-top: 3px; color: #52647f; font-size: 12px; font-style: normal; font-weight: 700; }
.w360-rain-table td:nth-child(4) { min-width: 220px; }
.w360-mini-bar.rain { display: inline-block; width: 130px; margin-right: 10px; vertical-align: middle; }
.w360-rain-table td:nth-child(4) span { color: #52647f; font-weight: 700; }
.w360-rain-forecast,
[data-rain-forecast-wrap] { min-width: 0; }
[data-rain-forecast-wrap] { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.w360-rain-forecast { min-width: 760px; }
.w360-rain-forecast td { text-align: center; }
.w360-rain-forecast i { color: #2f80ed; }
.w360-filterbar.compact { display: grid; grid-template-columns: minmax(0, 1fr) 42px; margin: 0; }
.w360-filterbar.compact input { max-width: none; }
.w360-filterbar.compact .w360-btn { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.w360-rain-search-box { position: relative; }
.w360-rain-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; display: grid; gap: 5px; max-height: 300px; overflow: auto; padding: 8px; border: 1px solid var(--w360-line); border-radius: 10px; background: #fff; box-shadow: 0 18px 42px rgba(7,25,72,.16); }
.w360-rain-search-results[hidden] { display: none; }
.w360-rain-search-results button { width: 100%; border: 0; border-radius: 8px; background: transparent; color: var(--w360-text); display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; text-align: left; cursor: pointer; }
.w360-rain-search-results button:hover { background: #eef5ff; color: var(--w360-primary); }
.w360-rain-search-results i { color: var(--w360-primary); }
.w360-rain-search-results span { font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w360-rain-search-results strong { color: #52647f; font-size: 12px; }
.w360-rain-search-results .empty { padding: 10px; color: var(--w360-muted); font-weight: 700; }
.w360-rain-row-highlight { animation: w360-rain-pulse 1.6s ease 1; background: #eef5ff !important; }
@keyframes w360-rain-pulse { 0% { box-shadow: inset 0 0 0 999px rgba(15,111,255,.16); } 100% { box-shadow: inset 0 0 0 999px rgba(15,111,255,0); } }
.w360-note { margin: 12px 0 0; color: var(--w360-muted); font-size: 13px; }
.w360-alert-stack { display: grid; gap: 12px; }
.w360-alert-stack > div { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; padding: 14px; border-radius: 8px; background: #fff7ed; border: 1px solid #fed7aa; }
.w360-alert-stack i { color: #ef4444; font-size: 22px; }
.w360-alert-stack span { color: #ef4444; background: #fee2e2; border-radius: 99px; padding: 3px 8px; font-size: 12px; }
.w360-alert-stack p { grid-column: 2 / -1; margin: 0; color: var(--w360-muted); font-size: 12px; }
.w360-alert-map-row { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); align-items: stretch; }
.w360-alert-map-panel { position: relative; padding: 0; }
.w360-alert-map-panel .w360-alert-map-legend { position: absolute; left: 18px; bottom: 18px; z-index: 500; display: grid; gap: 7px; min-width: 160px; padding: 12px; border-radius: 9px; background: rgba(255,255,255,.94); box-shadow: 0 10px 24px rgba(7,25,72,.14); color: #52647f; font-size: 12px; font-weight: 700; }
.w360-alert-map-legend strong { color: var(--w360-text); margin-bottom: 2px; }
.w360-alert-map-legend small { color: #64748b; font-size: 10px; margin-top: 2px; }
.w360-alert-map-legend i { display: inline-block; width: 16px; height: 16px; margin-right: 8px; border-radius: 4px; vertical-align: -3px; }
.w360-alert-map-legend .danger { background: #ef4444; }
.w360-alert-map-legend .medium { background: #f59e0b; }
.w360-alert-map-legend .light { background: #facc15; }
.w360-alert-map-legend .safe { background: #83c77b; }
.w360-alert-leaflet-map { height: 430px; border-radius: 10px; overflow: hidden; border: 1px solid var(--w360-line); background: #eaf2fb; }
.w360-alert-leaflet-map .leaflet-control-zoom a { color: #071948; font-weight: 900; }
.w360-alert-filters { padding-bottom: 4px; }
.w360-alert-region-list { display: grid; gap: 10px; }
.w360-alert-region-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 12px; border: 1px solid var(--w360-line); border-radius: 9px; background: #fff; }
.w360-alert-region-list span { color: #ef4444; font-weight: 850; }
.w360-alert-region-list small { grid-column: 1 / -1; color: #52647f; }
.w360-alert-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.w360-alert-timeline { display: grid; gap: 12px; }
.w360-alert-timeline div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; background: #f8fbff; border: 1px solid var(--w360-line); }
.w360-alert-timeline b { color: var(--w360-primary); }
.w360-alert-timeline span { color: #52647f; }

.w360-form-stack { display: grid; gap: 18px; }
.w360-form-stack label { display: grid; gap: 8px; font-weight: 800; }
.w360-checks { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; color: var(--w360-muted); font-weight: 600; }
.w360-swatches { display: flex; gap: 12px; }
.w360-swatches i { width: 32px; height: 32px; border-radius: 50%; background: var(--w360-primary); }
.w360-swatches i:nth-child(2){background:#7c3aed}.w360-swatches i:nth-child(3){background:#22c55e}.w360-swatches i:nth-child(4){background:#f97316}.w360-swatches i:nth-child(5){background:#111827}
.w360-widget-tabs { margin-bottom: 14px; }
.w360-widget-controls h2,
.w360-widget-center h2 { font-size: 18px; margin-bottom: 18px; }
.w360-widget-controls .w360-form-stack > div { display: grid; gap: 10px; }
.w360-widget-controls strong { font-size: 14px; color: var(--w360-text); }
.w360-widget-location { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; border: 1px solid var(--w360-line); border-radius: 8px; background: #fff; overflow: hidden; }
.w360-widget-location input { border: 0 !important; padding-inline: 0 !important; }
.w360-widget-location i { color: #48679f; text-align: center; }
.w360-widget-location button { width: 34px; height: 34px; border: 0; background: transparent; color: #48679f; }
.w360-widget-city-field { position: relative; }
.w360-widget-city-menu { position: absolute; z-index: 40; left: 0; right: 0; top: 74px; max-height: 280px; overflow: auto; padding: 8px; border: 1px solid var(--w360-line); border-radius: 10px; background: #fff; box-shadow: 0 18px 42px rgba(7, 25, 72, .16); display: grid; gap: 4px; }
.w360-widget-city-menu[hidden] { display: none; }
.w360-widget-city-menu button { width: 100%; border: 0; border-radius: 8px; background: transparent; color: var(--w360-text); display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; text-align: left; cursor: pointer; }
.w360-widget-city-menu button:hover { background: #eef5ff; color: var(--w360-primary); }
.w360-widget-city-menu i { color: var(--w360-primary); }
.w360-widget-city-menu span { font-weight: 850; }
.w360-widget-city-menu small { color: var(--w360-muted); }
.w360-widget-field-note { color: var(--w360-muted); font-size: 12px; font-weight: 600; }
.w360-widget-size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.w360-widget-size-grid label { min-height: 68px; border: 1px solid var(--w360-line); border-radius: 8px; padding: 11px; display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 7px; cursor: pointer; }
.w360-widget-size-grid label:has(input:checked) { border-color: var(--w360-primary); background: #eef5ff; }
.w360-widget-size-grid input { width: auto !important; margin-top: 2px; }
.w360-widget-size-grid small { display: block; color: var(--w360-muted); margin-top: 5px; font-size: 11px; }
.w360-widget-checks label { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #48679f; }
.w360-widget-checks input { width: auto !important; accent-color: var(--w360-primary); }
.w360-widget-theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.w360-widget-theme-grid button { min-height: 76px; border: 1px solid var(--w360-line); border-radius: 8px; padding: 9px; background: #fff; color: var(--w360-text); display: grid; gap: 6px; cursor: pointer; }
.w360-widget-theme-grid button.active { border-color: var(--w360-primary); box-shadow: 0 0 0 3px rgba(15,111,255,.1); }
.w360-widget-theme-grid span { border-radius: 7px; min-height: 42px; color: #fff; display: grid; place-items: center; font-weight: 900; }
.w360-widget-theme-grid .gradient span { background: linear-gradient(135deg,#0f6fff,#33c7f4); }
.w360-widget-theme-grid .minimal span { background: #fff; color: #0b1b46; border: 1px solid var(--w360-line); }
.w360-widget-theme-grid .glass span { background: rgba(15,111,255,.16); color: #0f6fff; backdrop-filter: blur(8px); }
.w360-widget-theme-grid .dark span { background: #111827; }
.w360-widget-swatches button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--swatch); cursor: pointer; }
.w360-widget-swatches button.active { outline: 3px solid rgba(15,111,255,.18); box-shadow: inset 0 0 0 2px #fff; }
.w360-widget-range { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 12px; color: var(--w360-muted); }
.w360-widget-range input { accent-color: var(--w360-primary); }
.w360-widget-inline { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px !important; }
.w360-widget-inline label { display: grid; gap: 9px; }
.w360-widget-unit { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.w360-widget-unit button { margin: 0; }
.w360-widget-create { width: 100%; justify-content: center; }
.w360-widget-note { margin: -6px 0 0; color: var(--w360-muted); text-align: center; font-size: 12px; }
.w360-widget-center { display: grid; gap: 14px; }
.w360-widget-preview { min-height: 520px; color: #fff; background: linear-gradient(145deg,var(--widget-color,#0f6fff),#22c7ee); border-radius: var(--widget-radius,16px); padding: 28px; position: relative; overflow: hidden; box-shadow: 0 18px 42px rgba(15,111,255,.2); }
.w360-widget-preview [hidden] { display: none !important; }
.w360-widget-preview.size-small { max-width: 420px; margin-inline: auto; }
.w360-widget-preview.size-medium { max-width: 520px; margin-inline: auto; }
.w360-widget-preview.size-large { max-width: 100%; }
.w360-widget-preview.minimal { background: #fff; color: #0b1b46; border: 1px solid var(--w360-line); box-shadow: var(--w360-shadow); }
.w360-widget-preview.glass { background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(226,242,255,.42)); color: #0b1b46; border: 1px solid rgba(255,255,255,.72); backdrop-filter: blur(12px); }
.w360-widget-preview.dark { background: linear-gradient(145deg,#111827,#020817); color: #fff; box-shadow: 0 18px 42px rgba(2,8,23,.28); }
.w360-widget-preview-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 28px; }
.w360-widget-preview h3 { font-size: 18px; margin: 0; font-weight: 750; }
.w360-widget-current { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 18px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.34); }
.w360-widget-preview.minimal .w360-widget-current,
.w360-widget-preview.glass .w360-widget-current { border-bottom-color: #dce6f7; }
.w360-widget-current strong { display: block; font-size: 72px; line-height: 1; font-weight: 900; }
.w360-widget-current sup { font-size: 28px; }
.w360-widget-current p { margin: 10px 0 12px; font-size: 18px; font-weight: 800; }
.w360-widget-current small { opacity: .9; }
.w360-widget-current img { width: 168px; justify-self: end; }
.w360-widget-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.w360-widget-preview.minimal .w360-widget-metrics,
.w360-widget-preview.glass .w360-widget-metrics { border-bottom-color: #dce6f7; }
.w360-widget-metrics span { display: grid; gap: 5px; font-size: 11px; }
.w360-widget-metrics label { margin: 0; color: inherit; font-weight: 700; }
.w360-widget-metrics em { font-style: normal; font-size: 15px; font-weight: 850; }
.w360-widget-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; text-align: center; }
.w360-widget-days span { display: grid; gap: 6px; border-right: 1px solid rgba(255,255,255,.28); }
.w360-widget-days span:last-child { border-right: 0; }
.w360-widget-days small,
.w360-widget-days i { opacity: .86; font-style: normal; }
.w360-widget-days b { font-size: 40px; line-height: 1; }
.w360-widget-days b img { width: 54px; height: 54px; object-fit: contain; }
.w360-widget-days em { font-style: normal; font-size: 28px; font-weight: 900; }
.w360-widget-preview footer { text-align: center; margin-top: 28px; }
.w360-widget-preview footer b { color: #fde047; }
.w360-embed-panel textarea { min-height: 158px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; resize: vertical; }
.w360-widget-side h2,
.w360-widget-faq h2,
.w360-widget-premium h2 { font-size: 18px; margin-bottom: 16px; }
.w360-widget-benefits { display: grid; gap: 18px; }
.w360-widget-benefits span { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.w360-widget-benefits i { color: #16a34a; font-size: 18px; }
.w360-widget-benefits strong,
.w360-widget-benefits small { display: block; }
.w360-widget-benefits strong,
.w360-widget-benefits small { grid-column: 2; min-width: 0; }
.w360-widget-benefits small { color: var(--w360-muted); margin-top: -4px; line-height: 1.4; }
.w360-widget-faq details { border-bottom: 1px solid var(--w360-line); padding: 13px 0; }
.w360-widget-faq summary { cursor: pointer; font-weight: 800; }
.w360-widget-faq p { color: var(--w360-muted); margin: 8px 0 0; }
.w360-widget-faq a { display: block; text-align: center; margin-top: 14px; color: var(--w360-primary); text-decoration: none; font-weight: 800; }
.w360-widget-premium h2 i { color: #f59e0b; }
.w360-widget-premium ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; color: #48679f; }
.w360-widget-premium li:before { content: "✓"; color: #16a34a; font-weight: 900; margin-right: 8px; }
.w360-widget-premium .w360-btn { width: 100%; justify-content: center; }
.w360-widget-why { margin-top: 18px; }
.w360-widget-why h2 { text-align: center; margin-bottom: 24px; }
.w360-widget-why > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.w360-widget-why span { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 14px; align-items: center; padding: 16px; border: 1px solid rgba(15,111,255,.12); border-radius: 14px; background: linear-gradient(135deg,#eff6ff,#ffffff); box-shadow: 0 12px 30px rgba(15,111,255,.08); }
.w360-widget-why i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #dbeafe; color: #0f6fff; font-size: 24px; box-shadow: inset 0 0 0 1px rgba(15,111,255,.12); }
.w360-widget-why strong,
.w360-widget-why small { display: block; }
.w360-widget-why i { grid-row: 1 / 3; }
.w360-widget-why strong { grid-column: 2; grid-row: 1; min-width: 0; line-height: 1.25; }
.w360-widget-why small { grid-column: 2; grid-row: 2; min-width: 0; color: var(--w360-muted); line-height: 1.45; }
.w360-widget-why span:nth-child(2) { background: linear-gradient(135deg,#ecfdf5,#ffffff); border-color: rgba(22,163,74,.16); box-shadow: 0 12px 30px rgba(22,163,74,.08); }
.w360-widget-why span:nth-child(2) i { background: #dcfce7; color: #16a34a; }
.w360-widget-why span:nth-child(3) { background: linear-gradient(135deg,#f5f3ff,#ffffff); border-color: rgba(124,58,237,.16); box-shadow: 0 12px 30px rgba(124,58,237,.08); }
.w360-widget-why span:nth-child(3) i { background: #ede9fe; color: #7c3aed; }
.w360-widget-why span:nth-child(4) { background: linear-gradient(135deg,#fff7ed,#ffffff); border-color: rgba(249,115,22,.16); box-shadow: 0 12px 30px rgba(249,115,22,.08); }
.w360-widget-why span:nth-child(4) i { background: #ffedd5; color: #f97316; }
.w360-panel textarea { min-height: 170px; font-family: monospace; font-size: 12px; }

.w360-chat-input { display: flex; border: 2px solid #7666ff; border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 16px; }
.w360-chat-input input { flex: 1; border: 0; padding: 18px; outline: none; }
.w360-chat-input button { width: 58px; border: 0; background: linear-gradient(135deg,#6d5dfc,#4b7dff); color: #fff; font-size: 20px; }
.w360-quick-prompts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.w360-quick-prompts button { border: 1px solid var(--w360-line); border-radius: 99px; background: #fff; padding: 8px 12px; color: var(--w360-text); }
.w360-message { max-width: 82%; margin-bottom: 18px; border-radius: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--w360-line); box-shadow: var(--w360-shadow); }
.w360-message.user { margin-left: auto; background: #edeaff; }
.w360-message.ai { margin-right: auto; }
.w360-message small { display: block; color: var(--w360-muted); text-align: right; }
.w360-message .w360-location-card { grid-template-columns: 1fr 130px; margin: 12px 0; box-shadow: none; }
.w360-chat-messages { min-height: 280px; max-height: 62vh; overflow-y: auto; padding-right: 6px; scroll-behavior: smooth; }
.w360-message ul { margin: 10px 0 0; padding-left: 20px; color: #48679f; }
.w360-message li + li { margin-top: 6px; }
.w360-message.is-typing { display: inline-flex; gap: 6px; align-items: center; min-width: 76px; }
.w360-typing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--w360-primary); animation: w360Typing 1s infinite ease-in-out; }
.w360-typing-dot:nth-child(2) { animation-delay: .15s; }
.w360-typing-dot:nth-child(3) { animation-delay: .3s; }
[data-ai-side-prompt] { cursor: pointer; }
@keyframes w360Typing { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.w360-news-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-bottom: 14px; }
.w360-news-hero article { min-height: 180px; border-radius: 8px; padding: 20px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: linear-gradient(rgba(2,15,45,.18),rgba(2,15,45,.78)), var(--news-bg) center/cover; box-shadow: 0 10px 24px rgba(15, 42, 92, .12); }
.w360-news-hero article > a { min-height: 100%; color: inherit; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.w360-news-hero article span,
.w360-articles article span,
.w360-featured-posts span { width: fit-content; border-radius: 6px; background: #1677ff; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 8px; }
.w360-news-hero > article { min-height: 380px; }
.w360-news-hero h2 { font-size: 28px; font-weight: 850; margin: 0; line-height: 1.18; }
.w360-news-hero > div { display: grid; gap: 14px; }
.w360-news-hero > div h2 { font-size: 18px; }
.w360-news-hero p,
.w360-news-hero small { margin: 0; color: rgba(255,255,255,.88); }
.w360-articles { display: grid; gap: 14px; }
.w360-articles article { display: grid; grid-template-columns: 170px 1fr 24px; gap: 18px; align-items: center; border-bottom: 1px solid var(--w360-line); padding-bottom: 14px; }
.w360-articles article > div { height: 110px; border-radius: 8px; background: linear-gradient(145deg,rgba(22,119,255,.1),rgba(2,15,45,.08)), var(--article-bg) center/cover; }
.w360-articles h3 { font-size: 18px; font-weight: 800; margin: 8px 0; }
.w360-articles h3 a { color: inherit; text-decoration: none; }
.w360-articles p { color: var(--w360-muted); margin: 0 0 8px; }
.w360-bookmark-btn { width: 30px; height: 34px; border: 0; background: transparent; color: #48679f; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.w360-bookmark-btn:hover,
.w360-bookmark-btn.is-active { background: #eef5ff; color: var(--w360-primary); }
.w360-featured-posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.w360-featured-posts a { color: inherit; text-decoration: none; }
.w360-featured-posts a > div { height: 120px; border-radius: 8px; padding: 10px; display: flex; align-items: flex-start; background: linear-gradient(rgba(2,15,45,.1),rgba(2,15,45,.35)), var(--article-bg) center/cover; margin-bottom: 10px; }
.w360-featured-posts strong { display: block; font-weight: 850; line-height: 1.3; }
.w360-featured-posts small { color: var(--w360-muted); }
.w360-newsletter-card { position: relative; overflow: hidden; background: linear-gradient(135deg, #eef5ff, #dfeeff); }
.w360-newsletter-card h2 { margin-bottom: 6px; }
.w360-newsletter-card p,
.w360-social-card p { margin: 0 0 14px; color: var(--w360-muted); font-size: 13px; }
.w360-newsletter-card > div { position: relative; z-index: 1; max-width: 78%; }
.w360-newsletter-card > i { position: absolute; right: 18px; top: 18px; font-size: 54px; color: #7fb0ff; opacity: .85; transform: rotate(-8deg); }
.w360-newsletter-form { display: grid; gap: 10px; }
.w360-newsletter-form input { background: #fff; }
.w360-newsletter-form .w360-btn { width: 100%; justify-content: center; }
.w360-social-card div { display: flex; gap: 18px; align-items: center; }
.w360-social-card a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #eef5ff; color: var(--w360-primary); text-decoration: none; font-size: 20px; }
.w360-social-card a:nth-child(2) { color: #ef4444; background: #fff1f2; }
.w360-social-card a:nth-child(3) { color: #111827; background: #f3f4f6; }
.w360-social-card a:nth-child(4) { color: #0284c7; background: #e0f2fe; }
.w360-video-featured { width: 100%; min-height: 170px; border: 0; border-radius: 8px; padding: 14px; color: #fff; text-align: left; display: grid; align-content: end; position: relative; overflow: hidden; cursor: pointer; background: linear-gradient(rgba(2,15,45,.18), rgba(2,15,45,.75)), var(--video-bg) center/cover; }
.w360-video-featured span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; }
.w360-video-featured span i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); background: rgba(255,255,255,.2); backdrop-filter: blur(4px); }
.w360-video-featured strong,
.w360-video-featured small { position: relative; z-index: 1; }
.w360-video-featured small { justify-self: end; margin-top: -18px; padding: 3px 6px; border-radius: 4px; background: rgba(2,15,45,.72); }
.w360-video-list { display: grid; gap: 12px; margin-top: 14px; }
.w360-video-list button { display: grid; grid-template-columns: 66px 1fr; gap: 10px; align-items: center; color: inherit; text-align: left; border: 0; background: transparent; padding: 0; cursor: pointer; }
.w360-video-list i { height: 44px; border-radius: 6px; background: var(--video-thumb) center/cover; }
.w360-video-list span { font-weight: 800; font-size: 13px; line-height: 1.35; }
.w360-video-list small { display: block; margin-top: 4px; color: var(--w360-muted); font-weight: 600; }
.w360-tags { display: flex; gap: 9px; flex-wrap: wrap; }
.w360-tags span,
.w360-tags a { border: 1px solid var(--w360-line); background: #fff; border-radius: 99px; padding: 8px 12px; color: var(--w360-text); font-weight: 750; font-size: 13px; text-decoration: none; }
.w360-tags a:hover { border-color: var(--w360-primary); color: var(--w360-primary); }
.w360-video-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(2, 15, 45, .72); }
.w360-video-modal.is-open { display: flex; }
.w360-video-modal > div { width: min(920px, 100%); background: #020817; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(2,15,45,.45); }
.w360-video-modal header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; color: #fff; }
.w360-video-modal header strong { font-size: 16px; }
.w360-video-modal button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; }
.w360-video-modal .w360-video-frame { aspect-ratio: 16 / 9; background: #000; }
.w360-video-modal iframe,
.w360-video-modal video { width: 100%; height: 100%; display: block; border: 0; }
.w360-single-post { max-width: 980px; margin: 0 auto 16px; }
.w360-breadcrumb { color: var(--w360-muted); margin: 0 0 12px; font-size: 14px; }
.w360-breadcrumb a { color: var(--w360-primary); text-decoration: none; }
.w360-single-post h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; font-weight: 900; margin: 0 0 14px; color: var(--w360-text); }
.w360-single-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--w360-muted); margin-bottom: 18px; }
.w360-single-meta .w360-bookmark-btn { margin-left: auto; border: 1px solid var(--w360-line); background: #fff; }
.w360-single-cover,
.w360-single-video { width: 100%; min-height: 430px; border: 0; border-radius: 12px; overflow: hidden; margin-bottom: 22px; background: #eef5ff; }
.w360-single-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.w360-single-cover.generated { background: var(--article-bg) center/cover; }
.w360-single-video { position: relative; cursor: pointer; display: grid; place-items: center; background: linear-gradient(rgba(2,15,45,.1),rgba(2,15,45,.45)), var(--single-video-bg) center/cover; }
.w360-single-video span { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 38px; background: rgba(15,111,255,.9); box-shadow: 0 18px 40px rgba(15,111,255,.32); }
.w360-single-content { color: #12305c; font-size: 17px; line-height: 1.8; }
.w360-single-content p { margin-bottom: 18px; }

.w360-fav-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.w360-fav-card { min-height: 230px; border-radius: 10px; padding: 22px; color: #fff; text-decoration: none; position: relative; overflow: hidden; background: linear-gradient(90deg,rgba(2,15,45,.75),rgba(2,15,45,.25)), url('https://images.unsplash.com/photo-1528127269322-539801943592?auto=format&fit=crop&w=800&q=80') center/cover; }
.w360-fav-card h2 { font-size: 24px; font-weight: 850; }
.w360-fav-card h2 i { float: right; color: #facc15; }
.w360-fav-card div { font-size: 54px; font-weight: 850; }
.w360-fav-card img { position: absolute; right: 28px; top: 54px; width: 140px; }
.w360-fav-card span { display: block; margin-top: 16px; opacity: .9; }
.w360-favorites-page .w360-fav-section[hidden] { display: none; }
.w360-empty-state { min-height: 190px; border: 1px dashed var(--w360-line); border-radius: 10px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; color: var(--w360-muted); padding: 28px; background: #fbfdff; }
.w360-empty-state[hidden] { display: none; }
.w360-empty-state i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #eef5ff; color: var(--w360-primary); font-size: 22px; }
.w360-empty-state strong { color: var(--w360-text); font-size: 17px; }
.w360-fav-place-card { position: relative; border-radius: 10px; background: #fff; border: 1px solid var(--w360-line); overflow: hidden; }
.w360-fav-place-card a { min-height: 132px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 48px 18px 18px; color: var(--w360-text); text-decoration: none; }
.w360-fav-place-card span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #0f6fff, #35b6ff); color: #fff; font-size: 22px; }
.w360-fav-place-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 850; }
.w360-fav-place-card p { margin: 0; color: var(--w360-muted); }
.w360-fav-place-card > button,
.w360-saved-post-card > button { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 1px solid var(--w360-line); border-radius: 8px; background: #fff; color: #48679f; display: grid; place-items: center; cursor: pointer; }
.w360-fav-place-card > button:hover,
.w360-saved-post-card > button:hover { color: #ef4444; border-color: #fecdd3; background: #fff1f2; }
.w360-saved-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.w360-saved-post-card { position: relative; border: 1px solid var(--w360-line); border-radius: 10px; overflow: hidden; background: #fff; }
.w360-saved-post-card a { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 148px; color: var(--w360-text); text-decoration: none; }
.w360-saved-post-card a > div { background: var(--article-bg, linear-gradient(135deg,#dbeafe,#eff6ff)) center/cover; }
.w360-saved-post-card section { padding: 14px 48px 14px 14px; }
.w360-saved-post-card span { display: inline-block; color: var(--w360-primary); font-weight: 800; font-size: 12px; margin-bottom: 6px; }
.w360-saved-post-card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.28; font-weight: 850; }
.w360-saved-post-card p { margin: 0; color: var(--w360-muted); font-size: 13px; line-height: 1.45; }
.w360-fav-actions { display: grid; gap: 10px; }
.w360-fav-actions .w360-btn { width: 100%; justify-content: center; }
.w360-app-hero { min-height: 430px; display: grid; grid-template-columns: 1fr 320px; align-items: center; gap: 24px; background: linear-gradient(145deg,#eaf3ff,#fff); }
.w360-app-hero h2 { font-size: 40px; font-weight: 850; }
.w360-phone { height: 380px; border-radius: 38px; background: linear-gradient(160deg,#0f6fff,#071948); color: #fff; display: grid; place-items: center; text-align: center; font-size: 54px; font-weight: 850; box-shadow: 0 30px 70px rgba(7,25,72,.25); }

/* Hourly hover */
.w360-hourly-item:hover { background: #dbeafe; border-radius: 10px; }

/* Cards animations */
.card, .w360-panel, .w360-hero, .w360-location-card { animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.w360-footer { margin: 0 10px 10px; padding: 24px 0 0; color: #b8c8e6; border: 1px solid rgba(96,165,250,.2); border-top: 0; border-radius: 0 0 28px 28px; background: radial-gradient(circle at 16% 0%, rgba(15,111,255,.22), transparent 34%), linear-gradient(135deg,#031b39 0%,#00152d 58%,#001124 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; }
.w360-footer-main { padding: 4px 0 22px; }
.w360-footer p { max-width: 260px; margin: 10px 0 16px; color: #c5d3ed; font-size: 13px; line-height: 1.65; }
.w360-footer a { color: #c9d8f1; text-decoration: none; }
.w360-footer a:hover { color: #fff; }
.w360-footer h4, .w360-footer h6 { color: #fff; font-size: 14px; font-weight: 850; margin-bottom: 12px; }
.w360-footer li { margin-bottom: 8px; font-size: 13px; }
.w360-footer-logo { color: #fff; font-size: 22px; font-weight: 900; display: flex; gap: 8px; align-items: center; letter-spacing: 0; }
.w360-footer-logo strong { color: #35a1ff; }
.w360-footer-logo i { color: #ffbc2e; filter: drop-shadow(0 4px 10px rgba(255,188,46,.24)); }
.w360-footer-social { display: flex; gap: 9px; align-items: center; }
.w360-footer-social a { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 15px; background: #0f6fff; }
.w360-footer-social a:nth-child(2) { background: #ef233c; }
.w360-footer-social a:nth-child(3) { background: #111827; }
.w360-footer-social a:nth-child(4) { background: #1d9bf0; font-size: 9px; font-weight: 900; }
.w360-footer-illustration { width: 92px; height: 72px; border-radius: 18px; display: grid; place-items: center; color: #f59e0b; font-size: 42px; background: linear-gradient(135deg,#fff7ed,#dbeafe); }
.w360-feature-bar { background: linear-gradient(180deg,#fff 0%,#f7fbff 100%); border-top: 1px solid var(--w360-line); border-bottom: 1px solid var(--w360-line); box-shadow: 0 -10px 28px rgba(7,25,72,.04); }
.w360-feature-bar .col > div { min-height: 62px; padding: 10px 12px; border: 1px solid transparent; border-radius: 14px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.w360-feature-bar .col > div:hover { transform: translateY(-2px); border-color: #dbeafe; background: #fff; box-shadow: 0 12px 28px rgba(15,111,255,.1); }
.w360-feature-bar span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg,#e8f1ff,#fff); color: var(--w360-primary); font-size: 20px; box-shadow: inset 0 0 0 1px #dbeafe, 0 10px 20px rgba(15,111,255,.12); }
.w360-feature-bar .col:nth-child(1) span { color: #0f6fff; background: linear-gradient(135deg,#e8f1ff,#dbeafe); }
.w360-feature-bar .col:nth-child(2) span { color: #2563eb; background: linear-gradient(135deg,#eef2ff,#dbeafe); }
.w360-feature-bar .col:nth-child(3) span { color: #06b6d4; background: linear-gradient(135deg,#ecfeff,#dbeafe); }
.w360-feature-bar .col:nth-child(4) span { color: #16a34a; background: linear-gradient(135deg,#ecfdf5,#dbeafe); }
.w360-feature-bar .col:nth-child(5) span { color: #3b82f6; background: linear-gradient(135deg,#eff6ff,#e0e7ff); }
.w360-feature-bar strong { display: block; color: var(--w360-text); font-size: 13px; line-height: 1.25; }
.w360-feature-bar small { color: var(--w360-muted); }
.w360-store-dark { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-start; width: 142px; min-height: 42px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: #020817; color: #fff !important; margin: 4px 0; font-weight: 850; font-size: 13px; line-height: 1.05; text-decoration: none; }
.w360-store-dark i { font-size: 20px; }
.w360-store-dark span { display: grid; gap: 1px; }
.w360-store-dark small { color: #cbd5e1; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.w360-footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 17px 0 20px; border-top: 1px solid rgba(148,163,184,.18); color: #d7e4fb; font-size: 12px; }
.w360-footer-bottom > div { justify-content: center; }
.w360-footer-bottom > span:last-child { justify-self: end; display: inline-flex; align-items: center; gap: 6px; }
.w360-footer-phone { display: inline-block; background: linear-gradient(160deg,#0f6fff,#071948); color: #fff; border-radius: 18px; padding: 16px 20px; text-align: center; min-width: 124px; box-shadow: 0 16px 36px rgba(7,25,72,.22); }

/* Newsletter */
.w360-newsletter { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: var(--w360-text) !important; }

/* App Download */
.w360-app-download { background: linear-gradient(135deg, #e0f2fe, #dbeafe); color: var(--w360-text) !important; }

/* Dark Mode */
body.dark-mode { --w360-bg: #0b1220; --w360-text: #eaf1ff; --w360-muted: #a8b5cf; --w360-line: #263754; }
body.dark-mode .w360-header,
body.dark-mode .w360-sidebar,
body.dark-mode .w360-panel,
body.dark-mode .w360-location-card,
body.dark-mode .w360-aqi-hero,
body.dark-mode .w360-lunar-detail,
body.dark-mode .w360-widget-preview,
body.dark-mode .w360-app-hero,
body.dark-mode .w360-sidebar-favorites,
body.dark-mode .w360-sidebar-app,
body.dark-mode .w360-metric,
body.dark-mode .w360-hour-card,
body.dark-mode .w360-day-card,
body.dark-mode .w360-city-strip > a,
body.dark-mode .w360-calendar-tools button,
body.dark-mode .w360-calendar-tools select,
body.dark-mode .w360-good-toolbar .w360-cal-btn,
body.dark-mode .w360-good-toolbar select,
body.dark-mode .w360-widget-location,
body.dark-mode .w360-widget-city-menu,
body.dark-mode .w360-widget-theme-grid button,
body.dark-mode .w360-widget-size-grid label,
body.dark-mode .w360-calendar > button,
body.dark-mode .w360-calendar > div:not(.w360-calendar-tools),
body.dark-mode .w360-tool-row > a,
body.dark-mode .w360-tabs button,
body.dark-mode .w360-map-tabs button,
body.dark-mode .card { background: #111d32 !important; color: #eaf1ff; border-color: #263754 !important; }
body.dark-mode .w360-calendar > b { background: #0d1729; color: #dbe8ff; border-color: #263754; }
body.dark-mode .w360-calendar .muted { background: #0f1a2d !important; color: #6f819d; }
body.dark-mode .w360-calendar .selected { background: var(--w360-primary) !important; color: #fff !important; }
body.dark-mode .w360-good-calendar-card .w360-calendar > button.selected { background: #153623 !important; color: #bbf7d0 !important; }
body.dark-mode .w360-calendar small,
body.dark-mode .w360-calendar span { color: #a8b5cf; }
body.dark-mode .w360-calendar .selected span,
body.dark-mode .w360-calendar .selected small { color: #eaf3ff; }
body.dark-mode .good-box { background: #10291d !important; color: #8ef0ad; }
body.dark-mode .bad-box { background: #31151a !important; color: #ff9aa8; }
body.dark-mode .w360-lunar-quick > a:nth-child(1) i,
body.dark-mode .w360-lunar-quick > a:nth-child(3) i,
body.dark-mode .w360-lunar-quick > a:nth-child(4) i { background: #17345d; }
body.dark-mode .w360-lunar-quick > a:nth-child(2) i { background: #4a1d29; }
body.dark-mode .w360-lunar-quick > a:nth-child(5) i { background: #153623; }
body.dark-mode .w360-lunar-task-strip span,
body.dark-mode .w360-lunar-day-list a,
body.dark-mode .w360-lunar-tool-form > div,
body.dark-mode .w360-lunar-tool-form input,
body.dark-mode .w360-empty-state,
body.dark-mode .w360-fav-place-card,
body.dark-mode .w360-saved-post-card,
body.dark-mode .w360-fav-place-card > button,
body.dark-mode .w360-saved-post-card > button { background: #111d32; color: #eaf1ff; border-color: #263754; }
body.dark-mode .w360-widget-preview.gradient { background: linear-gradient(145deg,var(--widget-color,#0f6fff),#0f5d94) !important; }
body.dark-mode .w360-widget-preview.minimal,
body.dark-mode .w360-widget-preview.glass { background: #111d32 !important; color: #eaf1ff; border-color: #263754; }
body.dark-mode .w360-widget-city-menu button:hover { background: #172641; color: #7bb6ff; }
body.dark-mode .w360-search .form-control,
body.dark-mode .w360-search .input-group-text,
body.dark-mode .w360-filterbar input,
body.dark-mode .w360-filterbar select,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select { background: #0f1a2d !important; color: #eaf1ff !important; border-color: #263754 !important; }
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder,
body.dark-mode .w360-search .form-control::placeholder { color: #9fb0cc !important; opacity: 1; }
body.dark-mode .btn-outline-secondary,
body.dark-mode #w360-location-btn,
body.dark-mode .w360-unit-toggle,
body.dark-mode #w360-dark-mode { color: #d8e5ff !important; border-color: #3a4f72 !important; background: #101b2e !important; }
body.dark-mode #w360-location-btn.has-location { color: #7bb6ff !important; border-color: #0f6fff !important; background: #102544 !important; }
body.dark-mode .w360-logo-name,
body.dark-mode .w360-nav-item,
body.dark-mode .w360-panel-head h2,
body.dark-mode .w360-panel h2,
body.dark-mode .w360-metric strong,
body.dark-mode .w360-city-strip .w360-temp,
body.dark-mode .w360-right-fav-row .w360-temp { color: #f2f7ff !important; }
body.dark-mode .w360-logo-desc,
body.dark-mode .w360-nav-sub-item,
body.dark-mode .w360-metric span,
body.dark-mode .w360-hour-card span,
body.dark-mode .w360-hour-card small,
body.dark-mode .w360-day-card span,
body.dark-mode .w360-day-card small,
body.dark-mode .w360-list small { color: #a8b5cf !important; }
body.dark-mode .w360-map-tabs button.active,
body.dark-mode .w360-tabs button.active { background: var(--w360-primary) !important; color: #fff; }
body.dark-mode .w360-map-tabs button:not(.active) { color: #d8e5ff !important; background: #13223a !important; }
body.dark-mode .w360-feature-bar { background: #101b2e !important; color: #eaf1ff !important; border-color: #263754; }
body.dark-mode .w360-newsletter,
body.dark-mode .w360-app-download { background: #101b2e !important; color: #eaf1ff !important; border-color: #263754; }
body.dark-mode .w360-map-player span,
body.dark-mode .w360-map-legend { background: #111d32; color: #eaf1ff; }
body.dark-mode .w360-map-toolbar button { background: #f8fbff !important; color: #071948 !important; border-color: #dce6f7 !important; }
body.dark-mode .w360-list a:hover,
body.dark-mode .w360-tools-grid i,
body.dark-mode .w360-list a > span:first-child { background: #172641; }
body.dark-mode .w360-tools-grid a,
body.dark-mode .w360-right-fav-row,
body.dark-mode .w360-add-wide { border-color: #263754; color: #eaf1ff; }
body.dark-mode .w360-aqi-bar { filter: saturate(.9); }
body.dark-mode .text-dark { color: #e2e8f0 !important; }
body.dark-mode .text-muted { color: #94a3b8 !important; }
body.dark-mode .border { border-color: #334155 !important; }

/* Responsive */
@media (max-width: 1440px) {
  :root { --w360-sidebar-w: 220px; }
  .w360-main-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
  .w360-content { padding-inline: 14px; }
  .w360-tools-grid { grid-template-columns: repeat(4, minmax(62px, 1fr)); }
}

@media (max-width: 1280px) {
  .w360-main-grid,
  .w360-long-layout,
  .w360-ai-layout { grid-template-columns: 1fr; }
  .w360-right-rail { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .w360-three-layout { grid-template-columns: 320px 1fr; }
  .w360-three-layout .w360-right-rail { grid-column: 1 / -1; }
  .w360-widget-why > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-widget-preview { min-height: 480px; }
  .w360-widget-current { grid-template-columns: minmax(0, 1fr) 130px; }
  .w360-widget-current img { width: 130px; }
  .w360-hero { min-height: 320px; }
  .w360-purpose-grid { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
  .w360-aqi-hero { grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); }
  .w360-aqi-plant { display: none; }
  .w360-aqi-wide-row,
  .w360-aqi-wide-row.three,
  .w360-aqi-wide-row.bottom { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .w360-sidebar { display: none; }
  .w360-shell { display: block; }
  .w360-header { height: auto; padding: 10px 12px !important; }
  .w360-brand { min-width: 0; align-self: auto; padding: 0; border-right: 0; background: transparent; }
  .w360-header > .d-flex,
  .w360-header .d-flex.align-items-center.w-100 { flex-wrap: wrap; }
  .w360-search { order: 3; flex: 1 0 100%; max-width: none; }
  .w360-mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; min-width: 40px; padding-inline: 0; }
  .w360-mobile-menu {
    order: 4;
    flex: 1 0 100%;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }
  .w360-mobile-menu.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .w360-content { padding: 14px; }
  .w360-two-col,
  .w360-three-col,
  .w360-three-layout,
  .w360-aqi-hero,
  .w360-location-card,
  .w360-long-summary,
  .w360-app-hero,
  .w360-news-hero { grid-template-columns: 1fr; }
  .w360-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-province-grid,
  .w360-fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-footer { margin-left: 0; margin-right: 0; border-radius: 0; }
  .w360-newsletter, .w360-app-download { margin-left: 0; }
  .w360-aqi-tabs { gap: 20px; }
  .w360-aqi-hero { grid-template-columns: 1fr; }
  .w360-aqi-forecast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w360-aqi-dust { grid-template-columns: 1fr; }
  .w360-articles article { grid-template-columns: 110px 1fr 20px; gap: 12px; }
  .w360-articles article > div { height: 88px; }
  .w360-featured-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-widget-size-grid,
  .w360-widget-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-widget-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w360-widget-current strong { font-size: 58px; }
  .w360-aqi-fullscreen-btn { position: static; margin: 0 0 10px; }
  .w360-aqi-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-alert-map-row { grid-template-columns: 1fr; }
  .w360-alert-type-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { font-size: 13px; }
  .w360-panel,
  .w360-location-card,
  .w360-aqi-hero,
  .w360-lunar-detail,
  .w360-widget-preview,
  .w360-app-hero { padding: 14px; }
  .w360-page-head { display: block; margin-bottom: 14px; }
  .w360-page-head h1 { font-size: 26px; }
  .w360-page-head > div + div,
  .w360-page-head > button { margin-top: 12px; }
  .w360-widget-inline,
  .w360-widget-size-grid,
  .w360-widget-theme-grid,
  .w360-widget-metrics,
  .w360-widget-days,
  .w360-widget-why > div { grid-template-columns: 1fr; }
  .w360-widget-preview { min-height: auto; padding: 18px; }
  .w360-widget-current { grid-template-columns: 1fr; text-align: left; }
  .w360-widget-current img { width: 110px; justify-self: start; }
  .w360-widget-days span { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); padding-bottom: 12px; }
  .w360-right-rail,
  .w360-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-aqi-chart-tabs { position: static; margin: -4px 0 10px; }
  .w360-aqi-trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-long-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w360-hero { min-height: 390px; }
  .w360-hero-content { padding: 18px; }
  .w360-hero-main { align-items: center; }
  .w360-temp-big { font-size: 72px; }
  .w360-hero-icon { width: 130px; height: 130px; }
  .w360-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .w360-day-grid { grid-template-columns: repeat(7, 104px); }
  .w360-map-panel,
  .w360-panel:has(.w360-table),
  .w360-panel:has(.w360-calendar) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .w360-map-tabs { min-width: 0; }
  .w360-map.home-radar { width: 100%; min-width: 0; }
  .w360-map-player { width: calc(100% - 24px); min-width: 0; }
  .w360-purpose-grid { display: flex; grid-template-columns: none; scroll-snap-type: x mandatory; }
  .w360-purpose-grid a { flex: 0 0 46%; scroll-snap-align: start; }
  .w360-city-strip > a { width: 170px; }
  .w360-table { min-width: 760px; }
  .w360-calendar { min-width: 760px; }
  .w360-filterbar { display: grid; grid-template-columns: 1fr; }
  .w360-filterbar input,
  .w360-filterbar select { max-width: none; margin-left: 0; }
  .w360-footer .row { row-gap: 24px; }
  .w360-footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .w360-footer-bottom > span:last-child { justify-self: center; }
}

@media (max-width: 640px) {
  *, *:before, *:after { max-width: 100%; }
  .w360-shell,
  .w360-content,
  .w360-main-grid,
  .w360-long-layout,
  .w360-right-rail { width: 100%; max-width: 100%; }
  .w360-main-grid {
    display: block;
    min-width: 0;
    overflow: hidden;
  }
  .w360-main-grid > *,
  .w360-content > *,
  .w360-right-rail > * {
    min-width: 0;
    max-width: 100%;
  }
  .w360-header { position: sticky; padding: 8px !important; }
  .w360-header > .d-flex,
  .w360-header .d-flex.align-items-center.w-100.gap-3 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 10px !important;
    align-items: center !important;
  }
  .w360-brand {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    padding: 2px 4px;
  }
  .w360-brand > div:last-child { min-width: 0; }
  .w360-logo-name { font-size: 18px; }
  .w360-logo-desc { display: none; }
  .w360-header .btn { min-height: 38px; }
  .w360-header-actions { justify-content: flex-end; gap: 6px !important; min-width: 0; }
  .w360-mobile-menu-toggle,
  .w360-mobile-search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; min-width: 40px; padding-inline: 0; }
  #w360-location-btn { width: 40px; min-width: 40px; padding-inline: 0; justify-content: center; }
  #w360-location-btn span { display: none !important; }
  .w360-header-actions .w360-unit-toggle,
  .w360-header-actions #w360-dark-mode,
  .w360-header-actions .w360-notification-btn,
  .w360-header-actions .rounded-circle.overflow-hidden { display: none; }
  .w360-mobile-menu {
    grid-column: 1 / -1;
    order: 0;
    flex-basis: auto;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .w360-mobile-menu.is-open { display: grid; grid-template-columns: 1fr; gap: 2px; }
  .w360-search {
    display: none;
    grid-column: 1 / -1;
    order: 0;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .w360-search.is-open { display: block; }
  .w360-search .form-control,
  .w360-search .input-group-text,
  .w360-search .btn { height: 42px; }
  .w360-content { padding: 10px; }
  .w360-panel { margin-bottom: 10px; overflow: hidden; }
  .w360-panel-head h2,
  .w360-panel h2 { font-size: 16px; }
  .w360-right-rail,
  .w360-mini-grid,
  .w360-stat-row,
  .w360-period-grid,
  .w360-province-grid,
  .w360-fav-grid,
  .w360-pollutants { grid-template-columns: 1fr; }
  .w360-long-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-long-summary { padding: 14px; gap: 12px; }
  .w360-long-summary .w360-location-photo { height: 130px; }
  .w360-long-summary img { width: 96px; }
  .w360-long-summary .w360-summary-temp { text-align: left; font-size: 44px; }
  .w360-long-tabs .w360-calendar-tools input { width: 100%; min-width: 0; margin-left: 0; }
  .w360-good-toolbar { grid-template-columns: 42px minmax(0, 1fr) minmax(88px, .65fr) 42px; gap: 8px; }
  .w360-good-toolbar .w360-good-help { grid-column: 1 / -1; width: 100%; margin-left: 0; }
  .w360-good-toolbar select { padding-inline: 10px; }
  .w360-hero { width: 100%; max-width: 100%; min-width: 0; min-height: auto; border-radius: 8px; }
  .w360-hero-top { align-items: flex-start; }
  .w360-hero-top h1 { font-size: 21px; }
  .w360-hero-top p span { display: inline-block; margin-left: 0; margin-top: 6px; }
  .w360-hero-main { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; align-items: center; }
  .w360-temp-big { font-size: 58px; margin-top: 20px; }
  .w360-temp-big sup { font-size: 22px; }
  .w360-hero-main h3 { font-size: 18px; }
  .w360-hero-icon { width: 96px; height: 96px; }
  .w360-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; padding-top: 14px; gap: 8px; width: 100%; }
  .w360-hero-stats div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); padding: 0 0 8px; min-width: 0; }
  .w360-hero-stats span { font-size: 11px; }
  .w360-hero-stats strong { font-size: 16px; }
  .w360-scroll-row,
  .w360-day-grid,
  .w360-city-strip,
  .w360-purpose-grid,
  .w360-map-panel {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .w360-map-panel {
    overflow: hidden;
  }
  .w360-map-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }
  .w360-map-tabs button {
    min-width: 0;
    width: 100%;
    padding: 8px 6px;
    line-height: 1.2;
    white-space: normal;
  }
  .w360-map-tabs i {
    display: block;
    margin: 0 0 3px;
  }
  .w360-scroll-row { gap: 8px; }
  .w360-hour-card { width: 86px; padding: 10px 8px; }
  .w360-day-grid { grid-template-columns: repeat(7, 96px); gap: 8px; }
  .w360-day-card { min-width: 96px; }
  .w360-prepare-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
  }
  .w360-prepare-row > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .w360-prepare-row strong,
  .w360-prepare-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .w360-purpose-grid,
  .w360-city-strip {
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .w360-purpose-grid {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
  }
  .w360-purpose-grid a {
    flex: 0 0 72%;
    min-width: 0;
    scroll-snap-align: start;
  }
  .w360-city-strip > a {
    flex: 0 0 72%;
    width: auto;
    scroll-snap-align: start;
  }
  .w360-chart-box {
    height: 190px;
    min-width: 0;
    padding: 8px;
  }
  .w360-aqi-forecast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-aqi-dashboard .w360-map.hanoi { height: 300px; }
  .w360-aqi-tabs { gap: 18px; }
  .w360-aqi-city-grid { grid-template-columns: 1fr; }
  .w360-rain-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .w360-rain-map-wrap,
  .w360-rain-map { min-height: 340px; }
  .w360-rain-legend { position: static; transform: none; margin: 10px; }
  .w360-rain-table { min-width: 720px; }
  .w360-alert-leaflet-map { height: 320px; }
  .w360-alert-map-panel .w360-alert-map-legend { position: static; margin-bottom: 10px; box-shadow: none; border: 1px solid var(--w360-line); }
  .w360-lunar-tools { grid-template-columns: auto 42px 42px 1fr 1fr; }
  .w360-lunar-tools .w360-view-mode { grid-column: 1 / -1; margin-left: 0; width: 100%; }
  .w360-lunar-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .w360-lunar-quick > a { min-height: 112px; padding: 16px 10px; }
  .w360-lunar-task-strip,
  .w360-lunar-summary-grid,
  .w360-lunar-day-list,
  .w360-saved-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-lunar-tool-form { grid-template-columns: 1fr; }
  .w360-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .w360-newsletter .row,
  .w360-app-download .row { text-align: left; }
  .w360-footer-illustration { width: 58px; height: 58px; font-size: 28px; }
  .w360-feature-bar .col { justify-content: flex-start !important; }
}

@media (max-width: 420px) {
  .w360-header { padding: 6px !important; }
  .w360-header .d-flex.align-items-center.gap-2.flex-shrink-0 {
    display: flex !important;
    gap: 5px !important;
  }
  .w360-header .d-flex.align-items-center.gap-2.flex-shrink-0 .btn {
    width: 38px;
    padding-inline: 6px;
  }
  .w360-header .rounded-circle.overflow-hidden {
    width: 34px !important;
    height: 34px !important;
    justify-self: end;
  }
  .w360-page-head h1 { font-size: 23px; }
  .w360-content { padding: 8px; }
  .w360-panel,
  .w360-location-card,
  .w360-aqi-hero,
  .w360-lunar-detail { padding: 12px; }
  .w360-long-stat-grid { grid-template-columns: 1fr; }
  .w360-hero-content { padding: 14px; }
  .w360-hero-main { grid-template-columns: minmax(0,1fr) 76px; max-width: 100%; }
  .w360-hero-icon { width: 76px; height: 76px; margin-left: auto; }
  .w360-temp-big { font-size: 52px; }
  .w360-hero-stats strong { font-size: 16px; }
  .w360-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w360-city-strip > a { flex-basis: 78%; width: auto; }
  .w360-purpose-grid { display: flex; grid-template-columns: none; }
  .w360-purpose-grid a { flex-basis: 78%; }
  .w360-lunar-quick { grid-template-columns: 1fr; }
  .w360-lunar-quick > a { min-height: 96px; grid-template-columns: 46px 1fr; justify-items: start; text-align: left; align-content: center; column-gap: 12px; }
  .w360-lunar-quick > a i { grid-row: span 2; margin-bottom: 0; }
  .w360-lunar-task-strip,
  .w360-lunar-summary-grid,
  .w360-lunar-day-list,
  .w360-saved-post-grid { grid-template-columns: 1fr; }
  .w360-saved-post-card a { grid-template-columns: 1fr; }
  .w360-saved-post-card a > div { min-height: 150px; }
  .w360-fav-place-card a { grid-template-columns: 42px minmax(0, 1fr); padding-right: 46px; }
  .w360-fav-place-card span { width: 42px; height: 42px; }
  .w360-map-tabs { width: 100%; min-width: 0; }
  .w360-map.home-radar { width: 100%; min-width: 0; max-width: 100%; height: 240px; }
  .w360-map.home-radar .w360-map-pin { font-size: 9px; padding: 3px 6px; }
  .w360-map.home-radar .w360-map-toolbar { right: 8px; top: 8px; }
  .w360-map.home-radar .w360-map-toolbar button { width: 30px; height: 30px; }
  .w360-map.home-radar .w360-map-legend { left: 74px; right: 10px; bottom: 12px; gap: 6px; }
  .w360-map-player { width: calc(100% - 20px); min-width: 0; max-width: 100%; margin-left: 10px; gap: 8px; }
  .w360-map-player button { width: 36px; height: 36px; flex: 0 0 36px; }
  .w360-map-player span { padding: 6px 10px; flex: 0 0 auto; }
  .w360-map-player small { display: none; }
  .w360-map-player i { min-width: 0; flex: 1 1 auto; }
  .w360-store-dark { width: 100%; }
}
