:root {
  --ink: #061226;
  --ink-2: #0b1830;
  --text: #132034;
  --muted: #5f6f86;
  --line: #dbe3ef;
  --panel: #ffffff;
  --soft: #f5f8fc;
  --cyan: #14d7c8;
  --blue: #0b5cff;
  --gold: #f5b62f;
  --danger: #c2410c;
  --success: #047857;
  --mx: 50%;
  --my: 20%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--soft);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--soft);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: linear-gradient(180deg, #eef4fb 0, #f8fbff 320px, #f3f7fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(20, 215, 200, 0.28), transparent 34%),
    radial-gradient(circle at calc(100% - var(--mx)) 30%, rgba(11, 92, 255, 0.20), transparent 34%),
    linear-gradient(110deg, rgba(245, 182, 47, 0.16), rgba(20, 215, 200, 0.08), rgba(11, 92, 255, 0.10));
  filter: saturate(120%);
  animation: fluidShift 14s ease-in-out infinite alternate;
}

@keyframes fluidShift {
  from {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1%, 1%, 0) scale(1.02);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  min-height: 66px;
  background: rgba(5, 15, 31, 0.96);
  color: #f7fbff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
}

.brand-mark span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #0b5cff 0 45%, #14d7c8 46% 100%);
  clip-path: polygon(0 0, 34% 0, 34% 42%, 72% 0, 100% 0, 56% 50%, 100% 100%, 70% 100%, 34% 58%, 34% 100%, 0 100%);
  text-indent: -999px;
  overflow: hidden;
}

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a,
.header-actions a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover,
.header-actions a:hover {
  color: #fff;
}

.header-actions {
  justify-content: end;
}

.icon-button,
.cart-button,
.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 40px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.site-header .icon-button,
.site-header .cart-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.icon-button {
  width: 40px;
  padding: 0;
}

.icon-button.compact {
  width: 38px;
  height: 38px;
  min-height: 38px;
}

.button {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  min-height: 44px;
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button-slim {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  min-height: auto;
}

.button:hover,
.icon-button:hover,
.cart-button:hover {
  transform: translateY(-1px);
}

.icon-search,
.icon-cart {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.icon-search::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  left: 0;
  top: 0;
}

.icon-search::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  right: 0;
  bottom: 2px;
  border-radius: 1px;
}

.icon-cart::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 3px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 1px;
}

.icon-cart::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 1px;
  width: 8px;
  height: 2px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

main {
  min-height: calc(100vh - 160px);
}

.notice {
  max-width: 1180px;
  margin: 16px auto 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
  background: #fff;
  font-weight: 700;
}

.notice-success {
  border-color: rgba(4, 120, 87, 0.35);
  color: var(--success);
}

.notice-error,
.notice-warning {
  border-color: rgba(194, 65, 12, 0.35);
  color: var(--danger);
}

.store-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 340px;
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 30px 0;
}

.filters-panel,
.preview-card,
.checkout-summary,
.auth-card,
.dashboard-content,
.side-nav,
.support-admin {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(8, 20, 42, 0.08);
}

.filters-panel {
  align-self: start;
  padding: 16px;
  position: sticky;
  top: 86px;
}

.search-form label,
.filter-group label,
.content-form label,
.auth-card label,
.checkout-summary label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.search-input {
  display: grid;
  grid-template-columns: 1fr 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  min-height: 42px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.search-input input {
  border: 0;
  border-radius: 0;
}

.search-input button {
  border: 0;
  background: #fff;
  color: var(--blue);
}

.filter-group {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.filter-group h2 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 15px;
}

.filter-group a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.filter-group a.active,
.filter-group a:hover {
  color: var(--blue);
}

.catalog-panel {
  min-width: 0;
}

.catalog-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
}

.catalog-header h1,
.page-band h1,
.product-main h1,
.auth-card h1,
.dashboard-content h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: 0;
}

.catalog-header p,
.page-band p,
.product-main .lead,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.trust-strip span {
  border: 1px solid rgba(11, 92, 255, 0.16);
  border-radius: 6px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 92, 255, 0.35);
  box-shadow: 0 18px 44px rgba(8, 20, 42, 0.12);
}

.media {
  position: relative;
  display: block;
  min-height: 140px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at 22% 24%, color-mix(in srgb, var(--product-color) 72%, #fff), transparent 28%),
    linear-gradient(135deg, #061226, #0c244d 52%, var(--product-color));
  color: #fff;
}

.media::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px) 0 0 / 34px 34px;
}

.media span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  border-radius: 5px;
  padding: 7px 9px;
  background: var(--product-color);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.media i,
.media b,
.media em {
  position: absolute;
  display: block;
  z-index: 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transform: rotate(-4deg);
}

.media i {
  width: 48%;
  height: 40%;
  top: 28%;
  left: 13%;
}

.media b {
  width: 36%;
  height: 28%;
  top: 20%;
  right: 12%;
  opacity: 0.72;
}

.media em {
  width: 30%;
  height: 24%;
  right: 18%;
  bottom: 22%;
  opacity: 0.62;
}

.media-dashboard i,
.media-dashboard b,
.media-dashboard em {
  background: linear-gradient(180deg, #f8fbff, #b8dfd0);
}

.media-mobile i {
  width: 28%;
  height: 58%;
  border-radius: 8px;
  left: 24%;
}

.media-mobile b {
  width: 24%;
  height: 52%;
  border-radius: 8px;
  right: 26%;
  top: 24%;
}

.media-automation i,
.media-automation b,
.media-automation em {
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(2, 8, 23, 0.22);
}

.media-hosting i,
.media-hosting b,
.media-hosting em {
  height: 16px;
  transform: none;
}

.media-large {
  min-height: 190px;
  border-radius: 8px;
}

.media-hero {
  min-height: 290px;
  border-radius: 8px;
  margin: 14px 0 24px;
}

.media.mini {
  width: 76px;
  height: 54px;
  min-height: 54px;
  border-radius: 6px;
}

.media.mini span,
.media.mini::before,
.media.mini i,
.media.mini b,
.media.mini em {
  display: none;
}

.product-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.25;
}

.product-card p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-card-footer,
.cart-row,
.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card-footer strong,
.cart-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.preview-panel {
  position: sticky;
  top: 86px;
  align-self: start;
}

.preview-card {
  padding: 16px;
}

.preview-card h2,
.purchase-panel h2,
.checkout-summary h2,
.dashboard-content h2 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.preview-card p {
  color: var(--muted);
  line-height: 1.55;
}

.check-list,
.plain-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.stacked-form,
.content-form,
.auth-card,
.checkout-summary form {
  display: grid;
  gap: 12px;
}

.secure-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  border: 1px solid rgba(11, 92, 255, 0.16);
  border-radius: 6px;
  padding: 12px;
  background: #f7fbff;
}

.secure-note strong {
  color: var(--blue);
}

.secure-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.page-band,
.product-detail,
.checkout-shell,
.dashboard-shell,
.auth-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 30px;
}

.category-grid,
.settings-grid,
.summary-grid,
.admin-cards,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.category-row,
.summary-grid div,
.settings-grid div,
.admin-cards a,
.doc-grid span {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.category-row strong,
.summary-grid strong,
.settings-grid strong,
.admin-cards a {
  color: var(--ink);
  font-size: 18px;
}

.category-row span,
.category-row em,
.summary-grid span,
.settings-grid span {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.product-main,
.purchase-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.purchase-panel {
  align-self: start;
  position: sticky;
  top: 86px;
}

.back-link {
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  border-bottom: 1px solid var(--line);
}

.tabs a {
  padding: 12px 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.tabs a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-panel h2,
.tab-panel h3 {
  color: var(--ink);
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.license-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}

.license-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.license-option span {
  display: grid;
  gap: 3px;
}

.license-option small {
  color: var(--muted);
  line-height: 1.35;
}

.license-option em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.review-row,
.release-row,
.message-row {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.message-row.staff {
  border-left: 3px solid var(--blue);
  padding-left: 12px;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.checkout-main,
.checkout-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.cart-row {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.cart-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cart-row span,
.cart-row small {
  color: var(--muted);
  font-size: 13px;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.auth-card {
  width: min(100%, 420px);
  padding: 24px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}

.side-nav {
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 10px;
  position: sticky;
  top: 86px;
}

.side-nav a {
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.side-nav a.active,
.side-nav a:hover {
  color: var(--blue);
  background: #eef5ff;
}

.dashboard-content {
  min-width: 0;
  padding: 24px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: #f8fbff;
  font-weight: 850;
}

td {
  color: var(--text);
}

.secret-code {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #071326;
  color: #a7f3d0;
  font-size: 13px;
  line-height: 1.5;
}

.support-admin {
  margin-bottom: 12px;
  padding: 14px;
}

.support-admin summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 26px 32px;
  color: #d8e6f8;
  background: var(--ink);
}

.site-footer div {
  display: grid;
  gap: 5px;
  max-width: 620px;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

@media (max-width: 1180px) {
  .store-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .preview-panel {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 12px 16px;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 2px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions > a:not(.cart-button):not(.icon-button) {
    display: none;
  }

  .store-shell,
  .product-detail,
  .checkout-shell,
  .dashboard-shell,
  .split-list {
    grid-template-columns: 1fr;
  }

  .store-shell,
  .page-band,
  .product-detail,
  .checkout-shell,
  .dashboard-shell,
  .auth-shell {
    padding: 24px 16px;
  }

  .filters-panel,
  .purchase-panel,
  .side-nav {
    position: static;
  }

  .catalog-panel {
    order: 1;
  }

  .filters-panel {
    order: 2;
  }

  .product-grid,
  .trust-strip,
  .category-grid,
  .settings-grid,
  .summary-grid,
  .admin-cards,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .catalog-header {
    display: grid;
  }

  .catalog-header h1,
  .page-band h1,
  .product-main h1,
  .auth-card h1,
  .dashboard-content h1 {
    font-size: 30px;
  }

  .site-footer {
    display: grid;
    padding: 24px 16px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .cart-button {
    padding: 0 10px;
  }

  .product-main,
  .purchase-panel,
  .checkout-main,
  .checkout-summary,
  .dashboard-content {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Purchase controls */
.purchase-panel form {
  display: grid;
  gap: 0;
}

.license-option {
  min-height: 86px;
  align-items: center;
  padding: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.license-option:hover {
  border-color: #9ebcf8;
}

.license-option.is-selected {
  border-color: var(--blue);
  background: #f5f9ff;
  box-shadow: 0 0 0 1px var(--blue);
}

.license-option input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--blue);
}

.license-option strong {
  color: var(--ink);
  line-height: 1.25;
}

.license-option em {
  white-space: nowrap;
}

.purchase-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.purchase-actions .button {
  width: 100%;
  min-height: 48px;
  padding: 0 10px;
  font-size: 14px;
}

.button-outline {
  color: var(--blue);
  background: #fff;
  border-color: var(--blue);
}

.button-outline:hover {
  background: #f4f8ff;
}

.icon-bolt {
  position: relative;
  width: 14px;
  height: 18px;
  display: inline-block;
  flex: 0 0 14px;
}

.icon-bolt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(55% 0, 9% 55%, 42% 55%, 30% 100%, 91% 39%, 57% 39%);
}

.delivery-note {
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.delivery-note > div {
  display: grid;
  gap: 4px;
}

.icon-shield {
  position: relative;
  width: 23px;
  height: 27px;
  border: 2px solid var(--blue);
  border-radius: 12px 12px 14px 14px;
  clip-path: polygon(50% 0, 100% 18%, 92% 74%, 50% 100%, 8% 74%, 0 18%);
}

.icon-shield::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 4px;
  left: 6px;
  top: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* Private admin application */
.admin-body {
  min-width: 320px;
  min-height: 100vh;
  background: #f7f9fc;
  color: #162033;
}

.admin-body .notice {
  position: fixed;
  z-index: 100;
  top: 70px;
  right: 24px;
  max-width: 420px;
  margin: 0;
  box-shadow: 0 16px 40px rgba(7, 20, 42, 0.16);
}

.admin-app {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  z-index: 60;
  top: 0;
  align-self: start;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  min-width: 0;
  color: #eaf2ff;
  background: #061b36;
  border-right: 1px solid #153354;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-brand strong {
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.admin-brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #fff;
  background: #1769ff;
  font-size: 19px;
  font-weight: 900;
}

.admin-navigation {
  min-height: 0;
  overflow-y: auto;
  padding: 14px 10px 22px;
  scrollbar-width: thin;
}

.admin-nav-label {
  display: block;
  margin: 16px 10px 6px;
  color: #7690ad;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-nav-label:first-child {
  margin-top: 2px;
}

.admin-navigation a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-bottom: 2px;
  padding: 0 10px;
  border-radius: 5px;
  color: #c7d6e8;
  font-size: 13px;
  font-weight: 650;
}

.admin-navigation a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.admin-navigation a.active {
  color: #fff;
  background: #1769ff;
}

.admin-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.admin-sidebar-footer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-footer div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-sidebar-footer strong,
.admin-sidebar-footer small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-footer strong {
  color: #fff;
  font-size: 12px;
}

.admin-sidebar-footer small {
  color: #8fa6c0;
  font-size: 10px;
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #2a4668;
  font-size: 13px;
  font-weight: 800;
}

.admin-stage {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(280px, 560px) 1fr;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #dce4ee;
  backdrop-filter: blur(14px);
}

.admin-menu-button,
.admin-icon-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #405069;
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 5px;
}

.admin-menu-button {
  display: none;
}

.admin-search {
  position: relative;
}

.admin-search > span,
.admin-search > button {
  position: absolute;
  left: 12px;
  top: 50%;
  color: #7b8aa0;
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-search > button {
  z-index: 1;
  left: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.admin-search > button:hover,
.admin-search > button:focus-visible {
  color: #1769ff;
  background: #eaf2ff;
}

.admin-search input {
  min-height: 40px;
  padding: 9px 12px 9px 40px;
  border-color: #dce4ee;
  background: #f9fbfd;
  font-size: 13px;
}

.admin-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.admin-top-actions > a:first-child {
  color: #1769ff;
  font-size: 13px;
  font-weight: 750;
}

.admin-top-actions .button {
  gap: 7px;
  color: #fff;
}

.admin-main {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 22px 24px 36px;
}

.admin-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-page-heading > div {
  min-width: 0;
}

.admin-page-heading h1 {
  margin: 0 0 5px;
  color: #0a1528;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 820;
}

.admin-page-heading p,
.admin-panel-heading p,
.editor-section-heading p {
  margin: 0;
  color: #68778c;
  font-size: 13px;
  line-height: 1.45;
}

.admin-page-heading > span {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.admin-kpi {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(22, 38, 64, 0.04);
}

.admin-kpi-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #1769ff;
  background: #eaf2ff;
}

.admin-kpi > div:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-kpi span {
  color: #5b687b;
  font-size: 12px;
}

.admin-kpi strong {
  overflow: hidden;
  color: #071326;
  font-size: 24px;
  line-height: 1.18;
  text-overflow: ellipsis;
}

.admin-kpi small {
  margin-top: 5px;
  color: #078768;
  font-size: 11px;
}

.admin-kpi small.negative {
  color: #dc4d39;
}

.admin-kpi small em {
  color: #7b8a9f;
  font-style: normal;
}

.admin-chart-grid,
.admin-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, 0.95fr);
  gap: 14px;
  margin-bottom: 14px;
}

.admin-data-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.9fr);
}

.admin-panel {
  min-width: 0;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(22, 38, 64, 0.035);
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}

.admin-panel-heading h2,
.editor-section-heading h2,
.analysis-panel h2,
.settings-status-panel h2 {
  margin: 0 0 3px;
  color: #0a1528;
  font-size: 15px;
  line-height: 1.3;
}

.admin-panel-heading a {
  color: #1769ff;
  font-size: 12px;
  font-weight: 750;
}

.chart-legend {
  display: flex;
  gap: 18px;
  padding: 0 16px 8px;
  color: #4c5b70;
  font-size: 11px;
}

.chart-legend span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: middle;
}

.legend-blue::before {
  background: #1769ff;
}

.legend-teal::before {
  background: #0db7ae;
}

.revenue-chart {
  display: block;
  width: 100%;
  min-height: 235px;
  padding: 0 12px 8px;
}

.revenue-chart text {
  fill: #748298;
  font-size: 10px;
}

.chart-grid-line {
  stroke: #e5eaf1;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.chart-revenue-line,
.chart-order-line {
  fill: none;
  stroke-width: 2.25;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-revenue-line {
  stroke: #1769ff;
}

.chart-order-line {
  stroke: #0db7ae;
}

.donut-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.donut-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--segments));
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  background: #fff;
}

.donut-chart > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  text-align: center;
}

.donut-chart strong {
  color: #081427;
  font-size: 23px;
}

.donut-chart span {
  color: #748298;
  font-size: 10px;
}

.donut-legend {
  display: grid;
  gap: 10px;
}

.donut-legend > div {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.donut-legend span {
  color: #425067;
}

.donut-legend strong {
  color: #0c182b;
}

.donut-legend em {
  color: #77869b;
  font-style: normal;
}

.admin-table {
  border: 0;
  border-top: 1px solid #e3e8ef;
  border-radius: 0 0 6px 6px;
  box-shadow: none;
}

.admin-main > .admin-table {
  border: 1px solid #dce4ee;
  border-radius: 6px;
}

.admin-table table {
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-color: #e7ebf1;
  font-size: 12px;
}

.admin-table th {
  color: #46546a;
  background: #f8fafc;
  font-size: 10px;
  text-transform: uppercase;
}

.admin-table td > small,
.admin-table td small {
  display: block;
  margin-top: 2px;
  color: #8491a3;
  font-size: 10px;
}

.admin-table td > strong {
  color: #122036;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  color: #526176;
  background: #edf1f6;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.status-completed,
.status-paid,
.status-published,
.status-active {
  color: #08785f;
  background: #e0f6ef;
}

.status-pending,
.status-pending_payment,
.status-pending_review,
.status-draft {
  color: #9b6500;
  background: #fff1cc;
}

.status-refunded,
.status-cancelled,
.status-failed,
.status-archived,
.status-discontinued {
  color: #b33d2d;
  background: #fee8e4;
}

.table-action {
  color: #1769ff;
  font-weight: 750;
}

.top-products {
  display: grid;
  padding: 0 16px 12px;
}

.top-product-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  border-top: 1px solid #e7ebf1;
  font-size: 11px;
}

.top-product-row > span,
.top-product-row > em {
  color: #77869b;
  font-style: normal;
}

.top-product-row > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.top-product-row > div strong {
  overflow: hidden;
  color: #122036;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-product-row i {
  display: block;
  height: 3px;
  overflow: hidden;
  background: #e5eaf1;
}

.top-product-row i b {
  display: block;
  height: 100%;
  background: #1769ff;
}

.top-product-row > strong {
  color: #17243a;
  font-size: 11px;
}

.operations-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.operations-strip a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
}

.operations-strip a > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #1769ff;
  background: #edf4ff;
}

.operations-strip a > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.operations-strip small {
  color: #708096;
  font-size: 10px;
}

.operations-strip strong {
  overflow: hidden;
  color: #18263b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-strip .health-ok {
  color: #078768;
}

.report-chart {
  margin-bottom: 14px;
}

.report-tables {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-filter-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -5px 0 14px;
  color: #65748a;
  font-size: 12px;
}

.admin-filter-summary a {
  margin-left: 6px;
  color: #1769ff;
  font-weight: 750;
}

/* ZIP publishing */
.product-editor-heading .admin-back-link {
  display: inline-block;
  margin-bottom: 7px;
  color: #1769ff;
  font-size: 12px;
  font-weight: 750;
}

.package-upload-band {
  margin-bottom: 14px;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
}

.package-upload-band form {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.package-upload-heading,
.package-upload-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.package-upload-heading h2 {
  margin: 0 0 3px;
  color: #0b1729;
  font-size: 15px;
}

.package-upload-heading p,
.package-upload-heading > span,
.package-upload-status {
  margin: 0;
  color: #708096;
  font-size: 11px;
}

.package-upload-heading > span {
  white-space: nowrap;
}

.package-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 144px;
  border: 1.5px dashed #1769ff;
  border-radius: 6px;
  background: #f8fbff;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.package-dropzone:hover {
  background: #f1f7ff;
}

.package-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
}

.package-dropzone strong {
  margin: 7px 0 3px;
  color: #1769ff;
  font-size: 13px;
}

.package-dropzone small {
  color: #77879b;
  font-size: 11px;
}

.zip-file-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #bdd2f5;
  border-radius: 6px;
  color: #1769ff;
  background: #fff;
}

.package-upload-band form.is-analyzing .package-dropzone {
  border-color: #0db7ae;
  background: #f0fcfa;
}

.package-upload-band form.is-analyzing button {
  pointer-events: none;
  opacity: 0.65;
}

.product-publisher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 14px;
}

.product-editor-form {
  min-width: 0;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
}

.editor-section {
  padding: 17px;
  border-bottom: 1px solid #e4e9f0;
}

.editor-section-heading {
  margin-bottom: 12px;
}

.editor-fields {
  display: grid;
  gap: 12px;
}

.editor-fields.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-fields label,
.settings-form > label,
.settings-form .editor-fields label {
  display: grid;
  align-content: start;
  gap: 6px;
  color: #243249;
  font-size: 11px;
  font-weight: 750;
}

.editor-fields input,
.editor-fields select,
.editor-fields textarea,
.settings-form input,
.settings-form select,
.settings-form textarea,
.product-editor-form > .editor-section textarea {
  min-height: 39px;
  padding: 9px 10px;
  border-color: #ccd7e5;
  border-radius: 5px;
  color: #17243a;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
}

.editor-fields textarea,
.product-editor-form > .editor-section textarea {
  min-height: 92px;
}

.editor-fields .editor-large-textarea {
  min-height: 160px;
}

.field-span {
  grid-column: 1 / -1;
}

.editor-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.list-textarea {
  width: 100%;
  min-height: 170px;
  font-family: inherit;
  line-height: 1.6;
}

.license-price-editor {
  display: grid;
  border: 1px solid #dce4ee;
  border-radius: 5px;
  overflow: hidden;
}

.license-price-editor > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 9px 11px;
  border-bottom: 1px solid #e4e9f0;
}

.license-price-editor > label:last-child {
  border-bottom: 0;
}

.license-price-editor > label > span:first-child {
  display: grid;
  gap: 3px;
}

.license-price-editor strong {
  color: #17243a;
  font-size: 12px;
}

.license-price-editor small {
  color: #748298;
  font-size: 10px;
}

.money-input {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  border: 1px solid #ccd7e5;
  border-radius: 5px;
  overflow: hidden;
}

.money-input i {
  display: grid;
  place-items: center;
  height: 38px;
  color: #68778c;
  background: #f5f7fa;
  border-right: 1px solid #ccd7e5;
  font-size: 12px;
  font-style: normal;
}

.money-input input {
  min-height: 38px;
  padding: 8px;
  border: 0;
  border-radius: 0;
}

.checkbox-field {
  display: flex !important;
  grid-column: 1 / -1;
  grid-template-columns: none;
  align-items: center !important;
  gap: 8px !important;
  min-height: 39px;
  color: #243249;
  font-size: 11px;
  font-weight: 650;
}

.checkbox-field input {
  width: 17px;
  height: 17px;
  min-height: 17px;
  padding: 0;
  accent-color: #1769ff;
}

.product-editor-actions {
  position: sticky;
  z-index: 10;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #dce4ee;
  backdrop-filter: blur(12px);
}

.product-editor-actions > span {
  color: #77869b;
  font-size: 10px;
}

.product-editor-actions .button {
  min-width: 132px;
  gap: 7px;
}

.product-intelligence {
  position: sticky;
  top: 77px;
  display: grid;
  gap: 14px;
}

.analysis-panel,
.intelligence-empty,
.seo-preview-panel {
  overflow: hidden;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
}

.analysis-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid #e4e9f0;
}

.analysis-heading small {
  display: block;
  margin-bottom: 4px;
  color: #748298;
  font-size: 10px;
}

.analysis-heading h2 {
  font-size: 18px;
}

.analysis-heading > span {
  padding: 4px 6px;
  border-radius: 4px;
  color: #08785f;
  background: #e0f6ef;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.analysis-facts {
  display: grid;
  margin: 0;
  padding: 10px 15px;
}

.analysis-facts > div,
.settings-definition > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 6px 0;
}

.analysis-facts dt,
.settings-definition dt {
  color: #748298;
  font-size: 10px;
}

.analysis-facts dd,
.settings-definition dd {
  margin: 0;
  color: #1b293f;
  font-size: 10px;
  font-weight: 750;
  text-align: right;
}

.analysis-group {
  padding: 13px 15px;
  border-top: 1px solid #e4e9f0;
}

.analysis-group h3 {
  margin: 0 0 9px;
  color: #17243a;
  font-size: 11px;
}

.analysis-group ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-group li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #526176;
  font-size: 10px;
}

.analysis-group li .admin-icon {
  width: 14px;
  height: 14px;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.stack-list span {
  padding: 4px 6px;
  border-radius: 4px;
  color: #275a9e;
  background: #edf4ff;
  font-size: 9px;
  font-weight: 750;
}

.analysis-safety {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  color: #08785f;
  background: #effbf7;
  font-size: 10px;
  line-height: 1.4;
}

.intelligence-empty {
  display: grid;
  justify-items: center;
  padding: 32px 22px;
  text-align: center;
}

.intelligence-empty > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #1769ff;
  background: #edf4ff;
}

.intelligence-empty h2 {
  margin: 0 0 6px;
  color: #17243a;
  font-size: 15px;
}

.intelligence-empty p {
  margin: 0;
  color: #748298;
  font-size: 11px;
  line-height: 1.55;
}

.seo-preview-panel {
  padding: 15px;
}

.seo-preview {
  padding: 12px;
  border: 1px solid #dce4ee;
  border-radius: 5px;
  background: #fff;
}

.seo-preview small {
  display: block;
  margin-bottom: 5px;
  color: #16834f;
  font-size: 9px;
}

.seo-preview strong {
  display: block;
  margin-bottom: 5px;
  color: #174ea6;
  font-size: 12px;
  line-height: 1.35;
}

.seo-preview p {
  margin: 0;
  color: #536178;
  font-size: 10px;
  line-height: 1.45;
}

/* Settings and operations */
.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  overflow-x: auto;
  border-bottom: 1px solid #dce4ee;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.settings-tabs::-webkit-scrollbar {
  display: none;
}

.settings-tabs a {
  flex: 0 0 auto;
  padding: 10px 12px;
  color: #66758a;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 750;
}

.settings-tabs a.active {
  color: #1769ff;
  border-bottom-color: #1769ff;
}

.admin-inline-notice {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #f5d999;
  border-radius: 5px;
  color: #8c5c00;
  background: #fff9e9;
  font-size: 11px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  align-items: start;
  gap: 14px;
}

.settings-form,
.settings-status-panel {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.settings-form .button {
  justify-self: start;
}

.provider-status {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-top: 1px solid #e4e9f0;
}

.provider-status > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1769ff;
  background: #edf4ff;
}

.provider-status > div {
  display: grid;
  gap: 2px;
}

.provider-status strong,
.settings-stat-row strong {
  color: #17243a;
  font-size: 11px;
}

.provider-status small,
.settings-stat-row span {
  color: #748298;
  font-size: 10px;
}

.provider-status em {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

.provider-status .configured {
  color: #08785f;
  background: #e0f6ef;
}

.provider-status .needs-config {
  color: #9b6500;
  background: #fff1cc;
}

.settings-status-panel > p {
  margin: 0;
  color: #748298;
  font-size: 10px;
  line-height: 1.5;
}

.settings-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #e4e9f0;
}

.settings-stat-row strong {
  max-width: 65%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-meter {
  display: grid;
  gap: 8px;
}

.storage-meter > span {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6ebf2;
}

.storage-meter b {
  display: block;
  min-width: 3px;
  height: 100%;
  background: #1769ff;
}

.storage-meter strong {
  color: #17243a;
  font-size: 12px;
}

.settings-definition {
  margin: 0;
}

.settings-check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.settings-check-list li {
  color: #526176;
  font-size: 11px;
}

.settings-check-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 4px;
  margin: 0 8px 3px 2px;
  border-left: 2px solid #0a9875;
  border-bottom: 2px solid #0a9875;
  transform: rotate(-45deg);
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.health-check {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
}

.health-check > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #078768;
  background: #e5f7f1;
}

.health-check.unhealthy > span {
  color: #c2412f;
  background: #fee8e4;
}

.health-check > div {
  display: grid;
  gap: 3px;
}

.health-check small {
  color: #748298;
  font-size: 10px;
}

.health-check strong {
  color: #122036;
  font-size: 14px;
}

.health-check p {
  margin: 2px 0 0;
  overflow: hidden;
  color: #8592a4;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.environment-table {
  overflow: hidden;
}

.support-workspace {
  display: grid;
  gap: 10px;
}

.support-workspace .support-admin {
  margin: 0;
  border-radius: 6px;
  box-shadow: none;
}

.admin-empty-state {
  display: grid;
  justify-items: center;
  padding: 48px 22px;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

.admin-empty-state .admin-icon {
  width: 34px;
  height: 34px;
  color: #1769ff;
}

.admin-empty-state h2 {
  margin: 12px 0 5px;
  color: #17243a;
  font-size: 16px;
}

.admin-empty-state p {
  margin: 0;
  color: #748298;
  font-size: 12px;
}

.checkout-provider {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .admin-chart-grid,
  .admin-data-grid {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-publisher {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

@media (max-width: 920px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    width: 234px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .admin-menu-open .admin-sidebar {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(4, 17, 35, 0.26);
  }

  .admin-menu-button {
    display: grid;
  }

  .admin-topbar {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    padding: 10px 16px;
  }

  .product-publisher,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .product-intelligence {
    position: static;
  }
}

@media (max-width: 680px) {
  .purchase-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .purchase-actions .button {
    font-size: 13px;
  }

  .admin-topbar {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .admin-search {
    display: none;
  }

  .admin-top-actions {
    gap: 8px;
  }

  .admin-top-actions > a:first-child,
  .admin-icon-link {
    display: none;
  }

  .admin-main {
    padding: 18px 14px 28px;
  }

  .admin-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-heading .button {
    align-self: flex-start;
  }

  .admin-kpi-grid,
  .operations-strip,
  .report-tables,
  .health-grid {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-kpi {
    grid-template-columns: 34px 1fr;
    padding: 12px;
  }

  .admin-kpi-icon {
    width: 32px;
    height: 32px;
  }

  .admin-kpi strong {
    font-size: 18px;
  }

  .admin-kpi small em {
    display: none;
  }

  .donut-layout {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .donut-chart {
    width: 130px;
  }

  .editor-fields.two-columns,
  .editor-split {
    grid-template-columns: 1fr;
  }

  .field-span {
    grid-column: auto;
  }

  .package-upload-heading {
    align-items: flex-start;
  }

  .package-upload-heading > span {
    display: none;
  }

  .package-upload-status {
    align-items: stretch;
    flex-direction: column;
  }

  .product-editor-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-editor-actions > span {
    display: none;
  }

  .product-editor-actions .button {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .purchase-actions {
    grid-template-columns: 1fr;
  }

  .license-option {
    grid-template-columns: auto 1fr;
  }

  .license-option em {
    grid-column: 2;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Marketplace experience */
:root {
  --blue: var(--brand-primary, #1769ff);
  --cyan: var(--brand-accent, #08a88a);
  --ink: var(--brand-nav, #061226);
  --soft: var(--brand-background, #f3f7fc);
}

body {
  background: var(--soft);
}

.site-header {
  background: color-mix(in srgb, var(--brand-nav, #061226) 96%, transparent);
}

.brand-mark.has-logo {
  width: auto;
  min-width: 34px;
  height: auto;
  max-width: 220px;
}

.brand-mark.has-logo img {
  display: block;
  width: auto;
  max-width: 220px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 44px;
  min-height: 540px;
  padding: 64px max(30px, calc((100vw - 1380px) / 2));
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(118deg, color-mix(in srgb, var(--brand-nav, #061226) 98%, #000), #0a2348 58%, #063c48);
}

.market-hero-copy {
  position: relative;
  z-index: 2;
}

.market-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-accent, #08a88a);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.market-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: 48px;
  line-height: 1.02;
  font-weight: 870;
  letter-spacing: 0;
}

.market-hero-copy > p {
  max-width: 720px;
  margin: 20px 0 26px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.6;
}

.hero-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  padding: 7px 7px 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.hero-search .icon-search::before {
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-search .icon-search::after {
  background: rgba(255, 255, 255, 0.8);
}

.market-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.market-proof span {
  display: grid;
  gap: 2px;
}

.market-proof strong {
  color: #fff;
  font-size: 14px;
}

.market-hero-visual {
  position: relative;
  min-height: 410px;
  perspective: 1200px;
}

.interface-window {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(4, 17, 36, 0.9);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.window-main {
  inset: 18px 0 54px 26px;
  transform: rotateY(-7deg) rotateX(2deg);
}

.window-side {
  right: -20px;
  bottom: 0;
  width: 250px;
  padding: 46px 20px 20px;
  transform: translateZ(30px);
}

.window-bar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b6b;
}

.window-bar i:nth-child(2) {
  background: #f5b62f;
}

.window-bar i:nth-child(3) {
  background: var(--brand-accent, #08a88a);
}

.window-bar span {
  margin-left: 8px;
}

.window-code {
  display: grid;
  gap: 22px;
  padding: 74px 34px 34px;
}

.window-code > b,
.window-side > strong {
  color: #fff;
  font-size: 17px;
}

.window-code code {
  display: block;
  border-left: 2px solid var(--brand-primary, #1769ff);
  padding: 16px 18px;
  color: #9ec6ff;
  font-size: 15px;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.04);
}

.window-code code span {
  color: #fff;
}

.window-code code em {
  color: #57e6c7;
  font-style: normal;
}

.deploy-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.deploy-meter span {
  display: block;
  width: 86%;
  height: 100%;
  background: var(--brand-accent, #08a88a);
  animation: deployPulse 2.6s ease-in-out infinite alternate;
}

@keyframes deployPulse {
  from { width: 68%; }
  to { width: 92%; }
}

.flow-node {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.flow-node.active {
  border-color: var(--brand-accent, #08a88a);
  color: #fff;
}

.flow-line {
  width: 1px;
  height: 14px;
  margin-left: 16px;
  background: rgba(255, 255, 255, 0.22);
}

.category-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(155px, 1fr);
  gap: 1px;
  max-width: 1380px;
  margin: -28px auto 0;
  padding: 0 30px;
  overflow-x: auto;
  position: relative;
  z-index: 3;
}

.category-rail a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 15px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.category-rail a:first-child {
  border-radius: 7px 0 0 7px;
}

.category-rail a:last-child {
  border-radius: 0 7px 7px 0;
}

.category-rail a.active,
.category-rail a:hover {
  color: var(--brand-primary, #1769ff);
  border-color: color-mix(in srgb, var(--brand-primary, #1769ff) 35%, var(--line));
}

.category-rail strong {
  color: inherit;
}

.category-rail span {
  align-self: flex-start;
  color: var(--muted);
}

.market-catalog,
.delivery-band,
.market-search-cta,
.cart-recommendations {
  max-width: 1380px;
  margin: 0 auto;
  padding: 72px 30px;
}

.market-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.market-section-heading h2,
.market-search-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
}

.market-section-heading p {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.catalog-controls {
  display: flex;
  align-items: end;
  gap: 9px;
}

.catalog-controls label {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.market-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card .media {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media:has(img)::before,
.media:has(img) > i,
.media:has(img) > b,
.media:has(img) > em {
  display: none;
}

.product-category-label {
  color: var(--brand-primary, #1769ff);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.delivery-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: 0;
}

.delivery-band > div {
  min-height: 188px;
  padding: 28px;
  border: 1px solid #cbd7e6;
  background: #fff;
}

.delivery-band > div:first-child {
  border-radius: 7px 0 0 7px;
  background: var(--brand-nav, #061226);
  color: #fff;
}

.delivery-band > div:last-child {
  border-radius: 0 7px 7px 0;
}

.delivery-band strong {
  display: block;
  margin-bottom: 10px;
  color: inherit;
  font-size: 17px;
}

.delivery-band p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.delivery-band > div:first-child p {
  color: rgba(255, 255, 255, 0.65);
}

.market-search-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 54px;
  border-top: 1px solid var(--line);
}

/* Cart and checkout */
.checkout-progress {
  display: grid;
  grid-template-columns: auto minmax(40px, 150px) auto minmax(40px, 150px) auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 30px 0;
}

.checkout-progress span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.checkout-progress span b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.checkout-progress span.active {
  color: var(--brand-primary, #1769ff);
}

.checkout-progress span.active b {
  border-color: var(--brand-primary, #1769ff);
  background: var(--brand-primary, #1769ff);
  color: #fff;
}

.checkout-progress i {
  height: 1px;
  background: var(--line);
}

.cart-layout {
  max-width: 1180px;
  padding-top: 28px;
}

.cart-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.cart-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
}

.cart-heading > strong {
  color: var(--muted);
  font-size: 13px;
}

.cart-product-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto auto;
  gap: 18px;
  min-height: 112px;
}

.cart-item-copy a {
  color: var(--ink);
  font-weight: 850;
}

.cart-item-copy small {
  margin-top: 5px;
}

.cart-summary {
  position: sticky;
  top: 88px;
  align-self: start;
  display: block;
}

.cart-summary h2 {
  margin-top: 4px;
}

.cart-summary dl {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.cart-summary dl > div,
.checkout-summary form > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cart-summary dt,
.cart-summary dd {
  margin: 0;
  font-size: 13px;
}

.cart-summary dd {
  max-width: 160px;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.cart-summary .discount-row dd {
  color: var(--success);
}

.cart-summary .summary-total,
.checkout-summary form > .summary-total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.coupon-form {
  margin-bottom: 14px;
}

.coupon-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cart-summary > .button {
  width: 100%;
  margin-top: 8px;
}

.summary-assurance {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.summary-assurance p {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.summary-assurance strong {
  color: var(--ink);
}

.cart-recommendations {
  padding-top: 12px;
}

/* Customer workspace */
.dashboard-shell {
  grid-template-columns: 210px minmax(0, 1fr);
  max-width: 1380px;
}

.dashboard-content {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.account-dashboard-heading h1 {
  margin: 0 0 7px;
  font-size: 34px;
}

.account-dashboard-heading p {
  margin: 0;
  color: var(--muted);
}

.account-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.account-kpi-grid a {
  display: grid;
  gap: 5px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.account-kpi-grid span,
.account-kpi-grid small {
  color: var(--muted);
  font-size: 12px;
}

.account-kpi-grid strong {
  color: var(--ink);
  font-size: 26px;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: 16px;
}

.account-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.account-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.account-panel-heading h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.account-panel-heading p,
.account-panel-heading a {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.account-panel-heading a {
  color: var(--brand-primary, #1769ff);
  font-weight: 800;
}

.account-list > a,
.account-download-list > div,
.account-ticket-list > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.account-ticket-list > a {
  grid-template-columns: minmax(0, 1fr) auto;
}

.account-list > a:last-child,
.account-download-list > div:last-child,
.account-ticket-list > a:last-child {
  border-bottom: 0;
}

.account-list-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--brand-primary, #1769ff);
  background: #eaf2ff;
  font-size: 10px;
  font-weight: 850;
}

.account-list div,
.account-download-list div > div,
.account-ticket-list div {
  display: grid;
  gap: 3px;
}

.account-list strong,
.account-download-list strong,
.account-ticket-list strong {
  color: var(--ink);
  font-size: 13px;
}

.account-list small,
.account-download-list small,
.account-ticket-list small {
  color: var(--muted);
  font-size: 11px;
}

.account-list b {
  color: var(--ink);
  font-size: 13px;
}

.license-health-list > a {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.license-health-list > a > div {
  display: grid;
  gap: 3px;
}

.license-health-list strong {
  color: var(--ink);
  font-size: 13px;
}

.license-health-list small {
  color: var(--muted);
  font-size: 11px;
}

.license-health-list > a > span {
  display: grid;
  gap: 5px;
}

.license-health-list i {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e7edf5;
}

.license-health-list i b {
  display: block;
  height: 100%;
  background: var(--brand-accent, #08a88a);
}

.license-health-list em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.account-empty {
  display: grid;
  gap: 4px;
  padding: 24px 18px;
  color: var(--muted);
  font-size: 12px;
}

.account-empty strong {
  color: var(--ink);
}

.account-support-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 22px;
  border-radius: 7px;
  color: #fff;
  background: var(--brand-nav, #061226);
}

.account-support-cta > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-support-cta strong {
  font-size: 15px;
}

.account-support-cta p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

/* QR checkout */
.qr-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 50px 30px;
}

.qr-payment-card,
.qr-proof-panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 26px;
  background: #fff;
}

.qr-payment-card h1 {
  margin: 0 0 12px;
  color: var(--ink);
}

.qr-payment-card > p,
.qr-proof-panel > p {
  color: var(--muted);
  line-height: 1.55;
}

.qr-image-wrap {
  display: grid;
  place-items: center;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.qr-image-wrap img {
  display: block;
  width: min(100%, 330px);
  max-height: 330px;
  object-fit: contain;
}

.qr-payment-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.qr-payment-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.qr-payment-card dt {
  color: var(--muted);
}

.qr-payment-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

/* Ads */
.ad-placement {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px;
  color: #fff;
  background: var(--brand-primary, #1769ff);
  font-size: 12px;
}

.ad-provider-slot {
  display: block;
  max-width: 1320px;
  min-height: 90px;
  margin: 18px auto;
  padding: 8px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.ad-placement > div {
  display: grid;
  gap: 2px;
}

.ad-placement img {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  object-fit: cover;
}

.ad-placement code {
  padding: 5px 8px;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  color: #fff;
}

.ad-placement > a {
  font-weight: 850;
  text-decoration: underline;
}

.ad-store_after_hero,
.ad-store_mid_catalog,
.ad-account_banner,
.ad-product_sidebar {
  max-width: 1320px;
  margin: 20px auto;
  border-radius: 7px;
}

.ad-product_sidebar {
  margin: 14px 0 0;
}

.ad-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: none;
  width: min(420px, calc(100vw - 28px));
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  box-shadow: 0 24px 70px rgba(4, 17, 36, 0.32);
}

.ad-popup.is-visible {
  display: flex;
}

.ad-close {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 20px;
}

/* Expanded admin workflows */
.admin-split-workspace,
.proof-review-list {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
}

.proof-review-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-review-card {
  overflow: hidden;
}

.proof-review-meta,
.proof-review-body,
.proof-review-actions {
  padding: 18px;
}

.proof-review-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.proof-review-meta h2 {
  margin: 8px 0 3px;
  font-size: 17px;
}

.proof-review-meta p,
.proof-review-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.proof-file-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.proof-file-link > span {
  display: grid;
  gap: 3px;
}

.proof-file-link small {
  color: var(--muted);
}

.proof-review-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.proof-review-actions label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.brand-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.brand-color-grid input[type="color"] {
  height: 50px;
  padding: 4px;
}

.brand-preview > div {
  display: grid;
  place-items: center;
  min-height: 100px;
  margin: 12px 0;
  border-radius: 6px;
}

.brand-preview img {
  max-width: 220px;
  max-height: 70px;
  object-fit: contain;
}

.brand-preview span {
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.license-api-guide {
  margin-top: 16px;
}

.license-api-guide pre,
.admin-inline-notice code {
  display: block;
  overflow-x: auto;
  margin: 12px 0 0;
  border-radius: 6px;
  padding: 14px;
  color: #c9e3ff;
  background: #061226;
  white-space: pre-wrap;
}

/* Package intelligence */
.analysis-stage-track {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.analysis-stage-track span {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #7c899a;
  font-size: 9px;
  font-weight: 800;
}

.analysis-stage-track span b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: #a7b2c0;
}

.analysis-stage-track span.complete b,
.analysis-stage-track span.active b {
  background: #08a88a;
}

.analysis-stage-track i {
  height: 2px;
  background: #a7ddcf;
}

.package-intelligence-panel .analysis-heading > span {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.package-intelligence-panel .analysis-heading > span strong {
  font-size: 25px;
}

.bundle-count-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0;
}

.bundle-count-grid > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #dce4ee;
  border-radius: 5px;
  background: #f8fbff;
}

.bundle-count-grid strong {
  color: #17243a;
  font-size: 17px;
}

.bundle-count-grid span {
  color: #718097;
  font-size: 9px;
}

.analysis-quality-grid {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.analysis-quality-grid > div {
  display: grid;
  gap: 5px;
}

.analysis-quality-grid span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 10px;
}

.analysis-quality-grid em {
  font-style: normal;
}

.analysis-quality-grid i {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #e6ebf2;
}

.analysis-quality-grid i b {
  display: block;
  height: 100%;
  background: #1769ff;
}

.package-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.package-media-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce4ee;
  border-radius: 5px;
  background: #fff;
}

.package-media-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef3f9;
}

.package-media-grid figcaption {
  display: grid;
  gap: 2px;
  padding: 7px;
  min-width: 0;
}

.package-media-grid figcaption strong {
  overflow: hidden;
  color: #17243a;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-media-grid figcaption span {
  color: #8290a2;
  font-size: 8px;
}

.package-file-groups {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}

.package-file-groups details {
  border: 1px solid #dce4ee;
  border-radius: 5px;
}

.package-file-groups summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  color: #35435a;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.package-file-groups ul {
  max-height: 130px;
  overflow: auto;
  margin: 0;
  padding: 0 10px 10px 26px;
  color: #718097;
  font-size: 9px;
}

@media (max-width: 1180px) {
  .market-hero {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .market-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .account-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-split-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .market-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .market-hero-visual {
    min-height: 330px;
  }

  .window-main {
    left: 0;
  }

  .category-rail {
    margin-top: -18px;
  }

  .market-section-heading,
  .account-dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-band {
    grid-template-columns: 1fr;
  }

  .delivery-band > div,
  .delivery-band > div:first-child,
  .delivery-band > div:last-child {
    min-height: 0;
    border-radius: 0;
  }

  .delivery-band > div:first-child {
    border-radius: 7px 7px 0 0;
  }

  .delivery-band > div:last-child {
    border-radius: 0 0 7px 7px;
  }

  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .qr-checkout {
    grid-template-columns: 1fr;
  }

  .proof-review-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .market-hero {
    gap: 24px;
    padding: 38px 18px 46px;
  }

  .market-hero h1 {
    font-size: 31px;
  }

  .market-hero-copy > p {
    font-size: 15px;
  }

  .hero-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-search .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .market-hero-visual {
    min-height: 280px;
  }

  .window-main {
    inset: 0 0 30px;
    transform: none;
  }

  .window-side {
    right: -8px;
    width: 190px;
    padding: 42px 12px 12px;
  }

  .window-code {
    padding: 58px 18px 20px;
  }

  .window-code code {
    font-size: 12px;
  }

  .category-rail {
    padding: 0 18px;
  }

  .market-catalog,
  .delivery-band,
  .market-search-cta,
  .cart-recommendations {
    padding-left: 18px;
    padding-right: 18px;
  }

  .catalog-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .catalog-controls label {
    min-width: 0;
  }

  .catalog-controls .button {
    grid-column: 1 / -1;
  }

  .market-product-grid {
    grid-template-columns: 1fr;
  }

  .market-search-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-progress {
    grid-template-columns: auto 1fr auto 1fr auto;
    padding: 24px 18px 0;
  }

  .checkout-progress span {
    font-size: 0;
  }

  .cart-product-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .cart-product-row .media.mini {
    width: 64px;
  }

  .cart-product-row form {
    grid-column: 2;
  }

  .account-kpi-grid {
    grid-template-columns: 1fr;
  }

  .account-list > a {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .account-list b {
    grid-column: 2;
  }

  .account-support-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .account-support-cta > div {
    align-items: flex-start;
  }

  .qr-checkout {
    padding: 28px 18px;
  }

  .proof-review-actions {
    grid-template-columns: 1fr;
  }

  .brand-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bundle-count-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-media-grid {
    grid-template-columns: 1fr;
  }

  .analysis-stage-track span {
    font-size: 0;
  }
}

/* Customer experience */
.site-header {
  isolation: isolate;
  min-height: 60px;
  padding: 10px max(20px, calc((100vw - 1440px) / 2));
  gap: 20px;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle at var(--mx) var(--my), color-mix(in srgb, var(--brand-accent, #08a88a) 34%, transparent) 0, transparent 24%),
    radial-gradient(circle at calc(100% - var(--mx)) 0, color-mix(in srgb, var(--brand-primary, #1769ff) 24%, transparent) 0, transparent 30%);
  transition: opacity 180ms ease;
}

.site-header:hover::before {
  opacity: 0.85;
}

.main-nav,
.header-actions {
  gap: 10px;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 5px;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-header .icon-button,
.site-header .cart-button {
  min-height: 36px;
  height: 36px;
}

.site-header .icon-button {
  width: 36px;
}

.site-header .cart-button {
  padding: 0 12px;
}

.header-sign-in {
  padding: 8px 4px;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 3px 7px 3px 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary:hover,
.account-menu[open] summary {
  border-color: rgba(20, 215, 200, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.header-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  color: #05243a;
  background: #a8f3ea;
  font-size: 10px;
  font-weight: 850;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu-name {
  max-width: 110px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu summary i {
  width: 7px;
  height: 7px;
  margin: -3px 2px 0 1px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.account-menu[open] summary i {
  margin-top: 3px;
  transform: rotate(225deg);
}

.account-menu > nav {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 50;
  display: grid;
  width: 238px;
  padding: 7px;
  border: 1px solid #d8e0eb;
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 18px 45px rgba(6, 18, 38, 0.2);
}

.account-menu > nav::before {
  position: absolute;
  top: -5px;
  right: 18px;
  width: 9px;
  height: 9px;
  border-top: 1px solid #d8e0eb;
  border-left: 1px solid #d8e0eb;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.account-menu > nav > div {
  display: grid;
  gap: 2px;
  padding: 10px 10px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.account-menu > nav strong,
.account-menu > nav small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu > nav strong {
  color: var(--ink);
  font-size: 13px;
}

.account-menu > nav small {
  color: var(--muted);
  font-size: 11px;
}

.account-menu > nav a {
  padding: 9px 10px;
  border-radius: 5px;
  color: #2f4056;
  font-size: 13px;
  font-weight: 650;
}

.account-menu > nav a:hover {
  color: var(--ink);
  background: #f0f5fa;
}

.account-menu > nav .account-menu-signout {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 5px 5px;
  color: #9f2d20;
}

.button-secondary {
  border-color: #ccd7e5;
  color: #24364d;
  background: #fff;
}

.market-hero h1 {
  font-size: 48px;
  line-height: 1.08;
}

.account-body {
  background: #f6f8fb;
}

.account-body .ambient {
  opacity: 0.28;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(20, 215, 200, 0.16), transparent 26%),
    radial-gradient(circle at calc(100% - var(--mx)) 25%, rgba(11, 92, 255, 0.1), transparent 30%);
}

.account-body main {
  min-height: calc(100vh - 260px);
}

.account-body main > .notice {
  max-width: 1280px;
  margin: 16px auto 0;
}

.account-workspace {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.account-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 24px;
}

.account-profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  border: 1px solid #cbd8e7;
  border-radius: 7px;
  color: #064a52;
  background: #d8faf5;
  font-size: 18px;
  font-weight: 850;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-profile-identity > div {
  min-width: 0;
}

.account-profile-identity h1 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.2;
}

.account-profile-identity p,
.account-profile-identity small {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-identity small {
  margin-top: 3px;
  color: #7d8ca1;
  font-size: 11px;
}

.account-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  padding: 0 4px;
  border-bottom: 1px solid #cfd9e6;
  scrollbar-width: thin;
}

.account-tabs a {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 15px 13px;
  color: #617087;
  font-size: 13px;
  font-weight: 720;
}

.account-tabs a::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: transparent;
  content: "";
}

.account-tabs a:hover {
  color: var(--ink);
}

.account-tabs a.active {
  color: var(--brand-primary, #1769ff);
}

.account-tabs a.active::after {
  background: var(--brand-primary, #1769ff);
}

.account-content {
  min-width: 0;
  padding-top: 28px;
}

.account-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.account-page-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.account-page-heading p {
  max-width: 680px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.account-page-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.account-dashboard-heading {
  align-items: center;
}

.account-dashboard-heading h1,
.account-dashboard-heading h2 {
  margin: 0 0 7px;
  font-size: 25px;
}

.account-dashboard-heading .market-eyebrow {
  margin-bottom: 5px;
}

.account-kpi-grid a {
  min-height: 104px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(38, 56, 80, 0.04);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.account-kpi-grid a:hover {
  border-color: #aabbd0;
  box-shadow: 0 12px 24px rgba(38, 56, 80, 0.08);
  transform: translateY(-2px);
}

.account-kpi-grid strong {
  font-size: 23px;
}

.account-panel {
  box-shadow: 0 8px 24px rgba(38, 56, 80, 0.045);
}

.download-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px auto;
  gap: 8px;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.download-toolbar label {
  margin: 0;
}

.download-toolbar input,
.download-toolbar select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #ced8e5;
  border-radius: 5px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
}

.download-search {
  position: relative;
  display: block;
}

.download-search .icon-search {
  position: absolute;
  top: 11px;
  left: 12px;
  z-index: 1;
  color: var(--muted);
}

.download-search input {
  padding-left: 38px;
}

.download-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 18px;
  align-items: start;
}

.purchase-download-list {
  min-width: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(38, 56, 80, 0.05);
}

.purchase-download-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 178px;
  gap: 18px;
  min-height: 206px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.purchase-download-item:last-child {
  border-bottom: 0;
}

.has-js .purchase-download-item[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.has-js .purchase-download-item[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.download-thumbnail {
  display: block;
  width: 116px;
  height: 88px;
  overflow: hidden;
  border: 1px solid #d5dfeb;
  border-radius: 6px;
  background: #eef4fa;
}

.download-thumbnail > img,
.download-thumbnail > .media {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.download-thumbnail > .media {
  border: 0;
  border-radius: 0;
}

.download-thumbnail .media > span {
  max-width: 94px;
  font-size: 9px;
}

.download-item-main {
  min-width: 0;
}

.download-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.download-item-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.download-item-heading a {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-item-heading > div > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-expired {
  color: #8a4b08;
  background: #fff4dc;
}

.download-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 16px 0 12px;
}

.download-meta > div {
  min-width: 0;
}

.download-meta dt,
.download-meta dd {
  margin: 0;
}

.download-meta dt {
  margin-bottom: 2px;
  color: #8491a3;
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}

.download-meta dd {
  overflow: hidden;
  color: #2f4056;
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-meta dd small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.purchase-code {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  padding: 7px 9px;
  border: 1px solid #d7e0eb;
  border-radius: 5px;
  background: #f7f9fc;
}

.purchase-code span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.purchase-code code {
  overflow: hidden;
  color: #20324a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-code button {
  padding: 2px 3px;
  border: 0;
  color: var(--brand-primary, #1769ff);
  background: transparent;
  font-size: 11px;
  font-weight: 760;
}

.purchase-code button.is-copied {
  color: var(--success);
}

.update-preference {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
}

.update-preference label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #3e4e63;
  font-size: 11px;
  cursor: pointer;
}

.update-preference input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand-primary, #1769ff);
}

.update-preference small {
  color: #8794a6;
  font-size: 10px;
}

.update-preference.is-saving {
  opacity: 0.6;
}

.download-item-actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.download-item-actions > .button {
  width: 100%;
}

.download-button.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.download-review-form {
  display: grid;
  gap: 6px;
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.review-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.review-form-heading .link-button {
  font-size: 11px;
}

.review-state {
  padding: 3px 6px;
  border-radius: 4px;
  color: #7b5a00;
  background: #fff5cf;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-state.status-published {
  color: #05634f;
  background: #dff7ef;
}

.star-rating {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
  min-height: 24px;
}

.star-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.star-rating label {
  color: #cbd3de;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 120ms ease, transform 120ms ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #efad1f;
}

.star-rating label:hover {
  transform: translateY(-1px);
}

.review-fields {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  width: min(430px, calc(100% - 36px));
  gap: 10px;
  padding: 16px;
  border: 1px solid #c7d4e3;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(6, 18, 38, 0.2);
}

.review-fields[hidden] {
  display: none;
}

.review-fields label {
  display: grid;
  gap: 5px;
  color: #34445a;
  font-size: 11px;
  font-weight: 730;
}

.review-fields input,
.review-fields textarea {
  width: 100%;
  border: 1px solid #cbd6e4;
  border-radius: 5px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
}

.review-fields textarea {
  min-height: 92px;
  resize: vertical;
}

.review-fields > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-side-rail {
  position: sticky;
  top: 82px;
  border-top: 3px solid var(--brand-accent, #08a88a);
  background: #fff;
  box-shadow: 0 10px 28px rgba(38, 56, 80, 0.05);
}

.download-side-rail section {
  padding: 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.download-side-rail h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.download-side-rail p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.download-side-rail a {
  display: inline-block;
  margin-top: 9px;
  color: var(--brand-primary, #1769ff);
  font-size: 11px;
  font-weight: 760;
}

.downloads-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 24px;
  text-align: center;
}

.downloads-empty h3,
.downloads-empty p {
  margin: 0;
}

.downloads-empty h3 {
  color: var(--ink);
  font-size: 17px;
}

.downloads-empty p {
  color: var(--muted);
  font-size: 12px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.profile-form > header,
.security-layout .account-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.profile-form header h3,
.security-layout header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.profile-form header p,
.security-layout header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.account-avatar-large {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  font-size: 21px;
}

.profile-avatar-editor label {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 12px;
}

.profile-avatar-editor label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.profile-avatar-editor input[type="file"] {
  max-width: 290px;
  margin-top: 5px;
  font-size: 11px;
}

.profile-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.profile-field-grid label,
.security-password-panel label {
  display: grid;
  gap: 6px;
  color: #34445a;
  font-size: 11px;
  font-weight: 730;
}

.profile-field-grid input,
.profile-field-grid select,
.security-password-panel input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #cbd6e4;
  border-radius: 5px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
}

.profile-field-grid input[readonly] {
  color: #65738a;
  background: #f3f6fa;
}

.profile-field-grid small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.profile-field-grid .field-span {
  grid-column: 1 / -1;
}

.profile-form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: #f9fbfd;
}

.profile-form > footer a,
.profile-account-summary > a {
  color: var(--brand-primary, #1769ff);
  font-size: 11px;
  font-weight: 750;
}

.profile-account-summary {
  padding: 18px;
  border-top: 3px solid var(--brand-accent, #08a88a);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.profile-account-summary h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
}

.profile-account-summary dl {
  margin: 0 0 14px;
}

.profile-account-summary dl > div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.profile-account-summary dt,
.profile-account-summary dd {
  margin: 0;
}

.profile-account-summary dt {
  color: var(--muted);
  font-size: 10px;
}

.profile-account-summary dd {
  color: #33445a;
  font-size: 12px;
  font-weight: 700;
}

.security-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.security-status-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
}

.security-status-strip > div:last-child {
  border-right: 0;
}

.security-status-strip p {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin: 0;
}

.security-status-strip strong,
.security-status-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-status-strip strong {
  color: var(--ink);
  font-size: 12px;
}

.security-status-strip small {
  color: var(--muted);
  font-size: 10px;
}

.security-status-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #e6edf6;
}

.security-status-icon::after {
  position: absolute;
  top: 5px;
  left: 8px;
  width: 5px;
  height: 8px;
  border-right: 2px solid #5d6f87;
  border-bottom: 2px solid #5d6f87;
  content: "";
  transform: rotate(45deg);
}

.security-status-icon.is-good {
  background: #d9f7ef;
}

.security-status-icon.is-good::after {
  border-color: #078267;
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 14px;
  align-items: start;
}

.security-password-panel {
  grid-row: span 2;
}

.security-password-panel > form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.security-password-panel > form > .button {
  justify-self: start;
  margin-top: 3px;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 54px;
}

.password-field button {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 44px;
  height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  color: var(--brand-primary, #1769ff);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.password-field button:hover {
  background: #edf3fb;
}

.password-strength {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: -7px;
}

.password-strength > span {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: #e2e8f0;
}

.password-strength > span::before {
  display: block;
  width: 0;
  height: 100%;
  background: #d14b3d;
  content: "";
  transition: width 180ms ease, background 180ms ease;
}

.password-strength[data-score="1"] > span::before {
  width: 25%;
}

.password-strength[data-score="2"] > span::before {
  width: 50%;
  background: #d49116;
}

.password-strength[data-score="3"] > span::before {
  width: 75%;
  background: #2b8f76;
}

.password-strength[data-score="4"] > span::before {
  width: 100%;
  background: #087c62;
}

.password-strength small {
  color: var(--muted);
  font-size: 9px;
}

.security-sessions-panel > header form {
  flex: 0 0 auto;
}

.security-session-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.security-session-row:last-child {
  border-bottom: 0;
}

.device-icon {
  position: relative;
  width: 30px;
  height: 24px;
  border: 2px solid #7690ae;
  border-radius: 3px;
}

.device-icon::after {
  position: absolute;
  right: -4px;
  bottom: -5px;
  left: -4px;
  height: 2px;
  border-radius: 1px;
  background: #7690ae;
  content: "";
}

.security-session-row > div,
.security-activity-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.security-session-row strong,
.security-activity-row strong {
  overflow: hidden;
  color: #304158;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-session-row small,
.security-activity-row small {
  color: var(--muted);
  font-size: 10px;
}

.security-session-row .link-button {
  font-size: 10px;
}

.security-activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 55px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.security-activity-row:last-child {
  border-bottom: 0;
}

.security-activity-row > span {
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-accent, #08a88a);
  box-shadow: 0 0 0 1px #8fcfc3;
}

@media (max-width: 1020px) {
  .download-toolbar {
    grid-template-columns: minmax(240px, 1fr) repeat(2, 165px) auto;
  }

  .download-workspace {
    grid-template-columns: 1fr;
  }

  .download-side-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }

  .download-side-rail section {
    border-top: 3px solid var(--brand-accent, #08a88a);
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
}

@media (max-width: 820px) {
  .account-workspace {
    width: min(100% - 28px, 1280px);
    padding-top: 24px;
  }

  .download-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-search {
    grid-column: 1 / -1;
  }

  .purchase-download-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .download-thumbnail {
    width: 96px;
    height: 76px;
  }

  .download-item-actions {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-item-actions > .download-button {
    grid-column: 1 / -1;
  }

  .download-review-form {
    grid-column: 1 / -1;
  }

  .profile-layout,
  .security-layout {
    grid-template-columns: 1fr;
  }

  .profile-account-summary {
    display: none;
  }

  .security-password-panel {
    grid-row: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 12px;
  }

  .main-nav {
    order: initial;
    grid-column: auto;
    overflow: visible;
    gap: 0;
    padding-bottom: 0;
  }

  .main-nav a {
    padding: 7px 8px;
    font-size: 12px;
  }

  .main-nav a:nth-child(n + 2) {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .account-menu-name {
    display: none;
  }

  .account-menu summary {
    padding-right: 4px;
  }

  .account-menu summary i {
    display: none;
  }

  .site-header .cart-button {
    width: 36px;
    padding: 0;
    font-size: 0;
  }

  .market-hero h1 {
    font-size: 31px;
  }

  .market-hero {
    gap: 16px;
    padding: 26px 18px 22px;
  }

  .market-hero-copy > p {
    margin: 14px 0 18px;
    font-size: 14px;
    line-height: 1.5;
  }

  .market-proof {
    gap: 12px 20px;
    margin-top: 14px;
  }

  .market-proof strong {
    font-size: 13px;
  }

  .market-hero-visual {
    min-height: 190px;
    max-height: 190px;
  }

  .window-main {
    inset: 0 0 18px;
  }

  .window-side {
    right: -5px;
    width: 160px;
    padding: 38px 9px 9px;
  }

  .window-code {
    gap: 8px;
    padding: 48px 13px 12px;
  }

  .window-code > b,
  .window-side > strong {
    font-size: 13px;
  }

  .window-code code {
    max-height: 84px;
    overflow: hidden;
    padding: 9px 10px;
    font-size: 9px;
    line-height: 1.5;
  }

  .flow-node {
    margin-top: 7px;
    padding: 6px;
    font-size: 9px;
  }

  .flow-line {
    height: 6px;
  }

  .category-rail {
    margin-top: -14px;
  }

  .account-profile-header {
    align-items: flex-start;
    padding-bottom: 18px;
  }

  .account-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 15px;
  }

  .account-profile-identity {
    gap: 11px;
  }

  .account-profile-identity h1 {
    font-size: 19px;
  }

  .account-profile-header > .button {
    width: 36px;
    min-width: 36px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .account-profile-header > .button::before {
    font-size: 16px;
    content: "\270E";
  }

  .account-profile-header > .account-security-shortcut::before {
    content: "\2699";
  }

  .account-tabs {
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px;
  }

  .account-tabs a {
    padding: 11px 12px 12px;
    font-size: 12px;
  }

  .account-content {
    padding-top: 22px;
  }

  .account-page-heading {
    align-items: flex-start;
  }

  .account-page-heading h2 {
    font-size: 21px;
  }

  .account-page-heading > span {
    display: none;
  }

  .download-toolbar {
    grid-template-columns: 1fr;
  }

  .download-search {
    grid-column: auto;
  }

  .purchase-download-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .download-thumbnail {
    width: 72px;
    height: 62px;
  }

  .download-item-heading {
    display: grid;
  }

  .download-item-heading .status-badge {
    justify-self: start;
  }

  .download-meta {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .download-meta > div:nth-child(n + 3) {
    display: none;
  }

  .purchase-code {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .purchase-code > span {
    grid-column: 1 / -1;
  }

  .update-preference {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-item-actions {
    grid-column: 1 / -1;
  }

  .review-fields {
    position: static;
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 6px;
    box-shadow: none;
  }

  .download-side-rail {
    grid-template-columns: 1fr;
  }

  .download-side-rail section:not(:first-child) {
    border-top: 0;
  }

  .profile-avatar-editor {
    align-items: flex-start;
  }

  .account-avatar-large {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .profile-field-grid {
    grid-template-columns: 1fr;
  }

  .profile-field-grid .field-span {
    grid-column: auto;
  }

  .security-status-strip {
    grid-template-columns: 1fr;
  }

  .security-status-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .security-status-strip > div:last-child {
    border-bottom: 0;
  }

  .security-session-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .security-session-row > form,
  .security-session-row > .status-badge {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::before,
  .has-js .purchase-download-item[data-reveal] {
    transition: none;
  }
}

.account-content > h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 24px;
}

.account-content > h2 {
  color: var(--ink);
  font-size: 17px;
}

.purchase-order-list,
.account-license-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(38, 56, 80, 0.05);
}

.purchase-order-row,
.account-license-list > article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
}

.purchase-order-row:last-child,
.account-license-list > article:last-child {
  border-bottom: 0;
}

.purchase-order-row:hover {
  background: #f8fbfe;
}

.purchase-order-row > div,
.account-license-list > article > div {
  display: grid;
  gap: 4px;
}

.purchase-order-row strong,
.account-license-list strong {
  color: var(--ink);
  font-size: 13px;
}

.purchase-order-row small,
.account-license-list small {
  color: var(--muted);
  font-size: 10px;
}

.purchase-order-row > b {
  color: var(--ink);
  font-size: 13px;
}

.purchase-order-row > i {
  width: 8px;
  height: 8px;
  border-top: 1px solid #8190a4;
  border-right: 1px solid #8190a4;
  transform: rotate(45deg);
}

@media (max-width: 680px) {
  .purchase-order-row,
  .account-license-list > article {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .purchase-order-row > b {
    grid-column: 2;
  }

  .purchase-order-row > i {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .account-license-list > article > .button {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

/* Admin operations and security hardening */
.account-menu > nav .account-menu-signout {
  padding: 4px 0 0;
}

.account-menu-signout button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 0 0 5px 5px;
  color: #9f2d20;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.account-menu-signout button:hover {
  background: #fff2f0;
}

.admin-page-heading h1 {
  font-size: 24px;
}

.admin-sidebar-footer {
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 7px;
  padding: 10px;
}

.admin-sidebar-user {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 3px;
  border-radius: 5px;
}

.admin-sidebar-user:hover {
  background: rgba(255, 255, 255, 0.07);
}

.admin-sidebar-user > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-sidebar-user strong,
.admin-sidebar-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-footer form {
  margin: 0;
}

.admin-signout {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: #a9bdd4;
  background: transparent;
  cursor: pointer;
}

.admin-signout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-period-switcher {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  background: #fff;
}

.admin-period-switcher a {
  min-width: 68px;
  padding: 8px 10px;
  border-right: 1px solid #dce4ee;
  color: #5d6d82;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.admin-period-switcher a:last-child {
  border-right: 0;
}

.admin-period-switcher a:hover {
  color: #0a1528;
  background: #f5f8fc;
}

.admin-period-switcher a.active {
  color: #fff;
  background: #1769ff;
}

.operations-strip {
  margin-bottom: 14px;
}

.operations-strip a {
  position: relative;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.operations-strip a:hover {
  border-color: #b9c8da;
  box-shadow: 0 8px 22px rgba(22, 38, 64, 0.07);
  transform: translateY(-1px);
}

.operations-strip a.needs-attention {
  border-color: #f1c989;
  box-shadow: inset 3px 0 #e69824;
}

.operations-strip a.is-clear > span {
  color: #078768;
  background: #e6f7f1;
}

.operations-strip em {
  padding: 4px 6px;
  border-radius: 4px;
  color: #77869a;
  background: #f0f3f7;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.operations-strip .needs-attention em {
  color: #8b5900;
  background: #fff0cf;
}

.admin-chart-interactive {
  position: relative;
}

.chart-revenue-area {
  fill: rgba(23, 105, 255, 0.075);
}

.chart-revenue-line,
.chart-order-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: admin-chart-draw 800ms ease-out forwards;
}

.chart-hit-zone {
  fill: transparent;
  cursor: crosshair;
}

.chart-hit-zone:focus {
  fill: rgba(23, 105, 255, 0.06);
  outline: none;
}

.chart-hover-line {
  stroke: #8090a6;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  pointer-events: none;
}

.admin-chart-tooltip {
  position: absolute;
  z-index: 3;
  top: 4px;
  display: grid;
  min-width: 126px;
  padding: 8px 10px;
  border: 1px solid #cbd6e3;
  border-radius: 5px;
  color: #fff;
  background: #0a1c33;
  box-shadow: 0 9px 24px rgba(6, 18, 38, 0.2);
  pointer-events: none;
  transform: translateX(-50%);
}

.admin-chart-tooltip[hidden] {
  display: none;
}

.admin-chart-tooltip strong {
  font-size: 11px;
}

.admin-chart-tooltip span {
  color: #b8c8db;
  font-size: 10px;
}

@keyframes admin-chart-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.admin-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  gap: 14px;
}

.admin-security-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #e5eaf1;
  border-bottom: 1px solid #e5eaf1;
  background: #f8fafc;
}

.admin-security-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px 15px;
  border-right: 1px solid #e5eaf1;
}

.admin-security-summary > div:last-child {
  border-right: 0;
}

.admin-security-summary span {
  color: #69788d;
  font-size: 10px;
}

.admin-security-summary strong {
  color: #142239;
  font-size: 15px;
}

.admin-security-summary .warning strong,
.admin-readiness-list .warning dd {
  color: #b44736;
}

.admin-activity-list {
  display: grid;
  padding: 4px 16px 10px;
}

.admin-activity-list > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f4;
}

.admin-activity-list > div:last-child {
  border-bottom: 0;
}

.activity-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #0ba68d;
  box-shadow: 0 0 0 3px #e3f6f2;
}

.admin-activity-list p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.admin-activity-list strong {
  color: #1c2a40;
  font-size: 11px;
}

.admin-activity-list small {
  color: #78879b;
  font-size: 10px;
}

.admin-muted-row {
  margin: 0;
  padding: 16px;
  color: #78879b;
  font-size: 12px;
}

.admin-readiness-list {
  margin: 0;
  padding: 0 16px 8px;
}

.admin-readiness-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #e7ebf1;
}

.admin-readiness-list dt {
  color: #526176;
  font-size: 11px;
}

.admin-readiness-list dd {
  margin: 0;
  color: #17243a;
  font-size: 12px;
  font-weight: 800;
}

.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px 16px 14px;
  border-top: 1px solid #e5eaf1;
}

.admin-quick-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #d5deea;
  border-radius: 5px;
  color: #34455d;
  background: #fff;
  font-size: 10px;
  font-weight: 750;
}

.admin-quick-actions a:hover {
  border-color: #9fb6d2;
  color: #1769ff;
  background: #f7faff;
}

.admin-quick-actions .admin-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.admin-search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-search-grid .admin-panel-heading > .admin-icon {
  color: #7a899d;
}

.admin-search-results {
  border-top: 1px solid #e5eaf1;
}

.admin-search-result {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 13px;
  border-bottom: 1px solid #e9edf2;
}

.admin-search-result:last-child {
  border-bottom: 0;
}

.admin-search-result:hover {
  background: #f7faff;
}

.admin-search-result > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1769ff;
  background: #eaf2ff;
}

.admin-search-result > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-search-result strong,
.admin-search-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-result strong {
  color: #17243a;
  font-size: 11px;
}

.admin-search-result small {
  color: #75849a;
  font-size: 10px;
}

.admin-search-result > b {
  color: #17243a;
  font-size: 11px;
}

.admin-audit-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px auto auto;
  align-items: end;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
}

.admin-audit-filters label {
  display: grid;
  gap: 5px;
  margin: 0;
}

.admin-audit-filters label > span {
  color: #5f6f84;
  font-size: 10px;
  font-weight: 750;
}

.admin-audit-filters input,
.admin-audit-filters select {
  min-height: 36px;
  font-size: 12px;
}

.admin-audit-filters > a {
  align-self: center;
  color: #65758a;
  font-size: 11px;
}

.admin-audit-list {
  overflow: hidden;
}

.admin-audit-event {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid #e8ecf2;
}

.admin-audit-event:last-child {
  border-bottom: 0;
}

.audit-event-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1769ff;
  background: #eaf2ff;
}

.audit-event-icon.security {
  color: #a64b20;
  background: #fff0de;
}

.admin-audit-event > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-audit-event > div > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-audit-event strong {
  color: #17243a;
  font-size: 11px;
}

.admin-audit-event time,
.admin-audit-event small {
  color: #7a899d;
  font-size: 10px;
}

.admin-audit-event p {
  margin: 0;
  color: #43536a;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .admin-insight-grid,
  .admin-search-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .admin-menu-open::after {
    position: fixed;
    z-index: 55;
    inset: 0;
    background: rgba(4, 17, 35, 0.38);
    content: "";
  }
}

@media (max-width: 680px) {
  .admin-dashboard-heading {
    gap: 12px;
  }

  .admin-period-switcher {
    align-self: flex-start;
    width: 100%;
  }

  .admin-period-switcher a {
    flex: 1;
    min-width: 0;
  }

  .operations-strip a {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .admin-security-summary {
    grid-template-columns: 1fr;
  }

  .admin-security-summary > div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #e5eaf1;
  }

  .admin-security-summary > div:last-child {
    border-bottom: 0;
  }

  .admin-audit-filters {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-audit-filters > a {
    justify-self: start;
  }

  .admin-audit-event > div > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .admin-chart-tooltip {
    min-width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chart-revenue-line,
  .chart-order-line {
    animation: none;
    stroke-dashoffset: 0;
  }

  .operations-strip a {
    transition: none;
  }
}
