:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: #f3eeee;
  background: #171313;
  --muted: #aaa0a0;
  --line: #3a2c2c;
  --red: #d94b48;
}

* { box-sizing: border-box; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 10% 6%, rgba(196, 65, 60, .12), transparent 27rem),
    linear-gradient(90deg, transparent 49px, rgba(198, 71, 66, .025) 50px, transparent 51px),
    #171313;
  background-size: auto, 50px 50px, auto;
}
a { color: inherit; text-decoration: none; }
.topbar, main, .footer { width: min(940px, calc(100% - 40px)); margin-inline: auto; }
.topbar { position: sticky; z-index: 2; top: 0; height: 68px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(23, 19, 19, .96); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.brand-logo { width: 38px; height: 31px; border: 1px solid #563131; border-radius: 5px; object-fit: cover; }
.brand-accent, h1 span { color: #f2766e; }
.back-link { color: #b9adad; font-size: 10px; transition: color .15s; }
.back-link:hover { color: #fff; }
main { min-height: calc(100vh - 130px); padding-block: 53px 70px; }
.login-panel { max-width: 470px; margin: 26px auto 0; padding: 32px; border: 1px solid #583535; border-radius: 7px; background: rgba(33, 25, 25, .96); box-shadow: 5px 5px 0 rgba(46, 32, 32, .8); animation: arrive .35s ease-out both; }
.eyebrow { margin: 0 0 12px; color: #e77870; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0 0 12px; font-size: clamp(36px, 6vw, 52px); line-height: 1.02; letter-spacing: -.045em; }
.intro { max-width: 560px; margin: 0 0 24px; color: #b6aaaa; font-size: 11px; line-height: 1.7; }
form { display: flex; flex-direction: column; }
label { color: #eee5e5; font-size: 10px; font-weight: 700; }
input, select { border: 1px solid #483737; border-radius: 4px; outline: none; background: #171313; color: #f6eeee; font: 11px "Trebuchet MS", Arial, sans-serif; }
input:focus, select:focus { border-color: #bc5a52; box-shadow: 0 0 0 3px rgba(232, 95, 88, .1); }
#password { margin-top: 7px; padding: 11px; }
button { min-height: 36px; padding-inline: 11px; border: 1px solid #514040; border-radius: 4px; background: #2b2222; color: #e6dada; font: 700 10px "Trebuchet MS", Arial, sans-serif; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
button:hover:not(:disabled) { transform: translateY(-1px); border-color: #a75a54; background: #362626; color: #fff; }
button:disabled { opacity: .55; cursor: wait; }
.primary-button { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; padding-inline: 13px; border-color: #e15d55; background: #c84340; color: white; }
.primary-button:hover:not(:disabled) { border-color: #ed827a; background: #dd514c; }
.secondary-button { white-space: nowrap; }
.status { min-height: 17px; margin: 9px 0 5px; color: #ee958b; font-size: 10px; }
.status.success { color: #9ad2a6; }
.admin-panel[hidden] { display: none; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 22px; }
.panel-heading .intro { margin-bottom: 0; }
.heading-actions { display: flex; flex: 0 0 auto; gap: 8px; padding-top: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-block: 16px 19px; }
.stat-card { display: grid; gap: 7px; padding: 13px; border: 1px solid #3b3030; border-radius: 5px; background: #211c1c; animation: arrive .35s ease-out both; }
.stat-card:nth-child(2) { animation-delay: .05s; }
.stat-card:nth-child(3) { animation-delay: .1s; }
.stat-card span { color: #968989; font-size: 9px; }
.stat-card strong { color: #f1e8e8; font-family: Consolas, monospace; font-size: 19px; }
.review-tools { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: end; gap: 9px; padding: 12px; border: 1px solid #3b3030; border-radius: 5px; background: rgba(33, 28, 28, .8); }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 0; padding-inline: 9px; border: 1px solid #483737; border-radius: 4px; background: #171313; color: #a49595; }
.search-field:focus-within { border-color: #bc5a52; }
.search-field input { width: 100%; min-width: 0; padding-block: 9px; border: 0; background: transparent; box-shadow: none; }
.filter-field { display: grid; gap: 5px; color: #9e9292; font-size: 9px; }
.filter-field select { min-height: 35px; padding: 0 24px 0 9px; }
.review-list { display: grid; gap: 9px; margin-top: 12px; }
.review-card { display: grid; grid-template-columns: 1fr auto; gap: 11px; padding: 14px; border: 1px solid #3b3030; border-radius: 5px; background: #211c1c; animation: arrive .25s ease-out both; transition: border-color .15s, transform .15s; }
.review-card:hover { transform: translateY(-1px); border-color: #66403e; }
.review-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.review-name { margin: 0; color: #eee5e5; font-size: 11px; font-weight: 800; }
.review-date { color: #928787; font-size: 9px; }
.review-stars { color: #f0b759; font-size: 10px; letter-spacing: .04em; }
.review-comment { grid-column: 1 / -1; margin: 0; color: #c8bebe; font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.delete-button { align-self: start; min-height: 31px; border-color: #653b3a; color: #f09a91; background: #321e1e; }
.delete-button:hover:not(:disabled) { border-color: #a84a46; background: #442222; }
.empty-state { padding: 23px; border: 1px dashed #4a3939; border-radius: 5px; color: var(--muted); text-align: center; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.footer { display: flex; align-items: center; gap: 7px; padding-bottom: 24px; color: #817575; font-size: 9px; }
.footer-dot { width: 6px; height: 6px; border-radius: 50%; background: #86c68e; box-shadow: 0 0 8px rgba(134, 198, 142, .5); }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  .topbar, main, .footer { width: calc(100% - 30px); }
  main { padding-block: 35px 55px; }
  .panel-heading { flex-direction: column; }
  .heading-actions { padding-top: 0; }
  .review-tools { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .login-panel { padding: 25px 18px; }
  .stats-grid { gap: 6px; }
  .stat-card { padding: 10px 8px; }
  .stat-card span { font-size: 8px; }
  .stat-card strong { font-size: 16px; }
  .review-card { padding: 11px; }
  .review-header { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
