@font-face{font-family:Montserrat;src:url(/montserrat.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root {
  color-scheme: light;
  --canvas: #f5f4f1;
  --panel: #fff;
  --ink: #171717;
  --muted: #5d5c58;
  --line: #e3e1dd;
  --focus: #82300b;
  --brand-orange: #ff640a;
  --accent-text: #82300b;
  --accent-light: #ffbc93;
  --accent-wash: #ffe4d3;
  font-family: Montserrat, "Avenir Next", Inter, Geist, system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background-color: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 300px;
  margin: 0;
  background: radial-gradient(ellipse at 85% 0, #e8e7e3 0, transparent 46rem), var(--canvas);
  min-height: 100vh;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .52; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 5; padding: .7rem 1rem; color: var(--ink); background: var(--panel); }
.skip-link:focus { top: 1rem; }
.masthead { border-bottom: 1px solid #dbdad6; background: rgba(255, 255, 255, .57); backdrop-filter: blur(18px); }
.masthead-inner {
  max-width: 1208px;
  padding: 16px 32px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; line-height: 1.08; white-space: nowrap; }
.brand-mark {
  display: grid;
  place-items: center;
  inline-size: 43px;
  block-size: 43px;
  flex: 0 0 43px;
  background: #181818;
  color: white;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -.06em;
}
.brand strong { display: block; font-size: 15px; font-weight: 790; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.admin-actions, .workspace-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: end; }
.admin-profile { margin-right: 8px; color: var(--muted); font-weight: 690; font-size: 12px; }
.access { display: grid; place-items: center; min-height: calc(100svh - 77px); padding: 36px 16px; }
.access-panel {
  width: min(100%, 444px);
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid #fff;
  border-radius: 25px;
  background: linear-gradient(148deg, #ffffffec, #fbfaf8c9);
  box-shadow: 0 2px 8px #24211c0c, 0 15px 50px #281f1610;
}
.access-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: #181818;
  color: #fff;
  font-size: 27px;
  font-weight: 850;
}
.access h1 { max-width: 340px; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.02; letter-spacing: -.061em; }
.access-intro { margin: 12px 0 20px; line-height: 1.5; color: var(--muted); font-size: 14px; }
.access-form { display: grid; gap: 13px; }
.access-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 725; }
.access-form input {
  min-width: 0;
  height: 44px;
  padding: 10px;
  border: 1px solid #dedbd6;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}
.access-form .button-primary { margin-top: 5px; }
.field-hint { margin-top: -5px; color: var(--muted); font-size: 12px; }
.text-button {
  min-height: 39px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workspace { width: min(1208px, 100%); margin-inline: auto; padding: 47px 32px 68px; }
.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin: 0 0 27px;
}
h1 { margin: 0 0 9px; font-size: clamp(2.7rem, 6vw, 4.35rem); font-weight: 810; line-height: .98; letter-spacing: -.079em; }
.heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 710;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.button-neutral { background: rgba(255, 255, 255, .64); color: #242424; border-color: var(--line); }
.button-neutral:hover:not(:disabled) { background: #eae8e4; border-color: #cccac5; }
.button-primary { background: #181818; color: white; border-color: #181818; }
.button-primary:hover:not(:disabled) { background: #454545; border-color: #454545; }
.button-danger { background: #862631; border-color: #862631; color: #fff; }
.button-danger:hover:not(:disabled) { background: #6c1923; border-color: #6c1923; }
.issue { min-height: 48px; padding-inline: 17px; }
.plus { color: var(--brand-orange); font-size: 22px; font-weight: 600; line-height: .8; }
.refresh-icon { font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; }
.stat {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 21px 23px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 21px;
  background: linear-gradient(135deg, #fff, #f9f8f6);
  box-shadow: 0 1px 2px #24211c0c, 0 6px 20px #281f1608;
  overflow-wrap: anywhere;
}
.stat span { font-size: 13px; font-weight: 720; color: var(--muted); }
.stat strong { color: var(--accent-text); font-size: clamp(1.8rem, 4vw, 3rem); line-height: .95; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.stat-primary {
  background: linear-gradient(145deg, #1a1a1a, #373633);
  color: #fff;
  border-color: #35342f;
}
.stat-primary span { color: #e9e8e5; }
.stat-primary strong { color: var(--accent-light); }
.registry {
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, .85);
  overflow: hidden;
  background: rgba(255, 255, 255, .83);
  box-shadow: 0 1px 2px #24211c0c, 0 12px 26px #281f1608;
}
.registry-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 24px 20px; }
.registry h2, .dialog h2 { margin: 0; font-size: 20px; letter-spacing: -.038em; font-weight: 780; }
.entry-count { font-size: 12px; white-space: nowrap; color: var(--muted); font-weight: 650; }
.selection-bar { display: flex; flex-wrap: wrap; align-items: center; min-height: 55px; gap: 7px 14px; padding: 5px 24px 9px; }
.selection-all { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 12px; font-weight: 700; cursor: pointer; }
.license-checkbox { width: 18px; height: 18px; margin: 0; accent-color: #222; cursor: pointer; }
.license-checkbox:disabled { cursor: wait; }
.license-select-cell { display: flex; justify-content: center; align-items: center; width: 26px; min-height: 44px; cursor: pointer; }
.selection-count { color: var(--muted); font-size: 12px; font-weight: 650; }
.selection-bar .bulk-menu { margin-inline-start: auto; }
.bulk-menu .license-select { width: 158px; }
.license-grid {
  display: grid;
  grid-template-columns: 26px minmax(101px, 1fr) minmax(77px, .69fr) minmax(100px, 1fr) minmax(115px, 1.08fr) minmax(107px, 1fr) minmax(96px, .7fr);
  align-items: center;
  column-gap: 13px;
}
.column-headings {
  min-height: 42px;
  border-block: 1px solid var(--line);
  padding: 7px 24px;
  background: #f6f5f2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}
.column-headings span:last-child { text-align: right; }
.license-list { padding: 0; margin: 0; list-style: none; }
.license-row {
  min-height: 75px;
  padding: 13px 24px;
  row-gap: 5px;
  border-bottom: 1px solid var(--line);
  background-color: #ffffff80;
}
.license-row:last-child { border-bottom: 0; }
.license-row:hover { background-color: #fff; }
.license-row:has(.license-checkbox:checked) { background: #f1f0ed; }
.cell { min-width: 0; }
.cell-title { display: block; font-size: 13px; font-weight: 730; overflow-wrap: anywhere; }
.cell-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.license-credential { grid-column: 2 / -1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; }
.activation-code { display: inline-block; max-width: 100%; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: #f6f5f2; color: var(--ink); font-size: 12px; letter-spacing: .015em; overflow-wrap: anywhere; user-select: all; }
.license-credential .button { min-height: 32px; padding: 5px 9px; font-size: 11px; border-radius: 8px; }
.license-credential .cell-detail { margin-top: 0; }
.mobile-label { display: none; }
.cell-action { display: flex; justify-content: end; }
.license-menu { position: relative; }
.license-menu::after { content: ''; position: absolute; inset-inline-end: 14px; top: calc(50% - 4px); width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.license-select { appearance: none; width: 96px; min-height: 44px; padding: 0 32px 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: linear-gradient(155deg, #fff, #f3f2ef); box-shadow: inset 0 1px 1px #fff, 0 2px 4px #1717170a; font: inherit; font-size: 13px; font-weight: 710; cursor: pointer; }
.license-select:hover:not(:disabled) { border-color: #c9c5be; }
.license-select:disabled { cursor: wait; opacity: .52; }
@media (forced-colors: active) {
  .license-menu::after { display: none; }
  .license-select { appearance: auto; }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eae9e6;
  border: 1px solid #e6e4e0;
  border-radius: 999px;
  padding: 4px 9px;
  color: #363633;
  font-size: 11px;
  font-weight: 760;
}
.pill::before { content: ''; display: block; border-radius: 50%; background: #777671; width: 6px; height: 6px; }
.pill-active { background: #ebebea; border-color: #dddddb; color: #222; }
.pill-active::before { background: #232323; }
.pill-suspended::before { background: transparent; border: 1px solid #595854; }
.pill-expired { background: #f2eae4; border-color: #e9dbd0; color: #593c2c; }
.pill-expired::before { background: #87604a; }
.list-message { margin: 0; padding: 30px 24px 37px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.notice { padding: 13px 16px; margin: 0 0 14px; border: 1px solid #d0cdc6; border-radius: 11px; background: #fffefb; color: #2a2927; font-size: 13px; }
.dialog {
  max-width: min(460px, calc(100% - 32px));
  padding: 25px;
  border: 1px solid #dcdad5;
  border-radius: 22px;
  box-shadow: 0 12px 80px #17171744;
  background: #fff;
  color: var(--ink);
}
.dialog::backdrop { background: rgb(20 20 20 / 48%); backdrop-filter: blur(3px); }
.danger-dialog { border-color: #e3c6c8; }
.danger-dialog h2 { color: #76242e; }
.dialog p { color: var(--muted); margin: 10px 0 19px; font-size: 14px; line-height: 1.55; }
.dialog .copy-message { margin: 8px 0 0; font-size: 12px; }
.dialog-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.validity-dialog { width: 460px; }
.validity-options { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.validity-option { display: flex; align-items: start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 13px; font-weight: 700; cursor: pointer; }
.validity-option:has(input:checked) { background: #f5f4f1; border-color: #c6c3bd; }
.validity-option input { accent-color: var(--ink); margin: 2px 0 0; }
.validity-option small { color: var(--muted); display: block; font-size: 11px; line-height: 1.4; margin-top: 3px; font-weight: 500; }
.validity-date { margin-top: 13px; }
.validity-date label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; }
.validity-date input { box-sizing: border-box; width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; color: var(--ink); background: #fff; }
.validity-dialog .notice { margin: 13px 0 0; }
.bulk-dialog { width: min(540px, calc(100% - 32px)); max-width: none; }
.bulk-dialog .notice { margin: 10px 0 0; }
.bulk-links { max-height: min(36vh, 330px); overflow: auto; list-style: none; padding: 0; margin: 13px 0 0; }
.bulk-links li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; align-items: center; padding: 8px 1px; border-top: 1px solid var(--line); }
.bulk-link-meta { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
.bulk-links .button { min-height: 38px; padding-inline: 10px; }
.bulk-copy-fallback { display: grid; gap: 6px; font-size: 12px; margin-top: 12px; }
.issued-code {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f5f2;
  color: var(--ink);
  padding: 11px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

@media (max-width: 870px) {
  .masthead-inner, .workspace { padding-inline: 20px; }
  .admin-profile { display: none; }
  .workspace { padding-top: 35px; }
  .column-headings { display: none; }
  .license-row { grid-template-columns: 26px minmax(0, 1.12fr) minmax(0, 1fr); gap: 10px 12px; padding: 17px 20px; }
  .license-row .license-select-cell { grid-row: 1 / 4; align-self: start; }
  .license-credential { grid-column: 1 / -1; padding-top: 3px; }
  .license-row:first-child { border-top: 1px solid var(--line); }
  .mobile-label { display: block; color: var(--muted); font-size: 10px; font-weight: 700; margin-bottom: 3px; }
}
@media (max-width: 465px) {
  .masthead-inner, .workspace { padding-inline: 15px; }
  .masthead-inner { align-items: start; }
  .admin-actions .button { padding-inline: 8px; font-size: 11px; }
  .workspace-actions { justify-content: start; }
  .workspace { padding-top: 29px; }
  .heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 19px; }
  .stat { min-height: 90px; padding: 12px 9px; border-radius: 14px; }
  .stat span { font-size: 11px; }
  .stats { gap: 6px; margin-bottom: 17px; }
  .registry-header, .license-row { padding-inline: 15px; }
  .selection-bar { padding-inline: 15px; gap: 0 10px; }
  .selection-bar .bulk-menu { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
