/* Admin-only styles, layered on styles.css */
.admin-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.sidebar { background: #2c2140; color: #efeaf7; padding: 0 0 30px; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 20px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar .brand b { font-family: Georgia, serif; font-size: 19px; }
.sidebar .brand span { display: block; font-size: 12px; opacity: .7; margin-top: 2px; }
.navlink { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: #d9d2ea; text-decoration: none; font-size: 15px; font-weight: 500; border-left: 3px solid transparent; cursor: pointer; }
.navlink:hover { background: rgba(255,255,255,.06); }
.navlink.active { background: rgba(255,255,255,.1); border-left-color: var(--gold); color: #fff; }
.navlink .ico { width: 20px; text-align: center; opacity: .9; }
.nav-section { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .5; padding: 18px 20px 6px; }
.whoami { margin: 14px 20px 0; padding: 12px; background: rgba(255,255,255,.07); border-radius: 10px; font-size: 13px; }
.whoami b { display: block; font-size: 14px; }
.role-tag { display: inline-block; margin-top: 6px; background: var(--gold); color: #2c2140; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 999px; }

.main { padding: 26px 32px 80px; max-width: 1000px; }
.page-title { font-size: 26px; margin: 0 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 22px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat .n { font-size: 30px; font-weight: 700; font-family: Georgia, serif; color: var(--plum); }
.stat .l { color: var(--muted); font-size: 13px; }

table.rows { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
table.rows th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.rows td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
table.rows tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.review-card { display: grid; grid-template-columns: 130px 1fr; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.review-card img { width: 130px; height: 100px; object-fit: contain; background: #f3f0f8; border-radius: 8px; }

.section { display: none; }
.section.active { display: block; }

.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.composer textarea { min-height: 150px; font-size: 15px; }
.copied { color: var(--ok); font-weight: 600; font-size: 14px; }
.locked { opacity: .55; }
.mobile-topbar { display: none; }

@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: none; }
  .sidebar.open { display: block; }
  .mobile-topbar { display: flex; align-items: center; justify-content: space-between; background: #2c2140; color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 5; }
  .main { padding: 18px 16px 70px; }
  .review-card { grid-template-columns: 1fr; }
  .review-card img { width: 100%; height: 160px; }
}
