/* SHORTWAVE // TEENAGE ENGINEERING TP-7 FIELD-RECORDER MINIMALISM (MOBILE-FIRST) */
:root {
  --bg: #F4F3EF;
  --surface: #FAF9F6;
  --surface-low: #EAE8E1;
  --oled-bg: #141413;
  --oled-fg: #F4F3EF;
  --oled-muted: #8E8D87;
  --ink: #141413;
  --ink-muted: #6E6D68;
  --hairline: #D4D2C9;
  --orange: #EA580C;
  --orange-bg: #FFEDD5;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 2px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.nav-key {
  padding: 5px 10px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--ink);
}

.nav-key:active {
  transform: translateY(2px);
  box-shadow: none;
}

.container {
  padding: 32px 16px 48px;
}

.instrument-shell {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.console-shell {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel {
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 0 4px 0 #D8D6CE;
}

.panel-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink);
  background: var(--oled-bg);
  color: var(--oled-fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-body {
  padding: 20px;
}

.ptt-button {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
}

.ptt-button:active, .ptt-button.recording {
  transform: translateY(4px);
  box-shadow: none;
  background: var(--ink);
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 #52514C;
  cursor: pointer;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 10px;
}

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--ink-muted);
}

.input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.memo-card {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.memo-card:last-child {
  border-bottom: none;
}

.waveform-strip {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  background: var(--oled-bg);
  margin: 8px 0;
  cursor: pointer;
}

.waveform-bar {
  flex: 1;
  background: #4A4A46;
  min-height: 4px;
}

.waveform-bar.active {
  background: var(--orange);
}

.transcript-box {
  border-left: 2px solid var(--orange);
  background: var(--bg);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.banner {
  max-width: 540px;
  margin: 0 auto 12px;
  border: 1px solid var(--orange);
  background: var(--orange-bg);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.footer {
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .input {
    font-size: 16px;
  }
  .btn, .ptt-button {
    min-height: 44px;
    width: 100%;
  }
}
