:root {
  --bg: #f5f6fb;
  --bg-alt: #eef1f8;
  --panel: #ffffff;
  --panel-soft: #f8faff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  --border: #e2e8f0;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --font-body: "Manrope", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

.bg-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 70%);
  z-index: -2;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(148, 163, 184, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  z-index: -3;
}

.app-root {
  min-height: 100vh;
}

.view {
  display: none;
  min-height: 100vh;
}

.view.is-active {
  display: block;
}

.view.is-active.app-view {
  display: grid;
}

.hidden {
  display: none !important;
}

.loader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
}

.brand.small {
  font-size: 16px;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.btn {
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
}

.btn.dark {
  background: #0f172a;
  color: #fff;
}

.btn.danger {
  background: #ef4444;
  color: #fff;
}

.btn.danger.ghost {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
}

.btn.wide {
  width: 100%;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.is-loading {
  cursor: wait;
  opacity: 0.7;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.1);
  animation: btn-spin 0.8s linear infinite;
}

.btn.ghost .btn-spinner {
  border-color: rgba(37, 99, 235, 0.4);
  border-top-color: rgba(37, 99, 235, 0.1);
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw 0;
  gap: 20px;
}

.landing-links {
  display: flex;
  gap: 18px;
}

.landing-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.landing-actions {
  display: flex;
  gap: 12px;
}

.landing-main {
  padding: 40px 6vw 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  margin: 16px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--muted);
}

.lead {
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  flex-wrap: wrap;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-card {
  background: var(--panel);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card-inner {
  display: grid;
  gap: 18px;
  text-align: center;
}

.card-label {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
}

.hero-mic {
  display: flex;
  justify-content: center;
}

.mic-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at top, #5b8bff, #2563eb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.35);
  cursor: pointer;
}

.mic-btn svg {
  width: 36px;
  height: 36px;
}

.features {
  display: grid;
  gap: 20px;
}

.features h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin: 0;
}

.section-lead {
  color: var(--muted);
  max-width: 560px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--panel);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.icon-chip {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.icon-chip.alt {
  background: rgba(16, 185, 129, 0.15);
}

.icon-chip.warm {
  background: rgba(249, 115, 22, 0.15);
}

.icon-chip span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: currentColor;
  color: #2563eb;
}

.icon-chip.alt span {
  color: #10b981;
}

.icon-chip.warm span {
  color: #f97316;
}

.testimonials {
  display: grid;
  gap: 24px;
}

.testimonials-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.testimonials-header h2 {
  font-family: var(--font-display);
  margin: 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.testimonial-card {
  background: var(--panel);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.rating {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
}

.avatar.small {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
}

.icon-btn span {
  display: block;
  width: 14px;
  height: 14px;
  margin: 10px auto;
  border: 2px solid var(--muted);
  border-left: none;
  border-bottom: none;
  transform: rotate(45deg);
}

#testimonial-prev span {
  transform: rotate(-135deg);
}

.landing-footer {
  padding: 24px 6vw 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.share-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px;
}

.share-card {
  background: var(--panel);
  padding: 32px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.share-meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.share-content {
  margin: 24px 0;
  line-height: 1.6;
  white-space: pre-wrap;
}

.share-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-status {
  color: var(--muted);
}

.app-view {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: start;
  width: 260px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-toggle span {
  transform: rotate(-135deg);
}

.app-view.is-collapsed .sidebar-toggle span {
  transform: rotate(45deg);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-name {
  font-weight: 600;
}

.user-plan {
  color: var(--primary);
  font-size: 13px;
}

.upgrade-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
  font-weight: 600;
}

.upgrade-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upgrade-icon svg {
  width: 18px;
  height: 18px;
  fill: rgba(37, 99, 235, 0.12);
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: transparent;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
}

.nav-item.active .nav-icon svg {
  stroke: var(--primary-dark);
}

.record-btn {
  margin-top: auto;
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 16px 24px rgba(37, 99, 235, 0.25);
}

.record-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.record-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.record-label {
  display: inline-flex;
}

.signout-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.signout-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-view.is-collapsed {
  grid-template-columns: 90px 1fr;
}

.app-view.is-collapsed .sidebar {
  padding: 20px 12px;
  align-items: center;
}

.app-view.is-collapsed .brand span:last-child {
  display: none;
}

.app-view.is-collapsed .sidebar-user div:last-child {
  display: none;
}

.app-view.is-collapsed .upgrade-label {
  display: none;
}

.app-view.is-collapsed .upgrade-btn {
  width: 100%;
  padding: 12px 0;
}

.app-view.is-collapsed .sidebar-nav .nav-item {
  text-align: center;
  padding: 12px;
  justify-content: center;
}

.app-view.is-collapsed .sidebar-nav {
  align-items: center;
}

.app-view.is-collapsed .nav-label {
  display: none;
}

.app-view.is-collapsed .record-btn {
  justify-content: center;
  padding: 14px 0;
  width: 100%;
}

.app-view.is-collapsed .record-label {
  display: none;
}

.app-view.is-collapsed #signout-btn {
  justify-content: center;
}

.app-view.is-collapsed .signout-label {
  display: none;
}

.app-view.is-collapsed .signout-icon {
  margin-right: 0;
}

.billing-modal {
  max-width: 760px;
}

.billing-header {
  align-items: flex-start;
}

.billing-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.billing-usage {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-dark);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.billing-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-bottom: 16px;
}

.billing-plans {
  display: grid;
  gap: 12px;
}

.plan-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card.featured {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.plan-name {
  font-weight: 700;
  font-size: 18px;
}

.plan-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}

.plan-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-meta {
  color: var(--muted);
  font-size: 13px;
}

.plan-quota-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
  color: var(--text);
  font-size: 13px;
}

.plan-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-actions .btn {
  flex: 1;
}

.billing-features {
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
}

.billing-features h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  display: inline-block;
}

.billing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-main {
  padding: 24px 28px 40px;
  background: var(--bg);
  min-height: 100vh;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.search-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  background: var(--muted);
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
}

.search input {
  border: none;
  flex: 1;
  font-size: 14px;
  outline: none;
  background: transparent;
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel {
  display: none;
  background: transparent;
}

.panel.is-active {
  display: block;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-header h1 {
  font-family: var(--font-display);
  margin: 0 0 6px;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-weight: 600;
  cursor: pointer;
}

.pill.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.pill.muted {
  color: var(--muted);
}

.select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border-radius: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border);
}

.select label {
  font-size: 12px;
  color: var(--muted);
}

.select select {
  border: none;
  background: transparent;
  outline: none;
  font-weight: 600;
  color: var(--text);
}

.note-list {
  display: grid;
  gap: 16px;
}

.note-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.note-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
}

.note-icon span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary);
}

.note-body h3 {
  margin: 0 0 6px;
}

.note-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
  font-weight: 600;
}

.note-time {
  color: var(--muted);
  font-size: 12px;
}

.note-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon-toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-toggle.active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
}

.icon-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
}

.icon-toggle.active svg {
  fill: var(--primary);
  stroke: var(--primary);
}

.empty-state {
  text-align: center;
  padding: 40px;
  background: var(--panel);
  border-radius: 18px;
  border: 1px dashed var(--border);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.detail-title input {
  font-family: var(--font-display);
  font-size: 28px;
  border: none;
  background: transparent;
  outline: none;
  font-weight: 600;
  width: 100%;
}

.detail-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-row input {
  flex: 1;
  min-width: 0;
}

.back-btn {
  width: 34px;
  height: 34px;
}

.back-btn span {
  transform: rotate(-135deg);
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
}

.favorite-btn.active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
}

.favorite-btn.active svg {
  fill: var(--primary);
  stroke: var(--primary);
}

.note-meta {
  font-size: 13px;
  color: var(--muted);
}

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

.content-card,
.side-card {
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.content-body {
  white-space: pre-wrap;
  line-height: 1.6;
}

.content-body.muted {
  color: var(--muted);
}

.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 12px;
}

.audio-empty {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.1);
}

.tag-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.tag-input-row {
  display: flex;
  gap: 8px;
}

.tag-input-row input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 8px 12px;
}

.meta-card {
  display: grid;
  gap: 10px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.live-transcript {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.6;
}

.live-transcript .live-fragment {
  color: var(--primary-dark);
  font-weight: 700;
}

.recording-panel {
  position: fixed;
  left: 300px;
  right: 40px;
  bottom: 24px;
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.app-view.is-collapsed .recording-panel {
  left: 140px;
}

.recording-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wave {
  display: flex;
  gap: 6px;
}

.wave span {
  width: 6px;
  height: 28px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 6px;
  animation: wave 1.2s infinite ease-in-out;
}

.wave span:nth-child(2) { animation-delay: 0.1s; }
.wave span:nth-child(3) { animation-delay: 0.2s; }
.wave span:nth-child(4) { animation-delay: 0.3s; }
.wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1.2); }
}

.recording-time {
  color: var(--muted);
  font-size: 14px;
}

.recording-limit {
  margin-top: 6px;
  font-size: 13px;
  color: #b91c1c;
}

.recording-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recording-control {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.recording-control svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

.recording-control .icon-play {
  display: none;
}

.recording-control.is-paused .icon-play {
  display: block;
}

.recording-control.is-paused .icon-pause {
  display: none;
}

.recording-control.stop {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.recording-control.stop svg {
  fill: #ef4444;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal-content {
  background: var(--panel);
  padding: 24px;
  border-radius: 18px;
  max-width: 420px;
  width: calc(100% - 40px);
  box-shadow: var(--shadow);
}

.modal-content.billing-modal {
  max-width: 760px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-body {
  color: var(--muted);
  margin-bottom: 16px;
}

.modal-status {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.share-link-row {
  display: flex;
  gap: 8px;
}

.share-link-row input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
}

.share-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 30;
}

.empty-state.hidden,
.modal.hidden,
.toast.hidden {
  display: none;
}

@media (max-width: 900px) {
  .app-view {
    grid-template-columns: 1fr;
  }

  .app-view.is-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: auto;
  }

  .sidebar-nav {
    flex-direction: row;
  }

  .recording-panel {
    left: 20px;
    right: 20px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .billing-layout {
    grid-template-columns: 1fr;
  }

  .billing-modal {
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 720px) {
  .landing-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-links {
    flex-wrap: wrap;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .sidebar {
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar-nav {
    flex-direction: column;
  }

  .record-btn {
    width: 100%;
  }

  .recording-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}
