.mobile-task-dialog {
  width: min(430px, calc(100vw - 20px));
  max-width: 430px;
  height: min(860px, calc(100dvh - 20px));
  max-height: calc(100dvh - 20px);
  padding: 0;
  color: #eef7ff;
  border: 1px solid rgba(126, 149, 184, .28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(12, 20, 38, .98), rgba(4, 9, 20, .99)),
    #07101f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .44);
}

.mobile-task-dialog::backdrop {
  background: rgba(4, 8, 17, .7);
  backdrop-filter: blur(8px);
}

.mobile-task-form {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  min-width: 0;
}

.mobile-task-form > header {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(126, 149, 184, .16);
}

.mobile-task-form > header span,
.mobile-task-form > header small,
.mobile-task-panel label span,
.mobile-task-card small,
.mobile-task-summary span {
  color: rgba(220, 235, 252, .68);
  font-size: 12px;
  font-weight: 900;
}

.mobile-task-form > header strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 1.1;
}

.mobile-task-form > header small {
  max-width: 280px;
  line-height: 1.5;
}

.mobile-task-head-actions { display: inline-flex; align-items: center; gap: 8px; }
.mobile-task-form .icon-close { position: static; display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; color: #dcecff; border: 1px solid rgba(126, 149, 184, .24); border-radius: 12px; background: rgba(255, 255, 255, .08); }

.mobile-task-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 18px 10px;
}

.mobile-task-steps button {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: rgba(220, 235, 252, .54);
  border: 0;
  background: transparent;
  font-weight: 900;
}

.mobile-task-steps b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: rgba(220, 235, 252, .68);
  border: 1px solid rgba(126, 149, 184, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.mobile-task-steps .active {
  color: #5fe6ff;
}

.mobile-task-steps .active b,
.mobile-task-steps .done b {
  color: #fff;
  border-color: rgba(49, 192, 255, .72);
  background: linear-gradient(135deg, #138bff, #8d3cff);
  box-shadow: 0 0 22px rgba(35, 163, 255, .32);
}

.mobile-task-form main {
  min-width: 0;
  overflow: auto;
  padding: 8px 18px 18px;
}

.mobile-task-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.mobile-task-panel h2 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
}

.mobile-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.mobile-task-card {
  position: relative;
  display: block;
  min-width: 0;
}

.mobile-task-card input {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  accent-color: #38c7ff;
}

.mobile-task-card span {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 82px;
  min-width: 0;
  padding: 14px 34px 14px 14px;
  border: 1px solid rgba(126, 149, 184, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}

.mobile-task-card input:checked + span {
  border-color: #238dff;
  background: rgba(24, 82, 185, .12);
  box-shadow: inset 0 0 0 1px rgba(87, 66, 255, .18), 0 10px 22px rgba(0, 0, 0, .12);
}

.mobile-task-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 14px;
}

.mobile-task-card small {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.mobile-task-panel label:not(.mobile-task-card) {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mobile-task-panel input:not([type]),
.mobile-task-panel input[type="text"],
.mobile-task-panel textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  color: #f8fbff;
  border: 1px solid rgba(126, 149, 184, .24);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, .08);
  font-size: 14px;
}

.mobile-task-panel textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.mobile-task-panel input:focus,
.mobile-task-panel textarea:focus {
  border-color: #40ceff;
  box-shadow: 0 0 0 3px rgba(64, 206, 255, .14);
}

.mobile-template-strip {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mobile-template-strip .mobile-task-card {
  flex: 0 0 220px;
}

.mobile-task-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(126, 149, 184, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}

.mobile-task-summary div {
  min-width: 0;
}

.mobile-task-summary strong {
  display: block;
  min-width: 0;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 14px;
}

.mobile-task-form > footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(126, 149, 184, .16);
  background: rgba(5, 10, 22, .96);
}

.mobile-task-form > footer button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}

.mobile-task-form > footer [data-mobile-next],
.mobile-task-form > footer [data-mobile-task-submit] {
  grid-column: 1 / -1;
}

.mobile-task-form > footer [data-mobile-next] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mobile-task-form > footer [data-mobile-next] i { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .mobile-task-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    color: #f7fbff;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 78% 9%, rgba(42, 72, 230, .14), transparent 30%),
      radial-gradient(circle at 10% 22%, rgba(29, 222, 255, .035), transparent 28%),
      linear-gradient(180deg, #01040d 0%, #031023 45%, #020712 100%);
    box-shadow: none;
  }

  .mobile-task-dialog::backdrop {
    background: #020713;
    backdrop-filter: none;
  }

  .mobile-task-form {
    grid-template-rows: 154px 64px minmax(0, 1fr) auto;
    background: transparent;
  }

  .mobile-task-form > header {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 0 14px;
    border-bottom: 0;
  }

  .mobile-task-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    max-width: 260px;
    margin-top: 22px;
  }

  .mobile-task-form > header .mobile-task-hero-copy strong {
    color: #fff;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: 0;
  }

  .mobile-task-form > header .mobile-brand-lockup strong {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    letter-spacing: 0;
  }

  .mobile-task-form > header .mobile-bell:focus {
    outline: 0;
  }

  .mobile-task-form > header .mobile-bell {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-task-hero-copy small { display: inline-flex; align-items: center; gap: 4px; color: rgba(226, 234, 255, .68); font-size: 10.8px; font-weight: 700; line-height: 1.4; }
  .mobile-task-hero-copy small i { width: 13px; height: 13px; color: #a76dff; }

  .mobile-task-hero-orb {
    position: absolute;
    z-index: 0;
    right: -10px;
    top: 36px;
    width: 174px;
    max-width: none;
    mix-blend-mode: screen;
    pointer-events: none;
  }

  .mobile-task-form .icon-close { display: grid; width: 32px; height: 32px; border-radius: 999px; color: rgba(236, 245, 255, .9); background: rgba(255, 255, 255, .08); box-shadow: none; }

  .mobile-task-steps {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 8px 28px 5px;
  }

  .mobile-task-steps::before {
    content: "";
    position: absolute;
    top: 29px;
    right: 76px;
    left: 76px;
    border-top: 1px dashed rgba(151, 165, 204, .38);
  }

  .mobile-task-steps button {
    position: relative;
    z-index: 1;
    gap: 7px;
    color: rgba(220, 229, 252, .6);
    font-size: 12.5px;
    font-weight: 740;
  }

  .mobile-task-steps b {
    width: 34px;
    height: 34px;
    color: rgba(225, 234, 255, .66);
    border-color: rgba(118, 139, 186, .4);
    background: rgba(15, 27, 51, .9);
  }

  .mobile-task-steps .active {
    color: #38d4ff;
  }

  .mobile-task-steps .active b,
  .mobile-task-steps .done b {
    border-color: rgba(56, 211, 255, .9);
    background: linear-gradient(135deg, #147cff, #7f35ff);
    box-shadow: 0 0 22px rgba(43, 149, 255, .42);
  }

  .mobile-task-form main {
    overflow: auto;
    padding: 0 8px 8px;
  }

  .mobile-task-panel {
    gap: 8px;
  }

  .mobile-task-panel[hidden] {
    display: none !important;
  }

  .mobile-task-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 8px;
    min-width: 0;
    align-items: start;
  }

  .mobile-task-left-stack {
    display: grid;
    gap: 8px;
    min-width: 0;
  }

  .mobile-task-select-panel,
  .mobile-task-overview,
  .mobile-task-template-panel {
    min-width: 0;
    border: 1px solid rgba(106, 133, 188, .26);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(8, 22, 46, .76), rgba(4, 14, 31, .9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 10px 22px rgba(0, 0, 0, .18);
  }

  .mobile-task-select-panel {
    padding: 7px;
  }

  .mobile-task-select-panel h2,
  .mobile-task-overview h2,
  .mobile-task-template-panel h2 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 6px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 850;
    line-height: 1;
  }

  .mobile-task-template-panel h2 i {
    width: 14px;
    height: 14px;
  }

  .mobile-task-select-panel h2 i {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    border: 1px solid rgba(222, 233, 255, .34);
    border-radius: 50%;
    color: rgba(222, 233, 255, .66);
    font-size: 9px;
    font-style: normal;
  }

  .mobile-task-grid {
    gap: 5px;
  }

  .industry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .goal-grid,
  .platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mobile-task-card span {
    position: relative;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-height: 49px;
    padding: 6px 4px;
    text-align: center;
    border-color: rgba(112, 137, 188, .2);
    border-radius: 7px;
    background: rgba(12, 26, 50, .72);
  }

  .platform-grid .mobile-task-card span {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 67px;
    padding: 7px 4px 6px;
    text-align: center;
  }

  .platform-grid .mobile-task-card small {
    display: block;
    max-width: 100%;
    color: rgba(222, 233, 255, .6);
    font-size: 8.2px;
    font-weight: 720;
    line-height: 1.16;
  }

  .mobile-task-card input {
    top: 7px;
    right: 7px;
    width: 14px;
    height: 14px;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-task-card span::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    display: none;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 1px solid rgba(219, 229, 247, .46);
    border-radius: 50%;
    background: rgba(9, 18, 36, .44);
  }

  .mobile-task-card input:checked + span::after {
    display: grid;
    place-items: center;
    content: "";
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #39a4ff, #5c66ff);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7.2 5.8 10 11 4' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(135deg, #39a4ff, #5c66ff);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px 10px, cover;
    box-shadow: 0 6px 14px rgba(52, 108, 255, .42);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
  }

  .platform-grid .mobile-task-card span::after {
    display: block;
    border-radius: 4px;
  }

  .mobile-task-card strong {
    color: #fff;
    overflow-wrap: normal;
    word-break: keep-all;
    font-size: 10.5px;
    font-weight: 760;
    line-height: 1.12;
  }

  .mobile-task-card small {
    color: rgba(222, 233, 255, .62);
    font-size: 9px;
    line-height: 1.25;
  }

  .industry-grid .mobile-task-card small,
  .goal-grid .mobile-task-card small {
    display: none;
  }

  .mobile-task-symbol,
  .mobile-task-symbol-img,
  .mobile-task-platform-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 9px;
    color: #55dcff;
    background: rgba(40, 122, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  }

  .mobile-task-platform-icon {
    object-fit: contain;
    padding: 4px;
  }

  .mobile-task-symbol-img {
    width: 31px;
    height: 31px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 0 8px rgba(60, 206, 255, .28));
  }

  .goal-grid .mobile-task-symbol-img {
    width: 29px;
    height: 29px;
  }

  .platform-grid .mobile-task-platform-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
  }

  .mobile-task-symbol::before {
    content: none;
    font-size: 15px;
    line-height: 1;
  }

  .mobile-task-symbol.hotpot::before,
  .mobile-task-symbol.beauty::before,
  .mobile-task-symbol.education::before,
  .mobile-task-symbol.store::before,
  .mobile-task-symbol.local::before,
  .mobile-task-symbol.retail::before,
  .mobile-task-symbol.hotel::before,
  .mobile-task-symbol.auto::before,
  .mobile-task-symbol.lead::before,
  .mobile-task-symbol.eye::before,
  .mobile-task-symbol.flame::before,
  .mobile-task-symbol.pin::before,
  .mobile-task-symbol.growth::before { content: none; }

  .mobile-task-overview {
    align-self: stretch;
    display: grid;
    gap: 3px;
    padding: 7px 6px;
  }

  .mobile-task-overview div {
    position: relative;
    min-height: 32px;
    padding: 5px 28px 5px 6px;
    border: 1px solid rgba(112, 137, 188, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
  }

  .mobile-task-overview div > span,
  .mobile-task-overview > small {
    color: rgba(222, 233, 255, .58);
    font-size: 9.5px;
    font-weight: 700;
  }

  .mobile-task-overview > small i {
    display: inline-block;
    width: 11px;
    height: 11px;
    vertical-align: -2px;
  }

  .mobile-task-overview div > strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 10.5px;
    font-weight: 820;
    line-height: 1.1;
  }

  .mobile-task-overview .mobile-task-symbol {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
  }

  .mobile-task-template-panel {
    padding: 7px;
  }

  .mobile-task-template-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  .mobile-task-template-panel > header button {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: rgba(223, 233, 255, .68);
    border: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 740;
  }

  .mobile-task-template-panel > header button i {
    width: 12px;
    height: 12px;
  }

  .mobile-template-strip {
    display: flex;
    gap: 6px;
    overflow: hidden;
    padding: 0;
  }

  .mobile-template-card {
    position: relative;
    display: block;
    flex: 0 0 31%;
    min-width: 0;
  }

  .mobile-template-card input {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 14px;
    height: 14px;
    accent-color: #3dbdff;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-template-card span {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: end;
    min-height: 78px;
    padding: 24px 6px 25px;
    border: 1px solid rgba(112, 137, 188, .22);
    border-radius: 9px;
    background: rgba(255, 255, 255, .05);
  }

  .mobile-template-card input:checked + span {
    border-color: #2fc7ff;
    box-shadow: inset 0 0 0 1px rgba(138, 67, 255, .28);
  }

  .mobile-template-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
  }

  .mobile-template-card span::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent, rgba(3, 8, 18, .88));
  }

  .mobile-template-card b,
  .mobile-template-card em,
  .mobile-template-card strong,
  .mobile-template-card small {
    position: relative;
    z-index: 1;
  }

  .mobile-template-card b,
  .mobile-template-card em {
    position: absolute;
    top: 6px;
    z-index: 2;
    padding: 1px 5px;
    color: #fff;
    border-radius: 5px;
    background: rgba(0, 0, 0, .46);
    font-size: 10px;
    font-style: normal;
  }

  .mobile-template-card b {
    left: 6px;
  }

  .mobile-template-card em {
    right: 24px;
  }

  .mobile-template-card strong {
    color: #fff;
    font-size: 10.8px;
    font-weight: 800;
    line-height: 1.15;
  }

  .mobile-template-card small {
    margin-top: 4px;
    color: rgba(233, 239, 255, .7);
    font-size: 9.5px;
    line-height: 1.2;
  }

  .mobile-task-dialog[data-mobile-task-step="1"] .mobile-task-form > footer [data-mobile-prev],
  .mobile-task-dialog[data-mobile-task-step="1"] .mobile-task-form > footer [data-mobile-task-save] {
    display: none;
  }

  .mobile-task-form > footer {
    grid-template-columns: 1fr;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    border-top: 0;
    background:
      linear-gradient(180deg, rgba(3, 9, 20, 0), rgba(3, 9, 20, .98) 28%);
  }

  .mobile-task-form > footer button {
    min-height: 52px;
    border-radius: 13px;
  }

  .mobile-task-form > footer [hidden] {
    display: none !important;
  }

  .mobile-task-form > footer [data-mobile-next],
  .mobile-task-form > footer [data-mobile-task-submit] {
    color: #fff;
    border: 0;
    background: linear-gradient(100deg, #2b9cff, #3f68ff 45%, #9a31ff);
    box-shadow: 0 18px 38px rgba(67, 85, 255, .32);
    font-size: 18px;
    font-weight: 860;
  }

  @media (min-height: 820px) {
    .industry-grid .mobile-task-card span {
      min-height: 78px;
    }

    .goal-grid .mobile-task-card span {
      min-height: 76px;
    }

    .industry-grid .mobile-task-symbol-img {
      width: 36px;
      height: 36px;
    }

    .goal-grid .mobile-task-symbol-img {
      width: 34px;
      height: 34px;
    }
  }
}

@media (min-width: 761px) {
  .mobile-task-dialog {
    display: none;
  }
}

@media (max-width: 390px) {
  .mobile-task-panel:not([data-mobile-task-step="1"]) .mobile-task-grid,
  .mobile-task-summary {
    grid-template-columns: 1fr;
  }

  .industry-grid,
  .goal-grid,
  .platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
