:root {
  --bg: #f8f5f2;
  --pink: #ffb7c5;
  --cherry: #d9385e;
  --cherry-dark: #b82b4a;
  --ink: #2a2022;
  --muted: #8a7c7e;
  --paper: rgba(255, 255, 255, 0.78);
  --line: rgba(217, 56, 94, 0.18);
  --shadow: 0 18px 45px rgba(217, 56, 94, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(217, 56, 94, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 56, 94, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  z-index: 1000;
  mix-blend-mode: multiply;
  background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E');
}

button, input, select { font: inherit; }

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
}

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

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 30px;
  font-weight: 700;
  color: var(--cherry);
  letter-spacing: 0;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--cherry);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(217, 56, 94, 0.28);
}

.btn:hover { background: var(--cherry-dark); }
.btn.dark { background: var(--ink); }
.btn.soft { background: white; color: var(--cherry); border: 1px solid var(--pink); box-shadow: none; }
.btn.danger { background: #8f1f36; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

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

.field span, .label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
}

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(217, 56, 94, 0.36);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

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

@media (max-width: 760px) {
  .app-shell { padding: 16px; }
  .topbar { align-items: flex-start; flex-direction: column; }
}
