:root {
  --ink: #172934;
  --muted: #71808b;
  --line: #e4e9e9;
  --paper: #f5f7f6;
  --green: #c7f36b;
  --dark: #10232c;
  --teal: #346b60;
  --white: #fff;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
}
button {
  border: 0;
}
button.primary,
.btn.primary {
  background: var(--dark);
  color: white;
  border: 1px solid var(--dark);
}
button.primary:hover {
  background: #29444c;
}
button.lime {
  background: var(--green);
  color: var(--dark);
}
button,
.btn {
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
}
button:hover,
.btn:hover {
  background: #f0f4f1;
}
button.small {
  padding: 7px 10px;
  font-size: 12px;
}
button.quiet {
  background: transparent;
  border: 0;
  color: var(--muted);
}
button.danger {
  color: #a13636;
  border-color: #e7c5c5;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce3e1;
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 14px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 7px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  margin-bottom: 9px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand span em {
  font-style: normal;
  font-weight: 400;
  color: #a5b3b7;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: var(--dark);
  color: #dce5e6;
  display: flex;
  flex-direction: column;
  padding: 33px 20px 22px;
}
.sidebar .brand {
  padding-left: 8px;
  color: white;
}
.workspace {
  margin: 33px 6px 25px;
  border: 1px solid #33434b;
  border-radius: 9px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.workspace .avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: #2d4547;
  color: var(--green);
  font-weight: 700;
}
.workspace small {
  color: #91a3aa;
  font-size: 10px;
  display: block;
  margin-top: 3px;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #789099;
  padding: 0 14px;
  margin: 8px 0 12px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  background: none;
  border: 0;
  justify-content: flex-start;
  color: #a5b6bd;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
}
.nav button.active {
  background: #293d43;
  color: var(--green);
}
.nav .symbol {
  font-size: 17px;
  width: 21px;
  text-align: center;
}
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid #2b4049;
  padding: 20px 10px 0;
}
.sidebar-footer p {
  font-size: 11px;
  color: #9aafb6;
  margin-bottom: 12px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  display: inline-block;
  border-radius: 100%;
  margin-right: 7px;
}
.sidebar-footer button {
  color: #a9bec5;
}
.main {
  margin-left: 232px;
  min-height: 100vh;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  background: #fff;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  color: var(--ink);
  margin-left: 12px;
}
.top-actions,
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-actions .draft-status {
  font-size: 11px;
  color: var(--muted);
  margin-right: 8px;
}
.content {
  max-width: 1450px;
  margin: auto;
  padding: 36px 38px 60px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7a8b8c;
  margin: 0 0 10px;
}
.hero {
  padding: 30px 32px;
  background: var(--dark);
  border-radius: 15px;
  color: white;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  position: relative;
}
.hero h2 {
  font-size: 25px;
  max-width: 420px;
  line-height: 1.3;
  margin-bottom: 12px;
  font-weight: 550;
  letter-spacing: -0.6px;
}
.hero p {
  font-size: 12px;
  color: #b5c6c9;
  max-width: 420px;
  margin-bottom: 20px;
}
.hero .eyebrow {
  color: var(--green);
  font-size: 9px;
}
.relay-art {
  display: flex;
  align-items: center;
  gap: 15px;
  transform: rotate(-12deg);
  margin: 10px 35px;
}
.relay-art span {
  width: 75px;
  height: 75px;
  border: 1px solid #5a7777;
  border-radius: 21px;
  display: grid;
  place-items: center;
  background: #284447;
  color: var(--green);
  font-size: 32px;
}
.relay-art span:nth-child(2) {
  background: var(--green);
  color: var(--dark);
  border: 0;
}
.relay-art i {
  color: #6f9a8e;
  font-size: 27px;
  font-style: normal;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}
.card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.card {
  padding: 22px 24px;
}
.metric-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.metric {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 13px;
}
.card small {
  font-size: 11px;
}
.metric-title .symbol {
  float: right;
  color: #748e7e;
}
.panel {
  padding: 24px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.two-col .panel {
  margin-bottom: 22px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.filters label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.filters input,
.filters select {
  font-size: 11px;
  padding: 8px;
}
.filters .full {
  grid-column: 1/-1;
}
.empty {
  padding: 44px 20px;
  text-align: center;
}
.empty .empty-icon {
  font-size: 25px;
  background: #f0f5eb;
  color: #6c8d57;
  border-radius: 14px;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.empty h3 {
  margin-bottom: 7px;
  font-size: 14px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 350px;
  margin: 0 auto 18px;
}
.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 5px;
  display: inline-block;
  background: #f0f4f2;
  color: #667c72;
  white-space: nowrap;
}
.tag.green {
  background: #ecf7dc;
  color: #537326;
}
.tag.orange {
  background: #fff1dc;
  color: #997034;
}
.app-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 11px;
  background: #edf2e9;
  display: inline-grid;
  place-items: center;
  font-weight: 650;
  color: #69805d;
  flex-shrink: 0;
}
.app-icon.large {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  font-size: 24px;
}
.app-name {
  font-size: 13px;
  font-weight: 600;
}
.app-id {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
  font-family: monospace;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 0 10px 13px;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #edf0ef;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
.table-wrap {
  overflow: auto;
}
.numeric {
  text-align: right;
}
.field {
  margin-bottom: 19px;
}
.field small {
  display: block;
  margin-top: 7px;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.full {
  grid-column: 1/-1;
}
.editor {
  max-width: 820px;
}
.editor-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}
.editor-heading h2 {
  margin: 0 0 5px;
}
.editor-heading .row {
  flex-wrap: wrap;
}
.separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
.notice {
  background: #f1f6ec;
  color: #5a7351;
  font-size: 12px;
  line-height: 1.6;
  padding: 13px 16px;
  border-radius: 8px;
  margin: 16px 0;
}
.notice.warning {
  background: #fff5e7;
  color: #866b45;
}
.platform-tabs {
  display: flex;
  gap: 5px;
  background: #e9eeeb;
  border-radius: 9px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 23px;
}
.platform-tabs button {
  background: transparent;
  border: 0;
  padding: 8px 21px;
  font-size: 12px;
  color: var(--muted);
}
.platform-tabs button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #0001;
}
.sortable {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sortable li {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
}
.sortable li[draggable="true"] {
  cursor: grab;
}
.sortable li.dragging {
  opacity: 0.35;
}
.handle {
  color: #a0aaa3;
}
.list-controls {
  display: flex;
  gap: 4px;
}
.list-controls button {
  padding: 6px 9px;
}
.selection-list {
  display: grid;
  gap: 10px;
}
.selection-list label {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
}
.phone {
  width: 290px;
  max-width: 100%;
  border: 7px solid #172934;
  border-radius: 34px;
  background: #f5f7f6;
  min-height: 440px;
  padding: 25px 15px;
  margin: auto;
  box-shadow: 0 15px 40px #13272d10;
}
.phone-notch {
  width: 75px;
  height: 15px;
  background: #172934;
  border-radius: 0 0 12px 12px;
  margin: -25px auto 35px;
}
.phone h3 {
  font-size: 20px;
  margin-bottom: 25px;
}
.phone .eyebrow {
  font-size: 11px;
}
.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.promo-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px 9px;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
.promo-card .app-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
}
.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 35px;
}
.code {
  background: #11252e;
  color: #c4dcce;
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  padding: 20px;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 500px;
  overflow: auto;
  margin: 14px 0;
}
.chart {
  height: 190px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-top: 18px;
  overflow: hidden;
}
.chart .bar {
  flex: 1;
  min-width: 2px;
  background: #bedc98;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.chart .bar:hover {
  background: #78a653;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.rank {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
}
.rank:last-child {
  border: 0;
}
.rank .count {
  margin-left: auto;
  font-weight: 650;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: var(--dark);
  padding: 50px 65px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art h1 {
  font-size: 53px;
  line-height: 1.12;
  letter-spacing: -2.7px;
  max-width: 480px;
  font-weight: 500;
}
.login-art h1 em {
  color: var(--green);
  font-style: normal;
}
.login-art .relay-art {
  transform: rotate(-8deg);
  margin: 50px 0;
}
.login-art p {
  font-size: 14px;
  color: #9eb7bc;
  max-width: 350px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
  background: #fafbf9;
}
.login-inner {
  width: 350px;
}
.login-inner h2 {
  font-size: 29px;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.login-inner p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.login-inner button.primary {
  width: 100%;
  margin-top: 8px;
}
.login-inner .notice {
  font-size: 11px;
}
.login-footer {
  font-size: 10px;
  color: #8ca4a9;
}
.error {
  font-size: 12px;
  color: #a13636;
  line-height: 1.6;
  margin: 12px 0;
}
.boot {
  display: grid;
  place-items: center;
  min-height: 80vh;
  font-size: 14px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #142d30;
  color: white;
  padding: 13px 22px;
  font-size: 12px;
  border-radius: 10px;
  z-index: 20;
  box-shadow: 0 10px 30px #0002;
  display: none;
}
#toast.visible {
  display: block;
}
#toast.error-toast {
  background: #823f39;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  width: 470px;
  max-width: 92vw;
  color: var(--ink);
  box-shadow: 0 25px 80px #0002;
}
dialog::backdrop {
  background: #10232c70;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 21px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.check-row {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.settings-list p {
  font-size: 12px;
  color: var(--muted);
}
.mobile-brand {
  display: none;
}
.version {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.version:last-child {
  border: 0;
}
.version small {
  display: block;
  margin-top: 5px;
}
.back {
  margin-bottom: 18px;
}
.file-input {
  max-width: 270px;
  font-size: 12px;
}
.loading {
  opacity: 0.65;
  pointer-events: none;
}
.badge-count {
  font-size: 10px;
  border-radius: 4px;
  padding: 3px 6px;
  background: #e9efe6;
  margin-left: 5px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .hero {
    padding: 36px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .main {
    margin-left: 200px;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .relay-art {
    margin-right: 0;
    gap: 8px;
  }
  .relay-art span {
    width: 52px;
    height: 52px;
    font-size: 25px;
    border-radius: 15px;
  }
  .preview-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
  }
  .login-art {
    padding: 40px;
  }
  .login-art h1 {
    font-size: 43px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 17px 16px;
  }
  .sidebar .brand {
    font-size: 19px;
  }
  .sidebar .brand img {
    width: 30px;
    height: 30px;
  }
  .workspace,
  .nav-caption,
  .sidebar-footer {
    display: none;
  }
  .nav {
    display: flex;
    overflow-x: auto;
    margin-top: 17px;
    gap: 3px;
  }
  .nav button {
    padding: 9px;
    font-size: 11px;
    white-space: nowrap;
  }
  .nav .symbol {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 17px;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .content {
    padding: 25px 17px;
  }
  .page-head {
    align-items: flex-start;
  }
  h1 {
    font-size: 26px;
  }
  .hero {
    padding: 25px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero .relay-art {
    display: none;
  }
  .cards {
    gap: 9px;
  }
  .card {
    padding: 17px 13px;
  }
  .metric-title {
    font-size: 10px;
    min-height: 24px;
  }
  .metric {
    font-size: 27px;
  }
  .card small {
    font-size: 9px;
  }
  .two-col,
  .preview-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel {
    padding: 19px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 25px;
    min-height: 120px;
  }
  .login-art > div:not(:first-child),
  .login-art .login-footer {
    display: none;
  }
  .login-form {
    min-height: 75vh;
    padding: 30px 22px;
  }
  .phone {
    margin-top: 10px;
  }
  .tag {
    font-size: 9px;
  }
  .top-actions .draft-status {
    margin-right: auto;
  }
  .sortable li {
    padding: 9px;
  }
  .list-controls {
    gap: 2px;
  }
  .list-controls button {
    padding: 6px;
  }
  .app-icon {
    width: 36px;
    height: 36px;
  }
  .app-name {
    font-size: 12px;
  }
}
.unavailable-page {
  display: grid;
  place-items: center;
  min-height: 95vh;
  text-align: center;
  padding: 30px;
}
.unavailable-page h1 {
  margin-bottom: 15px;
}
.unavailable-page p {
  color: var(--muted);
}
dialog.bulk-dialog {
  width: 760px;
  max-height: 90vh;
}
.bulk-select {
  margin: 18px 0 !important;
}
.bulk-list {
  max-height: 42vh;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bulk-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) minmax(100px, 180px);
  gap: 13px;
  align-items: center;
  padding: 15px 3px;
  border-bottom: 1px solid var(--line);
}
.bulk-row:last-child {
  border-bottom: 0;
}
.bulk-row > input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}
.bulk-row strong {
  font-size: 13px;
  font-weight: 600;
}
.bulk-row .app-id {
  overflow-wrap: anywhere;
}
.bulk-status {
  font-size: 11px;
  text-align: right;
  line-height: 1.5;
}
.bulk-failed .bulk-status {
  color: #a13636;
}
#bulk-progress {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 760px) {
  .page-head > .row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .bulk-row {
    grid-template-columns: 20px minmax(0, 1fr);
  }
  .bulk-status {
    grid-column: 2;
    text-align: left;
  }
  .bulk-dialog .dialog-actions {
    flex-wrap: wrap;
  }
}

.app-actions { justify-content: flex-end; white-space: nowrap; }

.ad-toolbar,.ad-tabs{flex-wrap:wrap}.ad-editor>.field{grid-column:1/-1}.ad-editor>.form-grid{grid-column:1/-1}.ad-image-preview{display:block;max-width:100%;max-height:420px;object-fit:contain;border-radius:16px;margin:16px auto}.ad-preview-shell{border:1px solid var(--border,#dce3e5);border-radius:18px;padding:16px;margin-top:20px;background:#f5f7f8}.ad-playable-preview{width:100%;height:540px;border:0;background:#fff;border-radius:12px}.ad-tabs{overflow:auto}.ad-editor select[multiple]{min-height:110px}
