/* Lotus web UI. Shared tokens, responsive layouts and explicit component states. */
:root {
  color-scheme: light;
  --ink: #22252b;
  --muted: #666b75;
  --line: #e0e2e6;
  --surface: #fff;
  --canvas: #f6f7f9;
  --accent: #a12d62;
  --accent-soft: #f7eaf0;
  --lotus-200: #98315e;
  --lotus-400: #a12d62;
  --lotus-900: #fff;
  --radius: 10px;
}
.price-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin: 24px 0;
}
.price-filters label {
  flex: 1 1 135px;
  min-width: 0;
}
.price-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.price-detail {
  min-width: 0;
}
.price-detail .section-heading {
  margin-top: 0;
}
.price-detail .stat strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.price-detail #prices-charts {
  display: grid;
  gap: 20px;
}
.price-items {
  display: grid;
  gap: 6px;
  max-height: 580px;
  overflow-y: auto;
  margin: 16px 0;
}
.price-item {
  width: 100%;
  display: grid;
  gap: 3px;
  text-align: left;
  padding: 12px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
}
.price-item:hover,
.price-item.active {
  background: var(--accent-soft);
  border-color: #d7afc1;
}
.price-item small {
  color: var(--muted);
}
.price-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.price-chart text {
  fill: var(--muted);
  font-size: 12px;
}
.chart-grid {
  stroke: var(--line);
}
.chart-band {
  fill: var(--accent);
  opacity: 0.13;
}
.chart-line {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}
.chart-point,
.chart-bar {
  fill: var(--accent);
}
.chart-point {
  stroke: #fff;
  stroke-width: 1.5;
  cursor: pointer;
}
.chart-point:focus {
  stroke: var(--ink);
  stroke-width: 3;
}
.product-benefit {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 1100px) {
  .price-workspace {
    grid-template-columns: 1fr;
  }
  .price-items {
    max-height: 220px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font:
    15px/1.55 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  color: var(--muted);
  margin: 8px 0 18px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 650;
  margin: 8px 0 14px;
}
h2 {
  font-size: 21px;
  font-weight: 650;
  margin: 0 0 12px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #ae4274;
  outline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 42px;
  border: 1px solid #d7d9df;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}
.button:hover {
  background: #f2f3f5;
  color: var(--ink);
  border-color: #b7bbc4;
}
.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.button.primary:hover {
  background: #86244f;
  border-color: #86244f;
}
.button.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.button.danger {
  color: #b42d38;
}
body button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
body button[aria-busy="true"] {
  cursor: progress;
}
body button[aria-busy="true"]::after {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid #cbd0d8;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
  min-height: 43px;
}
textarea {
  resize: vertical;
  min-height: 105px;
}
input::placeholder,
textarea::placeholder {
  color: #858a94;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #404550;
}
label small,
.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
form {
  display: grid;
  gap: 18px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  font-weight: 600;
  margin-bottom: 12px;
}
small {
  font-size: 13px;
}
code {
  font-size: 13px;
  overflow-wrap: anywhere;
  color: #713d55;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
}
.lead {
  font-size: 16px;
  max-width: 680px;
}
.shell {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
}
.shell > nav,
.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 23px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
}
.nav-links,
.actions,
.header-actions,
.card-actions,
.dialog-actions,
.secret-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-links {
  font-size: 14px;
  gap: 24px;
}
.nav-links [aria-current="page"] {
  color: var(--accent);
  font-weight: 650;
}
.actions {
  margin-top: 28px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 10001;
  padding: 12px;
  background: white;
}
.skip-link:focus {
  top: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.workspace-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  overflow-y: auto;
}
.workspace-side .brand {
  margin: 0 12px 30px;
}
.side-caption {
  margin: 16px 12px 8px;
  color: #7b818b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.side-nav,
.management-tabs {
  display: grid;
  gap: 4px;
}
.side-nav a,
.side-nav button,
.management-tab {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 7px;
  color: #5a606a;
  text-align: left;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.side-nav a:hover,
.side-nav button:hover,
.management-tab:hover {
  background: #f5f5f7;
  color: var(--ink);
}
.side-nav .active,
.side-nav [aria-current="page"],
.management-tab.active {
  color: #8a2954;
  background: var(--accent-soft);
  font-weight: 650;
}
.side-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.side-bottom {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.workspace-main {
  min-width: 0;
}
.workspace-top {
  min-height: 72px;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--muted);
}
.workspace-top .button {
  min-height: 34px;
  font-size: 13px;
  padding: 7px 12px;
}
.workspace-content {
  max-width: 1420px;
  padding: 36px;
  margin: auto;
}
.admin-layout {
  padding: 42px 0 70px;
}
.page-heading,
.admin-header,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading p,
.admin-header p,
.section-heading p {
  margin-bottom: 0;
}
.section-heading {
  margin-top: 28px;
}
.section-heading .eyebrow {
  display: none;
}
.header-actions {
  justify-content: flex-end;
}
.sync-state {
  font-size: 12px;
  color: var(--muted);
}
.admin-badge,
.pill,
.client-status {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  background: #f4f5f7;
  color: #606672;
}
.client-status.online {
  background: #edf7f1;
  color: #267045;
  border-color: #d2e9db;
}
.client-status.offline {
  color: #6f737c;
}
.order-state-paid {
  background: #edf7f1;
  color: #267045;
  border-color: #bfe1cc;
}
.order-state-pending {
  background: #fff7e5;
  color: #8a5a00;
  border-color: #efd69b;
}
.order-state-failed {
  background: #fff0f0;
  color: #a12c35;
  border-color: #efc5c9;
}
.order-state-expired,
.order-state-unknown {
  background: #f4f5f7;
  color: #606672;
  border-color: var(--line);
}
.order-details summary {
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.order-details summary::-webkit-details-marker {
  display: none;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 1px;
  width: min(620px, 70vw);
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
.order-detail-grid > div {
  min-width: 0;
  padding: 10px 12px;
  background: white;
}
.order-detail-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.order-detail-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
    width: min(360px, 78vw);
  }
}
.admin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 0;
  margin: 24px 0 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.stat {
  padding: 20px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat strong,
.stat span {
  display: block;
}
.stat strong {
  font-size: 27px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin-bottom: 3px;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.management-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 22px;
}
.management-search {
  width: min(340px, 100%);
  font-size: 12px;
}
.management-panel {
  display: none;
}
.management-panel.active {
  display: block;
}
.is-filtered-out {
  display: none !important;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.overview-card {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 24px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.overview-card:hover {
  border-color: #be91a5;
}
.overview-card strong {
  font-size: 17px;
}
.overview-card > span:not(.overview-icon) {
  color: var(--muted);
  font-size: 14px;
  max-width: 90%;
}
.overview-card b {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 24px;
  font-weight: 600;
}
.overview-icon {
  color: var(--accent);
  font-size: 21px;
  height: 32px;
}
.system-health {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.system-health p {
  margin: 2px 0 0;
  font-size: 13px;
}
.health-dot {
  width: 9px;
  height: 9px;
  background: #419366;
  border-radius: 50%;
  flex-shrink: 0;
}
.warning .health-dot {
  background: #c28417;
}
.error .health-dot {
  background: #be3444;
}
.key-grid {
  display: grid;
  gap: 18px;
}
.key-card,
.relay-panel,
.claim-panel,
.panel,
body .shop-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow-wrap: anywhere;
}
.key-card.disabled {
  background: #fafafb;
}
.key-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.key-card h2 {
  font-size: 20px;
}
.key-meta {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0;
}
.checks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.check,
.switch-control,
body .shop-card .check {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0;
  font-size: 13px;
}
.check:has(input:checked) {
  border-color: #d7afc1;
  background: #fcf5f8;
}
.card-actions {
  justify-content: space-between;
  margin-top: 20px;
}
.key-secret-line,
.device-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.key-secret-line {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.key-secret-toggle {
  font-size: 12px;
}
.device-list {
  display: grid;
  gap: 10px;
}
.device-row {
  padding: 12px;
  background: #f6f7f9;
  border-radius: 7px;
  font-size: 13px;
}
.device-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.device-row .button {
  font-size: 12px;
  min-height: 34px;
  flex-shrink: 0;
}
.client-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.client-details,
.account-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.client-details > div,
.account-columns > div {
  padding: 14px;
  background: #f6f7f9;
  border-radius: 7px;
}
.client-details strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--muted);
}
.client-details span {
  overflow-wrap: anywhere;
}
.account-columns p {
  font-size: 13px;
  margin: 6px 0 0;
}
.empty-state {
  border: 1px dashed #d3d6dd;
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: #fff;
}
.empty-state a {
  color: var(--accent);
  text-decoration: underline;
}
.empty-state.compact {
  padding: 16px;
}
.relay-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.relay-counts strong,
.relay-counts span {
  display: block;
}
.relay-counts strong {
  font-size: 25px;
  font-weight: 600;
}
.relay-counts span {
  color: var(--muted);
  font-size: 12px;
}
.relay-table-wrap,
body .shop-table {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
body .shop-table td,
body .shop-table th,
td,
th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
  color: var(--muted);
  background: #f8f9fa;
}
tbody tr:last-child td {
  border-bottom: none;
}
.broadcast-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.broadcast-controls {
  display: grid;
  gap: 18px;
}
.broadcast-controls form {
  background: #fff;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.broadcast-feed {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 700px;
  overflow: auto;
  margin-top: 12px;
}
.broadcast-entry,
.broadcast-schedule {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  background: #fff;
}
.broadcast-entry span {
  font-weight: 650;
}
.broadcast-entry p {
  margin: 5px 0;
}
.broadcast-entry time,
.broadcast-schedule small {
  color: var(--muted);
  font-size: 12px;
}
.broadcast-entry.admin {
  border-left: 3px solid #b83548;
}
.broadcast-schedules {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.broadcast-schedule.disabled {
  opacity: 0.6;
}
.feedback,
.save-status,
body .shop-status {
  color: #5c6270;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
body .shop-status {
  margin: 0;
  min-height: 0;
}
.feedback:empty,
.save-status:empty,
body .shop-status:empty {
  display: none;
}
body .shop-error,
.feedback.error {
  color: #b0273b;
}
.notice {
  border: 1px solid #e6d9bb;
  border-radius: 7px;
  padding: 14px 18px;
  background: #fffbf0;
  color: #75603a;
  font-size: 14px;
}
body .notice.shop-status:not(:empty) {
  margin: 18px 0;
}
.notice:empty {
  display: none;
}
body .shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
  margin: 20px 0;
}
body .shop-card label {
  display: grid;
  gap: 6px;
  margin: 0;
}
body .shop-card .check {
  display: flex;
}
body .shop-card h2 {
  margin: 0 0 12px;
}
body .shop-card .price,
.price {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 20px 0 8px;
}
body .shop-card p {
  line-height: 1.55;
}
body .shop-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
body .shop-form {
  max-width: none;
}
.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card .price,
.product-card p {
  margin: 0;
}
.product-card .product-details {
  flex: 1;
}
.product-card .button {
  width: 100%;
  margin-top: 10px;
}
.product-mods {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.product-mods span {
  font-size: 12px;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 4px;
  color: #555d69;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form-section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form-section h3 {
  margin-bottom: 16px;
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
}
.editor-aside {
  position: sticky;
  top: 24px;
}
.editor-aside .price {
  font-size: 27px;
}
.catalog-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.catalog-row:last-child {
  border-bottom: 0;
}
.catalog-row .product-details {
  flex: 1;
  min-width: 0;
}
.catalog-row h3 {
  margin: 0 0 4px;
}
.catalog-row p {
  margin: 0;
  font-size: 13px;
}
.catalog-price {
  text-align: right;
  font-weight: 600;
}
.catalog-price small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
body #admin-products {
  display: block;
  padding: 0;
  overflow: hidden;
}
.wallet-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #252b33;
  color: #fff;
  padding: 24px 28px;
  border-radius: var(--radius);
  margin: 24px 0 30px;
}
.wallet-strip p,
.wallet-strip .eyebrow {
  color: #c0c5cd;
}
.wallet-strip .price {
  color: #fff;
  margin: 8px 0 0;
}
.wallet-strip .button {
  flex-shrink: 0;
}
.section-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 28px 0;
  overflow-x: auto;
}
.section-tabs a {
  padding: 12px 0;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  font-size: 14px;
}
.section-tabs a.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 650;
}
.claim-panel {
  margin: 18px 0;
}
.claim-panel summary {
  font-weight: 600;
  cursor: pointer;
}
.claim-panel form {
  margin-top: 20px;
}
.lotus-dialog {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 30px;
  box-shadow: 0 24px 90px #18233333;
}
.lotus-dialog::backdrop {
  background: #171e2c80;
}
.dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
}
.secret-row {
  background: #f7f2f5;
  padding: 16px;
  border-radius: 6px;
}
.dialog-summary {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background: #f6f7f9;
  margin: 20px 0;
}
.dialog-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.dialog-summary dt {
  color: var(--muted);
}
.dialog-summary dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 80px;
  padding: 85px 0 75px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 18px 0 24px;
}
.hero h1 span {
  color: var(--accent);
}
.hero .lead {
  max-width: 550px;
  font-size: 18px;
}
.hero-note {
  font-size: 12px;
  margin-top: 18px;
}
.hero-console {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.console-header {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #282d36;
  color: #fff;
  padding: 18px 24px;
  font-weight: 600;
}
.console-header img {
  width: 24px;
  height: 24px;
}
.console-row {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: center;
}
.console-row span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.console-row strong {
  display: block;
}
.console-row p {
  font-size: 13px;
  margin: 4px 0 0;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.stats .stat {
  padding: 18px 24px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 40px 0 70px;
  border-top: 1px solid var(--line);
}
.feature h2 {
  margin-top: 12px;
  font-size: 19px;
}
.feature p {
  font-size: 14px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  min-height: calc(100vh - 190px);
  padding: 60px 0;
}
.activity-filters {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;padding:18px;margin-bottom:20px;border:1px solid var(--line);border-radius:10px;background:#fff}
.activity-filters .actions,.activity-filters .feedback,.activity-filters .field-help {grid-column:1/-1;margin:0}
.activity-filters input,.activity-filters select {width:100%;min-width:0}
#apk-form {max-width:720px}
#apk-form .actions {flex-wrap:wrap}
#privacy-users .panel{margin-bottom:12px}
#privacy-tables details{padding:12px 0;border-top:1px solid var(--line)}
#privacy-tables summary{cursor:pointer;overflow-wrap:anywhere}
#privacy-tables pre{max-height:320px;overflow:auto;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f5f8;padding:12px;border-radius:6px}
.privacy-danger{margin-top:24px;padding:20px;border:1px solid #d8939c;border-radius:10px;background:#fff8f9}
.privacy-danger input:not([type=checkbox]){max-width:400px}
#privacy-search{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;align-items:end}
#privacy-search>.check,.privacy-danger>.check{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-width:0;line-height:1.5}
#privacy-search input[type=checkbox],.privacy-danger input[type=checkbox]{flex:0 0 18px;width:18px;min-width:18px;height:18px;padding:0;margin:0}
#privacy-search>.check{min-height:48px}
#privacy-search>button{align-self:end;min-height:48px}
@media(max-width:700px){#privacy-search{grid-template-columns:minmax(0,1fr)}}
.auth-intro h2 {
  font-size: 36px;
  line-height: 1.2;
  max-width: 380px;
}
.auth-intro p {
  max-width: 380px;
}
.auth-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}
.auth-card h1 {
  font-size: 28px;
}
.auth-card form {
  margin-top: 26px;
}
.auth-card .auth-submit,
.auth-card .discord-login {
  width: 100%;
  min-height: 48px;
}
.auth-recovery {
  text-align: right;
  margin: 8px 0 18px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-card .discord-login {
  gap: 12px;
  padding: 12px 16px;
  border-color: #5865f2;
  border-radius: 8px;
  background: #5865f2;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.auth-card .discord-login:hover {
  background: #4752c4;
  border-color: #4752c4;
  color: #fff;
}
.auth-card .discord-login:active {
  background: #3c45a5;
  border-color: #3c45a5;
}
.auth-card .discord-login:focus-visible {
  outline: 3px solid #5865f2;
  outline-offset: 4px;
}
.discord-login svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: currentColor;
}
@media (prefers-reduced-motion: reduce) {
  .auth-card .discord-login { transition: none; }
}
.password-field {
  display: flex;
  position: relative;
}
.password-field input {
  padding-right: 86px;
}
.password-field button {
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 6px 9px;
  min-height: 34px;
  font-size: 12px;
}
.switch {
  text-align: center;
  margin: 24px 0 0;
  font-size: 13px;
}
.switch a {
  color: var(--accent);
  font-weight: 600;
}
body .web-footer {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 24px;
}
body:has(.workspace) .web-footer {
  margin-left: 224px;
}
body .web-mobile-cta {
  background: var(--accent);
  border-radius: 7px;
}
body .web-consent {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 35px #1d263326;
  font-size: 13px;
}
body .web-consent button {
  background: #f5f6f8;
  color: var(--ink);
  border-color: #cdd0d8;
  margin-left: 0;
}
body .web-consent a {
  color: var(--accent);
}
body .web-page {
  width: min(850px, calc(100% - 40px));
  margin: 50px auto;
  padding: 30px;
}
body .web-page h1 {
  font-size: 34px;
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .workspace-side {
    padding: 24px 12px;
  }
  .workspace-content {
    padding: 28px;
  }
  .workspace-top {
    padding: 16px 28px;
  }
  body:has(.workspace) .web-footer {
    margin-left: 195px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-aside {
    position: static;
  }
  .hero {
    gap: 40px;
  }
  .auth-layout {
    gap: 40px;
  }
}
@media (max-width: 780px) {
  .shell {
    width: calc(100% - 36px);
  }
  .workspace {
    display: block;
  }
  .workspace-side {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .workspace-side .brand {
    margin: 0 0 14px;
  }
  .side-caption {
    display: none;
  }
  .side-nav,
  .management-tabs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }
  .side-nav a,
  .side-nav button,
  .management-tab {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 13px;
  }
  .side-icon {
    display: none;
  }
  .side-bottom {
    margin: 8px 0 0;
    padding: 8px 0 0;
  }
  .workspace-top {
    padding: 12px 20px;
    min-height: 56px;
  }
  .workspace-content {
    padding: 24px 20px 40px;
  }
  body:has(.workspace) .web-footer {
    margin-left: 0;
  }
  .page-heading,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .header-actions {
    justify-content: flex-start;
  }
  .hero,
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 45px 0;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-console {
    max-width: 100%;
  }
  .auth-intro {
    display: none;
  }
  .auth-card {
    justify-self: center;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .feature p {
    margin-bottom: 4px;
  }
  .broadcast-panel {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links .button {
    padding: 8px 12px;
    font-size: 13px;
  }
}
@media (max-width: 520px) {
  .form-grid,
  .overview-grid,
  .client-details,
  .account-columns {
    grid-template-columns: 1fr;
  }
  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .key-card,
  .panel,
  .relay-panel,
  body .shop-card {
    padding: 18px;
  }
  .catalog-row {
    flex-wrap: wrap;
    padding: 18px;
    gap: 12px;
  }
  .catalog-row .product-details {
    flex-basis: calc(100% - 65px);
  }
  .catalog-price {
    text-align: left;
    margin-right: auto;
  }
  .wallet-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }
  .device-row,
  .key-card-head,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth-card {
    padding: 26px 22px;
  }
  .nav-links > a:not(.button) {
    font-size: 12px;
  }
  .lotus-dialog {
    padding: 22px;
  }
  .dialog-actions .button {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Searchable catalogues and the custom licence journey. */
body #admin-products.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  padding: 0;
  overflow: visible;
  background: transparent;
}
.catalog-filters,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  align-items: end;
  margin: 20px 0;
}
.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.catalog-pagination [data-count] {
  flex: 1;
}
.custom-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0;
}
.custom-invite .button {
  flex-shrink: 0;
}
.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
  margin: 20px 0;
}
.component-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line, #e5dfe3);
  border-radius: 12px;
  cursor: pointer;
}
.component-card:has(input:checked) {
  border-color: #b84270;
  background: #fff0f5;
}
.component-card input {
  width: auto;
  flex-shrink: 0;
}
.component-card strong,
.component-card small {
  display: block;
}
.component-price {
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
}
.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  gap: 24px;
  margin: 24px 0;
}
.wizard-steps li {
  color: #746775;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
}
.wizard-steps [aria-current="step"] {
  color: #a2315e;
  font-weight: 700;
  border-color: #a2315e;
}
.quote-lines {
  list-style: none;
  padding: 0;
}
.quote-lines li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e9e3e7;
}
#wizard-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
@media (max-width: 680px) {
  .custom-invite {
    align-items: stretch;
    flex-direction: column;
  }
  .wizard-steps {
    gap: 16px;
    font-size: 13px;
  }
}
.offer-artwork {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  border-radius: 8px;
  background: var(--canvas, #f6f7f9);
}
#offer-image-file {
  padding: 12px;
}
#offer-image-preview {
  max-width: 480px;
}
