:root {
  color-scheme: dark;
  --bg: #0e1014;
  --surface: #171a20;
  --surface-2: #20242c;
  --ink: #f4f6f8;
  --muted: #9ca5b2;
  --line: rgba(255, 255, 255, 0.12);
  --active: #4d8dff;
  --active-2: #9ec4ff;
  --hot: #ff3b30;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #08090b;
  color: var(--ink);
  overscroll-behavior-y: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.app-shell {
  --mobile-function-bar-space: 70px;
  position: relative;
  min-height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: calc(var(--mobile-function-bar-space) + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(77, 141, 255, 0.12), transparent 220px),
    var(--bg);
}

.app-shell.function-grid-two-rows {
  --mobile-function-bar-space: 114px;
}

.topbar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 16, 20, 0.86);
  backdrop-filter: blur(18px);
}

.brand-title {
  display: none;
}

.brand-dot {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #222833;
  color: var(--active-2);
  font-size: 12px;
  font-weight: 700;
}

.topbar h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0;
}

.mobile-function-title {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 42%;
  margin: 0;
  overflow: hidden;
  color: #f4f6f8;
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.brand-title span,
.desktop-brand-picker,
.desktop-function-browser {
  display: none;
}

.content-header {
  display: contents;
}

.camera-toolbar {
  position: relative;
  z-index: 40;
  top: auto;
  right: auto;
  grid-column: 1;
  justify-self: start;
}

.camera-toolbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 78px;
  height: 38px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(77, 141, 255, 0.45);
  border-radius: 7px;
  background: rgba(25, 34, 48, 0.94);
  color: #fff;
}

.camera-toolbar-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #9ca5b2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.camera-toolbar-toggle strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-brand-logo.sony {
  font-family: Arial Black, Arial, sans-serif;
}

.mobile-brand-logo.canon {
  color: #f04b52;
  font-family: Georgia, serif;
  font-size: 16px;
}

.mobile-brand-logo.nikon {
  padding: 2px 5px;
  border-radius: 2px;
  background: #f4d000;
  color: #111;
}

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

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

.camera-toolbar-panel {
  position: fixed;
  z-index: 60;
  top: calc(64px + env(safe-area-inset-top));
  right: 12px;
  left: 12px;
  display: none;
  width: auto;
  max-width: 496px;
  margin-inline: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: #171b22;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.68);
}

.camera-toolbar.open .camera-toolbar-panel {
  display: grid;
  gap: 8px;
}

.camera-control {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.camera-control-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.mobile-brand-options {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mobile-brand-option {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 52px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #20252d;
}

.mobile-brand-option:hover,
.mobile-brand-option.active {
  border-color: rgba(77, 141, 255, 0.72);
  background: rgba(77, 141, 255, 0.14);
}

.mobile-brand-option:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.mobile-brand-option strong {
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.mobile-brand-option.sony strong { font-family: Arial Black, Arial, sans-serif; }
.mobile-brand-option.canon strong { color: #f04b52; font-family: Georgia, serif; font-size: 16px; }
.mobile-brand-option.nikon strong { padding: 2px 5px; border-radius: 2px; background: #f4d000; color: #111; }
.mobile-brand-option.fujifilm strong { color: #45b97c; font-family: Arial Black, Arial, sans-serif; font-size: 10px; }
.mobile-brand-option.lumix strong { font-family: Arial, sans-serif; font-size: 11px; font-weight: 700; }

.mobile-brand-option span {
  color: var(--muted);
  font-size: 11px;
}

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

.camera-control .screen-camera-select {
  width: 100%;
}

.target-camera-picker {
  position: relative;
  display: block;
  min-width: 0;
}

.camera-toolbar-panel .screen-camera-select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.16);
  background: #222831;
}

.camera-toolbar-panel .add-comparison-button {
  width: 100%;
  min-height: 40px;
  margin-top: 2px;
}

.target-camera-logo {
  display: none;
}

.camera-control .remove-camera-button {
  position: static;
  width: 32px;
  height: 32px;
}

.module-tabs {
  position: fixed;
  z-index: 19;
  bottom: calc(var(--mobile-function-bar-space) + env(safe-area-inset-bottom));
  left: 50%;
  width: min(100%, 520px);
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 7px 12px 6px;
  border-top: 1px solid var(--line);
  background: rgba(14, 16, 20, 0.94);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
  transform: translateX(-50%);
}

.module-tabs::-webkit-scrollbar,
.bottom-tabs::-webkit-scrollbar {
  display: none;
}

.module-tabs button {
  position: relative;
  display: grid;
  flex: 0 0 58px;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 5px 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.module-tabs .category-icon,
.landscape-category-list .category-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.module-tabs button.active {
  color: var(--active-2);
  font-weight: 700;
}

.module-tabs button.active::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--active);
  content: "";
  transform: translateX(-50%);
}

.screen-stack {
  display: grid;
  gap: 14px;
  min-height: calc(
    100dvh - 130px - var(--mobile-function-bar-space) -
      env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
  padding: 0 12px 16px;
}

.single-function-note {
  order: 0;
  font-size: 17px;
}

#sourceCard {
  order: 1;
}

#targetCard {
  order: 2;
}

.screen-card {
  display: flex;
  flex-direction: column;
}

.screen-card .camera-screen {
  order: 1;
}

.screen-card .screen-card-heading {
  order: 2;
}

.screen-stack:not(.comparing) {
  align-content: center;
}

.app-shell.comparing .single-function-note {
  display: none;
}

.app-shell.comparing .screen-stack {
  height: calc(
    100dvh - 64px - var(--mobile-function-bar-space) - 71px -
      env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
  min-height: 0;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  padding-top: 8px;
  padding-bottom: 8px;
}

.app-shell.comparing .screen-card {
  width: min(100%, 520px);
  margin-inline: auto;
  gap: 5px;
}

.app-shell.comparing .screen-card-heading {
  min-height: 32px;
}

.single-function-note {
  display: grid;
  justify-items: stretch;
  gap: 4px;
  padding: 2px 2px 12px;
  border-bottom: 0;
  text-align: left;
}

.single-function-note strong {
  display: none;
}

.single-function-note p {
  font-size: 17px;
  line-height: 1.55;
  text-align: left;
}

.screen-card-heading {
  justify-items: center;
}

.mobile-search-button {
  display: grid;
  grid-column: 2;
  place-items: center;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(23, 28, 35, 0.94);
  color: #d6deea;
}

.mobile-search-button svg,
.mobile-search-field svg,
.mobile-search-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.mobile-search-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(5px);
}

.mobile-search-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 520px);
  height: min(72dvh, 620px);
  padding: calc(10px + env(safe-area-inset-top)) 12px 12px;
  border-bottom: 1px solid var(--line);
  background: #11151b;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.58);
}

.mobile-search-panel > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  padding-bottom: 10px;
}

.mobile-search-field {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(77, 141, 255, 0.58);
  border-radius: 7px;
  background: #0b0e12;
  color: #8e9bab;
}

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

.mobile-search-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #191e25;
  color: #b7c0cd;
}

.mobile-search-results {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
}

.mobile-search-results button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  text-align: left;
}

.mobile-search-results .category-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #8eb8ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mobile-search-results button > span {
  display: grid;
  gap: 2px;
}

.mobile-search-results strong {
  font-size: 15px;
}

.mobile-search-results small {
  color: var(--muted);
  font-size: 11px;
}

.mobile-search-empty {
  padding: 30px 10px;
  color: var(--muted);
  text-align: center;
}

body.mobile-search-open {
  overflow: hidden;
}

.single-function-note strong {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.single-function-note p {
  margin: 0;
  color: #c7ced8;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.screen-card {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.screen-card-heading {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.screen-card-heading .screenshot-tabs {
  flex: 0 1 auto;
  min-width: 0;
  justify-content: center;
}

.screenshot-description {
  flex: 0 1 auto;
  max-width: min(52%, 420px);
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(77, 141, 255, 0.34);
  border-radius: 999px;
  background: rgba(77, 141, 255, 0.09);
  color: #bcd3fa;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-comparison-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 4px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(77, 141, 255, 0.5);
  border-radius: 6px;
  background: rgba(77, 141, 255, 0.1);
  color: #cfe0ff;
  font-size: 13px;
  font-weight: 550;
}

.add-comparison-button span {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.add-comparison-button:hover,
.add-comparison-button:focus-visible {
  border-style: solid;
  border-color: var(--active);
  outline: none;
  background: rgba(77, 141, 255, 0.16);
}

.add-comparison-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  width: min(320px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.add-comparison-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.add-comparison-panel select {
  width: 100%;
  min-height: 42px;
  padding: 0 9px;
  border: 1px solid rgba(77, 141, 255, 0.58);
  border-radius: 6px;
  outline: none;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
}

.add-comparison-actions {
  display: flex;
  gap: 7px;
}

.add-cancel-button,
.add-confirm-button {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  font-weight: 600;
}

.add-cancel-button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.add-confirm-button {
  border: 1px solid var(--active);
  background: #3579eb;
  color: #fff;
}

.active-card {
  border-color: rgba(77, 141, 255, 0.62);
  box-shadow: 0 0 0 1px rgba(77, 141, 255, 0.24);
}

.screen-label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.camera-identity {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 7px;
}

.camera-slot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(77, 141, 255, 0.55);
  border-radius: 4px;
  background: rgba(77, 141, 255, 0.14);
  color: var(--active-2);
  font-size: 11px;
  font-weight: 700;
}

.screen-camera-select {
  width: clamp(92px, 30vw, 180px);
  min-width: 92px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(77, 141, 255, 0.58);
  border-radius: 6px;
  outline: none;
  background: rgba(77, 141, 255, 0.12);
  color: #eef3f9;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.screen-camera-select:hover,
.screen-camera-select:focus {
  border-color: var(--active);
  background: rgba(77, 141, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(77, 141, 255, 0.14);
}

.remove-camera-button {
  position: absolute;
  top: 10px;
  right: 10px;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.remove-camera-button:hover,
.remove-camera-button:focus-visible {
  border-color: rgba(255, 92, 87, 0.55);
  outline: none;
  color: #ff8a86;
}

.camera-screen {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.camera-body-image {
  display: none;
}

.camera-display-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: #000;
}

.screen-content-layer {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.screenshot-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 1px 1px;
  scrollbar-width: none;
}

.screenshot-tabs::-webkit-scrollbar {
  display: none;
}

.screenshot-tabs button {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 32px;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.camera-screen .screen-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.camera-screen.empty .camera-display-layer {
  display: grid;
  place-items: center;
}

.camera-screen.empty .screen-content-layer {
  display: none;
}

.screen-empty {
  color: var(--muted);
  font-size: 13px;
}

.camera-screen.unavailable .screen-empty {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
}

.hotspot {
  border: 2px solid transparent;
  background: transparent;
  color: transparent;
  padding: 0;
}

.hotspot.active {
  z-index: 4;
}

.body-hotspot {
  display: none;
}

.landscape-menu-button,
.landscape-panel-layer {
  display: none;
}

.desktop-context-header {
  display: none;
}

.bottom-tabs {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 50%;
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(14, 16, 20, 0.92);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.bottom-tabs button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #b6bfcb;
  font-size: clamp(13px, 4vw, 16px);
  font-weight: 600;
  white-space: nowrap;
}

.bottom-tabs button.active {
  border-color: #5b9aff;
  background: #3579eb;
  color: #fff;
  box-shadow: 0 5px 16px rgba(53, 121, 235, 0.3);
}

.hidden {
  display: none !important;
}

@media (min-width: 760px) {
  .app-shell {
    max-width: 900px;
  }

  .screen-stack.comparing {
    grid-template-columns: 1fr 1fr;
  }

  .screen-stack.comparing .add-comparison-panel {
    grid-column: 1 / -1;
  }

  .screen-stack.comparing .single-function-note {
    grid-column: 1 / -1;
  }

  .bottom-tabs {
    width: min(100%, 900px);
  }
}

@media (min-width: 99999px) and (min-height: 640px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body {
    display: grid;
    place-items: center;
  }

  .app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    width: min(100%, 1440px);
    height: 100dvh;
    min-height: 0;
    max-width: 1440px;
    padding: clamp(14px, 2vw, 28px);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 34px auto minmax(0, 1fr);
    min-height: 68px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    backdrop-filter: none;
  }

  .brand-dot {
    width: 34px;
    height: 34px;
  }

  .topbar h1 {
    text-align: left;
    font-size: 17px;
  }

  .brand-title {
    display: grid;
    gap: 3px;
  }

  .brand-title span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
  }

  .desktop-brand-picker {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .desktop-brand-picker::-webkit-scrollbar {
    display: none;
  }

  .desktop-brand-option {
    display: grid;
    flex: 0 0 auto;
    min-width: 76px;
    min-height: 46px;
    place-content: center;
    gap: 2px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    text-align: center;
  }

  .desktop-brand-option:hover {
    background: rgba(255, 255, 255, 0.045);
  }

  .desktop-brand-option.active {
    border-color: rgba(77, 141, 255, 0.55);
    background: rgba(77, 141, 255, 0.12);
    color: var(--active-2);
  }

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

  .desktop-brand-option strong {
    color: #eef3f9;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.25px;
  }

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

  .desktop-brand-option.nikon strong {
    justify-self: center;
    padding: 2px 5px;
    border-radius: 2px;
    background: #f4d000;
    color: #111;
  }

  .desktop-brand-option.fujifilm strong {
    font-size: 9px;
    letter-spacing: 0.2px;
  }

  .desktop-brand-option.lumix strong {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .desktop-brand-option span {
    font-size: 9px;
  }

  .desktop-function-browser {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    grid-template-areas:
      "search categories"
      "functions functions";
    align-items: center;
    gap: 7px 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }

  .desktop-function-search-row {
    grid-area: search;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .desktop-function-search {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 8px;
    background: #0b0e12;
  }

  .desktop-function-search:focus-within {
    border-color: var(--active);
    box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.13);
  }

  .desktop-function-search svg {
    width: 18px;
    fill: none;
    stroke: #778394;
    stroke-width: 2;
  }

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

  .desktop-function-search kbd {
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: #7f8998;
    font-family: inherit;
    font-size: 10px;
  }

  .desktop-function-count {
    flex: 0 0 auto;
    color: #7f8998;
    font-size: 11px;
  }

  .desktop-category-filters,
  .desktop-function-results {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .desktop-category-filters {
    grid-area: categories;
    justify-content: flex-end;
  }

  .desktop-category-filters button {
    min-height: 29px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
  }

  .desktop-category-filters button:hover,
  .desktop-category-filters button.active {
    border-color: var(--active);
    background: var(--active);
    color: #fff;
  }

  .desktop-function-results {
    grid-area: functions;
    max-height: 64px;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .desktop-function-results button {
    min-height: 29px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: var(--surface-2);
    color: #b4bdca;
    font-size: 12px;
  }

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

  .desktop-function-empty {
    padding: 6px 2px;
    color: #7f8998;
    font-size: 12px;
  }

  .content-header {
    position: relative;
    display: grid;
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-width: 0;
    min-height: 58px;
    padding: 10px 0 8px;
    border-bottom: 1px solid var(--line);
  }

  .desktop-context-header {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
  }

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

  .desktop-context-header p {
    max-height: 48px;
    margin: 0;
    overflow-y: auto;
    color: #c7ced8;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    scrollbar-width: none;
  }

  .desktop-context-header p::-webkit-scrollbar {
    display: none;
  }

  .camera-toolbar {
    position: relative;
    z-index: 40;
    top: auto;
    right: auto;
    align-self: center;
  }

  .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: 8px;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .camera-control {
    grid-template-columns: minmax(100px, 140px) auto;
  }

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

  .camera-toolbar-panel .add-comparison-button {
    flex: 0 0 auto;
  }

  .camera-toolbar-panel .add-comparison-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 2;
    display: grid;
    width: 320px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.5);
  }

  .module-tabs,
  .bottom-tabs {
    display: none;
  }

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

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

  .screen-stack:not(.comparing) .add-comparison-panel {
    width: min(100%, calc((100dvh - 300px) * 16 / 9));
    max-width: 980px;
  }

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

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

  .screen-card {
    min-width: 0;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .screen-card-heading {
    min-height: 34px;
  }

  .active-card {
    border: 0;
    box-shadow: none;
  }

  .camera-screen {
    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-body-template {
    width: min(100%, calc((100dvh - 300px) * 4 / 3));
    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, .65);
  }

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

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

  .screen-camera-select {
    width: clamp(120px, 15vw, 210px);
  }

  .screenshot-tabs {
    justify-content: center;
  }

  .screenshot-tabs button {
    min-height: 36px;
    max-width: 240px;
    font-size: 14px;
  }

}

@media (min-width: 99999px) and (max-width: 1080px) and (min-height: 640px) {
  .desktop-function-browser {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }

  .desktop-category-filters button {
    padding-inline: 9px;
  }
}

@media (min-width: 99999px) and (min-height: 640px) {
  .topbar {
    grid-template-columns: 34px auto minmax(0, 1fr) auto auto;
    min-height: 50px;
    padding: 0;
  }

  .desktop-brand-picker {
    position: relative;
    display: block;
    grid-column: 4;
    min-width: auto;
    overflow: visible;
  }

  .desktop-selected-brand {
    display: grid;
    grid-template-columns: auto auto 8px;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
  }

  .desktop-selected-brand span {
    color: var(--muted);
    font-size: 11px;
  }

  .desktop-selected-brand i,
  .desktop-feature-trigger b {
    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: 60;
    top: calc(100% + 7px);
    right: 0;
    display: grid;
    width: 210px;
    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: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    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-selected-brand strong,
  .desktop-brand-menu-option strong {
    color: #eef3f9;
    font-size: 12px;
    font-weight: 850;
  }

  .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 {
    font-size: 9px;
  }

  .desktop-selected-brand.lumix strong,
  .desktop-brand-menu-option.lumix strong {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .desktop-brand-menu-option span {
    font-size: 11px;
  }

  .desktop-function-browser {
    position: relative;
    z-index: 45;
    grid-template-columns: auto minmax(220px, 320px);
    grid-template-areas: none;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 4px 0;
  }

  .desktop-feature-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 180px;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    text-align: left;
  }

  .desktop-feature-trigger:hover,
  .desktop-feature-trigger[aria-expanded="true"] {
    background: var(--surface-2);
  }

  .desktop-feature-trigger > span {
    display: flex;
    flex: 1;
    align-items: baseline;
    gap: 8px;
  }

  .desktop-feature-trigger small {
    color: var(--active-2);
    font-size: 11px;
  }

  .desktop-feature-trigger strong {
    font-size: 14px;
  }

  .desktop-function-search-row {
    grid-area: auto;
  }

  .desktop-function-search {
    height: 34px;
  }

  .desktop-feature-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    display: none;
    grid-template-columns: 150px minmax(0, 1fr);
    width: min(650px, 100%);
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #171c23;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  }

  .desktop-function-browser.open .desktop-feature-menu {
    display: grid;
  }

  .desktop-category-filters {
    display: grid;
    grid-area: auto;
    align-content: start;
    justify-content: stretch;
    gap: 2px;
    padding: 8px;
    border-right: 1px solid var(--line);
    background: #11151a;
  }

  .desktop-category-filters button {
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    text-align: left;
  }

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

  .desktop-feature-menu-content {
    padding: 16px;
  }

  .desktop-feature-menu-content > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .desktop-function-results {
    display: grid;
    grid-area: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-height: 220px;
  }

  .desktop-function-results button {
    min-height: 36px;
    text-align: left;
  }

  .content-header {
    min-height: 48px;
    padding: 6px 0;
  }

  .camera-toolbar {
    grid-column: 5;
  }

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

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

@media (orientation: landscape) and (max-height: 600px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    --landscape-side-width: clamp(72px, 9vw, 88px);
    width: 100%;
    height: 100dvh;
    min-height: 0;
    max-width: none;
    padding: 0;
    overflow: hidden;
    background: #08090b;
  }

  .module-tabs,
  .bottom-tabs {
    display: none;
  }

  .topbar {
    display: contents;
  }

  .camera-toolbar {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }

  .camera-toolbar-toggle {
    width: auto;
    min-width: 104px;
    max-width: min(180px, calc(100vw - 24px));
    padding-inline: 12px;
    white-space: nowrap;
  }

  .camera-toolbar-toggle strong {
    overflow: visible;
    text-overflow: clip;
  }

  .camera-toolbar-panel {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 24px));
    margin: 0;
  }

  .screen-stack,
  .screen-stack:not(.comparing) {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    place-items: center;
    align-content: center;
    gap: 8px;
    overflow: hidden;
    padding: 0;
  }

  .screen-card {
    width: min(
      calc(100dvh * 16 / 9),
      100vw
    );
    max-width: none;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #000;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  }

  .screen-label {
    position: absolute;
    z-index: 6;
    top: 8px;
    right: 8px;
    left: 8px;
    pointer-events: none;
  }

  .screen-card-heading {
    position: fixed;
    z-index: 32;
    inset: 0;
    display: block;
    width: auto;
    min-height: 0;
    pointer-events: none;
    transform: none;
  }

  .screen-card-heading .screenshot-tabs {
    position: absolute;
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    flex-direction: column;
    max-width: none;
    max-height: min(
      42dvh,
      calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))
    );
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: auto;
    transform: none;
  }

  .screenshot-tabs {
    position: absolute;
    z-index: 7;
    top: 8px;
    left: 8px;
    justify-content: flex-start;
    max-width: calc(100% - 100px);
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(10, 12, 16, 0.78);
    backdrop-filter: blur(10px);
  }

  .screenshot-tabs button {
    flex: 0 0 auto;
    width: 32px;
    min-width: 32px;
    min-height: 28px;
    max-width: 150px;
    border: 0;
    background: transparent;
    font-size: 12px;
  }

  .screen-card-heading .screenshot-description {
    position: absolute;
    right: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 50%;
    width: max-content;
    max-width: min(60vw, 420px);
    pointer-events: none;
    transform: translateX(-50%);
  }

  .screen-stack:not(.comparing) #sourceCard .screen-label {
    position: fixed;
    top: 50%;
    right: max(8px, env(safe-area-inset-right));
    left: auto;
    grid-template-columns: 1fr;
    width: 76px;
    transform: translateY(calc(-100% - 33px));
  }

  .screen-stack:not(.comparing) #sourceCard .camera-identity {
    grid-column: 1;
    flex-direction: column;
    width: 100%;
  }

  .screen-stack:not(.comparing) #sourceCard .camera-identity::before {
    color: var(--muted);
    font-size: 10px;
    content: "品牌";
  }

  .screen-stack:not(.comparing) #sourceCard .camera-slot {
    display: none;
  }

  .screen-stack:not(.comparing) #sourceCard .screen-camera-select {
    width: 100%;
    min-width: 0;
    padding-inline: 5px;
    text-align: center;
  }

  .screen-stack:not(.comparing) #sourceCard .add-comparison-button {
    display: none;
  }

  .camera-identity {
    gap: 4px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(10, 12, 16, 0.78);
    backdrop-filter: blur(10px);
    pointer-events: auto;
  }

  .screen-camera-select {
    width: clamp(88px, 18vw, 150px);
    min-width: 88px;
    min-height: 28px;
    border: 0;
    background: transparent;
    font-size: 13px;
  }

  .camera-slot {
    width: 20px;
    height: 20px;
  }

  .add-comparison-button {
    min-height: 30px;
    padding: 0 8px;
    border-color: rgba(158, 196, 255, 0.38);
    background: rgba(10, 12, 16, 0.78);
    font-size: 12px;
    backdrop-filter: blur(10px);
    pointer-events: auto;
  }

  .remove-camera-button {
    top: 0;
    right: 0;
    width: 29px;
    height: 29px;
    background: rgba(10, 12, 16, 0.78);
    backdrop-filter: blur(10px);
    pointer-events: auto;
  }

  .camera-screen {
    width: 100%;
    border-radius: 6px;
  }

  .screen-card:has(.camera-screen.has-body-template) {
    grid-template-rows: auto auto;
    width: min(
      calc(100dvh * 4 / 3),
      100vw
    );
    gap: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .screen-card:has(.camera-screen.has-body-template)
    .screen-card-heading {
    position: fixed;
    z-index: 32;
    inset: 0;
    width: auto;
    min-height: 0;
    margin-top: 0;
    pointer-events: none;
    transform: none;
  }

  .screen-card:has(.camera-screen.has-body-template)
    .screen-card-heading:has(.screenshot-tabs.hidden):has(.screenshot-description.hidden) {
    display: none;
  }

  .camera-screen.has-body-template {
    order: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: scale(var(--landscape-body-scale, 1));
  }

  .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;
  }

  .single-function-note {
    position: fixed;
    z-index: 31;
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    display: grid;
    gap: 5px;
    width: calc(var(--landscape-side-width) - 16px);
    max-height: min(
      52dvh,
      calc(100dvh - 112px - env(safe-area-inset-top) - env(safe-area-inset-bottom))
    );
    padding: 9px 10px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(10, 12, 16, 0.82);
    text-align: left;
    backdrop-filter: blur(10px);
    overscroll-behavior: contain;
  }

  .single-function-note strong {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
  }

  .single-function-note p {
    margin: 0;
    color: #c7ced8;
    font-size: 11px;
    line-height: 1.5;
  }

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

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

  .add-comparison-panel {
    position: fixed;
    z-index: 60;
    top: 50%;
    left: 50%;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.62);
    transform: translate(-50%, -50%);
  }

  .landscape-menu-button {
    position: fixed;
    z-index: 30;
    top: 50%;
    right: max(8px, env(safe-area-inset-right));
    display: grid;
    place-items: center;
    width: 66px;
    min-height: 52px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(14, 17, 22, 0.88);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
  }

  .landscape-menu-button span {
    color: var(--muted);
    font-size: 10px;
  }

  .landscape-menu-button strong {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .landscape-panel-layer {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(4px);
  }

  .landscape-control-panel {
    position: absolute;
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #15181e;
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.48);
    overscroll-behavior: contain;
  }

  .landscape-control-panel > header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 6px 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(21, 24, 30, 0.96);
    grid-column: 1 / -1;
  }

  .landscape-control-panel > header span {
    color: var(--muted);
    font-size: 10px;
  }

  .landscape-control-panel h2 {
    margin: 2px 0 0;
    font-size: 17px;
  }

  .landscape-control-panel > header button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 21px;
  }

  .landscape-control-panel section {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
  }

  .landscape-control-panel section:first-of-type {
    border-right: 1px solid var(--line);
  }

  .landscape-control-panel h3 {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }

  .landscape-category-list,
  .landscape-function-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .landscape-category-list button,
  .landscape-function-list button {
    min-height: 34px;
    padding: 0 9px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .landscape-category-list button.active,
  .landscape-function-list button.active {
    border-color: rgba(77, 141, 255, 0.7);
    background: rgba(77, 141, 255, 0.16);
    color: #fff;
  }

}
