/* src/styles.css */
.p2p-shell {
  display: grid;
  gap: 28px;
}
.p2p-hero-card,
.p2p-form-card,
.p2p-status-card,
.p2p-output-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(170, 211, 30, 0.18),
      transparent 30%),
    #fbf7f3;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(82, 80, 52, 0.12);
}
.p2p-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 24px;
  padding: 32px;
}
.p2p-lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.p2p-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.p2p-badges span,
.output-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(170, 211, 30, 0.18);
  color: var(--woodland-olive);
  font-size: 0.92rem;
  font-weight: 650;
}
.p2p-host-panel {
  display: grid;
  gap: 14px;
}
.host-card {
  padding: 18px;
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      #fbf7f3,
      var(--surface));
  border: 1px solid var(--line);
}
.host-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.host-label,
.audio-panel-label,
.transcript-speaker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--woodland-brown);
}
.host-card p:last-child,
.status-note p,
.empty-state p,
.audio-panel p,
.transcript-line p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.p2p-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 24px;
}
.p2p-form-card,
.p2p-status-card,
.p2p-output-card {
  padding: 28px;
}
.p2p-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.p2p-field span {
  font-size: 0.92rem;
  font-weight: 700;
}
.p2p-field textarea,
.p2p-field select {
  min-height: 52px;
  padding: 14px 16px;
}
.p2p-field textarea {
  resize: vertical;
}
.p2p-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.p2p-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.p2p-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
}
.p2p-footnote {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.6;
}
.p2p-error {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(194, 65, 50, 0.22);
  border-radius: 12px;
  background: rgba(194, 65, 50, 0.06);
  color: var(--danger);
  line-height: 1.5;
}
.progress-shell {
  margin-top: 20px;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #ddd2cb;
}
.progress-bar {
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--woodland-brown),
      var(--accent));
  transition: width 220ms ease;
}
.stage-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.stage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f6efe9;
  color: var(--muted);
}
.stage-active,
.stage-done {
  color: var(--text);
}
.stage-active {
  border-color: rgba(170, 211, 30, 0.55);
  background: rgba(170, 211, 30, 0.16);
}
.stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--woodland-gray);
  flex: 0 0 auto;
}
.stage-active .stage-dot,
.stage-done .stage-dot {
  background: var(--accent);
}
.status-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.status-strong {
  font-weight: 700;
  color: var(--text);
}
.empty-state {
  padding: 24px;
  border: 1px dashed #bfa698;
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(212, 175, 159, 0.18),
      rgba(212, 175, 159, 0.06));
}
.output-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}
.audio-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.audio-panel h3 {
  margin: 0 0 8px;
}
.audio-player {
  width: 100%;
  margin-top: 16px;
}
.audio-actions,
.transcript-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.transcript-toolbar {
  margin-top: 24px;
}
.transcript-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.transcript-line {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbf7f3;
}
.summary-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f1e6df;
}
.summary-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.p2p-page {
  padding-bottom: 72px;
}
@media (max-width: 980px) {
  .p2p-hero-card,
  .p2p-workbench,
  .audio-panel {
    grid-template-columns: 1fr;
  }
  .p2p-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .p2p-hero-card,
  .p2p-form-card,
  .p2p-status-card,
  .p2p-output-card {
    padding: 22px;
    border-radius: 16px;
  }
  .p2p-actions,
  .audio-actions,
  .transcript-toolbar {
    align-items: stretch;
  }
}
