@charset "UTF-8";
@font-face {
  font-family: "Incott UI";
  src: url("fonts/incott-ui-v1.woff2?sha256=7cb683c7ea8c") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --surface: #fdfcf9;
  --ink: #282a27;
  --muted: #656b5f;
  --line: #e1e2d9;
  --accent: #dce9ac;
  --orange: #c7562c;
  --radius: 18px;
  --text-caption: 12px;
  --text-small: 13px;
  --text-ui: 14px;
  --text-section: 16px;
  font-family: "Incott UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-size: var(--text-section);
  line-height: 1.6;
  font-optical-sizing: auto;
  font-kerning: normal;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  border: 0;
  cursor: pointer;
  background: none;
  transition:
    background 0.16s,
    color 0.16s,
    transform 0.16s;
}
button:active {
  transform: translateY(1px);
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 1;
  cursor: not-allowed;

  color: #848a7d;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6d8045;
  outline-offset: 3px;
}
button:hover:not(:disabled) {
  background: #e9ebdf;
}
button.primary {
  background: var(--ink);
  color: var(--surface);
  border-radius: 9px;
  padding: 12px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  font-weight: 550;
}
button.primary:hover:not(:disabled) {
  background: #454b3a;
}
button.secondary {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
button.text-button {
  color: var(--muted);
  font-size: var(--text-ui);
  padding: 6px 8px;
  border-radius: 5px;
}
.skip {
  position: fixed;
  top: -60px;
  left: 10px;
  z-index: 5;
  padding: 10px;
  background: var(--accent);
}
.skip:focus {
  top: 10px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 3.8%;
  gap: 24px;
}
.wordmark {
  font-size: 37px;
  font-weight: 800;
  letter-spacing: -2.7px;
  line-height: 1;
}
.wordmark span {
  font-size: var(--text-ui);
  letter-spacing: 0;
  vertical-align: top;
  margin-left: 4px;
}
.top-divider {
  height: 23px;
  width: 1px;
  background: #d5d6cc;
}
.app-name {
  font-size: var(--text-ui);
  letter-spacing: 1px;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: var(--text-ui);
}
.local-label {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.local-label i,
.stage-dot {
  height: 6px;
  width: 6px;
  background: #8a9f60;
  border-radius: 50%;
  display: inline-block;
}
.top-actions a {
  color: var(--muted);
}
main {
  max-width: 1512px;
  margin: auto;
  padding: 24px 3.8% 116px;
}
.device-bar {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 30px;
}
.eyebrow {
  font-size: var(--text-caption);
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 550;
}
h1 {
  font-size: 33px;
  line-height: 1.25;
  letter-spacing: -1.2px;
  margin: 6px 0 0;
  font-weight: 650;
}
h1 span {
  font-size: var(--text-ui);
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-left: 16px;
}
.device-stats {
  margin: 0 0 0 auto;
  display: flex;
  gap: 38px;
}
.device-stats div {
  min-width: 70px;
}
.device-stats dt {
  font-size: var(--text-small);
  color: var(--muted);
  margin-bottom: 7px;
}
.device-stats dd {
  font-size: var(--text-section);
  font-weight: 550;
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.icon-button {
  font-size: 25px;
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-left: 5px;
}
.notice {
  min-height: 26px;
  font-size: var(--text-ui);
  color: var(--muted);
  margin: 12px 0 10px;
  line-height: 1.7;
}
.notice.error {
  color: #b44227;
}
.notice.success {
  color: #526c2f;
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
}
.device-stage {
  min-width: 0;
  background: #eeefe7;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background-image: radial-gradient(#b8c2a62b 0.7px, transparent 0.7px);
  background-size: 11px 11px;
}
.stage-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: var(--text-ui);
}
.stage-heading .text-button {
  margin-left: auto;
}
.mouse-canvas {
  height: 340px;
  position: relative;
  max-width: 900px;
  margin: auto;

  --mouse-height: 300px;

  --mouse-top: 10px;
}
.mouse-canvas > img {
  position: absolute;
  width: auto;
  height: var(--mouse-height);
  left: 50%;
  top: var(--mouse-top);
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 12px #45482b22);
  user-select: none;
}
.mouse-shadow {
  position: absolute;
  width: 190px;
  height: 70px;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  background: #545a2b15;
  filter: blur(19px);
  border-radius: 50%;
}
.callout-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.callout-lines path {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 136px;
  padding: 9px 12px;
  border-radius: 10px;
  text-align: left;
  background: #fdfcf9df;
  border: 1px solid #e0e3d7;
  font-size: var(--text-ui);

  min-height: 58px;

  line-height: 1.45;
}
.callout b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  font-size: 12px;
  border-radius: 50%;
  border: 1px solid #d6d8cc;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.callout small {
  display: block;
  max-width: 110px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;

  line-height: 1.5;
}
.callout.selected {
  background: var(--accent);
  border-color: #b8ca86;
}
.callout.selected b {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.callout.left {
  left: 7%;
}
.callout.right {
  right: 7%;
  justify-content: flex-end;
  text-align: right;
}
.c0,
.c1 {
  top: 9%;
}
.c2 {
  top: 34%;
}
.c3 {
  top: 48%;
}
.c4 {
  top: 71%;
}
.c5 {
  top: 69%;
}
.canvas-note,
.canvas-mark {
  position: absolute;
  bottom: 9px;
  font-size: var(--text-caption);
  letter-spacing: 1px;
  color: #626c58;
}
.canvas-note {
  left: 25px;
  letter-spacing: 0;
}
.canvas-mark {
  right: 25px;
}
.stage-bottom {
  border-top: 1px solid #dce0d0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 22px;
  font-size: 13px;
}
.stage-bottom > span:first-child {
  font-weight: 550;
}
.stage-bottom > span:last-child {
  color: var(--muted);
}
.preset-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-heading h2 {
  font-size: var(--text-section);
  font-weight: 600;
  margin: 0 0 5px;

  line-height: 1.5;
}
.small-label {
  font-size: var(--text-caption);
  color: var(--muted);
}
.preset-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 190px;
  overflow: auto;
}
.empty-presets {
  font-size: 14px;
  color: var(--muted);
  padding: 18px 0;
  line-height: 1.9;
}
.preset-item {
  border-radius: 9px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  min-height: 45px;
}
.preset-item > button:first-child {
  flex: 1;
  padding: 12px;
  text-align: left;
  font-size: var(--text-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preset-item > button:last-child {
  font-size: 16px;
  padding: 8px;
  color: var(--muted);
}
.add-preset {
  border: 1px dashed #bdc6aa;
  border-radius: 9px;
  min-height: 44px;
  font-size: 14px;
  color: #637249;
}
.preset-tools {
  display: flex;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.preset-tools button {
  font-size: 13px;
  text-align: left;
  flex: 1;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;

  min-height: 44px;

  align-items: center;
}
.preset-note {
  margin-top: auto;
  padding-top: 18px;
}
.preset-note span {
  font-size: var(--text-small);
  font-weight: 550;
}
.preset-note p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  margin: 6px 0 0;
}
.editor {
  margin-top: 27px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-left: 3px;
}
.tabs button {
  font-size: 14px;
  padding: 15px 24px;
  border-radius: 11px 11px 0 0;
  position: relative;
  color: var(--muted);

  min-height: 52px;

  font-weight: 500;
}
.tabs button.active {
  color: var(--ink);
  background: var(--surface);
  font-weight: 600;
}
.tabs button.active:after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 3px;
  bottom: -1px;
  background: #9aaa6d;
}
.editor-body {
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 26px;
  min-height: 240px;
  border: 1px solid var(--line);
  border-top: 0;
}
.key-editor {
  display: grid;
  grid-template-columns: 162px minmax(0, 1fr);
  gap: 25px;
}
.category-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.category-nav button {
  text-align: left;
  font-size: 14px;
  border-radius: 7px;
  padding: 11px 13px;
  color: var(--muted);

  min-height: 44px;

  line-height: 1.5;
}
.category-nav button.active {
  background: var(--accent);
  color: var(--ink);
  font-weight: 550;
}
.palette-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.palette-heading h2,
.section-heading h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;

  line-height: 1.5;
}
.palette-heading span,
.section-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;

  line-height: 1.7;
}
.search {
  width: 210px;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  font-size: 14px;

  min-height: 42px;
}
.binding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}
.binding {
  border: 1px solid var(--line);
  border-bottom: 3px solid #dce0d4;
  border-radius: 8px;
  font-size: 14px;
  padding: 13px 8px;
  min-height: 48px;
  text-align: center;

  font-weight: 450;

  line-height: 1.5;

  border-bottom-width: 2px;
}
.binding.current {
  background: var(--accent);
  border-color: #bdce91;
}
.binding.picked {
  outline: 2px solid #8b9d62;
  outline-offset: 1px;
}
.keyboard-grid .binding {
  min-height: 44px;
  padding: 10px 8px;

  font-size: 14px;

  font-weight: 450;

  line-height: 1.5;

  border-bottom-width: 2px;
}
.section-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-heading > div > p {
  line-height: 1.7;
}
.dpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.dpi-step {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px;
  min-width: 0;
}
.dpi-step.active {
  border-color: #a8bb78;
  background: #f5f8e9;
}
.dpi-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-caption);
  color: var(--muted);
  margin-bottom: 17px;
}
.dpi-step-top button {
  font-size: var(--text-caption);
  color: #61773e;
  padding: 3px;
}
.dpi-step label {
  display: block;
  font-size: var(--text-caption);
  color: var(--muted);
}
.dpi-step input {
  width: 100%;
  margin: 5px 0;
  padding: 8px 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 20px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.input-hint {
  font-size: var(--text-small);
  color: var(--muted);
  line-height: 1.8;
  margin-top: 17px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.setting-row label {
  font-size: 14px;
}
.setting-row small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
  line-height: 1.65;
}
.setting-row select,
.setting-row input[type="number"] {
  max-width: 180px;
  min-width: 110px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  font-size: 14px;

  min-height: 44px;
}
.setting-row input[type="checkbox"] {
  appearance: none;
  width: 36px;
  height: 21px;
  border-radius: 20px;
  background: #d4d6cb;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.setting-row input[type="checkbox"]:before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.18s;
}
.setting-row input:checked {
  background: #829556;
}
.setting-row input:checked:before {
  transform: translateX(15px);
}
.macro-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
}
.macro-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.macro-list button {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 7px;
  text-align: left;
  font-size: var(--text-ui);
}
.macro-list button.active {
  background: var(--accent);
}
.macro-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.macro-toolbar input,
.macro-toolbar select {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  font-size: var(--text-ui);
}
.macro-toolbar button {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: var(--text-ui);
}
.macro-toolbar button.recording {
  color: #ae3c2b;
  border-color: #dc9a89;
  background: #fff0e9;
}
.macro-events {
  min-height: 110px;
  max-height: 210px;
  overflow: auto;
  background: var(--paper);
  padding: 13px;
  border-radius: 8px;
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-small);
}
.macro-event {
  background: var(--surface);
  padding: 7px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
}
.macro-event small {
  color: var(--muted);
  margin-left: 7px;
}
.macro-empty {
  color: var(--muted);
  line-height: 1.9;
}
.macro-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.macro-actions button {
  font-size: var(--text-ui);
  border: 1px solid var(--line);
  padding: 10px 15px;
  border-radius: 7px;
}
.empty-state {
  font-size: var(--text-ui);
  color: var(--muted);
  line-height: 1.9;
  padding: 20px 0;
}
.savebar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: #f8f9f3fa;
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 14px 3.8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.savebar > div {
  display: flex;
  gap: 12px;
}
.save-state {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;

  line-height: 1.5;
}
.save-state i {
  height: 6px;
  width: 6px;
  background: #a4a79b;
  border-radius: 50%;
}
.save-state i.dirty {
  background: #d17d3e;
}
.save-state i.saved {
  background: #849d56;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: var(--surface);
  max-width: 420px;
  width: calc(100% - 40px);
}
dialog::backdrop {
  background: #252b2244;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 18px;
  margin: 0 0 25px;
}
dialog label {
  display: block;
  font-size: var(--text-ui);
}
dialog input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 25px;
}
.modifier-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: var(--text-ui);
}
.modifier-bar label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.macro-bind-note {
  font-size: var(--text-small);
  color: var(--muted);
  margin: 15px 0 0;
}
@media (min-width: 1450px) {
  .mouse-canvas {
    height: 340px;

    --mouse-height: 300px;

    --mouse-top: 10px;
  }
  .mouse-canvas > img {
    height: var(--mouse-height);

    top: var(--mouse-top);
  }
  .c0,
  .c1 {
    top: 9%;
  }
  .c2 {
    top: 34%;
  }
  .c3 {
    top: 48%;
  }
  .c4 {
    top: 71%;
  }
  .c5 {
    top: 69%;
  }
}
@media (max-width: 1100px) {
  .device-stats {
    gap: 20px;
  }
  .studio-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .callout.left {
    left: 3%;
  }
  .callout.right {
    right: 3%;
  }
  .callout {
    min-width: 136px;
    padding: 9px 12px;
    gap: 6px;

    min-height: 58px;

    font-size: var(--text-ui);

    line-height: 1.45;
  }
  .mouse-canvas > img {
    height: var(--mouse-height);
    top: var(--mouse-top);
  }
  .dpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .preset-panel {
    padding: 22px 20px;
  }
  .top-actions {
    gap: 16px;
  }
}
@media (max-width: 820px) {
  .topbar {
    height: 76px;
    gap: 15px;
  }
  .wordmark {
    font-size: 30px;
  }
  .app-name,
  .local-label {
    display: none;
  }
  .device-bar {
    flex-wrap: wrap;
    gap: 17px;

    min-height: 72px;
  }
  .device-title {
    width: calc(100% - 60px);
  }
  .device-stats {
    order: 3;
    width: 100%;
    justify-content: space-between;
    margin: 5px 0;
  }
  .icon-button {
    margin-left: auto;
  }
  .device-stats div {
    min-width: auto;
  }
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .preset-panel {
    display: block;

    padding: 22px 20px;
  }
  .panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .preset-list {
    max-height: 150px;
  }
  .add-preset {
    width: 100%;
    margin-top: 10px;

    min-height: 44px;

    font-size: 14px;
  }
  .preset-note {
    display: none;

    padding-top: 18px;
  }
  .preset-tools {
    margin-top: 12px;
  }
  .mouse-canvas {
    max-width: 680px;

    height: 340px;

    --mouse-height: 300px;

    --mouse-top: 10px;
  }
  .tabs button {
    padding: 14px 16px;

    font-size: 14px;

    min-height: 52px;

    font-weight: 500;
  }
  .key-editor {
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 15px;
  }
  .category-nav {
    padding-right: 12px;
  }
  .editor-body {
    padding: 20px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .macro-layout {
    grid-template-columns: 1fr;
  }
  .macro-list {
    flex-direction: row;
    overflow: auto;
  }
  .macro-list button {
    white-space: nowrap;
  }
  .save-state {
    max-width: 42%;
    font-size: 13px;

    line-height: 1.5;
  }
  .savebar button.primary {
    padding: 12px 16px;
  }
  .savebar button.secondary {
    padding: 12px;
  }
  .top-actions a {
    font-size: var(--text-small);
  }
  h1 {
    font-size: 30px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 24px 3.8% 116px;
  }
  .topbar {
    padding: 0 15px;

    height: 76px;
  }
  .top-divider {
    display: none;
  }
  .top-actions {
    gap: 12px;
  }
  .top-actions button.primary {
    padding: 10px 12px;
    gap: 10px;
  }
  .mouse-canvas {
    height: 340px;

    --mouse-height: 300px;

    --mouse-top: 10px;
  }
  .mouse-canvas > img {
    height: var(--mouse-height);
    top: var(--mouse-top);
  }
  .callout {
    min-width: 136px;
    font-size: var(--text-ui);
    gap: 5px;
    padding: 9px 12px;

    min-height: 58px;

    line-height: 1.45;
  }
  .callout b {
    width: 30px;
    height: 30px;
    font-size: 12px;

    font-weight: 600;
  }
  .callout small {
    max-width: 110px;
    font-size: 13px;

    line-height: 1.5;

    margin-top: 3px;
  }
  .c0,
  .c1 {
    top: 9%;
  }
  .c2 {
    top: 34%;
  }
  .c3 {
    top: 48%;
  }
  .c4 {
    top: 71%;
  }
  .c5 {
    top: 69%;
  }
  .callout-lines {
    display: none;
  }
  .stage-heading {
    padding: 12px 22px;
    font-size: var(--text-small);
  }
  .stage-bottom {
    padding: 12px 22px;
    font-size: 13px;
  }
  .canvas-mark {
    right: 15px;
    font-size: var(--text-caption);
  }
  .canvas-note {
    left: 15px;
    font-size: var(--text-caption);
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    padding: 14px 13px;
    font-size: 14px;

    min-height: 52px;

    font-weight: 500;
  }
  .key-editor {
    grid-template-columns: 1fr;
  }
  .category-nav {
    flex-direction: row;
    overflow: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
  }
  .category-nav button {
    white-space: nowrap;
    padding: 8px 10px;

    font-size: 14px;

    min-height: 44px;

    line-height: 1.5;
  }
  .palette-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search {
    width: 210px;

    min-height: 42px;

    font-size: 14px;
  }
  .binding-grid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));

    gap: 10px;
  }
  .editor-body {
    padding: 16px;
  }
  .dpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .savebar {
    padding: 14px 3.8%;

    background: #f8f9f3fa;

    gap: 16px;
  }
  .savebar > div {
    gap: 7px;
  }
  .savebar button {
    font-size: var(--text-small);
  }
  .savebar button.primary {
    gap: 12px;
  }
  .save-state {
    max-width: 38%;

    font-size: 13px;

    line-height: 1.5;
  }
  .device-stats dd {
    font-size: var(--text-ui);
  }
  .section-heading {
    align-items: flex-start;
  }
  .modifier-bar {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.mouse-hotspots {
  position: absolute;
  height: var(--mouse-height);
  width: calc(var(--mouse-height) * 0.5454545455);
  left: 50%;
  top: var(--mouse-top);
  transform: translateX(-50%);
}
.hotspot {
  position: absolute;
  border-radius: 12px;
  background: transparent !important;
}
.hotspot:hover {
  background: #f5f8c938 !important;
  outline: 1px solid #f5f8c9bb;
}
.hotspot:focus-visible {
  outline: 3px solid var(--accent);
}
.h0 {
  left: 6%;
  top: 1%;
  width: 35%;
  height: 42%;
}
.h1 {
  right: 6%;
  top: 1%;
  width: 35%;
  height: 42%;
}
.h2 {
  left: 43%;
  top: 7%;
  width: 15%;
  height: 18%;
}
.h3 {
  left: 0;
  top: 29%;
  width: 9%;
  height: 15%;
}
.h4 {
  left: 0;
  top: 46%;
  width: 9%;
  height: 15%;
}
.h5 {
  left: 43%;
  top: 34%;
  width: 15%;
  height: 22%;
}
@media (min-width: 1450px) {
  .mouse-hotspots {
    height: var(--mouse-height);
    width: calc(var(--mouse-height) * 0.5454545455);

    top: var(--mouse-top);
  }
}
@media (max-width: 1100px) {
  .mouse-hotspots {
    height: var(--mouse-height);
    width: calc(var(--mouse-height) * 0.5454545455);
    top: var(--mouse-top);
  }
}
@media (max-width: 480px) {
  .mouse-hotspots {
    height: var(--mouse-height);
    width: calc(var(--mouse-height) * 0.5454545455);
    top: var(--mouse-top);
  }
}
.settings-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.settings-bottom .secondary {
  font-size: var(--text-small);
  white-space: nowrap;
}
.settings-bottom .input-hint {
  flex: 1;
}

button.primary:disabled {
  background: #e4e7db;
  color: #858d7b;
}
button.secondary:disabled {
  color: #92978a;
  border-color: #e3e6db;
  background: #f4f5ef;
}
.binding:disabled {
  color: #83897d;
  background: #f7f8f1;
  border-color: #e7e9df;
}
.binding:not(:disabled):hover {
  border-color: #adb992;
  background: #f0f3e4;
}
.binding.current {
  font-weight: 550;
}
.tabs button:not(.active):hover {
  color: var(--ink);
}
.category-nav button:not(.active):hover {
  color: var(--ink);
}
.callout:not(.selected):hover {
  border-color: #adb992;
  background: #f7faee;
}
#connect {
  min-width: 128px;
  min-height: 44px;
}
#connect[aria-busy="true"],
#apply[aria-busy="true"] {
  cursor: progress;
}
@media (min-width: 1450px) {
  .mouse-canvas {
    height: 360px;
    --mouse-height: 320px;
  }
}
@media (max-width: 1100px) {
  .mouse-canvas {
    --mouse-height: 280px;
    --mouse-top: 20px;
  }
}
@media (max-width: 820px) {
  .studio-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .top-actions {
    gap: 14px;
  }
  .device-stats dt {
    font-size: 12px;
  }
  .device-stats dd {
    font-size: 14px;
  }
  .preset-panel {
    padding: 20px;
  }
  .preset-tools {
    padding-top: 8px;
  }
  .save-state {
    font-size: 13px;
    max-width: 44%;
  }
  .macro-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .mouse-canvas {
    --mouse-height: 275px;
    --mouse-top: 16px;
    height: 340px;
  }
  .callout {
    min-width: 102px;
    padding: 8px;
    gap: 6px;
    min-height: 56px;
  }
  .callout b {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .callout small {
    max-width: 62px;
    font-size: 12px;
  }
  .callout.left {
    left: 8px;
  }
  .callout.right {
    right: 8px;
  }
  .stage-heading {
    padding: 12px;
    gap: 6px;
    font-size: 12px;
  }
  .stage-heading .text-button {
    padding: 6px 2px;
    font-size: 12px;
    white-space: nowrap;
  }
  .stage-bottom {
    padding: 12px;
    font-size: 12px;
  }
  .canvas-note {
    left: 12px;
    font-size: 11px;
  }
  .canvas-mark {
    right: 12px;
    font-size: 10px;
    letter-spacing: 0.6px;
  }
  .tabs button {
    font-size: 14px;
    padding: 13px 12px;
    min-height: 48px;
  }
  .category-nav button {
    font-size: 14px;
  }
  .palette-heading {
    align-items: flex-start;
  }
  .search {
    width: 100%;
  }
  .binding-grid {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  }
  .savebar {
    padding: 12px 15px;
  }
  .savebar button {
    font-size: 13px;
    min-height: 44px;
  }
  .savebar button.primary {
    padding: 10px 12px;
    gap: 10px;
  }
  .savebar button.secondary {
    padding: 10px 12px;
  }
  .save-state {
    max-width: 37%;
    font-size: 12px;
  }
  .settings-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .macro-toolbar input,
  .macro-toolbar select {
    max-width: 100%;
  }
}

.compatibility-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 8px;
  font-size: 13px;
  color: #54643c;
  text-decoration: underline;
  text-underline-offset: 4px;
}
button.primary,
button.secondary {
  font-size: 14px;
}

.connection-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dce9ac;
}
.icon-button {
  width: 44px;
  height: 44px;
}
button.text-button {
  min-height: 36px;
}
.preset-item > button:last-child {
  min-width: 44px;
  min-height: 44px;
}
@media (max-width: 820px) {
  .preset-note {
    display: block;
    padding-top: 10px;
  }
  .preset-note > span,
  .preset-note > p {
    display: none;
  }
  .compatibility-link {
    margin-top: 0;
  }
}
@media (max-width: 480px) {
  .stage-heading .text-button {
    min-height: 44px;
  }
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink);
}
.github-link svg {
  fill: currentColor;
}
.feedback-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-link:hover {
  color: #54643c;
}
@media (max-width: 700px) {
  .header-link {
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  .header-link-label {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .topbar {
    gap: 10px;
  }
  #connect {
    min-width: 112px;
  }
}
@media (max-width: 480px) {
  .top-actions #original-link {
    display: none;
  }
}
@media (max-width: 380px) {
  .topbar {
    padding-inline: 12px;
    gap: 8px;
  }
  .wordmark {
    font-size: 26px;
  }
}
