:root { color-scheme: light; font-family: system-ui, sans-serif; color: #173e32; background: #f6f8f2; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1120px; margin: auto; padding: 24px; }
.heading, .brand, .search { display: flex; align-items: center; gap: 14px; }
.heading { justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; }
.brand img { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; }
.brand strong { font-size: 22px; }
.brand p { margin: 3px 0 0; font-size: 14px; }
a { color: #126d51; overflow-wrap: anywhere; }
p { line-height: 1.6; }
.notice { padding: 18px; border: 1px solid #ddce98; border-radius: 16px; background: #fff9df; }
.notice p { margin-bottom: 0; }
.card { margin-top: 20px; padding: 24px; border: 1px solid #dce6de; border-radius: 20px; background: white; }
h1 { font-size: 26px; margin-top: 0; }
h2 { font-size: 20px; margin-top: 0; }
label { display: block; font-weight: 650; margin: 18px 0 8px; }
input, button { font: inherit; font-size: 16px; min-height: 48px; border-radius: 10px; }
input { min-width: 0; flex: 1; padding: 12px; border: 1px solid #aebfb3; background: white; color: #173e32; }
button { border: 0; background: #166d50; color: white; padding: 12px 18px; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #3b9176; outline-offset: 3px; }
dl { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); gap: 12px 20px; }
dt { font-weight: 650; }
dd { margin: 0; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14px; }
th, td { padding: 12px; border-bottom: 1px solid #e2e9e3; text-align: left; vertical-align: top; }
th { background: #edf5ef; }
td { max-width: 300px; overflow-wrap: anywhere; }
.reference { display: block; margin-bottom: 6px; overflow-wrap: anywhere; }
.muted { color: #596f63; font-size: 14px; }
.record-tabs, .user-list { display: flex; flex-wrap: wrap; gap: 10px; }
.record-tabs button { background: #edf5ef; color: #173e32; }
.record-tabs button[aria-pressed=true] { background: #166d50; color: white; }
.user-list button { background: #edf5ef; color: #173e32; overflow-wrap: anywhere; max-width: 100%; text-align: left; }
details { border: 1px solid #dce6de; border-radius: 12px; margin: 12px 0; padding: 14px; }
summary { cursor: pointer; overflow-wrap: anywhere; font-weight: 650; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 14px; line-height: 1.6; max-height: 600px; overflow-y: auto; }
.scan-preview { display: block; max-width: 100%; width: 480px; height: auto; border-radius: 12px; margin-top: 12px; }
#admin-control-reason { width: 100%; margin-bottom: 12px; }
#admin-control-action { background: #95432f; }
@media(max-width: 600px) {
  main { padding: 16px; }
  .card { padding: 18px; }
  .search { align-items: stretch; flex-direction: column; }
  dl { grid-template-columns: 1fr; gap: 5px; }
  dd { margin-bottom: 10px; }
}
