@font-face {
  font-family: Studio;
  src: url("fonts/PublicSans-Variable.0f8bb36b8925.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Shared tokens. Context accents never change the meaning of a status. */
:root {
  --bg: #f8f7fa;
  --panel: #ffffff;
  --sidebar: #ffffff;
  --text: #444050;
  --muted: #706b7b;
  --line: #e6e4eb;
  --brand: #6554d6;
  --brand-soft: #eeebff;
  --soft: #f5f4f8;
  --red: #bc3546;
  --red-soft: #fcebed;
  --success: #4561ba;
  --success-soft: #edf0fc;
  --amber: #956016;
  --amber-soft: #fff2df;
  --blue: #246fa2;
  --blue-soft: #e8f4fc;
  --violet: #6554d6;
  --violet-soft: #eeebff;
  --neutral: #676174;
  --neutral-soft: #f0eef4;
  --primary: #6c5de7;
  --primary-hover: #5d4fd4;
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  --radius: 6px;
  --shadow: 0 3px 12px #2f2b3d12;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #25293c;
  --panel: #2f3349;
  --sidebar: #2f3349;
  --text: #e0deef;
  --muted: #b4b0c8;
  --line: #44485e;
  --brand: #b8aaff;
  --brand-soft: #3d365e;
  --soft: #35394f;
  --red: #ffabb5;
  --red-soft: #513748;
  --success: #adc1ff;
  --success-soft: #353e60;
  --amber: #f3c17a;
  --amber-soft: #493e35;
  --blue: #91cfff;
  --blue-soft: #30455f;
  --violet: #b8aaff;
  --violet-soft: #3d365e;
  --neutral: #bcb6cc;
  --neutral-soft: #3d4058;
  --primary: #6c5de7;
  --primary-hover: #8175f5;
  --shadow: 0 4px 18px #00000012;
  color-scheme: dark;
}
/* Module accents apply to navigation, page headings and decorative markers. */
[data-module="dashboard"], [data-module="releases"],
[data-module="documentation"], [data-module="orders"] {
  --accent: var(--blue); --accent-soft: var(--blue-soft);
}
[data-module="products"], [data-module="editions"] {
  --accent: var(--violet); --accent-soft: var(--violet-soft);
}
[data-module="licenses"] {
  --accent: var(--brand); --accent-soft: var(--brand-soft);
}
[data-module="customers"], [data-module="requests"] {
  --accent: var(--success); --accent-soft: var(--success-soft);
}
[data-module="activations"] {
  --accent: var(--amber); --accent-soft: var(--amber-soft);
}
[data-module="audit"], [data-module="tester"] {
  --accent: var(--red); --accent-soft: var(--red-soft);
}
[data-module="settings"] {
  --accent: var(--neutral); --accent-soft: var(--neutral-soft);
}
* {
  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: 28px;
  letter-spacing: -0.5px;
  line-height: 1.3;
  font-weight: 600;
}
h2 {
  font-size: 18px;
  letter-spacing: 0;
  font-weight: 500;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
p {
  color: var(--muted);
}
small {
  font-size: 13px;
}
strong {
  font-weight: 600;
}
code,
.mono,
kbd {
  font-family: "SFMono-Regular", Consolas, monospace;
}
.mono {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.accent-text {
  color: var(--brand);
}
.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(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: var(--sidebar);
  box-shadow: 0 0 16px #2f2b3d0d;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 0;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  letter-spacing: -0.5px;
  font-weight: 650;
  padding-left: 8px;
}
.brand-symbol {
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  color: var(--brand);
  border-radius: 6px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 2px;
}
.brand-studio {
  font-weight: 450;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--soft);
  border: 0;
  border-radius: 6px;
  padding: 12px;
  margin: 26px 0 24px;
}
.workspace-icon {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 15%, var(--line));
  border-radius: 6px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-weight: 650;
}
.workspace strong {
  display: block;
  font-size: 14px;
}
.workspace small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.workspace-mark {
  margin-left: auto;
  color: var(--muted);
}
.nav-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 12px 10px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  border: 0;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--soft);
  color: var(--text);
}
.nav-item.selected {
  color: #ffffff;
  background: linear-gradient(100deg, #6c5de7, #6e60e4);
  box-shadow: 0 2px 6px #7367f04d;
  font-weight: 500;
}
.nav-dot {
  width: 5px;
  height: 5px;
  background: var(--brand);
  border-radius: 100%;
  margin-left: auto;
}
.nav-divider {
  border: 0;
  margin: 22px 12px 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  flex-shrink: 0;
}
.system-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  padding: 12px 2px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.version {
  margin-left: auto;
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 4px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 -16px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: var(--sidebar);
}
.profile strong {
  font-size: 13px;
  display: block;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.profile form {
  margin-left: auto;
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--panel);
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  font-weight: 650;
  font-size: 13px;
  flex-shrink: 0;
}
.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 13px;
}
.app-shell {
  margin-left: 260px;
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 16px;
  z-index: 25;
  min-height: 64px;
  margin: 24px 24px 0;
  background: var(--panel);
  border: 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  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: 12px;
  color: var(--muted);
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px;
}
.global-search input {
  border: 0;
  background: none;
  outline: none;
  width: 190px;
  color: var(--text);
  font-size: 15px;
  padding: 4px 0;
}
.global-search kbd {
  font-size: 11px;
  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: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--soft);
  color: var(--brand);
}
.topbar-separator {
  height: 20px;
  border-right: 1px solid var(--line);
}
main {
  padding: 24px 24px 0;
  max-width: 1650px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}
.page-heading p {
  margin-top: 8px;
  font-size: 14px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .7px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.button.primary {
  background: var(--primary);
  color: var(--panel);
  box-shadow: 0 2px 6px #7367f04d;
}
.button.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px #7367f04d;
}
.button.secondary {
  background: var(--neutral-soft);
  border-color: transparent;
  color: var(--text);
}
.button.secondary:hover {
  background: var(--soft);
}
.button.danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 28%, var(--line));
}
.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: 13px;
  font-weight: 550;
  color: var(--brand);
}
.text-link:hover {
  text-decoration: underline;
}
.panel,
.stat-card {
  background: var(--panel);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  --card-accent: var(--brand);
  --card-soft: var(--brand-soft);
  padding: 24px;
  background: var(--panel);
  border: 0;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}
.stat-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--card-soft);
  border: 0;
  border-radius: 6px;
  color: var(--card-accent);
}
.stat-value {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.3px;
  margin: 12px 0 9px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
}
.stat-foot {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 5px;
  align-items: center;
}
.revenue .stat-icon {
  background: var(--card-soft);
  color: var(--card-accent);
}
.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: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
}
.panel-heading p {
  font-size: 12px;
  margin-top: 5px;
}
.panel-heading > svg {
  color: var(--accent);
}
.period-chip {
  font-size: 12px;
  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: 11px;
  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: 11px;
  margin-top: 6px;
}
.chart-caption {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 3px 0 17px;
}
.insight-card {
  border-radius: var(--radius);
  padding: 25px;
  background: linear-gradient(115deg, #6c5de7, #5c4dcc);
  border: 0;
  box-shadow: var(--shadow);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.insight-icon {
  position: absolute;
  right: 23px;
  top: 23px;
  color: #ffffff;
  opacity: .75;
}
.insight-card .eyebrow {
  font-size: 10px;
  color: #ffffff;
  margin-top: 5px;
  padding-right: 35px;
}
.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: 13px;
  line-height: 1.75;
  color: #f1efff;
  max-width: 300px;
}
.insight-card a {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  font-weight: 550;
  margin-top: 17px;
}
.insight-tag {
  display: flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  font-size: 11px;
  margin-top: 22px;
  color: #ffffff;
  border: 1px solid #ffffff26;
  background: #ffffff0a;
  border-radius: 6px;
  padding: 5px 9px;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(245px, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}
.table-scroll {
  position: relative;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
thead {
  background: var(--soft);
}
th {
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--muted);
  font-weight: 650;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: middle;
}
  tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel));
}
td strong {
  font-size: 13px;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}
.entity-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}
.entity-cell strong {
  display: block;
}
.product-symbol {
  width: 36px;
  height: 38px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 650;
  flex-shrink: 0;
}
.product-symbol.violet {
  background: var(--violet-soft);
  color: var(--violet);
}
.product-symbol.large {
  width: 45px;
  height: 46px;
  font-size: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 4px;
  border: 0;
  padding: 4px 9px;
  background: var(--neutral-soft);
  color: var(--neutral);
  white-space: nowrap;
}
.badge > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.active {
  background: var(--success-soft);
  color: var(--success);
}
.badge.suspended {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge.revoked,
.badge.expired {
  background: var(--red-soft);
  color: var(--red);
}
.edition-chip {
  display: inline-block;
  background: var(--violet-soft);
  border: 1px solid color-mix(in srgb, var(--violet) 16%, transparent);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--violet);
}
.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: 4px;
  bottom: 0;
  border-left: 1px solid var(--line);
}
.timeline-dot {
  background: var(--accent);
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.timeline-item strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.timeline-item p {
  font-size: 11px;
  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: 12px;
}
.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: 11px;
  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: 21px 23px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.product-card:hover {
  border-color: var(--brand);
}
.product-card h3 {
  font-size: 13px;
}
.product-card p {
  font-size: 12px;
  margin-top: 4px;
}
.product-card-arrow {
  margin-left: auto;
  color: var(--muted);
}
.add-product {
  border-style: dashed;
  color: var(--brand);
}
.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: 11px;
  color: var(--muted);
}
.page-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 230px;
  min-width: 180px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
}
.filter-search input {
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
}
select,
input,
textarea {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  padding: 10px 12px;
  max-width: 100%;
}
select {
  font-size: 13px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 12px;
  color: var(--muted);
}
.results-heading strong {
  color: var(--text);
}
input[type="checkbox"] {
  accent-color: var(--brand);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.checkbox-col {
  width: 40px;
}
.table-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.pagination {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.bulk-bar {
  padding: 15px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 12px;
  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: 13px;
}
.empty-state .button {
  margin-top: 6px;
}
.quiet-empty {
  padding: 28px 23px;
  color: var(--muted);
  font-size: 13px;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  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: 13px;
  font-weight: 550;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-size: 14px;
  min-height: 40px;
}
.form-field textarea {
  min-height: 90px;
  resize: vertical;
}
.form-field small {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.required-dot {
  color: var(--brand);
  padding-left: 3px;
}
.field-error,
.errorlist {
  font-size: 13px;
  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: 23px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: var(--radius);
  background: var(--panel);
}
.advice-icon {
  color: var(--brand);
  display: inline-flex;
  margin-bottom: 15px;
}
.form-advice p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 12px;
  max-width: 280px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.7;
  background: var(--blue-soft);
  border: 1px solid color-mix(in srgb, var(--blue) 20%, transparent);
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 13px;
  margin-bottom: 20px;
  color: var(--blue);
}
.notice.success {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 20%, transparent);
  color: var(--success);
}
.notice.error {
  background: var(--red-soft);
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 20%, transparent);
}
.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(--brand-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: 14px;
  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: 13px;
}
.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: 13px;
  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: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  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(--amber-soft);
  color: var(--amber);
  border-radius: 6px;
  padding: 10px;
  display: flex;
}
.machine-item strong {
  font-size: 13px;
  display: block;
}
.machine-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  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(--brand-soft);
  color: var(--brand);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
}
.confirmation h1 {
  font-size: 27px;
}
.confirmation p {
  font-size: 14px;
  line-height: 1.8;
  margin: 18px 0;
}
.confirmation .button-group {
  margin-top: 25px;
}
.confirmation ul {
  margin-bottom: 20px;
  font-size: 14px;
}
.narrow {
  max-width: 760px;
  margin-bottom: 24px;
}
.steps p {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 23px;
  font-size: 14px;
}
.steps p span {
  color: var(--brand);
  font: 12px monospace;
  background: var(--brand-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: 14px;
}
.sdk-links small {
  color: var(--muted);
  margin-left: auto;
  font-size: 12px;
}
.sdk-links svg {
  color: var(--brand);
}
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: var(--radius);
  padding: 27px;
  background: var(--accent-soft);
  margin-bottom: 25px;
}
.integration-banner h2 {
  font-size: 20px;
}
.integration-banner p {
  font-size: 14px;
  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(--brand);
  margin-bottom: 18px;
}
.doc-card h3 {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.doc-card > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}
.documentation-content {
  padding: 27px;
}
.documentation-content pre {
  font-size: 14px;
  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: 14px;
}
.search-result span {
  font-size: 13px;
  color: var(--muted);
}
.search-result svg {
  margin-left: auto;
  color: var(--brand);
}
.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 23px;
  border-top: 1px solid var(--line);
}
.team-member strong {
  font-size: 14px;
  display: block;
}
.team-member small {
  font-size: 12px;
  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%, var(--brand-soft) 0, transparent 65%), var(--bg);
}
.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: 14px;
  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: 11px;
  margin-top: 27px;
}
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 22px;
}
.qr-code {
  display: flex;
  justify-content: center;
}
.qr-code svg {
  width: 200px;
  height: 200px;
  background: #fff;
}
.auth-card details {
  font-size: 13px;
  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: 13px;
}
.mobile-menu {
  display: none;
}
.htmx-request {
  cursor: progress;
}
.htmx-indicator {
  display: none;
}
@media (min-width: 1550px) {
  main {
    padding-top: 24px;
  }
  .page-heading {
    margin-bottom: 35px;
  }
  .stat-card {
    padding: 23px;
  }
  .stat-value {
    font-size: 30px;
  }
  .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: 11px;
  }
  .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: 13px;
  }
  .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: 12px;
    gap: 8px;
  }
  main {
    padding: 25px 17px 0;
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 19px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-top {
    font-size: 12px;
  }
  .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: 10px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .button {
    font-size: 12px;
    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: 11px;
  }
  .period-chip {
    font-size: 10px;
  }
  .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: 12px;
  }
  .key-block {
    padding: 18px;
  }
  .key-block code {
    font-size: 12px;
  }
  .detail-list dd.mono {
    font-size: 11px;
  }
  .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: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  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(--brand);
  border-color: var(--brand);
  background: var(--brand-soft);
}
.wizard-progress .current .step-label > span,
.wizard-progress .complete button > span { background: var(--brand); color: var(--panel); }
.wizard-progress .complete button { color: var(--text); }
.wizard-progress button:hover { border-color: var(--brand); }
.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: 6px;
  padding: 16px;
  cursor: pointer;
}
.wizard-fields .form-field > div label:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.wizard-fields input[type='radio'], .wizard-fields input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--brand);
  margin: 0;
  min-height: 18px;
}
.wizard-saved { color: var(--brand); 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(--brand-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: 13px; }
  .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(--brand); }
@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); }

/* Navigation and shared interaction states. */
[hidden] { display: none !important; }
.sidebar nav { min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 2px; margin: -2px; }
.sidebar > .brand, .workspace { flex-shrink: 0; }
.workspace > svg { margin-left: auto; color: var(--brand); }
.nav-item.selected::before { content: none; }
.nav-dot { background: currentColor; flex-shrink: 0; }
.profile > div { min-width: 0; }
.profile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 138px; }
.breadcrumb { min-width: 0; }
.breadcrumb strong { overflow-wrap: anywhere; }
.page-heading > div { min-width: 0; }
.page-heading .eyebrow { color: var(--muted); }
.page-heading .accent-text { color: var(--brand); }
.button-group { flex-wrap: wrap; }
.page-heading > .button-group { justify-content: flex-end; }
button, a, input, select, textarea { transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease; }
.button:active, .icon-button:active { filter: brightness(.94); }
.button:disabled { cursor: not-allowed; opacity: .6; }
.button.danger:hover { background: color-mix(in srgb, var(--red) 12%, var(--red-soft)); border-color: var(--red); }
.button.primary { color: #fff; }
[data-theme="dark"] .button.primary { color: #ffffff; }
.theme-moon { display: none; }
[data-theme="dark"] .theme-button > svg { display: none; }
[data-theme="dark"] .theme-moon { display: inline-flex; }
.global-search:focus-within, .filter-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
  input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--brand); outline: 2px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }
.global-search input:focus-visible, .filter-search input:focus-visible { outline: none; box-shadow: none; }
  input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--brand); }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 35; border: 0; padding: 0; background: #25293c80; cursor: pointer; }
body.menu-open { overflow: hidden; }

/* Overview: four real KPIs and a shared period for the existing activity chart. */
.stat-card.machines { --card-accent: var(--amber); --card-soft: var(--amber-soft); }
.stat-card.customers { --card-accent: var(--success); --card-soft: var(--success-soft); }
.stat-card.revenue { --card-accent: var(--blue); --card-soft: var(--blue-soft); }
.dashboard-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; font-size: 12px; color: var(--muted); }
.dashboard-summary > span, .summary-link { display: inline-flex; align-items: center; gap: 8px; }
.summary-link { background: var(--soft); border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; }
.summary-link.attention { color: var(--amber); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 20%, transparent); }
.chart-line { stroke: var(--brand); }
.chart-gradient { stop-color: var(--brand); }
.product-card:hover, .doc-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 5px 18px #2f2b3d18; }
.product-card > div { min-width: 0; }
.product-card h3, .product-card p { overflow-wrap: anywhere; }
.panel-footer-link:hover { color: var(--accent); background: var(--accent-soft); }

/* Status grammar is semantic and independent of the current module. */
.badge.success, .badge.paid, .badge.published { color: var(--success); background: var(--success-soft); }
.badge.pending, .badge.warning { color: var(--amber); background: var(--amber-soft); }
.badge.failed, .badge.error { color: var(--red); background: var(--red-soft); }
.badge.expired { color: var(--amber); background: var(--amber-soft); }
.badge.draft, .badge.inactive, .badge.cancelled { color: var(--neutral); background: var(--neutral-soft); }
.badge.info, .badge.refunded { color: var(--blue); background: var(--blue-soft); }
.notice.warning { background: var(--amber-soft); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 20%, transparent); }
.mono, .stat-value { font-variant-numeric: tabular-nums; }
.row-action:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.table-scroll:focus-visible { outline-offset: -3px; }
.results-heading strong, .count { color: var(--accent); }
.pagination { background: var(--panel); }
.filter-bar select, .filter-bar > input { flex: 0 1 auto; min-width: 0; }

/* Details and forms. */
.detail-list dd { font-weight: 500; }
.detail-list > div:nth-child(even) { background: color-mix(in srgb, var(--soft) 45%, transparent); }
.detail-list > div { padding-inline: 4px; }
.detail-list { padding-block: 12px; }
.detail-list .badge { font-weight: 600; }
.detail-list .feature-list { margin-top: 0; justify-content: flex-end; }
.form-section-heading { display: flex; align-items: center; gap: 13px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-section-heading p { font-size: 12px; margin-top: 5px; }
.section-icon { width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--accent) 17%, transparent); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; border-radius: 11px; flex-shrink: 0; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea,
.form-field [aria-invalid="true"] { border-color: var(--red); background: color-mix(in srgb, var(--red-soft) 30%, var(--panel)); }
.form-field .field-error { color: var(--red); }
.form-field .errorlist { margin: 0; }
.form-field input[type="checkbox"] { flex-shrink: 0; }
.form-panel > h2 { margin-bottom: 16px; }
.form-panel > p { font-size: 13px; line-height: 1.75; }
.form-panel > form + form { margin-top: 20px; }
.form-panel form > .form-fields { margin-block: 20px; }
.form-footer { background: linear-gradient(0deg, color-mix(in srgb, var(--soft) 45%, transparent), transparent); }
.key-block { border-color: color-mix(in srgb, var(--brand) 14%, var(--line)); }
.confirmation-icon { background: var(--amber-soft); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 20%, transparent); border-radius: 18px; }
.actions-panel { border-left: 0; }

/* Codex assistant: a distinct, restrained violet accent and clear step progression. */
.codex-intro { background: linear-gradient(110deg, var(--violet-soft), var(--panel)); border: 1px solid color-mix(in srgb, var(--violet) 22%, var(--line)); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.codex-intro .section-icon { --accent: var(--violet); --accent-soft: var(--violet-soft); width: 46px; height: 46px; }
.codex-intro h2 { font-size: 16px; }
.codex-intro p { font-size: 13px; margin-top: 5px; }
.codex-intro .badge { margin-left: auto; }
.profile-nav { padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.profile-nav [aria-current="page"] { background: var(--violet-soft); color: var(--violet); border-color: color-mix(in srgb, var(--violet) 35%, var(--line)); }
.wizard-panel > .panel-heading { background: none; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.wizard-panel > .panel-heading h2 { font-size: 22px; }
.wizard-progress .current .step-label { background: var(--violet-soft); color: var(--violet); border-color: var(--violet); box-shadow: 0 2px 8px color-mix(in srgb, var(--violet) 10%, transparent); }
.wizard-progress .current .step-label > span { background: var(--violet); color: var(--panel); }
.wizard-progress .complete button { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 20%, var(--line)); }
.wizard-progress .complete button > span { background: var(--brand); color: var(--panel); }
.wizard-fields .form-field > div label:hover { border-color: var(--brand); }
.wizard-fields .form-field > div label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.wizard-advice { margin-top: 0; }
.kit-contents { background: var(--violet-soft); border: 1px solid color-mix(in srgb, var(--violet) 20%, transparent); }
.kit-contents h3 { color: var(--violet); }
.wizard-preview { border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 16px; }
.wizard-preview summary { margin-bottom: 0; }
.wizard-preview[open] summary { margin-bottom: 12px; }
.wizard-preview pre { background: var(--panel); margin-bottom: 0; }
.wizard-summary { padding-inline: 0; }

/* HTMX feedback stays visible without fading the form or clearing existing results. */
.loading-note { align-items: center; gap: 9px; color: var(--accent); background: var(--accent-soft); padding: 10px 20px; font-size: 12px; border-bottom: 1px solid var(--line); }
.htmx-request.loading-note, .htmx-request .loading-note { display: flex; }
.loading-spinner { width: 14px; height: 14px; border: 2px solid color-mix(in srgb, currentColor 20%, transparent); border-top-color: currentColor; border-radius: 50%; animation: studio-spin 800ms linear infinite; flex-shrink: 0; }
.copy-feedback { position: fixed; bottom: 24px; right: 24px; z-index: 50; padding: 12px 18px; background: var(--panel); color: var(--brand); border: 1px solid var(--brand); border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; max-width: calc(100vw - 32px); }
@keyframes studio-spin { to { transform: rotate(360deg); } }

@media (min-width: 961px) {
  .page-heading > .button-group { max-width: 50%; }
}
@media (max-width: 1200px) {
  .nav-item { font-size: 12px; gap: 8px; padding-inline: 9px; }
  .wizard-progress button, .wizard-progress .step-label { font-size: 12px; }
}
@media (max-width: 960px) {
  .filter-search { padding-bottom: 0; }
  .page-heading > .button-group { justify-content: flex-start; }
  .dashboard-summary { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 180ms ease; width: 256px; padding-inline: 16px; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px #0002; }
  .app-shell { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .profile { margin-inline: -16px; padding-inline: 16px; }
}
@media (min-width: 901px) {
  .sidebar-backdrop { display: none; }
}
@media (max-width: 720px) {
  .topbar { min-height: 65px; padding-block: 12px; height: auto; }
  .breadcrumb > span { display: none; }
  .page-heading { padding-left: 0; gap: 16px; }
  .page-heading h1 { font-size: 28px; }
  .stat-top { font-size: 12px; }
  .stat-foot { font-size: 11px; line-height: 1.6; }
  .stat-note { display: inline; font-size: 11px; }
  .stat-icon { width: 28px; height: 28px; border-radius: 8px; }
  .button { font-size: 12px; min-height: 42px; white-space: normal; }
  .icon-button { min-width: 40px; min-height: 40px; }
  .page-heading p, .panel-heading p { font-size: 12px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-heading { flex-wrap: wrap; gap: 10px; }
  .filter-bar { padding: 14px; }
  .filter-search { min-width: 100%; }
  .filter-bar select { flex: 1 1 140px; }
  .filter-bar > input { flex: 1 1 140px; }
  .detail-list > div { font-size: 12px; align-items: flex-start; }
  .detail-list dd.mono { font-size: 11px; }
  .machine-item { flex-wrap: wrap; }
  .machine-item > div { min-width: 0; flex: 1; }
  .machine-item .text-link { margin-left: 0; }
  .codex-intro { flex-wrap: wrap; padding: 18px; }
  .codex-intro > div { min-width: 0; flex: 1; }
  .codex-intro .badge { margin-left: 0; }
  .wizard-panel > .panel-heading h2 { font-size: 20px; }
  .wizard-panel .detail-list > div { flex-direction: column; gap: 6px; }
  .wizard-panel .detail-list dd { max-width: 100%; text-align: left; }
  .wizard-product .badge { margin-left: 0; }
  .wizard-preview { padding: 12px; }
  .period-chip { font-size: 11px; }
}
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Vuexy-inspired composition: floating toolbar, compact cards and purple navigation. */
.topbar-leading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.page-breadcrumb { margin-bottom: 20px; font-size: 13px; }
.page-breadcrumb a:hover { color: var(--brand); }
.nav-item.selected svg { color: #fff; }
.nav-item.selected .nav-dot { background: #fff; }
.dashboard-overview { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr); gap: 24px; margin-bottom: 24px; }
.dashboard-overview .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 0; }
.dashboard-overview .insight-card { justify-content: center; min-height: 320px; padding: 28px; }
.dashboard-overview .insight-card h2 { font-size: 28px; font-weight: 500; letter-spacing: -.4px; position: relative; z-index: 1; }
.dashboard-overview .insight-card p { position: relative; z-index: 1; max-width: 280px; }
.insight-card .live-dot { background: #fff; }
.hero-orbit { position: absolute; width: 160px; height: 160px; right: -60px; top: 90px; opacity: .2; transform: rotate(-30deg); pointer-events: none; }
.hero-orbit span { position: absolute; inset: 0; border: 14px solid #fff; border-radius: 50%; }
.hero-orbit span:nth-child(2) { inset: 25px -12px; border-width: 10px; }
.hero-orbit span:nth-child(3) { inset: 50px -24px; border-width: 7px; }
.dashboard-bottom { display: block; }
.dashboard-middle { align-items: stretch; }
.chart-panel { display: flex; flex-direction: column; }
.chart-panel .chart { margin-block: auto; padding-top: 16px; min-height: 205px; }
.chart-panel .chart-caption { padding-bottom: 20px; }
.stat-foot { font-size: 12px; }
.stat-note { font-size: 12px; }
.product-card, .doc-card { border: 0; box-shadow: var(--shadow); border-radius: 6px; }
.product-card:hover, .doc-card:hover { box-shadow: 0 4px 18px #2f2b3d20; }
.period-chip { background: var(--soft); border: 0; color: var(--text); border-radius: 4px; }
.detail-list > div:nth-child(even) { background: none; }
.form-section-heading { border-bottom: 1px solid var(--line); }
.form-advice { border: 0; box-shadow: var(--shadow); border-radius: 6px; }
.codex-intro { background: var(--violet-soft); border: 0; border-radius: 6px; }
.profile-nav { border: 0; box-shadow: var(--shadow); border-radius: 6px; }
.kit-contents { border: 0; border-radius: 6px; }
.wizard-progress .current .step-label { background: var(--primary); color: #fff; border-color: transparent; }
.wizard-progress .current .step-label > span { background: #ffffff26; color: #fff; }
.wizard-progress button, .wizard-progress .step-label { border-radius: 6px; }
.wizard-fields .form-field > div label { border-radius: 6px; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; font-weight: 500; }
.row-action { border: 0; background: none; }
.page-footer { border-top: 0; font-size: 12px; margin-top: 8px; }
@media (min-width: 1550px) {
  .dashboard-bottom { display: block; }
}
@media (max-width: 1200px) {
  .brand { font-size: 20px; gap: 5px; }
  .dashboard-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 18px; }
  .dashboard-overview .stats-grid { gap: 18px; }
}
@media (max-width: 960px) {
  .dashboard-overview { grid-template-columns: minmax(0, 1fr); }
  .dashboard-overview .insight-card { display: flex; min-height: 230px; }
  .dashboard-overview .insight-card p { max-width: 75%; }
  .hero-orbit { right: 30px; top: 45px; }
  .dashboard-middle { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .topbar { top: 12px; margin: 16px 16px 0; min-height: 60px; padding: 10px 12px; }
  .global-search { display: flex; gap: 7px; }
  .global-search input { width: 95px; font-size: 13px; }
  .global-search kbd { display: none; }
  .topbar-actions { gap: 2px; }
  .topbar-actions > a, .topbar-separator { display: none; }
  .page-breadcrumb { margin-bottom: 18px; font-size: 12px; }
  .page-breadcrumb > span { display: inline; }
  .page-heading h1 { font-size: 25px; }
  .dashboard-overview .insight-card { padding: 24px; }
  .dashboard-overview .insight-card h2 { font-size: 25px; }
  .dashboard-overview .insight-card p { max-width: 100%; }
  .dashboard-overview .stats-grid { gap: 12px; }
  .dashboard-overview .stat-card { padding: 16px; }
  .hero-orbit { right: -70px; opacity: .1; }
}
@media (max-width: 380px) {
  .dashboard-overview .stats-grid { grid-template-columns: minmax(0, 1fr); }
}
