:root { color-scheme: light; font-family: Inter, "Segoe UI", system-ui, sans-serif; color: #15283a; background: #eef4f8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(145deg, #073a5a, #eef4f8 58%); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
input, textarea, select { width: 100%; border: 1px solid #cbd9e3; border-radius: 10px; padding: .74rem .8rem; background: #fff; color: #15283a; }
textarea { resize: vertical; }
label { display: grid; gap: .42rem; font-size: .88rem; font-weight: 700; color: #2b485d; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .35rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { margin-bottom: .4rem; font-size: 1.16rem; }
h3 { margin-bottom: .35rem; font-size: 1rem; }
.shell { max-width: 1240px; margin: 0 auto; padding: 3rem 1.25rem; }
.login-card { width: min(100%, 430px); margin: 8vh auto; padding: 2rem; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px #082f4955; }
.login-card form, .create-card form, dialog form { display: grid; gap: 1rem; }
.eyebrow { margin-bottom: .4rem; color: #0871b6; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 800; }
.muted { color: #63778a; font-size: .91rem; line-height: 1.45; }
header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; padding: 1.5rem; color: #fff; }
.grid { display: grid; grid-template-columns: minmax(260px, 350px) minmax(0, 1fr); gap: 1.25rem; }
.card { padding: 1.35rem; border-radius: 16px; background: #fff; box-shadow: 0 12px 35px #17354b16; }
.primary, .secondary, .danger { border: 0; border-radius: 10px; padding: .74rem 1rem; font-weight: 800; }
.primary { background: #167cbe; color: #fff; }
.secondary { background: #e6f1f8; color: #145274; }
.danger { background: #ffe7e7; color: #9f2525; }
.primary:disabled, .secondary:disabled, .danger:disabled { opacity: .62; cursor: wait; }
.list-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.list-header h2, .list-header p { margin-bottom: .2rem; }
.search { min-width: min(100%, 280px); grid-template-columns: auto 1fr; align-items: center; gap: .35rem; }
.search input { padding: .62rem; }
.licenses { margin-top: .9rem; }
.license-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem .15rem; border-top: 1px solid #e6edf2; }
.license-row p { margin: .3rem 0; color: #63778a; font-size: .86rem; }
.license-row small { color: #63778a; }
code { color: #15587c; }
.row-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: end; }
.pill { border-radius: 999px; padding: .34rem .55rem; font-size: .76rem; font-weight: 800; }
.pill.active { color: #087345; background: #e2f7ec; }
.pill.suspended, .pill.expired { color: #a12424; background: #ffe6e6; }
.empty { padding: 2rem; text-align: center; color: #63778a; }
dialog { width: min(680px, calc(100vw - 2rem)); border: 0; border-radius: 16px; box-shadow: 0 20px 80px #0007; color: #15283a; }
dialog::backdrop { background: #062a40a8; }
.dialog-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.icon-button { border: 0; background: transparent; color: #37556a; font-size: 2rem; line-height: 1; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
hr { border: 0; border-top: 1px solid #e3ebf0; width: 100%; margin: .2rem 0; }
.toast { position: fixed; z-index: 4; right: 1rem; bottom: 1rem; max-width: min(500px, calc(100vw - 2rem)); padding: .85rem 1rem; border-radius: 10px; color: #fff; background: #145274; box-shadow: 0 10px 30px #0003; font-weight: 700; }
.toast.error { background: #ba2f2a; }
@media (max-width: 800px) { .shell { padding: 1rem; } header { padding: 1rem 0; } .grid { grid-template-columns: 1fr; } .license-row { align-items: start; flex-direction: column; } .row-actions { justify-content: start; } .list-header { flex-direction: column; } .search { width: 100%; } }
