body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; background: #f5f9ff; color: #0b1736; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #0a84ff; color: #fff; position: sticky; top: 0; }
.container { max-width: 960px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 20px; margin: 0; color: #fff; }
h2 { font-size: 18px; margin: 16px 0 8px; color: #0a84ff; }
.btn { display: inline-block; padding: 6px 10px; background: #0a84ff; color: #fff; border-radius: 6px; text-decoration: none; }
table { border-collapse: collapse; width: 100%; margin-top: 8px; background: #fff; }
th { background: #eaf3ff; color: #0b1736; }
th, td { border: 1px solid #cfe0ff; padding: 8px; text-align: left; }
tr:hover { background: #f3f8ff; }
form { display: inline; margin: 0; padding: 0; border: 0; background: transparent; }
.form-block { margin-bottom: 16px; padding: 12px; border: 1px solid #cfe0ff; background: #fff; display: block; }
input, select, button { padding: 6px 8px; margin: 4px; border: 1px solid #cfe0ff; border-radius: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { display: grid; grid-template-columns: 60px 1fr; grid-template-rows: auto auto auto; align-items: center; gap: 8px; padding: 12px; border: 1px solid #cfe0ff; border-radius: 8px; background: #fff; }
.card img { grid-row: 1 / span 3; border-radius: 8px; }
.card-title { font-weight: 600; }
.card-sub { color: #4c5a7d; font-size: 12px; }
.btn-secondary { background: #4c5a7d; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-op { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
button { white-space: nowrap; }
.modal { position: fixed; inset: 0; background: rgba(11, 23, 54, 0.4); display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none !important; }
.modal-body { background: #fff; border: 1px solid #cfe0ff; padding: 16px; border-radius: 10px; width: 360px; }
.modal-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
#noticeModal .modal-actions { justify-content: center; }
.hint { margin-top: 8px; color: #0a84ff; }
.clickable { cursor: pointer; }
.list { margin-top: 8px; border: 1px solid #cfe0ff; border-radius: 8px; overflow: hidden; }
.list-item { padding: 10px 12px; border-bottom: 1px solid #eaf3ff; cursor: pointer; }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #f3f8ff; }
.list-item.selected { background: #eaf3ff; }
.panel { margin-bottom: 16px; padding: 12px; border: 1px solid #cfe0ff; background: #fff; display: grid; grid-template-columns: 1fr; gap: 8px; border-radius: 8px; }
.field-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { height: 28px; border-radius: 8px; }
.admin-layout { display: flex; gap: 16px; }
.sidebar { width: 220px; background: #fff; border-right: 1px solid #cfe0ff; border-radius: 8px; padding: 12px; height: fit-content; position: sticky; top: 64px; }
.side-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #0b1736; text-decoration: none; width: 100%; }
.nav-item:hover { background: #f3f8ff; }
.nav-item.active { background: #e7f7ee; color: #035e2b; border: 1px solid #bfeccc; }
.admin-content { flex: 1; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; }
.section-title { font-size: 16px; font-weight: 600; color: #0a84ff; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-success { background: #13c24a; color: #fff; }
.btn-warning { background: #ff9f0a; color: #fff; }
.btn-danger { background: #ff3b30; color: #fff; }
.searchbar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #cfe0ff; border-radius: 8px; padding: 8px; }
.tag { display: inline-flex; padding: 2px 6px; border-radius: 6px; background: #eaf3ff; color: #0b1736; font-size: 12px; }
.badge-success { background: #e7f7ee; color: #035e2b; border-radius: 6px; padding: 2px 6px; }
.badge-info { background: #eaf3ff; color: #0a84ff; border-radius: 6px; padding: 2px 6px; }
.badge-warning { background: #fff7e6; color: #8a4b00; border-radius: 6px; padding: 2px 6px; }
.footer { background: #fff; border-top: 1px solid #cfe0ff; color: #4c5a7d; margin-top: auto; }
.footer .container { padding: 12px 16px; }
.footer-content { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; text-decoration: none; color: inherit; }
.footer-support { display: flex; align-items: center; gap: 8px; }
.footer-support img { height: 20px; border-radius: 4px; }
main { flex: 1; }
.admin-layout.container { max-width: none; margin: 24px 16px; }
.admin-content .card { padding: 16px; gap: 12px; }
.admin-content .panel { padding: 16px; gap: 12px; }
#noticeModal .modal-body { text-align: center; }
#noticeModal h3 { color: #ff3b30; }
#noticeText { color: #ff3b30; font-weight: 600; display: block; padding: 10px 12px; border: 1px solid #ffd5d2; border-radius: 10px; background: #fff4f3; }
#noticeCountdown { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border: 1px solid #cfe0ff; border-radius: 999px; background: #f3f8ff; font-weight: 600; }
.cd-number { font-size: 20px; color: #ff3b30; display: block; }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; border-right: 0; border-bottom: 1px solid #cfe0ff; position: static; top: auto; }
  .footer-content { flex-direction: column; }
  .modal-body { width: 92vw; max-width: 420px; }
}
@media (max-width: 480px) {
  .topbar { flex-wrap: wrap; gap: 8px; }
  .card { grid-template-columns: 1fr; }
  .card img { grid-row: auto; justify-self: start; }
  .modal-actions .btn { flex: 1 1 100%; }
}
.auth-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.auth-title { font-size: 18px; color: #0a84ff; }
.auth-desc { color: #4c5a7d; font-size: 12px; }
.auth-input { width: 100%; padding: 10px 12px; border: 1px solid #cfe0ff; border-radius: 8px; }
.auth-actions { display: flex; gap: 8px; justify-content: center; }
