*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: #f5f6f8; color: #222; line-height: 1.45; }
.container { max-width: 900px; margin: 0 auto; padding: 1rem; }
header { background: #1f2937; color: #fff; padding: 1rem 0; margin-bottom: 1.5rem; }
header .container { display: flex; align-items: center; justify-content: space-between; }
header h1 { font-size: 1.25rem; }
header a { color: #d1d5db; text-decoration: none; font-size: .9rem; }
.card { background: #fff; border-radius: .5rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 1.25rem; margin-bottom: 1rem; }
h2, h3 { margin-bottom: .75rem; font-size: 1.1rem; }
label { display: block; margin: .6rem 0 .2rem; font-weight: 600; font-size: .9rem; }
input[type=text], input[type=password], input[type=file], select, button { width: 100%; padding: .65rem; border: 1px solid #d1d5db; border-radius: .375rem; font-size: 1rem; }
button, .btn { display: inline-block; background: #2563eb; color: #fff; border: none; cursor: pointer; text-align: center; text-decoration: none; font-weight: 600; }
button:hover, .btn:hover { background: #1d4ed8; }
.btn-success { background: #16a34a; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-small { padding: .35rem .6rem; font-size: .85rem; border-radius: .25rem; width: auto; }
form.inline { display: inline; }
.flash { padding: .75rem 1rem; border-radius: .375rem; margin-bottom: 1rem; }
.flash.success { background: #d1fae5; color: #065f46; }
.flash.error { background: #fee2e2; color: #991b1b; }
table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .9rem; }
th, td { padding: .6rem .5rem; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: middle; }
th { background: #f9fafb; font-weight: 600; }
.search-wrap { position: relative; margin-bottom: 1rem; }
#results { margin-top: .5rem; }
.result { background: #fff; border: 1px solid #e5e7eb; border-radius: .375rem; padding: .75rem; margin-bottom: .5rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.result.confirmed { background: #f3f4f6; opacity: .85; }
.result .name { font-weight: 600; }
.result .status { font-size: .8rem; color: #6b7280; }
.result .details { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid #e5e7eb; }
.result .details p { font-size: .85rem; margin: .15rem 0; }
.result .details strong { color: #374151; }
.empty { color: #6b7280; text-align: center; padding: 1.5rem; }
.login { max-width: 360px; margin: 4rem auto; }
.login h2 { text-align: center; margin-bottom: 1rem; }
.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; border-bottom: 2px solid #e5e7eb; }
.tab { padding: .5rem .8rem; text-decoration: none; color: #4b5563; font-weight: 600; border-bottom: 2px solid transparent; }
.tab.active { color: #2563eb; border-bottom-color: #2563eb; }
@media (max-width: 640px) {
  header .container { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .result { flex-direction: column; align-items: stretch; gap: .75rem; }
  .result > div:first-child { width: 100%; }
  .result > div:last-child { width: 100%; display: flex; justify-content: flex-end; align-items: center; gap: .5rem; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { margin-bottom: .75rem; border: 1px solid #e5e7eb; border-radius: .375rem; }
  td { display: flex; justify-content: space-between; padding: .5rem; }
  td::before { content: attr(data-label); font-weight: 600; color: #6b7280; }
}
