:host {
  display: flex;
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 0;
  min-width: 0;
}

.mouse {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 120px;
  min-height: 0;
  border-radius: 26px 26px 18px 18px;
  background: var(--sg-keyboard-key-surface-idle);
  box-shadow: inset 0 0 0 0.5px var(--sg-keyboard-key-stroke);
  overflow: hidden;
  user-select: none;
}

/* ── Buttons area ──────────────────────────────────────────────────────── */

.mouse__buttons {
  flex-shrink: 0;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  border-bottom: 2px solid var(--sg-keyboard-key-stroke);
}

.mouse__btn {
  transition: background 60ms ease;
}

.mouse__btn--left {
  border-radius: 26px 0 0 0;
}

.mouse__btn--right {
  border-radius: 0 26px 0 0;
}

.mouse--left .mouse__btn--left {
  background: var(--sg-keyboard-key-pressed-fill);
}

.mouse--right .mouse__btn--right {
  background: var(--sg-keyboard-key-pressed-fill);
}

/* ── Center column: scroll wheel ──────────────────────────────────────── */

.mouse__divider {
  border-left: 0.5px solid var(--sg-keyboard-key-stroke);
  border-right: 0.5px solid var(--sg-keyboard-key-stroke);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 7px;
}

.mouse__wheel {
  width: 6px;
  height: 16px;
  border-radius: 3px;
  background: var(--sg-keyboard-key-stroke);
  transition: background 60ms ease;
}

.mouse__wheel--active {
  background: var(--sg-keyboard-key-pressed-fill);
}

/* ── Lower body: fills remaining height ──────────────────────────────── */

.mouse__body {
  flex: 1;
  min-height: 18px;
}
