:root { --ink: #1d0b16; --berry: #7a1f52; --rose: #f08cb5; --rose-deep: #a11d57; --muted: #66404f; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 300 16px/1.55 "Outfit", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(240,140,181,.34), rgba(240,140,181,0) 70%),
    linear-gradient(165deg, #fff0f6 0%, #fcdcea 55%, #f9cfe1 100%) fixed;
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px; border-bottom: 1px solid rgba(176,35,95,.25);
  background: rgba(255,240,246,.85);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; }
.brand span { font: 500 22px/1 "Cormorant Garamond", serif; }
.brand small { display: block; font: 400 10px/1.4 "Outfit", sans-serif; letter-spacing: .26em; text-transform: uppercase; color: var(--rose-deep); }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 80px; }
h1 { font: 500 clamp(34px, 5vw, 52px)/1.1 "Cormorant Garamond", serif; color: var(--berry); margin: 0 0 10px; }
h2 { font: 500 24px/1.2 "Cormorant Garamond", serif; color: var(--berry); margin: 14px 0 10px; }
.hint { color: var(--muted); max-width: 70ch; margin: 0 0 28px; }
label { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
input:not([type=file]) {
  font: inherit; font-size: 16px; color: var(--ink); letter-spacing: 0;
  padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(176,35,95,.3); background: #fff;
}
input:focus-visible, button:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
input[type=file] { font-size: 14px; color: var(--ink); }
.btn {
  font: 500 14px/1 "Outfit", sans-serif; letter-spacing: .06em; cursor: pointer;
  padding: 13px 24px; border: 0; border-radius: 999px; color: #fff; background: var(--rose-deep);
  box-shadow: 0 12px 26px -14px rgba(122,31,82,.8);
}
.btn:hover { background: var(--berry); }
.link { background: none; border: 0; padding: 6px 0; cursor: pointer; font: inherit; font-size: 14px; color: var(--rose-deep); text-decoration: underline; text-underline-offset: 3px; }
.login {
  max-width: 400px; margin: 6vh auto 0; padding: 36px;
  background: rgba(255,246,250,.92); border: 1px solid rgba(176,35,95,.22); border-radius: 22px;
  box-shadow: 0 30px 60px -36px rgba(122,31,82,.6);
}
.login .btn { width: 100%; margin-top: 8px; }
.back { display: block; margin-top: 18px; text-align: center; font-size: 14px; color: var(--rose-deep); }
.flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 22px; max-width: 70ch; }
.flash.ok { background: #e3f3e7; color: #1f5a2e; border: 1px solid #9ccfa9; }
.flash.err { background: #fde3e0; color: #8a2418; border: 1px solid #eba79d; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.slot {
  padding: 16px 18px 20px; border-radius: 18px;
  background: rgba(255,246,250,.92); border: 1px solid rgba(176,35,95,.22);
  box-shadow: 0 20px 44px -32px rgba(122,31,82,.6);
}
.pic { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #f6c2d8; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(29,11,22,.72); color: #fdeaf1; }
.tag.own { background: var(--rose-deep); }
.row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.views { display: flex; gap: 6px; margin-left: auto; }
.views a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; letter-spacing: .06em; color: var(--berry); }
.views a:hover { background: rgba(240,140,181,.22); }
.views a[aria-current="page"] { background: var(--rose-deep); color: #fff; }
.views a:focus-visible, .link:focus-visible, summary:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
textarea {
  font: inherit; font-size: 16px; color: var(--ink); letter-spacing: 0; line-height: 1.55; resize: vertical;
  padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(176,35,95,.3); background: #fff;
}
textarea:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.group {
  margin: 0 0 18px; padding: 4px 22px; border-radius: 18px;
  background: rgba(255,246,250,.92); border: 1px solid rgba(176,35,95,.22);
  box-shadow: 0 20px 44px -32px rgba(122,31,82,.6);
}
.group summary { cursor: pointer; padding: 14px 0; font: 500 26px/1.2 "Cormorant Garamond", serif; color: var(--berry); }
.group .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 20px; padding-bottom: 10px; }
.group .fields .wide { grid-column: 1 / -1; }
.savebar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 18px;
  margin: 10px -12px 0; padding: 14px 12px; border-radius: 18px 18px 0 0;
  background: rgba(255,240,246,.94); border-top: 1px solid rgba(176,35,95,.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.savebar .btn { padding: 15px 40px; font-size: 15px; }
#dirty { color: var(--rose-deep); font-size: 14px; }
.backups { list-style: none; padding: 0; margin: 0; max-width: 640px; }
.backups li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px; margin-bottom: 8px; border-radius: 12px;
  background: rgba(255,246,250,.92); border: 1px solid rgba(176,35,95,.18);
}
.backups em { color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); }
select {
  font: inherit; font-size: 16px; color: var(--ink); letter-spacing: 0;
  padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(176,35,95,.3); background: #fff;
}
select:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.count { margin: -14px 0 24px; color: var(--berry); font-weight: 400; }
.reviews-admin { display: grid; gap: 16px; margin-bottom: 36px; }
.card {
  padding: 18px 20px; border-radius: 18px;
  background: rgba(255,246,250,.92); border: 1px solid rgba(176,35,95,.22);
  box-shadow: 0 20px 44px -32px rgba(122,31,82,.6);
}
.review-meta { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 0 16px; }
.review-edit textarea { width: 100%; }
.group.add { margin-bottom: 26px; }
.group.add form { padding-bottom: 16px; }
.link.danger { color: #a3271a; }
.row .link { padding: 12px 4px; }
.legal { padding-bottom: 18px; margin-bottom: 26px; }
.legal h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal textarea { width: 100%; min-height: 360px; font-size: 15px; }
.link.small { font-family: inherit; font-size: 14px; }
.older { margin-top: 14px; }
.group .older summary { cursor: pointer; color: var(--berry); padding: 8px 0; font-family: inherit; font-size: 15px; letter-spacing: .02em; }
.older .backups { margin-top: 8px; }
.hint code { background: rgba(240,140,181,.2); padding: 1px 6px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .views a:last-child:nth-child(odd) { grid-column: span 2; }
  .legal textarea { min-height: 300px; }
  .review-meta { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .backups li { flex-wrap: wrap; }
  .top { flex-wrap: wrap; padding: 14px 18px; }
  .views { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .views a { text-align: center; padding: 11px 8px; background: rgba(255,246,250,.7); }
  .group { padding: 4px 16px; }
}
