:root { color-scheme: dark; font: 16px system-ui, sans-serif; background: #100b19; color: #fff; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 38rem; margin: 2.5rem auto; padding: 0 1rem; }
header a { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; color: #fff; font-weight: 700; }
header img { border-radius: .6rem; }
section { margin-top: 1rem; background: #211632; border: 1px solid #443352; border-radius: 1rem; padding: clamp(1rem, 5vw, 2rem); }
h1 { margin: 0 0 1rem; }
h2:not(:first-child) { margin-top: 2rem; }
p { line-height: 1.6; color: #ddd2e7; overflow-wrap: anywhere; }
form { display: grid; gap: .65rem; }
label { font-weight: 650; }
input, button, a.button { border-radius: .65rem; padding: .75rem 1rem; font: inherit; }
input { width: 100%; background: #130d1d; color: #fff; border: 1px solid #736382; }
button, a.button { display: inline-block; background: #d8ff89; border: 0; color: #161d0b; font-weight: 750; text-decoration: none; cursor: pointer; }
a { color: #e4ccff; }
.notice { padding: .75rem; background: #322342; border-radius: .6rem; }

:focus-visible { outline: 2px solid #c0ff76; outline-offset: 4px; }

.customer {
  width: min(calc(100% - 3rem), 68rem);
  max-width: none;
  margin: 0 auto;
  padding: clamp(1.4rem, 5vh, 3.2rem) 0;
}
body:has(.customer) {
  min-height: 100vh;
  background: radial-gradient(ellipse at 26% 4%, #27163b 0, transparent 60%), #100b19;
}
.customer header { margin-bottom: clamp(1.1rem, 3vw, 2rem); }
.customer header a {
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.customer header img { border: 1px solid #624d79; }
.entry-layout {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  min-height: 34rem;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid #554267;
  background: #1b1327;
  box-shadow: 0 22px 80px #08050e90;
}
.entry-art { position: relative; min-width: 0; min-height: 26rem; isolation: isolate; background: #211331; }
.entry-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.entry-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, #11091b53 67%, #100919f5 100%);
}
.entry-caption {
  position: absolute;
  z-index: 1;
  inset: auto clamp(1.25rem, 3.4vw, 2.6rem) clamp(1.25rem, 3.4vw, 2.6rem);
}
.entry-caption span {
  display: block;
  margin-bottom: .75rem;
  color: #c0ff76;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.entry-caption strong {
  display: block;
  font-size: clamp(2.1rem, 4.4vw, 3.65rem);
  line-height: 1.01;
  letter-spacing: -.065em;
}
.entry-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  border: 0;
  border-left: 1px solid #554267;
  border-radius: 0;
  padding: clamp(1.5rem, 4.5vw, 3.6rem);
  background: radial-gradient(ellipse at top right, #2c1e41, transparent 80%), #1b1327;
}
.entry-card h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.45rem, 5.2vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.07em;
}
.entry-description { margin: .95rem 0 1.65rem; }
.entry-card form { gap: .6rem; }
.entry-card form input {
  min-height: 3.5rem;
  border-radius: .8rem;
  border: 1px solid #746382;
  background: #140e20;
}
.entry-card input::placeholder { color: #a89bb6; }
.entry-card input[name="code"] { letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.entry-card button {
  min-height: 3.5rem;
  margin-top: .25rem;
  background: #c0ff76;
  border-radius: .8rem;
}
.entry-card button:hover { background: #d1ff9e; }
.entry-note { color: #c5b7d1; margin: 1rem 0 0; font-size: .875rem; }
.entry-link { align-self: flex-start; margin-top: 1.25rem; text-underline-offset: .22em; }
.entry-card .notice { margin: 0 0 1rem; border: 1px solid #5f4779; }
.entry-card h1 + form { margin-top: 1.65rem; }

@media (max-width: 690px) {
  .customer { width: min(calc(100% - 1.5rem), 31rem); padding-top: 1rem; }
  .entry-layout { grid-template-columns: minmax(0, 1fr); border-radius: 1.25rem; min-height: 0; }
  .entry-art { min-height: clamp(10.5rem, 50vw, 15rem); }
  .entry-art img { object-position: center 43%; }
  .entry-caption { inset: auto 1.25rem 1rem; }
  .entry-caption span { margin-bottom: .35rem; }
  .entry-caption strong { font-size: clamp(1.4rem, 5.8vw, 2.15rem); }
  .entry-caption br { display: none; }
  .entry-card { border-left: 0; border-top: 1px solid #554267; padding: 1.5rem 1.25rem; }
  .entry-card h1 { max-width: none; }
  .entry-description { margin-bottom: 1.25rem; }
}

.dashboard { max-width: 64rem; }
.dashboard-settings { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; }
.dashboard-settings > div, .dashboard-metrics {
  background: #191124;
  border: 1px solid #443352;
  border-radius: 1rem;
  padding: clamp(1rem, 2.5vw, 1.4rem);
}
.dashboard h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.dashboard-metrics { margin-top: 1rem; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .65rem;
  margin: 1rem 0 1.5rem;
}
.metrics-card { background: #281d37; border-radius: .75rem; padding: .9rem; }
.metrics-card dt { color: #e5d7f1; font-size: .875rem; font-weight: 700; }
.metrics-card dd { margin: .3rem 0 0; }
.metrics-card strong { display: block; color: #d8ff89; font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.metrics-card span, .metrics-note { color: #c9b9d5; font-size: .875rem; }
.metrics-table { overflow-x: auto; }
.metrics-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.metrics-table caption { text-align: left; font-weight: 700; padding-bottom: .6rem; }
.metrics-table :is(th, td) { text-align: right; padding: .55rem .35rem; border-bottom: 1px solid #443352; }
.metrics-table th:first-child { text-align: left; }
.metrics-table thead { color: #e5d7f1; font-size: .875rem; }
.metrics-note { margin-bottom: 0; }

@media (max-width: 680px) {
  .dashboard-settings { grid-template-columns: minmax(0, 1fr); }
}
