/* Desktop visual treatment for the four creation and library views. */
@media (min-width: 768px) {
  body:is([data-section="chat"], [data-section="image"], [data-section="works"], [data-section="industry"]) {
    --page-header-height: 56px;
    --color-muted: #64646c;
    --color-primary: #0066cc;
    --color-primary-hover: #005ab5;
    --color-primary-pressed: #004d9b;
    --desktop-divider: #e5e5ea;
    --desktop-panel: #f7f7f8;
    background: #fff;
  }

  body:is([data-section="chat"], [data-section="image"], [data-section="works"], [data-section="industry"])
    :is(.shell, .shell > .page-header, #main) {
    background: #fff;
  }

  body:is([data-section="chat"], [data-section="image"], [data-section="works"], [data-section="industry"]) #sidebar {
    background: var(--desktop-panel);
    border-color: var(--desktop-divider);
    padding-block-start: 4px;
  }

  body:is([data-section="chat"], [data-section="image"], [data-section="works"], [data-section="industry"]) #sidebar::before {
    background: #f0f0f2;
    border-color: var(--desktop-divider);
  }

  body:is([data-section="chat"], [data-section="image"], [data-section="works"], [data-section="industry"]) #nav {
    top: 84px;
    gap: 8px;
  }

  body:is([data-section="chat"], [data-section="image"], [data-section="works"], [data-section="industry"]) #nav a {
    height: 54px;
    color: var(--color-muted);
  }

  body:is([data-section="chat"], [data-section="image"], [data-section="works"], [data-section="industry"]) #nav a.active {
    background: #fff;
    color: var(--color-text);
    box-shadow: inset 0 0 0 1px var(--desktop-divider);
  }

  body:is([data-section="chat"], [data-section="image"], [data-section="works"], [data-section="industry"]) #nav .nav-label {
    font-size: 11px;
    font-weight: 500;
  }

  body:is([data-section="chat"], [data-section="image"], [data-section="works"], [data-section="industry"]) .shell > .page-header {
    padding-block: 0;
    border-bottom: 1px solid var(--desktop-divider);
  }

  body:is([data-section="chat"], [data-section="image"], [data-section="works"], [data-section="industry"]) .page-header #breadcrumb {
    font-size: 16px;
    line-height: 24px;
  }

  body[data-section="chat"] .history-empty,
  body[data-section="chat"] .chat-file-hint {
    color: var(--color-muted);
  }

  body[data-section="chat"] .chat-page[data-kind="chat"].is-empty .chat-dock {
    padding-bottom: clamp(80px, 20vh, 200px);
  }

  body[data-section="chat"] .chat-page .composer {
    background: #fff;
    border: 1px solid #dcdce2;
    border-radius: 20px;
    box-shadow: 0 3px 12px rgb(29 29 31 / 5%);
  }

  body[data-section="chat"] .chat-page .composer:focus-within {
    border-color: #769dca;
    box-shadow: 0 0 0 3px #eaf3ff;
  }

  body[data-section="chat"] .chat-page.is-empty .composer {
    width: min(700px, 100%);
  }

  body[data-section="chat"] .composer textarea::placeholder {
    color: var(--color-muted);
  }

  body[data-section="image"] .image-workspace fieldset,
  body[data-section="image"] .image-workspace .image-output {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
  }

  body[data-section="image"] .image-workspace fieldset > .panel {
    padding: 0 0 20px;
  }

  body[data-section="image"] .image-workspace fieldset > .panel + .panel {
    padding-top: 16px;
  }

  body[data-section="image"] .image-workspace textarea {
    height: 152px;
  }

  body[data-section="image"] .image-workspace :is(textarea, .reference-upload, .image-output > .empty) {
    background: var(--desktop-panel);
  }

  body[data-section="image"] .image-workspace textarea::placeholder,
  body[data-section="image"] .image-workspace :is(.hint, .image-help, .empty h3) {
    color: var(--color-muted);
  }

  body[data-section="image"] .image-workspace :is(.hint, .image-help) {
    font-size: 12px;
  }

  body[data-section="image"] .image-ratios button.selected {
    background: #eaf3ff;
    border-color: #87aee0;
    color: #075aa8;
    box-shadow: none;
  }

  body[data-section="image"] .image-workspace #imageBtn {
    box-shadow: none;
  }

  body[data-section="works"] .works-empty {
    min-height: max(360px, calc(100dvh - 220px));
    gap: 12px;
  }

  body[data-section="works"] .works-empty-icon,
  body[data-section="image"] .image-workspace .empty-icon {
    background: #eeeef2;
    color: #64646c;
    box-shadow: none;
  }
}

@media (min-width: 1101px) {
  body[data-section="image"] .image-workspace {
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    gap: 40px;
  }
}
