:root {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#171717;
  background:#f7f7f5;
  font-synthesis:none;
  --secondary:#717171;
  --divider:#e7e7e7;
  --accent:#ff453a;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,select,textarea,input {
  font:inherit;
}

button,select {
  color:inherit;
}

button,select,.import-button {
  min-height:44px;
}

button {
  cursor:pointer;
}

button:disabled,select:disabled {
  cursor:default;
  opacity:.4;
}

button,a,select,input,textarea {
  outline-offset:4px;
}

button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,.import-button:focus-within {
  outline:2px solid #171717;
  outline-offset:4px;
}

button {
  border:0;
  background:none;
}

button:hover:not(:disabled) {
  background-color:#f0f0ee;
}

a {
  color:inherit;
  text-decoration:none;
}

[hidden] {
  display:none!important;
}

.app-header {
  max-width:1240px;
  margin:auto;
  padding:24px 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.brand {
  font-size:18px;
  font-weight:650;
  letter-spacing:-.5px;
  display:flex;
  align-items:center;
  gap:10px;
}

.web-badge {
  font-size:9px;
  font-weight:600;
  letter-spacing:1px;
  border:1px solid #d5d5d2;
  border-radius:4px;
  padding:4px 5px;
  color:#6c6c69;
}

.language-label {
  margin-left:auto;
}

.language-label select {
  border:0;
  background:transparent;
  font-size:12px;
  padding:0 26px 0 10px;
}

.workspace {
  max-width:1240px;
  margin:27px auto 0;
  padding:0 40px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 316px;
  gap:30px;
}

.section-heading {
  display:flex;
  align-items:baseline;
  gap:12px;
  min-height:38px;
}

.section-heading h1,.section-heading h2 {
  font-size:15px;
  font-weight:600;
  margin:0;
}

.section-heading .eyebrow {
  margin-left:auto;
}

.eyebrow {
  font-size:11px;
  color:var(--secondary);
  font-weight:400;
  line-height:1.5;
}

.practice-surface {
  background:#fff;
  border:1px solid var(--divider);
  border-radius:16px;
  overflow:hidden;
}

.tabs {
  display:flex;
  border-bottom:1px solid var(--divider);
  padding:0 24px;
  gap:24px;
}

.tabs button {
  min-width:44px;
  font-size:13px;
  padding:17px 0 14px;
  border-bottom:2px solid transparent;
  min-height:53px;
  color:var(--secondary);
}

.tabs button[aria-selected=true] {
  border-color:#171717;
  color:#171717;
  font-weight:600;
}

.tabs button:hover:not(:disabled) {
  background:none;
  color:#171717;
}

.tool-panel {
  height:251px;
  padding:21px 24px 0;
}

.pitch-heading {
  display:flex;
  justify-content:space-between;
}

.pitch-content {
  display:flex;
  gap:16px;
  margin-top:13px;
  height:170px;
}

.chart-wrap {
  position:relative;
  flex:1;
  min-width:0;
}

.chart-wrap svg {
  width:100%;
  height:100%;
  overflow:visible;
}

.chart-empty {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#767676;
  background:rgba(255,255,255,.86);
  font-size:12px;
  text-align:center;
  margin:0;
  padding:16px 36px;
}

.note-readout {
  width:84px;
  border-left:1px solid var(--divider);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  padding-left:14px;
}

.note-readout strong {
  font-size:30px;
  font-weight:500;
  letter-spacing:-1px;
}

.note-readout>span:last-child {
  font-size:11px;
  color:var(--secondary);
  font-variant-numeric:tabular-nums;
}

.chart-caption {
  display:flex;
  justify-content:space-between;
  margin:9px 100px 0 48px;
  color:#8a8a8a;
  font-size:10px;
  font-variant-numeric:tabular-nums;
}

.recorder {
  display:flex;
  align-items:center;
  flex-direction:column;
  padding:31px 16px 29px;
}

.phase-label {
  font-size:11px;
  color:var(--secondary);
  min-height:17px;
}

.timer {
  font-size:56px;
  font-weight:350;
  letter-spacing:-2px;
  font-variant-numeric:tabular-nums;
  line-height:1.3;
  margin:5px 0 23px;
}

.timer span {
  font-size:30px;
  letter-spacing:-.5px;
  color:#929292;
}

.record-pad {
  background:#171717;
  color:white;
  border-radius:50%;
  width:100px;
  height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
  transition:background-color .15s,transform .15s;
}

.record-pad:hover:not(:disabled) {
  background:#303030;
}

.record-pad:active:not(:disabled) {
  transform:scale(.96);
}

.mic-symbol {
  width:29px;
  height:29px;
}

.stop-symbol {
  display:none;
  width:24px;
  height:24px;
  background:white;
  border-radius:4px;
}

.recording .record-pad {
  background:var(--accent);
}

.recording .record-pad:hover:not(:disabled) {
  background:#e83b32;
}

.recording .phase-label {
  color:#d73d34;
}

.recording .mic-symbol {
  display:none;
}

.recording .stop-symbol {
  display:block;
}

.record-hint {
  font-size:14px;
  font-weight:500;
  margin:20px 0 6px;
  text-align:center;
  min-height:21px;
}

.keyboard-hint {
  font-size:11px;
  color:#8a8a8a;
  margin:0;
  text-align:center;
}

.practice-settings {
  border-top:1px solid var(--divider);
  padding:19px 24px;
  display:flex;
  justify-content:space-between;
  gap:16px;
}

.setting-label {
  display:block;
  font-size:10px;
  color:var(--secondary);
  margin-bottom:8px;
}

.segmented {
  display:flex;
  background:#f3f3f1;
  border-radius:8px;
  padding:3px;
  gap:2px;
}

.segmented button {
  min-height:44px;
  padding:6px 14px;
  font-size:12px;
  color:#777;
  border-radius:5px;
}

.segmented button[aria-pressed=true] {
  background:#fff;
  color:#171717;
  box-shadow:0 1px 3px #00000012;
}

.playback-setting select {
  min-height:44px;
  padding:6px 30px 6px 10px;
  background:#f7f7f5;
  border:0;
  border-radius:7px;
  font-size:12px;
  max-width:170px;
}

.player {
  margin-top:17px;
  background:white;
  border:1px solid var(--divider);
  border-radius:12px;
  padding:18px 20px;
}

.player-info {
  position:relative;
}

.player-info h2 {
  font-size:13px;
  font-weight:500;
  margin:5px 0 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding-right:70px;
}

.save-state {
  position:absolute;
  right:0;
  bottom:0;
  font-size:10px;
  color:var(--secondary);
}

.save-state.unsaved {
  color:#b43b32;
}

.transport {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:12px;
}

.play-button {
  width:44px;
  height:44px;
  flex-shrink:0;
  background:#f4f4f2;
  border-radius:50%;
  font-size:13px;
}

.seek-label {
  flex:1;
  min-width:30px;
  display:flex;
  align-items:center;
  min-height:44px;
}

input[type=range] {
  width:100%;
  accent-color:#171717;
  min-height:44px;
  cursor:pointer;
  margin:0;
}

.play-time {
  font-size:10px;
  color:var(--secondary);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.text-button {
  font-size:11px;
  min-width:44px;
  padding:0 6px;
}

.count {
  margin-left:auto;
  border:1px solid #dededb;
  border-radius:12px;
  font-size:10px;
  min-width:23px;
  text-align:center;
  padding:3px 5px;
  color:#777;
}

.history-body {
  background:white;
  border:1px solid var(--divider);
  border-radius:14px;
  overflow:hidden;
  min-height:410px;
}

.history-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:9px 15px;
  border-bottom:1px solid var(--divider);
}

.import-button {
  display:flex;
  align-items:center;
  gap:3px;
  cursor:pointer;
  font-size:12px;
}

.import-button>span:first-child {
  font-size:19px;
  font-weight:300;
}

.import-button.disabled {
  opacity:.4;
  pointer-events:none;
}

.history-empty {
  padding:98px 26px 80px;
  text-align:center;
  color:#777;
}

.history-empty svg {
  width:35px;
  height:35px;
  color:#a4a4a0;
}

.history-empty p {
  font-size:13px;
  font-weight:500;
  color:#555;
  margin:17px 0 9px;
}

.history-empty>span {
  font-size:11px;
  line-height:1.7;
  display:block;
}

.local-note {
  font-size:11px;
  line-height:1.7;
  color:#858582;
  margin:14px 6px;
}

.take-row {
  padding:13px 13px 9px;
  border-bottom:1px solid #eeeeec;
}

.take-row:last-child {
  border-bottom:0;
}

.take-row.selected {
  background:#f6f6f3;
}

.take-row-head {
  display:flex;
  gap:7px;
  align-items:center;
}

.take-select {
  flex:1;
  min-width:0;
  text-align:left;
  padding:4px 2px;
  border-radius:3px;
}

.take-name {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  font-weight:500;
}

.take-meta {
  font-size:10px;
  color:#858582;
  display:block;
  margin-top:6px;
}

.take-play {
  border:1px solid #e0e0dd;
  border-radius:50%;
  width:44px;
  height:44px;
  flex-shrink:0;
  font-size:11px;
}

.take-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.take-actions button {
  font-size:10px;
  min-height:44px;
  min-width:44px;
  color:#777;
  padding:5px;
}

.take-actions button:last-child:hover:not(:disabled) {
  color:#c73a32;
}

.notice {
  margin-top:15px;
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
  font-size:12px;
  line-height:1.6;
  border:1px solid #e6c9c2;
  background:#fff7f4;
  color:#8f3b2e;
  padding:9px 12px;
  border-radius:9px;
}

.notice button {
  flex-shrink:0;
  font-size:23px;
  width:44px;
}

.app-footer {
  max-width:1240px;
  margin:25px auto 0;
  padding:0 40px 28px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:10px;
  line-height:1.6;
  color:#92928d;
  align-items:center;
  flex-wrap:wrap;
}

.app-downloads {
  margin-top:20px;
  padding:16px;
  background:#fff;
  border:1px solid var(--divider);
  border-radius:14px;
}

.app-downloads h2 {
  margin:0 0 14px;
  font-size:15px;
  font-weight:600;
  line-height:22px;
}

.platform-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.platform-card {
  min-width:0;
  padding:12px 10px;
  border:1px solid var(--divider);
  border-radius:10px;
}

.platform-heading {
  display:flex;
  align-items:center;
  gap:7px;
  min-height:32px;
}

.platform-heading h3 {
  margin:0;
  font-size:14px;
  font-weight:600;
}

.platform-icon {
  display:flex;
  flex-shrink:0;
  color:#171717;
}

.platform-icon svg {
  width:26px;
  height:26px;
}

[data-download-platform=android] .platform-icon,[data-download-platform=mac] .platform-icon {
  color:#81817e;
}

[data-download-platform=windows] .platform-icon {
  color:#0078d4;
}

.platform-action {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  margin-top:12px;
  padding:8px 4px;
  border-radius:6px;
  background:#171717;
  color:#fff;
  font-size:11px;
  font-weight:500;
  line-height:1.4;
  text-align:center;
  overflow-wrap:anywhere;
}

.platform-action:hover {
  background:#303030;
}

.platform-action:disabled {
  background:#f2f2f0;
  color:#767673;
  opacity:1;
}

.memo-saved {
  display:block;
  font-size:10px;
  color:#858582;
  text-align:right;
  margin-top:6px;
}

textarea {
  width:100%;
  height:168px;
  resize:none;
  border:0;
  background:#fafaf8;
  border-radius:7px;
  padding:13px;
  font-size:14px;
  line-height:1.7;
  margin-top:8px;
  color:#333;
}

textarea::placeholder {
  color:#a1a19a;
}

.sr-only {
  position:absolute!important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media(min-width:1400px) {
  .workspace {
    margin-top:45px;
  }
}

@media(max-width:1000px) {
  .workspace {
    grid-template-columns:minmax(0,1fr) 275px;
    gap:20px;
    padding:0 24px;
  }
  .app-header {
    padding:20px 24px;
  }
  .app-footer {
    padding:0 24px 25px;
  }
  .tool-panel {
    padding-left:17px;
    padding-right:17px;
  }
  .practice-settings {
    padding:18px 17px;
  }
  .section-heading .eyebrow {
    display:none;
  }
  .transport {
    gap:8px;
  }
  .play-time {
    font-size:9px;
  }
}

@media(max-width:760px) {
  .workspace {
    display:block;
    max-width:610px;
    margin-top:10px;
    padding:0 18px;
  }
  .app-header {
    padding:17px 20px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
  }
  .language-label {
    min-width:0;
  }
  .language-label select {
    max-width:100%;
  }
  .brand {
    font-size:17px;
  }
  .section-heading {
    min-height:32px;
  }
  .history {
    margin-top:28px;
  }
  .history-body {
    min-height:220px;
  }
  .history-empty {
    padding:36px 30px;
  }
  .app-footer {
    max-width:610px;
    padding:0 18px 22px;
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
  }
  .recorder {
    padding-top:22px;
    padding-bottom:23px;
  }
  .tool-panel {
    height:228px;
    padding-top:16px;
  }
  .pitch-content {
    height:150px;
  }
  .note-readout {
    width:73px;
    padding-left:10px;
  }
  .note-readout strong {
    font-size:27px;
  }
  .chart-caption {
    margin-right:88px;
  }
  .timer {
    font-size:52px;
    margin-bottom:21px;
  }
  .record-pad {
    width:94px;
    height:94px;
  }
  .tabs {
    padding:0 18px;
  }
  .practice-settings {
    padding:15px 16px;
  }
  .segmented button {
    padding:6px 11px;
  }
  .keyboard-hint {
    font-size:10px;
  }
  .player {
    padding:16px;
  }
  .play-time {
    font-size:9px;
  }
  .text-button {
    font-size:10px;
  }
  .language-label select {
    font-size:11px;
  }
  .chart-empty {
    padding-left:38px;
    padding-right:10px;
    font-size:11px;
  }
  .take-actions button {
    min-height:44px;
  }
  .take-row {
    padding-top:9px;
  }
  .local-note {
    font-size:10px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
