@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Cormorant+Garamond:wght@400;600&family=Inter:wght@300;400;500&display=swap');

:root{
  --ink:#2e2a27;
  --muted:#6b625c;
  --gold:#d1bf97;
  --shadow:0 18px 48px rgba(0,0,0,.14);
  --radius:18px;
  --ok:#2e7d32;
  --no:#b71c1c;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 20% 15%, #f2ebe6 0%, transparent 60%),
    radial-gradient(1200px 600px at 80% 85%, #f2ebe6 0%, transparent 60%),
    linear-gradient(180deg, #f6f1ee, #efe6e0 75%);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.bg{position:fixed; inset:0; pointer-events:none; z-index:0}
.corner{
  position:absolute;
  width:min(260px, 38vw);
  opacity:.55;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.12));
}
.corner-tl{top:14px; left:14px}
.corner-br{bottom:14px; right:14px}

.wrap{
  position:relative; z-index:1;
  max-width:980px;
  margin:0 auto;
  padding:42px 18px 56px;
}

.hero{
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.35));
  border: 1px solid rgba(189,168,118,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  backdrop-filter: blur(6px);
}

.back{
  display:inline-block;
  color: var(--muted);
  text-decoration:none;
  font-size: 14px;
  border: 1px solid rgba(46,42,39,.14);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
}
.back:hover{border-color: rgba(46,42,39,.24); color: var(--ink)}

h1{
  font-family:"Playfair Display", serif;
  font-weight:600;
  margin:14px 0 0;
  font-size: clamp(26px, 3.2vw, 36px);
}
.subtitle{
  margin:10px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
}

.divider{
  height:1px;
  margin:18px 0 0;
  background: linear-gradient(90deg, transparent, rgba(189,168,118,.8), transparent);
}

.panel{
  margin-top: 18px;
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(189,168,118,.22);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  overflow:hidden;
}

.panel-head{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(46,42,39,.10);
  background: rgba(255,255,255,.35);
}

.panel-body{padding: 18px}

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

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.row{
  border: 1px solid rgba(46,42,39,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  padding: 12px;
}

.row-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}

.badge{
  font-size: 12px;
  letter-spacing:.6px;
  text-transform: uppercase;
  color: rgba(46,42,39,.75);
  border:1px solid rgba(189,168,118,.35);
  background: rgba(255,255,255,.55);
  padding:6px 10px;
  border-radius:999px;
}

.remove{
  border:1px solid rgba(46,42,39,.16);
  background: rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  cursor:pointer;
}
.remove:hover{border-color: rgba(46,42,39,.28)}

.fields{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

label{
  display:block;
  font-size: 13px;
  color: rgba(46,42,39,.78);
  margin-bottom: 6px;
}

input, textarea, select{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(46,42,39,.18);
  background: rgba(255,255,255,.70);
  outline: none;
  font-size: 14px;
}

textarea{min-height: 88px; resize: vertical}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(46,42,39,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.42));
  cursor: pointer;
  transition: transform .08s ease, border-color .12s ease;
}
.btn:hover{border-color: rgba(46,42,39,.28); transform: translateY(-1px)}

.btn-ok{border-color: rgba(46,125,50,.35)}
.btn-add{border-color: rgba(189,168,118,.40)}

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

.alert{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(46,42,39,.16);
  background: rgba(255,255,255,.55);
  color: var(--muted);
  font-size: 14px;
}
.alert.error{border-color: rgba(183,28,28,.35)}
.alert.success{border-color: rgba(46,125,50,.35)}

.kv{display:grid; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--muted)}
.footer{margin-top: 18px; text-align:center; color: var(--muted); font-size: 13px}

@media (min-width: 840px){
  .fields{grid-template-columns: 1.2fr .9fr .7fr}
}
