﻿:root {
  --bg: #0f172a;
  --card: #f7fafc;
  --ink: #0b1326;
  --muted: #51607f;
  --brand: #f97316;
  --brand-strong: #ea580c;
  --line: #d6ddee;
  --ok: #0ea5a4;
  --warn: #f59e0b;
  --alert: #e11d48;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Sora', sans-serif;
  background: radial-gradient(circle at 15% 10%, #1e2a58 0%, var(--bg) 45%), linear-gradient(130deg, #0f172a, #172554);
  color: var(--ink);
  min-height: 100vh;
}

.app-shell {
  width: min(980px, 94vw);
  margin: 0 auto;
  padding: 20px 0 48px;
}

.hero {
  color: #ffffff;
  padding: 18px 4px 14px;
}

.kicker {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
}

.subtitle {
  margin: 0;
  max-width: 720px;
  color: #d7e1ff;
  line-height: 1.5;
}

.panel {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  margin-top: 14px;
  border: 1px solid rgba(214, 221, 238, 0.7);
  box-shadow: 0 18px 35px rgba(5, 10, 26, 0.2);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.idea-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #0d1c3a;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  min-height: 44px;
}

textarea {
  min-height: 90px;
  resize: vertical;
  padding-right: 56px;
}

.field-with-voice {
  position: relative;
}

.field-with-voice input {
  padding-right: 56px;
}

.voice-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 30px;
  min-width: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff7ed;
  color: #9a3412;
  cursor: pointer;
}

.voice-btn.listening {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hint {
  margin: -2px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 42px;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

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

.btn-ghost {
  background: #ffffff;
  border-color: var(--line);
}

.template-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.template-btn {
  border: 1px dashed #afbddf;
  border-radius: 12px;
  background: #f9fbff;
  text-align: left;
  padding: 10px;
  cursor: pointer;
}

.template-btn strong {
  display: block;
  margin-bottom: 4px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fcfdff;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.pitch {
  margin: 10px 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.meters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  background: #edf3ff;
  border: 1px solid #ccd9f5;
}

.tag.ok {
  background: #ecfdf5;
  border-color: #b3f3d9;
}

.tag.warn {
  background: #fffbeb;
  border-color: #fde68a;
}

.tag.alert {
  background: #fff1f2;
  border-color: #fecdd3;
}

.next-action {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  background: #0f172a;
  color: #ffffff;
  border-radius: 10px;
  padding: 8px;
}

.dates {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 0.82rem;
}

.card-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.link {
  border: none;
  background: transparent;
  color: #1d4ed8;
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
}

.empty {
  border: 1px dashed #b4c5e9;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

@media (max-width: 650px) {
  .app-shell { width: 94vw; }
  .panel { padding: 14px; border-radius: 16px; }
  .grid-2, .board { grid-template-columns: 1fr; }
  .actions {
    position: sticky;
    bottom: 8px;
    background: rgba(247, 250, 252, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
  }
  .btn { flex: 1 1 calc(50% - 8px); }
}
