:root {
  font: 15px/1.55 "Inter", "Malgun Gothic", sans-serif;
  color: #172627;
  background: #edf1ef;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #153839; color: #fff; padding: 1.2rem max(1rem, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: #a8dbcb; font-weight: 700; letter-spacing: .15em; }
h1 { font-size: 1.65rem; margin: .2rem 0 0; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
main { max-width: 1192px; padding: 0 1rem 2rem; margin: 0 auto; }
#status { min-height: 1.55em; color: #285857; }
#status[data-error], #detail-content [data-error] { color: #a3272c; }
section { background: #fff; border: 1px solid #cbd9d5; border-radius: .6rem; padding: 1.1rem; margin-bottom: 1rem; min-width: 0; }
.forms { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
form { display: grid; gap: .65rem; }
form + form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #dce6e2; }
label { display: grid; gap: .25rem; font-weight: 600; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; border: 1px solid #95aeaa; border-radius: .3rem; background: #fff; padding: .4rem .5rem; }
textarea { min-height: 7rem; }
button { border: 1px solid #95aeaa; border-radius: .3rem; background: #fff; padding: .35rem .65rem; cursor: pointer; justify-self: start; }
button:disabled { cursor: wait; opacity: .6; }
header button { color: #172627; }
.primary { background: #116658; border-color: #116658; color: white; }
.fields, .actions, .section-heading { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.fields > label { flex: 1; min-width: 8rem; }
.section-heading { justify-content: space-between; margin-bottom: .65rem; }
.section-heading h2 { margin: 0; }
.license-filters input, .license-filters select { min-width: 0; }
#license-count { margin: .65rem 0; color: #285857; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .5rem; border-bottom: 1px solid #e1ebe7; white-space: nowrap; }
th { background: #f1f6f4; }
td input { width: auto; }
.license-label { max-width: 17rem; white-space: normal; overflow-wrap: anywhere; }
dialog { width: min(31rem, 90vw); border: 1px solid #95aeaa; border-radius: .6rem; padding: 1rem; }
dialog::backdrop { background: #10282999; }
dialog form[method="dialog"] { float: right; margin: 0; }
#detail-content { clear: both; }
[hidden] { display: none !important; }
@media (max-width: 650px) { .forms { grid-template-columns: 1fr; gap: 0; } }
