:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #f7f8fa; color: #17191c; }
a { color: #2257c7; text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: #fff; border-bottom: 1px solid #e3e5e8; }
.nav { max-width: 1180px; margin: 0 auto; min-height: 58px; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.nav .brand { font-weight: 700; color: #17191c; margin-right: auto; }
.nav form { margin: 0; }
.container { max-width: 1180px; margin: 28px auto; padding: 0 20px 40px; }
.narrow { max-width: 480px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
h1, h2 { margin: 0 0 16px; }
.card { background: #fff; border: 1px solid #e3e5e8; border-radius: 10px; padding: 20px; margin-bottom: 18px; }
.grid { display: grid; gap: 14px; }
.filters { grid-template-columns: 1fr 2fr 1fr 1fr auto; align-items: end; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, button { font: inherit; }
input, select { width: 100%; border: 1px solid #cdd1d6; border-radius: 7px; padding: 9px 10px; background: #fff; }
button, .button { display: inline-block; border: 0; border-radius: 7px; background: #2257c7; color: #fff; padding: 9px 13px; cursor: pointer; text-decoration: none; }
button.secondary, .button.secondary { background: #eef1f5; color: #272a2e; }
button.danger, .button.danger { background: #b42318; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.actions form { margin: 0; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e5e8; }
th, td { padding: 11px 12px; border-bottom: 1px solid #eceef0; text-align: left; vertical-align: middle; }
th { background: #f6f7f9; font-size: 13px; }
.muted { color: #686d75; font-size: 14px; }
.flash { border-radius: 8px; padding: 11px 13px; margin-bottom: 18px; }
.flash.success { background: #eaf7ee; color: #176b35; }
.flash.warning { background: #fff7df; color: #735c0f; }
.flash.error { background: #fdecec; color: #9b1c1c; }
.error-text { color: #b42318; margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; }
.detail-grid dt { color: #686d75; }
.detail-grid dd { margin: 0; word-break: break-all; }
.pagination { margin-top: 18px; display: flex; gap: 10px; align-items: center; justify-content: center; }
.inline { display: flex; gap: 8px; align-items: end; }
.inline > * { flex: 1; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
@media (max-width: 820px) {
  .filters { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .table-wrap { overflow-x: auto; }
  .detail-grid { grid-template-columns: 1fr; }
}
