:root { color: #182337; background: #f3f6fb; font-family: "Segoe UI", system-ui, sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.shell { width: min(100% - 32px, 520px); margin: 9vh auto 0; }
.brand { display: flex; align-items: center; gap: 14px; margin: 0 0 28px 4px; }
.mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: white; background: #173d75; font-size: 25px; font-weight: 700; }
.eyebrow { margin: 0 0 5px; color: #60718a; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
h1 { margin: 0; font-size: 21px; }
.card { padding: 34px; border: 1px solid #e0e6ef; border-radius: 18px; background: white; box-shadow: 0 16px 44px #273c5a12; }
h2 { margin: 0; font-size: 25px; letter-spacing: -.02em; }
.intro { margin: 12px 0 24px; color: #5b6677; line-height: 1.55; }
label { display: block; margin: 19px 0 7px; font-size: 13px; font-weight: 650; }
input, select { width: 100%; min-height: 46px; border: 1px solid #cbd4e1; border-radius: 9px; padding: 10px 12px; color: inherit; background: white; font: inherit; }
input:focus, select:focus, button:focus-visible { outline: 3px solid #8cb9fa; outline-offset: 2px; }
button { min-height: 46px; border: 0; border-radius: 9px; padding: 0 17px; font: inherit; font-weight: 650; cursor: pointer; }
.primary { width: 100%; color: white; background: #173d75; }
.primary:hover { background: #102f60; }
.primary:disabled { opacity: .6; cursor: wait; }
.quiet { margin-top: 12px; color: #30435e; background: #eef2f7; }
.signed-in { margin: 20px 0 4px; color: #43536a; font-size: 13px; overflow-wrap: anywhere; }
.status { min-height: 20px; margin: 16px 0 0; color: #394a60; font-size: 13px; }
.status.error { color: #a32222; }
footer { margin: 17px 4px; color: #66748a; font-size: 12px; line-height: 1.5; }
[hidden] { display: none !important; }
@media (max-width: 520px) { .shell { margin-top: 5vh; } .card { padding: 25px 21px; } }
/* ---- licence administration (wide layout once signed in) ---- */
.shell.wide-shell { width: min(100% - 32px, 1180px); margin-top: 4vh; }
.card.wide { margin-top: 16px; padding: 26px; }
.tabs { display: flex; gap: 8px; align-items: center; margin: 0 0 4px; flex-wrap: wrap; }
.tabs .sp { flex: 1; }
.tab { min-height: 38px; color: #30435e; background: #e6ecf4; }
.tab.on { color: white; background: #173d75; }
.small { min-height: 36px; margin: 0; padding: 0 13px; font-size: 13px; }
.narrow { width: auto; }
.danger { color: white; background: #a32222; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 18px; margin-bottom: 18px; }
.grid .span2 { grid-column: span 2; }
.actions { display: flex; gap: 8px; align-items: center; margin: 14px 0; }
.actions.wrap { flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #e6ebf2; text-align: left; vertical-align: top; }
th { color: #60718a; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: #f3f6fb; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 650; background: #e6ecf4; }
.pill.active { color: #0d5c37; background: #d9f3e5; }
.pill.expired, .pill.revoked { color: #8a1c1c; background: #fbe0e0; }
.pill.suspended, .pill.not_started, .pill.issued { color: #7a5200; background: #fdf0d2; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 14px; margin: 0 0 6px; font-size: 14px; }
.kv dt { color: #60718a; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
h3 { margin: 22px 0 8px; font-size: 16px; }
textarea { width: 100%; border: 1px solid #cbd4e1; border-radius: 9px; padding: 10px; font: 12px Consolas, monospace; margin-bottom: 8px; }
.keybox { margin: 0 0 18px; padding: 14px 16px; border: 1px solid #f0c36d; border-radius: 12px; background: #fff8e6; }
.keybox code { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 700px) { .grid .span2 { grid-column: auto; } .kv { grid-template-columns: 1fr; } }
label.inline{display:flex;gap:8px;align-items:flex-start;font-weight:400}
label.inline input{width:auto;margin-top:3px}
