:root {

    --bg: #f6f3ef;
    --surface: #ffffff;
    --surface2: #f0ece7;
  
    --border: #e3ddd5;
  
    --text: #1c1814;
  
    --muted: #8e857b;
    --muted2: #665d55;
  
    --ink: #26211d;
  
    --accent: #e5533d;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
  
    background: var(--bg);
  
    color: var(--text);
  
    font-family:
      Inter,
      system-ui,
      sans-serif;
  }
  
  .app {
  
    max-width: 1250px;
  
    margin: 0 auto;
  
    padding: 28px;
  }
  
  header {
  
    text-align: center;
  
    margin-bottom: 34px;
  }
  
  .logo {
  
    font-size: 44px;
  
    font-weight: 800;
  
    letter-spacing: -1px;
  }
  
  .logo em {
  
    color: var(--accent);
  
    font-style: normal;
  }
  
  .tagline {
  
    margin-top: 6px;
  
    color: var(--muted2);
  }
  
  .mode-section {
  
    margin-bottom: 24px;
  }
  
  .mode-label {
  
    margin-bottom: 12px;
  
    font-size: 13px;
  
    color: var(--muted2);
  }
  
  .mode-grid {
  
    display: grid;
  
    grid-template-columns: repeat(5, 1fr);
  
    gap: 10px;
  }
  
  .mode-btn {
  
    border: 1px solid var(--border);
  
    background: white;
  
    border-radius: 16px;
  
    padding: 16px;
  
    cursor: pointer;
  
    transition: .2s;
  }
  
  .mode-btn:hover {
  
    transform: translateY(-2px);
  }
  
  .mode-btn.active {
  
    background: var(--ink);
  
    color: white;
  }
  
  .mode-icon {
  
    display: block;
  
    font-size: 20px;
  
    margin-bottom: 8px;
  }
  
  .mode-name {
  
    font-size: 13px;
  
    font-weight: 600;
  }
  
  .main-layout {
  
    display: grid;
  
    grid-template-columns: 1fr 360px;
  
    gap: 22px;
  }
  
  .record-area {
  
    background: white;
  
    border: 1px solid var(--border);
  
    border-radius: 24px;
  
    padding: 26px;
  }
  
  .record-top {
  
    display: flex;
  
    align-items: center;
  
    gap: 18px;
  }
  
  .mic-btn {
  
    width: 76px;
  
    height: 76px;
  
    border-radius: 50%;
  
    border: none;
  
    background: var(--ink);
  
    color: white;
  
    font-size: 28px;
  
    cursor: pointer;
  
    transition: .2s;
  }
  
  .mic-btn.recording {
  
    background: var(--accent);
  
    animation: pulse 1s infinite;
  }
  
  @keyframes pulse {
  
    0% {
      transform: scale(1);
    }
  
    50% {
      transform: scale(1.06);
    }
  
    100% {
      transform: scale(1);
    }
  }
  
  .record-text h3 {
  
    margin-bottom: 4px;
  
    font-size: 22px;
  }
  
  .record-text p {
  
    color: var(--muted2);
  }
  
  .record-meta {
  
    display: flex;
  
    align-items: center;
  
    gap: 18px;
  
    margin-top: 24px;
  }
  
  .timer {
  
    font-size: 22px;
  
    font-family: monospace;
  }
  
  .wave-container {
  
    display: flex;
  
    align-items: flex-end;
  
    gap: 3px;
  
    flex: 1;
  
    height: 28px;
  }
  
  .w-bar {
  
    width: 4px;
  
    height: 4px;
  
    background: var(--border);
  
    border-radius: 999px;
  
    transition: .15s;
  }
  
  .w-bar.on {
  
    background: var(--accent);
  }
  
  .transcript-box {
  
    margin-top: 24px;
  
    background: var(--surface2);
  
    border-radius: 18px;
  
    padding: 18px;
  
    min-height: 240px;
  
    max-height: 340px;
  
    overflow-y: auto;
  }
  
  .transcript-placeholder {
  
    color: var(--muted);
  
    text-align: center;
  
    margin-top: 70px;
  }
  
  .t-line {
  
    line-height: 1.7;
  
    margin-bottom: 12px;
  
    padding-bottom: 12px;
  
    border-bottom: 1px solid var(--border);
  }
  
  .t-time {
  
    color: var(--muted);
  
    font-size: 11px;
  
    margin-right: 8px;
  }
  
  .transcript-footer {
  
    display: flex;
  
    justify-content: space-between;
  
    margin-top: 14px;
  }
  
  .wc {
  
    color: var(--muted2);
  
    font-size: 13px;
  }
  
  .demo-inject {
  
    border: 1px solid var(--border);
  
    background: white;
  
    border-radius: 999px;
  
    padding: 8px 12px;
  
    cursor: pointer;
  }
  
  .stats-row {
  
    display: grid;
  
    grid-template-columns: repeat(4, 1fr);
  
    gap: 10px;
  
    margin-top: 14px;
  }
  
  .mini-stat {
  
    background: white;
  
    border: 1px solid var(--border);
  
    border-radius: 16px;
  
    padding: 16px;
  
    text-align: center;
  }
  
  .mini-stat-val {
  
    display: block;
  
    font-size: 24px;
  
    font-weight: 700;
  
    margin-bottom: 6px;
  }
  
  .mini-stat-label {
  
    font-size: 12px;
  
    color: var(--muted2);
  }
  
  .coach-panel {
  
    display: flex;
  
    flex-direction: column;
  
    gap: 14px;
  }
  
  .coach-header {
  
    background: var(--ink);
  
    color: white;
  
    border-radius: 24px;
  
    padding: 22px;
  }
  
  .coach-header h3 {
  
    margin-bottom: 6px;
  
    font-size: 24px;
  }
  
  .coach-header p {
  
    color: rgba(255,255,255,.72);
  
    line-height: 1.5;
  }
  
  .coach-mode-tag {
  
    display: inline-block;
  
    margin-top: 14px;
  
    background: rgba(255,255,255,0.12);
  
    border-radius: 999px;
  
    padding: 7px 12px;
  
    font-size: 12px;
  }
  
  .emotion-row {
  
    display: flex;
  
    gap: 8px;
  
    margin-top: 14px;
  
    flex-wrap: wrap;
  }
  
  .emotion-pill {
  
    background: rgba(255,255,255,0.12);
  
    border-radius: 999px;
  
    padding: 6px 10px;
  
    font-size: 12px;
  }
  
  .cards-area {
  
    display: flex;
  
    flex-direction: column;
  
    gap: 10px;
  }
  
  .coach-card {
  
    background: white;
  
    border: 1px solid var(--border);
  
    border-radius: 18px;
  
    padding: 18px;
  }
  
  .card-top {
  
    display: flex;
  
    justify-content: space-between;
  
    margin-bottom: 12px;
  }
  
  .card-type {
  
    font-size: 11px;
  
    font-weight: 800;
  
    letter-spacing: .5px;
  }
  
  .priority-tag {
  
    background: #ffebee;
  
    color: #c62828;
  
    border-radius: 999px;
  
    padding: 4px 8px;
  
    font-size: 10px;
  
    font-weight: 700;
  }
  
  .card-body {
  
    line-height: 1.7;
  }
  
  .card-why {
  
    margin-top: 14px;
  
    padding-top: 14px;
  
    border-top: 1px solid var(--border);
  
    color: var(--muted2);
  
    font-size: 13px;
  
    line-height: 1.6;
  }
  
  .thinking-row {
  
    display: none;
  }
  
  .thinking-row.on {
  
    display: flex;
  
    align-items: center;
  
    gap: 8px;
  }
  
  .empty-coach {
  
    text-align: center;
  
    color: var(--muted);
  
    padding: 40px;
  }
  
  @media (max-width: 900px) {
  
    .main-layout {
      grid-template-columns: 1fr;
    }
  
    .mode-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .app {
      padding: 14px;
    }
  
    .record-top {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .stats-row {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .coach-panel {
      margin-top: 18px;
    }
  
    .logo {
      font-size: 34px;
    }
  
    .transcript-box {
      min-height: 180px;
      max-height: 240px;
    }
  }