/* Desktop layout polish only. Keeps the current color/background system intact. */
@media (min-width: 981px) {
  body:not([data-current-view="home"]) .main {
    padding: 0 36px 40px !important;
  }

  body:not([data-current-view="home"]) .view.active {
    display: block !important;
    max-width: 1480px !important;
    margin: 0 auto !important;
  }

  body:not([data-current-view="home"]) .section-close-bar {
    height: 54px !important;
    margin: 0 0 14px !important;
    align-items: center !important;
  }

  body:not([data-current-view="home"]) .section-exit-title {
    min-height: 38px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }

  body:not([data-current-view="home"]) .subpage-hero {
    min-height: 132px !important;
    margin: 0 0 18px !important;
    padding: 24px 30px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 22px !important;
  }

  body:not([data-current-view="home"]) .subpage-hero span {
    margin-bottom: 8px !important;
    font-size: 13px !important;
  }

  body:not([data-current-view="home"]) .subpage-hero h2 {
    max-width: 760px !important;
    margin: 0 !important;
    font-size: 25px !important;
    line-height: 1.18 !important;
  }

  body:not([data-current-view="home"]) .subpage-hero p {
    max-width: 820px !important;
    margin: 9px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  body:not([data-current-view="home"]) .subpage-hero button {
    min-width: 116px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
  }

  body:not([data-current-view="home"]) .panel {
    padding: 20px !important;
    border-radius: 14px !important;
  }

  body:not([data-current-view="home"]) .panel + .panel,
  body:not([data-current-view="home"]) .workspace-grid + .workspace-grid,
  body:not([data-current-view="home"]) .panel + .workspace-grid {
    margin-top: 18px !important;
  }

  body:not([data-current-view="home"]) .panel-heading {
    min-height: 38px !important;
    margin: 0 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
  }

  body:not([data-current-view="home"]) .panel-heading h2 {
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
  }

  body:not([data-current-view="home"]) .panel-heading > span,
  body:not([data-current-view="home"]) .heading-actions span {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  body:not([data-current-view="home"]) .heading-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  body:not([data-current-view="home"]) .primary-button,
  body:not([data-current-view="home"]) .secondary-button,
  body:not([data-current-view="home"]) .danger-button {
    min-height: 40px !important;
    border-radius: 10px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  body:not([data-current-view="home"]) .icon-button {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
  }

  body:not([data-current-view="home"]) .workspace-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr) !important;
    gap: 18px !important;
    align-items: start !important;
  }

  body:not([data-current-view="home"]) .workspace-grid.slim {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
  }

  body[data-current-view="assets"] .workspace-grid.slim:first-of-type {
    grid-template-columns: minmax(360px, 0.76fr) minmax(0, 1.24fr) !important;
  }

  body[data-current-view="mine"] .workspace-grid.slim {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-current-view="mine"] #adminPanel {
    margin-top: 18px !important;
  }

  body[data-current-view="create"] #createView .workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.46fr) !important;
  }

  body[data-current-view="create"] #createView .result-panel.hidden-field {
    display: none !important;
  }

  body[data-current-view="create"] #createView .workspace-grid:has(.result-panel.hidden-field) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-current-view="create"] #createView .form-panel {
    max-width: none !important;
  }

  body[data-current-view="create"] #createView .form-stack {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body[data-current-view="create"] #createView .category-tabs,
  body[data-current-view="create"] #createView .advanced-create-fields,
  body[data-current-view="create"] #createView .form-actions {
    grid-column: 1 / -1 !important;
  }

  body[data-current-view="create"] #createView .form-stack > label {
    grid-column: span 4 !important;
    min-width: 0 !important;
  }

  body[data-current-view="create"] #createView .form-stack > label.extra-text-field {
    grid-column: span 8 !important;
  }

  body[data-current-view="create"] #createView .field-group {
    display: contents !important;
  }

  body[data-current-view="create"] #createView .comparison-field > label,
  body[data-current-view="create"] #createView .project-field > label,
  body[data-current-view="create"] #createView .image-effect-field > label {
    grid-column: span 4 !important;
    min-width: 0 !important;
  }

  body[data-current-view="create"] #createView label {
    display: grid !important;
    align-content: start !important;
    gap: 8px !important;
  }

  body[data-current-view="create"] #createView label > span {
    min-height: 16px !important;
    font-size: 13px !important;
  }

  body[data-current-view="create"] #createView input:not([type="file"]),
  body[data-current-view="create"] #createView select,
  body[data-current-view="create"] #createView textarea,
  body[data-current-view="create"] #createView .choice-trigger {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
  }

  body[data-current-view="create"] #createView textarea {
    min-height: 96px !important;
    resize: vertical !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 0 4px !important;
  }

  body[data-current-view="create"] #createView .category-card {
    min-height: 92px !important;
    padding: 16px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 4px !important;
    align-items: center !important;
    text-align: left !important;
  }

  body[data-current-view="create"] #createView .category-card .module-icon {
    grid-row: 1 / span 2 !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    font-size: 13px !important;
  }

  body[data-current-view="create"] #createView .category-card strong {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  body[data-current-view="create"] #createView .category-intro {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  body[data-current-view="create"] #createView .advanced-create-title {
    margin: 0 0 12px !important;
    font-size: 14px !important;
  }

  body[data-current-view="create"] #createView .advanced-create-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body[data-current-view="create"] #createView .advanced-create-grid > label,
  body[data-current-view="create"] #createView .advanced-create-grid .field-group > label {
    grid-column: span 4 !important;
  }

  body[data-current-view="create"] #createView .form-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-top: 2px !important;
  }

  body[data-current-view="create"] #createView #generateBtn {
    min-width: 168px !important;
  }

  body:not([data-current-view="home"]) .list-toolbar {
    margin: 0 0 16px !important;
  }

  body:not([data-current-view="home"]) .filter-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body:not([data-current-view="home"]) .filter-chip {
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }

  body[data-current-view="works"] .work-management-panel,
  body[data-current-view="tasks"] .task-management-panel {
    padding: 20px !important;
  }

  body[data-current-view="works"] .works-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 14px !important;
  }

  body[data-current-view="works"] .work-card,
  body[data-current-view="assets"] .asset-card,
  body[data-current-view="tasks"] .task-row {
    border-radius: 13px !important;
  }

  body[data-current-view="works"] .work-card {
    min-height: 168px !important;
    padding: 14px !important;
    display: grid !important;
    gap: 12px !important;
  }

  body[data-current-view="works"] .work-cover-button {
    min-height: 132px !important;
    border-radius: 11px !important;
  }

  body[data-current-view="works"] .card-body {
    display: grid !important;
    gap: 8px !important;
  }

  body[data-current-view="works"] .card-title {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  body[data-current-view="works"] .card-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body[data-current-view="tasks"] .task-list {
    display: grid !important;
    gap: 10px !important;
  }

  body[data-current-view="tasks"] .task-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 16px !important;
    align-items: center !important;
    padding: 14px 16px !important;
  }

  body[data-current-view="tasks"] .task-row-main {
    min-width: 0 !important;
    display: grid !important;
    gap: 8px !important;
  }

  body[data-current-view="tasks"] .task-row-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body[data-current-view="assets"] .asset-upload-panel .form-stack {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body[data-current-view="assets"] .asset-upload-panel .form-stack label,
  body[data-current-view="assets"] .asset-upload-panel .form-stack button {
    min-width: 0 !important;
  }

  body[data-current-view="assets"] .asset-upload-panel .form-stack label:nth-of-type(4),
  body[data-current-view="assets"] .asset-upload-panel .form-stack button {
    grid-column: 1 / -1 !important;
  }

  body[data-current-view="assets"] .material-search-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(170px, 0.8fr) auto !important;
    gap: 12px !important;
    align-items: end !important;
  }

  body[data-current-view="assets"] .material-search-tip {
    grid-column: 1 / -1 !important;
    margin: 0 !important;
    font-size: 12px !important;
  }

  body[data-current-view="assets"] .asset-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 12px !important;
  }

  body[data-current-view="assets"] .asset-section {
    margin-top: 14px !important;
  }

  body[data-current-view="assets"] .asset-subgrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 12px !important;
  }

  body[data-current-view="assets"] .asset-card {
    padding: 12px !important;
  }

  body[data-current-view="assets"] .asset-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body[data-current-view="assets"] #brandForm .two-col {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body[data-current-view="mine"] .mine-data-panel {
    margin-top: 18px !important;
  }

  body[data-current-view="mine"] .mine-data-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body[data-current-view="mine"] .mine-data-card {
    min-height: 108px !important;
    border-radius: 13px !important;
    padding: 16px !important;
    text-align: left !important;
  }

  body[data-current-view="mine"] .mine-data-card strong {
    margin-top: 8px !important;
    font-size: 28px !important;
    line-height: 1 !important;
  }

  body[data-current-view="mine"] #activationForm {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
  }

  body[data-current-view="mine"] #adminCustomerSummary,
  body[data-current-view="mine"] #adminAccountData {
    margin-top: 16px !important;
  }

  body[data-current-view="mine"] .admin-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body[data-current-view="mine"] .admin-stat-card {
    min-height: 92px !important;
    padding: 14px !important;
    border-radius: 12px !important;
  }

  body[data-current-view="mine"] .admin-channel-grid,
  body[data-current-view="mine"] .admin-account-toolbar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body[data-current-view="mine"] .admin-channel-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto !important;
    gap: 12px !important;
    align-items: center !important;
  }

  body[data-current-view="mine"] .admin-fold-panel {
    margin-top: 14px !important;
    border-radius: 13px !important;
  }

  body[data-current-view="mine"] .backend-preview-box {
    border-radius: 12px !important;
  }

  body[data-current-view="home"] .desktop-dashboard {
    padding: 0 34px 30px !important;
  }

  body[data-current-view="home"] .desktop-shell-top {
    margin: 0 -34px 24px !important;
    height: 64px !important;
  }

  body[data-current-view="home"] .desktop-hero {
    min-height: 156px !important;
    padding: 22px 30px !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
  }

  body[data-current-view="home"] .desktop-hero h2 {
    font-size: 30px !important;
  }

  body[data-current-view="home"] .desktop-scene-grid {
    gap: 16px !important;
    margin: 18px 0 !important;
  }

  body[data-current-view="home"] .desktop-scene-card {
    min-height: 136px !important;
    padding: 18px !important;
    grid-template-columns: minmax(0, 1fr) 112px !important;
  }

  body[data-current-view="home"] .desktop-scene-card i {
    width: 112px !important;
    height: 88px !important;
  }

  body[data-current-view="home"] .desktop-dashboard-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.82fr) minmax(0, 1.35fr) !important;
    gap: 14px !important;
  }

  body[data-current-view="home"] .desktop-panel {
    padding: 16px !important;
    border-radius: 13px !important;
  }

  body[data-current-view="home"] .desktop-material-strip {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)) !important;
    gap: 10px !important;
  }

  body[data-current-view="home"] .desktop-material-strip button {
    min-height: 104px !important;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  body:not([data-current-view="home"]) .main {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .comparison-field > label,
  body[data-current-view="create"] #createView .project-field > label,
  body[data-current-view="create"] #createView .image-effect-field > label,
  body[data-current-view="create"] #createView .advanced-create-grid > label,
  body[data-current-view="create"] #createView .advanced-create-grid .field-group > label {
    grid-column: span 6 !important;
  }

  body[data-current-view="mine"] .admin-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Second pass: stronger alignment rhythm for desktop sections and function blocks. */
@media (min-width: 981px) {
  body:not([data-current-view="home"]) .view.active {
    max-width: 1360px !important;
  }

  body:not([data-current-view="home"]) .subpage-hero,
  body:not([data-current-view="home"]) .panel,
  body:not([data-current-view="home"]) .workspace-grid {
    box-sizing: border-box !important;
    width: 100% !important;
  }

  body:not([data-current-view="home"]) .subpage-hero {
    min-height: 124px !important;
    padding: 22px 28px !important;
  }

  body:not([data-current-view="home"]) .panel {
    padding: 18px !important;
  }

  body:not([data-current-view="home"]) .panel-heading {
    margin-bottom: 14px !important;
    padding-bottom: 0 !important;
  }

  body:not([data-current-view="home"]) .panel-heading h2,
  body:not([data-current-view="home"]) .subpage-hero h2,
  body:not([data-current-view="home"]) .card-title {
    letter-spacing: 0 !important;
  }

  body:not([data-current-view="home"]) .form-stack,
  body:not([data-current-view="home"]) .backend-preview-box,
  body:not([data-current-view="home"]) .material-search-card,
  body:not([data-current-view="home"]) .admin-section-panel {
    box-sizing: border-box !important;
  }

  body:not([data-current-view="home"]) .form-stack label,
  body:not([data-current-view="home"]) .backend-preview-box label,
  body:not([data-current-view="home"]) .material-search-card label {
    min-width: 0 !important;
  }

  body:not([data-current-view="home"]) input:not([type="checkbox"]):not([type="radio"]),
  body:not([data-current-view="home"]) select {
    min-height: 42px !important;
  }

  body:not([data-current-view="home"]) textarea {
    min-height: 92px !important;
  }

  body:not([data-current-view="home"]) .primary-button,
  body:not([data-current-view="home"]) .secondary-button,
  body:not([data-current-view="home"]) .danger-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  body:not([data-current-view="home"]) .workspace-grid,
  body:not([data-current-view="home"]) .workspace-grid.slim {
    gap: 16px !important;
  }

  body[data-current-view="create"] #createView .form-stack {
    gap: 12px !important;
    grid-auto-flow: row dense !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .comparison-field > label,
  body[data-current-view="create"] #createView .project-field > label,
  body[data-current-view="create"] #createView .image-effect-field > label,
  body[data-current-view="create"] #createView .advanced-create-grid > label,
  body[data-current-view="create"] #createView .advanced-create-grid .field-group > label {
    min-height: 92px !important;
  }

  body[data-current-view="create"] #createView .form-stack > label.extra-text-field,
  body[data-current-view="create"] #createView .comparison-field > label:has(textarea) {
    min-height: 140px !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    gap: 10px !important;
  }

  body[data-current-view="create"] #createView .category-card {
    min-height: 86px !important;
    padding: 14px !important;
  }

  body[data-current-view="create"] #createView .category-card strong,
  body[data-current-view="create"] #createView .category-card span {
    min-width: 0 !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields {
    margin-top: 2px !important;
  }

  body[data-current-view="create"] #createView .advanced-create-grid {
    gap: 12px !important;
    grid-auto-flow: row dense !important;
  }

  body[data-current-view="create"] #createView .form-actions {
    min-height: 44px !important;
    align-items: center !important;
  }

  body[data-current-view="works"] .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 12px !important;
  }

  body[data-current-view="works"] .work-card {
    min-height: 100% !important;
    align-content: start !important;
  }

  body[data-current-view="works"] .work-cover-button {
    aspect-ratio: 4 / 3 !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  body[data-current-view="works"] .work-card-topline,
  body[data-current-view="tasks"] .task-row-topline {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  body[data-current-view="works"] .card-actions,
  body[data-current-view="assets"] .asset-actions {
    min-height: 40px !important;
    align-items: center !important;
  }

  body[data-current-view="tasks"] .task-row {
    min-height: 92px !important;
    padding: 14px !important;
  }

  body[data-current-view="tasks"] .task-progress-wrap {
    width: 100% !important;
  }

  body[data-current-view="tasks"] .task-note,
  body[data-current-view="tasks"] .card-meta {
    margin: 0 !important;
  }

  body[data-current-view="assets"] .workspace-grid.slim:first-of-type {
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr) !important;
  }

  body[data-current-view="assets"] .asset-upload-panel,
  body[data-current-view="assets"] .asset-framework-panel {
    min-height: 420px !important;
  }

  body[data-current-view="assets"] .material-search-card {
    margin-bottom: 12px !important;
  }

  body[data-current-view="assets"] .asset-grid,
  body[data-current-view="assets"] .asset-subgrid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 10px !important;
  }

  body[data-current-view="assets"] .asset-card {
    min-height: 168px !important;
    display: grid !important;
    align-content: start !important;
    gap: 10px !important;
  }

  body[data-current-view="assets"] .asset-section-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 34px !important;
  }

  body[data-current-view="mine"] .mine-data-grid {
    gap: 10px !important;
  }

  body[data-current-view="mine"] .mine-data-card {
    min-height: 96px !important;
    display: grid !important;
    align-content: center !important;
    gap: 6px !important;
  }

  body[data-current-view="mine"] #adminPanel .panel-heading {
    align-items: flex-start !important;
  }

  body[data-current-view="mine"] .admin-section-panel {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  body[data-current-view="mine"] .admin-section-heading {
    min-height: 40px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
  }

  body[data-current-view="mine"] .admin-stat-grid {
    gap: 8px !important;
  }

  body[data-current-view="mine"] .admin-stat-card {
    min-height: 86px !important;
    display: grid !important;
    align-content: center !important;
  }

  body[data-current-view="mine"] .admin-account-toolbar {
    align-items: end !important;
  }

  body[data-current-view="home"] .desktop-dashboard {
    max-width: 1420px !important;
    margin: 0 auto !important;
  }

  body[data-current-view="home"] .desktop-hero,
  body[data-current-view="home"] .desktop-scene-card,
  body[data-current-view="home"] .desktop-panel {
    box-sizing: border-box !important;
  }

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

  body[data-current-view="home"] .desktop-scene-card {
    align-items: center !important;
  }

  body[data-current-view="home"] .desktop-dashboard-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }

  body[data-current-view="home"] .desktop-trend {
    grid-column: span 4 !important;
  }

  body[data-current-view="home"] .desktop-status {
    grid-column: span 3 !important;
  }

  body[data-current-view="home"] .desktop-material {
    grid-column: span 5 !important;
  }

  body[data-current-view="home"] .desktop-news-panel {
    grid-column: 1 / -1 !important;
  }

  body[data-current-view="home"] .desktop-panel-head {
    min-height: 34px !important;
  }

  body[data-current-view="home"] .desktop-work-overview,
  body[data-current-view="home"] .desktop-metrics,
  body[data-current-view="home"] .desktop-status > div {
    gap: 10px !important;
  }

  body[data-current-view="home"] .desktop-status button,
  body[data-current-view="home"] .desktop-work-overview button,
  body[data-current-view="home"] .desktop-metrics button {
    min-height: 82px !important;
    box-sizing: border-box !important;
  }

  body[data-current-view="home"] .desktop-news-layout {
    display: grid !important;
    grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
}

@media (min-width: 1281px) {
  body[data-current-view="create"] #createView .form-stack > label.extra-text-field {
    grid-column: span 8 !important;
  }

  body[data-current-view="create"] #createView .chat-effect-image-field {
    grid-column: span 4 !important;
  }
}

/* Control-center layout: clearer functional blocks while preserving the existing palette. */
@media (min-width: 981px) {
  body:not([data-current-view="home"]) .view.active {
    --desk-gap: 16px;
    --desk-card-radius: 14px;
    --desk-field-height: 44px;
    --desk-panel-pad: 18px;
  }

  body:not([data-current-view="home"]) .topbar {
    min-height: 62px !important;
  }

  body:not([data-current-view="home"]) .account-actions {
    gap: 10px !important;
  }

  body:not([data-current-view="home"]) .subpage-hero {
    border-radius: var(--desk-card-radius) !important;
  }

  body:not([data-current-view="home"]) .subpage-hero > div {
    min-width: 0 !important;
  }

  body:not([data-current-view="home"]) .subpage-hero h2,
  body:not([data-current-view="home"]) .subpage-hero p {
    overflow-wrap: anywhere !important;
  }

  body:not([data-current-view="home"]) .panel {
    padding: var(--desk-panel-pad) !important;
  }

  body:not([data-current-view="home"]) .panel-heading {
    min-height: 42px !important;
  }

  body:not([data-current-view="home"]) .panel-heading h2 {
    font-size: 18px !important;
  }

  body:not([data-current-view="home"]) .panel-heading > span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
  }

  body:not([data-current-view="home"]) .list-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  body:not([data-current-view="home"]) .filter-tabs {
    width: 100% !important;
  }

  body:not([data-current-view="home"]) input:not([type="checkbox"]):not([type="radio"]),
  body:not([data-current-view="home"]) select,
  body:not([data-current-view="home"]) .choice-trigger {
    min-height: var(--desk-field-height) !important;
    box-sizing: border-box !important;
  }

  body:not([data-current-view="home"]) label > span,
  body:not([data-current-view="home"]) .field-group > label > span {
    display: block !important;
    margin-bottom: 0 !important;
  }

  body[data-current-view="home"] .desktop-dashboard {
    display: grid !important;
    grid-template-rows: auto auto auto 1fr !important;
    gap: 0 !important;
  }

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

  body[data-current-view="home"] .desktop-scene-grid {
    align-items: stretch !important;
  }

  body[data-current-view="home"] .desktop-scene-card {
    grid-template-columns: minmax(0, 1fr) 96px !important;
    grid-template-rows: auto auto auto 1fr !important;
    gap: 4px 14px !important;
  }

  body[data-current-view="home"] .desktop-scene-card span,
  body[data-current-view="home"] .desktop-scene-card h3,
  body[data-current-view="home"] .desktop-scene-card p,
  body[data-current-view="home"] .desktop-scene-card strong {
    grid-column: 1 !important;
  }

  body[data-current-view="home"] .desktop-scene-card i {
    grid-column: 2 !important;
    grid-row: 1 / -1 !important;
    align-self: center !important;
  }

  body[data-current-view="home"] .desktop-dashboard-grid {
    grid-auto-rows: minmax(150px, auto) !important;
  }

  body[data-current-view="home"] .desktop-panel {
    display: grid !important;
    align-content: start !important;
    gap: 12px !important;
  }

  body[data-current-view="home"] .desktop-work-overview {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body[data-current-view="home"] .desktop-work-overview button,
  body[data-current-view="home"] .desktop-metrics button,
  body[data-current-view="home"] .desktop-status button {
    display: grid !important;
    align-content: center !important;
    gap: 5px !important;
    text-align: left !important;
  }

  body[data-current-view="home"] .desktop-material-strip button {
    display: grid !important;
    align-content: end !important;
    text-align: left !important;
  }

  body[data-current-view="home"] .desktop-news-feed-head,
  body[data-current-view="home"] .desktop-news-card,
  body[data-current-view="home"] .ref-news-card {
    align-items: start !important;
  }

  body[data-current-view="create"] #createView .workspace-grid {
    align-items: start !important;
  }

  body[data-current-view="create"] #createView .form-panel {
    padding: 20px !important;
  }

  body[data-current-view="create"] #createView .form-stack {
    position: relative !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-auto-flow: row dense !important;
    align-items: stretch !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    padding-bottom: 4px !important;
  }

  body[data-current-view="create"] #createView .category-card {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    min-height: 94px !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .field-group > label,
  body[data-current-view="create"] #createView .advanced-create-grid > label {
    box-sizing: border-box !important;
    padding: 12px !important;
    border-radius: 12px !important;
    justify-content: start !important;
  }

  body[data-current-view="create"] #createView label > span {
    min-height: 17px !important;
  }

  body[data-current-view="create"] #createView #projectNameInput,
  body[data-current-view="create"] #createView #adStyle,
  body[data-current-view="create"] #createView #count {
    min-height: 46px !important;
  }

  body[data-current-view="create"] #createView .extra-text-field {
    grid-column: span 8 !important;
  }

  body[data-current-view="create"] #createView .chat-effect-image-field {
    grid-column: span 4 !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields {
    display: grid !important;
    gap: 12px !important;
  }

  body[data-current-view="create"] #createView .advanced-create-title {
    min-height: 24px !important;
  }

  body[data-current-view="create"] #createView .form-actions {
    padding-top: 2px !important;
  }

  body[data-current-view="works"] .work-management-panel,
  body[data-current-view="tasks"] .task-management-panel,
  body[data-current-view="assets"] .asset-framework-panel,
  body[data-current-view="assets"] .asset-upload-panel,
  body[data-current-view="mine"] .mine-data-panel,
  body[data-current-view="mine"] #adminPanel {
    display: grid !important;
    align-content: start !important;
  }

  body[data-current-view="works"] .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)) !important;
    align-items: stretch !important;
  }

  body[data-current-view="works"] .work-card {
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }

  body[data-current-view="works"] .work-card .card-body {
    min-height: 104px !important;
    align-content: start !important;
  }

  body[data-current-view="works"] .status-pill,
  body[data-current-view="tasks"] .status-pill {
    justify-self: start !important;
  }

  body[data-current-view="tasks"] .task-row {
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto) !important;
  }

  body[data-current-view="tasks"] .task-row-topline {
    min-height: 24px !important;
  }

  body[data-current-view="tasks"] .task-row-actions .primary-button,
  body[data-current-view="tasks"] .task-row-actions .secondary-button,
  body[data-current-view="tasks"] .task-row-actions .danger-button {
    min-width: 76px !important;
  }

  body[data-current-view="assets"] .workspace-grid.slim {
    align-items: start !important;
  }

  body[data-current-view="assets"] .material-search-card {
    padding: 14px !important;
  }

  body[data-current-view="assets"] .material-search-actions {
    display: flex !important;
    align-items: end !important;
  }

  body[data-current-view="assets"] .material-search-actions .secondary-button {
    min-width: 96px !important;
  }

  body[data-current-view="assets"] .asset-upload-panel .form-stack {
    align-items: stretch !important;
  }

  body[data-current-view="assets"] .asset-upload-panel .form-stack label {
    display: grid !important;
    gap: 8px !important;
  }

  body[data-current-view="assets"] .asset-card .card-body {
    display: grid !important;
    gap: 7px !important;
  }

  body[data-current-view="assets"] .asset-title-button {
    min-height: 38px !important;
  }

  body[data-current-view="assets"] .asset-framework {
    min-height: 28px !important;
  }

  body[data-current-view="mine"] .mine-data-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body[data-current-view="mine"] .mine-data-card {
    justify-items: start !important;
  }

  body[data-current-view="mine"] #activationForm input {
    min-height: 44px !important;
  }

  body[data-current-view="mine"] .admin-fold-panel > summary {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
  }

  body[data-current-view="mine"] .admin-channel-grid label,
  body[data-current-view="mine"] .admin-account-toolbar label {
    display: grid !important;
    gap: 8px !important;
  }

  body[data-current-view="mine"] .admin-channel-actions {
    padding-top: 2px !important;
  }
}

@media (min-width: 1440px) {
  body[data-current-view="works"] .works-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body[data-current-view="assets"] .asset-grid,
  body[data-current-view="assets"] .asset-subgrid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  }
}

/* Productized workbench pass: complete navigation and clearer module hierarchy. */
@media (min-width: 981px) {
  .nav-list-DISABLED .nav-item-DISABLED[data-view="assets"],
  .nav-list-DISABLED .nav-item-DISABLED[data-view="manual"] {
    display: flex !important;
  }

  .nav-list-DISABLED {
    align-content: start !important;
  }

  .nav-item-DISABLED span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body:not([data-current-view="home"]) .view.active {
    padding-bottom: 18px !important;
  }

  body:not([data-current-view="home"]) .section-close-bar {
    position: relative !important;
  }

  body:not([data-current-view="home"]) .section-close-bar::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 1px !important;
    background: rgba(198, 215, 238, 0.72) !important;
  }

  body:not([data-current-view="home"]) .subpage-hero {
    overflow: hidden !important;
  }

  body:not([data-current-view="home"]) .subpage-hero::after {
    content: "" !important;
    width: 78px !important;
    height: 78px !important;
    border-radius: 18px !important;
    justify-self: end !important;
    opacity: 0.18 !important;
    background: currentColor !important;
  }

  body:not([data-current-view="home"]) .subpage-hero > button + * {
    display: none !important;
  }

  body:not([data-current-view="home"]) .panel-heading {
    border-bottom: 1px solid rgba(206, 221, 241, 0.68) !important;
    padding-bottom: 12px !important;
  }

  body:not([data-current-view="home"]) .panel-heading .heading-actions {
    margin-left: auto !important;
  }

  body:not([data-current-view="home"]) .filter-tabs {
    padding: 4px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.42) !important;
  }

  body:not([data-current-view="home"]) .filter-chip {
    flex: 0 0 auto !important;
  }

  body[data-current-view="home"] .desktop-dashboard {
    grid-template-rows: auto auto auto auto !important;
  }

  body[data-current-view="home"] .desktop-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
  }

  body[data-current-view="home"] .desktop-scene-card strong {
    align-self: end !important;
  }

  body[data-current-view="home"] .desktop-dashboard-grid {
    grid-auto-flow: dense !important;
  }

  body[data-current-view="home"] .desktop-panel {
    min-height: 100% !important;
  }

  body[data-current-view="home"] .desktop-trend,
  body[data-current-view="home"] .desktop-status,
  body[data-current-view="home"] .desktop-material {
    min-height: 230px !important;
  }

  body[data-current-view="home"] .desktop-news-panel {
    min-height: 230px !important;
  }

  body[data-current-view="home"] .desktop-news-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-card:first-child {
    grid-column: span 2 !important;
  }

  body[data-current-view="create"] #createView .panel-heading {
    position: relative !important;
  }

  body[data-current-view="create"] #createView .panel-heading::after {
    content: "1 选择场景   2 填写内容   3 设置素材   4 生成" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: -34px !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    color: #64748b !important;
    background: rgba(255, 255, 255, 0.68) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    margin-top: 32px !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .field-group > label,
  body[data-current-view="create"] #createView .advanced-create-grid > label {
    border-style: solid !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields {
    position: relative !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields::before {
    content: "素材、水印、尺寸等低频设置集中在这里" !important;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  body[data-current-view="create"] #createView .form-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 3 !important;
    margin: 2px -4px -4px !important;
    padding: 12px 4px 4px !important;
    background: linear-gradient(180deg, rgba(246,249,255,0), rgba(246,249,255,0.96) 30%, rgba(246,249,255,0.96)) !important;
  }

  body[data-current-view="works"] .work-management-panel .panel-heading,
  body[data-current-view="tasks"] .task-management-panel .panel-heading,
  body[data-current-view="assets"] .asset-framework-panel .panel-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body[data-current-view="works"] .list-toolbar,
  body[data-current-view="tasks"] .list-toolbar,
  body[data-current-view="assets"] .asset-framework-panel .list-toolbar {
    margin-top: -4px !important;
  }

  body[data-current-view="works"] .works-grid,
  body[data-current-view="assets"] .asset-grid,
  body[data-current-view="assets"] .asset-subgrid {
    padding-top: 2px !important;
  }

  body[data-current-view="works"] .work-card,
  body[data-current-view="assets"] .asset-card,
  body[data-current-view="tasks"] .task-row {
    transition: transform 160ms ease, box-shadow 160ms ease !important;
  }

  body[data-current-view="works"] .work-card:hover,
  body[data-current-view="assets"] .asset-card:hover,
  body[data-current-view="tasks"] .task-row:hover {
    transform: translateY(-1px) !important;
  }

  body[data-current-view="tasks"] .task-row {
    grid-template-columns: minmax(0, 1fr) 260px !important;
  }

  body[data-current-view="tasks"] .task-row-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 180px !important;
    gap: 12px !important;
    align-items: center !important;
  }

  body[data-current-view="tasks"] .task-progress-wrap,
  body[data-current-view="tasks"] .task-note,
  body[data-current-view="tasks"] .error-line {
    grid-column: 1 / -1 !important;
  }

  body[data-current-view="assets"] .asset-upload-panel {
    position: sticky !important;
    top: 78px !important;
  }

  body[data-current-view="assets"] #brandForm,
  body[data-current-view="assets"] #customerServiceAvatarForm {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body[data-current-view="assets"] #brandForm > label:first-child,
  body[data-current-view="assets"] #brandForm > label:nth-child(2),
  body[data-current-view="assets"] #brandForm > .two-col,
  body[data-current-view="assets"] #brandForm > button,
  body[data-current-view="assets"] #customerServiceAvatarForm > label,
  body[data-current-view="assets"] #customerServiceAvatarForm > button {
    grid-column: 1 / -1 !important;
  }

  body[data-current-view="mine"] .account-panel {
    display: grid !important;
    gap: 10px !important;
  }

  body[data-current-view="mine"] .mine-data-panel {
    order: -1 !important;
  }

  body[data-current-view="mine"] #adminPanel {
    margin-bottom: 28px !important;
  }

  body[data-current-view="mine"] .admin-account-list-panel {
    min-height: 180px !important;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  body[data-current-view="tasks"] .task-row,
  body[data-current-view="tasks"] .task-row-main {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-current-view="assets"] .asset-upload-panel {
    position: static !important;
  }
}

/* Unified desktop shell: prevent home/create from switching outer layout. */
@media (min-width: 981px) {
  body[data-current-view="home"],
  body:not([data-current-view="home"]) {
    margin: 0 !important;
    min-width: 1180px !important;
    overflow-x: auto !important;
    background: #f6f9ff !important;
  }

  body[data-current-view="home"] .app-shell,
  body:not([data-current-view="home"]) .app-shell {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: #f6f9ff !important;
  }

  body[data-current-view="home"] .main,
  body:not([data-current-view="home"]) .main {
    display: block !important;
    width: calc(100vw - 258px) !important;
    min-width: 922px !important;
    max-width: none !important;
    min-height: 100vh !important;
    margin: 0 0 0 258px !important;
    padding: 0 42px 36px !important;
    overflow: visible !important;
    background: #f6f9ff !important;
  }

  body[data-current-view="home"] .topbar,
  body:not([data-current-view="home"]) .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 12 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 68px !important;
    margin: 0 -42px 24px !important;
    padding: 0 36px !important;
    border: 0 !important;
    border-bottom: 1px solid #e5edf8 !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,0.9) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px) !important;
  }

  body[data-current-view="home"] .topbar h1,
  body:not([data-current-view="home"]) .topbar h1 {
    margin: 0 !important;
    color: #111827 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
  }

  body[data-current-view="home"] .view.active,
  body:not([data-current-view="home"]) .view.active {
    display: block !important;
    width: 100% !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body[data-current-view="home"] #homeView,
  body[data-current-view="home"] #homeView.active {
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body[data-current-view="home"] .desktop-dashboard {
    display: block !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 0 30px !important;
    min-height: auto !important;
  }

  body[data-current-view="home"] .desktop-shell-top {
    display: none !important;
  }

  body[data-current-view="home"] .desktop-hero,
  body[data-current-view="home"] .desktop-scene-grid,
  body[data-current-view="home"] .desktop-dashboard-grid {
    width: 100% !important;
  }

  body[data-current-view="home"] .desktop-hero {
    margin-top: 0 !important;
  }

  body[data-current-view="home"] .topbar .account-actions {
    display: flex !important;
  }

  
}

/* Desktop create scene selector: compact workbench tabs. */
@media (min-width: 981px) {
  body[data-current-view="create"] #createView .form-stack {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    align-items: start !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 8px !important;
    margin: 0 0 4px !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    align-self: stretch !important;
    position: static !important;
    top: auto !important;
    padding: 6px !important;
    border: 1px solid rgba(203, 213, 225, 0.82) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.64) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 28px rgba(15, 23, 42, 0.06) !important;
    backdrop-filter: blur(16px) !important;
  }

  body[data-current-view="create"] #createView .category-card {
    min-height: 62px !important;
    padding: 9px 11px !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 9px !important;
    row-gap: 2px !important;
    align-items: center !important;
    text-align: left !important;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #334155 !important;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease !important;
  }

  body[data-current-view="create"] #createView .category-card:hover {
    background: rgba(255, 255, 255, 0.72) !important;
    transform: translateY(-1px) !important;
  }

  body[data-current-view="create"] #createView .category-card.active {
    border-color: rgba(255, 255, 255, 0.95) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }

  body[data-current-view="create"] #createView .category-card .module-icon,
  body[data-current-view="create"] #createView .module-icon {
    grid-row: 1 / span 2 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    border-radius: 9px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.34) !important;
  }

  body[data-current-view="create"] #createView .category-card strong {
    min-width: 0 !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 13px !important;
    line-height: 1.18 !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body[data-current-view="create"] #createView .category-intro {
    min-width: 0 !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body[data-current-view="create"] #createView .category-card::before,
  body[data-current-view="create"] #createView .category-card::after {
    display: none !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .comparison-field > label,
  body[data-current-view="create"] #createView .project-field > label,
  body[data-current-view="create"] #createView .image-effect-field > label {
    grid-column: span 4 !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .field-group > label,
  body[data-current-view="create"] #createView .advanced-create-fields,
  body[data-current-view="create"] #createView .form-actions {
    transform: translateX(0) !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .field-group > label,
  body[data-current-view="create"] #createView .advanced-create-fields,
  body[data-current-view="create"] #createView .form-actions {
    grid-column-start: auto !important;
  }

  body[data-current-view="create"] #createView .form-stack > label:not(.extra-text-field):not(.chat-effect-image-field),
  body[data-current-view="create"] #createView .field-group > label {
    grid-column: span 4 !important;
  }

  body[data-current-view="create"] #createView .extra-text-field {
    grid-column: span 8 !important;
  }

  body[data-current-view="create"] #createView .chat-effect-image-field {
    grid-column: span 4 !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields,
  body[data-current-view="create"] #createView .form-actions {
    grid-column: 1 / -1 !important;
  }
}

/* Desktop create form: parameter boxes align in vertical columns. */
@media (min-width: 981px) {
  body[data-current-view="create"] #createView .form-stack {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
    grid-auto-flow: row dense !important;
  }

  body[data-current-view="create"] #createView .category-tabs,
  body[data-current-view="create"] #createView .advanced-create-fields,
  body[data-current-view="create"] #createView .form-actions {
    grid-column: 1 / -1 !important;
  }

  body[data-current-view="create"] #createView .field-group {
    display: contents !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .project-field > label,
  body[data-current-view="create"] #createView .comparison-field > label,
  body[data-current-view="create"] #createView .image-effect-field > label,
  body[data-current-view="create"] #createView .chat-effect-image-field {
    grid-column: span 4 !important;
    min-height: 88px !important;
    margin: 0 !important;
    padding: 11px !important;
    display: grid !important;
    grid-template-rows: auto minmax(42px, auto) auto !important;
    align-content: start !important;
    gap: 7px !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 12px !important;
    background: #fafdff !important;
  }

  body[data-current-view="create"] #createView .extra-text-field,
  body[data-current-view="create"] #createView .comparison-field > label:has(textarea) {
    grid-column: span 8 !important;
    min-height: 128px !important;
  }

  body[data-current-view="create"] #createView label > span,
  body[data-current-view="create"] #createView .advanced-create-title {
    min-height: 16px !important;
    margin: 0 !important;
    color: #40516b !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
  }

  body[data-current-view="create"] #createView input:not([type="file"]),
  body[data-current-view="create"] #createView select,
  body[data-current-view="create"] #createView textarea,
  body[data-current-view="create"] #createView .choice-trigger {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    align-self: stretch !important;
  }

  body[data-current-view="create"] #createView textarea {
    min-height: 82px !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields {
    display: grid !important;
    gap: 10px !important;
    margin-top: 0 !important;
    padding: 14px !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 12px !important;
    background: #f7fbff !important;
  }

  body[data-current-view="create"] #createView .advanced-create-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  body[data-current-view="create"] #createView .advanced-create-grid > label,
  body[data-current-view="create"] #createView .advanced-create-grid .field-group > label {
    grid-column: span 4 !important;
    min-height: 88px !important;
    display: grid !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 11px !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
  }
}

/* Desktop create selector final sizing: smaller, cleaner segmented control. */
@media (min-width: 981px) {
  body[data-current-view="create"] #createView .form-stack {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
    align-items: start !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    max-width: none !important;
    width: auto !important;
    justify-self: start !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    margin: -8px 0 0 !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    align-self: start !important;
    position: static !important;
    top: auto !important;
    min-height: 24px !important;
  }

  body[data-current-view="create"] #createView .form-panel {
    padding-top: 14px !important;
  }

  body[data-current-view="create"] #createView .panel-heading {
    margin-bottom: 10px !important;
  }

  body[data-current-view="create"] #createView .panel-heading::after {
    display: none !important;
  }

  body[data-current-view="create"] #createView .category-card {
    width: auto !important;
    min-height: 22px !important;
    padding: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    column-gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    place-items: center start !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none !important;
  }

  body[data-current-view="create"] #createView .category-card:hover {
    background: transparent !important;
    transform: none !important;
  }

  body[data-current-view="create"] #createView .category-card.active {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .category-card .module-icon,
  body[data-current-view="create"] #createView .module-icon {
    display: none !important;
  }

  body[data-current-view="create"] #createView .category-card strong {
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-align: left !important;
    color: #667085 !important;
  }

  body[data-current-view="create"] #createView .category-card.active strong {
    color: #0f172a !important;
  }

  body[data-current-view="create"] #createView .category-card.active strong::before {
    display: none !important;
  }

  body[data-current-view="create"] #createView .category-card.active strong::after {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    margin-top: 4px !important;
    border-radius: 999px !important;
    background: #2f6df6 !important;
  }

  body[data-current-view="create"] #createView .category-tabs,
  body[data-current-view="create"] #createView .category-tabs *,
  body[data-current-view="create"] #createView .category-card,
  body[data-current-view="create"] #createView .category-card.active {
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .category-intro {
    display: none !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .project-field > label,
  body[data-current-view="create"] #createView .comparison-field > label,
  body[data-current-view="create"] #createView .image-effect-field > label,
  body[data-current-view="create"] #createView .chat-effect-image-field {
    grid-column: span 4 !important;
  }

  body[data-current-view="create"] #createView .extra-text-field,
  body[data-current-view="create"] #createView .comparison-field > label:has(textarea) {
    grid-column: span 8 !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields,
  body[data-current-view="create"] #createView .form-actions {
    grid-column: 1 / -1 !important;
  }
}

/* Desktop create alignment: embed the create form into the page shell. */
@media (min-width: 981px) {
  body[data-current-view="create"] #createView {
    padding-left: 0 !important;
    padding-right: 22px !important;
  }

  body[data-current-view="create"] #createView .workspace-grid {
    grid-template-columns: minmax(660px, 672px) minmax(320px, 360px) !important;
    gap: 22px !important;
    align-items: start !important;
  }

  body[data-current-view="create"] #createView .form-panel {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .form-panel::before,
  body[data-current-view="create"] #createView .form-panel::after {
    display: none !important;
  }

  body[data-current-view="create"] #createView .panel-heading {
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
  }

  body[data-current-view="create"] #createView .form-stack {
    width: 100% !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    margin: 0 0 10px !important;
    padding: 0 !important;
    justify-self: start !important;
    align-self: start !important;
  }

  body[data-current-view="create"] #createView .category-card {
    min-height: 20px !important;
  }

  body[data-current-view="create"] #createView .form-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    order: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 7px !important;
  }

  body[data-current-view="create"] #createView .category-card {
    width: auto !important;
    min-height: 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
    place-items: center start !important;
  }

  body[data-current-view="create"] #createView .category-card:hover,
  body[data-current-view="create"] #createView .category-card.active {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body[data-current-view="create"] #createView .category-card::before,
  body[data-current-view="create"] #createView .category-card::after,
  body[data-current-view="create"] #createView .category-intro,
  body[data-current-view="create"] #createView .module-icon {
    display: none !important;
  }

  body[data-current-view="create"] #createView .category-card strong {
    display: inline-block !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .field-group,
  body[data-current-view="create"] #createView .field-group > label,
  body[data-current-view="create"] #createView .chat-effect-image-field {
    width: 100% !important;
    max-width: 444px !important;
    grid-column: auto !important;
  }

  body[data-current-view="create"] #createView .field-group {
    display: block !important;
    margin: 0 !important;
  }

  body[data-current-view="create"] #createView .field-group > label + label {
    margin-top: 10px !important;
  }

  body[data-current-view="create"] #createView .extra-text-field {
    order: 90 !important;
    max-width: 672px !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields {
    order: 80 !important;
    width: 100% !important;
    max-width: 672px !important;
  }

  body[data-current-view="create"] #createView .form-actions {
    order: 100 !important;
    width: 100% !important;
    max-width: 672px !important;
  }

  body[data-current-view="create"] #createView .advanced-create-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  body[data-current-view="create"] #createView .advanced-create-grid > label,
  body[data-current-view="create"] #createView .advanced-create-grid .field-group,
  body[data-current-view="create"] #createView .advanced-create-grid .field-group > label {
    width: 100% !important;
    max-width: 444px !important;
  }

  body[data-current-view="create"] #createView .category-card .category-intro,
  body[data-current-view="create"] #createView .category-card .module-icon {
    display: none !important;
  }

  body[data-current-view="create"] #createView .category-card[data-category="project_ad"] strong {
    color: #ef4778 !important;
  }

  body[data-current-view="create"] #createView .category-card[data-category="real_comparison"] strong {
    color: #2f6df6 !important;
  }

  body[data-current-view="create"] #createView .category-card[data-category="chat_feedback"] strong {
    color: #16a085 !important;
  }
}

/* Final desktop override v2: must stay after the legacy create tidy block. */
@media (min-width: 981px) {
  html,
  body,
  .app-shell {
    overflow-x: hidden !important;
  }

  body[data-current-view="assets"] .main,
  body[data-current-view="create"] .main {
    min-width: 0 !important;
    max-width: calc(100vw - 258px) !important;
    overflow-x: hidden !important;
  }

  body[data-current-view="assets"] .asset-actions .primary-button {
    border: 1px solid #8fb3ff !important;
    background: #eef4ff !important;
    color: #155bd4 !important;
  }

  body[data-current-view="assets"] .asset-actions .secondary-button {
    border: 1px solid #d7e3f4 !important;
    background: #ffffff !important;
    color: #334155 !important;
  }

  body[data-current-view="assets"] .asset-actions .danger-button {
    border: 1px solid #ffd4df !important;
    background: #fff5f8 !important;
    color: #e7356f !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .category-card,
  body[data-current-view="create"] #createView .category-card[data-category] {
    min-height: 118px !important;
    padding: 18px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 72px !important;
    grid-template-rows: auto auto 1fr !important;
    gap: 8px 14px !important;
    align-items: start !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  body[data-current-view="create"] #createView .category-card.active,
  body[data-current-view="create"] #createView .category-card[data-category].active {
    border-color: #8fb3ff !important;
    background: #f4f8ff !important;
    box-shadow: inset 0 0 0 1px rgba(64, 120, 255, 0.18) !important;
  }

  body[data-current-view="create"] #createView .category-card .module-icon {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    place-items: center !important;
    border-radius: 18px !important;
    opacity: 0.82 !important;
  }

  body[data-current-view="create"] #createView .category-card strong,
  body[data-current-view="create"] #createView .category-card[data-category="project_ad"] strong,
  body[data-current-view="create"] #createView .category-card[data-category="real_comparison"] strong,
  body[data-current-view="create"] #createView .category-card[data-category="chat_feedback"] strong {
    grid-column: 1 !important;
    color: #10254b !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
  }

  body[data-current-view="create"] #createView .category-card .category-intro {
    display: block !important;
    grid-column: 1 !important;
    max-width: 100% !important;
    color: #52627a !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 750 !important;
  }

  body[data-current-view="assets"] .asset-upload-panel .material-search-actions button,
  body[data-current-view="assets"] .asset-upload-panel #assetForm > button {
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  body[data-current-view="assets"] .asset-upload-panel .material-search-actions button {
    border: 1px solid #8fb3ff !important;
    background: #eef4ff !important;
    color: #155bd4 !important;
  }

  body[data-current-view="assets"] .asset-upload-panel #assetForm > button {
    border: 0 !important;
    background: linear-gradient(135deg, #2563eb 0%, #6d5dfc 100%) !important;
    color: #ffffff !important;
  }
}

/* Final desktop override: subpage consistency after legacy late rules. */
@media (min-width: 981px) {
  html,
  body,
  .app-shell {
    overflow-x: hidden !important;
  }

  body[data-current-view="assets"] .main,
  body[data-current-view="create"] .main {
    min-width: 0 !important;
    max-width: calc(100vw - 258px) !important;
    overflow-x: hidden !important;
  }

  body[data-current-view="assets"] .asset-actions .primary-button {
    border: 1px solid #8fb3ff !important;
    background: #eef4ff !important;
    color: #155bd4 !important;
  }

  body[data-current-view="assets"] .asset-actions .secondary-button {
    border: 1px solid #d7e3f4 !important;
    background: #ffffff !important;
    color: #334155 !important;
  }

  body[data-current-view="assets"] .asset-actions .danger-button {
    border: 1px solid #ffd4df !important;
    background: #fff5f8 !important;
    color: #e7356f !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .category-card,
  body[data-current-view="create"] #createView .category-card[data-category] {
    min-height: 118px !important;
    padding: 18px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 72px !important;
    grid-template-rows: auto auto 1fr !important;
    gap: 8px 14px !important;
    align-items: start !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  body[data-current-view="create"] #createView .category-card.active,
  body[data-current-view="create"] #createView .category-card[data-category].active {
    border-color: #8fb3ff !important;
    background: #f4f8ff !important;
    box-shadow: inset 0 0 0 1px rgba(64, 120, 255, 0.18) !important;
  }

  body[data-current-view="create"] #createView .category-card .module-icon {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    place-items: center !important;
    border-radius: 18px !important;
    opacity: 0.82 !important;
  }

  body[data-current-view="create"] #createView .category-card strong,
  body[data-current-view="create"] #createView .category-card[data-category="project_ad"] strong,
  body[data-current-view="create"] #createView .category-card[data-category="real_comparison"] strong,
  body[data-current-view="create"] #createView .category-card[data-category="chat_feedback"] strong {
    grid-column: 1 !important;
    color: #10254b !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
  }

  body[data-current-view="create"] #createView .category-card .category-intro {
    display: block !important;
    grid-column: 1 !important;
    max-width: 100% !important;
    color: #52627a !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 750 !important;
  }
}

/* 2026-06-01 desktop material widget: keep assets integrated with the dashboard. */
@media (min-width: 981px) {
  body[data-current-view="home"],
  body[data-current-view="home"] .main,
  body[data-current-view="home"] #homeView,
  body[data-current-view="home"] .desktop-dashboard,
  body[data-current-view="home"] .desktop-panel {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body[data-current-view="home"] .desktop-material {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    align-content: start !important;
    gap: 12px !important;
    padding: 18px !important;
    overflow: hidden !important;
  }

  body[data-current-view="home"] .desktop-material .desktop-panel-head,
  body[data-current-view="home"] .desktop-material .desktop-tabs {
    margin: 0 !important;
  }

  body[data-current-view="home"] .desktop-material .desktop-panel-head h3 {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

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

  body[data-current-view="home"] .desktop-material .desktop-tabs span {
    min-width: 0 !important;
    padding: 7px 8px !important;
    overflow: hidden !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body[data-current-view="home"] .desktop-material-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(76px, auto) !important;
    gap: 10px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body[data-current-view="home"] .desktop-material-strip button {
    position: relative !important;
    min-width: 0 !important;
    min-height: 76px !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    align-items: center !important;
    gap: 4px 10px !important;
    padding: 9px !important;
    border: 1px solid rgba(210, 225, 245, 0.95) !important;
    border-radius: 12px !important;
    background: #f8fbff !important;
    color: #1e335a !important;
    box-shadow: none !important;
    text-align: left !important;
    overflow: hidden !important;
  }

  body[data-current-view="home"] .desktop-material-strip button:nth-child(n+5) {
    display: none !important;
  }

  body[data-current-view="home"] .desktop-material-strip img {
    position: static !important;
    grid-row: 1 / span 2 !important;
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    background: #e9f0f8 !important;
  }

  body[data-current-view="home"] .desktop-material-strip span,
  body[data-current-view="home"] .desktop-material-strip small {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    color: inherit !important;
    text-shadow: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body[data-current-view="home"] .desktop-material-strip span {
    align-self: end !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
  }

  body[data-current-view="home"] .desktop-material-strip small {
    align-self: start !important;
    color: #64748b !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .desktop-material-strip i {
    display: none !important;
  }
}

/* 2026-06-01 remove handbook entry from the app surface. */
.nav-item-DISABLED[data-view="manual"],
[data-go-view="manual"],
#manualView {
  display: none !important;
}

/* 2026-06-01 assets and function pages: align subpages with the home dashboard. */
@media (min-width: 981px) {
  body:not([data-current-view="home"]) .main,
  body:not([data-current-view="home"]) .view.active,
  body[data-current-view="assets"] #assetsView,
  body[data-current-view="create"] #createView {
    overflow-x: hidden !important;
  }

  body[data-current-view="assets"] #assetsView,
  body[data-current-view="create"] #createView {
    max-width: 1360px !important;
  }

  body[data-current-view="assets"] .subpage-hero,
  body[data-current-view="create"] .subpage-hero {
    min-height: 138px !important;
    padding: 28px 30px !important;
    border: 1px solid #d7e7ff !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #f7fbff 0%, #eaf3ff 100%) !important;
    box-shadow: none !important;
  }

  body[data-current-view="assets"] .workspace-grid.slim:first-of-type {
    grid-template-columns: minmax(360px, 0.52fr) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
  }

  body[data-current-view="assets"] .workspace-grid.slim + .workspace-grid.slim {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  body[data-current-view="assets"] .panel,
  body[data-current-view="create"] .panel {
    min-width: 0 !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body[data-current-view="assets"] .panel-heading,
  body[data-current-view="create"] .panel-heading {
    min-height: 42px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #e5edf8 !important;
  }

  body[data-current-view="assets"] .form-stack,
  body[data-current-view="assets"] .material-search-card {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 0 14px !important;
  }

  body[data-current-view="assets"] .material-search-actions,
  body[data-current-view="assets"] .material-search-tip,
  body[data-current-view="assets"] #assetForm > button {
    grid-column: 1 / -1 !important;
  }

  body[data-current-view="assets"] #assetForm label:nth-of-type(3),
  body[data-current-view="assets"] #assetForm label:nth-of-type(4) {
    grid-column: 1 / -1 !important;
  }

  body[data-current-view="assets"] label,
  body[data-current-view="create"] label {
    min-width: 0 !important;
  }

  body[data-current-view="assets"] input:not([type="file"]),
  body[data-current-view="assets"] select,
  body[data-current-view="create"] input:not([type="file"]),
  body[data-current-view="create"] select,
  body[data-current-view="create"] textarea {
    width: 100% !important;
    min-height: 42px !important;
    border: 1px solid #d7e3f4 !important;
    border-radius: 10px !important;
    background: #fbfdff !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    box-shadow: none !important;
  }

  body[data-current-view="assets"] input[type="file"],
  body[data-current-view="create"] input[type="file"] {
    width: 100% !important;
    min-height: 42px !important;
    padding: 8px !important;
    border: 1px dashed #c9d8ee !important;
    border-radius: 10px !important;
    background: #fbfdff !important;
  }

  body[data-current-view="assets"] .primary-button,
  body[data-current-view="assets"] .secondary-button,
  body[data-current-view="create"] .primary-button,
  body[data-current-view="create"] .secondary-button {
    min-height: 42px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  body[data-current-view="assets"] #assetGrid {
    display: grid !important;
    gap: 16px !important;
    min-width: 0 !important;
  }

  body[data-current-view="assets"] .asset-section {
    min-width: 0 !important;
    display: grid !important;
    gap: 12px !important;
  }

  body[data-current-view="assets"] .asset-section-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: start !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body[data-current-view="assets"] .asset-section-head h3 {
    margin: 0 0 6px !important;
    color: #0f172a !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
  }

  body[data-current-view="assets"] .asset-section-head p {
    max-width: 620px !important;
    margin: 0 !important;
    color: #52627a !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body[data-current-view="assets"] .asset-section-head > span {
    min-width: 48px !important;
    min-height: 28px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: #eef5ff !important;
    color: #2869ff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  body[data-current-view="assets"] .asset-subgrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  body[data-current-view="assets"] .asset-card {
    min-width: 0 !important;
    min-height: 132px !important;
    display: grid !important;
    grid-template-columns: 108px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 10px !important;
    border: 1px solid #dce8f7 !important;
    border-radius: 14px !important;
    background: #fbfdff !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body[data-current-view="assets"] .asset-card > img {
    position: static !important;
    width: 108px !important;
    height: 112px !important;
    max-width: 108px !important;
    max-height: 112px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    background: #eef3f8 !important;
  }

  body[data-current-view="assets"] .asset-card .card-body {
    min-width: 0 !important;
    padding: 0 !important;
    display: grid !important;
    align-content: start !important;
    gap: 6px !important;
  }

  body[data-current-view="assets"] .asset-card .card-title,
  body[data-current-view="assets"] .asset-title-button {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #10254b !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 900 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body[data-current-view="assets"] .asset-card .card-meta,
  body[data-current-view="assets"] .asset-framework {
    min-width: 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
  }

  body[data-current-view="assets"] .asset-card .card-meta {
    -webkit-line-clamp: 1 !important;
  }

  body[data-current-view="assets"] .asset-framework {
    -webkit-line-clamp: 2 !important;
  }

  body[data-current-view="assets"] .asset-card .inline-edit-field {
    display: none !important;
  }

  body[data-current-view="assets"] .asset-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 2px !important;
  }

  body[data-current-view="assets"] .asset-actions.single-action {
    grid-template-columns: 1fr !important;
  }

  body[data-current-view="assets"] .asset-actions > button {
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  body[data-current-view="create"] #createView .workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr) !important;
    gap: 20px !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .category-card {
    min-height: 112px !important;
    padding: 18px 18px 16px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 74px !important;
    grid-template-rows: auto auto 1fr !important;
    align-items: start !important;
    gap: 8px 14px !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .category-card .module-icon {
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    width: 74px !important;
    height: 74px !important;
    border-radius: 18px !important;
    opacity: 0.72 !important;
  }

  body[data-current-view="create"] #createView .category-card strong {
    grid-column: 1 !important;
    color: #10254b !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
  }

  body[data-current-view="create"] #createView .category-intro,
  body[data-current-view="create"] #createView .category-card span:not(.module-icon) {
    grid-column: 1 !important;
    color: #52627a !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  body[data-current-view="create"] #createView .category-card.active {
    border-color: #8fb3ff !important;
    background: #f4f8ff !important;
    box-shadow: inset 0 0 0 1px rgba(64, 120, 255, 0.18) !important;
  }

  body[data-current-view="create"] #createView .form-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .comparison-field > label,
  body[data-current-view="create"] #createView .project-field > label,
  body[data-current-view="create"] #createView .image-effect-field > label {
    grid-column: span 1 !important;
    min-height: 96px !important;
    padding: 12px !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 12px !important;
    background: #f8fbff !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields,
  body[data-current-view="create"] #createView .extra-text-field,
  body[data-current-view="create"] #createView .form-actions {
    grid-column: 1 / -1 !important;
  }

  body[data-current-view="create"] #createView .form-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* Work detail image viewer: keep generated images visible as a real gallery on desktop. */
body[data-current-view="works"] #workDialog,
body[data-current-view="works"] dialog.work-dialog {
  box-sizing: border-box !important;
}

body[data-current-view="works"] #workDialog .work-detail {
  display: grid !important;
  gap: 16px !important;
  min-width: 0 !important;
}

body[data-current-view="works"] #workDialog .preview-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body[data-current-view="works"] #workDialog .preview-card {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, auto) !important;
  gap: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dbe8f8 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 26px rgba(31, 45, 74, 0.08) !important;
}

body[data-current-view="works"] #workDialog .preview-card > img,
body[data-current-view="works"] #workDialog .preview-card > video {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  background: #eef4fb !important;
}

body[data-current-view="works"] #workDialog .preview-card.video-preview-card > video {
  aspect-ratio: 9 / 16 !important;
}

body[data-current-view="works"] #workDialog .preview-card .card-body {
  display: grid !important;
  gap: 8px !important;
  padding: 12px !important;
}

body[data-current-view="works"] #workDialog .preview-card .card-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

@media (max-width: 720px) {
  body[data-current-view="works"] #workDialog .preview-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body[data-current-view="works"] #workDialog .preview-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  body[data-current-view="works"] #workDialog .preview-card > img,
  body[data-current-view="works"] #workDialog .preview-card > video {
    width: 96px !important;
    height: 96px !important;
    aspect-ratio: auto !important;
    border-radius: 10px !important;
  }

  body[data-current-view="works"] #workDialog .preview-card .card-body {
    padding: 0 !important;
  }
}

/* Feedback entry: compact global support and group join panel. */
.feedback-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(216, 230, 248, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f5fd7;
  box-shadow: 0 14px 34px rgba(51, 99, 180, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
}

.feedback-fab i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0f5fd7;
  color: #ffffff;
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.feedback-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid #d7e6ff;
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.feedback-dialog-head {
  padding-right: 34px;
  margin-bottom: 14px;
}

.feedback-dialog-head strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.feedback-dialog-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.feedback-group-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dbe8f8;
  border-radius: 14px;
  background: #f7fbff;
}

.feedback-group-box span {
  color: #40516b;
  font-size: 12px;
  font-weight: 850;
}

.feedback-group-box strong {
  grid-column: 1;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.feedback-group-box button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
}

.feedback-form {
  display: grid;
  gap: 10px;
}

.feedback-form label {
  display: grid;
  gap: 6px;
}

.feedback-form label span {
  color: #40516b;
  font-size: 12px;
  font-weight: 850;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe8f8;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
}

.feedback-form input,
.feedback-form select {
  height: 40px;
  padding: 0 12px;
}

.feedback-form textarea {
  min-height: 104px;
  padding: 10px 12px;
  resize: vertical;
}

.feedback-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.feedback-actions [data-feedback-status] {
  min-height: 18px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.feedback-actions [data-feedback-status][data-tone="success"] {
  color: #0f8f66;
}

.feedback-actions [data-feedback-status][data-tone="error"] {
  color: #e7356f;
}

.feedback-actions .primary-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.mine-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mine-feedback-button {
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #d8e6f8;
  border-radius: 16px;
  background: #ffffff;
  color: #0f5fd7;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

.mine-feedback-button i {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0f5fd7;
  color: #ffffff;
  font-style: normal;
  font-size: 21px;
  line-height: 1;
  font-weight: 950;
}

.mine-feedback-button span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mine-feedback-button strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
}

.mine-feedback-button small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
}

@media (max-width: 720px) {
  .feedback-fab {
    display: none !important;
  }

  .mine-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mine-hero-actions button {
    width: 100%;
  }
}

body[data-current-view="mine"] .admin-feedback-list {
  display: grid;
  gap: 10px;
}

body[data-current-view="mine"] .admin-feedback-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dbe8f8;
  border-radius: 12px;
  background: #f7fbff;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body[data-current-view="mine"] .admin-feedback-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

body[data-current-view="mine"] .admin-feedback-main strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

body[data-current-view="mine"] .admin-feedback-main span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

body[data-current-view="mine"] .admin-feedback-main em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: #0f5fd7;
  font-size: 11px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

body[data-current-view="mine"] .admin-feedback-item p {
  margin: 0;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
  white-space: pre-wrap;
}

body[data-current-view="mine"] .admin-feedback-actions {
  display: flex;
  justify-content: flex-end;
}

body[data-current-view="mine"] .admin-feedback-actions a {
  color: #0f5fd7;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

/* Desktop home news: stable table-like feed for latest updates. */
@media (min-width: 981px) {
  body[data-current-view="home"] .desktop-news-panel {
    grid-column: 1 / -1 !important;
    min-height: 0 !important;
  }

  body[data-current-view="home"] .desktop-news-layout {
    display: grid !important;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
  }

  body[data-current-view="home"] .desktop-news-brief {
    min-width: 0 !important;
  }

  body[data-current-view="home"] .desktop-news-summary {
    min-height: 96px !important;
    display: grid !important;
    align-content: start !important;
    gap: 8px !important;
  }

  body[data-current-view="home"] .desktop-news-feed {
    min-width: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body[data-current-view="home"] .desktop-news-feed-head {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) 84px !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="home"] .desktop-news-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    max-height: 430px !important;
    overflow: auto !important;
    padding-right: 2px !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-card,
  body[data-current-view="home"] .desktop-news-list .ref-news-card:first-child {
    grid-column: auto !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-card {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) 84px !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 4px !important;
    align-items: start !important;
    min-height: 92px !important;
    padding: 12px 10px !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 12px !important;
    background: #f7fbff !important;
    box-shadow: none !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-empty,
  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-loading {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    min-height: 118px !important;
    align-content: center !important;
    justify-items: start !important;
    padding: 16px !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-empty > span,
  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-loading > span,
  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-empty > strong,
  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-loading > strong,
  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-empty > p,
  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-loading > p {
    grid-column: 1 !important;
    grid-row: auto !important;
    text-align: left !important;
    max-width: 520px !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-empty > span,
  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-loading > span {
    display: inline-flex !important;
    min-height: 24px !important;
    padding: 0 10px !important;
    align-items: center !important;
    border-radius: 999px !important;
    background: #eef4ff !important;
    color: #2f6df6 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-empty > strong,
  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-loading > strong {
    margin-top: 8px !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-empty > p,
  body[data-current-view="home"] .desktop-news-list .ref-news-card.is-loading > p {
    margin-top: 4px !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-meta,
  body[data-current-view="home"] .desktop-news-list .ref-news-card > span:first-child {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    margin: 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    overflow-wrap: anywhere !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-title,
  body[data-current-view="home"] .desktop-news-list .ref-news-card > strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    min-width: 0 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-summary-text,
  body[data-current-view="home"] .desktop-news-list .ref-news-card > p {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    min-width: 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-actions {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  body[data-current-view="home"] .desktop-news-list .ref-news-actions button,
  body[data-current-view="home"] .desktop-news-list .ref-news-actions a {
    width: 100% !important;
    min-height: 28px !important;
    padding: 0 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }
}

/* Desktop works: smaller square cards and clearer management hint. */
@media (min-width: 981px) {
  body[data-current-view="works"] .work-management-panel .panel-heading::after {
    content: "提示：右侧作品详情里的图片可以用“新标签打开”直接查看原图。" !important;
    grid-column: 1 / -1 !important;
    display: block !important;
    margin-top: 6px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
  }

  body[data-current-view="works"] .works-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 12px !important;
    align-items: start !important;
  }

  body[data-current-view="works"] .work-card {
    min-height: 0 !important;
    padding: 10px !important;
    gap: 8px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, auto) !important;
  }

  body[data-current-view="works"] .work-card > .work-cover-button,
  body[data-current-view="works"] .work-cover-button {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  body[data-current-view="works"] .work-card > .card-body,
  body[data-current-view="works"] .work-card .card-body {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-height: 0 !important;
    gap: 6px !important;
  }

  body[data-current-view="works"] .work-cover-button img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body[data-current-view="works"] .work-card .select-check {
    z-index: 2 !important;
  }

  body[data-current-view="works"] .work-card .work-param-list.compact {
    display: none !important;
  }

  body[data-current-view="works"] .work-card .card-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body[data-current-view="works"] .work-card .card-meta,
  body[data-current-view="works"] .work-card .work-card-topline {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  body[data-current-view="works"] .work-card .card-actions {
    gap: 6px !important;
  }

  body[data-current-view="works"] .work-card .card-actions button,
  body[data-current-view="works"] .work-card .card-actions a {
    min-height: 30px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
  }
}

/* Desktop iOS typography polish for works cards and mine data cards. */
@media (min-width: 981px) {
  body[data-current-view="works"] .work-card,
  body[data-current-view="works"] .work-card *,
  body[data-current-view="mine"] .mine-data-panel,
  body[data-current-view="mine"] .mine-data-panel * {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif !important;
    letter-spacing: 0 !important;
  }

  body[data-current-view="works"] .work-card-topline span,
  body[data-current-view="works"] .work-card-topline strong,
  body[data-current-view="works"] .status-pill {
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  body[data-current-view="works"] .work-card-topline span {
    color: #40516b !important;
  }

  body[data-current-view="works"] .work-title-button,
  body[data-current-view="works"] .card-title.work-title-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #0f172a !important;
    text-align: left !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 850 !important;
  }

  body[data-current-view="works"] .work-card .card-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
  }

  body[data-current-view="works"] .work-card .card-actions .secondary-button,
  body[data-current-view="works"] .work-card .card-actions .download-link,
  body[data-current-view="works"] .work-card .card-actions .danger-button,
  body[data-current-view="works"] .work-dialog .download-link,
  body[data-current-view="works"] #workDialog .download-link {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    border: 1px solid #d8e6f8 !important;
    background: #f7fbff !important;
    color: #0f5fd7 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  body[data-current-view="works"] .work-card .card-actions .danger-button {
    border-color: #ffd4df !important;
    background: #fff5f8 !important;
    color: #e7356f !important;
  }

  body[data-current-view="mine"] .mine-data-panel {
    background: #ffffff !important;
    border: 1px solid #d7e6ff !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(51, 99, 180, 0.08) !important;
  }

  body[data-current-view="mine"] .mine-data-grid {
    gap: 12px !important;
  }

  body[data-current-view="mine"] .mine-data-card {
    min-height: 104px !important;
    padding: 14px !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 12px !important;
    background: #f7fbff !important;
    box-shadow: none !important;
    color: #0f172a !important;
    text-align: left !important;
  }

  body[data-current-view="mine"] .mine-data-card span {
    color: #40516b !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 850 !important;
  }

  body[data-current-view="mine"] .mine-data-card strong {
    margin: 4px 0 0 !important;
    color: #0f172a !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
  }

  body[data-current-view="mine"] .mine-data-card small {
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }
}

/* Desktop create final tidy layout: horizontal module names and unified fields. */
@media (min-width: 981px) {
  body[data-current-view="create"] #createView .form-stack {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
    width: 100% !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    order: 0 !important;
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    width: auto !important;
    max-width: none !important;
    gap: 20px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .category-card {
    width: auto !important;
    min-height: 20px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-grid !important;
    place-items: center start !important;
  }

  body[data-current-view="create"] #createView .category-card .category-intro,
  body[data-current-view="create"] #createView .category-card .module-icon {
    display: none !important;
  }

  body[data-current-view="create"] #createView .field-group {
    display: contents !important;
    margin: 0 !important;
  }

  body[data-current-view="create"] #createView .form-stack > label,
  body[data-current-view="create"] #createView .field-group > label,
  body[data-current-view="create"] #createView .chat-effect-image-field,
  body[data-current-view="create"] #createView .advanced-create-grid > label,
  body[data-current-view="create"] #createView .advanced-create-grid .field-group > label {
    box-sizing: border-box !important;
    grid-column: span 4 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 96px !important;
    margin: 0 !important;
    padding: 12px !important;
    display: grid !important;
    grid-template-rows: auto minmax(42px, auto) auto !important;
    gap: 7px !important;
    align-content: start !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 12px !important;
    background: #f7fbff !important;
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .extra-text-field {
    order: 90 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 128px !important;
  }

  body[data-current-view="create"] #createView .extra-text-field textarea {
    min-height: 82px !important;
  }

  body[data-current-view="create"] #createView .advanced-create-fields {
    order: 80 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 6px 0 0 !important;
    padding: 14px !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 12px !important;
    background: #f7fbff !important;
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .advanced-create-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  body[data-current-view="create"] #createView .form-actions {
    order: 100 !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
  }

  body[data-current-view="create"] #createView .form-stack > label.extra-text-field,
  body[data-current-view="create"] #createView .extra-text-field,
  body[data-current-view="create"] #createView .comparison-field > label.extra-text-field:has(textarea) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
  }

  body[data-current-view="create"] #createView .extra-text-field textarea {
    width: 100% !important;
  }

  body[data-current-view="create"] #createView .category-card[data-category="project_ad"] strong {
    color: #ef4778 !important;
  }

  body[data-current-view="create"] #createView .category-card[data-category="real_comparison"] strong {
    color: #2f6df6 !important;
  }

  body[data-current-view="create"] #createView .category-card[data-category="chat_feedback"] strong {
    color: #16a085 !important;
  }
}
/* Final desktop override v3: appended at EOF after legacy create tidy block. */
@media (min-width: 981px) {
  html,
  body,
  .app-shell {
    overflow-x: hidden !important;
  }

  body[data-current-view="assets"] .main,
  body[data-current-view="create"] .main {
    min-width: 0 !important;
    max-width: calc(100vw - 258px) !important;
    overflow-x: hidden !important;
  }

  body[data-current-view="assets"] .asset-actions .primary-button {
    border: 1px solid #8fb3ff !important;
    background: #eef4ff !important;
    color: #155bd4 !important;
  }

  body[data-current-view="assets"] .asset-actions .secondary-button {
    border: 1px solid #d7e3f4 !important;
    background: #ffffff !important;
    color: #334155 !important;
  }

  body[data-current-view="assets"] .asset-actions .danger-button {
    border: 1px solid #ffd4df !important;
    background: #fff5f8 !important;
    color: #e7356f !important;
  }

  body[data-current-view="create"] #createView .category-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body[data-current-view="create"] #createView .category-card,
  body[data-current-view="create"] #createView .category-card[data-category] {
    min-height: 118px !important;
    padding: 18px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 72px !important;
    grid-template-rows: auto auto 1fr !important;
    gap: 8px 14px !important;
    align-items: start !important;
    border: 1px solid #dbe8f8 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  body[data-current-view="create"] #createView .category-card.active,
  body[data-current-view="create"] #createView .category-card[data-category].active {
    border-color: #8fb3ff !important;
    background: #f4f8ff !important;
    box-shadow: inset 0 0 0 1px rgba(64, 120, 255, 0.18) !important;
  }

  body[data-current-view="create"] #createView .category-card .module-icon {
    display: grid !important;
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    place-items: center !important;
    border-radius: 18px !important;
    opacity: 0.82 !important;
  }

  body[data-current-view="create"] #createView .category-card strong,
  body[data-current-view="create"] #createView .category-card[data-category="project_ad"] strong,
  body[data-current-view="create"] #createView .category-card[data-category="real_comparison"] strong,
  body[data-current-view="create"] #createView .category-card[data-category="chat_feedback"] strong {
    grid-column: 1 !important;
    color: #10254b !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
  }

  body[data-current-view="create"] #createView .category-card .category-intro {
    display: block !important;
    grid-column: 1 !important;
    max-width: 100% !important;
    color: #52627a !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 750 !important;
  }
}
