* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; background: #f5f6f8; color: #121212; }
.hide { display: none !important; }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login .card { width: 360px; background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 16px 40px rgba(18,18,18,.06); }
.login h1 { margin: 0; font-size: 28px; }
.login p { color: #8a8f98; margin: 8px 0 24px; }
.login input, .login button, table input, table select, .toolbar input, .toolbar select, dialog input, dialog textarea, dialog select {
  width: 100%; height: 44px; border: 1px solid #e6e8ec; border-radius: 12px; padding: 0 12px; font-size: 15px; margin: 0 0 12px;
}
dialog textarea { height: 88px; padding: 10px 12px; }
.login button, .primary, .toolbar button { background: #1b48c1; color: #fff; border: 0; border-radius: 12px; height: 44px; font-weight: 700; cursor: pointer; }
.err { color: #ff3b30; min-height: 20px; font-size: 13px; }
.app { display: flex; min-height: 100vh; }
aside { width: 220px; background: #121212; color: #fff; padding: 24px 16px; }
.brand { font-weight: 800; font-size: 20px; margin-bottom: 24px; }
nav button { display: block; width: 100%; text-align: left; background: transparent; color: #c7c7cc; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
nav button.on, nav button:hover { background: #1b48c1; color: #fff; }
main { flex: 1; padding: 24px 32px; }
header { display: flex; justify-content: space-between; align-items: center; }
.ghost { background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; height: 40px; padding: 0 16px; cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0 24px; }
.stat { background: #fff; border-radius: 16px; padding: 18px; }
.stat b { display: block; font-size: 28px; }
.stat span { color: #8a8f98; font-size: 13px; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.toolbar input { max-width: 240px; margin: 0; }
.toolbar button { padding: 0 16px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
th, td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; font-size: 13px; vertical-align: middle; }
th { color: #8a8f98; font-weight: 600; background: #fafafa; }
.danger { color: #ff3b30; background: none; border: 0; cursor: pointer; }
.ok { color: #1aa37a; }
img.av { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #eee; }
.pager { margin-top: 12px; display: flex; gap: 8px; align-items: center; }
dialog { border: 0; border-radius: 16px; padding: 20px; width: min(520px, 92vw); }
dialog.wide { width: min(720px, 94vw); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog textarea.tall { height: 240px; }
.cover-preview { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; margin: 0 0 12px; background: #eee; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chk { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #e6e8ec; border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; margin: 0; }
.chk input { width: 16px; height: 16px; margin: 0; }
.chk.pin { border-color: #1b48c1; color: #1b48c1; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
