@font-face {
  font-family: Studio;
  src: local("Inter"), local("Avenir Next"), local("Segoe UI");
  font-display: swap;
}
:root {
  --bg: #f7f8fa;
  --panel: #fff;
  --sidebar: #fff;
  --text: #202c28;
  --muted: #7a8581;
  --line: #e8ece9;
  --green: #187857;
  --green-soft: #edf6f0;
  --soft: #f5f7f6;
  --red: #ba4545;
  --shadow: 0 2px 3px #163b2503;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #111b17;
  --panel: #19251f;
  --sidebar: #152019;
  --text: #e4ece7;
  --muted: #95a39b;
  --line: #2c3a31;
  --green: #71cba4;
  --green-soft: #243b2e;
  --soft: #202e25;
  --red: #ed9090;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 Studio,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.25;
  font-weight: 650;
}
h2 {
  font-size: 15px;
  letter-spacing: -0.25px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
p {
  color: var(--muted);
}
small {
  font-size: 11px;
}
strong {
  font-weight: 600;
}
code,
.mono,
kbd {
  font-family: "SFMono-Regular", Consolas, monospace;
}
.mono {
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.green {
  color: var(--green);
}
.danger-text {
  color: var(--red);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 100;
  padding: 12px;
  background: var(--panel);
}
.skip-link:focus {
  top: 10px;
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 30px 18px 0;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: -0.6px;
  font-weight: 650;
  padding-left: 10px;
}
.brand-symbol {
  width: 35px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #1d624a;
  color: #fff;
  border-radius: 9px;
  box-shadow: 0 3px 4px #1e513212;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.3px;
  color: var(--muted);
  margin-top: 2px;
}
.brand-studio {
  font-weight: 450;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 11px;
  margin: 29px 0 26px;
}
.workspace-icon {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  font-weight: 650;
}
.workspace strong {
  display: block;
  font-size: 12px;
}
.workspace small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.workspace-mark {
  margin-left: auto;
  color: var(--muted);
}
.nav-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.25px;
  color: var(--muted);
  margin: 0 12px 10px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  margin: 3px 0;
  font-size: 12px;
  font-weight: 450;
  color: var(--muted);
  border-radius: 6px;
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--soft);
  color: var(--text);
}
.nav-item.selected {
  color: var(--green);
  background: var(--green-soft);
  font-weight: 600;
}
.nav-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 100%;
  margin-left: auto;
}
.nav-divider {
  border-top: 1px solid var(--line);
  margin: 22px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.system-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
  padding: 12px 2px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #4ca77a;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.version {
  margin-left: auto;
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 4px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 -18px;
  padding: 18px;
  border-top: 1px solid var(--line);
}
.profile strong {
  font-size: 11px;
  display: block;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.profile form {
  margin-left: auto;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--panel);
  background: #e8e9df;
  color: #646953;
  border-radius: 50%;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.app-shell {
  margin-left: 248px;
}
.topbar {
  height: 76px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 500;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.global-search input {
  border: 0;
  background: none;
  outline: none;
  width: 150px;
  color: var(--text);
  font-size: 11px;
  padding: 5px 0;
}
.global-search kbd {
  font-size: 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 4px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--soft);
  color: var(--green);
}
.topbar-separator {
  height: 20px;
  border-right: 1px solid var(--line);
}
main {
  padding: 36px 36px 0;
  max-width: 1650px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 30px;
}
.page-heading p {
  margin-top: 8px;
  font-size: 12px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 1.3px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 11px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.15s;
}
.button.primary {
  background: #216f50;
  color: #fff;
  box-shadow: 0 2px 3px #12432a0c;
}
.button.primary:hover {
  background: #185c40;
}
.button.secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}
.button.secondary:hover {
  background: var(--soft);
}
.button.danger {
  background: var(--panel);
  color: var(--red);
  border-color: var(--red);
}
.button-group {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wrap {
  flex-wrap: wrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 550;
  color: var(--green);
}
.text-link:hover {
  text-decoration: underline;
}
.panel,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 19px 20px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--soft);
  border-radius: 7px;
  color: #87958c;
}
.stat-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.9px;
  margin: 9px 0 11px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.stat-note {
  font-size: 10px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}
.stat-foot {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  gap: 5px;
  align-items: center;
}
.revenue .stat-icon {
  background: var(--green-soft);
  color: var(--green);
}
.currency {
  font-size: 23px;
  color: var(--muted);
  font-weight: 400;
}
.dashboard-middle {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(245px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.panel-heading {
  padding: 21px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-heading p {
  font-size: 10px;
  margin-top: 5px;
}
.panel-heading > svg {
  color: var(--muted);
}
.period-chip {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 5px;
  color: var(--muted);
  white-space: nowrap;
}
.chart {
  display: flex;
  padding: 5px 23px 15px 20px;
  gap: 17px;
  height: 190px;
}
.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  padding: 20px 0 25px;
  width: 18px;
  text-align: right;
}
.chart-body {
  flex: 1;
  min-width: 0;
}
.chart svg {
  width: 100%;
  height: 155px;
  overflow: visible;
}
.chart-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.chart-dates {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin-top: 6px;
}
.chart-caption {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 3px 0 17px;
}
.insight-card {
  border-radius: 9px;
  padding: 23px;
  background: #edf3eb;
  border: 1px solid #e1e9df;
  color: #264a34;
  display: flex;
  flex-direction: column;
  position: relative;
}
.insight-icon {
  position: absolute;
  right: 23px;
  top: 23px;
  color: #5c7e60;
}
.insight-card .eyebrow {
  font-size: 8px;
  color: #6d866c;
  margin-top: 5px;
}
.insight-card h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin: 7px 0 12px;
  font-weight: 550;
}
.insight-card p {
  font-size: 11px;
  line-height: 1.75;
  color: #73846f;
  max-width: 240px;
}
.insight-card a {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  font-weight: 550;
  margin-top: 17px;
}
.insight-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  margin-top: 22px;
  color: #799074;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(245px, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
thead {
  background: var(--soft);
}
th {
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: color-mix(in srgb, var(--soft) 55%, transparent);
}
td strong {
  font-size: 11px;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
.entity-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}
.entity-cell strong {
  display: block;
}
.product-symbol {
  width: 31px;
  height: 33px;
  background: #e8f1ea;
  color: #347350;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.product-symbol.violet {
  background: #efeaf7;
  color: #7c64a5;
}
.product-symbol.large {
  width: 45px;
  height: 46px;
  font-size: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  border-radius: 5px;
  padding: 4px 7px;
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
}
.badge > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.active {
  background: var(--green-soft);
  color: var(--green);
}
.badge.suspended {
  background: #fff5df;
  color: #aa812b;
}
.badge.revoked,
.badge.expired {
  background: #fbecec;
  color: #bb5b5b;
}
.edition-chip {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 9px;
  color: var(--muted);
}
.timeline {
  padding: 0 23px 12px;
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 21px;
}
.timeline-item:not(:last-child):before {
  content: "";
  position: absolute;
  top: 12px;
  left: 3px;
  bottom: 0;
  border-left: 1px solid var(--line);
}
.timeline-dot {
  background: var(--green);
  width: 7px;
  height: 7px;
  border: 2px solid var(--green-soft);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.timeline-item strong {
  font-size: 10px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.timeline-item p {
  font-size: 9px;
  margin-top: 4px;
}
.timeline-item p span {
  color: var(--muted);
}
.panel-footer-link {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 23px;
  color: var(--muted);
  font-size: 10px;
}
.activity-panel {
  display: flex;
  flex-direction: column;
}
.activity-panel .timeline {
  flex: 1;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.count {
  font-size: 9px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  margin-left: 6px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.product-card:hover {
  border-color: var(--green);
}
.product-card h3 {
  font-size: 13px;
}
.product-card p {
  font-size: 10px;
  margin-top: 4px;
}
.product-card-arrow {
  margin-left: auto;
  color: var(--muted);
}
.add-product {
  border-style: dashed;
  color: var(--green);
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 0 22px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}
.page-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  color: var(--muted);
}
.filter-search input {
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  font-size: 11px;
  color: var(--text);
}
select,
input,
textarea {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 9px 11px;
}
select {
  font-size: 11px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 10px;
  color: var(--muted);
}
.results-heading strong {
  color: var(--text);
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.checkbox-col {
  width: 40px;
}
.table-avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}
.row-action {
  display: flex;
  color: var(--muted);
}
.pagination {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
}
.bulk-bar {
  padding: 15px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.empty-state {
  padding: 37px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  text-align: center;
  color: var(--muted);
  white-space: normal;
}
.empty-state h3 {
  color: var(--text);
  font-size: 13px;
}
.empty-state p {
  font-size: 11px;
}
.empty-state .button {
  margin-top: 6px;
}
.quiet-empty {
  padding: 28px 23px;
  color: var(--muted);
  font-size: 11px;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 20px;
}
.compact {
  margin-bottom: 24px;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 35px;
  align-items: start;
}
.form-panel {
  padding: 26px;
}
.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 21px;
  min-width: 0;
}
.form-fields .form-field {
  margin: 0;
}
.form-field:has(textarea) {
  grid-column: 1/-1;
}
.form-field label {
  font-size: 11px;
  font-weight: 550;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-size: 12px;
  min-height: 40px;
}
.form-field textarea {
  min-height: 90px;
  resize: vertical;
}
.form-field small {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.required-dot {
  color: var(--green);
  padding-left: 3px;
}
.field-error,
.errorlist {
  font-size: 11px;
  color: var(--red);
  list-style: none;
  padding: 0;
}
.check-field {
  flex-direction: row;
  align-items: center;
}
.check-field input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
}
.form-footer {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.form-advice {
  padding: 12px;
}
.advice-icon {
  color: var(--green);
  display: inline-flex;
  margin-bottom: 15px;
}
.form-advice p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 12px;
  max-width: 280px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.7;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 11px;
  margin-bottom: 20px;
  color: var(--muted);
}
.notice.success {
  background: var(--green-soft);
  color: var(--green);
}
.notice.error {
  background: #fff0ed;
  color: #b14f43;
  border-color: #f3dcd6;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}
.key-block {
  padding: 19px 23px;
  background: var(--green-soft);
  border-block: 1px solid var(--line);
}
.key-block > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.key-block code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.detail-list {
  margin: 0;
  padding: 8px 23px;
}
.detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.detail-list > div:last-child {
  border: 0;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
  max-width: 65%;
}
.features-block {
  padding: 18px 23px;
  border-top: 1px solid var(--line);
}
.features-block p {
  font-size: 11px;
  margin-top: 12px;
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  font-size: 10px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 5px;
}
.machine-item {
  display: flex;
  gap: 12px;
  padding: 19px 23px;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.machine-icon {
  background: var(--soft);
  color: var(--muted);
  border-radius: 6px;
  padding: 9px;
  display: flex;
}
.machine-item strong {
  font-size: 11px;
  display: block;
}
.machine-item small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.machine-item .text-link {
  margin-left: auto;
}
.actions-panel {
  padding: 22px 23px;
  margin-bottom: 24px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.confirmation {
  max-width: 620px;
  margin: 45px auto;
  padding: 36px;
}
.confirmation-icon {
  background: var(--green-soft);
  color: var(--green);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
}
.confirmation h1 {
  font-size: 27px;
}
.confirmation p {
  font-size: 12px;
  line-height: 1.8;
  margin: 18px 0;
}
.confirmation .button-group {
  margin-top: 25px;
}
.confirmation ul {
  margin-bottom: 20px;
  font-size: 12px;
}
.narrow {
  max-width: 760px;
  margin-bottom: 24px;
}
.steps p {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 23px;
  font-size: 12px;
}
.steps p span {
  color: var(--green);
  font: 12px monospace;
  background: var(--green-soft);
  padding: 8px;
  border-radius: 6px;
}
.sdk-links a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 23px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.sdk-links small {
  color: var(--muted);
  margin-left: auto;
  font-size: 10px;
}
.sdk-links svg {
  color: var(--green);
}
pre {
  font:
    11px/1.8 "SFMono-Regular",
    Consolas,
    monospace;
  overflow: auto;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 15px 0;
  color: var(--text);
}
.code-panel pre {
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 25px;
}
.integration-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 27px;
  background: var(--green-soft);
  margin-bottom: 25px;
}
.integration-banner h2 {
  font-size: 20px;
}
.integration-banner p {
  font-size: 12px;
  margin-top: 10px;
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.doc-card {
  padding: 24px;
}
.doc-card > svg {
  color: var(--green);
  margin-bottom: 18px;
}
.doc-card h3 {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.doc-card > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 18px;
}
.documentation-content {
  padding: 27px;
}
.documentation-content pre {
  font-size: 12px;
  line-height: 1.9;
}
.search-results {
  display: grid;
  gap: 24px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 23px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.search-result span {
  font-size: 11px;
  color: var(--muted);
}
.search-result svg {
  margin-left: auto;
  color: var(--green);
}
.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 23px;
  border-top: 1px solid var(--line);
}
.team-member strong {
  font-size: 12px;
  display: block;
}
.team-member small {
  font-size: 10px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.team-member a {
  margin-left: auto;
}
.settings .form-panel {
  margin-top: 24px;
}
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, #e9f0e8 0, transparent 65%), #f7f8fa;
}
.auth-shell {
  max-width: 490px;
  padding: 65px 20px;
  margin: auto;
}
.auth-shell > .brand {
  justify-content: center;
  margin-bottom: 35px;
}
.auth-card {
  padding: 35px;
}
.auth-card h1 {
  font-size: 29px;
  margin: 14px 0;
}
.auth-card p {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.auth-card form {
  margin-top: 24px;
}
.full-width {
  width: 100%;
}
.auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  margin-top: 27px;
}
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  margin-top: 22px;
}
.qr-code {
  display: flex;
  justify-content: center;
}
.qr-code svg {
  width: 200px;
  height: 200px;
  background: #fff;
}
.auth-card details {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.auth-card details code {
  display: block;
  margin-top: 10px;
}
.recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 23px 0;
  font-size: 11px;
}
.mobile-menu {
  display: none;
}
.htmx-request {
  opacity: 0.65;
}
.htmx-indicator {
  display: none;
}
@media (min-width: 1550px) {
  main {
    padding-top: 45px;
  }
  .page-heading {
    margin-bottom: 35px;
  }
  .stat-card {
    padding: 23px;
  }
  .stat-value {
    font-size: 36px;
  }
  .dashboard-middle,
  .dashboard-bottom {
    grid-template-columns: minmax(0, 2.35fr) minmax(300px, 1fr);
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding-inline: 12px;
  }
  .app-shell {
    margin-left: 220px;
  }
  .profile {
    margin-inline: -12px;
    padding: 16px 12px;
  }
  main {
    padding: 28px 24px 0;
  }
  .topbar {
    padding-inline: 24px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat-note {
    font-size: 9px;
  }
  .dashboard-middle,
  .dashboard-bottom {
    gap: 17px;
    grid-template-columns: minmax(0, 1.8fr) minmax(235px, 1fr);
  }
  td,
  th {
    padding-inline: 15px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .nav-item {
    font-size: 11px;
  }
  .form-fields {
    grid-template-columns: 1fr;
  }
  .form-layout {
    gap: 20px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-layout .form-field:has(textarea) {
    grid-column: auto;
  }
}
@media (max-width: 960px) {
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .global-search kbd {
    display: none;
  }
  .global-search input {
    width: 110px;
  }
  .dashboard-middle {
    grid-template-columns: 1fr;
  }
  .insight-card {
    display: none;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-search {
    min-width: 100%;
    padding-bottom: 10px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .integration-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-advice {
    display: none;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .actions-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 720px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 248px;
    box-shadow: 20px 0 60px #0002;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .app-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 65px;
    padding-inline: 17px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .global-search {
    display: none;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 8px;
  }
  main {
    padding: 25px 17px 0;
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 19px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-icon {
    width: 25px;
    height: 25px;
  }
  .stat-icon svg {
    width: 16px;
  }
  .stat-value {
    font-size: 27px;
    gap: 5px;
  }
  .stat-note {
    display: none;
  }
  .stat-foot {
    font-size: 8px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .button {
    font-size: 10px;
    padding: 9px 11px;
  }
  .button-group {
    flex-wrap: wrap;
  }
  .panel-heading {
    padding: 18px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .chart {
    padding-inline: 15px;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .period-chip {
    font-size: 8px;
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .bulk-bar {
    flex-wrap: wrap;
  }
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .doc-card {
    padding: 20px;
  }
  .confirmation {
    margin: 10px auto;
    padding: 25px;
  }
  .form-panel {
    padding: 21px;
  }
  .form-fields {
    gap: 20px;
  }
  .detail-list {
    padding-inline: 18px;
  }
  .detail-list > div {
    gap: 12px;
    font-size: 10px;
  }
  .key-block {
    padding: 18px;
  }
  .key-block code {
    font-size: 10px;
  }
  .detail-list dd.mono {
    font-size: 9px;
  }
  .machine-item {
    padding: 17px;
  }
  .product-card {
    padding: 17px;
  }
  .auth-shell {
    padding-top: 35px;
  }
  .auth-card {
    padding: 27px;
  }
  .auth-card h1 {
    font-size: 27px;
  }
  .search-result {
    flex-wrap: wrap;
    gap: 7px;
  }
  .search-result span {
    width: 100%;
  }
  .sidebar nav {
    overflow-y: auto;
  }
  .sidebar-bottom {
    padding-top: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Product integration wizard. */
.integration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: start;
}
.integration-layout > form { min-width: 0; }
.wizard-progress ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.wizard-progress button, .wizard-progress .step-label {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}
.wizard-progress button > span, .wizard-progress .step-label > span {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  font-weight: 650;
}
.wizard-progress .current .step-label {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}
.wizard-progress .current .step-label > span,
.wizard-progress .complete button > span { background: var(--green); color: var(--panel); }
.wizard-progress .complete button { color: var(--text); }
.wizard-progress button:hover { border-color: var(--green); }
.wizard-panel { padding: 28px; }
.wizard-panel > .panel-heading { padding: 0 0 24px; }
.wizard-product { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.wizard-product .badge { margin-left: auto; }
.wizard-fields { display: block; }
.wizard-fields .form-field { margin-bottom: 24px; }
.wizard-fields .form-field > div { display: grid; gap: 10px; }
.wizard-fields .form-field > div label {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
}
.wizard-fields .form-field > div label:has(input:checked) {
  background: var(--green-soft);
  border-color: var(--green);
}
.wizard-fields input[type='radio'], .wizard-fields input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--green);
  margin: 0;
  min-height: 18px;
}
.wizard-saved { color: var(--green); margin-top: 18px; }
.wizard-advice { margin-top: 18px; }
.wizard-summary dd { overflow-wrap: anywhere; }
.wizard-summary .edition-chip { display: inline-block; margin-bottom: 6px; white-space: normal; }
.kit-contents { background: var(--green-soft); padding: 20px; border-radius: 12px; margin: 24px 0; }
.kit-contents p { color: var(--muted); margin-top: 6px; }
.wizard-kit-actions { margin-bottom: 24px; }
.wizard-preview summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.wizard-preview pre { max-height: 560px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.wizard-footer { padding: 24px 0 0; margin-top: 24px; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.wizard-panel .detail-list dd { overflow-wrap: anywhere; }
@media (max-width: 1200px) {
  .integration-layout { grid-template-columns: minmax(0, 1fr); }
  .wizard-advice { display: none; }
}
@media (max-width: 600px) {
  .wizard-progress ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .wizard-progress button, .wizard-progress .step-label { padding: 9px; font-size: 11px; }
  .wizard-panel { padding: 18px; }
  .wizard-panel .detail-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .wizard-panel .detail-list dd { text-align: left; }
  .wizard-footer > div, .wizard-kit-actions, .wizard-footer .button-group { width: 100%; }
  .wizard-footer .button, .wizard-kit-actions .button { width: 100%; justify-content: center; white-space: normal; }
}

/* Shared customer portal and integration profile navigation. */
.portal-header { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:24px max(24px, calc((100vw - 1120px)/2)); border-bottom:1px solid var(--line); background:var(--panel); }
.portal-header nav { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.portal-header .brand { color:var(--text); text-decoration:none; }
.portal-header .brand small { display:block; font-size:10px; letter-spacing:.16em; color:var(--muted); margin-top:5px; }
.portal-main { max-width:1120px; margin:0 auto; padding:36px 24px; }
.profile-nav { margin-bottom:24px; }
.profile-nav [aria-current="page"] { border-color:var(--green); }
@media(max-width:640px) { .portal-header { align-items:flex-start; flex-direction:column; padding:20px; } .portal-header nav { width:100%; gap:12px; } .portal-main { padding:24px 16px; } }

.detail-list dt small { display:block; margin-top:4px; font-weight:400; color:var(--muted); line-height:1.5; }
.diagnostic-results dt { font-weight:600; color:var(--text); }
