@import url("./tokens.css");
.wide-table {
  min-width: 650px;
}
.top-actions button {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (min-width: 761px) and (max-width: 1000px) {
  .grid2 {
    grid-template-columns: 1fr !important;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button,
a {
  cursor: pointer;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 9px 15px;
  color: var(--ink);
  font-weight: 550;
  transition: background 0.15s;
}
button:hover {
  background: #f1f2fa;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary,
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.primary:hover {
  background: #5144ce;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b3abff;
  outline-offset: 1px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 550;
}
label small,
small,
.muted {
  font-weight: 400;
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  line-height: 1.3;
  margin-bottom: 7px;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 14px;
}
p {
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.9px;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 10px;
  color: white;
  font-size: 22px;
  font-weight: 800;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1px;
  background: #f1f0ff;
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--accent);
}
.sidebar-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9b9cae;
  text-transform: uppercase;
  margin: 35px 13px 12px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #63667d;
  padding: 10px 13px;
  border-radius: 8px;
  font-weight: 500;
}
.nav a:hover {
  background: #f7f7fc;
}
.nav a.selected {
  background: #eeecff;
  color: var(--accent);
  font-weight: 650;
}
.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.workspace-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.avatar {
  background: #efedff;
  color: var(--accent);
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 650;
  flex-shrink: 0;
}
.identity {
  overflow: hidden;
}
.identity span {
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.side-link {
  display: block;
  margin: 15px 10px;
  color: var(--muted);
  font-size: 12px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: #ffffffc9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 16px;
}
.crumb {
  color: var(--muted);
  font-size: 12px;
}
.crumb strong {
  color: var(--ink);
  font-weight: 550;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-actions select {
  font-size: 12px;
  padding: 6px 10px;
  border-color: transparent;
  background: transparent;
}
.live {
  font-size: 11px;
  color: #718079;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #38a77a;
  display: inline-block;
}
.content {
  max-width: 1600px;
  margin: auto;
  padding: 32px 36px 50px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.page-head p {
  margin: 0;
  font-size: 13px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}
.filters select,
.filters input {
  font-size: 12px;
  min-width: 135px;
}
.filters .right {
  margin-left: auto;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 3px #25255003;
}
.stat {
  padding: 21px 23px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.stat-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #f2f0ff;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 15px;
}
.stat strong {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.2;
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 11px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.card {
  padding: 23px;
  min-width: 0;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.card-heading h2 {
  margin: 0;
}
.tag {
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  white-space: nowrap;
}
.pill {
  display: inline-block;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  background: #f1f2f8;
  color: #6a6e86;
  white-space: nowrap;
}
.pill.active,
.pill.published,
.pill.processed,
.pill.paid {
  color: #19855e;
  background: #e9f8f0;
}
.pill.draft,
.pill.pending,
.pill.needs_review {
  color: #ab791d;
  background: #fff5dc;
}
.pill.suspended,
.pill.retired {
  color: #bb5266;
  background: #fff0f3;
}
.empty {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  border: 1px dashed #e2e3ed;
  border-radius: 9px;
  background: linear-gradient(180deg, #fdfdff, white);
}
.empty-icon {
  height: 40px;
  width: 40px;
  border-radius: 12px;
  background: #f2f0ff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 13px;
}
.empty strong {
  font-size: 13px;
  font-weight: 550;
}
.empty p {
  max-width: 350px;
  font-size: 12px;
  margin: 6px 0 0;
}
.subtle {
  font-size: 11px;
  color: var(--muted);
  margin: 14px 0 0;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.metric-strip strong {
  font-size: 24px;
  font-weight: 600;
  display: block;
  margin: 10px 0 3px;
}
.metric-strip > div + div {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border: 1px solid #e4dfff;
  background: #f1efff;
  border-radius: 10px;
  font-size: 12px;
  color: #625497;
  margin-bottom: 22px;
}
.notice p {
  color: inherit;
  margin: 0;
}
.notice.warning {
  background: #fff9ea;
  border-color: #f3e8cd;
  color: #8f733c;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 550;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  background: #fcfcfe;
  white-space: nowrap;
}
td {
  padding: 14px 12px;
  border-bottom: 1px solid #f0f0f6;
  max-width: 340px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  display: block;
  font-weight: 550;
}
td small {
  font-size: 10px;
}
td button {
  padding: 5px 9px;
  font-size: 11px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row.spread {
  justify-content: space-between;
}
.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  font-size: 12px;
}
.country-row {
  display: grid;
  grid-template-columns: 140px minmax(20px, 1fr) 45px;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #f1f1f6;
  font-size: 12px;
}
.country-row:last-child {
  border: 0;
}
.country-row strong {
  text-align: right;
  font-weight: 550;
}
progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 10px;
  background: #f0eefb;
}
progress::-webkit-progress-bar {
  background: #f0eefb;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: #887aec;
  border-radius: 10px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.plan {
  position: relative;
  padding: 25px;
}
.plan .price {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 20px 0 0;
  font-weight: 650;
}
.plan .quota {
  padding: 15px 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.plan ul {
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}
.plan li:before {
  content: "✓";
  color: var(--accent);
  margin-right: 8px;
}
.plan button {
  width: 100%;
  margin-top: 14px;
}
.banner-preview {
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(120deg, #eeebff, #f4f1ff 70%, #e4e1fc);
  border: 1px solid #e4defb;
  margin-bottom: 18px;
}
.banner-preview h2 {
  font-size: 19px;
  margin-bottom: 8px;
}
.banner-preview p {
  font-size: 13px;
}
.banner-preview a {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 13px;
  border-radius: 7px;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.form-error {
  color: #b54860;
  background: #fff0f3;
  padding: 10px;
  border-radius: 7px;
  font-size: 12px;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 28px;
  width: min(680px, calc(100% - 32px));
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 30px 100px #28264430;
}
dialog::backdrop {
  background: #19152e55;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
  margin-bottom: 6px;
}
dialog p {
  font-size: 12px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: #f8f8fc;
  padding: 15px;
  border-radius: 8px;
  color: #68667e;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.auth-hero {
  background: #eeeaff;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 45px 60px;
  overflow: hidden;
}
.auth-hero .hero-copy {
  margin: auto 0;
  max-width: 520px;
  position: relative;
  z-index: 1;
}
.auth-hero h1 {
  font-size: 54px;
  line-height: 1.12;
  letter-spacing: -2.5px;
  margin-bottom: 25px;
}
.auth-hero p {
  font-size: 17px;
  max-width: 350px;
  color: #6d6687;
}
.hero-art {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 12px;
  margin: 40px 0;
  transform: rotate(-8deg);
}
.hero-art span {
  height: 96px;
  border: 3px solid #a69be1;
  border-radius: 13px;
  background: #f6f3ff;
  box-shadow: 5px 7px 0 #d9d2f6;
  display: grid;
  place-items: center;
  color: #8b7dc1;
  font-size: 24px;
}
.hero-art span:nth-child(2) {
  transform: translateY(-14px);
  background: #6b5bdd;
  color: white;
  border-color: #5e4ccc;
}
.auth-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}
.auth-side > select {
  position: absolute;
  top: 35px;
  right: 35px;
}
.auth-form {
  width: 100%;
  max-width: 360px;
}
.auth-form h1 {
  font-size: 32px;
}
.auth-form > p {
  font-size: 13px;
  margin-bottom: 28px;
}
.auth-form form {
  display: grid;
  gap: 17px;
}
.auth-form form button {
  margin-top: 3px;
  padding: 12px;
}
.auth-form .auth-links {
  margin-top: 25px;
  font-size: 12px;
  text-align: center;
}
.auth-footer {
  font-size: 11px;
  color: #8b83a1;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 60vh;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 13px 20px;
  border-radius: 9px;
  background: #252239;
  color: white;
  box-shadow: 0 8px 30px #14132630;
  max-width: 450px;
  z-index: 30;
  font-size: 13px;
}
#toast:empty {
  display: none;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.spacer {
  height: 20px;
}
.error-page {
  padding: 80px;
  max-width: 800px;
  margin: auto;
}
.status-list {
  display: grid;
  gap: 18px;
}
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.status-line:last-child {
  border: 0;
  padding-bottom: 0;
}
.mobile-brand {
  display: none;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 42px;
  }
  .stats {
    gap: 22px;
  }
  .stat {
    padding: 25px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .live {
    display: none;
  }
  .auth-hero {
    padding: 40px;
  }
  .auth-hero h1 {
    font-size: 42px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    padding: 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    margin-top: 16px;
    gap: 5px;
  }
  .nav a {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 11px;
  }
  .nav-icon {
    display: none;
  }
  .topbar {
    height: 56px;
    padding: 0 17px;
  }
  .content {
    padding: 24px 17px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head > button {
    font-size: 11px;
    padding: 8px;
    flex-shrink: 0;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stats {
    gap: 11px;
  }
  .stat-label {
    font-size: 11px;
  }
  .card {
    padding: 18px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .auth-shell {
    display: block;
  }
  .auth-hero {
    display: none;
  }
  .auth-side {
    min-height: 100vh;
    padding: 70px 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: 1;
  }
  .filters select,
  .filters input {
    min-width: 0;
    flex: 1;
  }
  .filters .right {
    margin: 0;
  }
  .notice {
    align-items: flex-start;
  }
  .metric-strip strong {
    font-size: 19px;
  }
  .country-row {
    grid-template-columns: 110px 1fr 35px;
  }
  .error-page {
    padding: 40px 20px;
  }
}
