* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; background: #f4f5f7; color: #1d2230; }
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
         padding: 12px 20px; background: #1d2230; color: #fff; }
header nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
header a, header .link { color: #cfd6e6; text-decoration: none; }
header a:hover, header .link:hover { color: #fff; }
main { max-width: 1000px; margin: 0 auto; padding: 20px; }
h1 { font-size: 22px; margin: 4px 0 18px; }
.card { background: #fff; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card h2 { font-size: 17px; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meta { color: #5d6577; font-size: 13px; margin-bottom: 10px; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0; }
dt { color: #5d6577; } dd { margin: 0; font-family: ui-monospace, monospace; word-break: break-all; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 99px; color: #fff; font-weight: 600; }
.green { background: #1f9d55; } .red { background: #d64545; } .orange { background: #d98a1c; } .grey { background: #8a93a6; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
form.inline { display: inline; margin: 0; }
button, .btn { border: 0; border-radius: 6px; padding: 7px 12px; background: #2f5bd3; color: #fff; cursor: pointer; font: inherit; text-decoration: none; display: inline-block; }
button.secondary { background: #e4e7ee; color: #1d2230; }
button.danger { background: #d64545; }
button.link { background: none; padding: 0; }
.flash { background: #e6f0ff; border-left: 4px solid #2f5bd3; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.error { background: #fde8e8; border-left: 4px solid #d64545; padding: 8px 12px; border-radius: 6px; font-size: 13px; }
label { display: block; margin: 10px 0 4px; font-weight: 600; }
input, select { width: 100%; max-width: 420px; padding: 8px 10px; border: 1px solid #cdd2dc; border-radius: 6px; font: inherit; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #eceef3; }
th { background: #fafbfc; font-size: 13px; color: #5d6577; }
.table-wrap { overflow-x: auto; margin-bottom: 18px; }
details summary { cursor: pointer; color: #2f5bd3; }
