:root {
  color-scheme: light;
  --navy: #102a43;
  --slate: #334e68;
  --teal: #2c7a7b;
  --steel: #627d98;
  --gold: #b08968;
  --canvas: #f7fafc;
  --surface: #ffffff;
  --surface-muted: #f4f7fa;
  --border: #e2e8f0;
  --text: #1f2933;
  --muted: #627d98;
  --success: #2f855a;
  --success-muted: #e8f5ec;
  --danger: #b4233a;
  --danger-muted: #fff1f2;
  --radius: 0.625rem;
  --sidebar-width: 17.5rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { background: var(--canvas); color: var(--text); margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
h1, h2, h3 { font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.02em; }
.eyebrow { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .14em; margin: 0; text-transform: uppercase; }
.muted { color: var(--muted); }

.brand { align-items: center; display: flex; gap: .75rem; }
.brandmark { align-items: center; background: var(--teal); border-radius: var(--radius); color: white; display: flex; font-family: Manrope, Inter, sans-serif; font-size: .95rem; font-weight: 800; height: 2.5rem; justify-content: center; letter-spacing: .05em; width: 2.5rem; }
.brand b { display: block; font-family: Manrope, Inter, sans-serif; font-size: .98rem; }
.brand small { color: var(--muted); display: block; font-size: .78rem; margin-top: .1rem; }

.login-page { align-items: center; background: radial-gradient(circle at 12% 8%, #d8efed 0, transparent 28%), linear-gradient(150deg, #f7fafc, #eef4f8); display: flex; justify-content: center; padding: 1.5rem; }
.login-card { background: rgba(255, 255, 255, .96); border: 1px solid var(--border); border-radius: calc(var(--radius) + .25rem); box-shadow: 0 18px 45px rgba(16, 42, 67, .10); max-width: 27.5rem; padding: 2rem; width: 100%; }
.login-card h1 { font-size: 1.7rem; margin: 1.75rem 0 .5rem; }
.login-copy { color: var(--muted); line-height: 1.55; margin: 0 0 1.75rem; }

.field { display: grid; gap: .4rem; margin-top: 1rem; }
.field label { font-size: .82rem; font-weight: 650; }
.field input, .search-input { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) - .1rem); color: var(--text); min-height: 2.75rem; padding: .55rem .75rem; transition: border-color .15s ease, box-shadow .15s ease; width: 100%; }
.field input:focus, .search-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(44, 122, 123, .14); outline: 0; }
.form-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.button { align-items: center; border: 1px solid transparent; border-radius: calc(var(--radius) - .1rem); display: inline-flex; font-size: .88rem; font-weight: 650; justify-content: center; min-height: 2.75rem; padding: .55rem .9rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: #246769; }
.button-outline { background: transparent; border-color: var(--border); color: var(--text); }
.button-outline:hover { background: var(--surface-muted); }
.button-danger { background: var(--danger-muted); border-color: #f6b4bf; color: var(--danger); min-height: 2.1rem; }
.button-danger:hover { background: #ffe2e7; }
.button-block { margin-top: 1.5rem; width: 100%; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; inset: 0 auto 0 0; padding: 1.25rem .75rem; position: fixed; width: var(--sidebar-width); }
.sidebar-primary { flex: 1; }
.nav-block { border-top: 1px solid var(--border); margin-top: 1.4rem; padding-top: .9rem; }
.nav-label { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; margin: 0 0 .6rem; padding: 0 .75rem; text-transform: uppercase; }
.nav-item { align-items: center; border-radius: var(--radius); color: var(--slate); display: flex; font-size: .92rem; font-weight: 550; gap: .65rem; min-height: 2.75rem; padding: 0 .75rem; }
.nav-item.active { background: #e9f5f4; color: var(--navy); font-weight: 700; }
.nav-dot { background: var(--teal); border-radius: 999px; height: .45rem; width: .45rem; }
.sidebar-meta { border-top: 1px solid var(--border); padding: 1rem .45rem 0; }
.trust { align-items: center; display: flex; font-size: .79rem; gap: .65rem; line-height: 1.35; }
.trust-mark { align-items: center; background: var(--success-muted); border-radius: 999px; color: var(--success); display: flex; font-size: .78rem; height: 1.65rem; justify-content: center; width: 1.65rem; }
.account { margin-top: .9rem; }
.account b, .account small { display: block; }
.account b { font-size: .82rem; }.account small { color: var(--muted); font-size: .72rem; margin-top: .12rem; }
.sidebar-signout { background: transparent; border: 0; color: var(--muted); font-size: .8rem; margin-top: .7rem; padding: .35rem 0; }
.sidebar-signout:hover { color: var(--text); }

.app-main { margin-left: var(--sidebar-width); min-width: 0; width: calc(100% - var(--sidebar-width)); }
.topbar { align-items: center; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; min-height: 4.5rem; padding: 0 2rem; }
.topbar h1 { font-size: 1.12rem; margin: .15rem 0 0; }
.identity { align-items: center; display: flex; gap: .75rem; }
.identity-badge { align-items: center; background: #e9f5f4; border-radius: 999px; color: var(--teal); display: flex; font-size: .74rem; font-weight: 800; height: 2rem; justify-content: center; width: 2rem; }
.identity-copy b, .identity-copy small { display: block; }.identity-copy b { font-size: .82rem; }.identity-copy small { color: var(--muted); font-size: .7rem; }
.topbar .button { min-height: 2.25rem; }
.workspace { min-height: calc(100vh - 4.5rem); padding: 2rem; }
.page-intro { align-items: end; display: flex; gap: 1.5rem; justify-content: space-between; margin-bottom: 1.5rem; }
.page-intro h2 { font-size: 1.8rem; line-height: 1.08; margin: .3rem 0 .4rem; }.page-intro p:last-child { color: var(--muted); line-height: 1.5; margin: 0; max-width: 42rem; }
.license-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + .15rem); box-shadow: 0 1px 2px rgba(16, 42, 67, .06); }
.card-header { border-bottom: 1px solid var(--border); padding: 1.2rem 1.25rem 1rem; }.card-header h3 { font-size: 1rem; margin: 0; }.card-header p { color: var(--muted); font-size: .81rem; line-height: 1.45; margin: .35rem 0 0; }
.card-content { padding: 0 1.25rem 1.25rem; }.form-card .card-content { padding-top: .15rem; }
.notice { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.25rem; padding: .85rem 1rem; }.notice-key { background: var(--success-muted); border-color: #a7d9b4; color: #175934; }.notice-error { background: var(--danger-muted); border-color: #f6b4bf; color: var(--danger); }.notice code { background: rgba(255,255,255,.62); border-radius: .25rem; display: inline-block; margin-top: .5rem; overflow-wrap: anywhere; padding: .4rem .5rem; }
.table-tools { align-items: center; display: flex; gap: 1rem; justify-content: space-between; padding: 1rem 1.25rem; }.table-tools h3 { font-size: 1rem; margin: 0; }.table-tools p { color: var(--muted); font-size: .76rem; margin: .3rem 0 0; }.search { align-items: center; display: flex; gap: .5rem; }.search-input { min-height: 2.25rem; width: 13rem; }.search .button { min-height: 2.25rem; }
.table-wrap { overflow-x: auto; }.license-table { border-collapse: collapse; width: 100%; }.license-table th { background: var(--surface-muted); color: var(--muted); font-size: .67rem; letter-spacing: .08em; padding: .75rem 1rem; text-align: left; text-transform: uppercase; }.license-table td { border-top: 1px solid var(--border); font-size: .82rem; padding: .9rem 1rem; vertical-align: top; }.license-table tr:hover td { background: #fbfcfd; }.key-prefix { color: var(--teal); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; font-weight: 700; }.table-primary { display: block; font-weight: 700; }.table-secondary { color: var(--muted); display: block; margin-top: .25rem; }.status { background: var(--success-muted); border-radius: 999px; color: #17623a; display: inline-block; font-size: .7rem; font-weight: 750; padding: .25rem .55rem; text-transform: capitalize; }.status-revoked { background: var(--danger-muted); color: var(--danger); }.empty { color: var(--muted); padding: 2.5rem 1.25rem; text-align: center; }
.mobile-list { display: none; }

@media (max-width: 880px) { .sidebar { display: none; }.app-main { margin-left: 0; width: 100%; }.workspace { padding: 1.25rem; }.license-layout { grid-template-columns: 1fr; }.page-intro { align-items: start; flex-direction: column; }.topbar { padding: 0 1.25rem; }.desktop-table { display: none; }.mobile-list { display: grid; gap: .75rem; padding: 0 1rem 1rem; }.license-row { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem; }.license-row-top { align-items: start; display: flex; justify-content: space-between; gap: .75rem; }.license-row dl { display: grid; gap: .45rem; grid-template-columns: 1fr 1fr; margin: .85rem 0 0; }.license-row dt { color: var(--muted); font-size: .67rem; text-transform: uppercase; }.license-row dd { font-size: .8rem; font-weight: 650; margin: .12rem 0 0; } }
@media (max-width: 560px) { .login-page { padding: 1rem; }.login-card { padding: 1.5rem; }.form-grid { grid-template-columns: 1fr; }.topbar { min-height: 4.25rem; padding: 0 1rem; }.identity-copy { display: none; }.workspace { padding: 1rem; }.page-intro h2 { font-size: 1.5rem; }.table-tools { align-items: stretch; flex-direction: column; }.search, .search-input { width: 100%; }.search .button { flex: 0 0 auto; } }
