/* HeartFlow shell UI inspired by modern light SaaS backoffice. CSS-only. */
:root {
  --hf-shell-bg: #faf8f2;
  --hf-shell-side: #f1eee6;
  --hf-shell-side-line: #ddd8cb;
  --hf-shell-panel: #fffdf8;
  --hf-shell-text: #171a14;
  --hf-shell-muted: #6f756b;
  --hf-shell-subtle: #8b9188;
  --hf-shell-green: #55b74a;
  --hf-shell-green-dark: #2f8f32;
  --hf-shell-line: #dfddd4;
  --hf-shell-hover: #ebe7dc;
  --hf-shell-active: #ffffff;
}

html, body {
  background: var(--hf-shell-bg) !important;
  color: var(--hf-shell-text) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

.container {
  height: 64px !important;
  background: var(--hf-shell-panel) !important;
  border-bottom: 1px solid var(--hf-shell-line) !important;
  box-shadow: none !important;
}

.container .logo a {
  width: 238px !important;
  height: 64px !important;
  line-height: 64px !important;
  padding-left: 18px !important;
  color: #21822d !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.container .logo a:before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 9px;
  background: linear-gradient(135deg, #74c85e, #43a941);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  vertical-align: -9px;
}

.container .left_open {
  height: 64px !important;
}

.container .left_open i {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  margin-top: 15px !important;
  color: #6f756b !important;
  background: transparent !important;
  border: 1px solid var(--hf-shell-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.container .left_open i:hover {
  color: var(--hf-shell-green-dark) !important;
  background: #eef7ea !important;
  border-color: #cfe8c8 !important;
}

.container .right {
  height: 64px !important;
  background: transparent !important;
}

.container .layui-nav .layui-nav-item {
  line-height: 64px !important;
}

.container .layui-nav .layui-nav-item > a {
  color: #24281f !important;
  font-weight: 700 !important;
}

.container .layui-nav .layui-nav-more {
  border-top-color: #6f756b !important;
}

.container .layui-nav-child {
  top: 58px !important;
  border: 1px solid var(--hf-shell-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 26px rgba(38, 35, 24, .10) !important;
  overflow: hidden !important;
}

.left-nav {
  top: 64px !important;
  width: 238px !important;
  background: var(--hf-shell-side) !important;
  border-right: 1px solid var(--hf-shell-side-line) !important;
  box-shadow: none !important;
}

#side-nav {
  padding: 12px 10px !important;
}

.left-nav #nav li {
  border: 0 !important;
}

.left-nav #nav li a {
  position: relative !important;
  height: 40px !important;
  line-height: 40px !important;
  margin: 3px 0 !important;
  padding: 0 12px !important;
  color: #384035 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease !important;
}

.left-nav #nav li a:hover {
  color: #171a14 !important;
  background: var(--hf-shell-hover) !important;
}

.left-nav #nav li a i {
  color: #596156 !important;
  font-size: 17px !important;
}

.left-nav #nav li a cite {
  font-size: 14px !important;
  font-weight: 760 !important;
}

.left-nav #nav .sub-menu {
  padding: 2px 0 7px !important;
  background: transparent !important;
}

.left-nav #nav .sub-menu li a {
  height: 38px !important;
  line-height: 38px !important;
  margin: 3px 0 !important;
  padding-left: 32px !important;
  color: #343b32 !important;
}

.left-nav #nav .sub-menu li a:before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a6ad9f;
}

.left-nav #nav .sub-menu li a:hover,
.left-nav #nav .sub-menu li a.active {
  color: #11160f !important;
  background: var(--hf-shell-active) !important;
  border-color: #d6d2c5 !important;
  box-shadow: 0 2px 6px rgba(38, 35, 24, .05) !important;
}

.left-nav #nav .sub-menu li a:hover:before,
.left-nav #nav .sub-menu li a.active:before {
  background: var(--hf-shell-green) !important;
}

.left-nav #nav .nav_right {
  right: 12px !important;
  color: #757c72 !important;
}

.page-content {
  top: 64px !important;
  left: 238px !important;
  background: var(--hf-shell-bg) !important;
}

.page-content .layui-tab-title {
  height: 50px !important;
  padding-left: 18px !important;
  background: var(--hf-shell-panel) !important;
  border-bottom: 1px solid var(--hf-shell-line) !important;
  box-shadow: none !important;
}

.page-content .layui-tab-title li {
  height: 50px !important;
  line-height: 50px !important;
  min-width: 54px !important;
  color: #697064 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-right: 1px solid #ebe7dc !important;
}

.page-content .layui-tab-title li.layui-this {
  color: #171a14 !important;
  background: #fffdf8 !important;
}

.page-content .layui-tab-title li.layui-this:after {
  border: 0 !important;
  border-bottom: 2px solid var(--hf-shell-green) !important;
}

.page-content .layui-tab-content {
  top: 50px !important;
  background: var(--hf-shell-bg) !important;
}

.page-content .layui-tab-content .layui-tab-item,
.x-iframe {
  background: var(--hf-shell-bg) !important;
}

@media screen and (max-width: 768px) {
  .container { height: 58px !important; }
  .container .logo a { width: 150px !important; height: 58px !important; line-height: 58px !important; }
  .left-nav { top: 58px !important; }
  .page-content { top: 58px !important; left: 0 !important; }
}

/* Sidebar interaction fix: light selected state, no dark blocks. */
.left-nav #nav li,
.left-nav #nav li.layui-nav-item,
.left-nav #nav li.layui-nav-itemed {
  background: transparent !important;
}

.left-nav #nav li > a,
.left-nav #nav li.layui-nav-itemed > a,
.left-nav #nav li.layui-this > a {
  background: transparent !important;
  color: #384035 !important;
  box-shadow: none !important;
}

.left-nav #nav li > a:hover,
.left-nav #nav li.layui-nav-itemed > a:hover {
  background: #ebe7dc !important;
  color: #171a14 !important;
}

.left-nav #nav .sub-menu,
.left-nav #nav .sub-menu li {
  background: transparent !important;
}

.left-nav #nav .sub-menu li a,
.left-nav #nav .sub-menu li.layui-this a {
  height: 38px !important;
  line-height: 38px !important;
  margin: 3px 0 !important;
  padding-left: 34px !important;
  background: transparent !important;
  color: #586052 !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.left-nav #nav .sub-menu li a:hover,
.left-nav #nav .sub-menu li a.active,
.left-nav #nav .sub-menu li.layui-this a {
  background: #fffdf8 !important;
  color: #171a14 !important;
  border-color: #dcd7cb !important;
  box-shadow: 0 1px 2px rgba(38,35,24,.04) !important;
}

.left-nav #nav .sub-menu li a:before {
  left: 17px !important;
  top: 16px !important;
  width: 5px !important;
  height: 5px !important;
  background: #b1b7aa !important;
}

.left-nav #nav .sub-menu li a:hover:before,
.left-nav #nav .sub-menu li a.active:before,
.left-nav #nav .sub-menu li.layui-this a:before {
  background: #55b74a !important;
}

.left-nav #nav .sub-menu li a i {
  color: #7a8176 !important;
}

.left-nav #nav .sub-menu li a:hover i,
.left-nav #nav .sub-menu li a.active i,
.left-nav #nav .sub-menu li.layui-this a i {
  color: #2f8f32 !important;
}

/* Shell layout refinement: no topbar, sidebar-owned brand, bottom profile. */
:root {
  --hf-shell-side-w: 221px;
}

.container {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: var(--hf-shell-side-w) !important;
  height: 66px !important;
  z-index: 1001 !important;
  background: var(--hf-shell-side) !important;
  border-right: 1px solid var(--hf-shell-side-line) !important;
  border-bottom: 1px solid #e6e1d6 !important;
  box-shadow: none !important;
}

.container .logo a {
  width: 150px !important;
  height: 66px !important;
  line-height: 66px !important;
  padding-left: 10px !important;
  font-size: 17px !important;
  color: #21822d !important;
}

.container .logo a:before {
  width: 30px !important;
  height: 30px !important;
  margin-right: 8px !important;
  border-radius: 9px !important;
}

.container .left_open {
  position: absolute !important;
  right: 10px !important;
  top: 13px !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
}

.container .left_open i {
  position: relative !important;
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  margin: 0 !important;
  color: transparent !important;
  background: #fffdf8 !important;
  border: 1px solid #d8d3c7 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(38,35,24,.04) !important;
}

.container .left_open i:before {
  content: "" !important;
  position: absolute !important;
  left: 11px !important;
  top: 10px !important;
  width: 14px !important;
  height: 16px !important;
  border: 1.5px solid #7a8176 !important;
  border-radius: 4px !important;
  background: linear-gradient(90deg, rgba(122,129,118,.18) 0 38%, transparent 38% 100%) !important;
}

.container .left_open i:after {
  content: "" !important;
  position: absolute !important;
  left: 23px !important;
  top: 15px !important;
  width: 4px !important;
  height: 4px !important;
  border-top: 1.5px solid #7a8176 !important;
  border-right: 1.5px solid #7a8176 !important;
  transform: rotate(225deg) !important;
}

.container .left_open i:hover {
  background: #f4f8ef !important;
  border-color: #beddb7 !important;
}

.container .right {
  display: none !important;
}

.left-nav {
  top: 66px !important;
  width: var(--hf-shell-side-w) !important;
  bottom: 0 !important;
  padding-bottom: 78px !important;
  background: var(--hf-shell-side) !important;
}

#side-nav {
  padding: 10px 8px !important;
}

.page-content {
  top: 0 !important;
  left: var(--hf-shell-side-w) !important;
  background: var(--hf-shell-bg) !important;
}

.page-content .layui-tab,
.page-content .tab {
  margin: 0 !important;
}

.page-content .layui-tab-title,
.page-content .layui-tab-bar {
  display: none !important;
}

.page-content .layui-tab-content {
  top: 0 !important;
  padding: 0 !important;
  background: var(--hf-shell-bg) !important;
}

.page-content .layui-tab-content .layui-tab-item,
.page-content .layui-tab-content .layui-tab-item iframe,
.x-iframe {
  width: 100% !important;
  height: 100% !important;
  background: var(--hf-shell-bg) !important;
}

.side-profile {
  position: fixed !important;
  left: 8px !important;
  bottom: 8px !important;
  width: 205px !important;
  z-index: 1002 !important;
}

.side-profile .layui-nav {
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
}

.side-profile .layui-nav .layui-nav-item {
  width: 100% !important;
  line-height: normal !important;
}

.side-profile .layui-nav .layui-nav-item > a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 52px !important;
  padding: 8px 10px !important;
  color: #20251d !important;
  background: #fffdf8 !important;
  border: 1px solid #dcd7cb !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(38,35,24,.06) !important;
}

.profile-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  background: #3f8f1b !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.profile-text {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.profile-text strong {
  color: #171a14 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 18px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.profile-text small {
  color: #8a9186 !important;
  font-size: 11px !important;
  line-height: 15px !important;
}

.side-profile .layui-nav-child {
  left: 0 !important;
  right: auto !important;
  bottom: 58px !important;
  top: auto !important;
  min-width: 205px !important;
  border: 1px solid #dcd7cb !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 24px rgba(38,35,24,.12) !important;
  overflow: hidden !important;
}

.side-profile .layui-nav-child dd a {
  color: #31372f !important;
  font-weight: 700 !important;
}

@media screen and (max-width: 768px) {
  .container { width: 58px !important; height: 58px !important; }
  .container .logo a { display: none !important; }
  .container .left_open { left: 9px !important; right: auto !important; top: 9px !important; }
  .left-nav { top: 58px !important; }
  .page-content { left: 0 !important; top: 0 !important; }
  .side-profile { display: none !important; }
}

/* Collapsed sidebar state: keep a compact modern control, no leftover topbar. */
body.hf-sidebar-closed .container {
  width: 58px !important;
  height: 58px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

body.hf-sidebar-closed .container .logo {
  display: none !important;
}

body.hf-sidebar-closed .container .left_open {
  left: 10px !important;
  right: auto !important;
  top: 10px !important;
  pointer-events: auto !important;
}

body.hf-sidebar-closed .container .left_open i {
  background: #fffdf8 !important;
  border-color: #d8d3c7 !important;
  box-shadow: 0 8px 22px rgba(38,35,24,.10) !important;
}

body.hf-sidebar-closed .container .left_open i:after {
  left: 20px !important;
  transform: rotate(45deg) !important;
}

body.hf-sidebar-closed .side-profile {
  display: none !important;
}

/* Collapse rail refinement: icon rail + expanded workspace. */
:root {
  --hf-shell-side-w: 221px;
  --hf-shell-rail-w: 64px;
}

/* Cleaner sidebar toggle, closer to mature AI/SaaS controls. */
.container .left_open i {
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.container .left_open i:hover {
  background: #fffdf8 !important;
  border-color: #dcd7cb !important;
  box-shadow: 0 1px 3px rgba(38,35,24,.06) !important;
}

.container .left_open i:before {
  left: 10px !important;
  top: 10px !important;
  width: 16px !important;
  height: 16px !important;
  border-color: #626a60 !important;
  border-radius: 4px !important;
  background: linear-gradient(90deg, rgba(98,106,96,.20) 0 36%, transparent 36% 100%) !important;
}

.container .left_open i:after {
  display: none !important;
}

/* Expanded profile should feel like a dock item, not a heavy card. */
.side-profile {
  left: 6px !important;
  bottom: 6px !important;
  width: 209px !important;
}

.side-profile .layui-nav .layui-nav-item > a {
  min-height: 50px !important;
  padding: 8px 10px !important;
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.side-profile .layui-nav .layui-nav-item > a:hover {
  background: #fffdf8 !important;
  border-color: #dcd7cb !important;
}

.profile-avatar {
  width: 28px !important;
  height: 28px !important;
  flex-basis: 28px !important;
  background: #3f8f1b !important;
  font-size: 13px !important;
}

/* Actual collapsed state: keep a 64px icon rail and let iframe grow. */
body.hf-sidebar-closed .container {
  width: var(--hf-shell-rail-w) !important;
  height: 66px !important;
  background: var(--hf-shell-side) !important;
  border-right: 1px solid var(--hf-shell-side-line) !important;
  border-bottom: 1px solid #e6e1d6 !important;
  pointer-events: auto !important;
}

body.hf-sidebar-closed .container .logo {
  display: block !important;
}

body.hf-sidebar-closed .container .logo a {
  width: var(--hf-shell-rail-w) !important;
  padding: 0 !important;
  font-size: 0 !important;
  text-align: center !important;
}

body.hf-sidebar-closed .container .logo a:before {
  margin: 0 !important;
  vertical-align: -10px !important;
}

body.hf-sidebar-closed .container .left_open {
  left: 13px !important;
  right: auto !important;
  top: 74px !important;
  width: 38px !important;
  height: 38px !important;
  z-index: 1003 !important;
}

body.hf-sidebar-closed .container .left_open i {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.hf-sidebar-closed .container .left_open i:hover {
  background: #fffdf8 !important;
  border-color: #dcd7cb !important;
}

body.hf-sidebar-closed .left-nav {
  left: 0 !important;
  top: 118px !important;
  width: var(--hf-shell-rail-w) !important;
  padding-bottom: 72px !important;
  overflow-x: hidden !important;
  background: var(--hf-shell-side) !important;
  border-right: 1px solid var(--hf-shell-side-line) !important;
}

body.hf-sidebar-closed #side-nav {
  padding: 0 7px !important;
}

body.hf-sidebar-closed .page-content {
  left: var(--hf-shell-rail-w) !important;
  top: 0 !important;
}

body.hf-sidebar-closed .page-content-bg {
  display: none !important;
}

body.hf-sidebar-closed .left-nav #nav,
body.hf-sidebar-closed .left-nav #nav li,
body.hf-sidebar-closed .left-nav #nav .sub-menu {
  display: block !important;
  background: transparent !important;
}

body.hf-sidebar-closed .left-nav #nav li a {
  width: 48px !important;
  height: 42px !important;
  line-height: 42px !important;
  margin: 4px 0 !important;
  padding: 0 !important;
  text-align: center !important;
  border-radius: 10px !important;
}

body.hf-sidebar-closed .left-nav #nav li a cite,
body.hf-sidebar-closed .left-nav #nav li a .nav_right,
body.hf-sidebar-closed .left-nav #nav .sub-menu li a:before {
  display: none !important;
}

body.hf-sidebar-closed .left-nav #nav li a i {
  float: none !important;
  display: inline-block !important;
  width: auto !important;
  margin: 0 !important;
  color: #626a60 !important;
  font-size: 19px !important;
}

body.hf-sidebar-closed .left-nav #nav li a:hover,
body.hf-sidebar-closed .left-nav #nav .sub-menu li a.active,
body.hf-sidebar-closed .left-nav #nav .sub-menu li.layui-this a {
  background: #fffdf8 !important;
  border-color: #dcd7cb !important;
  box-shadow: 0 1px 3px rgba(38,35,24,.06) !important;
}

body.hf-sidebar-closed .left-nav #nav li a:hover i,
body.hf-sidebar-closed .left-nav #nav .sub-menu li a.active i,
body.hf-sidebar-closed .left-nav #nav .sub-menu li.layui-this a i {
  color: #55b74a !important;
}

body.hf-sidebar-closed .side-profile {
  display: block !important;
  left: 7px !important;
  bottom: 8px !important;
  width: 50px !important;
}

body.hf-sidebar-closed .side-profile .layui-nav .layui-nav-item > a {
  justify-content: center !important;
  width: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  background: transparent !important;
  border-color: transparent !important;
}

body.hf-sidebar-closed .side-profile .layui-nav .layui-nav-item > a:hover {
  background: #fffdf8 !important;
  border-color: #dcd7cb !important;
}

body.hf-sidebar-closed .profile-text {
  display: none !important;
}

body.hf-sidebar-closed .profile-avatar {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
}

body.hf-sidebar-closed .side-profile .layui-nav-child {
  left: 54px !important;
  bottom: 0 !important;
  min-width: 120px !important;
}

/* Final menu-item icon polish: terminal items use semantic icons, not expand arrows. */
.left-nav #nav .sub-menu li a:before {
  display: none !important;
}

.left-nav #nav .sub-menu li a {
  padding-left: 12px !important;
}

.left-nav #nav .sub-menu li a i {
  width: 28px !important;
  margin-right: 8px !important;
  color: #6b7469 !important;
  font-size: 18px !important;
  text-align: center !important;
}

.left-nav #nav .sub-menu li a:hover i,
.left-nav #nav .sub-menu li a.active i,
.left-nav #nav .sub-menu li.layui-this a i {
  color: #55b74a !important;
}

body.hf-sidebar-closed .left-nav #nav .sub-menu li a {
  padding-left: 0 !important;
}

body.hf-sidebar-closed .left-nav #nav .sub-menu li a i {
  width: auto !important;
  margin-right: 0 !important;
}

/* Brand logo image replacement. */
.container .logo a {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 156px !important;
  height: 66px !important;
  line-height: normal !important;
  padding-left: 10px !important;
  color: transparent !important;
  font-size: 0 !important;
  overflow: hidden !important;
}

.container .logo a:before {
  display: none !important;
  content: none !important;
}

.container .logo img {
  display: block !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.container .logo .brand-full {
  width: 148px !important;
  height: auto !important;
}

.container .logo .brand-mark {
  display: none !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
}

body.hf-sidebar-closed .container .logo {
  display: block !important;
}

body.hf-sidebar-closed .container .logo a {
  justify-content: center !important;
  width: var(--hf-shell-rail-w) !important;
  height: 66px !important;
  padding: 0 !important;
}

body.hf-sidebar-closed .container .logo .brand-full {
  display: none !important;
}

body.hf-sidebar-closed .container .logo .brand-mark {
  display: block !important;
}

/* First-entry sweet intro animation. */
.sweet-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 28%, rgba(114, 205, 88, .22), transparent 32%),
    radial-gradient(circle at 78% 20%, rgba(246, 190, 69, .18), transparent 30%),
    linear-gradient(135deg, #fffdf8 0%, #f3efe5 48%, #e8f4df 100%);
  opacity: 0;
  transition: opacity .52s ease;
}

.sweet-intro.is-active {
  display: flex;
  opacity: 1;
}

.sweet-intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}

body.hf-intro-lock {
  overflow: hidden !important;
}

.sweet-intro__card {
  position: relative;
  width: min(760px, calc(100vw - 40px));
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #172017;
  border: 1px solid rgba(214, 209, 196, .78);
  border-radius: 28px;
  background: rgba(255, 253, 248, .72);
  box-shadow: 0 30px 90px rgba(42, 54, 31, .16), inset 0 1px 0 rgba(255,255,255,.76);
  backdrop-filter: blur(20px);
  transform: translateY(18px) scale(.97);
  animation: sweetCardIn .86s cubic-bezier(.2,.82,.2,1) .1s forwards;
}

.sweet-intro__mark {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255, 253, 248, .82);
  box-shadow: 0 18px 46px rgba(68, 142, 40, .18);
  opacity: 0;
  transform: translateY(18px) rotate(-8deg);
  animation: sweetPop .78s cubic-bezier(.18,.9,.18,1.2) .32s forwards;
}

.sweet-intro__mark img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.sweet-intro__eyebrow {
  margin-top: 26px;
  color: #6b7467;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 5px;
  opacity: 0;
  transform: translateY(12px);
  animation: sweetRise .62s ease .74s forwards;
}

.sweet-intro__text {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: clamp(28px, 5.2vw, 56px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

.sweet-intro__text span,
.sweet-intro__text strong {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px) rotate(1deg);
  animation: sweetWord .72s cubic-bezier(.18,.82,.22,1) forwards;
}

.sweet-intro__text span:nth-child(1) { animation-delay: .95s; }
.sweet-intro__text span:nth-child(2) { animation-delay: 1.12s; }
.sweet-intro__text span:nth-child(3) { animation-delay: 1.29s; }
.sweet-intro__text strong {
  animation-delay: 1.48s;
  color: #2d942f;
  font-style: normal;
  text-shadow: 0 12px 32px rgba(85, 183, 74, .18);
}

.sweet-intro__orbit {
  position: absolute;
  inset: 42px;
  pointer-events: none;
  opacity: 0;
  animation: sweetOrbitFade .6s ease 1.6s forwards;
}

.sweet-intro__orbit i,
.sweet-intro__particle {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #f0b73e;
  box-shadow: 0 0 0 8px rgba(240, 183, 62, .12);
}

.sweet-intro__orbit i:nth-child(1) { left: 12%; top: 18%; animation: sweetFloat 3.8s ease-in-out infinite; }
.sweet-intro__orbit i:nth-child(2) { right: 16%; top: 24%; background: #55b74a; box-shadow: 0 0 0 8px rgba(85,183,74,.12); animation: sweetFloat 4.2s ease-in-out .2s infinite; }
.sweet-intro__orbit i:nth-child(3) { left: 20%; bottom: 20%; background: #7cc96a; box-shadow: 0 0 0 8px rgba(124,201,106,.12); animation: sweetFloat 4s ease-in-out .4s infinite; }
.sweet-intro__orbit i:nth-child(4) { right: 19%; bottom: 18%; animation: sweetFloat 4.6s ease-in-out .1s infinite; }

.sweet-intro__glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: .34;
  animation: sweetDrift 7s ease-in-out infinite alternate;
}

.sweet-intro__glow--one {
  left: -80px;
  top: 10%;
  background: radial-gradient(circle, rgba(85,183,74,.42), transparent 68%);
}

.sweet-intro__glow--two {
  right: -60px;
  bottom: 4%;
  background: radial-gradient(circle, rgba(240,183,62,.34), transparent 68%);
  animation-delay: -1.5s;
}

.sweet-intro__particle--one { left: 18%; top: 68%; animation: sweetSpark 4s ease-in-out infinite; }
.sweet-intro__particle--two { right: 21%; top: 18%; background: #55b74a; animation: sweetSpark 4.4s ease-in-out .35s infinite; }
.sweet-intro__particle--three { right: 14%; bottom: 21%; animation: sweetSpark 4.2s ease-in-out .7s infinite; }

.sweet-intro__skip {
  margin-top: 34px;
  height: 40px;
  padding: 0 18px;
  color: #2d6d25;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(85,183,74,.28);
  border-radius: 999px;
  background: rgba(238, 248, 235, .82);
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  animation: sweetRise .62s ease 2.1s forwards;
}

.sweet-intro__skip:hover {
  color: #17651e;
  background: #e2f3dc;
}

@keyframes sweetCardIn {
  to { transform: translateY(0) scale(1); }
}

@keyframes sweetPop {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes sweetRise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sweetWord {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes sweetOrbitFade {
  to { opacity: 1; }
}

@keyframes sweetFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.08); }
}

@keyframes sweetSpark {
  0%, 100% { transform: translate3d(0,0,0) scale(.82); opacity: .5; }
  50% { transform: translate3d(16px,-18px,0) scale(1.1); opacity: 1; }
}

@keyframes sweetDrift {
  to { transform: translate3d(38px, -24px, 0) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .sweet-intro,
  .sweet-intro * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media screen and (max-width: 768px) {
  .sweet-intro__card {
    min-height: 380px;
    border-radius: 22px;
  }
  .sweet-intro__text {
    max-width: 320px;
    gap: 8px 12px;
  }
}

/* Sweet intro v2: playful candy typography. */
.sweet-intro {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 144, 184, .24), transparent 30%),
    radial-gradient(circle at 74% 18%, rgba(255, 211, 91, .22), transparent 28%),
    radial-gradient(circle at 50% 86%, rgba(126, 213, 153, .20), transparent 34%),
    linear-gradient(135deg, #fff8fb 0%, #fffaf0 44%, #eef9ee 100%) !important;
}

.sweet-intro__card {
  border-color: rgba(244, 207, 216, .78) !important;
  background: rgba(255, 252, 247, .76) !important;
  box-shadow: 0 32px 96px rgba(114, 73, 56, .15), inset 0 1px 0 rgba(255,255,255,.82) !important;
}

.sweet-intro__mark {
  background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,245,232,.76)) !important;
  box-shadow: 0 18px 46px rgba(255, 144, 184, .16), 0 10px 28px rgba(85, 183, 74, .12) !important;
}

.sweet-intro__eyebrow {
  color: #b56b82 !important;
  letter-spacing: 4px !important;
}

.sweet-intro__text {
  gap: 8px 14px !important;
  perspective: 900px;
}

.sweet-intro__text span,
.sweet-intro__text strong {
  position: relative;
  transform-origin: 50% 100%;
  color: #2d352c;
  animation-name: sweetCandyWord !important;
  animation-duration: .92s !important;
  animation-timing-function: cubic-bezier(.18,1.15,.22,1) !important;
}

.sweet-intro__text span:nth-child(1) {
  color: #ff7aa8 !important;
  text-shadow: 0 12px 30px rgba(255,122,168,.18);
}

.sweet-intro__text span:nth-child(2) {
  color: #55b74a !important;
  text-shadow: 0 12px 30px rgba(85,183,74,.16);
}

.sweet-intro__text span:nth-child(3) {
  color: #f2a93b !important;
  text-shadow: 0 12px 30px rgba(242,169,59,.18);
}

.sweet-intro__text strong {
  color: #ff6397 !important;
  text-shadow: 0 16px 36px rgba(255,99,151,.22) !important;
}

.sweet-intro__text strong:after {
  content: "";
  position: absolute;
  left: 6%;
  right: 4%;
  bottom: -8px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,122,168,.28), rgba(255,211,91,.34), rgba(126,213,153,.25));
  transform: scaleX(0);
  transform-origin: left center;
  animation: sweetUnderline .72s cubic-bezier(.18,.9,.18,1) 2.02s forwards;
}

.sweet-intro__orbit i,
.sweet-intro__particle {
  background: #ff8db5 !important;
  box-shadow: 0 0 0 8px rgba(255,141,181,.12) !important;
}

.sweet-intro__orbit i:nth-child(2),
.sweet-intro__particle--two {
  background: #7ed599 !important;
  box-shadow: 0 0 0 8px rgba(126,213,153,.12) !important;
}

.sweet-intro__orbit i:nth-child(3) {
  background: #ffd35b !important;
  box-shadow: 0 0 0 8px rgba(255,211,91,.14) !important;
}

.sweet-intro__orbit i:nth-child(4),
.sweet-intro__particle--three {
  background: #ffbf72 !important;
  box-shadow: 0 0 0 8px rgba(255,191,114,.13) !important;
}

.sweet-intro__skip {
  color: #b84f76 !important;
  border-color: rgba(255,122,168,.30) !important;
  background: rgba(255, 242, 247, .84) !important;
}

.sweet-intro__skip:hover {
  color: #96385e !important;
  background: #ffe7f0 !important;
}

@keyframes sweetCandyWord {
  0% {
    opacity: 0;
    transform: translateY(42px) rotateX(68deg) rotate(-7deg) scale(.72);
    filter: blur(8px);
  }
  48% {
    opacity: 1;
    transform: translateY(-10px) rotateX(0deg) rotate(4deg) scale(1.08);
    filter: blur(0);
  }
  68% {
    transform: translateY(4px) rotate(-2deg) scale(.98);
  }
  84% {
    transform: translateY(-3px) rotate(1deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes sweetUnderline {
  to { transform: scaleX(1); }
}

/* Sweet intro v3: unified story-driven palette and narrative reveal. */
.sweet-intro {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 246, 232, .92), transparent 35%),
    radial-gradient(circle at 34% 30%, rgba(250, 167, 173, .22), transparent 30%),
    radial-gradient(circle at 70% 62%, rgba(255, 207, 139, .24), transparent 34%),
    radial-gradient(circle at 23% 78%, rgba(107, 190, 104, .16), transparent 30%),
    linear-gradient(135deg, #fffaf5 0%, #fff2ee 42%, #f6efe4 100%) !important;
}

.sweet-intro__card {
  background: linear-gradient(145deg, rgba(255,253,248,.82), rgba(255,244,238,.70)) !important;
  border-color: rgba(234, 202, 186, .70) !important;
  box-shadow: 0 38px 100px rgba(91, 57, 44, .16), inset 0 1px 0 rgba(255,255,255,.86) !important;
}

.sweet-intro__card:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 72px;
  width: min(520px, 70vw);
  height: 1px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(210,129,112,.34), rgba(84,164,82,.22), transparent);
  animation: sweetStoryLine 1.15s ease .65s forwards;
}

.sweet-intro__mark {
  box-shadow: 0 18px 46px rgba(210, 129, 112, .15), 0 10px 28px rgba(85,183,74,.10) !important;
}

.sweet-intro__eyebrow {
  color: #a36f62 !important;
  letter-spacing: 4px !important;
}

.sweet-intro__text--story {
  max-width: 680px;
  gap: 8px 12px !important;
  color: #2e332d;
}

.sweet-intro__text--story .story-word {
  opacity: 0;
  color: #2e332d !important;
  transform: translateY(18px);
  filter: blur(5px);
  animation: sweetStoryWord .9s cubic-bezier(.2,.86,.2,1) forwards !important;
  text-shadow: none !important;
}

.sweet-intro__text--story .story-word--life {
  animation-delay: .94s !important;
}

.sweet-intro__text--story .story-word--need {
  animation-delay: 1.34s !important;
  color: #6f5d50 !important;
  font-weight: 850 !important;
}

.sweet-intro__text--story .story-word--daily {
  animation-delay: 1.72s !important;
  color: #c77668 !important;
}

.sweet-intro__text--story .story-word--search {
  animation-delay: 2.08s !important;
  color: #8d6a45 !important;
}

.sweet-intro__text--story .story-word--sweet {
  animation-delay: 2.48s !important;
  display: block;
  width: 100%;
  margin-top: 8px;
  color: transparent !important;
  background: linear-gradient(92deg, #e86f8e 0%, #d88965 42%, #56a84e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none !important;
}

.sweet-intro__text--story .story-word--sweet:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #56a84e;
  box-shadow: -28px 10px 0 rgba(232,111,142,.72), 28px 10px 0 rgba(216,137,101,.72);
  opacity: 0;
  transform: translateX(-50%) translateY(10px) scale(.6);
  animation: sweetStoryDots .68s cubic-bezier(.2,1.1,.2,1) 2.78s forwards;
}

.sweet-intro__text--story .story-word--sweet:after {
  bottom: -10px !important;
  left: 18% !important;
  right: 18% !important;
  height: 8px !important;
  background: linear-gradient(90deg, rgba(232,111,142,.20), rgba(216,137,101,.28), rgba(86,168,78,.18)) !important;
  animation-delay: 3.02s !important;
}

.sweet-intro__glow--one {
  background: radial-gradient(circle, rgba(232,111,142,.26), transparent 68%) !important;
}

.sweet-intro__glow--two {
  background: radial-gradient(circle, rgba(216,137,101,.24), transparent 68%) !important;
}

.sweet-intro__orbit i,
.sweet-intro__particle {
  background: #d88965 !important;
  box-shadow: 0 0 0 8px rgba(216,137,101,.10) !important;
}

.sweet-intro__orbit i:nth-child(2),
.sweet-intro__particle--two {
  background: #56a84e !important;
  box-shadow: 0 0 0 8px rgba(86,168,78,.10) !important;
}

.sweet-intro__orbit i:nth-child(3) {
  background: #e86f8e !important;
  box-shadow: 0 0 0 8px rgba(232,111,142,.10) !important;
}

.sweet-intro__skip {
  color: #9b5f52 !important;
  border-color: rgba(216,137,101,.26) !important;
  background: rgba(255, 247, 240, .86) !important;
}

.sweet-intro__skip:hover {
  color: #80483e !important;
  background: #fff0e7 !important;
}

@keyframes sweetStoryLine {
  to { transform: translateX(-50%) scaleX(1); }
}

@keyframes sweetStoryWord {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(.96);
    filter: blur(7px);
  }
  52% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes sweetStoryDots {
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Sweet intro v4: narrative typewriter with staged gradient color. */
.sweet-intro__typewrap {
  position: relative;
  width: min(680px, calc(100vw - 72px));
  min-height: 132px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sweet-intro__typewriter {
  position: relative;
  min-height: 72px;
  color: transparent;
  font-size: clamp(28px, 5.2vw, 54px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: 0;
  background: linear-gradient(92deg, #35382f 0%, #6f5d50 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transition: background .72s ease, filter .72s ease;
}

.sweet-intro__typewriter:after {
  content: "";
  display: inline-block;
  width: 3px;
  height: .92em;
  margin-left: 6px;
  border-radius: 999px;
  background: currentColor;
  vertical-align: -.08em;
  animation: sweetCaret 1s steps(2, jump-none) infinite;
}

.sweet-intro.stage-life .sweet-intro__typewriter {
  background-image: linear-gradient(92deg, #35382f 0%, #8a6a55 100%) !important;
}

.sweet-intro.stage-need .sweet-intro__typewriter {
  background-image: linear-gradient(92deg, #4d4438 0%, #c47a65 100%) !important;
}

.sweet-intro.stage-search .sweet-intro__typewriter {
  background-image: linear-gradient(92deg, #7a5949 0%, #d58a65 46%, #e6a758 100%) !important;
}

.sweet-intro.stage-sweet .sweet-intro__typewriter {
  background-image: linear-gradient(92deg, #e86f8e 0%, #d88965 46%, #56a84e 100%) !important;
  filter: drop-shadow(0 14px 30px rgba(232,111,142,.16));
}

.sweet-intro.stage-sweet .sweet-intro__typewrap:after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 12px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232,111,142,.18), rgba(216,137,101,.24), rgba(86,168,78,.16));
  transform-origin: left center;
  animation: sweetUnderline .72s cubic-bezier(.18,.9,.18,1) forwards;
}

.sweet-intro__hint {
  margin-top: 14px;
  color: #a36f62;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  animation: sweetRise .68s ease 3.9s forwards;
}

.sweet-intro.stage-sweet .sweet-intro__hint {
  color: #b85f75;
}

@keyframes sweetCaret {
  0%, 42% { opacity: 1; }
  43%, 100% { opacity: .18; }
}

@media screen and (max-width: 768px) {
  .sweet-intro__typewrap {
    width: min(330px, calc(100vw - 52px));
    min-height: 150px;
  }
  .sweet-intro__typewriter {
    min-height: 112px;
  }
}

/* Sweet intro v5: calmer type, pink playful sweet bounce. */
.sweet-intro__typewrap {
  width: min(760px, calc(100vw - 72px)) !important;
  min-height: 150px !important;
}

.sweet-intro__typewriter {
  min-height: 82px !important;
  color: #463d35 !important;
  font-size: clamp(26px, 4.4vw, 48px) !important;
  line-height: 1.36 !important;
  font-weight: 920 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  transition: color .5s ease, text-shadow .5s ease, filter .5s ease !important;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.sweet-intro__typewriter:after {
  background: #d7878d !important;
  height: .86em !important;
}

.sweet-intro.stage-life .sweet-intro__typewriter {
  color: #3f3b34 !important;
}

.sweet-intro.stage-need .sweet-intro__typewriter {
  color: #72574c !important;
}

.sweet-intro.stage-search .sweet-intro__typewriter {
  color: #b16d64 !important;
}

.sweet-intro.stage-sweet .sweet-intro__typewriter,
.sweet-intro.stage-complete .sweet-intro__typewriter {
  color: #4b3a35 !important;
  filter: none !important;
}

.sweet-intro.stage-complete .sweet-intro__typewriter:after {
  opacity: 0 !important;
  animation: none !important;
}

.sweet-hop,
.sweet-flavor {
  display: inline-block;
  position: relative;
}

.sweet-hop {
  color: transparent !important;
  background: linear-gradient(180deg, #ff7fab 0%, #e95483 58%, #c9446f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 14px 28px rgba(233, 84, 131, .18);
  transform-origin: 50% 90%;
  animation: sweetHopOut 1.05s cubic-bezier(.18,1.18,.22,1) forwards;
}

.sweet-hop--two {
  animation-delay: .14s;
}

.sweet-flavor {
  margin-left: 2px;
  color: #c97862 !important;
  text-shadow: 0 12px 26px rgba(201, 120, 98, .13);
  animation: sweetFlavorSettle .72s ease .36s both;
}

.sweet-intro.stage-complete .sweet-intro__typewrap:after,
.sweet-intro.stage-sweet .sweet-intro__typewrap:after {
  left: 20% !important;
  right: 20% !important;
  bottom: 8px !important;
  background: linear-gradient(90deg, rgba(255,127,171,.24), rgba(233,84,131,.30), rgba(201,120,98,.20)) !important;
}

.sweet-intro.stage-complete .sweet-intro__hint {
  color: #bd667a !important;
}

@keyframes sweetHopOut {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  30% {
    transform: translateY(-30px) rotate(-9deg) scale(1.18);
  }
  52% {
    transform: translateY(-18px) rotate(8deg) scale(1.08);
  }
  74% {
    transform: translateY(5px) rotate(-2deg) scale(.98);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes sweetFlavorSettle {
  0% { opacity: .72; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 768px) {
  .sweet-intro__typewrap {
    width: min(342px, calc(100vw - 52px)) !important;
    min-height: 172px !important;
  }
  .sweet-intro__typewriter {
    min-height: 122px !important;
    font-size: clamp(25px, 8vw, 34px) !important;
  }
}

/* Sweet intro v6: clean text color, playful sweet bounce, comet heart. */
.sweet-intro__typewriter,
.sweet-intro.stage-life .sweet-intro__typewriter,
.sweet-intro.stage-need .sweet-intro__typewriter,
.sweet-intro.stage-search .sweet-intro__typewriter,
.sweet-intro.stage-sweet .sweet-intro__typewriter,
.sweet-intro.stage-complete .sweet-intro__typewriter {
  color: #e96f9a !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  filter: none !important;
  text-shadow: 0 12px 28px rgba(233,111,154,.16), 0 1px 0 rgba(255,255,255,.76) !important;
}

.sweet-intro.stage-life .sweet-intro__typewriter {
  color: #c8758a !important;
}

.sweet-intro.stage-need .sweet-intro__typewriter {
  color: #dd7894 !important;
}

.sweet-intro.stage-search .sweet-intro__typewriter {
  color: #e17496 !important;
}

.sweet-intro__typewriter:after {
  background: #ee85ad !important;
}

.sweet-hop {
  color: #ff5f9a !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  text-shadow: 0 14px 30px rgba(255,95,154,.22), 0 1px 0 rgba(255,255,255,.78) !important;
  animation: sweetHopOut 1.04s cubic-bezier(.18,1.18,.22,1) forwards, sweetWiggle 1.6s ease-in-out 1.05s infinite !important;
}

.sweet-hop--two {
  color: #ff76aa !important;
  animation-delay: .12s, 1.18s !important;
}

.sweet-flavor {
  color: #d77491 !important;
  text-shadow: 0 12px 26px rgba(215,116,145,.15), 0 1px 0 rgba(255,255,255,.78) !important;
}

.sweet-heart {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 30px;
  margin-left: 10px;
  vertical-align: -.14em;
  opacity: 0;
  transform: translate(-22px, 22px) rotate(-18deg) scale(.55);
  animation: sweetHeartComet 1.15s cubic-bezier(.18,1.15,.22,1) .46s forwards;
}

.sweet-heart i,
.sweet-heart i:before,
.sweet-heart i:after {
  position: absolute;
  display: block;
  content: "";
  background: #ff6f9f;
}

.sweet-heart i {
  left: 9px;
  top: 9px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border-radius: 4px 3px 4px 3px;
  box-shadow: 0 10px 22px rgba(255,111,159,.26);
}

.sweet-heart i:before {
  left: -8px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.sweet-heart i:after {
  left: 0;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.sweet-heart:before {
  content: "";
  position: absolute;
  right: 23px;
  top: 17px;
  width: 56px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,111,159,.58), rgba(255,202,112,.46));
  transform-origin: right center;
  transform: rotate(-12deg) scaleX(0);
  animation: sweetMeteorTrail .72s ease .42s forwards;
}

.sweet-heart:after {
  content: "✦";
  position: absolute;
  right: -10px;
  top: -8px;
  color: #ffc86d;
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  transform: scale(.45) rotate(-16deg);
  text-shadow: 0 0 14px rgba(255,200,109,.50);
  animation: sweetStarPop .74s cubic-bezier(.18,1.15,.22,1) .88s forwards;
}

.sweet-intro.stage-complete .sweet-intro__typewrap:after,
.sweet-intro.stage-sweet .sweet-intro__typewrap:after {
  left: 24% !important;
  right: 24% !important;
  bottom: 8px !important;
  background: linear-gradient(90deg, rgba(255,111,159,.20), rgba(255,153,184,.26), rgba(215,116,145,.18)) !important;
}

@keyframes sweetWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-3px) rotate(-2deg) scale(1.02); }
}

@keyframes sweetHeartComet {
  0% { opacity: 0; transform: translate(-30px, 24px) rotate(-22deg) scale(.45); }
  54% { opacity: 1; transform: translate(8px, -13px) rotate(10deg) scale(1.08); }
  74% { transform: translate(-2px, 4px) rotate(-6deg) scale(.94); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
}

@keyframes sweetMeteorTrail {
  0% { opacity: 0; transform: rotate(-12deg) scaleX(0); }
  42% { opacity: 1; transform: rotate(-12deg) scaleX(1); }
  100% { opacity: 0; transform: rotate(-12deg) scaleX(.25); }
}

@keyframes sweetStarPop {
  0% { opacity: 0; transform: scale(.45) rotate(-16deg); }
  58% { opacity: 1; transform: scale(1.22) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@media screen and (max-width: 768px) {
  .sweet-heart {
    width: 28px;
    height: 26px;
    margin-left: 6px;
  }
  .sweet-heart:before {
    width: 42px;
  }
}

/* Sweet intro v7: remove eyebrow and visible enter button. */
.sweet-intro__eyebrow,
.sweet-intro__skip {
  display: none !important;
}

.sweet-intro__mark {
  margin-bottom: 22px !important;
}

.sweet-intro__typewrap {
  margin-top: 0 !important;
}
