:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "CameraSans", "Microsoft YaHei", "Yu Gothic UI", sans-serif;
  color: #252724;
  background: #f5f5f3;
  font-synthesis: none;
  --orange: #c63b00;
  --border: #dedfd9;
  --muted: #686d64;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.reset-button {
  padding: 10px 11px;
  border: 0;
  color: #686d64;
  background: transparent;
  font-size: 12px;
}

.model-name { color: #74796f; font-size: 12px; }
.no-results { padding: 10px; font-size: 13px; }
.options-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 25px;
  background: rgb(0 0 0 / 55%);
}
.options-panel {
  width: min(100%, 390px);
  max-height: 100%;
  overflow-y: auto;
  border: 1px solid #777;
  background: #252525;
  box-shadow: 0 4px 30px #0008;
}
.options-title { padding: 10px 14px; border-bottom: 1px solid #777; }
.option-row {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  color: white;
  background: transparent;
  text-align: left;
}
.option-row.selected { background: var(--orange); }
.options-panel .back-button { margin: 8px 14px; }
.dpad [data-key="ArrowUp"] { grid-area: 1 / 2; }
.dpad [data-key="ArrowLeft"] { grid-area: 2 / 1; }
.dpad [data-key="Enter"] { grid-area: 2 / 2; }
.dpad [data-key="ArrowRight"] { grid-area: 2 / 3; }
.dpad [data-key="ArrowDown"] { grid-area: 3 / 2; }
.slot-button span { display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setting-field select { margin-top: 9px; }
.reference-panel { display: block !important; }
.reference-panel summary { cursor: pointer; }
.reference-panel img { display: block; max-width: 100%; height: auto; margin: 12px 0; }
.camera-footer .back-button { margin-left: auto; }
.level-groups .menu-row.selected { background: transparent; }
.level-items .group-button.selected { background: #272727; opacity: .55; }
@media (max-width: 400px) {
  .model-name { display: none; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #e97435;
  outline-offset: 3px;
}

button:focus-visible {
  position: relative;
  z-index: 2;
}

input,
select {
  min-width: 0;
}

a {
  color: #8c300d;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

main,
.app,
.page {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}

main .app,
main .page,
.app main,
.page main {
  padding: 0;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #1f221e;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #383d34;
  border-radius: 5px;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.intro {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 14px;
}

.search-wrap {
  position: relative;
  flex: 1 1 300px;
  min-width: 0;
}

#search {
  display: block;
  width: 100%;
  min-height: 43px;
  padding: 10px 14px;
  border: 1px solid #d3d6ce;
  border-radius: 7px;
  color: #232720;
  background: #fff;
  appearance: none;
}

#search::placeholder {
  color: #858a80;
}

.results {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 340px;
  overflow: auto;
  padding: 5px;
  border: 1px solid #d6d9d0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(28 33 22 / 12%);
}

.results:empty {
  display: none;
}

.result-button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  line-height: 1.55;
}

.result-button:hover,
.result-button:focus-visible {
  background: #f1f2ed;
}

.result-button small,
.result-button .result-path {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.segmented {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid #d7dad2;
  border-radius: 7px;
  background: #eeefea;
}

.segmented button {
  min-height: 35px;
  padding: 7px 13px;
  border: 0;
  border-radius: 4px;
  color: #5e6459;
  background: transparent;
  font-size: 13px;
}

.segmented button[aria-pressed="true"] {
  color: #fff;
  background: #242822;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 23px;
}

.quick-links button {
  padding: 7px 11px;
  border: 1px solid #d7d9d1;
  border-radius: 5px;
  color: #50564b;
  background: transparent;
  font-size: 12px;
  line-height: 1.35;
}

.quick-links button:hover {
  color: #8c300d;
  border-color: #c78564;
  background: #fffaf6;
}

.screens {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.screens.view-compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screens.view-zh [data-lang="ja"],
.screens.view-ja [data-lang="zh"] {
  display: none;
}

.screens.view-zh .camera-card,
.screens.view-ja .camera-card {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.camera-card {
  min-width: 0;
}

.camera-card h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.camera-card h2 small,
.camera-card .caption {
  color: #747a6d;
  font-size: 11px;
  font-weight: 400;
}

.bezel {
  min-width: 0;
  padding: 14px;
  border: 1px solid #2c2e2b;
  border-radius: 8px;
  background: #20221f;
  box-shadow: 0 3px 7px rgb(19 24 15 / 8%);
}

.camera-screen {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #080908;
  color: #ededeb;
  background: #0d0e0d;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.3;
}

.camera-header {
  display: flex;
  flex: 0 0 33px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 0 11px;
  border-bottom: 1px solid #353733;
  background: #191b18;
  font-size: 0.93em;
}

.camera-header > :first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-count {
  flex-shrink: 0;
  color: #b6b9b1;
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}

.menu-body {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: 40px minmax(100px, 43%) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.tab-rail {
  display: grid;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  min-height: 0;
  background: #0d0f0d;
}

.tab-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 2px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #1a1d18;
  color: #ecefea;
  background: color-mix(in srgb, var(--icon-color, #898e82) 28%, #121411);
  font-size: 18px;
  line-height: 1;
  opacity: 0.67;
}

.tab-button[aria-pressed="true"],
.tab-button.active {
  background: var(--icon-color, #666d5f);
  opacity: 1;
}

.tab-button:hover {
  opacity: 1;
}

.tab-icon {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: invert(1);
}

.group-list,
.item-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #64665f #151713;
}

.group-list {
  border-right: 1px solid #474940;
  background: #252822;
}

.item-list {
  background: #10120f;
}

.group-button,
.menu-row {
  display: flex;
  flex: 0 0 calc(100% / 7);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0 9px;
  border: 0;
  border-bottom: 1px solid #3a3d35;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  line-height: 1.25;
}

.group-button:hover,
.menu-row:hover {
  background: #33372e;
}

.group-number,
.group-button .number {
  display: inline-grid;
  flex: 0 0 23px;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 1px;
  color: #fff;
  background: var(--tab-color, #767c6c);
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}

.group-label,
.row-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-value {
  flex: 0 1 42%;
  min-width: 0;
  overflow: hidden;
  color: #e1b375;
  font-size: 0.87em;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-button.selected,
.group-button[aria-current="true"],
.menu-row.selected,
.menu-row[aria-current="true"] {
  color: #fff;
  background: var(--orange);
}

.selected .row-value {
  color: #fff2d8;
}

.selected .group-number,
.selected .number {
  background: rgb(0 0 0 / 20%);
}

.menu-body.level-items {
  grid-template-columns: 40px 54px minmax(0, 1fr);
}

.menu-body.level-items .group-button {
  justify-content: center;
  padding: 0 4px;
  gap: 0;
}

.menu-body.level-items .group-label {
  flex-basis: 0;
  width: 0;
  opacity: 0;
}

.menu-body.level-detail {
  display: block;
}

.menu-body.level-detail .tab-rail,
.menu-body.level-detail .group-list {
  display: none;
}

.menu-body.level-detail .item-list {
  width: 100%;
  height: 100%;
}

.menu-body.level-detail .menu-row {
  padding-right: 18px;
  padding-left: 18px;
}

.camera-footer {
  display: flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border-top: 1px solid #3a3c35;
  background: #080a08;
  color: #babeb2;
  font-size: 0.78em;
}

.back-button,
.page-button {
  min-width: 28px;
  min-height: 23px;
  padding: 3px 7px;
  border: 1px solid #565b4f;
  border-radius: 3px;
  color: #e3e7db;
  background: #171b13;
  font-size: inherit;
  line-height: 1;
}

.back-button:hover,
.page-button:hover {
  border-color: #929b84;
  background: #303729;
}

.pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.camera-brand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 3px 0;
  color: #f0f0ed;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.camera-brand > :last-child {
  color: #b2b5ad;
  font-weight: 400;
  letter-spacing: 0;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 21px 0 27px;
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-template-rows: repeat(3, 30px);
  gap: 3px;
}

.dpad button,
.physical-menu button,
button.physical-menu {
  border: 1px solid #d0d4c8;
  border-radius: 5px;
  color: #424a38;
  background: #fff;
  font-size: 13px;
}

.dpad button:hover,
.physical-menu button:hover,
button.physical-menu:hover {
  border-color: #a2ab95;
  background: #eceedf;
}

.dpad [data-key="up"],
.dpad .up,
.dpad [data-action="up"] {
  grid-area: 1 / 2;
}

.dpad [data-key="left"],
.dpad .left,
.dpad [data-action="left"] {
  grid-area: 2 / 1;
}

.dpad [data-key="center"],
.dpad [data-key="enter"],
.dpad .center,
.dpad [data-action="enter"] {
  grid-area: 2 / 2;
}

.dpad [data-key="right"],
.dpad .right,
.dpad [data-action="right"] {
  grid-area: 2 / 3;
}

.dpad [data-key="down"],
.dpad .down,
.dpad [data-action="down"] {
  grid-area: 3 / 2;
}

.physical-menu button,
button.physical-menu {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.controls-row p,
.controls-row small {
  margin: 0;
  color: #747c69;
  font-size: 12px;
  line-height: 1.7;
}

.detail-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.detail-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.detail-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.jp-name {
  color: #747b6c;
  font-size: 14px;
}

.breadcrumbs {
  margin: 7px 0 15px;
  color: #747b6d;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.note {
  max-width: 950px;
  margin: 13px 0 20px;
  color: #59614f;
  font-size: 14px;
  line-height: 1.85;
}

.setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 24px;
  max-width: 950px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #3f4735;
  font-size: 13px;
  line-height: 1.5;
}

.field-label small {
  color: #818875;
  font-size: 11px;
}

.field-label select,
.setting-grid select {
  display: block;
  width: 100%;
  min-height: 41px;
  padding: 8px 30px 8px 11px;
  border: 1px solid #d6dacf;
  border-radius: 6px;
  color: #313b27;
  background-color: #fbfcf9;
  font-size: 13px;
}

.field-label select:disabled {
  color: #818876;
  background-color: #f1f3ec;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.slot-button {
  min-width: 0;
  min-height: 59px;
  padding: 9px 6px;
  overflow: hidden;
  border: 1px solid #dce0d4;
  border-radius: 6px;
  color: #59634b;
  background: #f9fbf6;
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.slot-button strong,
.slot-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-button small {
  margin-top: 3px;
  color: #858e77;
  font-size: 10px;
}

.slot-button.current,
.slot-button[aria-pressed="true"] {
  border-color: var(--orange);
  color: #8c300d;
  background: #fff4eb;
  box-shadow: inset 0 0 0 1px var(--orange);
}

.rename-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0 21px;
}

.rename-form label {
  display: flex;
  flex: 1 1 220px;
  flex-direction: column;
  gap: 7px;
  max-width: 480px;
  font-size: 13px;
}

#slotName {
  min-height: 41px;
  padding: 9px 11px;
  border: 1px solid #d6dacf;
  border-radius: 6px;
  color: #313b27;
  background: #fbfcf9;
}

.rename-form button {
  min-height: 41px;
  padding: 9px 16px;
  border: 1px solid #ced5c2;
  border-radius: 6px;
  color: #465537;
  background: #f1f5e9;
  font-size: 13px;
}

.official-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.7;
}

.hint-lock {
  margin: 12px 0;
  padding: 10px 13px;
  border: 1px solid #e8c995;
  border-radius: 5px;
  color: #86551d;
  background: #fff8eb;
  font-size: 12px;
  line-height: 1.7;
}

.empty-state {
  padding: 24px 16px;
  color: #929b85;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.reference-panel {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 23px;
  color: #818a74;
  font-size: 12px;
  line-height: 1.8;
}

.reference-panel a {
  color: #66745a;
}

footer {
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid #e1e5da;
  color: #8b947e;
  font-size: 11px;
  line-height: 1.8;
}

footer p {
  margin: 4px 0;
}

@media (max-width: 1000px) {
  .screens.view-compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .camera-card,
  .screens.view-zh .camera-card,
  .screens.view-ja .camera-card {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
  }

  .camera-screen {
    font-size: 15px;
  }

  .slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  main,
  .app,
  .page {
    padding: 18px 12px;
  }

  .masthead {
    gap: 12px;
    margin-bottom: 26px;
  }

  .wordmark {
    gap: 8px;
    font-size: 12px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
    font-size: 24px;
  }

  h1 {
    font-size: 25px;
  }

  .intro {
    margin-bottom: 18px;
    font-size: 13px;
  }

  .toolbar {
    gap: 9px;
    margin-top: 18px;
  }

  .search-wrap {
    flex-basis: 100%;
  }

  .segmented {
    max-width: 100%;
  }

  .segmented button {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }

  .quick-links {
    gap: 6px;
    margin-bottom: 20px;
  }

  .screens {
    gap: 18px;
  }

  .bezel {
    padding: 9px;
  }

  .camera-screen {
    min-height: 284px;
    font-size: 14px;
  }

  .camera-header {
    flex-basis: 30px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 12px;
  }

  .menu-body {
    grid-template-columns: 30px minmax(80px, 43%) minmax(0, 1fr);
  }

  .menu-body.level-items {
    grid-template-columns: 30px 39px minmax(0, 1fr);
  }

  .tab-icon {
    width: 18px;
    height: 18px;
  }

  .group-button,
  .menu-row {
    gap: 4px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .group-number,
  .group-button .number {
    flex-basis: 19px;
    width: 19px;
    height: 20px;
    font-size: 11px;
  }

  .group-label {
    font-size: 12px;
  }

  .row-value {
    font-size: 11px;
  }

  .camera-footer {
    flex-basis: 28px;
    font-size: 10px;
  }

  .camera-brand {
    padding-top: 8px;
    font-size: 11px;
  }

  .controls-row {
    flex-wrap: wrap;
    gap: 16px;
    margin: 18px 0 22px;
  }

  .detail-panel {
    padding: 18px 15px;
    border-radius: 9px;
  }

  .detail-heading h2 {
    font-size: 18px;
  }

  .jp-name {
    font-size: 12px;
  }

  .note {
    font-size: 13px;
  }

  .setting-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .slot-grid {
    gap: 6px;
  }

  .slot-button {
    min-height: 53px;
    padding: 7px 3px;
    font-size: 11px;
  }
}
