@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f6f6f6;
  --bg-soft: #f2f3f5;
  --panel: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(17, 17, 17, 0.08);
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.5);
  --accent: #111111;
  --accent-dark: #000000;
  --accent-soft: rgba(17, 17, 17, 0.06);
  --shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 8px 20px rgba(17, 17, 17, 0.05);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #ffffff, var(--bg));
  min-height: 100vh;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.12;
  animation: float 26s ease-in-out infinite;
}

.blob-a {
  top: -200px;
  left: -180px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e8eaee);
}

.blob-b {
  bottom: -220px;
  right: -220px;
  background: radial-gradient(circle at 60% 40%, #ffffff, #e7e9ed);
  animation-delay: -9s;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.2;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, -30px) scale(1.05);
  }
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw 6px;
}

.app-kicker {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.app-shell {
  padding: 0 6vw 70px;
  display: grid;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  animation: fadeUp 0.6s ease both;
}

.panel-hero {
  display: grid;
  gap: 14px;
  background: linear-gradient(135deg, #ffffff, var(--bg-soft));
}

.panel-hero-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.panel-hero-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.panel-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.panel-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.panel-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f2f4;
  color: #5f6368;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-body {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.8rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.summary-card {
  padding: 16px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(17, 17, 17, 0.08);
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow-soft);
}

.summary-card.highlight {
  background: #111111;
  color: #ffffff;
  border-color: rgba(17, 17, 17, 0.35);
}

.summary-card p {
  margin: 0;
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.6;
}

.summary-card h4 {
  margin: 0;
  font-size: 1.4rem;
}

.summary-card span {
  font-size: 0.85rem;
  color: inherit;
  opacity: 0.7;
}

.actions-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.primary,
.ghost,
.chip {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(17, 17, 17, 0.2);
}

.primary:hover,
.ghost:hover,
.chip:hover {
  transform: translateY(-1px);
}

.ghost {
  background: white;
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: var(--text);
}

.chip {
  background: #f0f1f3;
  color: var(--text);
  padding: 8px 14px;
  font-size: 0.75rem;
}

.file-button input {
  display: none;
}

.file-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  cursor: pointer;
  background: white;
  font-weight: 600;
}

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

.list {
  display: grid;
  gap: 12px;
}

.card {
  padding: 16px;
  border-radius: 20px;
  background: white;
  border: 1px solid rgba(17, 17, 17, 0.08);
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.card-title {
  font-weight: 600;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

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

.card-actions button {
  padding: 8px 12px;
  font-size: 0.75rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.3);
  padding: 20px;
  z-index: 10;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(560px, 92vw);
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

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

.modal-header h4 {
  margin: 0;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 20;
  font-size: 0.8rem;
}

.toast.show {
  opacity: 0.9;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .panel {
    padding: 18px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
