:root {
  color-scheme: light;
  --plum: #30223f;
  --purple: #624492;
  --paper: #f6f5f9;
  --card: #fff;
  --ink: #26222e;
  --muted: #686373;
  --line: #e1dee8;
  font:
    16px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.58;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #7357ad;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.mast {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.mast-inner {
  max-width: 1240px;
  margin: auto;
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 70px;
  padding: 0 36px;
}
.brand {
  display: flex;
  align-items: center;
  width: 101px;
  background: var(--plum);
  mask: url(/brand.svg) center / contain no-repeat;
}
.brand img {
  width: 101px;
  max-height: 32px;
  opacity: 0;
}
.brand-label {
  border-left: 1px solid var(--line);
  padding-left: 15px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.text-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 44px;
}
.login-wrap {
  min-height: calc(100svh - 71px);
  display: grid;
  place-items: center;
  padding: 36px 18px;
  background:
    radial-gradient(ellipse at 50% 33%, #eee8f7, transparent 63%), var(--paper);
}
.login-card {
  width: min(100%, 420px);
  padding: 36px;
  border-radius: 22px;
  border: 1px solid #ded8e8;
  background: var(--card);
  box-shadow: 0 18px 54px #402f5c0e;
}
.lock-mark {
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 15px;
  background: #eee8f8;
  color: var(--purple);
  margin-bottom: 24px;
}
.lock-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 1.65rem;
  letter-spacing: -0.045em;
  line-height: 1.3;
}
h2 {
  font-size: 1.08rem;
  letter-spacing: -0.035em;
}
.muted,
small,
footer {
  color: var(--muted);
  font-size: 0.875rem;
}
.muted {
  margin-top: 6px;
  word-break: keep-all;
}
.login-card form {
  margin-top: 27px;
  display: grid;
}
.login-card label {
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 7px;
}
.login-card input {
  width: 100%;
  height: 48px;
  border: 1px solid #cfc9d9;
  border-radius: 9px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 18px;
  font-size: 16px;
}
.primary,
.secondary {
  border: 0;
  border-radius: 10px;
  min-height: 46px;
  padding: 11px 18px;
  font-weight: 650;
}
.primary {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--plum);
  color: #fff;
}
.primary:hover {
  background: #48345e;
}
.secondary {
  background: #ece6f5;
  color: var(--plum);
}
[role="status"]:not(:empty) {
  margin: 15px 0;
  font-size: 0.9rem;
  color: var(--purple);
}
.workspace {
  max-width: 1240px;
  margin: auto;
  padding: 43px 36px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.segments {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 12px;
  background: #eeecf2;
}
.segments button {
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 9px;
  padding: 9px 17px;
  min-height: 40px;
  font-size: 0.88rem;
  font-weight: 650;
}
.segments [aria-pressed="true"] {
  background: #fff;
  color: var(--plum);
  box-shadow: 0 1px 4px #34274625;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.kpis section,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.kpis h2 {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}
.kpis strong {
  display: block;
  margin: 12px 0 8px;
  font-size: clamp(1.35rem, 2.15vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.kpis .highlight {
  background: #332242;
  color: #fff;
  border-color: transparent;
}
.highlight h2,
.highlight small {
  color: #e1d5ec;
}
.panels {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(250px, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.panel {
  min-width: 0;
}
.panel h2 {
  font-size: 1.13rem;
}
#chart {
  margin-top: 20px;
}
#chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.gridline {
  stroke: #e6e2eb;
  stroke-dasharray: 3 5;
}
.bar {
  fill: #8561b2;
}
.axis {
  font-size: 13px;
  fill: #685e73;
}
details {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 0.86rem;
  font-weight: 600;
}
.coupon-total,
.coupons div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.coupon-total {
  padding: 22px 0 14px;
  border-bottom: 1px solid var(--line);
}
.coupon-total strong {
  font-size: 1.55rem;
}
.coupons {
  margin: 12px 0 0;
}
.coupons div {
  padding: 6px 0;
}
.coupons dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.coupons dd {
  margin: 0;
  font-weight: 650;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.86rem;
}
th,
td {
  text-align: right;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
th:first-child,
td:first-child {
  text-align: left;
}
th {
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.78rem;
}
@media (max-width: 880px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panels {
    grid-template-columns: 1fr;
  }
  .workspace {
    padding: 30px 24px;
  }
}
@media (max-width: 540px) {
  .mast-inner {
    padding: 0 18px;
    min-height: 58px;
  }
  .workspace {
    padding: 27px 16px;
  }
  .heading {
    align-items: flex-start;
  }
  .kpis {
    gap: 9px;
  }
  .kpis section,
  .panel {
    padding: 16px;
  }
  .login-card {
    padding: 25px;
  }
  .login-wrap {
    min-height: calc(100svh - 59px);
  }
  .kpis small,
  .muted {
    font-size: 0.82rem;
  }
  .panels {
    gap: 10px;
  }
  .segments button {
    padding: 7px 12px;
  }
  .axis {
    font-size: 18px;
  }
}
