:root {
  --blue: #3156f5;
  --blue-dark: #2340c4;
  --tint: #eef2ff;
  --ink: #101831;
  --body: #4f5d75;
  --muted: #6b7890;
  --line: #e3e8f1;
  --surface: #f6f8fc;
  --green: #168367;
  --red: #ba4851;
  --radius: 16px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 600;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #9badff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 800;
  white-space: nowrap;
}
.brand svg {
  width: 33px;
  height: 33px;
  fill: var(--blue);
}
.brand .net {
  font-weight: 500;
  color: #374466;
}
.shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 234px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  margin: 0 15px 29px;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 26px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  color: #4260bb;
  background: #e8edff;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.workspace strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.workspace span:not(.avatar) {
  font-size: 10px;
  color: var(--muted);
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #8792a6;
  margin: 0 14px 8px;
  font-weight: 600;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 26px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #5b687e;
  font-size: 13px;
  font-weight: 500;
  min-height: 43px;
}
.nav-link:hover {
  background: #f6f8fc;
  color: var(--ink);
}
.nav-link.active {
  background: var(--tint);
  color: var(--blue);
  font-weight: 600;
}
.nav-link.active:after {
  content: '';
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.sidebar-bottom .nav-link {
  font-size: 12px;
}
.sidebar-note {
  font-size: 10px;
  line-height: 1.65;
  color: #95a0b3;
  padding: 13px 14px 0;
}
.icon-btn.sidebar-close,
.icon-btn.menu-toggle {
  display: none;
}
.shell-main {
  margin-left: 234px;
  min-width: 0;
}
.topbar {
  height: 77px;
  background: #ffffffed;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb span:last-child {
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  font-size: 10px;
  background: #f0f3f9;
  border: 1px solid var(--line);
  padding: 4px 8px;
  color: #6b7890;
  white-space: nowrap;
}
.preview-badge:before {
  content: '';
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #8fa3d0;
}
.header-balance {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.header-balance strong {
  font-size: 13px;
  color: var(--ink);
  margin-left: 8px;
}
.top-avatar {
  border: 0;
  background: #e9eefc;
  color: #4463b7;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}
.top-help {
  color: var(--muted);
}
main {
  max-width: 1490px;
  margin: 0 auto;
  padding: 36px 40px 24px;
  min-height: calc(100vh - 153px);
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  margin-top: 9px;
  font-size: 13px;
  color: var(--body);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 9px;
}
.page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #dce3f0;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: #f5f7fd;
  border-color: #bdcbed;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 3px 7px #3156f519;
}
.btn.primary:hover {
  background: var(--blue-dark);
}
.btn.soft {
  color: var(--blue);
  background: var(--tint);
  border-color: #dce4ff;
}
.btn.danger {
  background: #bc4550;
  color: #fff;
  border-color: #bc4550;
}
.btn.small {
  padding: 7px 11px;
  min-height: 33px;
  font-size: 11px;
}
.btn.full {
  width: 100%;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.text-link {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 12px;
}
.micro {
  font-size: 11px;
}
.mono,
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.mono {
  font-size: 11px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 25px 20px;
}
.card-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.card-body {
  padding: 0 25px 25px;
}
.section-gap {
  margin-top: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}
.equal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 23px 0;
  margin-bottom: 24px;
}
.metric {
  padding: 0 25px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.metric-label .icon {
  width: 15px;
  height: 15px;
  color: #7b8db5;
}
.metric-value {
  font-size: 28px;
  letter-spacing: -0.9px;
  line-height: 1.35;
  margin: 10px 0 3px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.metric-foot {
  font-size: 11px;
  color: var(--muted);
}
.metric-foot .text-link {
  font-size: 11px;
}
.green {
  color: var(--green);
}
.chart-wrap {
  padding: 0 25px 22px;
}
.chart-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--muted);
}
.legend {
  display: flex;
  align-items: center;
  gap: 14px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  display: block;
}
.legend i.secondary {
  background: #bdcbff;
}
.chart {
  width: 100%;
  height: 190px;
  overflow: visible;
  display: block;
}
.chart text {
  font:
    10px Arial,
    sans-serif;
  fill: #8390a5;
}
.chart-grid {
  stroke: #edf0f6;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.bar-chart {
  height: 220px;
  display: flex;
  gap: 15px;
  align-items: flex-end;
  padding-top: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.bar {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 4px;
}
.bar-fill {
  background: #5271f7;
  border-radius: 5px 5px 0 0;
  width: 65%;
  min-height: 3px;
  transition: height 0.25s;
}
.bar span {
  font-size: 10px;
  color: var(--muted);
  position: absolute;
  bottom: -24px;
  white-space: nowrap;
}
.bar small {
  font-size: 9px;
  color: var(--muted);
}
.donut-area {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 10px 0;
}
.donut {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 58%, #b9c9ff 58% 100%);
  display: grid;
  place-items: center;
}
.donut:before {
  content: '';
  position: absolute;
  inset: 18px;
  background: white;
  border-radius: 50%;
}
.donut > span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.donut strong {
  font-size: 22px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}
.breakdown {
  width: 100%;
}
.breakdown-row {
  margin: 15px 0;
}
.breakdown-row > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 7px;
  gap: 12px;
}
.progress {
  height: 5px;
  background: #eff2f8;
  border-radius: 5px;
  overflow: hidden;
}
.progress > i {
  height: 100%;
  background: var(--blue);
  display: block;
  border-radius: 5px;
}
.progress.secondary > i {
  background: #b9c9ff;
}
.card-footer {
  padding: 15px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}
.quick-start {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 21px 25px;
  background: #f0f4ff;
  border: 1px solid #dce5ff;
  border-radius: 16px;
  margin-top: 23px;
}
.quick-start .icon-box {
  width: 40px;
  height: 40px;
  background: #e0e8ff;
  color: var(--blue);
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.quick-start p {
  font-size: 12px;
  color: #6a7b9b;
  margin-top: 4px;
}
.quick-start > .btn {
  margin-left: auto;
  white-space: nowrap;
}
.footer {
  max-width: 1490px;
  margin: auto;
  padding: 20px 40px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: #8c97aa;
}
.footer a:hover {
  color: var(--blue);
}
.footer-links {
  display: flex;
  gap: 18px;
}
.preview-note {
  font-size: 10px;
  color: #8793a9;
  margin: 15px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.preview-note .icon {
  width: 13px;
  height: 13px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 23px;
  border-bottom: 1px solid var(--line);
}
.toolbar .search {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}
.search {
  position: relative;
}
.search .icon {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 16px;
  height: 16px;
  color: #93a0b5;
}
.search input {
  padding-left: 36px;
  width: 100%;
}
.toolbar-right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.field,
input,
select,
textarea {
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 9px;
  min-height: 39px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.5;
}
input:disabled {
  background: #f6f8fc;
  color: var(--muted);
}
select {
  padding-right: 28px;
  max-width: 100%;
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 112px;
  width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #94a0b4;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  flex-shrink: 0;
}
input[type='date'] {
  min-width: 134px;
}
label.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
label.field-label > input,
label.field-label > select,
label.field-label > textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  font-weight: 400;
}
label.field-label > small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
  margin-top: 6px;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--body);
}
.filter-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 12px;
  padding: 20px 23px 0;
}
.filter-grid label {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0;
}
.filter-grid select,
.filter-grid input {
  width: 100%;
  margin-top: 6px;
}
.date-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 23px;
  border-bottom: 1px solid var(--line);
}
.date-row .text-link {
  margin-left: auto;
  font-size: 11px;
}
.date-row > span {
  font-size: 11px;
  color: var(--muted);
}
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: #7a879d;
  font-size: 10px;
  background: #f9fafe;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 22px;
  border-bottom: 1px solid #edf0f5;
  color: #526078;
  font-variant-numeric: tabular-nums;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcff;
}
td strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
td small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: #8591a6;
}
td .mono {
  font-size: 10px;
  color: #6e7d96;
}
.table-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-btn {
  width: 31px;
  height: 31px;
  padding: 6px;
  border: 0;
  border-radius: 7px;
  background: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #7787a3;
}
.icon-btn:hover {
  background: #eaf0ff;
  color: var(--blue);
}
.icon-btn.danger:hover {
  background: #fff0f0;
  color: var(--red);
}
.icon-btn .icon {
  width: 15px;
  height: 15px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  border: 1px solid #dde5ff;
  color: #3f61c6;
  background: #f0f4ff;
  border-radius: 6px;
  padding: 3px 7px;
}
.tag.green {
  background: #eff8f3;
  border-color: #dbeee5;
  color: var(--green);
}
.tag.gray {
  background: #f4f6f9;
  border-color: #e6eaf0;
  color: #7b8798;
}
.tag.red {
  background: #fff3f3;
  border-color: #f5e1e2;
  color: var(--red);
}
.tag.dot:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.discount {
  font-size: 10px;
  color: var(--blue);
  font-weight: 600;
  margin-left: 6px;
}
.key-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}
.key-cell code {
  font-size: 10px;
  color: #7e8aa1;
}
.provider {
  display: flex;
  align-items: center;
  gap: 11px;
}
.provider-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #f8faff;
  color: #4f73d2;
  font-size: 19px;
  flex-shrink: 0;
}
.provider-mark.openai {
  color: #52657b;
}
.provider-mark .icon {
  width: 19px;
  height: 19px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 23px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-num {
  min-width: 29px;
  height: 29px;
  border-radius: 7px;
  background: var(--tint);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.empty {
  padding: 55px 25px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: #94a5c7;
}
.empty strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.empty p {
  font-size: 12px;
  margin: 8px 0 16px;
}
.subtle-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
  padding: 17px 18px;
  color: var(--body);
  font-size: 12px;
}
.subtle-panel p {
  margin-top: 5px;
  font-size: 11px;
}
.group-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.group-summary > div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 17px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.group-summary strong {
  font-size: 12px;
  font-weight: 600;
}
.group-summary small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.group-rate {
  font-size: 19px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.group-summary > div > span:last-child {
  margin-left: auto;
}
dialog {
  width: 560px;
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 100px #11204235;
  color: var(--ink);
  overflow: auto;
}
dialog::backdrop {
  background: #101c3b55;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 27px 16px;
}
.modal-head h2 {
  font-size: 20px;
}
.modal-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.modal-body {
  padding: 5px 27px 26px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.group-options {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}
.group-option {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  cursor: pointer;
}
.group-option:has(input:checked) {
  border-color: #819afa;
  background: #f5f7ff;
  box-shadow: 0 0 0 1px #819afa;
}
.group-option strong {
  font-size: 12px;
}
.group-option small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.group-option > .rate-info {
  margin-left: auto;
  text-align: right;
  color: var(--blue);
}
.group-option > .rate-info strong {
  font-size: 14px;
}
.group-option > .rate-info small {
  font-size: 9px;
}
.form-legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0;
}
fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  min-width: 0;
}
.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
}
.callout {
  padding: 12px 15px;
  border: 1px solid #dce5ff;
  border-radius: 10px;
  background: #f3f6ff;
  font-size: 11px;
  color: #59709b;
  margin-top: 17px;
}
.key-reveal {
  font:
    12px/1.8 ui-monospace,
    monospace;
  word-break: break-all;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fd;
  padding: 15px;
  margin: 15px 0;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #152443;
  color: #fff;
  border-radius: 11px;
  box-shadow: 0 8px 28px #11204225;
  padding: 12px 20px;
  z-index: 200;
  font-size: 12px;
  max-width: calc(100% - 32px);
  width: max-content;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.detail-list dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-list dd {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.detail-list .full {
  grid-column: 1/-1;
}
.dialog-title-icon {
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  background: var(--tint);
  border-radius: 12px;
  color: var(--blue);
  margin-bottom: 15px;
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: #f0f3f9;
  border: 1px solid #e6eaf1;
  border-radius: 10px;
}
.segmented button {
  border: 0;
  background: transparent;
  color: #7b88a0;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 11px;
}
.segmented button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 4px #1a2b5320;
}
.segmented.wide {
  display: flex;
}
.segmented.wide button {
  flex: 1;
}
.play-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}
.play-form {
  padding: 23px;
}
.play-form .field-label {
  margin-top: 18px;
}
.play-form textarea {
  min-height: 127px;
}
.upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  min-height: 85px;
  border: 1px dashed #bccaf0;
  border-radius: 10px;
  background: #f8faff;
  font-size: 11px;
  color: #7989a8;
  cursor: pointer;
  padding: 14px;
  margin-top: 16px;
}
.upload-zone img {
  height: 62px;
  max-width: 120px;
  object-fit: contain;
  border-radius: 5px;
}
.estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin: 22px 0 11px;
}
.estimate strong {
  font-size: 13px;
  color: var(--ink);
}
.result-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 21px;
  gap: 25px;
}
.result-tabs button {
  font-size: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 17px 0;
  border-bottom: 2px solid transparent;
}
.result-tabs button.active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}
.result-tabs .tag {
  margin-left: auto;
}
.result-stage {
  padding: 22px;
  min-height: 390px;
  background: #fcfdff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}
.result-image {
  width: 100%;
  max-width: 430px;
  max-height: 430px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}
.result-meta {
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.result-placeholder {
  max-width: 310px;
  text-align: center;
}
.result-placeholder .icon {
  height: 40px;
  width: 40px;
  color: #a7b9e3;
  margin-bottom: 20px;
}
.result-placeholder h3 {
  font-size: 16px;
}
.result-placeholder p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 10px;
}
.examples {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 17px;
}
.example {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  text-align: left;
}
.example img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}
.example span {
  display: block;
  font-size: 10px;
  color: #5c6e90;
  padding: 9px 10px;
}
.example:hover,
.example.selected {
  border-color: #7f9afc;
  box-shadow: 0 0 0 1px #7f9afc;
}
.code-block {
  background: #14203a;
  color: #ced9ed;
  border-radius: 12px;
  font:
    11px/1.9 ui-monospace,
    monospace;
  padding: 21px;
  overflow: auto;
  white-space: pre;
  tab-size: 2;
  margin: 0;
  text-align: left;
  max-width: 100%;
}
.code-card .code-block {
  border-radius: 0 0 15px 15px;
}
.code-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.code-label span {
  color: var(--muted);
}
.code-key {
  color: #a9c2ff;
}
.docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 23px;
  align-items: start;
}
.steps {
  counter-reset: step;
  padding: 8px 0 0;
}
.step {
  position: relative;
  padding: 0 0 26px 39px;
}
.step:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  height: 25px;
  width: 25px;
  border: 1px solid #d8e2ff;
  background: var(--tint);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 11px;
}
.step h3 {
  font-size: 13px;
  margin-bottom: 8px;
}
.step p {
  font-size: 12px;
  color: var(--body);
  line-height: 1.8;
}
.endpoint {
  font-size: 11px;
  word-break: break-all;
  background: #f3f6fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}
.endpoint span {
  font-weight: 600;
  color: var(--green);
  margin-right: 9px;
}
.docs-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.docs-item:last-child {
  border: 0;
}
.docs-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 7px;
}
.docs-item code {
  font-size: 11px;
  color: var(--blue);
}
.inline-alert {
  font-size: 11px;
  color: #8c7147;
  background: #fffaf1;
  border: 1px solid #eee3cc;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.billing-top {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  margin-bottom: 23px;
}
.balance-card {
  padding: 27px;
  background: linear-gradient(120deg, #f1f5ff, #ffffff 95%);
  display: flex;
  flex-direction: column;
}
.balance-card > span {
  font-size: 12px;
  color: var(--body);
}
.balance-number {
  font-size: 43px;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin-top: 13px;
}
.balance-number small {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 7px;
}
.balance-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 23px;
}
.balance-card .balance-detail {
  border-top: 1px solid #dfe6f4;
  padding-top: 17px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--body);
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 15px 0;
}
.amount-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  font-size: 13px;
}
.amount-btn.active {
  color: var(--blue);
  border-color: #6e8afc;
  background: var(--tint);
  box-shadow: 0 0 0 1px #6e8afc;
}
.topup-actions {
  display: flex;
  gap: 12px;
  align-items: end;
}
.topup-actions label {
  flex: 1;
  margin: 0;
}
.topup-actions > .btn {
  flex: 1;
}
.stripe-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
}
.stripe-word {
  font-weight: 700;
  color: #6176b3;
  font-size: 13px;
  letter-spacing: -0.5px;
}
.budget-row {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: space-between;
  padding: 22px 25px;
}
.budget-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.budget-input {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.budget-input input[type='number'] {
  max-width: 120px;
}
.price-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--body);
}
.price-tabs {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.price-number {
  font-size: 16px !important;
  color: var(--blue) !important;
  letter-spacing: -0.4px;
}
.price-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 16px;
}
.status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 23px 25px;
  margin-bottom: 23px;
}
.status-orb {
  height: 37px;
  width: 37px;
  background: #edf8f3;
  color: var(--green);
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.status-banner p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.status-banner .tag {
  margin-left: auto;
}
.uptime-row {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.uptime-row:last-child {
  border: 0;
}
.uptime-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.uptime-bars {
  display: flex;
  gap: 3px;
  height: 30px;
}
.uptime-bars i {
  flex: 1;
  background: #a6d9c6;
  border-radius: 3px;
}
.uptime-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
  align-items: start;
}
.connection {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.connection:last-child {
  border: 0;
}
.connection .provider-mark {
  background: white;
}
.connection p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.connection > .btn {
  margin-left: auto;
}
.settings-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
}
.settings-profile .avatar {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  font-size: 14px;
}
.settings-profile p {
  font-size: 12px;
  color: var(--muted);
}
.check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 12px;
}
.check-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.auth-story {
  padding: 37px 55px 30px;
  background: #f0f4ff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story > .brand {
  z-index: 1;
}
.auth-intro {
  margin: auto 0 24px;
  padding-top: 55px;
  max-width: 430px;
}
.auth-intro h1 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -1.5px;
}
.auth-intro h1 span {
  color: var(--blue);
}
.auth-intro p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.8;
  margin-top: 16px;
}
.auth-art {
  max-width: 430px;
  border: 1px solid #d7e0f6;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 0 auto;
  background: #fff;
  box-shadow: 0 15px 50px #2d50bd13;
}
.auth-art img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
}
.auth-art figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  padding: 12px 15px;
  color: #7083a7;
}
.auth-company {
  font-size: 10px;
  color: #8a97b0;
  margin-top: 35px;
  letter-spacing: 0.4px;
}
.auth-form-side {
  display: flex;
  flex-direction: column;
  padding: 35px 55px;
  justify-content: center;
  align-items: center;
}
.auth-form-side > .preview-badge {
  position: absolute;
  top: 30px;
  right: 34px;
}
.auth-form {
  width: 100%;
  max-width: 360px;
}
.auth-form h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.auth-form > .auth-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  background: #fff;
  border: 1px solid #dce3ef;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 11px;
}
.social-btn:hover {
  background: #f8faff;
}
.social-btn .icon {
  width: 18px;
  height: 18px;
}
.google-g {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #4285f4;
  line-height: 1;
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  color: #8b98ae;
  margin: 24px 0;
}
.divider:before,
.divider:after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-form .field-label {
  margin-bottom: 17px;
}
.auth-form input {
  min-height: 43px;
}
.password-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.password-label .text-link {
  font-size: 10px;
}
.password-wrap {
  position: relative;
  margin-top: 7px;
  margin-bottom: 20px;
}
.password-wrap input {
  width: 100%;
  padding-right: 40px;
}
.password-wrap .icon-btn {
  position: absolute;
  right: 6px;
  top: 6px;
}
.auth-switch {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
.auth-switch a {
  color: var(--blue);
  font-weight: 600;
}
.auth-bottom {
  text-align: center;
  font-size: 10px;
  color: #8d98ad;
  line-height: 1.8;
  margin-top: 30px;
}
.auth-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.demo-enter {
  width: 100%;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 400;
}
.auth-mobile-brand {
  display: none;
}
.menu-overlay {
  display: none;
}
.loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid #dbe3fc;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1700px) {
  .sidebar {
    width: 252px;
  }
  .shell-main {
    margin-left: 252px;
  }
  main {
    padding-top: 44px;
  }
  .chart {
    height: 220px;
  }
  .result-stage {
    min-height: 470px;
  }
  .result-image {
    max-width: 480px;
    max-height: 480px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 212px;
    padding-inline: 13px;
  }
  .shell-main {
    margin-left: 212px;
  }
  .topbar {
    padding-inline: 27px;
  }
  main {
    padding-inline: 27px;
  }
  .footer {
    padding-inline: 27px;
  }
  .metric {
    padding-inline: 19px;
  }
  .metric-value {
    font-size: 25px;
  }
  .grid-2 {
    grid-template-columns: 1.25fr 1fr;
    gap: 18px;
  }
  .donut-area {
    gap: 16px;
  }
  .donut {
    width: 115px;
    height: 115px;
  }
  .donut:before {
    inset: 15px;
  }
  .card-header {
    padding: 20px;
  }
  .card-body {
    padding: 0 20px 20px;
  }
  .chart-wrap {
    padding-inline: 20px;
  }
  .play-grid {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
  }
  .play-form {
    padding: 20px;
  }
  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .group-summary {
    gap: 10px;
  }
  .group-summary > div {
    padding: 15px;
  }
  .group-summary small {
    font-size: 9px;
  }
  .group-rate {
    font-size: 17px;
  }
  .group-summary .discount {
    display: none;
  }
  .auth-story {
    padding-inline: 37px;
  }
  .auth-form-side {
    padding-inline: 37px;
  }
  .balance-number {
    font-size: 37px;
  }
  .budget-row {
    align-items: flex-start;
    gap: 15px;
  }
  .budget-input {
    max-width: 300px;
  }
  .docs-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (max-width: 980px) {
  .grid-2,
  .equal-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }
  .metric {
    padding: 20px 23px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .donut-area {
    padding: 0;
    max-width: 430px;
    gap: 28px;
  }
  .chart {
    height: 190px;
  }
  .group-summary {
    grid-template-columns: 1fr;
  }
  .group-summary > div {
    padding: 12px 17px;
  }
  .group-summary .discount {
    display: inline;
  }
  .play-grid {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 14px;
  }
  .play-form {
    padding: 16px;
  }
  .result-stage {
    padding: 15px;
    min-height: 340px;
  }
  .result-image {
    max-height: 360px;
  }
  .examples {
    grid-template-columns: repeat(2, 1fr);
  }
  .billing-top,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .balance-card {
    padding: 23px;
  }
  .balance-card p {
    margin-bottom: 20px;
  }
  .balance-number {
    margin-top: 7px;
    font-size: 37px;
  }
  .budget-row {
    flex-direction: column;
  }
  .budget-input {
    max-width: none;
  }
  .top-actions {
    gap: 14px;
  }
  .header-balance > span {
    display: none;
  }
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 28px;
  }
  .auth-story {
    padding-inline: 30px;
  }
  .auth-form-side {
    padding-inline: 30px;
  }
  .auth-intro h1 {
    font-size: 32px;
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    width: 250px;
    padding: 24px 16px;
    box-shadow: 12px 0 45px #10214515;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar.open + .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #12244755;
    z-index: 25;
  }
  .icon-btn.sidebar-close {
    display: flex;
    position: absolute;
    top: 25px;
    right: 13px;
  }
  .shell-main {
    margin-left: 0;
  }
  .icon-btn.menu-toggle {
    display: flex;
  }
  .topbar {
    height: 65px;
    padding: 0 19px;
    gap: 10px;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 11px;
    gap: 8px;
  }
  .breadcrumb > span:first-child,
  .breadcrumb > .crumb-sep {
    display: none;
  }
  .top-actions {
    gap: 12px;
  }
  .top-help {
    display: none;
  }
  .header-balance strong {
    font-size: 12px;
    margin: 0;
  }
  .preview-badge {
    font-size: 9px;
    padding: 3px 6px;
  }
  .top-avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  main {
    padding: 27px 20px 20px;
  }
  .footer {
    padding: 18px 20px 24px;
    align-items: flex-start;
    flex-direction: column;
    font-size: 9px;
    gap: 9px;
  }
  .page-heading {
    margin-bottom: 21px;
  }
  .page-heading p {
    font-size: 12px;
    line-height: 1.7;
    max-width: 420px;
  }
  h1 {
    font-size: 27px;
  }
  .page-actions {
    gap: 7px;
  }
  .page-actions .btn {
    font-size: 11px;
    min-height: 37px;
    padding: 9px 12px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 7px;
  }
  .play-grid {
    grid-template-columns: 1fr;
  }
  .play-form {
    padding: 21px;
  }
  .result-stage {
    min-height: 300px;
  }
  .result-image {
    max-width: 370px;
  }
  .examples {
    grid-template-columns: repeat(4, 1fr);
  }
  .example span {
    font-size: 9px;
    padding: 8px;
  }
  .group-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }
  .group-summary > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 13px;
  }
  .group-summary > div > span:last-child {
    margin-left: 0;
  }
  .group-summary .discount {
    display: none;
  }
  .group-summary small {
    font-size: 9px;
  }
  .group-summary strong {
    font-size: 11px;
  }
  .group-rate {
    font-size: 18px;
  }
  .quick-start {
    padding: 17px;
    gap: 13px;
  }
  .quick-start h3 {
    font-size: 12px;
  }
  .quick-start p {
    font-size: 11px;
  }
  .quick-start > .btn {
    font-size: 10px;
    padding: 9px;
  }
  .quick-start .icon-box {
    display: none;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-form-side {
    min-height: 100dvh;
    padding: 90px 25px 35px;
  }
  .auth-form-side > .preview-badge {
    top: 27px;
    right: 24px;
  }
  .auth-mobile-brand {
    display: inline-flex;
    position: absolute;
    top: 23px;
    left: 24px;
    font-size: 21px;
  }
  .auth-mobile-brand svg {
    width: 28px;
    height: 28px;
  }
  .auth-form {
    max-width: 380px;
  }
  .auth-form h2 {
    font-size: 27px;
  }
  .auth-bottom {
    margin-top: 24px;
  }
  .docs-grid {
    gap: 19px;
  }
  .price-tabs {
    flex-wrap: wrap;
  }
  .filter-grid {
    padding: 17px 17px 0;
  }
  .date-row {
    padding: 15px 17px;
  }
  .toolbar {
    padding: 15px 17px;
  }
  .toolbar .search {
    max-width: none;
  }
  .status-banner {
    padding: 18px;
    gap: 12px;
  }
  .status-banner h2 {
    font-size: 15px;
  }
  .status-banner .tag {
    display: none;
  }
  .uptime-row {
    padding: 20px;
  }
  .bar-chart {
    gap: 10px;
  }
}
@media (max-width: 430px) {
  main {
    padding-inline: 16px;
  }
  .topbar {
    padding-inline: 12px;
  }
  .top-actions {
    gap: 9px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .top-avatar {
    display: none;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 15px;
  }
  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .page-heading .page-actions:empty {
    display: none;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-foot {
    font-size: 10px;
  }
  .card-header {
    padding: 18px;
    gap: 10px;
  }
  .card-header h2 {
    font-size: 15px;
  }
  .card-body {
    padding: 0 18px 20px;
  }
  .chart-wrap {
    padding-inline: 18px;
  }
  .card-footer {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar-right {
    margin-left: 0;
  }
  .filter-grid {
    gap: 10px;
  }
  .filter-grid label:first-child {
    grid-column: 1/-1;
  }
  .date-row {
    gap: 7px;
  }
  .date-row input {
    min-width: 0;
    width: calc(50% - 17px);
    padding-inline: 6px;
    font-size: 11px;
  }
  .date-row .text-link {
    margin-left: 0;
  }
  .pagination {
    padding: 13px;
    font-size: 10px;
  }
  .pagination .btn {
    padding: 6px;
    font-size: 10px;
    min-height: 29px;
  }
  .pagination .page-num {
    height: 26px;
    min-width: 25px;
  }
  .examples {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-start {
    align-items: flex-start;
    flex-direction: column;
  }
  .quick-start > .btn {
    margin-left: 0;
  }
  .result-meta {
    padding: 13px 17px;
    gap: 10px;
    font-size: 10px;
  }
  .group-summary > div {
    padding: 12px 10px;
  }
  .group-summary small {
    font-size: 8px;
  }
  .modal-head {
    padding: 22px 21px 16px;
  }
  .modal-body {
    padding: 0 21px 23px;
  }
  .group-option {
    gap: 9px;
    padding: 11px;
  }
  .group-option small {
    font-size: 9px;
  }
  .group-option > .rate-info small {
    font-size: 8px;
  }
  .modal-head h2 {
    font-size: 19px;
  }
  .amount-grid {
    gap: 7px;
  }
  .topup-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .budget-input {
    gap: 8px;
  }
  .price-tabs {
    gap: 12px;
  }
  .price-group {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .segmented button {
    padding: 7px 10px;
  }
  .detail-list {
    gap: 16px 12px;
  }
  .footer {
    padding-inline: 16px;
  }
  .chart {
    height: 175px;
  }
  .donut-area {
    gap: 20px;
  }
  .donut {
    width: 115px;
    height: 115px;
  }
  .donut strong {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.sidebar {
  overflow-y: auto;
}
.footer-links .icon {
  width: 11px;
  height: 11px;
}
.top-avatar {
  display: grid;
  place-items: center;
}
.eyebrow {
  color: var(--blue) !important;
}
@media (max-width: 430px) {
  .top-avatar {
    display: none;
  }
}

.table-scroll {
  position: relative;
  max-width: 100%;
}
.card,
.play-grid > div,
.docs-grid > div {
  min-width: 0;
}
.sr-only {
  clip-path: inset(50%);
}

@media (max-width: 600px) {
  .key-table {
    white-space: normal;
  }
  .key-table thead {
    display: none;
  }
  .key-table tbody {
    display: block;
  }
  .key-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    padding: 20px;
    position: relative;
    border-bottom: 1px solid var(--line);
  }
  .key-table tr:last-child {
    border: 0;
  }
  .key-table td {
    padding: 0;
    border: 0;
    min-width: 0;
    font-size: 12px;
  }
  .key-table td:first-child {
    grid-column: 1/-1;
    padding-right: 65px;
  }
  .key-table td:first-child strong {
    font-size: 14px;
  }
  .key-table td:nth-child(2) {
    grid-column: 1/-1;
    margin-top: -6px;
    margin-bottom: 4px;
  }
  .key-table td:last-child {
    position: absolute;
    top: 15px;
    right: 12px;
  }
  .key-table td[data-label]:before {
    content: attr(data-label);
    font-size: 10px;
    color: var(--muted);
    display: block;
    margin-bottom: 5px;
  }
  .key-table td[colspan] {
    grid-column: 1/-1;
    position: static;
    padding: 0;
  }
  .key-table .empty {
    padding: 24px 10px;
  }
  .key-table td small {
    font-size: 10px;
  }
  .toolbar .search {
    min-width: 100%;
  }
  .key-cell code {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  input,
  textarea,
  select {
    font-size: 16px;
    min-height: 44px;
  }
  .check-label input,
  .check-row input,
  .group-option input {
    min-height: 0;
  }
  .date-row input {
    font-size: 13px;
    min-height: 40px;
  }
  .filter-grid select {
    font-size: 13px;
  }
  .topup-actions label {
    width: 100%;
  }
  .auth-form input {
    min-height: 46px;
  }
  .modal-body .input-row {
    gap: 12px;
  }
  .price-group select {
    font-size: 13px;
  }
  .search .icon {
    top: 14px;
  }
  .result-meta .btn {
    min-height: 36px;
  }
  .breadcrumb {
    min-width: 0;
  }
  .breadcrumb span:last-child {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

/* English calendar and shared API model identity. */
.provider {
  gap: 10px;
}
.provider-mark {
  flex: none;
  background: #fff !important;
  color: var(--ink);
  border: 1px solid var(--line);
}
.provider-logo {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}
.model-text {
  min-width: 0;
}
.model-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font:
    500 12px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  text-align: left;
  max-width: 100%;
}
.model-copy > .icon {
  width: 13px;
  height: 13px;
  flex: none;
  color: #91a0ba;
  opacity: 0.55;
}
.model-copy:hover,
.model-copy:focus-visible {
  color: var(--blue);
}
.model-copy:hover > .icon,
.model-copy:focus-visible > .icon {
  opacity: 1;
  color: var(--blue);
}
.model-copy:focus-visible {
  outline: 2px solid #aebeff;
  outline-offset: 3px;
  border-radius: 4px;
}
.model-text > small {
  margin-top: 0;
}
.model-select {
  display: flex;
  position: relative;
  align-items: center;
  min-width: 0;
  gap: 5px;
}
.model-select select {
  width: 100%;
  min-width: 0;
  padding-left: 34px;
  font-size: 11px;
  text-overflow: ellipsis;
}
.model-select > .icon-btn {
  flex: none;
}
.select-provider {
  position: absolute;
  left: 10px;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.select-provider .provider-logo,
.select-provider .icon {
  height: 16px;
  width: 16px;
}
.filter-grid .model-select {
  min-width: 0;
}
.date-button {
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
  color: var(--ink);
}
.date-button:hover {
  border-color: #a6b7f6;
}
.date-button .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
dialog.calendar-dialog {
  width: 354px;
  max-width: calc(100vw - 28px);
}
.calendar-dialog .modal-head {
  padding: 23px 23px 12px;
}
.calendar-dialog .modal-head h2 {
  font-size: 18px;
}
.calendar-dialog .modal-body {
  padding: 0 23px 20px;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 16px;
}
.calendar-nav h3 {
  font-size: 14px;
  font-weight: 600;
}
.rotate-180 {
  transform: rotate(180deg);
}
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}
.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.calendar-day {
  border: 0;
  background: transparent;
  border-radius: 9px;
  aspect-ratio: 1;
  color: var(--ink);
  font-size: 12px;
  min-width: 0;
}
.calendar-day.outside {
  color: #a6b0c3;
}
.calendar-day.in-range {
  background: #eff3ff;
  color: var(--blue);
}
.calendar-day:hover {
  background: #e2e9ff;
  color: var(--blue);
}
.calendar-day.selected {
  background: var(--blue);
  color: white;
}
.calendar-day:focus-visible {
  outline: 2px solid #91a8ff;
  outline-offset: 1px;
}
.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 15px;
  font-size: 10px;
  color: var(--muted);
}
.calendar-footer .text-link {
  font-size: 11px;
}
.group-rate {
  white-space: nowrap;
  font-size: 19px;
}
.group-summary > div {
  min-width: 0;
}
.group-summary > div > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.group-option > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rate-info {
  flex: none;
}
.detail-list .model-copy span {
  overflow-wrap: anywhere;
}
.detail-list .provider {
  white-space: normal;
}
[aria-invalid='true'] {
  border-color: #ca6c71 !important;
}
@media (max-width: 760px) {
  .model-select select {
    min-height: 44px;
    font-size: 12px;
  }
  .model-copy {
    min-height: 30px;
  }
  .date-button {
    min-height: 40px;
  }
  .group-rate {
    font-size: 18px;
  }
  .calendar-nav .icon-btn {
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 430px) {
  .date-row {
    gap: 7px;
  }
  .date-row > .icon {
    display: none;
  }
  .date-button {
    flex: 1;
    gap: 5px;
    padding: 8px;
    font-size: 11px;
  }
  .date-row > .btn,
  .date-row > .text-link {
    margin-top: 5px;
  }
  .date-row > .text-link {
    margin-left: auto;
  }
  .calendar-dialog .modal-body {
    padding-inline: 18px;
  }
  .calendar-dialog .modal-head {
    padding-inline: 18px;
  }
  .group-rate {
    font-size: 16px;
  }
  .model-select select {
    font-size: 11px;
  }
  .detail-list .provider-mark {
    width: 28px;
    height: 28px;
  }
  .detail-list .model-copy {
    font-size: 11px;
  }
}
/* Production states extend the approved XMH customer layout. */
.loading-page {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.loading-spinner {
  width: 25px;
  height: 25px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: xmh-spin 0.7s linear infinite;
}
@keyframes xmh-spin {
  to {
    transform: rotate(360deg);
  }
}
.error-banner,
.form-error {
  color: #a32e3a;
  background: #fff3f4;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
}
.form-error:empty {
  display: none;
}
.success-message {
  padding: 15px;
  background: #effaf5;
  border-radius: 10px;
  color: var(--green);
}
.sign-out {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}
.workspace > div {
  min-width: 0;
}
.workspace strong,
.workspace span:not(.avatar) {
  overflow-wrap: anywhere;
}
.pricing-table td {
  vertical-align: top;
}
.pricing-table td strong:not(:first-child) {
  display: block;
  margin-top: 12px;
}
.social-buttons {
  display: grid;
  gap: 10px;
}
.social-buttons .btn {
  min-height: 45px;
}
.social-buttons img {
  width: 19px;
  height: 19px;
}
.auth-form form .btn {
  margin-top: 16px;
}
.auth-form .auth-switch {
  margin-top: 20px;
}
.detail-json {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--body);
}
.endpoint {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px 0;
}
.guide-steps {
  padding-left: 20px;
  line-height: 2.1;
  font-size: 13px;
  color: var(--body);
}
.docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
}
.code-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 520px;
  overflow: auto;
}
.result-stage:has(.result-image) {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}
.result-image {
  max-height: 620px;
  object-fit: contain;
}
.footer-links {
  flex-wrap: wrap;
}
.bar-chart {
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 250px;
  padding-bottom: 28px;
}
.bar {
  min-width: 28px;
}
.bar span {
  bottom: -23px;
}
.bar small {
  display: none;
}
.modal-body .modal-actions {
  margin-top: 20px;
}
.price-note {
  overflow-wrap: anywhere;
}
.auth-art img {
  object-fit: cover;
}
.auth-page main {
  min-height: 0;
}
.auth-form-side {
  min-width: 0;
}
.check-label {
  align-items: flex-start;
}
.form-error {
  margin-block: 12px;
}
@media (max-width: 980px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .group-summary {
    display: grid;
  }
  .result-image {
    max-height: 420px;
  }
  .auth-story {
    display: none;
  }
  .auth-page {
    display: block;
  }
  .auth-form-side {
    min-height: 100vh;
  }
  .bar-chart {
    gap: 7px;
  }
  .price-tabs {
    align-items: flex-start;
  }
  .footer-links {
    gap: 12px;
  }
  .table-actions .icon-btn {
    width: 38px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
  }
  .sidebar,
  .bar-fill,
  .btn {
    transition: none;
  }
}
