@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/roboto-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/roboto-latin-500-normal.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --ink: #333;
  --muted: #555;
  --accent: #1a3c34;
  --accent-hover: #2a5c4e;
  --canvas: #f5f7fa;
  --surface: #fff;
  --line: #e0e0e0;
  --soft: #f0f0f0;
  --tab-active: #e6f0fa;
  --danger: #a73432;
  --warning: #88530b;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
::selection { color: #fff; background: var(--accent); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 40px; border: 1px solid transparent; border-radius: 4px; padding: 9px 16px; color: #fff; background: var(--accent); font-weight: 500; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; line-height: 1.35; }
button:hover, .button:hover { color: #fff; background: var(--accent-hover); }
button:active, .button:active { background: #15302a; }
button:disabled { cursor: not-allowed; color: #63737c; background: #e1e7e9; }
.secondary { color: var(--accent); background: var(--surface); border-color: #d0d0d0; }
.secondary:hover { color: var(--ink); background: var(--soft); }
:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 3px; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 40px; border: 1px solid #d0d0d0; border-radius: 4px; background: var(--surface); color: var(--ink); padding: 8px 10px; caret-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #657780; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #728995; }
input:disabled { color: #657780; background: var(--soft); border-color: var(--line); }
input[type="checkbox"] { display: inline-block; width: 17px; height: 17px; min-height: 0; flex-shrink: 0; margin: 0; accent-color: var(--accent); }
textarea { resize: vertical; overflow-wrap: anywhere; font: 12px/1.6 Consolas, ui-monospace, monospace; }
label { display: block; font-weight: 500; font-size: 13px; }
label > input, label > select { margin-top: 6px; font-weight: 400; font-size: 14px; }
select { text-overflow: ellipsis; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 500; color: var(--accent); }
h2 { font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--accent); }
h3 { font-size: 15px; font-weight: 500; color: var(--accent); }
h4 { font-size: 15px; }
.mono { font-family: Consolas, ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.muted, .cell-detail, .field-help, .optional { color: var(--muted); }
.app-header { min-height: 70px; padding: 10px max(24px, calc((100vw - 1440px) / 2)); background: linear-gradient(90deg, #1a1a1a, #4e4e4e); color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; box-shadow: 0 2px 5px rgba(0, 0, 0, .1); }
.brand { display: flex; align-items: center; gap: 20px; color: #fff; text-decoration: none; }
.brand img { display: block; flex-shrink: 0; width: 110px; height: 50px; }
.brand:hover { color: #fff; }
.brand span { border-left: 1px solid #777; padding-left: 20px; font-size: 14px; font-weight: 400; color: #fff; }
.app-header :focus-visible { outline-color: #fff; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8dd6c4; flex-shrink: 0; }
.status-dot.connected { background: var(--accent); }
.status-dot.disconnected { background: #82949d; }
.workspace { max-width: 1488px; margin: 0 auto; padding: 36px 24px 32px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs > a { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 10px 20px; border-radius: 4px; color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.tabs > a:hover { background: var(--accent-hover); }
.tabs > a[aria-current="page"] { color: var(--accent); background: var(--tab-active); }
.tab-count { padding: 1px 7px; border-radius: 4px; font-size: 12px; background: var(--soft); color: var(--accent); font-variant-numeric: tabular-nums; }
.register-summary { margin-bottom: 16px; font-size: 12px; white-space: nowrap; }
.register-summary span { margin: 0 8px; }
.filters { display: grid; grid-template-columns: minmax(220px, 1.8fr) minmax(120px, 1fr) minmax(165px, 1.2fr) minmax(130px, 1fr) minmax(130px, 1fr); gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.filter-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; }
.results-heading { margin: 22px 0 10px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.results-heading strong { color: var(--ink); }
.table-scroll { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 13px 18px; color: var(--accent); background: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .045em; text-align: left; font-weight: 500; white-space: nowrap; }
td { padding: 19px 18px; border-top: 1px solid var(--line); vertical-align: top; min-width: 110px; font-variant-numeric: tabular-nums; }
td:first-child { min-width: 190px; max-width: 270px; }
td:nth-child(2) { min-width: 200px; }
td:nth-child(3) { min-width: 160px; }
tbody tr:hover { background: #f0f0f0; }
.device-name { font-size: 14px; font-weight: 500; text-decoration: none; }
.device-name:hover { text-decoration: underline; }
.cell-title { display: block; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.cell-detail { display: block; margin-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
.connection { display: flex; align-items: center; gap: 7px; text-transform: capitalize; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.paid { color: #11614f; background: #e1f1e9; }
.badge.trial { color: #385c80; background: #e8eff6; }
.badge.unlicensed { color: #576773; background: #edf0f2; }
.expiry-value { white-space: nowrap; }
.expired, .danger-text { color: var(--danger); }
.expiring, .warning-text { color: var(--warning); }
.row-action { text-align: right; white-space: nowrap; }
.row-action a { font-size: 12px; font-weight: 500; }
.empty-state { padding: 60px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.empty-state .button { margin-top: 20px; }
.device-picker { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.device-picker select { margin-top: 8px; }
.device-context { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; }
.device-context p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.context-owner { display: flex; flex-direction: column; text-align: right; font-size: 12px; color: var(--muted); }
.context-owner strong { font-size: 13px; color: var(--ink); font-weight: 500; }
.license-layout { display: grid; grid-template-areas: "editor current"; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.license-editor { grid-area: editor; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.license-editor > form { margin-top: 20px; }
.license-editor > form > label { margin-top: 20px; margin-bottom: 6px; }
.license-editor > form > label:first-of-type { margin-top: 0; }
.field-help:empty { margin: 0; }
.field-help { font-size: 12px; line-height: 1.55; margin: 7px 0 0; }
.form-row { display: grid; grid-template-columns: 1.2fr 1.2fr .65fr; gap: 16px; margin-top: 22px; }
fieldset { min-width: 0; margin: 26px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); }
legend { padding: 0 10px 0 0; font-weight: 500; font-size: 13px; }
.profile-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 400; font-size: 13px; overflow-wrap: anywhere; }
.feature-options { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.optional { font-size: 12px; font-weight: 400; margin-left: 6px; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.form-actions a { font-size: 13px; }
.current-license { grid-area: current; background: var(--tab-active); border-radius: 8px; padding: 26px; }
.current-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.license-facts { margin: 22px 0; }
.license-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; margin-top: 12px; font-size: 12px; }
.license-facts dt { color: var(--muted); }
.license-facts dd { margin: 0; overflow-wrap: anywhere; }
.current-license textarea { margin-top: 8px; background: #f9fbfb; }
.copy-button { width: 100%; margin-top: 12px; }
.delete-section { border-top: 1px solid #cedadf; margin-top: 28px; padding-top: 18px; font-size: 12px; }
.delete-section summary { color: var(--danger); cursor: pointer; font-weight: 500; }
.delete-section form { margin-top: 12px; }
.danger { color: var(--danger); border-color: #c98e8d; }
.danger:hover { color: #8a2726; background: #f9e6e5; }
.unlicensed-state { padding-top: 24px; }
.notice { border-radius: 8px; margin-bottom: 20px; padding: 16px 20px; font-size: 13px; overflow-wrap: anywhere; }
.notice.error { background: #fae9e7; color: #8c2d25; }
.notice.success { background: #e1f1e9; color: #155942; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 20px; background: var(--surface); padding: 10px 16px; z-index: 10; }
.skip-link:focus { top: 12px; }
@media (max-width: 1150px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-field { grid-column: span 2; }
  .license-layout { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .workspace { padding: 26px 16px 24px; }
  .app-header { padding: 10px 16px; }
  .brand { gap: 12px; }
  .brand span { padding-left: 12px; font-size: 12px; }
  .page-heading { align-items: start; gap: 14px; }
  .page-heading h1 { font-size: 24px; }
  .page-heading .button { padding-inline: 12px; }
  .tabs { gap: 8px; }
  .tabs > a { padding: 10px 14px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
  .search-field { grid-column: 1 / -1; }
  .register-summary { white-space: normal; }
  .register-summary span { margin-inline: 4px; }
  .license-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "current" "editor"; }
  .license-editor, .current-license { padding: 20px; }
  .device-context { flex-direction: column; gap: 10px; }
  .context-owner { text-align: left; }
}
@media (max-width: 390px) {
  .form-row, .profile-options { grid-template-columns: minmax(0, 1fr); }
  .form-actions { align-items: start; flex-direction: column; gap: 12px; }
}

/* License service pages */
[hidden] { display: none !important; }
.workspace.narrow { max-width: 720px; }
.language { color: #fff; background: transparent; border-color: #777; }
#claim > label { margin-top: 20px; margin-bottom: 6px; }
#claim > label.check { margin: 0; }
#captcha { margin-top: 20px; min-height: 65px; }
#error, .spaced { margin-top: 24px; }
#result:focus, #main:focus { outline: none; }
#next { margin-top: 20px; }
.license-facts > div { grid-template-columns: 140px minmax(0, 1fr); }
.form-actions { flex-wrap: wrap; }
.form-actions.flush { margin-top: 0; gap: 10px; }
.filters.two { grid-template-columns: 2fr 1fr; }
.terms { display: grid; gap: 16px; margin-top: 22px; }
.terms fieldset { margin-top: 0; }
.inline-form { margin: 24px 0; padding: 20px; background: var(--canvas); border-radius: 8px; }
.license-editor .table-scroll { margin-top: 24px; }
.voucher { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.voucher code { font-size: 15px; }
dialog { max-width: 560px; border: 1px solid var(--line); border-radius: 8px; padding: 26px; color: var(--ink); }
dialog::backdrop { background: rgb(0 0 0 / .5); }
dialog p { margin-top: 12px; }
#confirm-id { font-size: 15px; }
@media (max-width: 760px) { .filters.two { grid-template-columns: 1fr; } }
