:root{
  --bg:#f3efe6; --paper:#fbf8f0; --ink:#1b1b1b; --muted:#5a5449;
  --line:rgba(0,0,0,.12); --accent:#7a5a2f; --accent2:#2f3b2f;
  --shadow:0 12px 28px rgba(0,0,0,.12); --radius:16px; --max:1080px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(122,90,47,.10), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(47,59,47,.12), transparent 55%),
    var(--bg);
  color:var(--ink);
  font-family:"EB Garamond", Georgia, serif;
  line-height:1.65;
}

a{ color:var(--ink); }
a:hover{ opacity:.92; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px;
}

.panel{
  background: rgba(251,248,240,.78);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.header{
  padding: 18px 22px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(122,90,47,.08), rgba(255,255,255,0));
}

.title{
  margin:0;
  font-family:"Cinzel", serif;
  letter-spacing:.4px;
}

.sub{ color:var(--muted); margin:6px 0 0 0; }

.content{ padding: 18px 22px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px; border-radius:12px;
  text-decoration:none; font-weight:600;
  border:1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.55);
  gap:10px;
}
.btn.primary{
  background: linear-gradient(180deg, rgba(122,90,47,.22), rgba(122,90,47,.10));
  border-color: rgba(122,90,47,.45);
}

.pill{
  display:inline-block;
  font-size:12px;
  padding:3px 10px;
  border-radius:999px;
  border:1px solid rgba(122,90,47,.35);
  background: rgba(122,90,47,.10);
  color: var(--accent);
}

.card{
  background: rgba(255,255,255,.55);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.muted{ color:var(--muted); font-size: 14px; }

table{
  width:100%;
  border-collapse: collapse;
}
th, td{ border-bottom:1px solid rgba(0,0,0,.08); padding:10px; vertical-align:top; }
th{ text-align:left; background: rgba(0,0,0,.03); font-family:"Cinzel", serif; letter-spacing:.2px; }

input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.60);
  font-family: inherit;
}
textarea{ resize: vertical; }

.form-row{ margin: 10px 0 14px; }
.actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}
