.page { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.topbar .brand { flex: 1; }
.who { font-size: 13px; color: var(--muted); }

.license-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.license-head .title { flex: 1; min-width: 0; }
.license-head .key { font-family: var(--mono); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.license-head .key.copyable {
  all: unset; box-sizing: border-box; font-family: var(--mono); font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; overflow-wrap: anywhere;
  margin: -3px -6px; padding: 3px 6px; border-radius: 6px; cursor: pointer; user-select: all;
}
.license-head .key.copyable:hover { background: var(--surface-2); }
.license-head .key.copyable:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 1px; }
.license-head .key .copy-hint { font-family: inherit; font-size: 12px; font-weight: 400; color: var(--muted); user-select: none; }
.license-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 16px; margin: 14px 0 4px; }
.license-meta .k { font-size: 12px; color: var(--muted); }
.license-meta .v { font-weight: 500; }

.device {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.device .icon {
  width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2);
  display: grid; place-items: center; color: var(--muted); flex: none;
}
.device .icon svg { width: 20px; height: 20px; }
.device .info { flex: 1; min-width: 180px; }
.device .name { font-weight: 600; }
.device .actions { display: flex; gap: 6px; }
.section-label { font-size: 12px; color: var(--muted); margin: 16px 0 2px; }

.timeline { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.timeline .item { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.timeline .item:last-child { border-bottom: none; }
.timeline .item.alert .text { color: var(--bad); }
@media (max-width: 520px) {
  .timeline .item { grid-template-columns: 1fr; gap: 0; }
}

.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
input.code { font-family: var(--mono); font-size: 18px; letter-spacing: 6px; text-align: center; }
.footer { margin-top: 28px; text-align: center; font-size: 12px; color: var(--muted); }
