.mobile-task-list-dialog {
  width: min(430px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  inset: 0 auto auto 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: #020817;
  color: #f8fbff;
}

.mobile-task-list-dialog::backdrop {
  background: #020817;
}

body.mobile-task-list-mode {
  overflow: hidden;
  background: #020817;
}

.mobile-task-list-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 15px 14px 18px;
  background:
    radial-gradient(circle at 78% 12%, rgba(42, 84, 255, .48), transparent 25%),
    radial-gradient(circle at 15% 42%, rgba(21, 165, 255, .18), transparent 34%),
    linear-gradient(180deg, #030916 0%, #06132a 58%, #020817 100%);
  color: #f8fbff;
  font-family: "DIN Alternate", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.mobile-task-list-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), rgba(0, 0, 0, .35) 70%, transparent);
}

.mobile-task-contract-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mobile-task-top,
.mobile-task-hero,
.mobile-task-generator,
.mobile-task-list-card,
.mobile-task-ai-advice,
.mobile-task-input-card,
.mobile-task-config-card {
  min-width: 0;
}

.mobile-task-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.mobile-task-top .mobile-brand-lockup {
  display: inline-grid;
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mobile-task-top .mobile-brand-lockup:has(.mobile-brand-logo-full) {
  display: inline-flex;
  grid-template-columns: none;
}

.mobile-task-top .mobile-brand-lockup img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 14px rgba(39, 213, 255, .72));
}

.mobile-task-top .mobile-brand-lockup .mobile-brand-logo-full {
  width: min(178px, 56vw);
  height: auto;
  max-height: 60px;
}

.mobile-task-top .mobile-brand-lockup strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.mobile-task-top .mobile-brand-lockup em {
  color: #9cefff;
  font-style: normal;
}

.mobile-task-record {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.mobile-task-record i { width: 15px; height: 15px; color: #dbe7ff; }

.mobile-task-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: start;
  min-height: 96px;
  margin-top: 0;
}

.mobile-task-hero h1 {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .38);
}

.mobile-task-hero h1 i {
  width: 22px;
  height: 22px;
  color: #43e4ff;
  filter: drop-shadow(0 0 22px rgba(87, 106, 255, .9));
}

.mobile-task-hero p {
  position: relative;
  z-index: 1;
  margin: 5px 0 0;
  color: rgba(235, 243, 255, .78);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.mobile-task-hero img {
  position: absolute;
  top: -4px;
  right: 2px;
  width: 132px;
  height: 102px;
  object-fit: contain;
  mix-blend-mode: screen;
  pointer-events: none;
  clip-path: inset(0 0 12px 0);
  -webkit-mask-image: radial-gradient(ellipse at 58% 48%, #000 58%, rgba(0, 0, 0, .72) 76%, transparent 96%);
  mask-image: radial-gradient(ellipse at 58% 48%, #000 58%, rgba(0, 0, 0, .72) 76%, transparent 96%);
  filter: drop-shadow(0 18px 32px rgba(39, 81, 255, .44));
}

.mobile-task-generator {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .94fr);
  gap: 7px;
}

.mobile-task-input-card,
.mobile-task-config-card,
.mobile-task-list-card,
.mobile-task-ai-advice {
  border: 1px solid rgba(128, 166, 226, .25);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(22, 42, 76, .8), rgba(7, 17, 38, .84)),
    rgba(255, 255, 255, .04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 12px 28px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
}

.mobile-task-input-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 8px;
}

.mobile-task-input-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.mobile-task-input-card strong,
.mobile-task-config-card h2 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.mobile-task-input-card strong i,
.mobile-task-config-card h2 i {
  width: 15px;
  height: 15px;
  color: #e7f9ff;
  flex: 0 0 auto;
}

.mobile-task-input-card header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-task-input-card header button i {
  width: 14px;
  height: 14px;
}

.mobile-task-input-card header button,
.mobile-task-input-card div button {
  border: 1px solid rgba(111, 148, 214, .34);
  border-radius: 999px;
  background: rgba(18, 42, 82, .86);
  color: rgba(242, 248, 255, .82);
  font-size: 10px;
  font-weight: 800;
}

.mobile-task-input-card header button {
  min-height: 24px;
  padding: 0 7px;
}

.mobile-task-input-card label {
  position: relative;
  display: block;
}

.mobile-task-input-card textarea {
  width: 100%;
  height: 58px;
  resize: none;
  border: 1px solid rgba(142, 167, 219, .28);
  border-radius: 9px;
  padding: 10px 9px 20px;
  background: rgba(3, 13, 31, .42);
  color: rgba(235, 243, 255, .62);
  font: 700 11px/1.45 "PingFang SC", sans-serif;
}

.mobile-task-input-card small {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(235, 243, 255, .62);
  font-size: 10px;
  font-weight: 800;
}

.mobile-task-input-card p {
  margin: 0;
  color: rgba(236, 244, 255, .78);
  font-size: 10px;
  font-weight: 800;
}

.mobile-task-input-card div {
  display: flex;
  gap: 5px;
  overflow: hidden;
}

.mobile-task-input-card div button {
  flex: 0 0 auto;
  height: 22px;
  min-height: 22px;
  padding: 0 7px;
  line-height: 1;
  white-space: nowrap;
}

.mobile-task-config-card {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 8px;
}

.mobile-task-config-card section {
  display: grid;
  gap: 5px;
}

.mobile-task-config-card h2 {
  font-size: 12px;
}

.mobile-task-option-grid,
.mobile-task-channel-grid {
  display: grid;
  gap: 4px;
}

.mobile-task-option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-task-option-grid button,
.mobile-task-channel-grid button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgba(111, 148, 214, .32);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: rgba(246, 249, 255, .82);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.mobile-task-option-grid button.active,
.mobile-task-channel-grid button.active {
  border-color: #28bdff;
  color: #fff;
  background: linear-gradient(145deg, rgba(27, 123, 255, .34), rgba(85, 63, 247, .3));
  box-shadow: inset 0 0 0 1px rgba(108, 77, 255, .7), 0 0 20px rgba(20, 159, 255, .2);
}

.mobile-task-option-grid button.active i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #6558ff;
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

.mobile-task-channel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-task-channel-grid button {
  gap: 3px;
  justify-content: flex-start;
  min-height: 30px;
  padding: 0 5px;
  font-size: 10px;
}

.mobile-task-channel-grid img {
  width: 16px;
  height: 16px;
  border-radius: 5px;
}

.mobile-task-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(100deg, #20adff 0%, #3b68ff 42%, #c936ff 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 18px 34px rgba(80, 63, 255, .28);
}

.mobile-task-generate i { width: 19px; height: 19px; filter: drop-shadow(0 0 12px rgba(255, 255, 255, .8)); }

.mobile-task-list-shell main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.mobile-task-list-summary {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mobile-task-list-summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  padding: 9px;
  background: rgba(255, 255, 255, .06);
}

.mobile-task-list-summary span {
  overflow: hidden;
  color: rgba(222, 235, 255, .68);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-task-list-summary strong {
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}

.mobile-task-results-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 5px;
}

.mobile-task-results-head h2,
.mobile-task-ai-advice h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
}

.mobile-task-results-head h2 i,
.mobile-task-ai-advice h2 i {
  width: 18px;
  height: 18px;
  color: #27d7ff;
}

.mobile-task-results-head button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: rgba(232, 240, 255, .68); font-size: 12px; font-weight: 800; }
.mobile-task-results-head button i { width: 13px; height: 13px; }

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

.mobile-task-list-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  padding: 6px;
}

.mobile-task-thumb {
  position: relative;
  width: 76px;
  height: 82px;
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
}

.mobile-task-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-task-thumb figcaption {
  position: absolute;
  left: 3px;
  bottom: 3px;
  border-radius: 6px;
  padding: 2px 5px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.mobile-task-result-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mobile-task-result-main header {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mobile-task-rank {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 5px;
  background: linear-gradient(135deg, #27afff, #7548ff);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.mobile-task-result-main h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-task-score {
  margin: 0;
  color: rgba(238, 244, 255, .72);
  font-size: 8px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.mobile-task-stars { display: inline-flex; gap: 1px; margin: 0 2px; vertical-align: -1px; }
.mobile-task-stars [data-icon].aiv-icon { width: 8px; height: 8px; color: #7a5cff; filter: drop-shadow(0 0 5px rgba(122, 92, 255, .5)); }
.mobile-task-stars .aiv-svg { fill: currentColor; stroke: currentColor; stroke-width: 1.35; }

.mobile-task-copy {
  display: -webkit-box;
  min-height: 25px;
  margin: 0;
  overflow: hidden;
  color: rgba(229, 238, 255, .76);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-task-result-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 6px;
  min-width: 0;
}

.mobile-task-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.mobile-task-platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  border: 1px solid rgba(117, 150, 212, .28);
  border-radius: 6px;
  padding: 0 5px 0 4px;
  background: rgba(4, 15, 34, .5);
  color: rgba(245, 249, 255, .86);
  font-size: 9px;
  font-weight: 850;
}

.mobile-task-platform-chip img {
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.mobile-task-list-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mobile-task-result-card .mobile-task-list-actions {
  justify-self: end;
  width: max-content;
  grid-template-columns: 40px 40px 46px;
  gap: 5px;
}

.mobile-task-list-actions button {
  min-width: 0;
  min-height: 26px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 900;
}

.mobile-task-ghost {
  border: 1px solid rgba(120, 150, 205, .28);
  background: rgba(5, 17, 38, .72);
  color: rgba(240, 247, 255, .9);
}

.mobile-task-ghost i {
  display: block;
  width: 12px;
  height: 12px;
  color: #fff;
}

.mobile-task-primary {
  border: 0;
  background: linear-gradient(135deg, #8e42ff, #315fff);
  color: #fff;
  font-size: 12px !important;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .36);
}

.mobile-task-list-actions button:disabled {
  opacity: .48;
}

.mobile-task-progress {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin: 0;
}

.mobile-task-progress span {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(211, 226, 255, .12);
}

.mobile-task-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22bdff, #6b48ff);
}

.mobile-task-progress small {
  display: none;
  min-width: 0;
  overflow: hidden;
  color: rgba(221, 232, 255, .52);
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-task-preview {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: #203247;
}

.mobile-task-preview header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.mobile-task-preview header {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mobile-task-preview span,
.mobile-task-preview dt,
.mobile-task-preview dd {
  color: #687b94;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.mobile-task-preview strong {
  min-width: 0;
  overflow: hidden;
  color: #203247;
  font-size: 15px;
  text-overflow: ellipsis;
}

.mobile-task-preview dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.mobile-task-preview dl div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.mobile-task-preview dt,
.mobile-task-preview dd {
  margin: 0;
}

.mobile-task-preview dd {
  min-width: 0;
  overflow: hidden;
  color: #42566d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-task-preview img,
.mobile-task-preview-empty {
  width: min(220px, 100%);
  justify-self: center;
  border-radius: 8px;
}

.mobile-task-preview img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.mobile-task-preview-empty,
.mobile-task-list-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px solid rgba(128, 166, 226, .25);
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, .04);
  color: rgba(223, 235, 255, .68);
  text-align: center;
}

.mobile-task-ai-advice {
  display: grid;
  gap: 11px;
  margin-top: 4px;
  padding: 14px 10px;
}

.mobile-task-ai-advice > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.mobile-task-ai-advice article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(127, 158, 213, .22);
  border-radius: 8px;
  padding: 9px 6px;
  background: rgba(255, 255, 255, .04);
}

.mobile-task-ai-advice i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #9339ff, #2bd9ff);
  color: #fff;
  font-size: 18px;
  font-style: normal;
  box-shadow: 0 0 18px rgba(101, 88, 255, .35);
}

.mobile-task-ai-advice p {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
}

.mobile-task-ai-advice strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-task-ai-advice span {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(228, 238, 255, .66);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-task-ai-advice b {
  justify-self: start;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(94, 82, 255, .22);
  color: #b9c3ff;
  font-size: 9px;
  font-weight: 900;
}

.mobile-task-ai-advice article:nth-child(3) b {
  background: rgba(35, 201, 164, .18);
  color: #66f0cd;
}

.mobile-task-disclaimer {
  margin: 1px 0 0;
  color: rgba(218, 229, 250, .58);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.mobile-task-disclaimer i { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; }
