@media (min-width: 900px) and (min-height: 640px) {
  .mobile-function-title {
    display: none;
  }
  .mobile-search-button,
  .mobile-search-layer {
    display: none !important;
  }
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .app-shell,
  .app-shell.function-grid-two-rows {
    --desktop-left-width: clamp(170px, 15vw, 230px);
    --desktop-right-width: clamp(210px, 18vw, 280px);
    display: grid;
    grid-template-columns: var(--desktop-left-width) minmax(0, 1fr) var(--desktop-right-width);
    grid-template-rows: minmax(0, 1fr);
    gap: clamp(12px, 1.5vw, 24px);
    width: 100%;
    height: 100dvh;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 18px clamp(16px, 1.7vw, 28px);
    overflow: hidden;
    background: #08090b;
  }

  .topbar {
    position: absolute;
    z-index: 50;
    top: 18px;
    right: auto;
    left: clamp(16px, 1.7vw, 28px);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    width: max-content;
    max-width: calc(100vw - 32px);
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    pointer-events: none;
    transform: none;
  }

  .topbar .brand-dot,
  .topbar .brand-title {
    display: none;
  }

  .desktop-brand-picker {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    margin-left: 0;
    pointer-events: auto;
  }

  .desktop-selected-brand {
    display: grid;
    grid-template-columns: auto 8px;
    align-items: center;
    justify-content: start;
    gap: 7px;
    min-width: 72px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(23, 28, 35, 0.96);
  }

  .desktop-selected-brand span {
    display: none;
  }

  .desktop-selected-brand i {
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
    transform: rotate(45deg) translateY(-2px);
  }

  .desktop-brand-menu {
    position: absolute;
    z-index: 2;
    top: calc(100% + 7px);
    left: 0;
    display: grid;
    width: max(100%, 230px);
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #171c23;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48);
  }

  .desktop-brand-menu-option {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
  }

  .desktop-brand-menu-option:hover,
  .desktop-brand-menu-option.active {
    background: var(--surface-2);
    color: var(--ink);
  }

  .desktop-brand-menu-option:disabled {
    cursor: not-allowed;
    opacity: 0.3;
  }

  .desktop-brand-menu-option strong {
    justify-self: center;
    line-height: 1;
    text-align: center;
  }

  .desktop-selected-brand strong,
  .desktop-brand-menu-option strong {
    color: #eef3f9;
    font-size: 12px;
    font-weight: 850;
  }

  .desktop-selected-brand.sony strong,
  .desktop-brand-menu-option.sony strong {
    font-family: Arial Black, Arial, sans-serif;
  }

  .desktop-selected-brand.canon strong,
  .desktop-brand-menu-option.canon strong {
    color: #f04b52;
    font-family: Georgia, serif;
    font-size: 15px;
  }

  .desktop-selected-brand.nikon strong,
  .desktop-brand-menu-option.nikon strong {
    padding: 2px 5px;
    border-radius: 2px;
    background: #f4d000;
    color: #111;
  }

  .desktop-selected-brand.fujifilm strong,
  .desktop-brand-menu-option.fujifilm strong {
    color: #45b97c;
    font-family: Arial Black, Arial, sans-serif;
    font-size: 10px;
  }

  .desktop-selected-brand.lumix strong,
  .desktop-brand-menu-option.lumix strong {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
  }

  .desktop-brand-menu-option span {
    color: #b5bfcc;
    font-size: 13px;
    text-align: left;
  }

  .camera-toolbar {
    position: relative;
    z-index: auto;
    top: auto;
    right: auto;
    flex: 0 0 auto;
    min-width: 0;
    pointer-events: auto;
  }

  .camera-toolbar-toggle {
    display: none;
  }

  .camera-toolbar-panel,
  .camera-toolbar.open .camera-toolbar-panel {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .camera-toolbar-panel > .camera-control:first-child {
    display: none;
  }

  .camera-control-label {
    display: none;
  }

  .mobile-brand-options {
    display: none;
  }

  .camera-toolbar-panel .add-comparison-panel {
    position: fixed;
    z-index: 3;
    top: 60px;
    right: auto;
    left: clamp(16px, 1.7vw, 28px);
    width: min(320px, calc(100vw - 32px));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.5);
  }

  .camera-toolbar-panel .add-comparison-button {
    width: auto;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 34px;
    padding-inline: 10px;
    border-color: rgba(77, 141, 255, 0.62);
    background: rgba(77, 141, 255, 0.13);
    color: #d9e7ff;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
  }

  .camera-toolbar-panel .add-comparison-button span {
    font-size: 16px;
  }

  .camera-toolbar-panel .camera-control {
    grid-template-columns: minmax(0, 1fr) 32px;
    width: auto;
    flex: 0 1 auto;
    gap: 6px;
  }

  .camera-toolbar-panel .target-camera-picker {
    width: clamp(108px, 8vw, 142px);
  }

  .target-camera-picker {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7px;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 8px;
    overflow: hidden;
    border: 1px solid rgba(77, 141, 255, 0.62);
    border-radius: 7px;
    background: rgba(23, 28, 35, 0.96);
  }

  .target-camera-picker > span {
    width: 6px;
    height: 6px;
    border-right: 1px solid #aeb9c8;
    border-bottom: 1px solid #aeb9c8;
    transform: rotate(45deg) translateY(-2px);
  }

  .target-camera-logo {
    display: block;
    overflow: hidden;
    color: #eef3f9;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .target-camera-logo.sony {
    font-family: Arial Black, Arial, sans-serif;
  }

  .target-camera-logo.canon {
    color: #f04b52;
    font-family: Georgia, serif;
    font-size: 15px;
  }

  .target-camera-logo.nikon {
    justify-self: center;
    padding: 2px 5px;
    border-radius: 2px;
    background: #f4d000;
    color: #111;
  }

  .target-camera-logo.fujifilm {
    color: #45b97c;
    font-family: Arial Black, Arial, sans-serif;
    font-size: 10px;
  }

  .target-camera-logo.lumix {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
  }

  .target-camera-picker .screen-camera-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
  }

  .camera-toolbar-panel .screen-camera-select {
    min-width: 0;
    height: 34px;
    padding-inline: 9px 28px;
    border-color: rgba(77, 141, 255, 0.62);
    border-radius: 7px;
    background-color: rgba(23, 28, 35, 0.96);
    color: #eef3f9;
    font-size: 13px;
    font-weight: 600;
  }

  .camera-toolbar-panel .remove-camera-button {
    width: 32px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(23, 28, 35, 0.96);
    color: #aeb9c8;
    font-size: 19px;
  }

  .camera-toolbar-panel .remove-camera-button:hover,
  .camera-toolbar-panel .remove-camera-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    outline: none;
    background: #20262e;
    color: #fff;
  }

  .content-header {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 100%;
    min-height: 0;
    padding: 64px 0 20px;
  }

  .app-shell.comparing {
    grid-template-columns: 0 minmax(0, 1fr) var(--desktop-right-width);
  }

  .app-shell.comparing .content-header {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    min-height: 0;
    padding: 64px 0 0;
    pointer-events: none;
  }

  .app-shell.comparing .desktop-context-header {
    justify-items: center;
    text-align: center;
  }

  .app-shell.comparing .desktop-context-header p {
    max-width: 760px;
  }

  .app-shell.comparing .screen-stack {
    grid-column: 2;
    grid-row: 1;
    padding-top: 126px;
  }

  .app-shell.comparing .screen-stack.comparing {
    gap: clamp(12px, 1.5vw, 28px);
  }

  .desktop-context-header {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 3px;
    min-width: 0;
    text-align: left;
  }

  .desktop-context-header strong {
    font-size: 22px;
    line-height: 1.2;
  }

  .desktop-context-header p {
    margin: 0;
    color: #c3cad4;
    font-size: 16px;
    line-height: 1.55;
    white-space: normal;
  }

  .module-tabs,
  .bottom-tabs,
  .single-function-note {
    display: none !important;
  }

  .screen-stack,
  .screen-stack:not(.comparing) {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    align-content: center;
    padding: 0;
    overflow: hidden;
  }

  .screen-stack:not(.comparing) {
    justify-items: center;
  }

  .screen-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 7px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .screen-stack:not(.comparing) .screen-card {
    width: min(100%, calc((100dvh - 80px) * 16 / 9));
  }

  .screen-stack:not(.comparing) .screen-card:has(.camera-screen.has-body-template),
  .screen-stack:not(.comparing) .camera-screen.has-body-template {
    width: min(100%, calc((100dvh - 80px) * 4 / 3));
  }

  .screen-card-heading {
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 40px;
  }

  .screen-card:has(.camera-screen.has-body-template) .screen-card-heading {
    position: relative;
    z-index: 6;
    margin-top: calc(-24px - var(--body-bottom-gap, 0px));
  }

  .screen-stack.comparing
    .screen-card:has(.camera-screen.has-body-template)
    .screen-card-heading {
    margin-top: calc(5px - var(--body-bottom-gap, 0px));
  }

  .screen-card-heading .screenshot-tabs {
    grid-column: 2;
  }

  .screen-card-heading .screenshot-description {
    grid-column: 3;
    justify-self: start;
  }

  .camera-screen {
    order: 1;
    border-radius: 8px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 16px 42px rgba(0, 0, 0, 0.28);
  }

  .camera-screen.has-multiple-screenshots {
    cursor: pointer;
  }

  .app-shell.comparing .camera-screen.has-body-template {
    transform: translateY(var(--compare-body-offset, 0%));
  }

  .camera-screen.has-body-template {
    aspect-ratio: 4 / 3;
    margin-inline: auto;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .camera-screen.has-body-template .camera-body-image {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .camera-screen.has-body-template .camera-display-layer {
    top: var(--body-screen-y);
    right: auto;
    bottom: auto;
    left: var(--body-screen-x);
    width: var(--body-screen-width);
    height: var(--body-screen-height);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65);
  }

  .camera-screen.has-body-template .body-hotspot {
    z-index: 5;
    display: block;
  }

  .screenshot-tabs {
    flex: 0 0 auto;
    justify-content: center;
    gap: 7px;
  }

  .screen-card-heading .screenshot-tabs {
    flex: 0 0 auto;
  }

  .screenshot-tabs button {
    position: relative;
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: #151a20;
    color: #aeb9c8;
    font-size: 13px;
    font-weight: 650;
  }

  .screenshot-tabs button:hover,
  .screenshot-tabs button.active {
    border-color: rgba(77, 141, 255, 0.76);
    background: rgba(77, 141, 255, 0.2);
    color: #fff;
  }

  .screenshot-tabs button.active {
    box-shadow: inset 0 0 0 1px rgba(77, 141, 255, 0.3);
  }

  .screen-card-heading:has(.screenshot-tabs.hidden) .screenshot-description {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .screenshot-description {
    max-width: min(420px, 100%);
    padding: 7px 11px;
    border: 1px solid rgba(77, 141, 255, 0.38);
    border-radius: 6px;
    background: rgba(77, 141, 255, 0.12);
    color: #d5e4ff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
  }

  .screen-stack.comparing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 18px;
  }

  .screen-stack.comparing .screen-card {
    width: 100%;
  }

  .screen-stack.comparing .camera-screen.has-body-template {
    width: 100%;
  }

  .desktop-function-browser {
    position: relative;
    z-index: 45;
    display: grid;
    grid-column: 3;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "search"
      "category"
      "functions";
    align-content: start;
    gap: 10px;
    width: 100%;
    min-height: 0;
  }

  .desktop-category-trigger {
    display: flex;
    grid-area: category;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #151a20;
    color: var(--muted);
    text-align: left;
  }

  .desktop-category-trigger strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-category-trigger-label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }

  .desktop-category-trigger-label svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .desktop-category-current-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 18px;
    height: 18px;
  }

  .desktop-category-current-icon .category-icon {
    width: 18px;
    height: 18px;
  }

  .desktop-category-trigger > span:last-child {
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
    transform: rotate(45deg) translateY(-2px);
  }

  .desktop-category-trigger[aria-expanded="true"] {
    background: var(--surface-2);
    color: var(--ink);
  }

  .desktop-category-popover {
    position: absolute;
    z-index: 3;
    top: 101px;
    bottom: auto;
    left: 0;
    display: none;
    width: 100%;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #171c23;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48);
  }

  .desktop-function-browser.category-open .desktop-category-popover {
    display: block;
  }

  .desktop-category-filters {
    display: grid;
    gap: 2px;
    max-height: min(360px, calc(100dvh - 120px));
    overflow-y: auto;
  }

  .desktop-category-filters button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    text-align: left;
    font-size: 14px;
    font-weight: 550;
  }

  .desktop-category-filters .category-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .desktop-category-filters button:hover,
  .desktop-category-filters button.active {
    background: rgba(77, 141, 255, 0.14);
    color: var(--active-2);
  }

  .desktop-function-results {
    display: grid;
    grid-area: functions;
    align-content: start;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .desktop-function-results::-webkit-scrollbar {
    width: 5px;
  }

  .desktop-function-results button {
    position: relative;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #bac4d0;
    font-size: 14px;
    font-weight: 520;
    text-align: left;
  }

  .desktop-function-results button:hover,
  .desktop-function-results button.active {
    background: rgba(77, 141, 255, 0.12);
    color: var(--active-2);
  }

  .desktop-function-results button.active::after {
    position: absolute;
    top: 9px;
    right: auto;
    bottom: 9px;
    left: 0;
    width: 2px;
    height: auto;
    border-radius: 0 999px 999px 0;
    background: var(--active);
    content: "";
  }

  .desktop-function-empty {
    padding: 8px 12px;
    color: var(--muted);
    font-size: 11px;
    white-space: normal;
  }

  .desktop-function-search-row {
    position: relative;
    z-index: auto;
    display: flex;
    grid-area: search;
    width: 100%;
    min-width: 0;
  }

  .desktop-function-search {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 9px;
    background: #0d1116;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }

  .desktop-function-search:focus-within {
    border-color: var(--active);
  }

  .desktop-function-search svg {
    width: 17px;
    fill: none;
    stroke: #8995a5;
    stroke-width: 2;
  }

  .desktop-function-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 9px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
  }

  .desktop-function-search kbd {
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-family: inherit;
    font-size: 9px;
  }
}

@media (min-width: 900px) and (max-width: 1100px) and (min-height: 640px) {
  .content-header {
    padding-right: 0;
  }
}
