* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f5f7fb; margin: 0; color: #0f172a; }
.login { background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%); }
.container { max-width: 1280px; margin: 0 auto; padding: 24px; }
.container.small { max-width: 420px; }
.site-header { background: #ffffffcc; backdrop-filter: saturate(1.2) blur(4px); border-bottom: 1px solid #e5e7eb; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; gap: 12px; }
.nav a { color: #334155; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.nav a:hover { background: #eef2ff; color: #1e3a8a; }
.userbar { display: flex; gap: 8px; align-items: center; }
.site-footer { border-top: 1px solid #e5e7eb; margin-top: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: center; color: #64748b; padding: 16px 0; font-size: 13px; }
.hero { text-align: center; margin: 32px 0 16px; }
.brand-title { font-size: 24px; font-weight: 700; }
.brand-subtitle { color: #64748b; margin-top: 4px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.brand { font-weight: 600; font-size: 18px; }
.userbar { display: flex; gap: 8px; align-items: center; }
h1 { margin: 0 0 16px 0; font-size: 20px; }
.query { display: flex; gap: 8px; margin-bottom: 16px; }
input { padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; flex: 1; outline: none; }
input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
button { padding: 10px 12px; border: 0; border-radius: 6px; background: #2563eb; color: #fff; cursor: pointer; }
button:hover { background: #1e4fd6; }
.result h2 { margin-top: 16px; }
.alert { padding: 12px 14px; border-radius: 8px; border: 1px solid #e5e7eb; margin-bottom: 12px; }
.alert.success { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.alert.warn { background: #fff7ed; border-color: #f59e0b; color: #7c2d12; }
.contact { margin-top: 12px; font-weight: 500; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.card h1 { text-align: center; margin-bottom: 12px; }
.row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #eef2f7; }
.row:last-child { border-bottom: 0; }
.row .k { width: 160px; color: #64748b; }
.row .v { flex: 1; }
.list { display: grid; gap: 8px; }
.event { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; }
.event .meta { color: #475569; font-size: 12px; margin-bottom: 6px; }
.toolbar { margin: 12px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form input { grid-column: span 1; }
.form button { grid-column: span 2; }
.form.one { grid-template-columns: 1fr; }
.form.one input { grid-column: span 1; }
.form.one button { grid-column: span 1; width: 100%; }
.msg { color: #ef4444; margin-top: 8px; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.container.admin { padding-left: 15px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal.show { display: flex; }
.modal-content { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; width: 800px; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; }
#modal_body { padding: 16px; max-height: 70vh; overflow: auto; }
.modal.top { align-items: flex-start; padding-top: 16px; }
.table .row { align-items: center; }
.table .row .k { width: 140px; }
.table .row .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .row .v.time { min-width: 180px; overflow: visible; text-overflow: clip; white-space: nowrap; font-variant-numeric: tabular-nums; }
