@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;800&display=swap");
:root {
  --ink: #172338;
  --muted: #738095;
  --blue: #255be8;
  --line: #e5eaf1;
  --bg: #f6f8fc;
  --green: #14755b;
  --font: "Manrope", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px var(--font);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #96b4ff;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: var(--blue);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
}
aside {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  letter-spacing: -1.5px;
  font-weight: 800;
}
.brandmark {
  width: 29px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.brandmark i {
  display: block;
  width: 8px;
  border-radius: 3px;
  background: var(--blue);
  height: 27px;
  transform: skewY(-20deg);
}
.brandmark i:nth-child(2) {
  height: 19px;
}
.brandmark i:nth-child(3) {
  height: 11px;
}
.workspace {
  margin: 32px 0 28px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace b {
  display: block;
}
.workspace small {
  font-size: 10px;
}
.workspace-icon {
  background: #eaf0ff;
  color: var(--blue);
  padding: 9px;
  border-radius: 7px;
  font-weight: 800;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  color: #6a7688;
  font-weight: 650;
}
.nav.active {
  background: #edf2ff;
  color: var(--blue);
}
.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #dbe6ff;
  padding: 2px 6px;
  border-radius: 5px;
}
.aside-bottom {
  margin-top: auto;
}
.hint {
  background: #f6f8fc;
  padding: 15px;
  border-radius: 10px;
  line-height: 1.6;
  font-size: 11px;
  margin-bottom: 18px;
}
.person {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
  background: var(--avatar, #e5ecff);
  color: #34465b;
}
.person small {
  display: block;
  margin-top: 3px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb strong {
  color: var(--ink);
  margin-left: 12px;
  font-weight: 600;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo {
  background: #fff5db;
  color: #886519;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}
.subtle {
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
}
.content {
  max-width: 1440px;
  margin: auto;
  padding: 32px 38px 60px;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.btn {
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover {
  background: #1948c8;
}
.btn.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.secondary:hover {
  border-color: #a8bce8;
  background: #f9fbff;
}
.btn.small {
  padding: 8px 11px;
  font-size: 11px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.campaign-banner {
  background: #eaf0fd;
  border: 1px solid #dbe5fc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 25px;
  margin-bottom: 24px;
  gap: 20px;
}
.campaign-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.campaign-symbol {
  background: var(--blue);
  color: white;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 25px;
  font-weight: 800;
}
.campaign-banner p {
  margin-top: 6px;
  font-size: 12px;
  color: #687a9d;
}
.pill {
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #edf1f7;
  color: #65758b;
}
.pill.review {
  background: #fff3d6;
  color: #94711f;
}
.pill.scheduled {
  background: #edf0fe;
  color: #5a65b0;
}
.pill.published {
  background: #e6f5ee;
  color: var(--green);
}
.pill.shortlisted {
  background: #eaf0ff;
  color: var(--blue);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px 0;
}
.metric {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric label {
  font-size: 11px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 27px;
  letter-spacing: -1px;
  margin: 8px 0 4px;
}
.metric small {
  font-size: 10px;
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 23px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.panel-head span {
  font-size: 11px;
  color: var(--muted);
}
.attention {
  padding: 19px 23px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}
.attention:last-child {
  border-bottom: 0;
}
.attention p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.attention .btn {
  margin-left: auto;
}
.calendar {
  padding: 20px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin: 17px 0 23px;
}
.week b {
  display: block;
  padding: 9px 0;
  margin-top: 6px;
  color: var(--ink);
  font-size: 12px;
  border-radius: 7px;
}
.week .today {
  background: var(--blue);
  color: #fff;
}
.event {
  position: relative;
  border-left: 2px solid #cddafd;
  padding: 0 0 18px 14px;
  margin-left: 5px;
}
.event:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #88a7f5;
  border-radius: 50%;
  left: -5px;
  top: 4px;
}
.event p {
  font-size: 11px;
  margin: 5px 0;
  color: var(--muted);
}
.event small {
  font-size: 10px;
}
.section-gap {
  margin-top: 23px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
  background: #fafbfe;
  padding: 13px 22px;
}
td {
  padding: 16px 22px;
  font-size: 12px;
  border-top: 1px solid #f0f2f6;
}
.creator-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.creator-cell small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.row-link {
  padding: 0;
  text-align: left;
  font-weight: 700;
}
.progress {
  height: 6px;
  background: #eaf0fa;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 11px;
}
.progress > span {
  height: 100%;
  display: block;
  background: var(--blue);
}
.searchbar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.searchbox {
  flex: 1;
  position: relative;
}
.searchbox .icon {
  position: absolute;
  top: 13px;
  left: 15px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid #dce3ee;
  background: #fff;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--ink);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #eaf0ff;
}
.searchbox input {
  width: 100%;
  padding-left: 44px;
}
.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.creator-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  padding: 23px;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}
.card-top .avatar {
  width: 48px;
  height: 48px;
  font-size: 14px;
}
.card-top small {
  font-size: 11px;
  display: block;
  margin-top: 4px;
}
.creator-card h3 {
  font-size: 14px;
}
.creator-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #6e7d91;
  min-height: 61px;
  margin: 14px 0;
}
.mini-metrics {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 17px;
}
.mini-metrics strong {
  display: block;
  font-size: 16px;
}
.mini-metrics small {
  font-size: 10px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-bottom > span {
  font-size: 12px;
  font-weight: 700;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 11px;
}
.filter-tab.active {
  border-color: #b9cdfa;
  background: #edf3ff;
  color: var(--blue);
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
}
.report-chart {
  padding: 25px;
}
.chart-row {
  display: grid;
  grid-template-columns: 140px 1fr 65px;
  gap: 16px;
  align-items: center;
  margin: 19px 0;
  font-size: 12px;
}
.bar {
  height: 23px;
  background: #edf2fa;
  border-radius: 4px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: #5681ec;
  border-radius: 4px;
}
.report-note {
  padding: 17px 23px;
  background: #f8faff;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 25px 100px #12274530;
}
dialog::backdrop {
  background: #16263a60;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px;
  border-bottom: 1px solid var(--line);
}
.close {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #f2f5f9;
  font-size: 20px;
}
.modal-body {
  padding: 23px;
}
.modal-body > p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 20px;
}
.form-field {
  margin: 16px 0;
}
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 23px;
  border-top: 1px solid var(--line);
}
.brief {
  background: #f5f8fe;
  border-radius: 9px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.7;
}
.brief b {
  display: block;
  margin-bottom: 6px;
}
.post-preview {
  background: #e9f0ff;
  padding: 28px;
  border-radius: 12px;
  margin: 18px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
.post-art {
  min-width: 100px;
  height: 132px;
  border-radius: 9px;
  background: #285be4;
  color: #fff;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(-3deg);
}
.post-art strong {
  font-size: 29px;
  letter-spacing: -1px;
}
.post-preview p {
  font-size: 12px;
  line-height: 1.7;
}
.timeline-note {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.timeline-note small {
  display: block;
  margin-top: 4px;
}
.mobile-nav {
  display: none;
}
.toast {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  background: #213452;
  color: white;
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 12px;
  box-shadow: 0 8px 30px #18283a25;
  z-index: 10;
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition: 0.2s;
  max-width: 90vw;
}
.view-switch {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
}
.campaign-select {
  max-width: 230px;
  font-size: 12px;
}
.mobile-mode #app {
  max-width: 420px;
  margin: 20px auto;
  box-shadow:
    0 0 0 8px #263348,
    0 20px 60px #0e234d20;
  border-radius: 28px;
  overflow: hidden;
  min-height: 850px;
}
.mobile-mode .shell {
  display: block;
}
.mobile-mode aside {
  display: none;
}
.mobile-mode .topbar {
  padding: 0 17px;
  height: 62px;
}
.mobile-mode .crumb {
  display: none;
}
.mobile-mode .content {
  padding: 23px 17px 90px;
}
.mobile-mode .heading {
  align-items: flex-start;
}
.mobile-mode h1 {
  font-size: 25px;
}
.mobile-mode .metrics {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mobile-mode .metric:nth-child(2) {
  border: 0;
}
.mobile-mode .main-grid,
.mobile-mode .creator-grid {
  grid-template-columns: 1fr;
}
.mobile-mode .campaign-banner {
  padding: 17px;
  flex-wrap: wrap;
}
.mobile-mode .searchbar {
  flex-direction: column;
}
.mobile-mode .attention {
  padding: 17px 14px;
}
.mobile-mode .attention .btn {
  padding: 8px;
}
.mobile-mode .panel-head {
  padding: 18px;
}
.mobile-mode .mobile-nav {
  display: flex;
  justify-content: space-around;
  background: white;
  padding: 12px 0;
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--line);
}
.mobile-nav button {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
}
.mobile-nav .active {
  color: var(--blue);
}
.mobile-mode .desktop-only {
  display: none;
}
.placement-cards {
  display: none;
}
.placement-card {
  padding: 17px;
  border-bottom: 1px solid var(--line);
}
.placement-card .card-bottom {
  margin-top: 15px;
}
.mobile-mode .placement-cards {
  display: block;
}
.mobile-mode .placement-table {
  display: none;
}
.mobile-mode .chart-row {
  grid-template-columns: 95px 1fr 50px;
  font-size: 10px;
}
.mobile-mode .campaign-select {
  max-width: 170px;
}
.mobile-mode .heading .btn {
  padding: 10px;
  font-size: 11px;
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  aside {
    padding: 25px 14px;
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .main-grid {
    grid-template-columns: 1fr;
  }
  .creator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar .events {
    display: flex;
    gap: 30px;
  }
  .metric {
    padding: 0 17px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  aside {
    display: none;
  }
  .topbar {
    height: 62px;
    padding: 0 17px;
  }
  .crumb,
  .desktop-only {
    display: none;
  }
  .content {
    padding: 23px 17px 95px;
  }
  h1 {
    font-size: 25px;
  }
  .heading {
    align-items: flex-start;
    gap: 12px;
  }
  .heading .btn {
    padding: 10px;
    font-size: 11px;
  }
  .heading p {
    font-size: 11px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .metric:nth-child(2) {
    border: 0;
  }
  .metric strong {
    font-size: 25px;
  }
  .campaign-banner {
    padding: 17px;
    flex-wrap: wrap;
  }
  .campaign-banner h2 {
    font-size: 16px;
  }
  .campaign-select {
    max-width: 170px;
  }
  .creator-grid {
    grid-template-columns: 1fr;
  }
  .searchbar {
    flex-direction: column;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    justify-content: space-around;
    border-top: 1px solid var(--line);
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    z-index: 4;
  }
  .attention {
    padding: 17px 14px;
  }
  .attention .btn {
    padding: 8px;
  }
  .panel-head {
    padding: 18px;
  }
  .placement-cards {
    display: block;
  }
  .placement-table {
    display: none;
  }
  .chart-row {
    grid-template-columns: 95px 1fr 50px;
    font-size: 10px;
  }
  .calendar .events {
    display: block;
  }
  .post-preview {
    padding: 18px;
    gap: 14px;
  }
  .post-art {
    min-width: 85px;
  }
  .mobile-mode #app {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
  }
  .mobile-mode .mobile-nav {
    position: fixed;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .view-switch {
    display: none;
  }
  #toast {
    bottom: 85px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.brand {
  font-size: 24px;
  letter-spacing: -1px;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  padding: 9vw 7vw;
  background: #172b53;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.auth-story h1 {
  font-size: clamp(35px, 4vw, 65px);
  line-height: 1.08;
}
.auth-story p {
  color: #b8c9ed;
}
.auth-points {
  line-height: 2;
  font-size: 21px;
  color: #cad8f2;
}
.auth-card {
  padding: 9vw 7vw;
  align-self: center;
}
.auth-card > p {
  margin: 20px 0;
  color: var(--muted);
  line-height: 1.7;
}
.auth-card form {
  margin: 25px 0;
}
.auth-card input {
  width: 100%;
}
.auth-card .btn {
  width: 100%;
  justify-content: center;
}
.auth-card .muted {
  font-size: 11px;
}
#auth-error {
  color: #b33232;
  margin-bottom: 15px;
}
.person b {
  overflow-wrap: anywhere;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 650px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 35px 25px;
    gap: 20px;
  }
  .auth-story h1 {
    font-size: 36px;
  }
  .auth-points {
    display: none;
  }
  .auth-card {
    padding: 35px 25px;
  }
}
