:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #101828;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e5e9f0;
  --deep: #111827;
  --primary: #5b68e8;
  --primary-2: #18b7a7;
  --glass: #ffffff;
  --glass-strong: #ffffff;
  --glass-line: rgba(229, 233, 240, 0.92);
  --glass-shadow: 0 18px 42px rgba(31, 45, 74, 0.08);
  --danger: #c2415d;
  --radius: 22px;
  --shadow: 0 22px 62px rgba(31, 45, 74, 0.10);
  --font: Inter, "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --workbench-home-bg: url("/assets/workbench-bg/home-control-scene.svg");
  --workbench-project-bg: url("/assets/workbench-bg/project-studio-scene.svg");
  --workbench-compare-bg: url("/assets/workbench-bg/compare-gallery-scene.svg");
  --workbench-chat-bg: url("/assets/workbench-bg/chat-feedback-scene.svg");
  --workbench-create-bg: url("/assets/workbench-bg/create-page-scene.svg");
  --workbench-works-bg: url("/assets/workbench-bg/works-page-scene.svg");
  --workbench-tasks-bg: url("/assets/workbench-bg/tasks-page-scene.svg");
}

#createView .category-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#createView .category-card {
  min-height: 86px;
  border-radius: 10px;
  padding: 12px;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon desc";
  align-items: center;
  align-content: center;
  gap: 4px 10px;
}

#createView .category-card .module-icon {
  grid-area: icon;
  width: 36px;
  height: 36px;
  font-size: 13px;
}

#createView .category-card strong {
  grid-area: title;
  font-size: 15px;
  line-height: 1.25;
}

#createView .category-card span {
  grid-area: desc;
  font-size: 12px;
  line-height: 1.3;
}

#createView .field-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#createView .field-group > label,
#createView .advanced-create-grid > label {
  min-width: 0;
}

#createView .project-field,
#createView .watermark-field {
  grid-template-columns: minmax(0, 1fr);
}

#createView .extra-text-field {
  display: grid;
  gap: 8px;
}

#createView .extra-text-field textarea {
  min-height: 150px;
  resize: vertical;
}

#createView #desiredEffect {
  min-height: 108px;
}

@media (max-width: 720px) {
  #createView .category-tabs,
  #createView .field-group,
  #createView .advanced-create-grid {
    grid-template-columns: 1fr;
  }

  #createView .category-card {
    min-height: 74px;
  }
}

/* 2026-05-20 non-cartoon reference style: restrained pale blue-white cards */
@media (max-width: 980px) {
  body[data-current-view="home"] {
    background: #eef4fb !important;
  }

  body[data-current-view="home"] .view.active {
    background:
      linear-gradient(180deg, #eef4fb 0%, #f6f9fd 58%, #fbfcfe 100%) !important;
  }

  body[data-current-view="home"] .mobile-reference-top {
    background: #f8fafc !important;
    border-bottom-color: #dbe4ef !important;
  }

  body[data-current-view="home"] .home-hero,
  body[data-current-view="home"] .mobile-reference-task-card,
  body[data-current-view="home"] .mobile-reference-progress-card,
  body[data-current-view="home"] .home-daily-ai,
  body[data-current-view="home"] .mobile-reference-materials,
  body[data-current-view="home"] .mobile-reference-upgrade,
  body[data-current-view="home"] .mobile-reference-recent {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: #d5e0ee !important;
    box-shadow: 0 10px 24px rgba(39, 59, 92, 0.05) !important;
  }

  body[data-current-view="home"] .home-hero {
    background:
      linear-gradient(135deg, #ffffff 0%, #f6f9fd 54%, #edf4fc 100%) !important;
  }

  body[data-current-view="home"] .home-quick-card,
  body[data-current-view="home"] .home-quick-card.primary,
  body[data-current-view="home"] .home-quick-card.home-quick-card-compare,
  body[data-current-view="home"] .home-quick-card.home-quick-card-chat {
    background-color: #f8fafc !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%) !important;
    border-color: #d5e0ee !important;
    box-shadow: 0 8px 18px rgba(39, 59, 92, 0.05) !important;
  }

  body[data-current-view="home"] .home-quick-card::before,
  body[data-current-view="home"] .home-quick-card::after {
    opacity: 0.08 !important;
    background: #8ea3bf !important;
  }

  body[data-current-view="home"] .home-quick-card span,
  body[data-current-view="home"] .home-quick-card.home-quick-card-compare span,
  body[data-current-view="home"] .home-quick-card.home-quick-card-chat span {
    color: #315d8f !important;
    background: #eef4fb !important;
    border: 1px solid #d7e2ef !important;
  }

  body[data-current-view="home"] .home-quick-card strong,
  body[data-current-view="home"] .home-quick-card small {
    color: #132033 !important;
  }

  body[data-current-view="home"] .home-quick-card small {
    color: #637187 !important;
  }

  body[data-current-view="home"] .task-icon,
  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(1) .task-icon,
  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(2) .task-icon,
  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(3) .task-icon,
  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(4) .task-icon {
    background: linear-gradient(135deg, #b7c8e4, #6f8fbf) !important;
  }

  body[data-current-view="home"] .home-daily-label,
  body[data-current-view="home"] .home-daily-news article span,
  body[data-current-view="home"] .mobile-reference-upgrade-title span {
    color: #456b9a !important;
    background: #eef4fb !important;
    border: 1px solid #d7e2ef !important;
  }

  body[data-current-view="home"] .primary-button,
  body[data-current-view="home"] .mobile-reference-progress-action,
  body[data-current-view="home"] .mobile-reference-upgrade > button {
    background: #285aa6 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .home-daily-action {
    color: #28517f !important;
    background: #ffffff !important;
    border-color: #d7e2ef !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid article {
    background: #f3f7fc !important;
    border: 1px solid #d7e2ef !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid article::after {
    background: linear-gradient(180deg, rgba(19, 32, 51, 0), rgba(19, 32, 51, 0.48)) !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid strong,
  body[data-current-view="home"] .mobile-reference-material-grid span {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(19, 32, 51, 0.22) !important;
  }

  body[data-current-view="home"] .home-quick-card.primary,
  body[data-current-view="home"] .home-quick-card:nth-child(1),
  body[data-current-view="home"] button[data-home-category="project_ad"] {
    background-color: #f8fafc !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%) !important;
    border-color: #d5e0ee !important;
  }

  body[data-current-view="home"] button[data-home-category="project_ad"] span,
  body[data-current-view="home"] button[data-home-category="project_ad"] strong,
  body[data-current-view="home"] button[data-home-category="project_ad"] small {
    color: #132033 !important;
  }

  body[data-current-view="home"] button[data-home-category="project_ad"] span {
    color: #315d8f !important;
    background: #eef4fb !important;
    border: 1px solid #d7e2ef !important;
  }
}

/* 2026-05-20 final reference match: compact 390px mobile dashboard */
@media (max-width: 980px) {
  body[data-current-view="home"],
  body[data-current-view="home"] * {
    box-sizing: border-box;
    letter-spacing: 0 !important;
  }

  body[data-current-view="home"] {
    background: #eef6ff !important;
  }

  body[data-current-view="home"] .view.active {
    padding: 0 17px calc(18px + env(safe-area-inset-bottom)) !important;
    background:
      radial-gradient(circle at 80% 8%, rgba(221, 232, 255, 0.95), transparent 32%),
      linear-gradient(180deg, #eef6ff 0%, #eef6ff 58%, #f7fbff 100%) !important;
  }

  body[data-current-view="home"] .mobile-home-shell {
    width: 100% !important;
    max-width: 356px !important;
    margin: 0 auto !important;
    gap: 15px !important;
  }

  body[data-current-view="home"] .mobile-reference-top {
    width: 100vw !important;
    max-width: none !important;
    height: 79px !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 17px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    gap: 10px !important;
    background: #f8fbff !important;
    border: 0 !important;
    border-bottom: 1px solid #d1def1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .mobile-reference-title {
    width: 150px !important;
    max-width: 150px !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    color: #081735 !important;
    font-size: 20px !important;
    line-height: 1.08 !important;
    font-weight: 850 !important;
  }

  body[data-current-view="home"] .mobile-reference-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;
    padding: 0 !important;
  }

  body[data-current-view="home"] .mobile-reference-site-chip {
    width: 40px !important;
    min-width: 40px !important;
    height: 50px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .mobile-reference-bell {
    width: 29px !important;
    height: 31px !important;
    border: 3px solid #0c1830 !important;
    border-bottom-color: transparent !important;
    border-radius: 17px 17px 8px 8px !important;
  }

  body[data-current-view="home"] .mobile-reference-badge {
    top: -5px !important;
    right: -4px !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 4px !important;
    border: 2px solid #fff !important;
    font-size: 11px !important;
    line-height: 15px !important;
  }

  body[data-current-view="home"] .mobile-reference-user {
    width: 99px !important;
    min-width: 99px !important;
    height: 52px !important;
    gap: 7px !important;
    color: #081735 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .mobile-reference-avatar {
    width: 45px !important;
    height: 45px !important;
  }

  body[data-current-view="home"] .mobile-reference-user strong {
    display: inline !important;
    color: #081735 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-arrow {
    width: 9px !important;
    height: 9px !important;
    border-right: 2px solid #66758f !important;
    border-bottom: 2px solid #66758f !important;
  }

  body[data-current-view="home"] .mobile-reference-greeting {
    grid-template-columns: minmax(0, 1fr) 115px !important;
    min-height: 82px !important;
    margin: 18px 0 0 !important;
    gap: 12px !important;
  }

  body[data-current-view="home"] .mobile-reference-greeting h2 {
    margin: 0 0 7px !important;
    color: #091735 !important;
    font-size: 23px !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-greeting p {
    color: #71819a !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
  }

  body[data-current-view="home"] .mobile-reference-search {
    width: 115px !important;
    min-width: 115px !important;
    height: 52px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 28px !important;
    border: 1px solid #d4dfef !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 8px 18px rgba(39, 75, 133, 0.07) !important;
  }

  body[data-current-view="home"] .mobile-reference-search::before,
  body[data-current-view="home"] .mobile-reference-search::after {
    display: none !important;
    content: none !important;
  }

  body[data-current-view="home"] .mobile-reference-search span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #667791 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
  }

  body[data-current-view="home"] .mobile-reference-search span::before {
    content: "" !important;
    display: inline-block !important;
    width: 17px !important;
    height: 17px !important;
    border: 3px solid #20304b !important;
    border-radius: 50% !important;
  }

  body[data-current-view="home"] .mobile-reference-search span::after {
    content: "" !important;
    display: inline-block !important;
    width: 9px !important;
    height: 3px !important;
    margin: 14px 0 0 -12px !important;
    border-radius: 999px !important;
    background: #20304b !important;
    transform: rotate(45deg) !important;
  }

  body[data-current-view="home"] .home-hero {
    height: 290px !important;
    min-height: 290px !important;
    max-height: 290px !important;
    padding: 22px !important;
    border-radius: 20px !important;
    border: 1px solid #bcd3fb !important;
  }

  body[data-current-view="home"] .home-kicker {
    margin-bottom: 8px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .home-hero h2 {
    max-width: 130px !important;
    margin-bottom: 12px !important;
    font-size: 30px !important;
    line-height: 1.02 !important;
    font-weight: 850 !important;
  }

  body[data-current-view="home"] .home-hero p:not(.home-kicker) {
    max-width: 132px !important;
    margin-bottom: 17px !important;
    font-size: 14px !important;
    line-height: 1.38 !important;
    font-weight: 500 !important;
  }

  body[data-current-view="home"] .home-hero .primary-button {
    width: 108px !important;
    min-height: 48px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .home-hero-preview {
    right: 8px !important;
    bottom: 19px !important;
    width: 172px !important;
    height: 172px !important;
  }

  body[data-current-view="home"] .home-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  body[data-current-view="home"] .home-quick-card,
  body[data-current-view="home"] .home-quick-card.primary,
  body[data-current-view="home"] .home-quick-card.home-quick-card-compare,
  body[data-current-view="home"] .home-quick-card.home-quick-card-chat {
    height: 162px !important;
    min-height: 162px !important;
    padding: 12px 10px !important;
    border-radius: 15px !important;
    border: 1px solid #ccdcef !important;
  }

  body[data-current-view="home"] .home-quick-card span {
    margin-bottom: 13px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .home-quick-card strong {
    font-size: 17px !important;
    line-height: 1.16 !important;
    font-weight: 850 !important;
  }

  body[data-current-view="home"] .home-quick-card small {
    margin-top: 11px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
  }

  body[data-current-view="home"] .mobile-reference-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }

  body[data-current-view="home"] .mobile-reference-task-card,
  body[data-current-view="home"] .mobile-reference-progress-card {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    padding: 14px !important;
    border-radius: 17px !important;
  }

  body[data-current-view="home"] .mobile-reference-section-head h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-section-head span,
  body[data-current-view="home"] .mobile-reference-section-head button {
    color: #64728b !important;
    font-size: 13px !important;
    font-weight: 750 !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid {
    gap: 8px 9px !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid div {
    min-height: 82px !important;
    padding: 10px 5px 8px !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid .task-icon {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 6px !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid strong {
    font-size: 25px !important;
    font-weight: 850 !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid small {
    margin-top: 6px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid em {
    margin-top: 4px !important;
    font-size: 12px !important;
  }

  body[data-current-view="home"] .mobile-reference-progress-body {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 108px !important;
  }

  body[data-current-view="home"] .mobile-reference-ring {
    width: 76px !important;
    height: 76px !important;
    border-width: 11px !important;
  }

  body[data-current-view="home"] .mobile-reference-ring strong {
    font-size: 24px !important;
    font-weight: 850 !important;
  }

  body[data-current-view="home"] .mobile-reference-progress-body > div:last-child strong {
    font-size: 18px !important;
    font-weight: 850 !important;
  }

  body[data-current-view="home"] .mobile-reference-progress-body p {
    font-size: 12px !important;
    font-weight: 500 !important;
  }

  body[data-current-view="home"] .mobile-reference-progress-action {
    min-height: 44px !important;
    margin-top: 15px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .home-daily-ai,
  body[data-current-view="home"] .mobile-reference-materials,
  body[data-current-view="home"] .mobile-reference-upgrade,
  body[data-current-view="home"] .mobile-reference-recent {
    width: 100% !important;
    padding: 16px 14px !important;
    border: 1px solid #c9d9f4 !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .home-daily-ai-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 13px !important;
  }

  body[data-current-view="home"] .home-daily-label {
    display: inline-flex !important;
    width: max-content !important;
    margin-bottom: 12px !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    background: #fff0f6 !important;
    color: #f05c92 !important;
    font-size: 11px !important;
    font-weight: 750 !important;
  }

  body[data-current-view="home"] .home-daily-ai h2 {
    max-width: 170px !important;
    margin: 0 0 10px !important;
    color: #091735 !important;
    font-size: 18px !important;
    line-height: 1.22 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .home-daily-ai p {
    margin: 0 !important;
    color: #667894 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
  }

  body[data-current-view="home"] .home-daily-action {
    width: 100% !important;
    min-height: 43px !important;
    border-radius: 999px !important;
    border: 1px solid #d7e1ef !important;
    background: #fff !important;
    color: #1b2a43 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .home-daily-news {
    margin-top: 16px !important;
  }

  body[data-current-view="home"] .home-daily-news article {
    padding: 15px !important;
    border-radius: 14px !important;
    border: 1px solid #dbe5f2 !important;
    background: #fbfdff !important;
  }

  body[data-current-view="home"] .home-daily-news article span {
    display: inline-flex !important;
    margin-bottom: 10px !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    background: #fff0f6 !important;
    color: #f05c92 !important;
    font-size: 11px !important;
    font-weight: 750 !important;
  }

  body[data-current-view="home"] .home-daily-news article strong {
    display: block !important;
    margin-bottom: 8px !important;
    color: #091735 !important;
    font-size: 17px !important;
    line-height: 1.24 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid article {
    position: relative !important;
    height: 110px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #e8eff9 !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid article::after {
    content: "" !important;
    position: absolute !important;
    inset: 35% 0 0 !important;
    background: linear-gradient(180deg, transparent, rgba(5, 16, 36, 0.7)) !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid strong,
  body[data-current-view="home"] .mobile-reference-material-grid span {
    position: absolute !important;
    left: 10px !important;
    z-index: 1 !important;
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22) !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid strong {
    bottom: 25px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid span {
    bottom: 9px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-upgrade-main {
    display: grid !important;
    grid-template-columns: 118px minmax(0, 1fr) !important;
    gap: 15px !important;
    align-items: center !important;
  }

  body[data-current-view="home"] .mobile-reference-upgrade-title h2 {
    margin: 0 0 12px !important;
    color: #091735 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-upgrade-title span {
    display: inline-flex !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    background: #ccfff0 !important;
    color: #00a782 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
  }

  body[data-current-view="home"] .mobile-reference-upgrade-tools {
    display: grid !important;
    gap: 8px !important;
  }

  body[data-current-view="home"] .mobile-reference-upgrade-tools strong {
    display: block !important;
    color: #091735 !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-upgrade-tools small {
    display: block !important;
    margin-top: 2px !important;
    color: #667894 !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  body[data-current-view="home"] .mobile-reference-upgrade > button {
    width: 100% !important;
    min-height: 49px !important;
    margin-top: 15px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #244fbd !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-recent {
    margin-bottom: 0 !important;
  }

  body[data-current-view="home"] .mobile-reference-recent-card {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: 92px !important;
    padding: 10px !important;
    border: 1px solid #dbe5f2 !important;
    border-radius: 15px !important;
    background: #fff !important;
  }

  body[data-current-view="home"] .mobile-reference-recent-card img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover !important;
    border-radius: 13px !important;
  }

  body[data-current-view="home"] .mobile-reference-recent-card strong {
    display: block !important;
    color: #091735 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-recent-card span {
    display: block !important;
    margin-top: 6px !important;
    color: #667894 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  

  

  body[data-current-view="home"] .nav-list-DISABLED {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 70 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    width: 100% !important;
    height: calc(75px + env(safe-area-inset-bottom)) !important;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid #d7e1ef !important;
    background: #fff !important;
    box-shadow: none !important;
    pointer-events: auto !important;
  }

  

  

  

  

  

  

  

  

  body:not([data-current-view="home"]) .nav-list-DISABLED {
    display: none !important;
  }
}

/* 2026-05-19 reference layout and section style unification */
@media (max-width: 980px) {
  :root {
    --ui-ink: #07152f;
    --ui-muted: #5f6f8a;
    --ui-soft: #f5f9ff;
    --ui-card: rgba(255, 255, 255, 0.96);
    --ui-card-solid: #ffffff;
    --ui-line: rgba(196, 211, 234, 0.78);
    --ui-blue: #2f6df6;
    --ui-blue-deep: #12358f;
    --ui-green: #28b58c;
    --ui-pink: #f05283;
    --ui-shadow: 0 14px 34px rgba(23, 55, 142, 0.10);
    --ui-shadow-soft: 0 8px 20px rgba(23, 55, 142, 0.07);
  }

  html {
    background: #f7fbff;
  }

  body {
    min-width: 0;
    color: var(--ui-ink);
    background:
      radial-gradient(circle at 22% -6%, rgba(219, 235, 255, 0.95), transparent 36%),
      radial-gradient(circle at 86% 16%, rgba(235, 244, 255, 0.95), transparent 30%),
      linear-gradient(180deg, #fbfdff 0%, #f3f8ff 44%, #f9fcff 100%);
  }

  body[data-current-view="create"] {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.90), rgba(248, 251, 255, 0.98)),
      url("/assets/workbench-bg/create-studio.webp") center top / cover fixed no-repeat;
  }

  body[data-current-view="works"] {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.88), rgba(248, 251, 255, 0.98)),
      url("/assets/workbench-bg/works-gallery.webp") center top / cover fixed no-repeat;
  }

  body[data-current-view="tasks"],
  body[data-current-view="assets"],
  body[data-current-view="mine"],
  body[data-current-view="manual"] {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.90), rgba(248, 251, 255, 0.98)),
      url("/assets/workbench-bg/mine-control.webp") center top / cover fixed no-repeat;
  }

  .app-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 12px 10px calc(20px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .topbar {
    display: none;
  }

  .main {
    width: 100%;
    min-width: 0;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .view.active {
    display: block;
  }

  body[data-current-view="home"] .main {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  


  .brand-mark-DISABLED,
  .system-card {
    display: none;
  }

  .nav-list-DISABLED {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .nav-list-DISABLED::-webkit-scrollbar {
    display: none;
  }

  .nav-item-DISABLED {
    flex: 0 0 64px;
    min-width: 64px;
    min-height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(196, 211, 234, 0.70);
    border-radius: 17px;
    padding: 8px 7px;
    background: #f8fbff;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: none;
    scroll-snap-align: start;
  }

  .nav-item-DISABLED::before {
    display: none !important;
  }

  .nav-item.active {
    border-color: rgba(47, 109, 246, 0.22);
    background: linear-gradient(135deg, var(--ui-blue-deep), var(--ui-blue));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(47, 109, 246, 0.20);
  }

  .mobile-home-shell {
    display: grid;
    gap: 12px;
  }

  .mobile-reference-top {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--ui-line);
    border-radius: 0;
    padding: 6px 2px 12px;
    background: transparent;
    box-shadow: none;
  }

  .mobile-reference-title {
    color: var(--ui-ink);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: 0;
  }

  .mobile-reference-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ui-ink);
  }

  .mobile-reference-user strong {
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-reference-bell {
    width: 25px;
    height: 25px;
    border: 2px solid #0f172a;
    border-radius: 50% 50% 45% 45%;
    background: #ffffff;
    position: relative;
  }

  .mobile-reference-bell::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: -5px;
    width: 7px;
    height: 5px;
    border-radius: 0 0 999px 999px;
    background: #0f172a;
  }

  .mobile-reference-badge {
    position: relative;
    margin-left: -18px;
    margin-top: -22px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff4267;
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
  }

  .mobile-reference-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 50% 28%, #ffe2df 0 18%, transparent 19%),
      linear-gradient(135deg, #dce8ff, #ffffff 56%, #f7d7d5);
    box-shadow: inset 0 0 0 1px rgba(196, 211, 234, 0.7);
  }

  .mobile-reference-arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid #506176;
    border-right: 2px solid #506176;
    transform: rotate(45deg);
  }

  .mobile-reference-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 0;
    padding: 0 2px 2px;
    background: transparent;
    box-shadow: none;
  }

  .mobile-reference-greeting h2 {
    margin: 0;
    color: var(--ui-ink);
    font-size: 22px;
    line-height: 1.18;
    font-weight: 950;
  }

  .mobile-reference-greeting p {
    margin: 6px 0 0;
    color: var(--ui-muted);
    font-size: 14px;
    line-height: 1.35;
  }

  .mobile-reference-search {
    flex: 0 0 auto;
    min-height: 42px;
    border: 1px solid var(--ui-line);
    border-radius: 999px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ui-muted);
    font-size: 14px;
    font-weight: 850;
    box-shadow: var(--ui-shadow-soft);
  }

  .home-hero {
    min-height: 168px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    border: 1px solid rgba(176, 203, 246, 0.86);
    border-radius: 22px;
    padding: 20px 16px;
    background:
      linear-gradient(110deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 245, 255, 0.92) 48%, rgba(219, 235, 255, 0.86) 100%),
      url("/assets/workbench-bg/home-control-scene.svg") right center / auto 118% no-repeat;
    box-shadow: var(--ui-shadow);
  }

  .home-hero::before,
  .home-hero::after {
    display: none;
  }

  .home-hero-copy {
    max-width: none;
    min-width: 0;
  }

  .home-kicker {
    margin: 0 0 8px;
    color: #375fba !important;
    font-size: 13px;
    font-weight: 900;
  }

  .home-hero h2 {
    max-width: 190px;
    margin: 0;
    color: var(--ui-ink);
    font-size: 28px;
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: 0;
  }

  .home-hero p:not(.home-kicker) {
    max-width: 210px;
    margin: 8px 0 0;
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .home-hero .primary-button,
  .home-hero button {
    border-radius: 999px;
  }

  .home-hero-preview {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 126px;
    transform: none;
    filter: drop-shadow(0 18px 26px rgba(47, 109, 246, 0.20));
  }

  .preview-window,
  .preview-card {
    border-color: rgba(158, 188, 244, 0.68);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 14px 28px rgba(47, 109, 246, 0.16);
  }

  .home-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .home-quick-card,
  .home-quick-card.primary,
  .home-quick-card.home-quick-card-compare,
  .home-quick-card.home-quick-card-chat {
    min-height: 150px;
    display: grid;
    align-content: start;
    gap: 6px;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    padding: 13px 10px 48px;
    text-align: left;
    box-shadow: var(--ui-shadow-soft);
  }

  .home-quick-card.primary {
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 244, 248, 0.88) 54%, rgba(255, 224, 235, 0.80) 100%),
      url("/assets/three-feature/ad-poster-care.png") center bottom / 96% auto no-repeat;
  }

  .home-quick-card.home-quick-card-compare {
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 255, 249, 0.90) 58%, rgba(218, 247, 240, 0.82) 100%),
      url("/assets/workbench-bg/quick-compare.webp") center bottom / 105% auto no-repeat;
  }

  .home-quick-card.home-quick-card-chat {
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 245, 255, 0.90) 58%, rgba(218, 232, 255, 0.84) 100%),
      url("/assets/workbench-bg/quick-chat.webp") center bottom / 105% auto no-repeat;
  }

  .home-quick-card::before,
  .home-quick-card::after,
  .home-card-visual {
    display: none !important;
  }

  .home-quick-card span,
  .home-quick-card strong,
  .home-quick-card small {
    position: relative;
    z-index: 1;
    max-width: 100%;
    text-align: left;
  }

  .home-quick-card span {
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 4px 7px;
    background: rgba(240, 82, 131, 0.12);
    color: #e33669;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
  }

  .home-quick-card.home-quick-card-compare span {
    background: rgba(40, 181, 140, 0.14);
    color: #15906f;
  }

  .home-quick-card.home-quick-card-chat span {
    background: rgba(47, 109, 246, 0.13);
    color: #2f6df6;
  }

  .home-quick-card strong {
    color: var(--ui-ink);
    font-size: 15px;
    line-height: 1.18;
    font-weight: 950;
  }

  .home-quick-card small {
    color: var(--ui-muted);
    font-size: 10.5px;
    line-height: 1.32;
  }

  .mobile-reference-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card,
  .mobile-reference-hub,
  .home-daily-ai,
  .home-section,
  .panel,
  .section-close-bar {
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    background: var(--ui-card);
    box-shadow: var(--ui-shadow-soft);
    backdrop-filter: blur(16px);
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card {
    min-width: 0;
    padding: 12px;
  }

  .mobile-reference-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }

  .mobile-reference-section-head h2,
  .home-daily-ai h2,
  .home-section-head h2,
  .panel-heading h2 {
    margin: 0;
    color: var(--ui-ink);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 950;
  }

  .mobile-reference-section-head button,
  .mobile-reference-section-head span,
  .home-section-head button,
  .home-section-head span {
    display: inline-grid;
    place-items: center;
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    padding: 0 4px;
    background: transparent;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 850;
    box-shadow: none;
  }

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

  .mobile-reference-task-grid div {
    min-width: 0;
    border: 0;
    border-radius: 15px;
    padding: 8px 5px;
    background: #f7fbff;
    text-align: center;
  }

  .mobile-reference-task-grid strong {
    display: block;
    color: var(--ui-ink);
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
  }

  .mobile-reference-task-grid small {
    display: block;
    margin-top: 3px;
    color: var(--ui-muted);
    font-size: 10px;
  }

  .mobile-reference-task-grid em {
    display: block;
    margin-top: 4px;
    color: var(--ui-blue);
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
  }

  .task-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7aa2, #f04f7d);
    box-shadow: 0 8px 14px rgba(240, 82, 131, 0.18);
  }

  .task-icon.done {
    background: linear-gradient(135deg, #43cda2, #20a77f);
  }

  .task-icon.review {
    background: linear-gradient(135deg, #5c8cfb, #2f6df6);
  }

  .task-icon.draft {
    background: linear-gradient(135deg, #4d7bf0, #1d4ed8);
  }

  .mobile-reference-progress-body {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .mobile-reference-ring {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
      radial-gradient(circle, #ffffff 0 52%, transparent 53%),
      conic-gradient(var(--ui-blue) 0 68%, #e7eefb 68% 100%);
  }

  .mobile-reference-ring strong {
    color: var(--ui-ink);
    font-size: 18px;
    font-weight: 950;
  }

  .mobile-reference-ring span {
    display: none;
  }

  .mobile-reference-progress-body > div:last-child strong {
    color: var(--ui-ink);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
  }

  .mobile-reference-progress-body p {
    margin: 5px 0 8px;
    color: var(--ui-muted);
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-reference-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eefb;
  }

  .mobile-reference-bar i {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ui-blue), #70a1ff);
  }

  .mobile-reference-progress-action {
    width: 100%;
    min-height: 36px;
    margin-top: 10px;
    border: 0;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--ui-blue-deep);
    font-size: 12px;
    font-weight: 950;
    box-shadow: none;
  }

  .mobile-reference-hub {
    display: grid;
    gap: 10px;
    padding: 14px;
  }

  .mobile-reference-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-reference-hub-card {
    min-width: 0;
    min-height: 112px;
    display: grid;
    align-content: end;
    gap: 3px;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    padding: 10px 8px;
    background: linear-gradient(150deg, #ffffff, #eef5ff);
    color: var(--ui-ink);
    text-align: left;
    box-shadow: none;
  }

  .mobile-reference-hub-card span {
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 3px 6px;
    background: #eaf2ff;
    color: var(--ui-blue-deep);
    font-size: 10px;
    font-weight: 950;
  }

  .mobile-reference-hub-card strong {
    color: var(--ui-ink);
    font-size: 13px;
    line-height: 1.16;
    font-weight: 950;
  }

  .mobile-reference-hub-card small {
    color: var(--ui-muted);
    font-size: 9.5px;
    line-height: 1.28;
  }

  .home-daily-ai,
  .home-section {
    padding: 14px;
  }

  .home-daily-ai-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .home-daily-label {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-bottom: 5px;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(240, 82, 131, 0.12);
    color: #e33669;
    font-size: 11px;
    font-weight: 950;
  }

  .home-daily-ai p,
  .home-empty-work span,
  .panel-heading span,
  .manual-copy p,
  .manual-copy li,
  .manual-faq dd {
    color: var(--ui-muted);
  }

  .home-daily-action,
  .primary-button,
  .secondary-button,
  .danger-button,
  .icon-button,
  .filter-chip,
  .section-close-button,
  .form-actions button {
    min-height: 40px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
  }

  .primary-button,
  .home-daily-action {
    border: 0;
    background: linear-gradient(135deg, var(--ui-blue-deep), var(--ui-blue));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(47, 109, 246, 0.20);
  }

  .secondary-button,
  .icon-button,
  .filter-chip,
  .section-close-button {
    border: 1px solid rgba(47, 109, 246, 0.13);
    background: #eef5ff;
    color: var(--ui-blue-deep);
    box-shadow: none;
  }

  .danger-button {
    border: 1px solid rgba(240, 82, 131, 0.14);
    background: #fff1f5;
    color: #d83363;
    box-shadow: none;
  }

  .filter-chip.active {
    border-color: rgba(47, 109, 246, 0.24);
    background: linear-gradient(135deg, var(--ui-blue-deep), var(--ui-blue));
    color: #ffffff;
  }

  .section-close-bar {
    position: sticky;
    top: 8px;
    z-index: 18;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding: 8px 8px 8px 14px;
  }

  .section-close-bar span {
    color: var(--ui-ink);
    font-size: 16px;
    font-weight: 950;
  }

  .section-close-button {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
  }

  .panel,
  #createView .form-panel,
  #createView .result-panel,
  .work-management-panel,
  .task-management-panel,
  .asset-upload-panel,
  .asset-framework-panel,
  .manual-panel,
  #mineView > .workspace-grid.slim > .panel,
  #mineView > .panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    padding: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.95)),
      var(--section-bg, linear-gradient(135deg, #ffffff, #eef5ff));
    box-shadow: var(--ui-shadow-soft);
    color: var(--ui-ink);
    backdrop-filter: blur(16px);
  }

  #createView .form-panel,
  #createView .result-panel {
    --section-bg: url("/assets/workbench-bg/create-page-scene.svg") right -12px top -12px / 62% auto no-repeat;
  }

  .work-management-panel {
    --section-bg: url("/assets/workbench-bg/works-page-scene.svg") right -20px top -18px / 66% auto no-repeat;
  }

  .task-management-panel {
    --section-bg: url("/assets/workbench-bg/tasks-page-scene.svg") right -18px top -14px / 66% auto no-repeat;
  }

  .asset-upload-panel,
  .asset-framework-panel {
    --section-bg: url("/assets/workbench-bg/project-studio-scene.svg") right -20px top -16px / 62% auto no-repeat;
  }

  #mineView > .workspace-grid.slim > .panel,
  #mineView > .panel,
  .manual-panel {
    --section-bg: url("/assets/workbench-bg/home-control-scene.svg") right -26px top -22px / 66% auto no-repeat;
  }

  .panel::before,
  #createView .form-panel::before,
  #createView .result-panel::before,
  .work-management-panel::before,
  .task-management-panel::before {
    display: none !important;
  }

  .panel > *,
  #createView .form-panel > *,
  #createView .result-panel > *,
  .work-management-panel > *,
  .task-management-panel > * {
    position: relative;
    z-index: 1;
  }

  .workspace-grid,
  .workspace-grid.slim {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0;
  }

  .panel-heading span,
  .heading-actions span {
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
  }

  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .category-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .category-card {
    min-width: 0;
    min-height: 88px;
    display: grid;
    align-content: end;
    gap: 4px;
    border: 1px solid var(--ui-line);
    border-radius: 17px;
    padding: 11px 9px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 255, 0.92));
    color: var(--ui-ink);
    box-shadow: none;
  }

  .category-card strong {
    color: var(--ui-ink);
    font-size: 13px;
    line-height: 1.16;
    font-weight: 950;
  }

  .category-card span {
    color: var(--ui-muted);
    font-size: 10px;
    line-height: 1.25;
  }

  .category-card.active {
    border-color: rgba(47, 109, 246, 0.30);
    background: linear-gradient(145deg, #153a9a, #2f6df6);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(47, 109, 246, 0.20);
  }

  .category-card.active strong,
  .category-card.active span {
    color: #ffffff;
  }

  .form-stack {
    gap: 12px;
  }

  .form-stack label,
  .field-group label {
    gap: 7px;
  }

  .form-stack label > span,
  .field-group label > span {
    color: var(--ui-ink);
    font-size: 12px;
    font-weight: 900;
  }

  input,
  select,
  textarea {
    min-height: 43px;
    border: 1px solid rgba(196, 211, 234, 0.88);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.96);
    color: var(--ui-ink);
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }

  textarea {
    min-height: 96px;
    line-height: 1.5;
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: rgba(47, 109, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.10);
  }

  .list-toolbar,
  .filter-tabs,
  .manual-toc {
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .list-toolbar::-webkit-scrollbar,
  .filter-tabs::-webkit-scrollbar,
  .manual-toc::-webkit-scrollbar {
    display: none;
  }

  .works-grid,
  .asset-grid,
  .task-list {
    gap: 10px;
  }

  .work-card,
  .task-row,
  .asset-card,
  .account-panel,
  .backend-preview-box,
  .auth-message,
  .manual-section,
  .mine-tool-card,
  .home-daily-news article,
  .home-empty-work {
    border: 1px solid rgba(196, 211, 234, 0.72);
    border-radius: 17px;
    background: rgba(248, 251, 255, 0.92);
    color: var(--ui-ink);
    box-shadow: none;
  }

  .work-card::before,
  .work-card::after,
  .task-row::before,
  .task-row::after {
    opacity: 0.16;
  }

  .work-card .card-title,
  .task-row .card-title,
  .mine-tool-copy strong,
  .manual-copy h3,
  .manual-faq dt {
    color: var(--ui-ink);
    font-weight: 950;
  }

  .work-card .card-meta,
  .task-row .card-meta,
  .mine-tool-copy small {
    color: var(--ui-muted);
  }

  .mine-mobile-account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--ui-shadow-soft);
  }

  .mine-mobile-account-actions span {
    min-width: 0;
    overflow: hidden;
    color: var(--ui-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 850;
  }

  .mine-tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .mine-tool-card {
    min-height: 72px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .mine-tool-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ui-blue-deep), var(--ui-blue));
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
  }

  .manual-toc {
    display: flex;
    padding-bottom: 2px;
  }

  .manual-toc a {
    flex: 0 0 auto;
    border: 1px solid rgba(47, 109, 246, 0.12);
    border-radius: 999px;
    padding: 8px 11px;
    background: #eef5ff;
    color: var(--ui-blue-deep);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
  }

  .manual-section {
    margin-top: 10px;
    padding: 12px;
  }

  .manual-section figure {
    border-radius: 16px;
    background: #ffffff;
  }

  body:has(#createView.active),
  body:has(#worksView.active),
  body:has(#tasksView.active),
  body:has(#assetsView.active),
  body:has(#mineView.active),
  body:has(#manualView.active) {
    background:
      radial-gradient(circle at 18% -8%, rgba(219, 235, 255, 0.96), transparent 36%),
      radial-gradient(circle at 90% 4%, rgba(237, 246, 255, 0.96), transparent 30%),
      linear-gradient(180deg, #fbfdff 0%, #f3f8ff 46%, #f9fcff 100%) !important;
  }

  #createView .workspace-grid {
    min-height: 0;
    padding-top: 0;
    background: transparent !important;
  }

  #createView .workspace-grid::before,
  #createView .workspace-grid::after {
    display: none !important;
  }


  .nav-item-DISABLED,
  .nav-item-DISABLED[data-view="tasks"],
  .nav-item-DISABLED[data-view="assets"],
  .nav-item-DISABLED[data-view="manual"] {
    flex-basis: 60px;
    min-width: 60px;
    min-height: 46px;
    border-radius: 16px;
    padding: 7px 6px;
  }

  .section-close-bar {
    min-height: 48px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 78% 8%, rgba(91, 104, 232, 0.08), transparent 28%),
    radial-gradient(circle at 90% 78%, rgba(24, 183, 167, 0.10), transparent 30%),
    linear-gradient(135deg, #ffffff, var(--bg));
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(460px, calc(100vw - 48px));
  max-width: 100%;
  min-width: 0;
}

.auth-card {
  min-width: 0;
  border: 1px solid rgba(229, 233, 240, 0.92);
  border-radius: 26px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  gap: 16px;
  backdrop-filter: blur(16px);
}

.auth-card h1 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.2;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.captcha-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.captcha-box.compact {
  grid-template-columns: minmax(0, 1fr) 150px;
}

.captcha-box label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.captcha-image {
  height: 54px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
}

.captcha-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.captcha-image svg {
  display: block;
  width: 100%;
  height: 100%;
}

.captcha-image span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #264a9b;
  background: #eef4ff;
}

.auth-message {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-message[data-type="ok"] {
  color: #047857;
}

.auth-message[data-type="error"] {
  color: #b42318;
}

.guest-entry {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.guest-entry a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.guest-entry span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-action-row .secondary-button {
  min-height: 44px;
  font-weight: 900;
}

.auth-dialog {
  position: relative;
  width: min(440px, calc(100vw - 36px));
  border: 1px solid rgba(229, 233, 240, 0.94);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  padding: 28px;
  color: var(--text);
}

.auth-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
}

.auth-dialog-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding-right: 26px;
}

.auth-dialog-heading h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.auth-dialog-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-dialog-close {
  top: 14px;
  right: 14px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: block;
}

.sidebar-DISABLED {
  position: fixed;
  inset: 18px auto 18px 18px;
  width: 236px;
  border-radius: 28px;
  background: var(--deep);
  color: #f8fff6;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 28px 80px rgba(32, 61, 50, 0.24);
  z-index: 10;
}

.brand-mark-DISABLED {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f2d38a, #8bbf72);
  font-weight: 900;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 2px;
  color: #bfd0bd;
  font-size: 12px;
}

.nav-list-DISABLED {
  display: grid;
  gap: 8px;
}

.nav-item-DISABLED {
  border: 0;
  min-height: 46px;
  border-radius: 15px;
  background: transparent;
  color: #d6e4d2;
  text-align: left;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

.nav-item-DISABLED:hover,
.nav-item.active {
  background: rgba(255, 253, 247, 0.12);
  color: #fffdf7;
}

.system-card {
  display: none;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.label {
  color: #aeb7c8;
  font-size: 12px;
  margin-bottom: 8px;
}

.health-text {
  font-size: 13px;
  line-height: 1.5;
}

.main {
  min-width: 0;
  margin-left: 270px;
  padding: 34px 42px 30px 20px;
}

.topbar {
  min-height: 94px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar > div {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.topbar p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.account-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mine-mobile-account-actions {
  display: none;
}

.is-guest [data-auth-required] {
  opacity: 0.58;
  cursor: not-allowed;
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,0.86);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(31, 45, 74, 0.08);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.mobile-home-shell {
  display: grid;
  gap: 18px;
}

.home-hero {
  position: relative;
  min-height: 218px;
  border: 1px solid rgba(229,233,240,.96);
  border-radius: 24px;
  overflow: hidden;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 44%, rgba(255,255,255,0.22) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.36)),
    var(--workbench-home-bg) center 44% / cover no-repeat;
  color: var(--text);
  box-shadow: 0 18px 42px rgba(31,45,74,0.07);
}

.home-hero-copy {
  max-width: 540px;
  display: grid;
  gap: 8px;
}

.home-kicker {
  margin: 0;
  color: #ba4d6b;
  font-size: 13px;
  font-weight: 900;
}

.home-hero h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.home-hero p {
  margin: 0;
  color: #475467;
  line-height: 1.6;
}

.home-hero-preview {
  position: relative;
  width: 224px;
  height: 154px;
  justify-self: end;
}

.preview-window,
.preview-card {
  position: absolute;
  border: 1px solid rgba(214,222,232,.92);
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 36px rgba(31,45,74,0.09);
}

.preview-window {
  inset: 12px 34px 18px 0;
  border-radius: 18px;
  padding: 16px;
}

.preview-window span,
.preview-window strong,
.preview-window em {
  display: block;
  border-radius: 999px;
  background: #eef3f7;
}

.preview-window span {
  width: 58px;
  height: 8px;
  background: #f4cfda;
}

.preview-window strong {
  width: 108px;
  height: 34px;
  margin-top: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f9dbe4, #e4f6f2);
}

.preview-window em {
  width: 76px;
  height: 8px;
  margin-top: 14px;
  background: #dbe7f0;
}

.preview-card {
  border-radius: 16px;
}

.preview-card-main {
  right: 0;
  top: 0;
  width: 74px;
  height: 94px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.62)),
    linear-gradient(135deg, #ffe5ee, #eefbff);
}

.preview-card-side {
  right: 20px;
  bottom: 0;
  width: 94px;
  height: 48px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.66)),
    linear-gradient(135deg, #e7f7ef, #f3f6ff);
}

.home-section-head button {
  min-height: 38px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--deep);
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31,45,74,0.06);
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-quick-card {
  position: relative;
  min-height: 172px;
  border: 1px solid rgba(229,233,240,.96);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.83)),
    #ffffff;
  color: #111827;
  padding: 18px;
  text-align: left;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(31,45,74,0.07);
}

.home-quick-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: right bottom;
  background-size: 78% auto;
  background-repeat: no-repeat;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.home-quick-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #f2c7d5;
}

.home-quick-card.primary {
  color: var(--deep);
}

.home-quick-card.primary::after {
  background-image: var(--workbench-project-bg);
  opacity: 0.34;
}

.home-quick-card.primary::before {
  background: #f0b8c9;
}

.home-quick-card-compare::before {
  background: #93d6d2;
}

.home-quick-card-chat::before {
  background: #a8dcb7;
}

.home-quick-card-compare::after {
  background-image: var(--workbench-compare-bg);
}

.home-quick-card-chat::after {
  background-image: var(--workbench-chat-bg);
}

.home-quick-card span {
  position: relative;
  z-index: 1;
  width: fit-content;
  border: 1px solid rgba(229,233,240,.96);
  border-radius: 999px;
  background: #fbfcfd;
  color: rgba(17,24,39,0.68);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.home-quick-card.primary span,
.home-quick-card.primary small {
  color: rgba(17,24,39,0.70);
}

.home-quick-card strong {
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-size: 20px;
  line-height: 1.2;
}

.home-quick-card small {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: rgba(17,24,39,0.62);
  font-size: 12px;
  line-height: 1.45;
}

.home-card-visual {
  position: relative;
  z-index: 1;
  align-self: end;
  height: 62px;
  border-radius: 16px;
  background: rgba(248,250,252,0.82);
  border: 1px solid rgba(229,233,240,.86);
  overflow: hidden;
}

.home-card-visual i,
.home-card-visual b,
.home-card-visual em {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: #dbe4ee;
}

.visual-poster {
  background: linear-gradient(135deg, #fff7fa, #f5fbfc);
}

.visual-poster i {
  left: 14px;
  top: 12px;
  width: 44px;
  height: 28px;
  border-radius: 10px;
  background: #f2c4d2;
}

.visual-poster b {
  left: 68px;
  top: 16px;
  width: 72px;
  height: 8px;
  background: #dce7ef;
}

.visual-poster em {
  left: 68px;
  top: 34px;
  width: 48px;
  height: 8px;
  background: #efd3db;
}

.visual-compare {
  background: linear-gradient(135deg, #f4fbfb, #f7fbff);
}

.visual-compare i,
.visual-compare b {
  top: 12px;
  width: 48px;
  height: 38px;
  border-radius: 14px;
  background: #d9f1ef;
}

.visual-compare i {
  left: 16px;
}

.visual-compare b {
  left: 76px;
  background: #e5eef8;
}

.visual-compare em {
  left: 66px;
  top: 18px;
  width: 1px;
  height: 28px;
  border-radius: 0;
  background: #9bd2d0;
}

.visual-chat {
  background: linear-gradient(135deg, #f7fcf8, #fbfbff);
}

.visual-chat i,
.visual-chat b,
.visual-chat em {
  left: 16px;
  height: 10px;
  border-radius: 999px;
}

.visual-chat i {
  top: 13px;
  width: 82px;
  background: #cdecd5;
}

.visual-chat b {
  top: 30px;
  width: 112px;
  background: #e5ebf2;
}

.visual-chat em {
  top: 47px;
  width: 62px;
  background: #d7eadf;
}

.home-section {
  display: grid;
  gap: 12px;
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.home-section-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.home-guide-card {
  border: 1px solid rgba(229,233,240,.96);
  border-radius: 22px;
  background: #ffffff;
  padding: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 14px 34px rgba(31,45,74,0.06);
}

.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-steps div {
  min-width: 0;
  border: 1px solid rgba(229,233,240,.9);
  border-radius: 16px;
  background: #fbfcfd;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.home-steps span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f6d9e1;
  color: #9d3e5c;
  font-size: 12px;
  font-weight: 900;
}

.home-steps strong,
.home-inspiration-grid strong {
  color: var(--text);
  line-height: 1.35;
}

.home-steps small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.home-inspiration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-inspiration-grid article {
  border: 1px solid rgba(229,233,240,.96);
  border-radius: 18px;
  background: #ffffff;
  padding: 15px;
  display: grid;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(31,45,74,0.055);
}

.home-inspiration-grid span {
  width: fit-content;
  border-radius: 999px;
  background: #eef8f6;
  color: #307d76;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.home-daily-ai {
  border: 1px solid rgba(229,233,240,.96);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(250,252,253,.98)),
    linear-gradient(135deg, rgba(255,232,239,.5), rgba(229,248,245,.45));
  padding: 18px;
  display: grid;
  gap: 15px;
  box-shadow: 0 14px 34px rgba(31,45,74,0.06);
}

.home-daily-ai-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.home-daily-ai-main > div {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.home-daily-label {
  width: fit-content;
  border-radius: 999px;
  background: #fff1f5;
  color: #bd4d70;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.home-daily-ai h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
}

.home-daily-ai p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.home-daily-action {
  min-height: 44px;
  border: 1px solid rgba(222,226,236,.96);
  border-radius: 999px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #f3b8c9, #9ad9d3) border-box;
  color: #173040;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(31,45,74,0.08);
}

.home-daily-action:disabled {
  cursor: wait;
  opacity: .7;
}

.home-daily-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-daily-news article {
  min-width: 0;
  border: 1px solid rgba(229,233,240,.92);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  padding: 13px;
  display: grid;
  gap: 7px;
  box-shadow: 0 10px 22px rgba(31,45,74,0.04);
}

.home-daily-news span {
  width: fit-content;
  border-radius: 999px;
  background: #fff1f5;
  color: #bd4d70;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.home-daily-news strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-daily-news p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-daily-news a {
  color: #307d76;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.45;
  text-decoration: none;
}

.home-daily-news article:nth-child(2) span {
  background: #edf8fb;
  color: #287782;
}

.home-daily-news article:nth-child(3) span {
  background: #eff9f1;
  color: #3a7d4a;
}

.home-daily-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-daily-result article {
  min-width: 0;
  border: 1px solid rgba(229,233,240,.92);
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(31,45,74,0.045);
}

.home-daily-result article[data-daily-category] {
  cursor: pointer;
}

.home-daily-result article[data-daily-category]:hover {
  border-color: rgba(154,217,211,.9);
  transform: translateY(-1px);
}

.home-daily-result span {
  width: fit-content;
  border-radius: 999px;
  background: #eef8f6;
  color: #307d76;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.home-daily-result article:nth-child(1) span {
  background: #fff1f5;
  color: #bd4d70;
}

.home-daily-result article:nth-child(2) span {
  background: #edf8fb;
  color: #287782;
}

.home-daily-result article:nth-child(3) span {
  background: #eff9f1;
  color: #3a7d4a;
}

.home-daily-result strong {
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-daily-result p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.home-daily-result small {
  color: #8a94a6;
  font-size: 11px;
  line-height: 1.4;
}

.home-template-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-template-card {
  border: 1px solid rgba(229,233,240,.96);
  border-radius: 24px;
  background: #ffffff;
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(31,45,74,0.08);
}

.home-template-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.home-template-card span {
  display: block;
  padding: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.home-recent-list {
  display: grid;
  gap: 10px;
}

.home-recent-item,
.home-empty-work {
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  background: var(--glass);
  padding: 10px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  box-shadow: 0 14px 30px rgba(38, 72, 55, 0.055);
}

.home-recent-item {
  cursor: pointer;
}

.home-recent-item img,
.home-recent-fallback {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
}

.home-recent-item span,
.home-empty-work {
  min-width: 0;
}

.home-recent-item strong,
.home-empty-work strong {
  display: block;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-recent-item small,
.home-empty-work span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-empty-work {
  grid-template-columns: 76px minmax(0, 1fr);
}

.home-empty-thumb {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(17,24,39,0.16)),
    url("/assets/three-feature/case-before-after.png") center / cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.46);
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.workspace-grid.slim {
  grid-template-columns: 390px minmax(0, 1fr);
}

.panel {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 28px;
}

.narrow-panel {
  max-width: 760px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
}

.panel-heading span {
  color: #067a6f;
  background: #e9faf6;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 800;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-heading-actions {
  max-width: 100%;
}

.admin-heading-actions .secondary-button {
  min-height: 36px;
  white-space: nowrap;
  font-weight: 800;
}

.manual-public-page {
  min-height: 100vh;
  padding: 30px;
}

.manual-public-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.manual-panel {
  display: grid;
  gap: 22px;
}

.manual-heading {
  align-items: flex-start;
}

.manual-heading h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.manual-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.manual-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.manual-toc a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.manual-toc a:hover {
  border-color: #b8c0ff;
  color: #3443ca;
}

.manual-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 18px;
}

.manual-section:last-child {
  border-bottom: 0;
}

.manual-copy {
  min-width: 0;
}

.manual-copy h2,
.manual-copy h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.manual-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.manual-copy ol,
.manual-copy ul {
  margin: 0 0 12px 20px;
  padding: 0;
  color: #344054;
  line-height: 1.75;
}

.manual-copy li + li {
  margin-top: 3px;
}

.manual-section figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 10px;
}

.manual-section img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #ffffff;
}

.manual-section figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.manual-faq {
  display: grid;
  gap: 10px;
  margin: 0;
}

.manual-faq dt {
  color: var(--text);
  font-weight: 900;
}

.manual-faq dd {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.65;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 12px;
}

.advanced-create-fields {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248,250,252,0.72);
  padding: 14px;
}

.advanced-create-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 20px;
  margin-bottom: 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.advanced-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-card {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.category-card strong {
  font-size: 18px;
}

.category-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.category-card.active {
  border-color: #b8c0ff;
  background: #f1f3ff;
  color: #3443ca;
  box-shadow: 0 12px 28px rgba(91, 104, 232, 0.10);
}

.category-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 45, 74, 0.08);
}

.mode-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px 11px;
  min-height: 86px;
}

.mode-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.mode-summary strong {
  display: block;
  font-size: 15px;
}

.mode-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hidden-field {
  display: none !important;
}

.hidden-field.active {
  display: grid !important;
}

.list-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.filter-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.active {
  border-color: #b8c0ff;
  background: #f1f3ff;
  color: #3443ca;
}

.form-stack label {
  display: grid;
  gap: 7px;
}

.form-stack label > span {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  box-shadow: 0 1px 0 rgba(31,45,74,0.02);
}

input,
select {
  min-height: 46px;
}

textarea {
  resize: vertical;
}

.quick-tags {
  display: grid;
  gap: 10px;
}

.quick-tag-group {
  display: grid;
  gap: 7px;
}

.quick-tag-group strong {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.quick-tag-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tags button {
  width: auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: #344054;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.quick-tags button:hover {
  border-color: #b8c0ff;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #b8c0ff;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(91, 104, 232, 0.10);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #374151;
  font-size: 13px;
}

.toggle-row label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.toggle-row input {
  width: auto;
}

.primary-button {
  border: 0;
  border-radius: 15px;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--deep), var(--primary));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(91, 104, 232, 0.22);
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.secondary-button:disabled,
.danger-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.task-box,
.empty-state {
  min-height: 240px;
}

.empty-state {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(248,250,252,0.82);
  padding: 24px;
}

.empty-state.compact {
  min-height: 120px;
  margin-top: 14px;
}

.empty-state-visual {
  place-items: stretch;
  align-content: start;
  justify-items: stretch;
  gap: 12px;
  min-height: 260px;
  text-align: left;
  border-style: solid;
  border-color: rgba(210, 219, 235, 0.86);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,250,252,0.82)),
    radial-gradient(circle at 16% 12%, rgba(91,104,232,0.12), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(24,183,167,0.14), transparent 30%);
}

.empty-state-visual strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.empty-state-visual span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.empty-visual-thumb {
  width: 100%;
  min-height: 132px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(17,24,39,0.18)),
    url("/assets/three-feature/case-wide-2.png") center / cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.68);
}

.tasks-empty-state .empty-visual-thumb {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(17,24,39,0.18)),
    url("/assets/three-feature/ad-poster-tech.png") center / cover;
}

.assets-empty-state .empty-visual-thumb {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(17,24,39,0.18)),
    url("/assets/three-feature/medical-01.webp") center / cover;
}

.flow-state-card {
  min-height: 240px;
  display: grid;
  align-content: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248,250,252,0.9);
  padding: 24px;
  color: var(--text);
}

.flow-state-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.flow-state-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.flow-state-card-success {
  border-color: rgba(19, 111, 69, 0.18);
  background: #f0fdf6;
}

.flow-state-card-warn {
  border-color: rgba(180, 83, 9, 0.18);
  background: #fffaf0;
}

.flow-state-card-error {
  border-color: rgba(194, 65, 93, 0.22);
  background: #fff7f9;
}

.flow-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-state-actions > * {
  min-height: 42px;
}

.backend-preview-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.compact-heading {
  margin-bottom: 10px;
}

.backend-preview-box {
  display: grid;
  gap: 12px;
}

.backend-preview-item {
  display: grid;
  gap: 8px;
}

.backend-preview-title {
  font-weight: 700;
  color: var(--text);
}

.backend-prompt-text {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: 13px/1.65 var(--font-sans);
}

.admin-records-column {
  min-width: 0;
}

.admin-today-usage {
  margin: 0 0 16px;
}

.admin-daily-usage {
  margin: 0 0 16px;
}

.admin-daily-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.admin-daily-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  flex: 1;
}

.admin-daily-toolbar label span {
  color: var(--muted);
  font-size: 12px;
}

.daily-usage-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.daily-usage-summary strong {
  color: var(--text);
  font-size: 14px;
}

.daily-usage-summary span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.daily-usage-record,
.daily-usage-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.daily-usage-record {
  display: grid;
  gap: 10px;
}

.daily-usage-record-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.daily-usage-record-main div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.daily-usage-record-main strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.daily-usage-record-main span,
.daily-usage-record-stats,
.daily-usage-empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.daily-usage-time {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.daily-usage-record-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.daily-usage-empty {
  display: grid;
  gap: 4px;
}

.daily-usage-empty strong {
  color: var(--text);
  font-size: 14px;
}

.today-usage-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.today-usage-summary strong {
  color: var(--text);
  font-size: 14px;
}

.today-usage-summary span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.today-usage-row,
.today-usage-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.today-usage-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  gap: 10px 14px;
  align-items: center;
}

.today-usage-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.today-usage-main strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.today-usage-main span,
.today-usage-meta,
.today-usage-empty span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.today-usage-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.today-usage-stats div {
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 8px;
  display: grid;
  gap: 3px;
}

.today-usage-stats span {
  color: var(--muted);
  font-size: 11px;
}

.today-usage-stats strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.15;
}

.today-usage-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.today-usage-empty {
  display: grid;
  gap: 4px;
}

.today-usage-empty strong {
  color: var(--text);
  font-size: 14px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.admin-stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.admin-stat-card.primary {
  border-color: rgba(38, 99, 235, 0.28);
  background: #f8fbff;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.admin-stat-card strong {
  color: var(--text);
  font-size: 19px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.admin-stat-card small {
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
}

.preview-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #edf0f5;
  overflow: hidden;
  margin: -8px 0 14px;
  position: relative;
}

.preview-progress-track div {
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 360ms ease;
}

.poster-preview-area {
  min-height: 460px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,250,252,0.88));
  padding: 14px;
  display: grid;
  align-content: start;
}

.poster-preview-empty {
  min-height: 420px;
  border: 1px dashed #cfd6e4;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(91,104,232,0.10), transparent 28%),
    #ffffff;
  padding: 24px;
}

.poster-preview-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.poster-preview-top,
.poster-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.poster-preview-top strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.poster-preview-top span {
  color: var(--muted);
  font-size: 12px;
}

.poster-preview-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.poster-preview-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  max-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(91,104,232,0.20), transparent 30%),
    radial-gradient(circle at 24% 76%, rgba(24,183,167,0.12), transparent 24%),
    linear-gradient(90deg, rgba(126,231,219,0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(139,149,255,0.06) 1px, transparent 1px),
    linear-gradient(135deg, #111827, #2a315a);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 46px rgba(126,231,219,0.08);
}

.poster-preview-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(126,231,219,0.10) 44%, rgba(255,255,255,0.20) 50%, rgba(126,231,219,0.08) 56%, transparent 100%);
  transform: translateX(-120%);
  animation: frameLightSweep 4.8s cubic-bezier(.55, .04, .25, 1) infinite;
  pointer-events: none;
}

.poster-live-badge,
.poster-frame-cancel {
  position: absolute;
  z-index: 5;
}

.poster-live-badge {
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(17,24,39,0.52);
  color: #ffffff;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.poster-live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ee7db;
  box-shadow: 0 0 0 0 rgba(126,231,219,0.62);
  animation: liveDotPulse 1s ease-out infinite;
}

.poster-frame-cancel {
  top: 12px;
  right: 12px;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(225,29,72,0.28);
}

.poster-depth-grid {
  position: absolute;
  inset: -22%;
  background:
    linear-gradient(90deg, rgba(126,231,219,0.10) 1px, transparent 1px),
    linear-gradient(0deg, rgba(139,149,255,0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(360px) rotateX(58deg) translateY(8%);
  transform-origin: 50% 72%;
  opacity: 0.28;
  animation: depthGridFlow 8s linear infinite;
}

.poster-particle-field {
  position: absolute;
  inset: 0;
}

.poster-particle-field i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dffcf9;
  box-shadow: 0 0 12px rgba(126,231,219,0.62);
  opacity: 0.72;
  animation: particleFloat 2.4s ease-in-out infinite, particleGlow 1.8s ease-in-out infinite;
  animation-delay: calc(var(--d) * 180ms), calc(var(--d) * 120ms);
}

.poster-soft-lines {
  position: absolute;
  inset: 28px;
  pointer-events: none;
}

.poster-soft-lines span {
  position: absolute;
  width: 34%;
  height: 1px;
  background: rgba(255,255,255,0.18);
}

.poster-soft-lines span:nth-child(1) { left: 8%; top: 22%; }
.poster-soft-lines span:nth-child(2) { right: 10%; top: 64%; width: 24%; }

.poster-slide-window {
  position: relative;
  z-index: 2;
  max-width: min(92%, 560px);
  width: min(92%, 560px);
  height: clamp(96px, 20vw, 136px);
  min-height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  contain: layout paint;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 64px rgba(0,0,0,0.12);
}

.poster-slide-line {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(21px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1.22;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(0.98);
  filter: blur(4px);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 46%, rgba(255,255,255,0.78) 72%, rgba(255,255,255,0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(126,231,219,0.36), 0 8px 24px rgba(0,0,0,0.18);
  animation: slideCopyFlow var(--cycle, 8.4s) cubic-bezier(.45, 0, .2, 1) infinite;
  animation-delay: calc(var(--s) * 2.8s);
}

.poster-slide-line span {
  display: inline-block;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.poster-progress-signals {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.poster-progress-signals span {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(126,231,219,0.95), transparent);
  box-shadow: 0 0 12px rgba(126,231,219,0.42);
  opacity: 0.46;
  animation: signalPulse 2.6s ease-in-out infinite;
  animation-delay: calc(var(--s) * 180ms);
}

.poster-stage-name {
  position: absolute;
  left: 18px;
  bottom: 50px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.poster-stage-detail {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  line-height: 1.45;
}

.preview-lock-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.preview-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.backend-structure {
  display: grid;
  gap: 10px;
}

.preview-summary > div,
.backend-structure > div,
.backend-notice,
.backend-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.preview-summary > div,
.backend-structure > div {
  padding: 10px;
  min-width: 0;
}

.preview-summary span,
.backend-structure span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.preview-summary strong,
.backend-structure strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-panel {
  display: grid;
  gap: 12px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.account-credit-row {
  display: grid;
  gap: 0;
}

.account-credit-row summary {
  min-height: 58px;
}

.account-fold-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-fold-main strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.account-fold-main small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.account-credit-pill {
  flex: 0 0 auto;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.backend-item summary .account-credit-pill {
  color: #344054;
  font-size: 12px;
}

.admin-code-item {
  min-width: 0;
}

.admin-code-section-title {
  margin: 12px 2px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.admin-code-row strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-code-row span {
  justify-self: end;
  border: 1px solid #d8f3ed;
  border-radius: 999px;
  background: #eefcf8;
  color: #067a6f;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-code-item.empty .admin-code-row span {
  border-color: #e5eaf1;
  background: #f8fafc;
  color: var(--muted);
}

.admin-code-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-code-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-credit-detail {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
  background: #fbfcfe;
}

.account-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.account-usage-grid div {
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 4px;
}

.account-usage-grid span {
  color: var(--muted);
  font-size: 11px;
}

.account-usage-grid strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.account-credit-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-photo-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
}

.account-photo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.account-photo-header strong {
  color: var(--text);
  font-size: 13px;
}

.account-photo-header span {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.account-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-photo-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  overflow: hidden;
}

.account-photo-link {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.account-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-photo-link > span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px;
  text-align: center;
}

.account-photo-params {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.account-photo-params strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.account-photo-params div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  color: #344054;
  font-size: 11px;
  line-height: 1.35;
}

.account-photo-params span {
  color: var(--muted);
  font-weight: 900;
}

.account-photo-params b {
  color: #344054;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.account-photo-empty {
  display: grid;
  gap: 4px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  text-align: center;
}

.account-photo-empty strong {
  color: var(--text);
  font-size: 13px;
}

.account-photo-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.member-permission-box {
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
}

.member-permission-box.compact {
  background: #fff;
}

.permission-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.permission-editor label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.permission-editor label span {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.permission-editor input[type="checkbox"] {
  width: 18px;
  height: 18px;
  justify-self: start;
}

.account-action-stack {
  display: grid;
  gap: 8px;
}

.mine-tools-panel {
  overflow: hidden;
}

.mine-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mine-tool-card {
  appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  padding: 16px 14px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mine-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.09), rgba(37, 99, 235, 0.05));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.mine-tool-card:hover,
.mine-tool-card:focus-visible {
  border-color: #99f6e4;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.mine-tool-card:hover::before,
.mine-tool-card:focus-visible::before {
  opacity: 1;
}

.mine-tool-card:active {
  transform: translateY(0);
}

.mine-tool-icon,
.mine-tool-copy,
.mine-tool-arrow {
  position: relative;
  z-index: 1;
}

.mine-tool-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.mine-tool-card-assets .mine-tool-icon {
  background: #eff6ff;
  color: #1d4ed8;
}

.mine-tool-card-manual .mine-tool-icon {
  background: #fff7ed;
  color: #c2410c;
}

.mine-tool-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mine-tool-copy strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 950;
}

.mine-tool-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mine-tool-arrow {
  color: #94a3b8;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.inline-credit-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.inline-credit-editor label {
  display: grid;
  gap: 6px;
}

.inline-credit-editor label span {
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.inline-credit-editor input {
  min-height: 40px;
}

.backend-notice {
  padding: 10px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.6;
}

.backend-list {
  display: grid;
  gap: 10px;
}

.backend-item {
  overflow: hidden;
}

.backend-item summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
}

.backend-item summary strong {
  font-size: 13px;
  line-height: 1.4;
}

.backend-item summary span,
.backend-meta {
  color: var(--muted);
  font-size: 12px;
}

.backend-meta {
  border-top: 1px solid var(--line);
  padding: 9px 12px 0;
  line-height: 1.5;
  display: grid;
  gap: 6px;
}

.backend-meta b {
  display: inline-block;
  color: #374151;
  margin-right: 6px;
}

.backend-item pre {
  margin: 10px 12px 12px;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: #1f2937;
  padding: 12px;
  font-size: 12px;
  line-height: 1.65;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.progress-bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  width: 0;
  transition: width 200ms ease;
}

.progress-bar::after {
  content: none;
}

.generation-console {
  position: relative;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(229, 233, 240, 0.92);
  border-radius: 26px;
  background:
    radial-gradient(circle at 78% 12%, rgba(91,104,232,0.30), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(24,183,167,0.20), transparent 30%),
    linear-gradient(135deg, rgba(17,24,39,0.98), rgba(31,42,86,0.96));
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: #ffffff;
}

.compact-console {
  gap: 12px;
  border-radius: 20px;
  padding: 14px;
  min-height: 0;
}

.compact-console .console-title {
  font-size: 16px;
}

.compact-console .progress-bar {
  height: 7px;
}

.compact-stage-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.compact-stage-row span {
  position: relative;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  color: #c6d0df;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.compact-stage-row span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: translateX(-120%);
  animation: chipSweep 1.35s ease-in-out infinite;
  animation-delay: calc(var(--i) * 100ms);
}

.compact-stage-row span.active {
  background: rgba(91,104,232,0.28);
  color: #ffffff;
  border-color: rgba(139,149,255,0.45);
}

.compact-stage-row span.done {
  background: rgba(24,183,167,0.18);
  color: #ffffff;
}

.compact-console .console-footer {
  font-size: 11px;
}

.generation-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(105,119,232,0.08) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: consoleSweep 4.5s ease-in-out infinite;
}

.generation-console > * {
  position: relative;
  z-index: 1;
}

.console-scan {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
  animation: consoleLine 3.2s ease-in-out infinite;
  z-index: 0;
}

.console-topline,
.console-footer,
.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  color: var(--primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.console-title {
  margin-top: 4px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 750;
}

.console-progress {
  display: grid;
  gap: 8px;
}

.progress-meta {
  color: #c6d0df;
  font-size: 12px;
}

.progress-meta strong {
  color: #ffffff;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(230px, 1.15fr);
  gap: 14px;
}

.stage-rail,
.context-panel {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.stage-rail {
  display: grid;
  padding: 8px;
}

.stage-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 14px;
  color: #b8c2d4;
}

.stage-step > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
  color: #c6d0df;
  font-size: 12px;
  font-weight: 700;
}

.stage-step strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
}

.stage-step em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.stage-step.active {
  background: rgba(255,255,255,0.12);
}

.stage-step.active > span {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(105,119,232,0.13);
}

.stage-step.done > span {
  background: var(--primary-2);
  color: #ffffff;
}

.context-panel {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.context-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
}

.context-heading em {
  color: #7ee7db;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  animation: softBlink 1.4s ease-in-out infinite;
}

.context-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.context-list div {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 9px;
  background: rgba(255,255,255,0.09);
  min-height: 58px;
  animation: contextPulse 4.8s ease-in-out infinite;
  animation-delay: calc(var(--pulse-delay, 0) * 260ms);
}

.context-list span {
  display: block;
  color: #b8c2d4;
  font-size: 11px;
  margin-bottom: 5px;
}

.context-list strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.context-list div:nth-child(1) { --pulse-delay: 0; }
.context-list div:nth-child(2) { --pulse-delay: 1; }
.context-list div:nth-child(3) { --pulse-delay: 2; }
.context-list div:nth-child(4) { --pulse-delay: 3; }
.context-list div:nth-child(5) { --pulse-delay: 4; }

.fake-monitor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fake-monitor span {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: #c6d0df;
  padding: 9px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fake-monitor span::after {
  content: "";
  position: absolute;
  left: -45%;
  top: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(126,231,219,0.24), transparent);
  animation: monitorSweep 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 180ms);
}

.live-action-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.live-action-strip span {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 15px;
  background: rgba(255,255,255,0.08);
  color: #dce5f2;
  padding: 8px 9px;
  font-size: 12px;
  text-align: center;
  animation: liveAction 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 180ms);
}

.render-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
}

.render-slot {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  padding: 9px;
  display: grid;
  gap: 5px;
  min-height: 64px;
}

.render-slot span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.12);
  color: #dce5f2;
  font-size: 12px;
  font-weight: 800;
}

.render-slot strong {
  color: #dce5f2;
  font-size: 12px;
}

.render-slot.active {
  border-color: rgba(105,119,232,0.55);
  background: rgba(91,104,232,0.24);
  animation: activeSlot 1.6s ease-in-out infinite;
}

.render-slot.active span {
  background: var(--primary);
  color: #ffffff;
}

.render-slot.done {
  border-color: rgba(22,163,74,0.32);
  background: rgba(24,183,167,0.18);
}

.render-slot.done span {
  background: var(--primary-2);
  color: #ffffff;
}

.console-footer {
  color: #c6d0df;
  font-size: 12px;
}

@keyframes slideCopyFlow {
  0% {
    opacity: 0;
    transform: translate3d(0, 54px, 0) scale(0.96);
    filter: blur(7px);
  }
  8% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  30% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.01);
    filter: blur(0);
  }
  46% {
    opacity: 0.36;
    transform: translate3d(0, -18px, 0) scale(0.995);
    filter: blur(2px);
  }
  58% {
    opacity: 0;
    transform: translate3d(0, -54px, 0) scale(0.98);
    filter: blur(7px);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -54px, 0) scale(0.98);
    filter: blur(7px);
  }
}

@keyframes frameLightSweep {
  0%, 58% {
    transform: translateX(-120%);
    opacity: 0;
  }
  68% {
    opacity: 1;
  }
  88%, 100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes liveDotPulse {
  0% {
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(126,231,219,0.66);
  }
  72% {
    transform: scale(1);
    box-shadow: 0 0 0 9px rgba(126,231,219,0);
  }
  100% {
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(126,231,219,0);
  }
}

@keyframes signalPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleX(0.76);
  }
  48% {
    opacity: 0.86;
    transform: scaleX(1);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0.56;
  }
  50% {
    transform: translate3d(7px, -10px, 0) scale(1.12);
    opacity: 0.9;
  }
}

@keyframes particleGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(126,231,219,0.42);
  }
  50% {
    box-shadow: 0 0 22px rgba(126,231,219,0.86), 0 0 38px rgba(139,149,255,0.26);
  }
}

@keyframes depthGridFlow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

@keyframes lensStackPulse {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.64;
  }
  50% {
    transform: translateX(-6px);
    opacity: 1;
  }
}

@keyframes wavePop {
  0% {
    transform: scale(0.54) rotate(0deg);
    opacity: 0.18;
  }
  50% {
    opacity: 0.46;
  }
  100% {
    transform: scale(1.18) rotate(18deg);
    opacity: 0.18;
  }
}

@keyframes previewSweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}

@keyframes consoleSweep {
  0%, 42% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@keyframes consoleLine {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  70% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes softBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes contextPulse {
  0%, 75%, 100% {
    border-color: #e5e7eb;
    box-shadow: none;
  }
  38% {
    border-color: rgba(105,119,232,0.45);
    box-shadow: 0 0 0 3px rgba(105,119,232,0.08);
  }
}

@keyframes liveAction {
  0%, 100% {
    background: rgba(255,255,255,0.08);
    color: #dce5f2;
  }
  45% {
    background: rgba(91,104,232,0.24);
    color: #ffffff;
  }
}

@keyframes monitorSweep {
  0%, 30% { transform: translateX(0); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: translateX(340%); opacity: 0; }
}

@keyframes chipSweep {
  0%, 45% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes activeSlot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(105,119,232,0.18); }
  50% { box-shadow: 0 0 0 5px rgba(105,119,232,0.12); }
}

.works-grid,
.asset-grid,
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.works-load-more {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.works-load-more .secondary-button {
  min-width: 148px;
}

.asset-grid {
  grid-template-columns: 1fr;
}

.asset-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(248,250,252,0.78);
  display: grid;
  gap: 12px;
}

.asset-section::before {
  background:
    radial-gradient(circle at 0 0, rgba(24,183,167,0.13), transparent 38%),
    radial-gradient(circle at 100% 0, rgba(91,104,232,0.10), transparent 34%);
}

.asset-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.asset-section-head h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.asset-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.asset-section-head span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.asset-section-head strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.asset-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.work-card,
.asset-card,
.preview-card,
.avatar-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(31,45,74,0.07);
}

.work-management-panel,
.task-management-panel,
.asset-upload-panel,
.asset-framework-panel {
  position: relative;
  overflow: hidden;
}

.work-management-panel::before,
.task-management-panel::before,
.asset-upload-panel::before,
.asset-framework-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 168px;
  pointer-events: none;
}

.work-management-panel::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.92)),
    linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.22)),
    var(--workbench-works-bg) center 38% / cover no-repeat;
}

.task-management-panel::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.92)),
    linear-gradient(90deg, rgba(255,255,255,0.70), rgba(255,255,255,0.08)),
    var(--workbench-tasks-bg) center 42% / cover no-repeat;
}

.asset-upload-panel::before,
.asset-framework-panel::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(20,184,166,0.13), transparent 34%),
    radial-gradient(circle at 92% 0, rgba(244,114,182,0.11), transparent 30%);
}

.work-management-panel > *,
.task-management-panel > *,
.asset-upload-panel > *,
.asset-framework-panel > * {
  position: relative;
  z-index: 1;
}

#createView .workspace-grid {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding-top: 18px;
}

#createView .workspace-grid::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 178px;
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.96)),
    linear-gradient(90deg, rgba(255,255,255,0.78), rgba(255,255,255,0.18)),
    var(--workbench-create-bg) center 42% / cover no-repeat;
  pointer-events: none;
}

#createView .workspace-grid > * {
  position: relative;
  z-index: 1;
}

.work-card {
  position: relative;
  isolation: isolate;
}

.work-card::before,
.task-row::before,
.asset-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.work-card::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.58)),
    radial-gradient(circle at 0 0, rgba(91,104,232,0.14), transparent 42%);
}

.work-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #5b68e8, #18b7a7);
  pointer-events: none;
  z-index: 1;
}

.work-card > *,
.task-row > *,
.asset-section > * {
  position: relative;
  z-index: 2;
}

.work-card.tone-ad::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.6)),
    radial-gradient(circle at 0 0, rgba(91,104,232,0.16), transparent 44%),
    radial-gradient(circle at 100% 0, rgba(24,183,167,0.12), transparent 40%);
}

.work-card.tone-ad::after {
  background: linear-gradient(180deg, #5b68e8, #18b7a7);
}

.work-card.tone-compare::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.62)),
    radial-gradient(circle at 0 0, rgba(244,114,182,0.18), transparent 44%),
    radial-gradient(circle at 100% 10%, rgba(251,191,36,0.12), transparent 40%);
}

.work-card.tone-compare::after {
  background: linear-gradient(180deg, #f472b6, #f59e0b);
}

.work-card.tone-chat::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.62)),
    radial-gradient(circle at 0 0, rgba(20,184,166,0.17), transparent 44%),
    radial-gradient(circle at 100% 0, rgba(132,204,22,0.12), transparent 40%);
}

.work-card.tone-chat::after {
  background: linear-gradient(180deg, #14b8a6, #84cc16);
}

.work-card.tone-video::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.62)),
    radial-gradient(circle at 0 0, rgba(99,102,241,0.18), transparent 44%),
    radial-gradient(circle at 100% 0, rgba(14,165,233,0.13), transparent 40%);
}

.work-card.tone-video::after {
  background: linear-gradient(180deg, #6366f1, #0ea5e9);
}

.select-check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.select-check input {
  width: 16px;
  height: 16px;
}

.work-card img,
.asset-card img,
.preview-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.preview-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.work-video-actions {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.work-video-actions span {
  color: var(--muted);
  font-size: 13px;
}

.work-video-section {
  margin: 14px 0 18px;
}

.work-video-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.avatar-box {
  margin-top: 14px;
}

.avatar-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.card-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.card-title {
  font-weight: 700;
  line-height: 1.35;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.work-param-section {
  display: grid;
  gap: 10px;
  margin: 16px 0 14px;
}

.work-param-section h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.work-param-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.work-param-list div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 8px 9px;
}

.work-param-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.work-param-list strong {
  display: block;
  color: #1f2937;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.work-param-list.compact {
  grid-template-columns: 1fr;
  gap: 6px;
}

.work-param-list.compact div {
  border-radius: 10px;
  padding: 7px 8px;
}

.work-param-list.compact strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-framework {
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}

.inline-edit-field {
  display: grid;
  gap: 6px;
}

.inline-edit-field span {
  font-size: 12px;
  color: var(--muted);
}

.inline-edit-field input {
  min-width: 0;
  width: 100%;
}

.asset-title-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.asset-rename-sheet.hidden {
  display: none;
}

.asset-rename-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
}

.asset-rename-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.34);
}

.asset-rename-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  box-shadow: 0 -20px 50px rgba(31,45,74,0.18);
}

.asset-rename-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.asset-rename-head strong,
.asset-rename-head span,
.asset-rename-field span {
  display: block;
}

.asset-rename-head strong {
  font-size: 16px;
}

.asset-rename-head span,
.asset-rename-field span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.asset-rename-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.asset-rename-field {
  display: grid;
  gap: 7px;
}

.asset-rename-field input {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
}

.asset-rename-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.asset-rename-actions > * {
  min-height: 44px;
}

.asset-rename-open {
  overflow: hidden;
}

.status-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.ok {
  background: linear-gradient(135deg, #dcfce7, #ccfbf1);
  color: #047857;
}

.status-pill.muted {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  color: #475569;
}

.status-pill.warn {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  color: #b45309;
}

.failed-preview {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255,247,237,0.92), rgba(254,243,199,0.86)),
    radial-gradient(circle at 18% 18%, rgba(244,114,182,0.18), transparent 32%);
  color: #b45309;
  font-size: 13px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.secondary-button,
.danger-button,
.download-link {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.86);
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
}

.danger-button {
  border-color: rgba(194, 65, 93, 0.24);
  background: #fff1f4;
  color: var(--danger);
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  padding: 14px;
  box-shadow: 0 10px 24px rgba(31,45,74,0.05);
}

.task-row::before {
  background:
    linear-gradient(90deg, rgba(91,104,232,0.12), transparent 36%),
    radial-gradient(circle at 100% 0, rgba(24,183,167,0.10), transparent 28%);
}

.task-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #f59e0b, #5b68e8);
  pointer-events: none;
  z-index: 1;
}

.task-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.task-note {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(246,248,251,0.92);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.task-note span {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-weight: 700;
}

.task-note strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.error-line {
  margin-top: 6px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.copy-box {
  white-space: pre-wrap;
  background: rgba(248,250,252,0.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  color: #374151;
  line-height: 1.7;
  margin: 14px 0;
}

.work-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.26);
}

.work-dialog.is-open {
  display: block;
  position: fixed;
  inset: 16px;
  z-index: 120;
  margin: auto;
}

body.work-dialog-open {
  overflow: hidden;
}

body.work-dialog-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 119;
  background: rgba(15, 23, 42, 0.46);
}

.work-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.work-detail-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.work-detail-loading strong {
  color: var(--text);
  font-size: 18px;
}

.work-detail-loading.error strong {
  color: var(--danger);
}

@media (max-width: 980px) {
  body {
    min-height: 100dvh;
    background:
      radial-gradient(circle at 78% 8%, rgba(91, 104, 232, 0.08), transparent 30%),
      radial-gradient(circle at 88% 82%, rgba(24, 183, 167, 0.10), transparent 32%),
      linear-gradient(180deg, #ffffff 0%, #f8fafc 54%, #f1f4f8 100%);
    background-attachment: fixed;
    background-size: cover;
  }

  .auth-page {
    display: block;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    padding: 24px;
    overflow-x: hidden;
  }

  .auth-shell {
    width: min(100%, calc(100vw - 48px));
    max-width: 430px;
    margin: 0 auto;
  }

  .auth-card {
    width: 100%;
    padding: 30px;
  }

  .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 0 0 18px;
  }

  .sidebar-DISABLED {
    position: relative;
    inset: auto;
    width: min(100%, 430px);
    transform: none;
    margin: 0;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 24px;
    padding: 10px;
    display: block;
    background: rgba(255,255,255,0.18);
    color: var(--text);
    box-shadow: 0 18px 42px rgba(31,45,74,0.12);
    backdrop-filter: blur(18px) saturate(1.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
    z-index: 80;
  }

  .brand-mark-DISABLED {
    display: none;
  }

  .brand-icon {
    background: linear-gradient(135deg, var(--deep), var(--primary));
    color: #ffffff;
  }

  .brand-title {
    color: var(--text);
    font-size: 18px;
  }

  .brand-subtitle,
  .health-text,
  .label {
    color: var(--muted);
  }

  .nav-list-DISABLED {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
    overflow: hidden;
    scrollbar-width: none;
  }

  .nav-list-DISABLED::-webkit-scrollbar {
    display: none;
  }

  .nav-item-DISABLED {
    flex: 1 1 calc(25% - 6px);
    min-width: 0;
    min-height: 54px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(16,24,40,0.62);
    text-align: center;
    justify-content: center;
    padding: 7px 6px 6px;
    font-size: 12px;
    box-shadow: none;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    line-height: 1.1;
  }

  .nav-item-DISABLED::before {
    width: 21px;
    height: 21px;
    border-radius: 9px;
    display: block;
    color: inherit;
    content: "";
  }

  .nav-item-DISABLED[data-view="home"]::before {
    background:
      linear-gradient(currentColor, currentColor) center 12px / 13px 7px no-repeat,
      linear-gradient(135deg, transparent 46%, currentColor 47% 56%, transparent 57%) center 2px / 18px 14px no-repeat;
  }

  .nav-item-DISABLED[data-view="create"]::before {
    content: "+";
    display: grid;
    place-items: center;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
  }

  .nav-item-DISABLED[data-view="works"]::before {
    background:
      linear-gradient(currentColor, currentColor) left top / 8px 8px no-repeat,
      linear-gradient(currentColor, currentColor) right top / 8px 8px no-repeat,
      linear-gradient(currentColor, currentColor) left bottom / 8px 8px no-repeat,
      linear-gradient(currentColor, currentColor) right bottom / 8px 8px no-repeat;
  }

  .nav-item-DISABLED[data-view="mine"]::before {
    border: 2px solid currentColor;
    border-radius: 50%;
  }

  .nav-item-DISABLED:hover,
  .nav-item.active {
    border-color: rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.20);
    color: var(--deep);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 8px 18px rgba(31,45,74,0.08);
    backdrop-filter: blur(14px) saturate(1.14);
    -webkit-backdrop-filter: blur(14px) saturate(1.14);
  }

  .system-card {
    display: none;
  }

  .main {
    margin-left: 0;
    padding: 14px 16px 24px;
  }

  .topbar {
    display: none;
  }

  .topbar .eyebrow {
    color: #b8c2d4;
    letter-spacing: 0;
    text-transform: none;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .topbar p {
    color: #c6d0df;
    font-size: 14px;
    line-height: 1.55;
  }

  .account-actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .topbar .account-actions {
    display: none;
  }

  .mine-mobile-account-actions {
    display: flex;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(229,233,240,0.92);
    box-shadow: 0 12px 32px rgba(31,45,74,0.08);
  }

  .account-actions span {
    color: var(--muted);
    flex: 1 1 100%;
    line-height: 1.35;
  }

  .icon-button {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: #ffffff;
    color: var(--text);
    border-color: rgba(229,233,240,0.96);
    box-shadow: 0 8px 18px rgba(31,45,74,0.06);
  }

  .panel {
    padding: 16px;
    border-radius: 24px;
    margin-top: 14px;
  }

  .mobile-home-shell {
    gap: 14px;
  }

  .home-hero {
    min-height: 218px;
    grid-template-columns: 1fr;
    border-radius: 24px;
    padding: 22px;
    gap: 18px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.80) 48%, rgba(255,255,255,0.20) 100%),
      var(--workbench-home-bg) center 34% / cover no-repeat;
  }

  .home-hero h2 {
    font-size: 29px;
    max-width: 280px;
  }

  .home-hero p {
    max-width: 280px;
    font-size: 14px;
  }

  .home-hero-preview {
    width: 100%;
    max-width: 236px;
    height: 126px;
    justify-self: start;
  }

  .preview-window {
    inset: 8px 44px 10px 0;
  }

  .preview-card-main {
    width: 68px;
    height: 82px;
  }

  .preview-card-side {
    width: 88px;
    height: 42px;
  }

  .home-quick-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 12px;
  }

  .home-quick-card {
    min-height: 154px;
    border-radius: 22px;
    padding: 14px;
  }

  .home-quick-card.primary {
    grid-row: span 2;
    min-height: 320px;
  }

  .home-quick-card strong {
    font-size: 19px;
  }

  .home-quick-card small {
    font-size: 12px;
  }

  .home-card-visual {
    height: 58px;
  }

  .home-quick-card.primary .home-card-visual {
    height: 118px;
  }

  .home-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-steps div {
    grid-template-columns: 24px minmax(0, auto) minmax(0, 1fr);
    align-items: center;
  }

  .home-steps small {
    text-align: right;
  }

  .home-inspiration-grid {
    grid-template-columns: 1fr;
  }

  .home-daily-ai {
    padding: 16px;
  }

  .home-daily-ai-main {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .home-daily-ai h2 {
    font-size: 20px;
  }

  .home-daily-action {
    width: 100%;
  }

  .home-daily-news {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-daily-result {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-template-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .home-template-row::-webkit-scrollbar {
    display: none;
  }

  .home-template-card {
    flex: 0 0 156px;
    border-radius: 20px;
  }

  .home-template-card img {
    aspect-ratio: 1 / 1;
  }

  .home-section-head h2 {
    font-size: 20px;
  }

  .mine-tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mine-tool-card {
    min-height: 104px;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 16px;
  }

  .mine-tool-icon {
    width: 48px;
    height: 48px;
  }

  #createView .form-panel {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  #createView .workspace-grid {
    border-radius: 26px;
    padding: 126px 0 0;
  }

  #createView .workspace-grid::before {
    height: 156px;
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.92)),
      var(--workbench-create-bg) center 42% / cover no-repeat;
  }

  #createView .form-panel > .panel-heading {
    display: none;
  }

  .manual-public-page {
    padding: 14px;
  }

  .manual-heading {
    display: grid;
    gap: 12px;
  }

  .manual-heading h1 {
    font-size: 26px;
  }

  .manual-toc {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .manual-toc::-webkit-scrollbar {
    display: none;
  }

  .manual-toc a {
    flex: 0 0 auto;
  }

  .manual-section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
  }

  .manual-section figure {
    order: -1;
  }

  .panel-heading h2 {
    font-size: 22px;
  }

  .panel-heading {
    margin-bottom: 16px;
  }

  .list-toolbar {
    margin-bottom: 10px;
  }

  .admin-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .panel-heading span {
    padding: 7px 10px;
    font-size: 12px;
  }

  .workspace-grid,
  .workspace-grid.slim,
  .two-col,
  .form-actions,
  .inline-credit-editor,
  .account-usage-grid,
  .admin-daily-toolbar,
  .today-usage-row,
  .today-usage-stats,
  .permission-editor,
  .preview-summary,
  .console-grid,
  .context-list,
  .work-param-list,
  .admin-stat-grid,
  .task-row {
    grid-template-columns: 1fr;
  }

  .account-photo-grid {
    grid-template-columns: 1fr;
  }

  .today-usage-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-usage-summary,
  .daily-usage-record-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-usage-summary span,
  .today-usage-summary span {
    text-align: left;
  }

  .advanced-create-fields {
    padding: 12px;
  }

  .advanced-create-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .account-action-stack {
    grid-template-columns: 1fr;
  }

  .admin-code-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-code-row span {
    justify-self: start;
    white-space: normal;
  }

  #createView .workspace-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 14px;
    align-items: stretch;
  }

  #createView .form-panel,
  #createView .result-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #createView .result-panel {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    display: grid;
    gap: 10px;
    align-self: stretch;
  }

  #createView .result-panel .panel-heading {
    margin: 0;
    padding: 0 2px;
  }

  #createView .result-panel .panel-heading h2 {
    font-size: 18px;
    line-height: 1.25;
  }

  #createView .result-panel .panel-heading span {
    padding: 5px 9px;
    font-size: 11px;
  }

  .category-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 78px;
    padding: 10px 8px;
    border: 1px solid rgba(229, 233, 240, .98);
    border-radius: 14px;
    align-content: center;
    justify-items: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(31,45,74,.06);
    background: #ffffff;
    color: var(--text);
  }

  .category-card strong {
    position: relative;
    z-index: 1;
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .category-card span {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .category-card.active {
    border-color: #b8c0ff;
    background: #ffffff;
    color: #3443ca;
    box-shadow: 0 10px 22px rgba(91, 104, 232, 0.14);
  }

  .category-card[data-category="chat_feedback"] {
    background: #ffffff;
  }

  .category-card[data-category="real_comparison"] {
    background: #ffffff;
  }

  .category-card:hover {
    transform: none;
  }

  input,
  select {
    min-height: 48px;
  }

  #projectNameInput {
    font-size: 18px;
    font-weight: 900;
  }

  .form-stack {
    gap: 12px;
  }

  .field-group {
    display: grid;
    gap: 11px;
  }

  .generation-console {
    border-radius: 24px;
    padding: 18px;
    background:
      linear-gradient(135deg, rgba(17,24,39,.96), rgba(48,58,129,.92));
    color: #ffffff;
  }

  .console-title,
  .progress-meta strong {
    color: #ffffff;
  }

  .console-grid,
  .context-list,
  .work-param-list,
  .live-action-strip {
    grid-template-columns: 1fr;
  }

  .stage-rail,
  .context-panel {
    background: rgba(255,255,255,0.92);
  }

  .works-grid,
  .asset-subgrid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .works-grid,
  .task-list {
    gap: 12px;
  }

  .work-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 14px;
    border-radius: 16px;
  }

  .work-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 152px;
  }

  .work-card img,
  .work-card .failed-preview {
    height: 100%;
    min-height: 152px;
    aspect-ratio: auto;
  }

  .work-card .card-body {
    min-width: 0;
    padding: 11px;
    gap: 7px;
  }

  .work-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .work-card .card-meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .work-card .work-param-list.compact {
    gap: 5px;
  }

  .work-card .work-param-list.compact div {
    padding: 6px 7px;
  }

  .work-card .work-param-list.compact strong {
    -webkit-line-clamp: 1;
  }

  .work-card .status-pill {
    padding: 4px 8px;
  }

  .work-card .card-actions,
  .asset-card .card-actions,
  .task-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    justify-content: stretch;
  }

  .work-card .card-actions > *,
  .asset-card .card-actions > *,
  .task-row-actions > * {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .task-row {
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .asset-grid {
    gap: 12px;
  }

  .asset-section {
    padding: 12px;
    border-radius: 18px;
  }

  .asset-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .asset-section-head p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .asset-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 132px;
  }

  .asset-card img {
    height: 100%;
    min-height: 132px;
    aspect-ratio: auto;
  }

  .asset-card .card-body {
    min-width: 0;
    padding: 10px;
    gap: 7px;
  }

  .asset-card .card-title,
  .asset-card .card-meta {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .asset-card .card-title {
    -webkit-line-clamp: 2;
  }

  .asset-card .card-meta {
    -webkit-line-clamp: 1;
  }

  .asset-card .inline-edit-field,
  .asset-card .asset-framework {
    display: none;
  }

  .flow-state-card {
    min-height: 260px;
    padding: 18px;
  }

  .flow-state-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .task-row > div {
    min-width: 0;
  }

  .task-row .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  .task-row .card-meta {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .form-actions {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 16px 44px rgba(31,45,74,.18);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(229,233,240,.95);
  }

  .poster-preview-area {
    min-height: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(31,45,74,0.07);
    overflow: hidden;
  }

  .task-box.poster-preview-area {
    min-height: 0;
  }

  .poster-preview-empty {
    min-height: 152px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
  }

  .poster-preview-frame {
    aspect-ratio: auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: clamp(210px, 58vw, 260px);
    border-radius: 18px;
  }

  .poster-preview-card {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 0;
    gap: 10px;
    padding: 12px;
    box-sizing: border-box;
  }

  .poster-preview-top {
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    align-content: center;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: #ffffff;
  }

  .poster-preview-top strong {
    font-size: 14px;
  }

  .poster-preview-actions {
    width: auto;
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .poster-live-badge {
    top: 10px;
    left: 10px;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .poster-frame-cancel {
    top: 10px;
    right: 10px;
    min-height: 38px;
    padding: 9px 13px;
    font-size: 13px;
  }

  .poster-preview-frame {
    grid-column: auto;
    grid-row: auto;
    height: clamp(210px, 58vw, 260px);
    min-height: 210px;
  }

  .poster-slide-window {
    max-width: 88%;
    width: 88%;
    height: 68px;
    min-height: 68px;
    border-radius: 14px;
  }

  .poster-slide-line {
    font-size: 17px;
    line-height: 1.24;
  }

  .poster-progress-signals {
    top: 12px;
    gap: 6px;
  }

  .poster-progress-signals span {
    width: 26px;
  }

  .poster-stage-name {
    left: 12px;
    bottom: 38px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .poster-stage-detail {
    left: 12px;
    right: 12px;
    bottom: 10px;
    font-size: 10px;
  }

  .compact-stage-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .compact-stage-row::-webkit-scrollbar {
    display: none;
  }

  .compact-stage-row span {
    min-width: max-content;
    padding: 8px 10px;
  }

  .form-actions button {
    min-height: 52px;
    border-radius: 18px;
    font-weight: 900;
  }

  .console-topline,
  .console-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-row-actions,
  .heading-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body.auth-page {
    width: 100vw;
    max-width: 100vw;
    padding: 18px;
    overflow-x: hidden;
  }

  body.auth-page * {
    max-width: 100%;
  }

  body.auth-page .auth-shell {
    width: 100%;
    max-width: none;
  }

  body.auth-page .auth-card {
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
    padding: 22px;
    overflow: hidden;
  }

  body.auth-page input,
  body.auth-page button {
    display: block;
    width: 100%;
  }

  body.auth-page .auth-card h1 {
    font-size: 26px;
  }

  body.auth-page .auth-card p,
  body.auth-page .auth-message,
  body.auth-page .guest-entry span {
    overflow-wrap: anywhere;
  }

  body.auth-page .captcha-box {
    grid-template-columns: 1fr;
  }

  body.auth-page .captcha-image {
    width: 160px;
    max-width: 100%;
  }

  body.auth-page .auth-code-row {
    grid-template-columns: 1fr;
  }

  body.auth-page .auth-action-row {
    grid-template-columns: 1fr;
  }

  body.auth-page .auth-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 22px;
    overflow-y: auto;
  }

  body.auth-page .auth-dialog-close {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 360px) {
  body.auth-page {
    padding: 12px;
  }

  body.auth-page .auth-card {
    padding: 18px;
  }
}

/* 2026-05-19 workbench background refresh */
.home-hero,
.home-quick-card,
.work-management-panel,
#createView .form-panel,
#createView .result-panel,
#mineView > .workspace-grid.slim > .panel,
#mineView > .panel,
.mine-tool-card {
  isolation: isolate;
}

.home-hero {
  border-color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.76) 44%, rgba(255, 255, 255, 0.22) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(250, 244, 238, 0.82)),
    url("/assets/workbench-bg/home-studio.webp") center 36% / cover no-repeat;
  box-shadow: 0 24px 56px rgba(95, 71, 54, 0.12);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.82), transparent 30%),
    linear-gradient(180deg, transparent 58%, rgba(255, 255, 255, 0.48));
  pointer-events: none;
}

.home-kicker {
  color: #9b6a54;
}

.home-hero p {
  color: #596475;
}

.home-hero-preview {
  filter: drop-shadow(0 18px 34px rgba(82, 60, 42, 0.16));
}

.preview-window,
.preview-card {
  border-color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.home-quick-card {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    var(--quick-bg, linear-gradient(135deg, #fff7fa, #f5fbfc));
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(31, 45, 74, 0.10);
}

.home-quick-card::before {
  inset: 0;
  height: auto;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.82)),
    var(--quick-bg, linear-gradient(135deg, #fff7fa, #f5fbfc));
  background-size: cover;
  background-position: center;
  opacity: 0.92;
}

.home-quick-card.primary {
  --quick-bg: url("/assets/workbench-bg/quick-project.webp");
}

.home-quick-card-compare {
  --quick-bg: url("/assets/workbench-bg/quick-compare.webp");
}

.home-quick-card-chat {
  --quick-bg: url("/assets/workbench-bg/quick-chat.webp");
}

.home-quick-card span {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-card-visual {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#createView .form-panel,
#createView .result-panel,
.work-management-panel,
.task-management-panel,
#mineView > .workspace-grid.slim > .panel,
#mineView > .panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.70);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.78)),
    var(--panel-bg-image, linear-gradient(135deg, #ffffff, #f8fafc));
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 54px rgba(31, 45, 74, 0.10);
}

#createView .form-panel::after,
#createView .result-panel::after,
.work-management-panel::after,
.task-management-panel::after,
#mineView > .workspace-grid.slim > .panel::after,
#mineView > .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.62), transparent 28%);
  pointer-events: none;
}

#createView .form-panel > *,
#createView .result-panel > *,
.work-management-panel > *,
.task-management-panel > *,
#mineView > .workspace-grid.slim > .panel > *,
#mineView > .panel > * {
  position: relative;
  z-index: 1;
}

#createView .form-panel,
#createView .result-panel {
  --panel-bg-image: url("/assets/workbench-bg/create-studio.webp");
}

.work-management-panel {
  --panel-bg-image: url("/assets/workbench-bg/works-gallery.webp");
}

.task-management-panel {
  --panel-bg-image: url("/assets/workbench-bg/mine-control.webp");
}

#mineView > .workspace-grid.slim > .panel,
#mineView > .panel {
  --panel-bg-image: url("/assets/workbench-bg/mine-control.webp");
}

.category-card {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 12px 26px rgba(31, 45, 74, 0.08);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.category-card.active {
  background: rgba(244, 247, 255, 0.82);
}

.list-toolbar,
.advanced-create-fields,
.account-panel,
.member-permission-box,
.home-daily-ai,
.home-daily-news article,
.work-card,
.task-row,
.mine-tool-card {
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.mine-tool-card {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.70);
  border-radius: 14px;
}

.mobile-reference-top,
.mobile-reference-greeting,
.mobile-reference-metrics,
.mobile-reference-materials,
.mobile-reference-upgrade {
  display: none;
}

@media (max-width: 980px) {
  body {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.72), rgba(246,248,251,0.88)),
      url("/assets/workbench-bg/home-studio.webp") center top / cover fixed no-repeat;
  }

  body:has(#createView.active) {
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.74), rgba(246, 248, 251, 0.92)),
      url("/assets/workbench-bg/create-studio.webp") center top / cover fixed no-repeat;
  }

  body:has(#worksView.active) {
    background:
      linear-gradient(180deg, rgba(255, 250, 246, 0.74), rgba(246, 248, 251, 0.92)),
      url("/assets/workbench-bg/works-gallery.webp") center top / cover fixed no-repeat;
  }

  body:has(#mineView.active),
  body:has(#tasksView.active),
  body:has(#assetsView.active),
  body:has(#manualView.active) {
    background:
      linear-gradient(180deg, rgba(246, 249, 253, 0.78), rgba(246, 248, 251, 0.94)),
      url("/assets/workbench-bg/mine-control.webp") center top / cover fixed no-repeat;
  }

  .home-hero {
    min-height: 232px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.62) 50%, rgba(255, 255, 255, 0.20) 100%),
      url("/assets/workbench-bg/home-studio.webp") center 28% / cover no-repeat;
  }

  .home-quick-grid {
    margin-bottom: 44px;
  }

  #createView .form-panel,
  #createView .result-panel {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68)),
      url("/assets/workbench-bg/create-studio.webp") center 18% / cover no-repeat;
    box-shadow: 0 18px 42px rgba(31,45,74,0.10);
  }

  #createView .form-panel > .panel-heading {
    display: none;
  }

  #createView .result-panel.hidden-field {
    display: none;
  }

  .work-management-panel,
  .task-management-panel,
  #mineView > .workspace-grid.slim > .panel,
  #mineView > .panel {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.70)),
      var(--panel-bg-image, linear-gradient(135deg, #ffffff, #f8fafc)) center / cover no-repeat;
  }

  #createView .category-tabs {
    gap: 6px;
  }

  #createView .category-card {
    min-height: 66px;
    padding: 6px;
    gap: 3px;
  }

  #createView .category-card strong {
    font-size: 12px;
    line-height: 1.18;
  }

  #createView .category-card span {
    font-size: 9px;
    line-height: 1.2;
  }
}

/* 2026-05-19 reference mobile dashboard */
@media (max-width: 980px) {
  body {
    color: #0f172a;
    background:
      radial-gradient(circle at 78% 4%, rgba(90, 133, 255, 0.18), transparent 28%),
      radial-gradient(circle at 8% 18%, rgba(255, 145, 180, 0.12), transparent 22%),
      linear-gradient(180deg, #fbfdff 0%, #f3f7ff 48%, #ffffff 100%);
  }

  body:has(#createView.active),
  body:has(#worksView.active),
  body:has(#tasksView.active),
  body:has(#mineView.active),
  body:has(#assetsView.active),
  body:has(#manualView.active) {
    background:
      radial-gradient(circle at 78% 4%, rgba(90, 133, 255, 0.16), transparent 28%),
      linear-gradient(180deg, #fbfdff 0%, #f5f8ff 42%, #ffffff 100%);
  }

  .app-shell {
    width: min(100%, 430px);
    padding: 0 0 22px;
  }

  .main {
    padding: 0 16px 20px;
  }

  .mobile-home-shell {
    gap: 14px;
    padding-top: 0;
  }

  .mobile-reference-top,
  .mobile-reference-greeting,
  .mobile-reference-metrics,
  .mobile-reference-materials,
  .mobile-reference-upgrade {
    display: grid;
  }

  .mobile-reference-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 72px;
    margin: 0 -16px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  .mobile-reference-title {
    min-width: 0;
    color: #0f172a;
    font-size: 19px;
    font-weight: 950;
    line-height: 1.2;
  }

  .mobile-reference-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-reference-bell {
    position: relative;
    width: 22px;
    height: 22px;
    border: 2px solid #111827;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 0;
  }

  .mobile-reference-bell::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
  }

  .mobile-reference-bell::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: -10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111827;
  }

  .mobile-reference-badge {
    position: absolute;
    left: 14px;
    top: -12px;
    min-width: 23px;
    height: 23px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ff3f64;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 11px;
    line-height: 1;
  }

  .mobile-reference-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.92);
    background:
      radial-gradient(circle at 50% 28%, #f8d8cc 0 15%, transparent 16%),
      radial-gradient(circle at 50% 58%, #f3c7bd 0 25%, transparent 26%),
      linear-gradient(135deg, #edf4ff, #fff2f7);
    box-shadow: 0 8px 18px rgba(31, 45, 74, 0.12);
  }

  .mobile-reference-arrow {
    width: 9px;
    height: 9px;
    border-top: 2px solid #334155;
    border-right: 2px solid #334155;
    transform: rotate(45deg);
  }

  .mobile-reference-greeting {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 20px 0 10px;
  }

  .mobile-reference-greeting h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
  }

  .mobile-reference-greeting p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.4;
  }

  .mobile-reference-search {
    min-width: 116px;
    min-height: 54px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.78);
    color: #64748b;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(31, 45, 74, 0.06);
  }

  .mobile-reference-search span {
    width: 18px;
    height: 18px;
    border: 2px solid #1e293b;
    border-radius: 50%;
    position: relative;
  }

  .mobile-reference-search span::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    border-radius: 999px;
    background: #1e293b;
    transform: rotate(45deg);
  }

  .sidebar-DISABLED {
    order: 0;
    position: sticky;
    top: calc(100dvh - 76px);
    margin: 0;
    border: 1px solid rgba(203, 213, 225, 0.70);
    border-radius: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -10px 30px rgba(31, 45, 74, 0.08);
  }

  .nav-list-DISABLED {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .nav-item-DISABLED {
    min-height: 58px;
    flex: 0 0 calc((100% - 16px) / 5);
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #4b5563;
    font-size: 12px;
    font-weight: 850;
    box-shadow: none;
  }

  .nav-item-DISABLED[data-view="assets"],
  .nav-item-DISABLED[data-view="manual"] {
    display: grid;
  }

  .nav-item.active {
    color: #10245f;
    background: transparent;
    box-shadow: none;
  }

  .nav-item-DISABLED::before {
    width: 25px;
    height: 25px;
    border-radius: 8px;
  }

  .nav-item-DISABLED[data-view="tasks"]::before {
    border: 2px solid currentColor;
    border-radius: 7px;
    background:
      linear-gradient(currentColor, currentColor) center 7px / 10px 2px no-repeat,
      linear-gradient(currentColor, currentColor) center 14px / 10px 2px no-repeat;
  }

  .home-hero {
    min-height: 248px;
    grid-template-columns: minmax(0, 1fr) 156px;
    align-content: center;
    padding: 22px;
    border: 1px solid #cfe0ff;
    border-radius: 22px;
    color: #0f172a;
    background:
      radial-gradient(circle at 80% 50%, rgba(62, 113, 255, 0.24), transparent 35%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 242, 255, 0.78)),
      var(--workbench-home-bg) right center / 58% auto no-repeat;
    box-shadow: 0 18px 38px rgba(56, 99, 191, 0.12);
  }

  .home-hero::before {
    z-index: 0;
    background:
      radial-gradient(circle at 80% 58%, rgba(53, 101, 234, 0.18), transparent 34%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0 48%, rgba(255, 255, 255, 0.30) 100%);
  }

  .home-kicker {
    border: 0;
    padding: 0;
    background: transparent;
    color: #315b99;
    font-size: 15px;
  }

  .home-hero h2 {
    color: #0f172a;
    font-size: 30px;
    line-height: 1.12;
    text-shadow: none;
  }

  .home-hero p {
    max-width: 230px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
  }

  .home-hero .home-hero-copy::after {
    content: "开始创作";
    width: fit-content;
    min-height: 48px;
    margin-top: 10px;
    border-radius: 999px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0f2f84, #2854ba);
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(37, 83, 189, 0.24);
  }

  .home-hero-preview {
    width: 150px;
    height: 118px;
    justify-self: end;
    filter: drop-shadow(0 18px 26px rgba(62, 102, 202, 0.18));
  }

  .preview-window,
  .preview-card {
    border-color: rgba(169, 193, 255, 0.72);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 12px 28px rgba(65, 101, 190, 0.10);
  }

  .preview-window span,
  .preview-window strong,
  .preview-window em {
    background: rgba(73, 126, 246, 0.42);
  }

  .home-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
  }

  .home-quick-card,
  .home-quick-card.primary {
    min-height: 164px;
    grid-row: auto;
    border: 1px solid #d9e4f4;
    border-radius: 18px;
    padding: 13px 10px;
    color: #0f172a;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.70)),
      var(--quick-bg, url("/assets/workbench-bg/quick-project.webp")) center bottom / cover no-repeat;
    box-shadow: 0 12px 26px rgba(31, 45, 74, 0.07);
  }

  .home-quick-card::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0 36%, rgba(255, 255, 255, 0.24) 100%);
  }

  .home-quick-card span {
    border: 0;
    background: rgba(255, 239, 246, 0.86);
    color: #ef4772;
    padding: 4px 8px;
    font-size: 11px;
  }

  .home-quick-card-compare span {
    background: rgba(225, 251, 244, 0.90);
    color: #159a7e;
  }

  .home-quick-card-chat span {
    background: rgba(232, 241, 255, 0.92);
    color: #3478f6;
  }

  .home-quick-card strong,
  .home-quick-card.primary span,
  .home-quick-card.primary small {
    color: #0f172a;
  }

  .home-quick-card strong {
    font-size: 17px;
    line-height: 1.2;
  }

  .home-quick-card small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-reference-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card,
  .mobile-reference-materials,
  .mobile-reference-upgrade,
  .home-section,
  .home-daily-ai {
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(31, 45, 74, 0.06);
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card,
  .mobile-reference-materials,
  .mobile-reference-upgrade {
    padding: 14px;
  }

  .mobile-reference-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-reference-section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.2;
  }

  .mobile-reference-section-head button {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-reference-task-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
  }

  .mobile-reference-task-grid div {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
  }

  .task-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: block;
    background: linear-gradient(135deg, #ffeff4, #ff5a82);
  }

  .task-icon.done { background: linear-gradient(135deg, #d8f8ea, #1fb98f); }
  .task-icon.review { background: linear-gradient(135deg, #e5edff, #3478f6); }
  .task-icon.draft { background: linear-gradient(135deg, #e8efff, #3567d5); }

  .mobile-reference-task-grid strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
  }

  .mobile-reference-task-grid small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
  }

  .mobile-reference-task-grid em {
    color: #ef4772;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-reference-task-grid div:nth-child(2) em {
    color: #159a7e;
  }

  .mobile-reference-task-grid div:nth-child(3) em {
    color: #3478f6;
  }

  .mobile-reference-task-grid div:nth-child(4) em {
    color: #64748b;
  }

  .mobile-reference-progress-body {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 12px;
  }

  .mobile-reference-ring {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    background:
      radial-gradient(circle, #ffffff 0 54%, transparent 55%),
      conic-gradient(#3478f6 0 68%, #e7edf8 68% 100%);
  }

  .mobile-reference-ring strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
  }

  .mobile-reference-ring span,
  .mobile-reference-progress-body p {
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
  }

  .mobile-reference-progress-body > div:last-child strong {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.3;
  }

  .mobile-reference-progress-body p {
    margin: 6px 0;
  }

  .mobile-reference-bar {
    height: 9px;
    border-radius: 999px;
    background: #e7edf8;
    overflow: hidden;
  }

  .mobile-reference-bar i {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3979ff, #68a3ff);
  }

  .mobile-reference-progress-action,
  .mobile-reference-upgrade > button {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border: 0;
    border-radius: 10px;
    background: #edf3ff;
    color: #10245f;
    font-weight: 950;
  }

  .home-daily-ai {
    padding: 14px;
  }

  .home-daily-ai h2 {
    font-size: 17px;
  }

  .home-daily-news article {
    border-radius: 14px;
    background: #ffffff;
  }

  .mobile-reference-material-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mobile-reference-material-row::-webkit-scrollbar {
    display: none;
  }

  .mobile-reference-material-row button {
    flex: 0 0 112px;
    min-height: 112px;
    border: 1px solid rgba(203, 213, 225, 0.68);
    border-radius: 14px;
    padding: 10px;
    display: grid;
    align-content: end;
    text-align: left;
    overflow: hidden;
    color: #ffffff;
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.56)),
      url("/assets/workbench-bg/quick-project.webp") center / cover no-repeat;
  }

  .mobile-reference-material-row button:nth-child(2) {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.56)),
      url("/assets/workbench-bg/quick-compare.webp");
  }

  .mobile-reference-material-row button:nth-child(3),
  .mobile-reference-material-row button:nth-child(5) {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.56)),
      url("/assets/workbench-bg/quick-chat.webp");
  }

  .mobile-reference-material-row button:nth-child(4) {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.56)),
      url("/assets/workbench-bg/create-studio.webp");
  }

  .mobile-reference-material-row span,
  .mobile-reference-material-row strong {
    position: relative;
    z-index: 1;
  }

  .mobile-reference-material-row span {
    font-size: 13px;
    font-weight: 950;
    line-height: 1.25;
  }

  .mobile-reference-material-row strong {
    margin-top: 4px;
    font-size: 13px;
  }

  .mobile-reference-upgrade {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .mobile-reference-upgrade h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
  }

  .mobile-reference-upgrade span {
    border-radius: 8px;
    background: #e8fbf3;
    color: #0f9f74;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-reference-upgrade-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-reference-upgrade-tools article {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .mobile-reference-upgrade-tools strong {
    color: #0f172a;
    font-size: 13px;
  }

  .mobile-reference-upgrade-tools small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
  }

  .mobile-reference-upgrade > button {
    grid-column: 1 / -1;
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #14358f, #2357c5);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(35, 87, 197, 0.20);
  }
}

/* 2026-05-19 mobile reference-style visual pass */
@media (max-width: 980px) {
  body {
    color: #111827;
    background:
      linear-gradient(180deg, rgba(9, 13, 24, 0.54) 0%, rgba(246, 248, 251, 0.72) 34%, rgba(246, 248, 251, 0.96) 100%),
      url("/assets/workbench-bg/home-studio.webp") center top / cover fixed no-repeat;
  }

  body:has(#createView.active) {
    background:
      linear-gradient(180deg, rgba(9, 13, 24, 0.58) 0%, rgba(246, 248, 251, 0.70) 36%, rgba(246, 248, 251, 0.96) 100%),
      url("/assets/workbench-bg/create-studio.webp") center top / cover fixed no-repeat;
  }

  body:has(#worksView.active) {
    background:
      linear-gradient(180deg, rgba(9, 13, 24, 0.56) 0%, rgba(246, 248, 251, 0.72) 36%, rgba(246, 248, 251, 0.96) 100%),
      url("/assets/workbench-bg/works-gallery.webp") center top / cover fixed no-repeat;
  }

  body:has(#tasksView.active),
  body:has(#mineView.active),
  body:has(#assetsView.active),
  body:has(#manualView.active) {
    background:
      linear-gradient(180deg, rgba(9, 13, 24, 0.60) 0%, rgba(246, 248, 251, 0.74) 38%, rgba(246, 248, 251, 0.96) 100%),
      url("/assets/workbench-bg/mine-control.webp") center top / cover fixed no-repeat;
  }

  .app-shell {
    background: transparent;
  }

  .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 0 0 18px;
  }

  .sidebar-DISABLED {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 24px;
    padding: 10px;
    display: block;
    background: rgba(255, 255, 255, 0.18);
    color: var(--text);
    box-shadow: 0 18px 42px rgba(31, 45, 74, 0.12);
    backdrop-filter: blur(18px) saturate(1.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
    z-index: 80;
  }

  .brand-mark-DISABLED {
    display: none;
  }

  .nav-list-DISABLED {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
    overflow: hidden;
    scrollbar-width: none;
  }

  .nav-list-DISABLED::-webkit-scrollbar {
    display: none;
  }

  .nav-item-DISABLED {
    flex: 1 1 calc(25% - 6px);
    min-width: 0;
    min-height: 46px;
    padding: 6px 5px;
    border-radius: 18px;
    font-size: 11px;
  }

  .nav-item-DISABLED::before {
    width: 18px;
    height: 18px;
    margin-bottom: 1px;
  }

  .nav-item-DISABLED[data-view="tasks"]::before,
  .nav-item-DISABLED[data-view="assets"]::before,
  .nav-item-DISABLED[data-view="manual"]::before {
    display: none;
  }

  .nav-item-DISABLED[data-view="tasks"],
  .nav-item-DISABLED[data-view="assets"],
  .nav-item-DISABLED[data-view="manual"] {
    flex-basis: calc(33.333% - 5px);
    min-height: 38px;
    padding: 8px 7px;
    border-radius: 999px;
    font-size: 12px;
  }

  .main {
    margin-left: 0;
    padding: 14px 16px calc(24px + 110px + env(safe-area-inset-bottom));
  }

  .topbar {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(9, 13, 24, 0.34);
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  .brand h1,
  .brand p {
    color: #ffffff;
  }

  .brand-mark-DISABLED {
    background: rgba(255, 255, 255, 0.20);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  }

  .mobile-home-shell {
    padding-top: 4px;
  }

  .home-hero {
    min-height: 286px;
    align-content: end;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 28px;
    padding: 24px 22px;
    color: #ffffff;
    background:
      linear-gradient(180deg, rgba(9, 13, 24, 0.08) 0%, rgba(9, 13, 24, 0.32) 45%, rgba(9, 13, 24, 0.78) 100%),
      url("/assets/workbench-bg/home-studio.webp") center 18% / cover no-repeat;
    box-shadow: 0 24px 60px rgba(9, 13, 24, 0.24);
  }

  .home-hero::before {
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 32%),
      radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.34), transparent 24%);
  }

  .home-hero-copy,
  .home-hero-preview {
    position: relative;
    z-index: 1;
  }

  .home-kicker {
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .home-hero h2 {
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.20);
  }

  .home-hero p {
    max-width: 286px;
    color: rgba(255, 255, 255, 0.82);
  }

  .home-hero-preview {
    max-width: 252px;
    height: 120px;
    margin-top: 2px;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.24));
  }

  .preview-window,
  .preview-card {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .preview-window span,
  .preview-window strong,
  .preview-window em {
    background: rgba(255, 255, 255, 0.42);
  }

  .home-quick-grid {
    gap: 12px;
  }

  .home-quick-card {
    min-height: 158px;
    border-color: rgba(255, 255, 255, 0.34);
    border-radius: 24px;
    padding: 15px;
    color: #ffffff;
    background:
      linear-gradient(180deg, rgba(8, 13, 23, 0.04), rgba(8, 13, 23, 0.30) 42%, rgba(8, 13, 23, 0.74)),
      var(--quick-bg, url("/assets/workbench-bg/quick-project.webp")) center / cover no-repeat;
    box-shadow: 0 18px 40px rgba(9, 13, 24, 0.16);
  }

  .home-quick-card::before {
    height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 32%),
      linear-gradient(180deg, transparent 30%, rgba(9, 13, 24, 0.64));
    opacity: 1;
  }

  .home-quick-card.primary {
    background:
      linear-gradient(180deg, rgba(234, 87, 143, 0.14), rgba(8, 13, 23, 0.22) 42%, rgba(8, 13, 23, 0.74)),
      url("/assets/three-feature/ad-poster-care.png") center 28% / cover no-repeat;
  }

  .home-quick-card::after,
  .home-card-visual {
    display: none;
  }

  .home-quick-card span {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.84);
  }

  .home-quick-card strong,
  .home-quick-card small,
  .home-quick-card.primary span,
  .home-quick-card.primary small {
    color: #ffffff;
  }

  .home-quick-card small {
    color: rgba(255, 255, 255, 0.74);
  }

  .home-section,
  .home-daily-ai {
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 42px rgba(31, 45, 74, 0.10);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  #createView .workspace-grid {
    padding-top: 138px;
    border-radius: 28px;
  }

  #createView .workspace-grid::before {
    height: 196px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(9, 13, 24, 0.10), rgba(9, 13, 24, 0.48) 56%, rgba(246, 248, 251, 0.96) 100%),
      url("/assets/workbench-bg/create-studio.webp") center 15% / cover no-repeat;
  }

  #createView .form-panel,
  #createView .result-panel,
  .work-management-panel,
  .task-management-panel,
  #mineView > .workspace-grid.slim > .panel,
  #mineView > .panel {
    border: 1px solid rgba(255, 255, 255, 0.60);
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.68)),
      var(--panel-bg-image, linear-gradient(135deg, #ffffff, #f8fafc)) center / cover no-repeat;
    box-shadow: 0 22px 52px rgba(9, 13, 24, 0.14);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  #createView .form-panel {
    padding: 12px;
  }

  .work-management-panel::before,
  .task-management-panel::before {
    height: 178px;
    background:
      linear-gradient(180deg, rgba(9, 13, 24, 0.08), rgba(9, 13, 24, 0.36) 58%, rgba(255, 255, 255, 0.88) 100%),
      var(--panel-bg-image, url("/assets/workbench-bg/works-gallery.webp")) center 20% / cover no-repeat;
  }

  .panel-heading,
  .list-toolbar,
  .category-card,
  .advanced-create-fields,
  .account-panel,
  .member-permission-box,
  .work-card,
  .task-row,
  .mine-tool-card {
    border-color: rgba(255, 255, 255, 0.64);
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
  }

  .work-card,
  .task-row,
  .mine-tool-card,
  .category-card {
    box-shadow: 0 12px 30px rgba(31, 45, 74, 0.09);
  }

  .category-card.active {
    border-color: rgba(91, 104, 232, 0.38);
    background: rgba(255, 255, 255, 0.88);
  }

  .bottom-nav {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 -12px 34px rgba(9, 13, 24, 0.10);
    backdrop-filter: blur(20px) saturate(1.08);
    -webkit-backdrop-filter: blur(20px) saturate(1.08);
  }

  .nav-item.active {
    color: #111827;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(31, 45, 74, 0.10);
  }
}

/* 2026-05-19 final reference mobile override */
@media (max-width: 980px) {
  body {
    color: #0f172a;
    background:
      radial-gradient(circle at 78% 4%, rgba(90, 133, 255, 0.18), transparent 28%),
      radial-gradient(circle at 8% 18%, rgba(255, 145, 180, 0.12), transparent 22%),
      linear-gradient(180deg, #fbfdff 0%, #f3f7ff 48%, #ffffff 100%);
  }

  .app-shell {
    width: min(100%, 430px);
    padding: 0 0 18px;
  }

  .main {
    margin-top: -74px;
    padding: 0 16px calc(20px + 110px + env(safe-area-inset-bottom));
  }

  .mobile-home-shell {
    gap: 14px;
    padding-top: 0;
  }

  .mobile-reference-top,
  .mobile-reference-greeting,
  .mobile-reference-metrics,
  .mobile-reference-materials,
  .mobile-reference-upgrade {
    display: grid;
  }

  .mobile-reference-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 72px;
    margin: 0 -16px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  .mobile-reference-title {
    min-width: 0;
    color: #0f172a;
    font-size: 19px;
    font-weight: 950;
    line-height: 1.2;
  }

  .mobile-reference-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-reference-bell {
    position: relative;
    width: 22px;
    height: 22px;
    border: 2px solid #111827;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 0;
  }

  .mobile-reference-bell::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
  }

  .mobile-reference-bell::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: -10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111827;
  }

  .mobile-reference-badge {
    position: absolute;
    left: 14px;
    top: -12px;
    min-width: 23px;
    height: 23px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ff3f64;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 11px;
    line-height: 1;
  }

  .mobile-reference-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.92);
    background:
      radial-gradient(circle at 50% 28%, #f8d8cc 0 15%, transparent 16%),
      radial-gradient(circle at 50% 58%, #f3c7bd 0 25%, transparent 26%),
      linear-gradient(135deg, #edf4ff, #fff2f7);
    box-shadow: 0 8px 18px rgba(31, 45, 74, 0.12);
  }

  .mobile-reference-arrow {
    width: 9px;
    height: 9px;
    border-top: 2px solid #334155;
    border-right: 2px solid #334155;
    transform: rotate(45deg);
  }

  .mobile-reference-greeting {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 20px 0 10px;
  }

  .mobile-reference-greeting h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.2;
  }

  .mobile-reference-greeting p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.4;
  }

  .mobile-reference-search {
    min-width: 116px;
    min-height: 54px;
    border: 1px solid rgba(203, 213, 225, 0.84);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.78);
    color: #64748b;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(31, 45, 74, 0.06);
  }

  .mobile-reference-search span {
    width: 18px;
    height: 18px;
    border: 2px solid #1e293b;
    border-radius: 50%;
    position: relative;
  }

  .mobile-reference-search span::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    border-radius: 999px;
    background: #1e293b;
    transform: rotate(45deg);
  }

  .sidebar-DISABLED {
    order: 0;
    position: sticky;
    top: calc(100dvh - 76px);
    margin: 0;
    border: 1px solid rgba(203, 213, 225, 0.70);
    border-radius: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -10px 30px rgba(31, 45, 74, 0.08);
  }

  .nav-list-DISABLED {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .nav-item-DISABLED {
    min-height: 58px;
    flex: 0 0 calc((100% - 16px) / 5);
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #4b5563;
    font-size: 12px;
    font-weight: 850;
    box-shadow: none;
  }

  .nav-item-DISABLED[data-view="assets"],
  .nav-item-DISABLED[data-view="manual"] {
    display: grid;
  }

  .nav-item.active {
    color: #10245f;
    background: transparent;
    box-shadow: none;
  }

  .nav-item-DISABLED::before {
    width: 25px;
    height: 25px;
    border-radius: 8px;
  }

  .nav-item-DISABLED[data-view="tasks"]::before {
    border: 2px solid currentColor;
    border-radius: 7px;
    background:
      linear-gradient(currentColor, currentColor) center 7px / 10px 2px no-repeat,
      linear-gradient(currentColor, currentColor) center 14px / 10px 2px no-repeat;
  }

  .home-hero {
    min-height: 248px;
    grid-template-columns: minmax(0, 1fr) 156px;
    align-content: center;
    padding: 22px;
    border: 1px solid #cfe0ff;
    border-radius: 22px;
    color: #0f172a;
    background:
      radial-gradient(circle at 80% 50%, rgba(62, 113, 255, 0.24), transparent 35%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(233, 242, 255, 0.78)),
      var(--workbench-home-bg) right center / 58% auto no-repeat;
    box-shadow: 0 18px 38px rgba(56, 99, 191, 0.12);
  }

  .home-hero::before {
    z-index: 0;
    background:
      radial-gradient(circle at 80% 58%, rgba(53, 101, 234, 0.18), transparent 34%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0 48%, rgba(255, 255, 255, 0.30) 100%);
  }

  .home-kicker {
    border: 0;
    padding: 0;
    background: transparent;
    color: #315b99;
    font-size: 15px;
  }

  .home-hero h2 {
    color: #0f172a;
    font-size: 30px;
    line-height: 1.12;
    text-shadow: none;
  }

  .home-hero p {
    max-width: 230px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
  }

  .home-hero .home-hero-copy::after {
    content: "开始创作";
    width: fit-content;
    min-height: 48px;
    margin-top: 10px;
    border-radius: 999px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0f2f84, #2854ba);
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(37, 83, 189, 0.24);
  }

  .home-hero-preview {
    width: 150px;
    height: 118px;
    justify-self: end;
    filter: drop-shadow(0 18px 26px rgba(62, 102, 202, 0.18));
  }

  .preview-window,
  .preview-card {
    border-color: rgba(169, 193, 255, 0.72);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 12px 28px rgba(65, 101, 190, 0.10);
  }

  .preview-window span,
  .preview-window strong,
  .preview-window em {
    background: rgba(73, 126, 246, 0.42);
  }

  .home-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
  }

  .home-quick-card,
  .home-quick-card.primary {
    min-height: 164px;
    grid-row: auto;
    border: 1px solid #d9e4f4;
    border-radius: 18px;
    padding: 13px 10px;
    color: #0f172a;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.70)),
      var(--quick-bg, url("/assets/workbench-bg/quick-project.webp")) center bottom / cover no-repeat;
    box-shadow: 0 12px 26px rgba(31, 45, 74, 0.07);
  }

  .home-quick-card::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0 36%, rgba(255, 255, 255, 0.24) 100%);
  }

  .home-quick-card span {
    border: 0;
    background: rgba(255, 239, 246, 0.86);
    color: #ef4772;
    padding: 4px 8px;
    font-size: 11px;
  }

  .home-quick-card-compare span {
    background: rgba(225, 251, 244, 0.90);
    color: #159a7e;
  }

  .home-quick-card-chat span {
    background: rgba(232, 241, 255, 0.92);
    color: #3478f6;
  }

  .home-quick-card strong,
  .home-quick-card.primary span,
  .home-quick-card.primary small {
    color: #0f172a;
  }

  .home-quick-card strong {
    font-size: 17px;
    line-height: 1.2;
  }

  .home-quick-card small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-reference-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card,
  .mobile-reference-materials,
  .mobile-reference-upgrade,
  .home-section,
  .home-daily-ai {
    border: 1px solid #dbe5f2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(31, 45, 74, 0.06);
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card,
  .mobile-reference-materials,
  .mobile-reference-upgrade {
    padding: 14px;
  }

  .mobile-reference-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-reference-section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.2;
  }

  .mobile-reference-section-head button {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-reference-task-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
  }

  .mobile-reference-task-grid div {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
  }

  .task-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: block;
    background: linear-gradient(135deg, #ffeff4, #ff5a82);
  }

  .task-icon.done { background: linear-gradient(135deg, #d8f8ea, #1fb98f); }
  .task-icon.review { background: linear-gradient(135deg, #e5edff, #3478f6); }
  .task-icon.draft { background: linear-gradient(135deg, #e8efff, #3567d5); }

  .mobile-reference-task-grid strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
  }

  .mobile-reference-task-grid small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
  }

  .mobile-reference-task-grid em {
    color: #ef4772;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
  }

  .mobile-reference-task-grid div:nth-child(2) em {
    color: #159a7e;
  }

  .mobile-reference-task-grid div:nth-child(3) em {
    color: #3478f6;
  }

  .mobile-reference-task-grid div:nth-child(4) em {
    color: #64748b;
  }

  .mobile-reference-progress-body {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 12px;
  }

  .mobile-reference-ring {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    background:
      radial-gradient(circle, #ffffff 0 54%, transparent 55%),
      conic-gradient(#3478f6 0 68%, #e7edf8 68% 100%);
  }

  .mobile-reference-ring strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
  }

  .mobile-reference-ring span,
  .mobile-reference-progress-body p {
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
  }

  .mobile-reference-progress-body > div:last-child strong {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.3;
  }

  .mobile-reference-progress-body p {
    margin: 6px 0;
  }

  .mobile-reference-bar {
    height: 9px;
    border-radius: 999px;
    background: #e7edf8;
    overflow: hidden;
  }

  .mobile-reference-bar i {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3979ff, #68a3ff);
  }

  .mobile-reference-progress-action,
  .mobile-reference-upgrade > button {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    border: 0;
    border-radius: 10px;
    background: #edf3ff;
    color: #10245f;
    font-weight: 950;
  }

  .home-daily-ai {
    padding: 14px;
  }

  .home-daily-ai h2 {
    font-size: 17px;
  }

  .home-daily-news article {
    border-radius: 14px;
    background: #ffffff;
  }

  .mobile-reference-material-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mobile-reference-material-row::-webkit-scrollbar {
    display: none;
  }

  .mobile-reference-material-row button {
    flex: 0 0 112px;
    min-height: 112px;
    border: 1px solid rgba(203, 213, 225, 0.68);
    border-radius: 14px;
    padding: 10px;
    display: grid;
    align-content: end;
    text-align: left;
    overflow: hidden;
    color: #ffffff;
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.56)),
      url("/assets/workbench-bg/quick-project.webp") center / cover no-repeat;
  }

  .mobile-reference-material-row button:nth-child(2) {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.56)),
      url("/assets/workbench-bg/quick-compare.webp");
  }

  .mobile-reference-material-row button:nth-child(3),
  .mobile-reference-material-row button:nth-child(5) {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.56)),
      url("/assets/workbench-bg/quick-chat.webp");
  }

  .mobile-reference-material-row button:nth-child(4) {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.56)),
      url("/assets/workbench-bg/create-studio.webp");
  }

  .mobile-reference-material-row span,
  .mobile-reference-material-row strong {
    position: relative;
    z-index: 1;
  }

  .mobile-reference-material-row span {
    font-size: 13px;
    font-weight: 950;
    line-height: 1.25;
  }

  .mobile-reference-material-row strong {
    margin-top: 4px;
    font-size: 13px;
  }

  .mobile-reference-upgrade {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .mobile-reference-upgrade h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
  }

  .mobile-reference-upgrade span {
    border-radius: 8px;
    background: #e8fbf3;
    color: #0f9f74;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-reference-upgrade-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-reference-upgrade-tools article {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .mobile-reference-upgrade-tools strong {
    color: #0f172a;
    font-size: 13px;
  }

  .mobile-reference-upgrade-tools small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
  }

  .mobile-reference-upgrade > button {
    grid-column: 1 / -1;
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #14358f, #2357c5);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(35, 87, 197, 0.20);
  }
}

/* 2026-05-19 final mobile navigation and quick-card polish */
@media (max-width: 980px) {
  .sidebar-DISABLED {
    position: relative;
    top: auto;
    order: 0;
    width: 100%;
    margin: 0 0 10px;
    border-radius: 24px;
    padding: 8px;
    overflow: hidden;
  }

  .nav-list-DISABLED {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .nav-item-DISABLED {
    flex: 0 0 68px;
    min-width: 0;
    min-height: 56px;
    border-radius: 18px;
    padding: 7px 6px 6px;
    font-size: 11px;
    scroll-snap-align: start;
  }

  .nav-item-DISABLED::before {
    width: 18px;
    height: 18px;
    margin-bottom: 1px;
  }

  .nav-item-DISABLED[data-view="tasks"]::before,
  .nav-item-DISABLED[data-view="assets"]::before,
  .nav-item-DISABLED[data-view="manual"]::before {
    display: none;
  }

  .nav-item-DISABLED[data-view="tasks"],
  .nav-item-DISABLED[data-view="assets"],
  .nav-item-DISABLED[data-view="manual"] {
    flex: 0 0 58px;
    min-height: 56px;
    border-radius: 999px;
    padding: 8px 7px;
    font-size: 12px;
  }

  .main {
    margin-top: 0;
  }

  .home-quick-card {
    background:
      linear-gradient(180deg, rgba(8, 13, 23, 0.04), rgba(8, 13, 23, 0.30) 42%, rgba(8, 13, 23, 0.74)),
      var(--quick-bg, url("/assets/workbench-bg/quick-project.webp")) center / cover no-repeat;
  }

  .home-quick-card::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 32%),
      linear-gradient(180deg, transparent 30%, rgba(9, 13, 24, 0.64));
  }

  .home-quick-card.primary {
    background:
      linear-gradient(180deg, rgba(234, 87, 143, 0.14), rgba(8, 13, 23, 0.22) 42%, rgba(8, 13, 23, 0.74)),
      url("/assets/three-feature/ad-poster-care.png") center 28% / cover no-repeat;
  }

  .mobile-reference-user {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card {
    cursor: pointer;
  }
}

/* 2026-05-19 section close affordance */
.section-close-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.section-close-bar span {
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

.section-exit-title {
  appearance: none;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.section-close-button {
  appearance: none;
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #eef4ff;
  color: #17378e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.section-close-button:hover {
  background: #dfeaff;
}

@media (max-width: 980px) {
  .section-close-bar {
    position: sticky;
    top: 8px;
    z-index: 18;
    margin: 0 0 12px;
    padding: 8px 8px 8px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
  }

  .section-close-bar span {
    font-size: 14px;
  }

  .section-close-button {
    min-height: 34px;
    padding: 0 13px;
    box-shadow: inset 0 0 0 1px rgba(23, 55, 142, 0.08);
  }
}

/* 2026-05-19 hide browse navigation on home */


body[data-current-view="home"] .main {
  width: 100%;
}

/* 2026-05-19 function-unified mobile polish */
:root {
  --ui-ink: #0f172a;
  --ui-muted: #64748b;
  --ui-line: rgba(203, 213, 225, 0.78);
  --ui-blue: #2357c5;
  --ui-blue-deep: #17378e;
  --ui-surface: rgba(255, 255, 255, 0.92);
  --ui-soft-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button,
.filter-chip,
.category-card,
.home-quick-card,
.mobile-reference-search,
.mobile-reference-section-head button,
.mobile-reference-section-head span,
.home-daily-action,
.section-close-button,
.mine-tool-card,
.mobile-reference-hub-card {
  letter-spacing: 0;
}

.mobile-reference-hub {
  display: none;
}

@media (max-width: 980px) {
  body {
    color: var(--ui-ink);
    background:
      radial-gradient(circle at 22% 0%, rgba(223, 238, 255, 0.9), transparent 34%),
      linear-gradient(180deg, #f8fbff 0%, #eef5ff 46%, #f7fbff 100%);
  }

  .app-shell {
    padding: 12px;
    gap: 10px;
  }

  .main {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .mobile-home-shell {
    gap: 12px;
  }

  .mobile-reference-top,
  .mobile-reference-greeting,
  .home-hero,
  .mobile-reference-task-card,
  .mobile-reference-progress-card,
  .mobile-reference-hub,
  .home-daily-ai,
  .home-section,
  .panel {
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    background: var(--ui-surface);
    box-shadow: var(--ui-soft-shadow);
  }

  .mobile-reference-title,
  .mobile-reference-greeting h2,
  .home-hero h2,
  .mobile-reference-section-head h2,
  .home-daily-ai h2,
  .home-section-head h2,
  .panel-heading h2,
  .section-close-bar span {
    color: var(--ui-ink);
    letter-spacing: 0;
  }

  .home-hero h2 {
    max-width: none;
    font-size: 28px;
    line-height: 1.12;
  }

  .home-hero-copy {
    max-width: none;
  }

  .home-hero {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-hero-preview {
    position: relative;
    width: 100%;
    min-height: 112px;
    transform: none;
  }

  .mobile-reference-greeting p,
  .home-hero p,
  .home-quick-card small,
  .mobile-reference-task-grid small,
  .mobile-reference-progress-body p,
  .mobile-reference-hub-card small,
  .home-daily-ai p,
  .home-empty-work span,
  .panel-heading span {
    color: var(--ui-muted);
  }

  .mobile-reference-search,
  .mobile-reference-section-head button,
  .mobile-reference-section-head span,
  .home-daily-action,
  .section-close-button,
  .secondary-button,
  .filter-chip {
    min-height: 38px;
    border: 1px solid rgba(35, 87, 197, 0.12);
    border-radius: 999px;
    background: #eef5ff;
    color: var(--ui-blue-deep);
    font-size: 13px;
    font-weight: 850;
    box-shadow: none;
  }

  .primary-button,
  .mobile-reference-progress-action,
  .mobile-reference-upgrade > button {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ui-blue-deep), var(--ui-blue));
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(35, 87, 197, 0.18);
  }

  .home-quick-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-quick-card,
  .home-quick-card.primary {
    min-height: 112px;
    border-radius: 20px;
    border: 0;
    padding: 16px;
    overflow: hidden;
  }

  .home-quick-card span,
  .home-quick-card strong,
  .home-quick-card small {
    max-width: 72%;
    text-align: left;
  }

  .home-quick-card span {
    font-size: 12px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.88);
  }

  .home-quick-card strong {
    margin-top: 4px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.16;
  }

  .home-quick-card small {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-reference-metrics {
    gap: 10px;
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card {
    padding: 14px;
  }

  .mobile-reference-task-grid {
    gap: 8px;
  }

  .mobile-reference-task-grid div {
    border-radius: 16px;
    background: #f8fbff;
  }

  .mobile-reference-hub {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

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

  .mobile-reference-hub-card {
    appearance: none;
    min-width: 0;
    min-height: 118px;
    display: grid;
    align-content: end;
    gap: 4px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 18px;
    padding: 13px;
    text-align: left;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.96)),
      linear-gradient(135deg, #f8fbff, #eef5ff);
    color: var(--ui-ink);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    cursor: pointer;
  }

  .mobile-reference-hub-card span {
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 4px 8px;
    background: #eaf2ff;
    color: var(--ui-blue-deep);
    font-size: 11px;
    font-weight: 900;
  }

  .mobile-reference-hub-card strong {
    color: var(--ui-ink);
    font-size: 15px;
    line-height: 1.18;
  }

  .mobile-reference-hub-card small {
    font-size: 11px;
    line-height: 1.35;
  }

  .hub-assets {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.95)),
      url("/assets/workbench-bg/quick-project.webp") center / cover no-repeat;
  }

  .hub-mine {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.96)),
      url("/assets/workbench-bg/mine-control.webp") center / cover no-repeat;
  }

  .hub-manual {
    background: linear-gradient(135deg, #fff7ed, #eef5ff);
  }

  .hub-create {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.96)),
      url("/assets/workbench-bg/create-studio.webp") center / cover no-repeat;
  }

  .home-daily-ai {
    padding: 14px;
  }

  .home-daily-ai-main {
    gap: 10px;
  }

  .home-daily-action {
    padding: 0 14px;
    white-space: nowrap;
  }

  .home-daily-news article {
    border-radius: 16px;
    background: #f8fbff;
  }

  .mobile-reference-materials,
  .mobile-reference-upgrade {
    display: none !important;
  }

  .sidebar-DISABLED {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--ui-soft-shadow);
  }

  .nav-item-DISABLED {
    border: 1px solid rgba(203, 213, 225, 0.70);
    background: #f8fbff;
    color: var(--ui-muted);
  }

  .nav-item.active {
    border-color: rgba(35, 87, 197, 0.22);
    background: linear-gradient(135deg, var(--ui-blue-deep), var(--ui-blue));
    color: #ffffff;
  }

  .section-close-bar {
    border-color: var(--ui-line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--ui-soft-shadow);
  }

  .mine-tool-card {
    border-radius: 18px;
    background: #f8fbff;
  }
}

/* 2026-05-19 final reference layout override */
@media (max-width: 980px) {
  :root {
    --ui-ink: #07152f;
    --ui-muted: #5f6f8a;
    --ui-card: rgba(255, 255, 255, 0.96);
    --ui-line: rgba(196, 211, 234, 0.78);
    --ui-blue: #2f6df6;
    --ui-blue-deep: #12358f;
    --ui-shadow: 0 14px 34px rgba(23, 55, 142, 0.10);
    --ui-shadow-soft: 0 8px 20px rgba(23, 55, 142, 0.07);
  }

  html {
    background: #f7fbff;
  }

  body {
    min-width: 0;
    color: var(--ui-ink);
    background:
      radial-gradient(circle at 22% -6%, rgba(219, 235, 255, 0.95), transparent 36%),
      radial-gradient(circle at 86% 16%, rgba(235, 244, 255, 0.95), transparent 30%),
      linear-gradient(180deg, #fbfdff 0%, #f3f8ff 44%, #f9fcff 100%);
  }

  body[data-current-view="create"] {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.90), rgba(248, 251, 255, 0.98)),
      url("/assets/workbench-bg/create-studio.webp") center top / cover fixed no-repeat;
  }

  body[data-current-view="works"] {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.88), rgba(248, 251, 255, 0.98)),
      url("/assets/workbench-bg/works-gallery.webp") center top / cover fixed no-repeat;
  }

  body[data-current-view="tasks"],
  body[data-current-view="assets"],
  body[data-current-view="mine"],
  body[data-current-view="manual"] {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.90), rgba(248, 251, 255, 0.98)),
      url("/assets/workbench-bg/mine-control.webp") center top / cover fixed no-repeat;
  }

  .app-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 12px 10px calc(20px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .topbar,
  .brand-mark-DISABLED,
  .system-card {
    display: none;
  }

  .main {
    width: 100%;
    min-width: 0;
    margin-top: 0;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  

  body[data-current-view="home"] .main {
    width: 100%;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }


  .nav-list-DISABLED {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .nav-list-DISABLED::-webkit-scrollbar {
    display: none;
  }

  .nav-item-DISABLED,
  .nav-item-DISABLED[data-view="tasks"],
  .nav-item-DISABLED[data-view="assets"],
  .nav-item-DISABLED[data-view="manual"] {
    flex: 0 0 64px;
    min-width: 64px;
    min-height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(196, 211, 234, 0.70);
    border-radius: 17px;
    padding: 8px 7px;
    background: #f8fbff;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: none;
    scroll-snap-align: start;
  }

  .nav-item-DISABLED::before,
  .nav-item-DISABLED[data-view="tasks"]::before,
  .nav-item-DISABLED[data-view="assets"]::before,
  .nav-item-DISABLED[data-view="manual"]::before {
    display: none !important;
  }

  .nav-item.active {
    border-color: rgba(47, 109, 246, 0.22);
    background: linear-gradient(135deg, var(--ui-blue-deep), var(--ui-blue));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(47, 109, 246, 0.20);
  }

  .mobile-home-shell {
    display: grid;
    gap: 12px;
  }

  .mobile-reference-top {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--ui-line);
    border-radius: 0;
    padding: 6px 2px 12px;
    background: transparent;
    box-shadow: none;
  }

  .mobile-reference-title {
    color: var(--ui-ink);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: 0;
  }

  .mobile-reference-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ui-ink);
  }

  .mobile-reference-user strong {
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-reference-bell {
    width: 25px;
    height: 25px;
    border: 2px solid #0f172a;
    border-radius: 50% 50% 45% 45%;
    background: #ffffff;
    position: relative;
  }

  .mobile-reference-bell::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: -5px;
    width: 7px;
    height: 5px;
    border-radius: 0 0 999px 999px;
    background: #0f172a;
  }

  .mobile-reference-badge {
    position: relative;
    margin-left: -18px;
    margin-top: -22px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff4267;
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
  }

  .mobile-reference-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 50% 28%, #ffe2df 0 18%, transparent 19%),
      linear-gradient(135deg, #dce8ff, #ffffff 56%, #f7d7d5);
    box-shadow: inset 0 0 0 1px rgba(196, 211, 234, 0.7);
  }

  .mobile-reference-arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid #506176;
    border-right: 2px solid #506176;
    transform: rotate(45deg);
  }

  .mobile-reference-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-radius: 0;
    padding: 0 2px 2px;
    background: transparent;
    box-shadow: none;
  }

  .mobile-reference-greeting h2 {
    margin: 0;
    color: var(--ui-ink);
    font-size: 22px;
    line-height: 1.18;
    font-weight: 950;
  }

  .mobile-reference-greeting p {
    margin: 6px 0 0;
    color: var(--ui-muted);
    font-size: 14px;
    line-height: 1.35;
  }

  .mobile-reference-search {
    flex: 0 0 auto;
    min-height: 42px;
    border: 1px solid var(--ui-line);
    border-radius: 999px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ui-muted);
    font-size: 14px;
    font-weight: 850;
    box-shadow: var(--ui-shadow-soft);
  }

  .home-hero {
    min-height: 168px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    border: 1px solid rgba(176, 203, 246, 0.86);
    border-radius: 22px;
    padding: 20px 16px;
    background:
      linear-gradient(110deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 245, 255, 0.92) 48%, rgba(219, 235, 255, 0.86) 100%),
      url("/assets/workbench-bg/home-control-scene.svg") right center / auto 118% no-repeat;
    box-shadow: var(--ui-shadow);
  }

  .home-hero::before,
  .home-hero::after {
    display: none;
  }

  .home-hero-copy {
    max-width: none;
    min-width: 0;
  }

  .home-kicker {
    margin: 0 0 8px;
    color: #375fba !important;
    font-size: 13px;
    font-weight: 900;
  }

  .home-hero h2 {
    max-width: 190px;
    margin: 0;
    color: var(--ui-ink);
    font-size: 28px;
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: 0;
  }

  .home-hero p:not(.home-kicker) {
    max-width: 210px;
    margin: 8px 0 0;
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .home-hero-preview {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 126px;
    transform: none;
    filter: drop-shadow(0 18px 26px rgba(47, 109, 246, 0.20));
  }

  .preview-window,
  .preview-card {
    border-color: rgba(158, 188, 244, 0.68);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 14px 28px rgba(47, 109, 246, 0.16);
  }

  .home-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .home-quick-card,
  .home-quick-card.primary,
  .home-quick-card.home-quick-card-compare,
  .home-quick-card.home-quick-card-chat {
    min-height: 150px;
    display: grid;
    align-content: start;
    gap: 6px;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    padding: 13px 10px 48px;
    text-align: left;
    box-shadow: var(--ui-shadow-soft);
  }

  .home-quick-card.primary {
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 244, 248, 0.88) 54%, rgba(255, 224, 235, 0.80) 100%),
      url("/assets/three-feature/ad-poster-care.png") center bottom / 96% auto no-repeat;
  }

  .home-quick-card.home-quick-card-compare {
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 255, 249, 0.90) 58%, rgba(218, 247, 240, 0.82) 100%),
      url("/assets/workbench-bg/quick-compare.webp") center bottom / 105% auto no-repeat;
  }

  .home-quick-card.home-quick-card-chat {
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 245, 255, 0.90) 58%, rgba(218, 232, 255, 0.84) 100%),
      url("/assets/workbench-bg/quick-chat.webp") center bottom / 105% auto no-repeat;
  }

  .home-quick-card::before,
  .home-quick-card::after,
  .home-card-visual {
    display: none !important;
  }

  .home-quick-card span,
  .home-quick-card strong,
  .home-quick-card small {
    position: relative;
    z-index: 1;
    max-width: 100%;
    text-align: left;
  }

  .home-quick-card span {
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 4px 7px;
    background: rgba(240, 82, 131, 0.12);
    color: #e33669;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
  }

  .home-quick-card.home-quick-card-compare span {
    background: rgba(40, 181, 140, 0.14);
    color: #15906f;
  }

  .home-quick-card.home-quick-card-chat span {
    background: rgba(47, 109, 246, 0.13);
    color: #2f6df6;
  }

  .home-quick-card strong {
    color: var(--ui-ink);
    font-size: 15px;
    line-height: 1.18;
    font-weight: 950;
  }

  .home-quick-card small {
    color: var(--ui-muted);
    font-size: 10.5px;
    line-height: 1.32;
  }

  .mobile-reference-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card,
  .mobile-reference-hub,
  .home-daily-ai,
  .home-section,
  .panel,
  .section-close-bar {
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    background: var(--ui-card);
    box-shadow: var(--ui-shadow-soft);
    backdrop-filter: blur(16px);
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card {
    min-width: 0;
    padding: 12px;
  }

  .mobile-reference-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }

  .mobile-reference-section-head h2,
  .home-daily-ai h2,
  .home-section-head h2,
  .panel-heading h2 {
    margin: 0;
    color: var(--ui-ink);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 950;
  }

  .mobile-reference-section-head button,
  .mobile-reference-section-head span,
  .home-section-head button,
  .home-section-head span {
    display: inline-grid;
    place-items: center;
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    padding: 0 4px;
    background: transparent;
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 850;
    box-shadow: none;
  }

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

  .mobile-reference-task-grid div {
    min-width: 0;
    border: 0;
    border-radius: 15px;
    padding: 8px 5px;
    background: #f7fbff;
    text-align: center;
  }

  .mobile-reference-task-grid strong {
    display: block;
    color: var(--ui-ink);
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
  }

  .mobile-reference-task-grid small {
    display: block;
    margin-top: 3px;
    color: var(--ui-muted);
    font-size: 10px;
  }

  .mobile-reference-task-grid em {
    display: block;
    margin-top: 4px;
    color: var(--ui-blue);
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
  }

  .task-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 6px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7aa2, #f04f7d);
    box-shadow: 0 8px 14px rgba(240, 82, 131, 0.18);
  }

  .task-icon.done {
    background: linear-gradient(135deg, #43cda2, #20a77f);
  }

  .task-icon.review {
    background: linear-gradient(135deg, #5c8cfb, #2f6df6);
  }

  .task-icon.draft {
    background: linear-gradient(135deg, #4d7bf0, #1d4ed8);
  }

  .mobile-reference-progress-body {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .mobile-reference-ring {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background:
      radial-gradient(circle, #ffffff 0 52%, transparent 53%),
      conic-gradient(var(--ui-blue) 0 68%, #e7eefb 68% 100%);
  }

  .mobile-reference-ring strong {
    color: var(--ui-ink);
    font-size: 18px;
    font-weight: 950;
  }

  .mobile-reference-ring span {
    display: none;
  }

  .mobile-reference-progress-body > div:last-child strong {
    color: var(--ui-ink);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
  }

  .mobile-reference-progress-body p {
    margin: 5px 0 8px;
    color: var(--ui-muted);
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-reference-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eefb;
  }

  .mobile-reference-bar i {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ui-blue), #70a1ff);
  }

  .mobile-reference-progress-action {
    width: 100%;
    min-height: 36px;
    margin-top: 10px;
    border: 0;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--ui-blue-deep);
    font-size: 12px;
    font-weight: 950;
    box-shadow: none;
  }

  .mobile-reference-hub {
    display: grid;
    gap: 10px;
    padding: 14px;
  }

  .mobile-reference-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-reference-hub-card {
    min-width: 0;
    min-height: 112px;
    display: grid;
    align-content: end;
    gap: 3px;
    border: 1px solid var(--ui-line);
    border-radius: 16px;
    padding: 10px 8px;
    background: linear-gradient(150deg, #ffffff, #eef5ff);
    color: var(--ui-ink);
    text-align: left;
    box-shadow: none;
  }

  .mobile-reference-hub-card span {
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 3px 6px;
    background: #eaf2ff;
    color: var(--ui-blue-deep);
    font-size: 10px;
    font-weight: 950;
  }

  .mobile-reference-hub-card strong {
    color: var(--ui-ink);
    font-size: 13px;
    line-height: 1.16;
    font-weight: 950;
  }

  .mobile-reference-hub-card small {
    color: var(--ui-muted);
    font-size: 9.5px;
    line-height: 1.28;
  }

  .home-daily-ai,
  .home-section {
    padding: 14px;
  }

  .home-daily-ai-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .home-daily-label {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-bottom: 5px;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(240, 82, 131, 0.12);
    color: #e33669;
    font-size: 11px;
    font-weight: 950;
  }

  .home-daily-ai p,
  .home-empty-work span,
  .panel-heading span,
  .manual-copy p,
  .manual-copy li,
  .manual-faq dd {
    color: var(--ui-muted);
  }

  .home-daily-action,
  .primary-button,
  .secondary-button,
  .danger-button,
  .icon-button,
  .filter-chip,
  .section-close-button,
  .form-actions button {
    min-height: 40px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
  }

  .primary-button,
  .home-daily-action {
    border: 0;
    background: linear-gradient(135deg, var(--ui-blue-deep), var(--ui-blue));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(47, 109, 246, 0.20);
  }

  .secondary-button,
  .icon-button,
  .filter-chip,
  .section-close-button {
    border: 1px solid rgba(47, 109, 246, 0.13);
    background: #eef5ff;
    color: var(--ui-blue-deep);
    box-shadow: none;
  }

  .danger-button {
    border: 1px solid rgba(240, 82, 131, 0.14);
    background: #fff1f5;
    color: #d83363;
    box-shadow: none;
  }

  .filter-chip.active {
    border-color: rgba(47, 109, 246, 0.24);
    background: linear-gradient(135deg, var(--ui-blue-deep), var(--ui-blue));
    color: #ffffff;
  }

  .section-close-bar {
    position: sticky;
    top: 8px;
    z-index: 18;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding: 8px 8px 8px 14px;
  }

  .section-close-bar span {
    color: var(--ui-ink);
    font-size: 16px;
    font-weight: 950;
  }

  .section-close-button {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
  }

  .panel,
  #createView .form-panel,
  #createView .result-panel,
  .work-management-panel,
  .task-management-panel,
  .asset-upload-panel,
  .asset-framework-panel,
  .manual-panel,
  #mineView > .workspace-grid.slim > .panel,
  #mineView > .panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: 20px;
    padding: 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.95)),
      var(--section-bg, linear-gradient(135deg, #ffffff, #eef5ff));
    box-shadow: var(--ui-shadow-soft);
    color: var(--ui-ink);
    backdrop-filter: blur(16px);
  }

  #createView .form-panel,
  #createView .result-panel {
    --section-bg: url("/assets/workbench-bg/create-page-scene.svg") right -12px top -12px / 62% auto no-repeat;
  }

  .work-management-panel {
    --section-bg: url("/assets/workbench-bg/works-page-scene.svg") right -20px top -18px / 66% auto no-repeat;
  }

  .task-management-panel {
    --section-bg: url("/assets/workbench-bg/tasks-page-scene.svg") right -18px top -14px / 66% auto no-repeat;
  }

  .asset-upload-panel,
  .asset-framework-panel {
    --section-bg: url("/assets/workbench-bg/project-studio-scene.svg") right -20px top -16px / 62% auto no-repeat;
  }

  #mineView > .workspace-grid.slim > .panel,
  #mineView > .panel,
  .manual-panel {
    --section-bg: url("/assets/workbench-bg/home-control-scene.svg") right -26px top -22px / 66% auto no-repeat;
  }

  .panel::before,
  #createView .form-panel::before,
  #createView .result-panel::before,
  .work-management-panel::before,
  .task-management-panel::before {
    display: none !important;
  }

  .panel > *,
  #createView .form-panel > *,
  #createView .result-panel > *,
  .work-management-panel > *,
  .task-management-panel > * {
    position: relative;
    z-index: 1;
  }

  .workspace-grid,
  .workspace-grid.slim {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0;
  }

  .panel-heading span,
  .heading-actions span {
    color: var(--ui-muted);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
  }

  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .category-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .category-card {
    min-width: 0;
    min-height: 88px;
    display: grid;
    align-content: end;
    gap: 4px;
    border: 1px solid var(--ui-line);
    border-radius: 17px;
    padding: 11px 9px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 255, 0.92));
    color: var(--ui-ink);
    box-shadow: none;
  }

  .category-card strong {
    color: var(--ui-ink);
    font-size: 13px;
    line-height: 1.16;
    font-weight: 950;
  }

  .category-card span {
    color: var(--ui-muted);
    font-size: 10px;
    line-height: 1.25;
  }

  .category-card.active {
    border-color: rgba(47, 109, 246, 0.30);
    background: linear-gradient(145deg, #153a9a, #2f6df6);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(47, 109, 246, 0.20);
  }

  .category-card.active strong,
  .category-card.active span {
    color: #ffffff;
  }

  .form-stack {
    gap: 12px;
  }

  .form-stack label,
  .field-group label {
    gap: 7px;
  }

  .form-stack label > span,
  .field-group label > span {
    color: var(--ui-ink);
    font-size: 12px;
    font-weight: 900;
  }

  input,
  select,
  textarea {
    min-height: 43px;
    border: 1px solid rgba(196, 211, 234, 0.88);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.96);
    color: var(--ui-ink);
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }

  textarea {
    min-height: 96px;
    line-height: 1.5;
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: rgba(47, 109, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.10);
  }

  .list-toolbar,
  .filter-tabs,
  .manual-toc {
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .list-toolbar::-webkit-scrollbar,
  .filter-tabs::-webkit-scrollbar,
  .manual-toc::-webkit-scrollbar {
    display: none;
  }

  .works-grid,
  .asset-grid,
  .task-list {
    gap: 10px;
  }

  .work-card,
  .task-row,
  .asset-card,
  .account-panel,
  .backend-preview-box,
  .auth-message,
  .manual-section,
  .mine-tool-card,
  .home-daily-news article,
  .home-empty-work {
    border: 1px solid rgba(196, 211, 234, 0.72);
    border-radius: 17px;
    background: rgba(248, 251, 255, 0.92);
    color: var(--ui-ink);
    box-shadow: none;
  }

  .work-card .card-title,
  .task-row .card-title,
  .mine-tool-copy strong,
  .manual-copy h3,
  .manual-faq dt {
    color: var(--ui-ink);
    font-weight: 950;
  }

  .work-card .card-meta,
  .task-row .card-meta,
  .mine-tool-copy small {
    color: var(--ui-muted);
  }

  .mine-mobile-account-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    border: 1px solid var(--ui-line);
    border-radius: 18px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--ui-shadow-soft);
  }

  .mine-mobile-account-actions span {
    min-width: 0;
    overflow: hidden;
    color: var(--ui-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 850;
  }

  .mine-tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .mine-tool-card {
    min-height: 72px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .mine-tool-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ui-blue-deep), var(--ui-blue));
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
  }

  .manual-toc {
    display: flex;
    padding-bottom: 2px;
  }

  .manual-toc a {
    flex: 0 0 auto;
    border: 1px solid rgba(47, 109, 246, 0.12);
    border-radius: 999px;
    padding: 8px 11px;
    background: #eef5ff;
    color: var(--ui-blue-deep);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
  }

  .manual-section {
    margin-top: 10px;
    padding: 12px;
  }

  .manual-section figure {
    border-radius: 16px;
    background: #ffffff;
  }

  body:has(#createView.active),
  body:has(#worksView.active),
  body:has(#tasksView.active),
  body:has(#assetsView.active),
  body:has(#mineView.active),
  body:has(#manualView.active) {
    background:
      radial-gradient(circle at 18% -8%, rgba(219, 235, 255, 0.96), transparent 36%),
      radial-gradient(circle at 90% 4%, rgba(237, 246, 255, 0.96), transparent 30%),
      linear-gradient(180deg, #fbfdff 0%, #f3f8ff 46%, #f9fcff 100%) !important;
  }

  #createView .workspace-grid,
  #createView .workspace-grid.slim {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding-top: 0 !important;
    background: transparent !important;
  }

  #createView .workspace-grid::before,
  #createView .workspace-grid::after {
    display: none !important;
  }


  .nav-item-DISABLED,
  .nav-item-DISABLED[data-view="tasks"],
  .nav-item-DISABLED[data-view="assets"],
  .nav-item-DISABLED[data-view="manual"] {
    flex-basis: 60px;
    min-width: 60px;
    min-height: 46px;
    border-radius: 16px;
    padding: 7px 6px;
  }

  .section-close-bar {
    min-height: 48px;
  }
}

/* 2026-05-19 mobile fullscreen section pages */
@media (max-width: 980px) {
  body:not([data-current-view="home"]) .app-shell {
    max-width: none !important;
    min-height: 100svh;
    margin: 0 !important;
    padding: 0 !important;
  }


  body:not([data-current-view="home"]) .main {
    width: 100%;
    min-height: 100svh;
    padding: 0 0 calc(22px + env(safe-area-inset-bottom)) !important;
  }

  body:not([data-current-view="home"]) .view.active {
    width: 100%;
    min-height: 100svh;
    display: block;
    padding: 10px 10px calc(24px + env(safe-area-inset-bottom));
  }

  body:not([data-current-view="home"]) .section-close-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 60;
    min-height: 48px !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: calc(8px + env(safe-area-inset-top)) 2px 8px !important;
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(248, 251, 255, 0.88) 72%, rgba(248, 251, 255, 0));
    box-shadow: none !important;
    backdrop-filter: blur(14px);
  }

  body:not([data-current-view="home"]) .section-close-bar span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ui-ink);
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
  }

  body:not([data-current-view="home"]) .section-close-bar span::before {
    content: "←";
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(47, 109, 246, 0.14);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ui-blue-deep);
    box-shadow: 0 8px 18px rgba(23, 55, 142, 0.08);
    font-size: 18px;
    font-weight: 950;
  }

  body:not([data-current-view="home"]) .section-close-button {
    min-width: 58px;
    min-height: 34px !important;
    border-radius: 999px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(47, 109, 246, 0.12) !important;
    background: #eef5ff !important;
    color: var(--ui-blue-deep) !important;
    box-shadow: none !important;
    font-size: 13px;
    font-weight: 950;
  }

  body:not([data-current-view="home"]) .panel,
  body:not([data-current-view="home"]) #createView .form-panel,
  body:not([data-current-view="home"]) #createView .result-panel,
  body:not([data-current-view="home"]) .work-management-panel,
  body:not([data-current-view="home"]) .task-management-panel,
  body:not([data-current-view="home"]) .asset-upload-panel,
  body:not([data-current-view="home"]) .asset-framework-panel,
  body:not([data-current-view="home"]) .manual-panel,
  body:not([data-current-view="home"]) #mineView > .workspace-grid.slim > .panel,
  body:not([data-current-view="home"]) #mineView > .panel {
    border-radius: 18px;
  }

  body:not([data-current-view="home"]) .workspace-grid,
  body:not([data-current-view="home"]) .workspace-grid.slim {
    width: 100%;
  }
}

/* 2026-05-19 split create modules - final layer */
.category-tabs {
  display: none !important;
}

#createView .panel-heading {
  align-items: flex-start;
}

#createView #categoryBadge {
  border: 1px solid rgba(47, 109, 246, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  background: #eef5ff;
  color: var(--ui-blue-deep);
  font-size: 12px;
  font-weight: 950;
}

@media (max-width: 980px) {
  body:not([data-current-view="home"]) #createView .form-panel {
    padding-top: 16px !important;
  }
}

/* 2026-05-19 left title section exit - final layer */
@media (max-width: 980px) {
  body:not([data-current-view="home"]) .section-close-bar {
    justify-content: flex-start !important;
  }

  body:not([data-current-view="home"]) .section-exit-title {
    appearance: none;
    min-width: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    padding: 2px 8px 2px 0;
    background: transparent;
    color: var(--ui-ink);
    box-shadow: none;
    font: inherit;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
    text-align: left;
  }

  body:not([data-current-view="home"]) .section-exit-title::before {
    content: "←";
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(47, 109, 246, 0.14);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ui-blue-deep);
    box-shadow: 0 8px 18px rgba(23, 55, 142, 0.08);
    font-size: 18px;
    font-weight: 950;
  }

  body:not([data-current-view="home"]) .section-exit-title:active {
    transform: translateY(1px);
  }

  body:not([data-current-view="home"]) .section-close-button {
    display: none !important;
  }
}

/* 2026-05-20 material search hub */
.mobile-material-search,
.material-search-card,
.material-import-card {
  border: 1px solid rgba(47, 109, 246, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 16px 36px rgba(23, 55, 142, 0.08);
}

.mobile-material-search {
  display: grid;
  gap: 10px;
  border-radius: 20px;
  padding: 14px;
}

.material-search-card,
.material-import-card {
  display: grid;
  gap: 10px;
  border-radius: 18px;
  padding: 12px;
}

.material-search-card label,
.material-import-card label {
  display: grid;
  gap: 7px;
}

.material-search-card label span,
.material-import-card label span {
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 900;
}

.material-search-card input,
.material-import-card input,
.material-import-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(47, 109, 246, 0.14);
  border-radius: 14px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ui-ink);
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.material-search-card input:focus,
.material-import-card input:focus,
.material-import-row select:focus {
  border-color: rgba(47, 109, 246, 0.46);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.1);
}

.material-import-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.material-import-row button {
  min-width: 94px;
}

.material-search-tip {
  margin: 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.material-search-tip[data-tone="success"] {
  color: #16844f;
}

.material-search-tip[data-tone="error"] {
  color: #c2410c;
}

.asset-search-card,
.asset-import-card {
  margin-bottom: 10px;
}

@media (max-width: 420px) {
  .material-import-row {
    grid-template-columns: 1fr;
  }

  .material-import-row button {
    width: 100%;
  }
}

/* 2026-05-20 inline image search results */
.material-search-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.material-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.material-search-result-card,
.material-search-empty {
  min-width: 0;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 55, 142, 0.07);
}

.material-search-result-card {
  overflow: hidden;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.material-search-result-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #eef5ff;
}

.material-search-result-card strong,
.material-search-empty strong {
  display: block;
  color: var(--ui-ink);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 950;
}

.material-search-result-card span,
.material-search-empty span {
  display: block;
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
}

.material-search-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.material-search-result-actions button {
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 12px;
}

.material-search-result-actions .material-source-link {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 8px;
  font-size: 12px;
  text-decoration: none;
}

.material-search-empty {
  grid-column: 1 / -1;
  padding: 14px;
}

@media (max-width: 420px) {
  .material-search-result-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* 2026-05-20 search cards only */
.mobile-material-search,
.asset-upload-panel .asset-search-card {
  border-radius: 20px;
  border: 1px solid rgba(47, 109, 246, 0.12);
  background:
    linear-gradient(135deg, rgba(235, 244, 255, 0.95), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: 0 16px 34px rgba(23, 55, 142, 0.08);
}

.mobile-material-search .material-search-card,
.asset-upload-panel .asset-search-card {
  border-radius: 16px;
  border: 1px solid rgba(47, 109, 246, 0.10);
  background: #ffffff;
  box-shadow: none;
}

.material-search-actions .primary-button,
.material-search-actions .secondary-button {
  width: 100%;
}

.material-search-result-card {
  border-radius: 16px;
  border-color: rgba(47, 109, 246, 0.14);
  background: #ffffff;
}

.material-search-result-actions .secondary-button,
.material-search-result-actions .material-source-link {
  border: 1px solid rgba(47, 109, 246, 0.13);
  background: #eef5ff;
  color: var(--ui-blue-deep);
  box-shadow: none;
  font-weight: 900;
}

/* 2026-05-20 home real stats */
.mobile-reference-ring[data-home-task-ring] {
  background:
    radial-gradient(circle, #ffffff 0 58%, transparent 59%),
    conic-gradient(var(--ui-blue) 0 var(--home-task-rate, 0%), #e7eefb var(--home-task-rate, 0%) 100%);
}

.mobile-reference-bar [data-home-task-bar] {
  width: 0%;
}

/* 2026-05-20 search result import action */
.material-search-card select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 14px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ui-ink);
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.material-search-card select:focus {
  border-color: rgba(47, 109, 246, 0.46);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.1);
}

.material-search-result-actions {
  grid-template-columns: 1fr 1fr 1fr;
}

.material-search-result-actions .primary-button {
  min-width: 0;
  min-height: 36px;
  border-radius: 12px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

@media (max-width: 420px) {
  .material-search-result-actions {
    grid-template-columns: 1fr;
  }
}

.admin-site-message-form {
  display: grid;
  gap: 12px;
}

.admin-site-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-site-message-head > div {
  display: grid;
  gap: 4px;
}

.admin-site-message-head strong {
  color: #172033;
  font-size: 15px;
  font-weight: 900;
}

.admin-site-message-head span {
  color: #6d7f94;
  font-size: 12px;
  font-weight: 750;
}

.admin-site-message-form textarea {
  min-height: 104px;
  resize: vertical;
}

@media (max-width: 720px) {
  .admin-site-message-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-site-message-head .primary-button {
    width: 100%;
  }
}

/* 2026-05-20 mine plus site info header */
.mobile-reference-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.mobile-reference-site-chip {
  position: relative;
  order: 1;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(47, 109, 246, 0.13);
  border-radius: 14px;
  padding: 0 10px;
  background: #eef5ff;
  color: var(--ui-blue-deep);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-reference-actions .mobile-reference-user {
  order: 2;
  flex: 0 0 auto;
  min-height: 40px;
  gap: 6px;
  border: 1px solid rgba(47, 109, 246, 0.13);
  border-radius: 14px;
  padding: 0 10px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 55, 142, 0.07);
}

.mobile-reference-actions .mobile-reference-user strong,
.mobile-reference-site-chip strong {
  max-width: none;
  font-size: 13px;
  font-weight: 950;
}

.mobile-reference-actions .mobile-reference-avatar {
  width: 24px;
  height: 24px;
}

.mobile-reference-site-chip .mobile-reference-bell {
  width: 17px;
  height: 17px;
  border-width: 2px;
}

.mobile-reference-site-chip .mobile-reference-badge {
  left: 20px;
  top: -9px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
}

@media (max-width: 420px) {
  .mobile-reference-actions {
    gap: 6px;
  }

  .mobile-reference-actions .mobile-reference-user,
  .mobile-reference-site-chip {
    min-height: 38px;
    padding: 0 8px;
  }

  .mobile-reference-actions .mobile-reference-avatar {
    display: none;
  }
}

/* 2026-05-20 pure color feature cards */
.home-quick-card,
.home-quick-card.primary,
.home-quick-card.home-quick-card-compare,
.home-quick-card.home-quick-card-chat {
  background-image: none !important;
  background-repeat: no-repeat;
  background-size: auto;
}

.home-quick-card.primary {
  background:
    linear-gradient(155deg, #ffffff 0%, #fff4f8 56%, #ffe7f0 100%) !important;
}

.home-quick-card.home-quick-card-compare {
  background:
    linear-gradient(155deg, #ffffff 0%, #f0fff9 58%, #ddf8ef 100%) !important;
}

.home-quick-card.home-quick-card-chat {
  background:
    linear-gradient(155deg, #ffffff 0%, #f1f6ff 58%, #dfeaff 100%) !important;
}

/* 2026-05-20 unified homepage card style */
:root {
  --unified-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.96) 100%);
  --unified-card-bg-soft: linear-gradient(135deg, rgba(238, 245, 255, 0.96), rgba(255, 255, 255, 0.98));
  --unified-card-line: rgba(47, 109, 246, 0.13);
  --unified-card-line-strong: rgba(47, 109, 246, 0.20);
  --unified-card-shadow: 0 14px 32px rgba(23, 55, 142, 0.08);
  --unified-card-shadow-soft: 0 8px 20px rgba(23, 55, 142, 0.06);
}

.panel,
.home-hero,
.mobile-reference-greeting,
.mobile-reference-task-card,
.mobile-reference-progress-card,
.mobile-material-search,
.home-daily-ai,
.work-card,
.task-row,
.asset-section,
.asset-card,
.manual-panel,
.manual-section,
.mine-tool-card,
.account-panel,
.backend-preview-box,
.admin-stat-card,
.advanced-create-fields,
.material-search-card,
.material-search-result-card,
.empty-state,
.flow-state-card,
.poster-preview-area,
.poster-preview-empty,
.avatar-box,
.member-permission-box,
.account-photo-panel,
.account-photo-card,
.account-credit-detail,
.daily-usage-record,
.daily-usage-empty,
.today-usage-row,
.today-usage-empty,
.work-param-list div,
.task-note,
.asset-framework,
.manual-section figure {
  border-color: var(--unified-card-line) !important;
  background: var(--unified-card-bg) !important;
  box-shadow: var(--unified-card-shadow-soft) !important;
  color: var(--ui-ink, var(--text)) !important;
}

.panel,
.home-hero,
.mobile-reference-greeting,
.mobile-reference-task-card,
.mobile-reference-progress-card,
.mobile-material-search,
.home-daily-ai,
.manual-panel {
  border-radius: 20px !important;
}

.work-card,
.task-row,
.asset-section,
.asset-card,
.manual-section,
.mine-tool-card,
.account-panel,
.backend-preview-box,
.admin-stat-card,
.advanced-create-fields,
.material-search-card,
.material-search-result-card,
.empty-state,
.flow-state-card,
.poster-preview-area,
.avatar-box,
.member-permission-box,
.account-photo-panel,
.account-photo-card,
.daily-usage-record,
.daily-usage-empty,
.today-usage-row,
.today-usage-empty,
.work-param-list div,
.task-note,
.asset-framework,
.manual-section figure {
  border-radius: 16px !important;
}

#createView .form-panel,
#createView .result-panel,
.work-management-panel,
.task-management-panel,
.asset-upload-panel,
.asset-framework-panel,
#mineView > .workspace-grid.slim > .panel,
#mineView > .panel,
.manual-panel {
  --section-bg: var(--unified-card-bg-soft) !important;
  --panel-bg-image: var(--unified-card-bg-soft) !important;
  background: var(--unified-card-bg-soft) !important;
  background-image: var(--unified-card-bg-soft) !important;
}

#createView .workspace-grid::before,
#createView .workspace-grid::after,
.work-management-panel::before,
.work-management-panel::after,
.task-management-panel::before,
.task-management-panel::after,
.asset-upload-panel::before,
.asset-upload-panel::after,
.asset-framework-panel::before,
.asset-framework-panel::after,
#mineView > .workspace-grid.slim > .panel::before,
#mineView > .workspace-grid.slim > .panel::after,
#mineView > .panel::before,
#mineView > .panel::after,
.work-card::before,
.work-card::after,
.task-row::before,
.task-row::after,
.asset-section::before,
.mine-tool-card::before {
  display: none !important;
}

.panel-heading {
  border-bottom: 1px solid rgba(47, 109, 246, 0.08);
  padding-bottom: 12px;
}

.panel-heading h2,
.mobile-reference-section-head h2,
.home-daily-ai h2,
.manual-copy h3,
.card-title,
.mine-tool-copy strong,
.admin-stat-card strong {
  color: var(--ui-ink, #07152f) !important;
  letter-spacing: 0 !important;
}

.panel-heading span,
.heading-actions span,
.site-message-meta,
.card-meta,
.mine-tool-copy small,
.manual-copy p,
.manual-copy li,
.manual-faq dd,
.asset-section-head p,
.task-note,
.asset-framework {
  color: var(--ui-muted, #5f6f8a) !important;
}

.panel-heading span,
.heading-actions span,
.status-pill,
.home-daily-label,
.admin-code-row span,
.account-credit-pill {
  border: 1px solid rgba(47, 109, 246, 0.12) !important;
  border-radius: 999px !important;
  background: #eef5ff !important;
  color: var(--ui-blue-deep, #12358f) !important;
  box-shadow: none !important;
}

.list-toolbar,
.filter-tabs,
.manual-toc {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.filter-chip,
.manual-toc a,
.secondary-button,
.icon-button,
.material-search-result-actions .material-source-link,
.mobile-reference-search,
.mobile-reference-site-chip,
.mobile-reference-actions .mobile-reference-user {
  border: 1px solid rgba(47, 109, 246, 0.13) !important;
  background: #eef5ff !important;
  color: var(--ui-blue-deep, #12358f) !important;
  box-shadow: none !important;
}

.filter-chip.active,
.primary-button,
.home-daily-action,
.mobile-reference-progress-action {
  border: 0 !important;
  background: linear-gradient(135deg, var(--ui-blue-deep, #12358f), var(--ui-blue, #2f6df6)) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(47, 109, 246, 0.18) !important;
}

.danger-button {
  border: 1px solid rgba(240, 82, 131, 0.16) !important;
  background: #fff1f5 !important;
  color: #d83363 !important;
  box-shadow: none !important;
}

input,
select,
textarea,
.material-search-card select,
.material-search-card input {
  border-color: rgba(47, 109, 246, 0.15) !important;
  background: #ffffff !important;
  color: var(--ui-ink, #07152f) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

.work-param-list div,
.task-note,
.asset-framework,
.account-usage-grid div,
.today-usage-stats div,
.preview-summary > div,
.backend-structure > div {
  background: #f7fbff !important;
}

.mine-tool-icon {
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--ui-blue-deep, #12358f), var(--ui-blue, #2f6df6)) !important;
  color: #ffffff !important;
}

.material-search-result-card,
.asset-card,
.work-card,
.task-row,
.mine-tool-card {
  overflow: hidden;
}

.home-quick-card span {
  border: 1px solid rgba(47, 109, 246, 0.12) !important;
  background: #eef5ff !important;
  color: var(--ui-blue-deep, #12358f) !important;
}

.home-quick-card strong {
  color: var(--ui-ink, #07152f) !important;
}

.home-quick-card small {
  color: var(--ui-muted, #5f6f8a) !important;
}

@media (max-width: 980px) {
  body:not([data-current-view="home"]) .view.active {
    background:
      radial-gradient(circle at 18% -6%, rgba(223, 238, 255, 0.92), transparent 34%),
      linear-gradient(180deg, #fbfdff 0%, #f3f8ff 52%, #f9fcff 100%) !important;
  }

  body:not([data-current-view="home"]) .panel,
  body:not([data-current-view="home"]) #createView .form-panel,
  body:not([data-current-view="home"]) #createView .result-panel,
  body:not([data-current-view="home"]) .work-management-panel,
  body:not([data-current-view="home"]) .task-management-panel,
  body:not([data-current-view="home"]) .asset-upload-panel,
  body:not([data-current-view="home"]) .asset-framework-panel,
  body:not([data-current-view="home"]) .manual-panel,
  body:not([data-current-view="home"]) #mineView > .workspace-grid.slim > .panel,
  body:not([data-current-view="home"]) #mineView > .panel {
    padding: 14px !important;
    border-radius: 20px !important;
    background: var(--unified-card-bg-soft) !important;
    background-image: var(--unified-card-bg-soft) !important;
  }

  body:not([data-current-view="home"]) .section-close-bar {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(248, 251, 255, 0.88) 76%, rgba(248, 251, 255, 0)) !important;
  }

  .panel-heading {
    margin-bottom: 12px !important;
  }

  .card-body {
    padding: 12px !important;
  }

  .material-search-result-actions {
    grid-template-columns: 1fr !important;
  }
}

/* 2026-05-20 reference soft blue card fusion + horizontal works/tasks */
:root {
  --unified-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 249, 255, 0.98) 100%);
  --unified-card-bg-soft: linear-gradient(135deg, rgba(232, 240, 255, 0.98), rgba(255, 255, 255, 0.99));
  --unified-card-line: rgba(156, 183, 228, 0.46);
  --unified-card-line-strong: rgba(47, 109, 246, 0.16);
  --unified-card-shadow: 0 12px 28px rgba(23, 55, 142, 0.06);
  --unified-card-shadow-soft: 0 7px 18px rgba(23, 55, 142, 0.05);
}

body {
  background:
    radial-gradient(circle at 20% -8%, rgba(224, 238, 255, 0.90), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(239, 246, 255, 0.92), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 48%, #fbfdff 100%) !important;
}

.panel,
.home-hero,
.mobile-reference-task-card,
.mobile-reference-progress-card,
.mobile-material-search,
.home-daily-ai,
.work-card,
.task-row,
.asset-card,
.mine-tool-card,
.account-panel,
.admin-stat-card,
.manual-section,
.material-search-card,
.material-search-result-card,
.flow-state-card,
.poster-preview-area,
.empty-state {
  border-color: var(--unified-card-line) !important;
  background: var(--unified-card-bg) !important;
  box-shadow: var(--unified-card-shadow-soft) !important;
}

.home-hero,
.mobile-reference-task-card,
.mobile-reference-progress-card,
.mobile-material-search,
.home-daily-ai,
.panel {
  border-radius: 20px !important;
}

.home-quick-card,
.mobile-reference-task-grid div,
.mobile-reference-progress-action,
.filter-chip,
.status-pill,
.work-param-list div,
.task-note {
  border-color: rgba(156, 183, 228, 0.38) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.96)) !important;
}

.works-grid,
.task-list {
  gap: 12px !important;
}

.work-card,
.task-row {
  position: relative !important;
  overflow: hidden !important;
  display: grid !important;
  align-items: stretch !important;
  gap: 0 !important;
  border: 1px solid rgba(156, 183, 228, 0.44) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(232, 240, 255, 0.78), rgba(255, 255, 255, 0.98)) !important;
  box-shadow: 0 12px 26px rgba(23, 55, 142, 0.06) !important;
}

.work-card {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  min-height: 150px !important;
}

.work-card img,
.work-card .failed-preview {
  width: 100% !important;
  height: 100% !important;
  min-height: 150px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

.task-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: 104px !important;
}

.work-card::before,
.task-row::before {
  display: block !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 0 0, rgba(91, 104, 232, 0.08), transparent 44%) !important;
}

.work-card::after,
.task-row::after {
  display: block !important;
  width: 4px !important;
  background: linear-gradient(180deg, #88a8ff, #5b68e8, #18b7a7) !important;
}

.work-card .card-body,
.task-row > div {
  min-width: 0 !important;
  padding: 12px 13px !important;
}

.work-card .card-body {
  display: grid !important;
  gap: 7px !important;
}

.work-card .card-title,
.task-row .card-title {
  color: var(--ui-ink, #07152f) !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 950 !important;
}

.work-card .card-meta,
.task-row .card-meta {
  color: var(--ui-muted, #5f6f8a) !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}

.work-card .work-param-list.compact {
  gap: 5px !important;
}

.work-card .work-param-list.compact div,
.task-note {
  background: rgba(247, 251, 255, 0.96) !important;
}

.work-card .card-actions,
.task-row-actions {
  gap: 7px !important;
}

.work-card .card-actions > *,
.task-row-actions > * {
  min-height: 38px !important;
}

@media (max-width: 980px) {
  body,
  body:has(#createView.active),
  body:has(#worksView.active),
  body:has(#tasksView.active),
  body:has(#assetsView.active),
  body:has(#mineView.active),
  body:has(#manualView.active),
  body:not([data-current-view="home"]) .view.active {
    background:
      radial-gradient(circle at 18% -6%, rgba(224, 238, 255, 0.92), transparent 34%),
      radial-gradient(circle at 88% 6%, rgba(239, 246, 255, 0.92), transparent 28%),
      linear-gradient(180deg, #fbfdff 0%, #f3f8ff 52%, #fbfdff 100%) !important;
  }

  .home-hero,
  .home-quick-card,
  .mobile-reference-task-card,
  .mobile-reference-progress-card,
  .mobile-material-search,
  .home-daily-ai {
    border-color: rgba(156, 183, 228, 0.50) !important;
    box-shadow: 0 10px 24px rgba(23, 55, 142, 0.055) !important;
  }

  .mobile-reference-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .mobile-reference-task-card,
  .mobile-reference-progress-card {
    min-width: 0 !important;
    padding: 12px !important;
  }

  .work-card {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }

  .task-row {
    grid-template-columns: minmax(0, 1fr) 104px !important;
  }

  .task-row-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: center !important;
    justify-items: stretch !important;
  }

  .task-row-actions > * {
    width: 100% !important;
  }
}

/* 2026-05-20 exact mobile reference layout */
@media (max-width: 980px) {
  :root {
    --reference-bg: #edf5ff;
    --reference-card: #ffffff;
    --reference-line: #c9d9f4;
    --reference-ink: #071733;
    --reference-muted: #697994;
    --reference-blue: #2450b8;
    --reference-blue-2: #2f6df6;
    --reference-pink: #f5b2c9;
    --reference-green: #ecfff9;
    --reference-soft-blue: #edf5ff;
  }

  html,
  body {
    background: var(--reference-bg) !important;
  }

  body[data-current-view="home"] .main {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--reference-bg) !important;
  }

  body[data-current-view="home"] .app-shell {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  body[data-current-view="home"] .view.active {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: 100dvh !important;
    padding: 0 17px calc(82px + env(safe-area-inset-bottom)) !important;
    background:
      radial-gradient(circle at 76% 17%, rgba(214, 229, 255, 0.95), transparent 31%),
      linear-gradient(180deg, #edf5ff 0%, #eef6ff 42%, #f8fbff 100%) !important;
  }

  body[data-current-view="home"] .mobile-home-shell {
    width: calc(100vw - 34px) !important;
    max-width: 356px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 15px !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  body[data-current-view="home"] .mobile-home-shell > section {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  body[data-current-view="home"] .mobile-reference-top {
    height: 73px !important;
    padding: 0 !important;
    margin: 0 -17px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #cfdcf2 !important;
    border-radius: 0 !important;
    background: #f7fbff !important;
    box-shadow: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body[data-current-view="home"] .mobile-reference-title {
    padding-left: 17px !important;
    max-width: 205px !important;
    color: var(--reference-ink) !important;
    font-size: 16px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  body[data-current-view="home"] .mobile-reference-actions {
    padding-right: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  body[data-current-view="home"] .mobile-reference-site-chip {
    width: 40px !important;
    min-width: 40px !important;
    height: 50px !important;
    padding: 0 !important;
    order: 1 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .mobile-reference-site-chip strong {
    display: none !important;
  }

  body[data-current-view="home"] .mobile-reference-bell {
    width: 30px !important;
    height: 30px !important;
    border: 3px solid #0e1b31 !important;
    border-bottom-color: transparent !important;
    border-radius: 18px 18px 10px 10px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .mobile-reference-bell::before {
    display: block !important;
    width: 5px !important;
    height: 5px !important;
    left: 50% !important;
    bottom: -8px !important;
    transform: translateX(-50%) !important;
    border-radius: 50% !important;
    background: #0e1b31 !important;
  }

  body[data-current-view="home"] .mobile-reference-bell::after {
    display: none !important;
  }

  body[data-current-view="home"] .mobile-reference-badge {
    top: 0 !important;
    right: -2px !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 4px !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    background: #ff527c !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 16px !important;
  }

  body[data-current-view="home"] .mobile-reference-user {
    order: 2 !important;
    height: 52px !important;
    min-width: 86px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 6px !important;
    color: var(--reference-ink) !important;
  }

  body[data-current-view="home"] .mobile-reference-avatar {
    width: 46px !important;
    height: 46px !important;
    border: 4px solid #ffffff !important;
    outline: 2px solid #d2e2ff !important;
    background:
      radial-gradient(circle at 62% 28%, #ffc9c2 0 9px, transparent 10px),
      radial-gradient(circle at 50% 58%, #ffe7e4 0 18px, transparent 19px),
      #f8f2f5 !important;
    box-shadow: 0 5px 14px rgba(25, 66, 150, 0.12) !important;
  }

  body[data-current-view="home"] .mobile-reference-user strong {
    font-size: 13px !important;
    font-weight: 950 !important;
  }

  body[data-current-view="home"] .mobile-reference-arrow {
    width: 10px !important;
    height: 10px !important;
    border-right: 3px solid #68788f !important;
    border-bottom: 3px solid #68788f !important;
    transform: rotate(-45deg) !important;
  }

  body[data-current-view="home"] .mobile-reference-greeting {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 115px !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 19px 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .mobile-reference-greeting h2 {
    margin: 0 0 8px !important;
    color: var(--reference-ink) !important;
    font-size: 23px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
  }

  body[data-current-view="home"] .mobile-reference-greeting p {
    margin: 0 !important;
    color: var(--reference-muted) !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
  }

  body[data-current-view="home"] .mobile-reference-search {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 52px !important;
    width: 115px !important;
    min-width: 115px !important;
    border: 1px solid #d3dff2 !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #27344b !important;
    box-shadow: 0 9px 21px rgba(55, 89, 148, 0.08) !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
  }

  body[data-current-view="home"] .mobile-reference-search span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
  }

  body[data-current-view="home"] .mobile-reference-search span::before {
    content: "" !important;
    display: inline-block !important;
    width: 17px !important;
    height: 17px !important;
    border: 3px solid #1d2a41 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
  }

  body[data-current-view="home"] .mobile-reference-search span::after {
    content: "" !important;
    display: inline-block !important;
    width: 9px !important;
    height: 3px !important;
    margin-left: -9px !important;
    margin-top: 14px !important;
    border-radius: 999px !important;
    background: #1d2a41 !important;
    transform: rotate(45deg) !important;
  }

  body[data-current-view="home"] .home-hero {
    width: 100% !important;
    max-width: none !important;
    height: 295px !important;
    min-height: 295px !important;
    max-height: 295px !important;
    margin: 0 !important;
    padding: 22px !important;
    border: 1px solid #b9d2ff !important;
    border-radius: 22px !important;
    background:
      radial-gradient(circle at 74% 58%, rgba(71, 119, 242, 0.24), transparent 25%),
      radial-gradient(circle at 86% 38%, rgba(255, 255, 255, 0.96), transparent 24%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.98) 54%, rgba(225, 238, 255, 0.94) 100%) !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body[data-current-view="home"] .home-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: auto -28px -38px 44% !important;
    height: 128px !important;
    border: 1px solid rgba(113, 157, 240, 0.12) !important;
    border-radius: 50% !important;
    background: transparent !important;
  }

  body[data-current-view="home"] .home-hero::after {
    display: none !important;
  }

  body[data-current-view="home"] .home-hero-copy {
    max-width: 54% !important;
    gap: 0 !important;
    z-index: 2 !important;
  }

  body[data-current-view="home"] .home-hero .home-hero-copy::after {
    display: none !important;
    content: none !important;
  }

  body[data-current-view="home"] .home-kicker {
    margin: 0 0 8px !important;
    color: #55719c !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
  }

  body[data-current-view="home"] .home-hero h2 {
    max-width: 150px !important;
    margin: 0 0 14px !important;
    color: var(--reference-ink) !important;
    font-size: 30px !important;
    line-height: 1.02 !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
  }

  body[data-current-view="home"] .home-hero p:not(.home-kicker) {
    max-width: 146px !important;
    margin: 0 0 17px !important;
    color: #5f7191 !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
    font-weight: 700 !important;
  }

  body[data-current-view="home"] .home-hero .primary-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 108px !important;
    min-height: 48px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #2149b4 !important;
    color: #fff !important;
    box-shadow: 0 13px 24px rgba(31, 73, 178, 0.26) !important;
    font-size: 14px !important;
    font-weight: 950 !important;
  }

  body[data-current-view="home"] .home-hero-preview {
    position: absolute !important;
    right: 6px !important;
    bottom: 18px !important;
    width: 178px !important;
    height: 178px !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body[data-current-view="home"] .preview-window {
    position: absolute !important;
    left: 18px !important;
    top: 28px !important;
    width: 88px !important;
    height: 94px !important;
    border: 1px solid #aac7ff !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.68) !important;
    box-shadow: 0 18px 28px rgba(74, 112, 214, 0.14) !important;
  }

  body[data-current-view="home"] .preview-window span {
    display: block !important;
    width: 58px !important;
    height: 8px !important;
    margin: 16px auto 12px !important;
    border-radius: 999px !important;
    background: #a8c1ff !important;
  }

  body[data-current-view="home"] .preview-window strong {
    display: block !important;
    width: 72px !important;
    height: 34px !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
    background: #9fbaff !important;
    opacity: 0.86 !important;
  }

  body[data-current-view="home"] .preview-window em {
    display: block !important;
    width: 70px !important;
    height: 12px !important;
    margin: 17px auto 0 !important;
    border-radius: 999px !important;
    background: #9bb9ff !important;
  }

  body[data-current-view="home"] .preview-card-main {
    position: absolute !important;
    right: 14px !important;
    top: 19px !important;
    width: 68px !important;
    height: 78px !important;
    border: 1px solid #c8dbff !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(8px) !important;
  }

  body[data-current-view="home"] .preview-card-side {
    position: absolute !important;
    right: 36px !important;
    bottom: 36px !important;
    width: 92px !important;
    height: 44px !important;
    border: 1px solid #d8e5ff !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.76) !important;
    backdrop-filter: blur(8px) !important;
  }

  body[data-current-view="home"] .home-quick-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
    margin: 2px 0 0 !important;
  }

  body[data-current-view="home"] .home-quick-card,
  body[data-current-view="home"] .home-quick-card.primary,
  body[data-current-view="home"] .home-quick-card.home-quick-card-compare,
  body[data-current-view="home"] .home-quick-card.home-quick-card-chat {
    height: 162px !important;
    min-height: 162px !important;
    padding: 12px 10px !important;
    border: 1px solid #cbdaf0 !important;
    border-radius: 15px !important;
    box-shadow: none !important;
    background-image: none !important;
    overflow: hidden !important;
  }

  body[data-current-view="home"] .home-quick-card.primary {
    background-color: #f7bed2 !important;
    background-image: linear-gradient(180deg, #f7bed2 0%, #f3abc4 100%) !important;
  }

  body[data-current-view="home"] .home-quick-card.home-quick-card-compare {
    background-color: #f4fffb !important;
    background-image:
      radial-gradient(circle at 72% 82%, rgba(190, 235, 222, 0.48), transparent 38%),
      linear-gradient(180deg, #ffffff 0%, #effff8 100%) !important;
  }

  body[data-current-view="home"] .home-quick-card.home-quick-card-chat {
    background-color: #f3f7ff !important;
    background-image:
      radial-gradient(circle at 70% 84%, rgba(204, 224, 255, 0.58), transparent 38%),
      linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%) !important;
  }

  body[data-current-view="home"] .home-quick-card::before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    inset: auto 7px 9px 7px !important;
    height: 52px !important;
    border-radius: 12px !important;
    background:
      repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0 5px, transparent 5px 12px) !important;
    opacity: 0.32 !important;
  }

  body[data-current-view="home"] .home-quick-card::after {
    display: none !important;
  }

  body[data-current-view="home"] .home-card-visual {
    display: none !important;
  }

  body[data-current-view="home"] .home-quick-card span {
    align-self: flex-start !important;
    width: auto !important;
    margin: 0 0 13px !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #0b1730 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
  }

  body[data-current-view="home"] .home-quick-card.home-quick-card-compare span {
    background: #c9fff1 !important;
    color: #009578 !important;
  }

  body[data-current-view="home"] .home-quick-card.home-quick-card-chat span {
    background: #e5efff !important;
    color: #2f6df6 !important;
  }

  body[data-current-view="home"] .home-quick-card strong {
    width: 100% !important;
    color: var(--reference-ink) !important;
    font-size: 17px !important;
    line-height: 1.16 !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
  }

  body[data-current-view="home"] .home-quick-card small {
    width: 100% !important;
    margin-top: 11px !important;
    color: #4f617c !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 650 !important;
  }

  body[data-current-view="home"] .mobile-reference-metrics {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 15px !important;
    margin: 0 !important;
  }

  body[data-current-view="home"] .mobile-reference-task-card,
  body[data-current-view="home"] .mobile-reference-progress-card {
    width: 100% !important;
    max-width: none !important;
    height: 258px !important;
    min-height: 258px !important;
    max-height: 258px !important;
    padding: 16px 15px !important;
    border: 1px solid #c9d9f4 !important;
    border-radius: 20px !important;
    background: var(--reference-card) !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .mobile-reference-section-head {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body[data-current-view="home"] .mobile-reference-section-head h2 {
    color: var(--reference-ink) !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
  }

  body[data-current-view="home"] .mobile-reference-section-head span,
  body[data-current-view="home"] .mobile-reference-section-head button {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #64738e !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 13px !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid div {
    min-height: 86px !important;
    padding: 13px 6px 10px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #f5f9ff !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid div::before,
  body[data-current-view="home"] .mobile-reference-task-grid .task-icon {
    width: 34px !important;
    height: 34px !important;
    margin: 0 auto 8px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 18px rgba(47, 109, 246, 0.12) !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(1) .task-icon {
    background: linear-gradient(135deg, #ff8bb2, #f7578b) !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(2) .task-icon {
    background: linear-gradient(135deg, #69d9bd, #22b98b) !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(3) .task-icon {
    background: linear-gradient(135deg, #77a5ff, #2f6df6) !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(4) .task-icon {
    background: linear-gradient(135deg, #6c8eff, #2755d9) !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid strong {
    color: var(--reference-ink) !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid small {
    margin-top: 8px !important;
    color: #667894 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid em {
    margin-top: 6px !important;
    color: #2f6df6 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
  }

  body[data-current-view="home"] .mobile-reference-progress-body {
    display: grid !important;
    grid-template-columns: 80px minmax(0, 1fr) !important;
    gap: 15px !important;
    align-items: center !important;
    min-height: 118px !important;
  }

  body[data-current-view="home"] .mobile-reference-ring {
    width: 80px !important;
    height: 80px !important;
    border: 12px solid #e8eef8 !important;
    border-top-color: #2f6df6 !important;
    border-right-color: #2f6df6 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .mobile-reference-ring strong {
    color: var(--reference-ink) !important;
    font-size: 26px !important;
    font-weight: 950 !important;
  }

  body[data-current-view="home"] .mobile-reference-ring span {
    display: none !important;
  }

  body[data-current-view="home"] .mobile-reference-progress-body > div:last-child strong {
    color: var(--reference-ink) !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
  }

  body[data-current-view="home"] .mobile-reference-progress-body p {
    margin: 8px 0 10px !important;
    color: #667894 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
  }

  body[data-current-view="home"] .mobile-reference-bar {
    height: 11px !important;
    border-radius: 999px !important;
    background: #e8eef8 !important;
  }

  body[data-current-view="home"] .mobile-reference-bar i {
    border-radius: inherit !important;
    background: linear-gradient(90deg, #2f6df6, #79a5ff) !important;
  }

  body[data-current-view="home"] .mobile-reference-progress-action {
    width: 100% !important;
    min-height: 48px !important;
    margin-top: 18px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #eaf1fb !important;
    color: #0c2b72 !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .mobile-material-search,
  body[data-current-view="home"] .home-daily-ai {
    padding: 18px !important;
    border: 1px solid #c9d9f4 !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  

  

  body[data-current-view="home"] .nav-list-DISABLED {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 60 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    height: calc(75px + env(safe-area-inset-bottom)) !important;
    min-height: calc(75px + env(safe-area-inset-bottom)) !important;
    max-height: none !important;
    width: 100% !important;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid #d9e2ef !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 -8px 20px rgba(30, 60, 120, 0.05) !important;
    transform: none !important;
    inset-block-start: auto !important;
    inset-block-end: 0 !important;
    pointer-events: auto !important;
  }

  

  

  

  

  

  

  

  body:not([data-current-view="home"]) .nav-list-DISABLED {
    display: none !important;
  }

  .work-card {
    grid-template-columns: 102px minmax(0, 1fr) !important;
    min-height: 136px !important;
    border-color: #c9d9f4 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%) !important;
    box-shadow: none !important;
  }

  .work-card img,
  .work-card .failed-preview {
    min-height: 136px !important;
  }

  .task-row {
    grid-template-columns: minmax(0, 1fr) 96px !important;
    min-height: 104px !important;
    border-color: #c9d9f4 !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%) !important;
    box-shadow: none !important;
  }
}

/* 2026-05-20 mobile reference repair: readable text + stable layout */
@media (max-width: 980px) {
  body[data-current-view="home"],
  body[data-current-view="home"] * {
    font-family: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
  }

  body[data-current-view="home"] .view.active {
    padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
  }

  body[data-current-view="home"] .mobile-reference-top {
    grid-template-columns: minmax(0, 1fr) max-content !important;
    padding: 0 10px 0 17px !important;
    margin: 0 -17px !important;
    overflow: visible !important;
  }

  body[data-current-view="home"] .mobile-reference-title {
    padding-left: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    color: #071733 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
  }

  body[data-current-view="home"] .mobile-reference-actions {
    flex: 0 0 auto !important;
    padding-right: 0 !important;
    gap: 8px !important;
  }

  body[data-current-view="home"] .mobile-reference-site-chip {
    width: 36px !important;
    min-width: 36px !important;
  }

  body[data-current-view="home"] .mobile-reference-bell {
    width: 26px !important;
    height: 28px !important;
    border-width: 3px !important;
  }

  body[data-current-view="home"] .mobile-reference-user {
    min-width: 72px !important;
    width: 72px !important;
    gap: 4px !important;
  }

  body[data-current-view="home"] .mobile-reference-avatar {
    width: 38px !important;
    height: 38px !important;
    border-width: 3px !important;
  }

  body[data-current-view="home"] .mobile-reference-user strong {
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  body[data-current-view="home"] .mobile-reference-search {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 115px !important;
    height: 52px !important;
    padding: 0 16px 0 58px !important;
    overflow: hidden !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body[data-current-view="home"] .mobile-reference-search::before {
    content: "" !important;
    position: absolute !important;
    left: 26px !important;
    top: 16px !important;
    width: 15px !important;
    height: 15px !important;
    border: 3px solid #1d2a41 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
  }

  body[data-current-view="home"] .mobile-reference-search::after {
    content: "" !important;
    position: absolute !important;
    left: 38px !important;
    top: 30px !important;
    width: 9px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #1d2a41 !important;
    transform: rotate(45deg) !important;
  }

  body[data-current-view="home"] .mobile-reference-search span {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    color: #1d2a41 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
  }

  body[data-current-view="home"] .mobile-reference-search span::before,
  body[data-current-view="home"] .mobile-reference-search span::after {
    display: none !important;
    content: none !important;
  }

  body[data-current-view="home"] .home-hero .home-hero-copy::after {
    display: none !important;
    content: none !important;
  }

  body[data-current-view="home"] .home-quick-card strong {
    font-weight: 750 !important;
  }

  body[data-current-view="home"] .mobile-reference-section-head h2,
  body[data-current-view="home"] .home-hero h2,
  body[data-current-view="home"] .mobile-reference-greeting h2 {
    font-weight: 750 !important;
  }

  body[data-current-view="home"] .nav-list-DISABLED {
    background: #ffffff !important;
    box-shadow: 0 -8px 22px rgba(30, 60, 120, 0.08) !important;
  }
}

/* 2026-05-20 effective final reference match */
@media (max-width: 980px) {
  body[data-current-view="home"] {
    background: #eef6ff !important;
  }

  body[data-current-view="home"] .view.active {
    padding: 0 17px calc(92px + env(safe-area-inset-bottom)) !important;
    background:
      radial-gradient(circle at 80% 8%, rgba(221, 232, 255, 0.95), transparent 32%),
      linear-gradient(180deg, #eef6ff 0%, #eef6ff 58%, #f7fbff 100%) !important;
  }

  body[data-current-view="home"] .mobile-home-shell {
    width: 100% !important;
    max-width: 356px !important;
    gap: 15px !important;
  }

  body[data-current-view="home"] .mobile-reference-top {
    width: calc(100% + 34px) !important;
    height: 79px !important;
    margin: 0 -17px !important;
    padding: 0 17px !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    background: #f8fbff !important;
    border-bottom: 1px solid #d1def1 !important;
  }

  body[data-current-view="home"] .mobile-reference-title {
    width: 150px !important;
    max-width: 150px !important;
    padding: 0 !important;
    white-space: normal !important;
    color: #081735 !important;
    font-size: 20px !important;
    line-height: 1.08 !important;
    font-weight: 850 !important;
  }

  body[data-current-view="home"] .mobile-reference-actions {
    gap: 9px !important;
  }

  body[data-current-view="home"] .mobile-reference-site-chip {
    width: 40px !important;
    min-width: 40px !important;
  }

  body[data-current-view="home"] .mobile-reference-user {
    width: 99px !important;
    min-width: 99px !important;
    height: 52px !important;
    gap: 7px !important;
  }

  body[data-current-view="home"] .mobile-reference-avatar {
    width: 45px !important;
    height: 45px !important;
  }

  body[data-current-view="home"] .mobile-reference-user strong {
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-greeting {
    min-height: 82px !important;
    margin: 18px 0 0 !important;
  }

  body[data-current-view="home"] .mobile-reference-greeting h2 {
    font-size: 23px !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .mobile-reference-greeting p {
    font-weight: 500 !important;
  }

  body[data-current-view="home"] .mobile-reference-search {
    justify-content: center !important;
    position: relative !important;
    padding: 0 0 0 26px !important;
  }

  body[data-current-view="home"] .mobile-reference-search::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 27px !important;
    top: 16px !important;
    width: 17px !important;
    height: 17px !important;
    border: 3px solid #20304b !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
  }

  body[data-current-view="home"] .mobile-reference-search::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 39px !important;
    top: 31px !important;
    width: 9px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: #20304b !important;
    transform: rotate(45deg) !important;
  }

  body[data-current-view="home"] .mobile-reference-search span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #667791 !important;
    font-weight: 750 !important;
  }

  body[data-current-view="home"] .mobile-reference-search span::before {
    display: none !important;
    content: none !important;
  }

  body[data-current-view="home"] .mobile-reference-search span::after {
    display: none !important;
    content: none !important;
  }

  body[data-current-view="home"] .home-hero {
    height: 290px !important;
    min-height: 290px !important;
    max-height: 290px !important;
    border-radius: 20px !important;
  }

  body[data-current-view="home"] .home-hero h2 {
    font-size: 30px !important;
    line-height: 1.02 !important;
    font-weight: 850 !important;
  }

  body[data-current-view="home"] .home-quick-card,
  body[data-current-view="home"] .home-quick-card.primary,
  body[data-current-view="home"] .home-quick-card.home-quick-card-compare,
  body[data-current-view="home"] .home-quick-card.home-quick-card-chat {
    height: 162px !important;
    min-height: 162px !important;
    border-radius: 15px !important;
  }

  body[data-current-view="home"] .mobile-reference-task-card,
  body[data-current-view="home"] .mobile-reference-progress-card {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    padding: 14px !important;
    border-radius: 17px !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid {
    gap: 8px 9px !important;
  }

  body[data-current-view="home"] .mobile-reference-task-grid div {
    min-height: 82px !important;
    padding: 10px 5px 8px !important;
  }

  body[data-current-view="home"] .mobile-reference-progress-action {
    min-height: 44px !important;
    margin-top: 15px !important;
    border-radius: 12px !important;
  }

  body[data-current-view="home"] .home-daily-ai,
  body[data-current-view="home"] .mobile-reference-materials,
  body[data-current-view="home"] .mobile-reference-upgrade,
  body[data-current-view="home"] .mobile-reference-recent {
    display: block !important;
    width: 100% !important;
    padding: 16px 14px !important;
    border: 1px solid #c9d9f4 !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .home-daily-ai-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 13px !important;
  }

  body[data-current-view="home"] .home-daily-action {
    width: 100% !important;
    min-height: 43px !important;
    border-radius: 999px !important;
    border: 1px solid #d7e1ef !important;
    background: #fff !important;
    color: #1b2a43 !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid article {
    position: relative !important;
    height: 110px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #e8eff9 !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid article::after {
    content: "" !important;
    position: absolute !important;
    inset: 35% 0 0 !important;
    background: linear-gradient(180deg, transparent, rgba(5, 16, 36, 0.7)) !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid strong,
  body[data-current-view="home"] .mobile-reference-material-grid span {
    position: absolute !important;
    left: 10px !important;
    z-index: 1 !important;
    color: #fff !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid strong {
    bottom: 25px !important;
    font-size: 13px !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid span {
    bottom: 9px !important;
    font-size: 13px !important;
  }

  body[data-current-view="home"] .mobile-reference-upgrade-main {
    display: grid !important;
    grid-template-columns: 118px minmax(0, 1fr) !important;
    gap: 15px !important;
  }

  body[data-current-view="home"] .mobile-reference-upgrade > button {
    width: 100% !important;
    min-height: 49px !important;
    margin-top: 15px !important;
    border-radius: 11px !important;
    background: #244fbd !important;
    color: #fff !important;
  }

  body[data-current-view="home"] .mobile-reference-recent-card {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: 92px !important;
    padding: 10px !important;
    border: 1px solid #dbe5f2 !important;
    border-radius: 15px !important;
    background: #fff !important;
  }

  body[data-current-view="home"] .mobile-reference-recent-card img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover !important;
    border-radius: 13px !important;
  }

  body[data-current-view="home"] .app-shell {
    display: flex !important;
    flex-direction: column !important;
  }

  body[data-current-view="home"] .main {
    order: 1 !important;
  }

  

  body[data-current-view="home"] .nav-list-DISABLED {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    height: calc(75px + env(safe-area-inset-bottom)) !important;
    width: 100vw !important;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #d7e1ef !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  

  

  

  

  body[data-current-view="home"] .mobile-home-shell > .mobile-reference-top {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
}

/* 2026-05-20 final non-cartoon reference override: keep this at EOF */
@media (max-width: 980px) {
  body[data-current-view="home"] {
    background: #eef4fb !important;
  }

  body[data-current-view="home"] .view.active {
    background: linear-gradient(180deg, #eef4fb 0%, #f6f9fd 58%, #fbfcfe 100%) !important;
  }

  body[data-current-view="home"] .mobile-reference-top {
    background: #f8fafc !important;
    border-bottom-color: #dbe4ef !important;
  }

  body[data-current-view="home"] .home-hero,
  body[data-current-view="home"] .mobile-reference-task-card,
  body[data-current-view="home"] .mobile-reference-progress-card,
  body[data-current-view="home"] .home-daily-ai,
  body[data-current-view="home"] .mobile-reference-materials,
  body[data-current-view="home"] .mobile-reference-upgrade,
  body[data-current-view="home"] .mobile-reference-recent {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: #d5e0ee !important;
    box-shadow: 0 10px 24px rgba(39, 59, 92, 0.05) !important;
  }

  body[data-current-view="home"] .home-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fd 54%, #edf4fc 100%) !important;
  }

  body[data-current-view="home"] .home-quick-card,
  body[data-current-view="home"] .home-quick-card.primary,
  body[data-current-view="home"] .home-quick-card.home-quick-card-compare,
  body[data-current-view="home"] .home-quick-card.home-quick-card-chat,
  body[data-current-view="home"] button[data-home-category="project_ad"],
  body[data-current-view="home"] button[data-home-category="real_comparison"],
  body[data-current-view="home"] button[data-home-category="chat_feedback"] {
    background-color: #f8fafc !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%) !important;
    border-color: #d5e0ee !important;
    box-shadow: 0 8px 18px rgba(39, 59, 92, 0.05) !important;
  }

  body[data-current-view="home"] .home-quick-card::before,
  body[data-current-view="home"] .home-quick-card::after {
    opacity: 0.08 !important;
    background: #8ea3bf !important;
  }

  body[data-current-view="home"] .home-quick-card span,
  body[data-current-view="home"] .home-quick-card.home-quick-card-compare span,
  body[data-current-view="home"] .home-quick-card.home-quick-card-chat span,
  body[data-current-view="home"] button[data-home-category] span {
    color: #315d8f !important;
    background: #eef4fb !important;
    border: 1px solid #d7e2ef !important;
  }

  body[data-current-view="home"] .home-quick-card strong,
  body[data-current-view="home"] .home-quick-card small,
  body[data-current-view="home"] button[data-home-category] strong,
  body[data-current-view="home"] button[data-home-category] small {
    color: #132033 !important;
  }

  body[data-current-view="home"] .home-quick-card small,
  body[data-current-view="home"] button[data-home-category] small {
    color: #637187 !important;
  }

  body[data-current-view="home"] .task-icon,
  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(1) .task-icon,
  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(2) .task-icon,
  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(3) .task-icon,
  body[data-current-view="home"] .mobile-reference-task-grid div:nth-child(4) .task-icon {
    background: linear-gradient(135deg, #b7c8e4, #6f8fbf) !important;
  }

  body[data-current-view="home"] .home-daily-label,
  body[data-current-view="home"] .home-daily-news article span,
  body[data-current-view="home"] .mobile-reference-upgrade-title span {
    color: #456b9a !important;
    background: #eef4fb !important;
    border: 1px solid #d7e2ef !important;
  }

  body[data-current-view="home"] .primary-button,
  body[data-current-view="home"] .mobile-reference-progress-action,
  body[data-current-view="home"] .mobile-reference-upgrade > button {
    background: #285aa6 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .home-daily-action {
    color: #28517f !important;
    background: #ffffff !important;
    border-color: #d7e2ef !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid article {
    background: #f3f7fc !important;
    border: 1px solid #d7e2ef !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid article::after {
    background: linear-gradient(180deg, rgba(19, 32, 51, 0), rgba(19, 32, 51, 0.48)) !important;
  }

  body[data-current-view="home"] .mobile-reference-material-grid strong,
  body[data-current-view="home"] .mobile-reference-material-grid span {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(19, 32, 51, 0.22) !important;
  }
}

#createView .category-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#createView .category-card {
  min-height: 86px;
  border-radius: 10px;
  padding: 12px;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon desc";
  align-items: center;
  align-content: center;
  gap: 4px 10px;
}

#createView .category-card .module-icon {
  grid-area: icon;
  width: 36px;
  height: 36px;
  font-size: 13px;
}

#createView .category-card strong {
  grid-area: title;
  font-size: 15px;
  line-height: 1.25;
}

#createView .category-card span {
  grid-area: desc;
  font-size: 12px;
  line-height: 1.3;
}

#createView .field-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#createView .field-group > label,
#createView .advanced-create-grid > label {
  min-width: 0;
}

#createView .project-field,
#createView .watermark-field {
  grid-template-columns: minmax(0, 1fr);
}

#createView .extra-text-field {
  display: grid;
  gap: 8px;
}

#createView .extra-text-field textarea {
  min-height: 150px;
  resize: vertical;
}

#createView #desiredEffect {
  min-height: 108px;
}

@media (max-width: 720px) {
  #createView .category-tabs,
  #createView .field-group,
  #createView .advanced-create-grid {
    grid-template-columns: 1fr;
  }

  #createView .category-card {
    min-height: 74px;
  }
}
