:root {
  color-scheme: light;
  --bg: #dfe3e9;
  --surface: #fbfaf8;
  --surface-accent: #ffffff;
  --border: #ece8df;
  --border-strong: #d9d4cb;
  --text: #1f2022;
  --muted: #a7a49d;
  --muted-strong: #7d7a74;
  --brand: #f1b328;
  --green: #31c56c;
  --shadow: 0 14px 36px rgba(87, 89, 93, 0.08);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-display);
  color: var(--text);
  background: linear-gradient(180deg, #dde2e8 0%, #e6e8ec 100%);
}

button,
select,
textarea,
audio {
  font: inherit;
}

.desktop-shell {
  width: min(1380px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 6px 0 12px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.topbar-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar-settings {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.topbar-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #ddd7ce;
  box-shadow: 0 1px 2px rgba(71, 61, 44, 0.04);
}

.topbar-chip strong {
  color: #736d64;
  font-size: 11px;
  font-weight: 700;
}

.topbar-chip-mode {
  background: #f7f4ec;
}

.topbar-chip-device select {
  min-width: 180px;
  height: 22px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #62605b;
  padding: 0 22px 0 0;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 12px;
  line-height: 1.2;
}

.topbar-chip-device::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid #9e998f;
  border-bottom: 1.6px solid #9e998f;
  transform: translateY(-58%) rotate(45deg);
  pointer-events: none;
}

.status-cluster {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #ddd7ce;
  box-shadow: 0 1px 2px rgba(71, 61, 44, 0.04);
}

.badge-idle,
.badge-muted {
  color: var(--muted-strong);
}

.badge-ready,
.badge-stopped {
  color: #188a43;
  background: rgba(53, 196, 106, 0.12);
}

.badge-recording {
  color: #7b5200;
  background: rgba(241, 179, 40, 0.22);
}

.badge-paused,
.badge-stopping {
  color: #8d7017;
  background: rgba(241, 179, 40, 0.15);
}

.badge-connecting {
  color: #2f5f93;
  background: rgba(88, 156, 232, 0.16);
}

.badge-error {
  color: #a13838;
  background: rgba(204, 82, 82, 0.14);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.92fr);
  gap: 6px;
  min-height: calc(100vh - 46px);
}

.recording-panel,
.notes-panel {
  position: relative;
  min-height: calc(100vh - 58px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.recording-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 14px;
}

.notes-panel {
  padding: 16px 16px 14px;
  overflow: hidden;
}

.notes-panel-stack {
  display: grid;
  grid-template-rows: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: 10px;
  height: auto;
}

h2,
p {
  margin: 0;
}

h2 {
  font-size: 16px;
  font-weight: 700;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recording-title-row,
.notes-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.recording-dot,
.notes-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.notes-dot {
  background: var(--brand);
}

.recording-date,
.recording-meta {
  color: #c1beb7;
  font-size: 12px;
}

.panel-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.header-action {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #8b7841;
  font-size: 11px;
  font-weight: 700;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease, opacity 120ms ease;
}

.header-action:not(:disabled):hover {
  transform: translateY(-1px);
  background: #fbf7ee;
}

.header-action:disabled,
.control-button:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.recording-stage {
  flex: 0 0 auto;
  min-height: 180px;
  border-radius: 18px;
  background: var(--surface-accent);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stage-center {
  display: grid;
  place-items: center;
  gap: 8px;
  color: #c4c4c1;
  text-align: center;
  padding: 18px 22px;
}

.stage-gesture {
  position: relative;
  width: 52px;
  height: 52px;
}

.gesture-palm,
.gesture-finger,
.gesture-thumb,
.gesture-spark,
.gesture-spark::before,
.gesture-spark::after {
  position: absolute;
  content: "";
}

.gesture-palm {
  left: 25px;
  top: 28px;
  width: 18px;
  height: 24px;
  border: 3px solid #d1d0cc;
  border-radius: 12px 12px 16px 16px;
  border-top-color: transparent;
  transform: rotate(-22deg);
}

.gesture-finger {
  left: 34px;
  top: 11px;
  width: 8px;
  height: 30px;
  border: 3px solid #d1d0cc;
  border-radius: 10px;
  background: transparent;
  transform: rotate(-18deg);
}

.gesture-thumb {
  left: 16px;
  top: 28px;
  width: 16px;
  height: 9px;
  border: 3px solid #d1d0cc;
  border-left-color: transparent;
  border-radius: 10px;
  transform: rotate(22deg);
}

.gesture-spark {
  right: 12px;
  top: 10px;
  width: 4px;
  height: 14px;
  background: #d1d0cc;
  border-radius: 999px;
  transform: rotate(18deg);
}

.gesture-spark::before {
  left: -6px;
  top: 4px;
  width: 14px;
  height: 4px;
  background: #d1d0cc;
  border-radius: 999px;
}

.gesture-spark::after {
  right: 10px;
  top: 16px;
  width: 4px;
  height: 10px;
  background: #d8d7d3;
  border-radius: 999px;
  transform: rotate(-28deg);
}

.stage-live-indicator {
  display: none;
  align-items: end;
  gap: 5px;
  height: 24px;
}

.live-dot {
  width: 5px;
  border-radius: 999px;
  background: #e4b947;
  animation: live-wave 1s ease-in-out infinite;
}

.live-dot-a {
  height: 12px;
}

.live-dot-b {
  height: 20px;
  animation-delay: 120ms;
}

.live-dot-c {
  height: 15px;
  animation-delay: 240ms;
}

.stage-title {
  color: #b8b7b3;
  font-size: 15px;
}

.stage-caption {
  color: #d0cdc6;
  font-size: 12px;
}

.recording-stage-recording {
  background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
  border-color: #f0dfb4;
  box-shadow: inset 0 0 0 1px rgba(241, 179, 40, 0.16);
}

.recording-stage-recording .stage-gesture,
.recording-stage-paused .stage-gesture {
  display: none;
}

.recording-stage-recording .stage-live-indicator,
.recording-stage-paused .stage-live-indicator {
  display: flex;
}

.recording-stage-recording .stage-title {
  color: #a67915;
}

.recording-stage-recording .stage-caption {
  color: #c9a85b;
}

.recording-stage-paused {
  background: linear-gradient(180deg, #fcfaf4 0%, #f7f3e8 100%);
  border-color: #eadfbe;
}

.recording-stage-paused .stage-title {
  color: #9e8542;
}

.recording-stage-paused .stage-caption {
  color: #c4b48b;
}

.recording-stage-paused .live-dot {
  animation-play-state: paused;
  background: #cbb988;
}

.recording-stage-stopped {
  background: linear-gradient(180deg, #fbfcf8 0%, #f5f8f1 100%);
  border-color: #dfe8d8;
}

.recording-stage-stopped .stage-title {
  color: #6e9a5f;
}

.recording-stage-stopped .stage-caption {
  color: #98b18e;
}

.recording-stage-stopped .stage-live-indicator,
.recording-stage-stopping .stage-live-indicator,
.recording-stage-error .stage-live-indicator {
  display: none;
}

.recording-stage-stopping {
  background: linear-gradient(180deg, #fdfbf5 0%, #f7f3e8 100%);
  border-color: #eadfbe;
}

.recording-stage-stopping .stage-title {
  color: #a0833d;
}

.recording-stage-error {
  background: linear-gradient(180deg, #fff8f8 0%, #fdf0f0 100%);
  border-color: #f0d5d5;
}

.recording-stage-error .stage-title {
  color: #b45a5a;
}

.recording-stage-error .stage-caption {
  color: #c99a9a;
}

.caption-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}

.caption-strip-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.caption-kicker {
  color: #9f9d97;
  font-size: 12px;
  font-weight: 700;
}

.caption-strip-main span:last-child {
  color: var(--muted-strong);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.caption-strip-side {
  display: flex;
  align-items: center;
  gap: 6px;
}

.counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f2eee7;
  color: #7c7b77;
  font-size: 11px;
  font-weight: 700;
}

.counter-soft {
  background: transparent;
  border: 1px solid var(--border);
}

.transcript-list {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.transcript-list-embedded {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 11px 12px;
  padding-right: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.empty-state,
.transcript-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  padding: 11px 12px;
}

.empty-state {
  text-align: center;
  color: var(--muted-strong);
}

.transcript-list-embedded .empty-state {
  min-height: 100%;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  padding: 0;
}

.transcript-card {
  display: grid;
  gap: 6px;
  animation: rise-in 220ms ease;
}

.transcript-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9c9b96;
  font-size: 11px;
}

.segment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.segment-final {
  background: rgba(53, 196, 106, 0.12);
  color: #188a43;
}

.segment-partial {
  background: rgba(241, 179, 40, 0.14);
  color: #9d7200;
}

.transcript-card p {
  color: #393a3c;
  font-size: 13px;
  line-height: 1.5;
}

.bottom-dock {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.bottom-dock-clear {
  padding-top: 2px;
}

.dock-left {
  display: flex;
  align-items: center;
}

.timer-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.recording-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(220, 225, 230, 0.6);
  color: #a8adb3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.recording-indicator-active {
  background: rgba(237, 92, 92, 0.14);
  color: #c44545;
  box-shadow: 0 0 0 4px rgba(237, 92, 92, 0.08);
}

.timer-block strong {
  color: #8c8b87;
  font-size: 24px;
  font-weight: 600;
}

.dock-center {
  display: flex;
  justify-content: center;
}

.dock-center-clear {
  justify-content: flex-start;
}

.setting-chip,
.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2efe8;
  color: #7a7873;
  font-size: 12px;
}

.setting-chip {
  gap: 8px;
}

.setting-chip-active {
  background: #f4efe0;
  color: #8f7632;
}

.setting-label {
  color: #9c978e;
  font-size: 11px;
}

.inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8e8c87;
  font-size: 12px;
}

.inline-field-vertical {
  align-items: flex-start;
}

.inline-field select {
  min-width: 220px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-accent);
  color: #50504d;
  padding: 0 14px;
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-actions-plain {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.control-button {
  min-height: 36px;
  padding: 0 11px;
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #6f6d68;
  font-size: 11px;
  font-weight: 700;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.control-button-hold {
  min-width: 104px;
  background: #fffdf8;
  color: #8e7634;
  border-color: #eddba6;
}

.control-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.control-button-primary {
  min-width: 96px;
  background: linear-gradient(135deg, #f0c14a 0%, #e6ac1f 100%);
  color: #fffaf0;
  border-color: #d8a028;
  box-shadow: 0 8px 18px rgba(230, 172, 31, 0.22);
}

.control-button-primary.control-button-pressing {
  background: linear-gradient(135deg, #ecb11e 0%, #d89108 100%);
  color: #fffef9;
  border-color: #cf8a02;
  box-shadow: 0 0 0 6px rgba(236, 177, 30, 0.18), 0 12px 26px rgba(216, 145, 8, 0.26);
}

.control-button-danger {
  min-width: 68px;
  background: #fff7f4;
  color: #b16347;
  border-color: #efcdbf;
}

.control-button-active {
  background: rgba(241, 179, 40, 0.18);
  color: #a67b13;
  border-color: #efdca5;
  box-shadow: 0 0 0 5px rgba(241, 179, 40, 0.1);
}

.control-button-primary.control-button-active {
  background: linear-gradient(135deg, #efb931 0%, #dfa014 100%);
  color: #fffdf8;
  border-color: #d79812;
  box-shadow: 0 0 0 6px rgba(241, 179, 40, 0.16), 0 10px 24px rgba(223, 160, 20, 0.24);
}

.control-button-hold.control-button-active,
.control-button-hold.control-button-pressing {
  background: rgba(241, 179, 40, 0.14);
  color: #a67b13;
  border-color: #efdca5;
  box-shadow: 0 0 0 5px rgba(241, 179, 40, 0.1);
}

.control-button-danger.control-button-active {
  background: #fff0e9;
  color: #a55134;
  border-color: #e7b29b;
  box-shadow: 0 0 0 5px rgba(229, 146, 105, 0.12);
}

.bottom-subdock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.meter-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9a9994;
  font-size: 11px;
}

.meter-track {
  width: 92px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe6dd;
}

.meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #90e1a0, #f1b328, #f18f52);
  transition: width 120ms linear;
}

.bottom-subdock-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.mini-pill-muted {
  background: #f8f5ef;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 15px;
  background: #f4f1eb;
  border: 1px solid var(--border);
}

.result-card-inline audio {
  width: 180px;
}

audio {
  width: 100%;
}

.download-link {
  color: #8d7a43;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.download-link.disabled {
  color: #bbb7af;
  pointer-events: none;
}

.notes-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.notes-header-split {
  justify-content: space-between;
}

.records-card,
.editor-card {
  position: relative;
  min-height: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border);
  padding: 12px 12px 10px;
}

.history-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.history-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.history-toolbar-filter {
  align-items: flex-end;
}

.history-toolbar-actions {
  align-items: center;
}

.history-field,
.session-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.history-field input,
.session-field input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #4a4b4f;
  outline: none;
}

.history-field-search {
  flex: 1 1 220px;
}

.history-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: #6f6d68;
  font-size: 12px;
}

.history-date-group {
  display: grid;
  gap: 8px;
}

.history-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.history-date-header strong {
  font-size: 13px;
}

.history-date-items {
  display: grid;
  gap: 8px;
  padding-left: 2px;
}

.history-item {
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
}

.history-item-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.history-item-title {
  color: #24262b;
  font-size: 13px;
  font-weight: 700;
}

.history-item-summary {
  color: #5e6065;
  font-size: 12px;
  line-height: 1.5;
}

.history-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(241, 179, 40, 0.14);
  color: #8f6d14;
  font-size: 11px;
}

.session-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
}

.session-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.history-item {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.history-item time {
  color: #9c9b96;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.history-item p {
  color: #2b2d31;
  font-size: 13px;
  line-height: 1.45;
}

.notes-editor-wrap {
  position: relative;
  z-index: 4;
  height: 300px;
}

.notes-editor-wrap-main {
  height: 220px;
}

.notes-live-card {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
}

.notes-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-note-feed {
  display: grid;
  gap: 8px;
  max-height: 170px;
  overflow: auto;
  padding-right: 4px;
}

.live-note-item {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
}

.live-note-item time {
  color: #9c9b96;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.live-note-item p {
  color: #2b2d31;
  font-size: 13px;
  line-height: 1.45;
}

.live-note-item-partial {
  border-style: dashed;
}

.empty-state-inline {
  padding: 12px;
}

textarea {
  width: 100%;
  min-height: 100%;
  height: 100%;
  position: relative;
  z-index: 5;
  padding: 4px 0 0;
  border: none;
  background: transparent;
  resize: none;
  color: #1f2022;
  font-size: 15px;
  line-height: 1.65;
  outline: none;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
}

textarea::placeholder {
  color: #ccc8c0;
}

.notes-empty-hint {
  position: absolute;
  left: 50%;
  bottom: 88px;
  z-index: 1;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 8px;
  color: #cfcbc3;
  pointer-events: none;
}

body:not(.notes-empty) .notes-empty-hint {
  display: none;
}

.note-illustration {
  position: relative;
  width: 64px;
  height: 40px;
}

.note-pencil-body,
.note-pencil-tip,
.note-pencil-eraser,
.note-loop {
  position: absolute;
}

.note-pencil-body {
  left: 25px;
  top: 20px;
  width: 34px;
  height: 10px;
  border: 3px solid #d1d0cb;
  border-radius: 999px;
  transform: rotate(-32deg);
}

.note-pencil-tip {
  left: 18px;
  top: 25px;
  width: 10px;
  height: 10px;
  border-left: 3px solid #d1d0cb;
  border-bottom: 3px solid #d1d0cb;
  transform: rotate(15deg) skew(-18deg);
}

.note-pencil-eraser {
  right: 18px;
  top: 13px;
  width: 10px;
  height: 14px;
  border: 3px solid #d1d0cb;
  border-radius: 6px;
  transform: rotate(-32deg);
}

.note-loop {
  left: 34px;
  top: 10px;
  width: 22px;
  height: 28px;
  border: 3px solid #d8d6d1;
  border-color: #d8d6d1 transparent transparent transparent;
  border-radius: 50%;
}

.notes-empty-hint p {
  margin: 0;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes live-wave {
  0%,
  100% {
    transform: scaleY(0.6);
    opacity: 0.65;
  }

  50% {
    transform: scaleY(1.12);
    opacity: 1;
  }
}

@media (max-width: 1320px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .recording-panel,
  .notes-panel {
    min-height: auto;
  }

.notes-panel-stack {
  grid-template-rows: auto auto;
}

textarea {
  min-height: 260px;
}

  .notes-empty-hint {
    position: static;
    transform: none;
    margin-top: 12px;
  }
}

@media (max-width: 960px) {
  .desktop-shell {
    width: min(100vw - 20px, 100%);
    padding: 4px 0 8px;
  }

  .studio-grid {
    min-height: auto;
  }

  .recording-panel,
  .notes-panel {
    padding: 12px;
    border-radius: 20px;
  }

  .caption-strip,
  .bottom-dock,
  .bottom-subdock {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .dock-center,
  .bottom-subdock-right {
    justify-content: flex-start;
  }

  .topbar-actions,
  .topbar-settings,
  .bottom-subdock-right,
  .dock-actions-plain {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-actions {
    align-items: flex-start;
    gap: 8px;
  }

  .status-cluster {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar-chip-device {
    width: 100%;
  }

  .topbar-chip-device select {
    width: 100%;
    min-width: 0;
  }

  .topbar-chip-device::after {
    right: 16px;
  }

  .inline-field {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-field select {
    width: 100%;
    min-width: 0;
  }

  .result-card-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-card-inline audio {
    width: min(100%, 240px);
  }

  .notes-live-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dock-actions-plain {
    gap: 6px;
  }

  .control-button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .recording-stage {
    min-height: 156px;
  }

  .stage-center {
    padding: 14px 16px;
  }

  textarea {
    min-height: 300px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .desktop-shell {
    width: calc(100vw - 8px);
  }

  .panel-toolbar {
    align-items: flex-start;
  }

  .panel-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .control-button {
    flex: 1 1 100%;
  }

  .caption-strip-side,
  .bottom-subdock-right,
  .meter-cluster {
    width: 100%;
    justify-content: flex-start;
  }

  .recording-panel,
  .notes-panel {
    padding: 10px;
  }

  .recording-stage {
    min-height: 144px;
  }

  .transcript-list-embedded {
    padding: 9px 10px;
  }

  .live-note-feed {
    max-height: 150px;
  }

  .topbar-chip,
  .badge {
    min-height: 30px;
    padding: 0 9px;
  }
}
