@import url("/styles.css");
:root {
  --lime: #d5ff63;
  --bg: #0b0e0c;
  --panel: #141916;
  --line: #2a342d;
  --muted: #a2afa6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #f0f4ef;
  font-family: Inter, Arial, sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.18s,
    color 0.18s;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 12px 0 16px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
.muted,
small {
  color: var(--muted);
}
.tag {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
}
.pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.pill.green {
  color: var(--lime);
  background: #d5ff630b;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 12px 16px;
  color: #eff4ee;
  background: #202920;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.btn:hover {
  background: #303d30;
}
.btn.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #17200f;
}
.btn.primary:hover {
  background: #e5ffad;
}
.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}
.btn.link {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand img {
  width: 36px;
  height: 36px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  padding: 50px max(40px, 7vw);
  background: radial-gradient(ellipse at bottom left, #273920, var(--bg) 70%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}
.auth-story h1 {
  font-size: clamp(42px, 5vw, 74px);
  max-width: 560px;
}
.auth-story h1 span {
  color: var(--lime);
}
.auth-story p {
  max-width: 440px;
  color: var(--muted);
}
.auth-story .mini-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.mini-preview div {
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111a12;
}
.mini-preview b {
  display: block;
  font-size: 22px;
  margin: 10px 0;
}
.mini-preview small {
  font-size: 11px;
}
.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 48px 32px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
.auth-card h1 {
  font-size: 34px;
}
.form-stack {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #dfe8df;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  background: #0c110d;
  border: 1px solid #354138;
  color: #f2f6ef;
  padding: 13px;
  border-radius: 9px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px #d5ff6319;
}
textarea {
  min-height: 90px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
  font-weight: 400;
}
.check input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--lime);
}
.role-options {
  display: grid;
  gap: 10px;
}
.role-option {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  background: #141b14;
}
.role-option:has(input:checked) {
  border-color: var(--lime);
  background: #d5ff6308;
}
.role-option b {
  display: block;
  color: #fff;
  margin-bottom: 3px;
}
.error {
  color: #ffc1ae;
  font-size: 14px;
}
.notice {
  padding: 15px 18px;
  border: 1px solid #54603a;
  background: #d5ff6307;
  border-radius: 12px;
  color: #d1dcbf;
  font-size: 13px;
  line-height: 1.6;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 27px 18px;
  display: flex;
  flex-direction: column;
  background: #0f1410;
}
.sidebar .brand {
  margin-bottom: 35px;
}
.workspace-name {
  font-size: 12px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 10px 12px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 13px 15px;
  border-radius: 9px;
  font-size: 14px;
}
.nav-item:hover {
  color: #fff;
  background: #182019;
}
.nav-item.active {
  color: var(--lime);
  background: #d5ff630d;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 15px 10px;
}
.sidebar-bottom small {
  overflow-wrap: anywhere;
}
.main {
  padding: 0 42px 50px;
  min-width: 0;
  max-width: 1550px;
  width: 100%;
  margin: auto;
}
.topbar {
  min-height: 85px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  margin-bottom: 32px;
}
.topbar select {
  max-width: 190px;
  padding: 9px;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0;
}
.page-title p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 14px;
}
.switch {
  display: flex;
  padding: 4px;
  background: #1a211b;
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 3px;
  width: fit-content;
  margin: 23px 0;
}
.switch button {
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  font-size: 13px;
}
.switch .active {
  background: #35412c;
  color: #eff9db;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  min-width: 0;
}
.metric small {
  font-size: 12px;
}
.metric strong {
  display: block;
  font-size: 31px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 15px 0 8px;
}
.metric .delta {
  font-size: 11px;
  color: var(--lime);
}
.grid-two {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 22px;
}
.chart {
  width: 100%;
  height: 190px;
  display: block;
}
.axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.chart-empty {
  min-height: 212px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  background: repeating-linear-gradient(
    0deg,
    transparent 0 49px,
    #ffffff05 49px 50px
  );
}
.steps {
  display: grid;
  gap: 18px;
}
.step {
  display: flex;
  gap: 13px;
  align-items: start;
  font-size: 13px;
}
.step i {
  font-style: normal;
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--lime);
}
.step p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.section-space {
  margin-top: 25px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}
td,
th {
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
tr:last-child td {
  border-bottom: 0;
}
.record-list {
  display: grid;
  gap: 14px;
}
.record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.record h3 {
  margin: 0 0 5px;
}
.record p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 45px 25px;
  text-align: center;
  border: 1px dashed #3d493d;
  border-radius: 14px;
}
.empty p {
  font-size: 14px;
  color: var(--muted);
  margin: 10px auto 22px;
  max-width: 420px;
}
.creative-preview {
  background: linear-gradient(125deg, #1c2d20, #344326);
  min-height: 230px;
  border-radius: 13px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.creative-preview h2 {
  font-size: 30px;
  max-width: 400px;
}
.creative-preview img,
.creative-preview video {
  max-width: 100%;
  max-height: 230px;
  object-fit: contain;
}
.code {
  background: #080d09;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.65;
  color: #c5e4a7;
}
.secret {
  border-color: var(--lime);
}
.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.loading {
  padding: 60px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 16px 23px;
  border: 1px solid var(--lime);
  border-radius: 12px;
  background: #253221;
  color: #f3ffdf;
  box-shadow: 0 10px 40px #0006;
  max-width: 90vw;
}
dialog {
  width: min(620px, calc(100% - 30px));
  max-height: 90vh;
  padding: 32px;
  background: #141b15;
  color: #f0f5ef;
  border: 1px solid #46543e;
  border-radius: 20px;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(5px);
}
.close {
  float: right;
  background: transparent;
  color: #bbb;
  border: 0;
  font-size: 25px;
  margin: -12px -10px 5px 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -60px;
  z-index: 110;
  background: var(--lime);
  color: #111;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
.footer-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 35px;
}
summary {
  cursor: pointer;
}
details p {
  font-size: 13px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.honeypot {
  position: absolute;
  left: -10000px;
}
.status-dot {
  width: 6px;
  height: 6px;
}
.full {
  width: 100%;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.chart-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
}
.mobile-brand {
  display: none;
}
@media (max-width: 1100px) {
  .main {
    padding: 0 24px 35px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .auth-story > div:not(:first-child),
  .auth-story > p {
    display: none;
  }
  .auth-form-wrap {
    padding: 32px 24px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0 0 18px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .nav-item {
    white-space: nowrap;
    padding: 10px;
  }
  .sidebar-bottom,
  .workspace-name {
    display: none;
  }
  .main {
    padding: 0 18px 30px;
  }
  .topbar {
    min-height: 70px;
    margin-bottom: 20px;
  }
  .page-title {
    display: block;
    margin: 24px 0;
  }
  .page-title > .btn {
    margin-top: 16px;
  }
  .metrics {
    gap: 10px;
  }
  .card {
    padding: 18px;
  }
  .metric strong {
    font-size: 27px;
  }
  .metric small {
    font-size: 11px;
  }
  .doc-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .record {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 34px;
  }
  .pill {
    font-size: 10px;
  }
  .topbar .actions {
    gap: 6px;
  }
  .topbar .actions .pill {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.creative-count { color:var(--lime);font-size:12px;margin:14px 0; }
.creative-gallery { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0; }
.creative-gallery figure { min-width:0;margin:0;padding:8px;border:1px solid var(--line);border-radius:12px; }
.creative-gallery img { width:100%;height:90px;object-fit:cover;border-radius:7px; }
.creative-gallery figcaption { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;margin:6px 0; }
.creative-slot { display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:160px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:24px; }
.creative-slot small { font-size:10px;margin-top:5px; }
.unsupported-creative { min-height:90px;font-size:12px; }
.rotation-ad { position:relative;overflow:hidden;border-radius:14px;margin:16px 0;min-height:160px;background:#171d18; }
.rotation-ad img { width:100%;height:240px;object-fit:contain;display:block; }
.rotation-label { position:absolute;top:12px;right:12px;background:#121812e6;color:#d5ff63;border-radius:99px;padding:6px 10px;font-size:12px; }
.rotation-slider { position:relative;margin:20px 10px; }
.rotation-slider input { width:100%;height:40px;accent-color:#d5ff63;position:relative;z-index:1; }
.rotation-slider span { position:absolute;top:-3px;bottom:-3px;width:28px;transform:translateX(-50%);border:2px dashed #d5ff63;border-radius:8px; }
@media(max-width:500px){ .creative-gallery{grid-template-columns:repeat(2,minmax(0,1fr))} }
