/* License Manager — plain CSS, no dependencies. */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.5; color: #1e293b; background: #f1f5f9;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.topbar { background: #0f172a; color: #fff; }
.topbar-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.mainnav { display: flex; gap: 4px; flex-wrap: wrap; }
.mainnav a { color: #cbd5e1; text-decoration: none; padding: 6px 12px; border-radius: 6px; }
.mainnav a:hover { color: #fff; background: #1e293b; }
.mainnav a.active { color: #fff; background: #2563eb; }
.userbox { margin-left: auto; display: flex; align-items: center; gap: 10px; color: #cbd5e1; }
.inline-form { margin: 0; }
main { padding-top: 24px; padding-bottom: 40px; }
h1 { font-size: 24px; margin: 0 0 18px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; margin-bottom: 18px; }
.card.narrow { max-width: 560px; }
.muted { color: #64748b; }
.mono, .mono-box, .code-block { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mono-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px 12px; word-break: break-all; }
.mono-box.break { overflow-wrap: anywhere; }
.code-block { background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 14px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; }
.field input[type="text"], .field input[type="password"], .field input[type="date"],
.field input[type="search"], .field select {
  width: 100%; padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 15px; background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
.hint { color: #64748b; font-size: 13px; margin: 5px 0 0; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.btn {
  display: inline-block; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 6px;
  background: #fff; color: #1e293b; font-size: 14px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #f8fafc; }
.btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { background: transparent; border-color: #475569; color: #e2e8f0; }
.btn-ghost:hover { background: #1e293b; }
.btn-small { padding: 5px 10px; font-size: 13px; }
.btn-tiny { padding: 3px 8px; font-size: 12px; border-radius: 5px; }
.btn-danger { color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; text-align: center; }
.stat-num { font-size: 28px; font-weight: 700; }
.stat-label { color: #64748b; font-size: 13px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.table th { color: #64748b; font-weight: 600; white-space: nowrap; }
.table td.actions { white-space: nowrap; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #e2e8f0; color: #475569; }
.filter-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-row input[type="search"] { flex: 1; min-width: 200px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; }
.filter-row select { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; background: #fff; }
.pager { margin-top: 14px; }
.footer { color: #94a3b8; font-size: 13px; padding-bottom: 24px; }
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
  .userbox { margin-left: 0; }
}
