* {
  box-sizing: border-box;
}
.panel,
.metric,
.chart-col,
.analytics-layout > *,
.workspace > * {
  min-width: 0;
}
body {
  margin: 0;
  background: #edf1f5;
  color: #1c2c3d;
  font:
    15px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #1784e5;
  outline-offset: 3px;
}
button {
  border: 1px solid #d2dbe5;
  background: white;
  color: inherit;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 16px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.2;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 15px;
}
small {
  font-size: 12px;
  color: #5c6d7e;
}
header {
  background: #101b2b;
  color: #fff;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand b {
  display: inline-grid;
  place-items: center;
  background: #1b70e9;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  margin-right: 10px;
}
.header-end {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sample {
  font-size: 12px;
  color: #b7c7db;
}
.reset {
  background: transparent;
  color: #fff;
  border-color: #445165;
  font-size: 12px;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 28px;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head p {
  color: #5c6d7e;
  margin-top: 8px;
}
.nav {
  display: flex;
  gap: 6px;
  padding-bottom: 20px;
}
.nav button {
  background: transparent;
  border: 0;
  color: #5c6d7e;
}
.nav button[aria-selected="true"] {
  background: #fff;
  color: #1259c2;
  box-shadow: 0 2px 5px #1020330a;
}
.panel {
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 12px;
  padding: 24px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.8fr);
  gap: 24px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.text-button {
  border: 0;
  color: #1259c2;
  background: #edf4ff;
  font-size: 12px;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.product {
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-radius: 10px;
}
.product[aria-pressed="true"] {
  border: 2px solid #1769df;
  box-shadow: 0 0 0 3px #eaf2ff;
}
.product-art {
  height: 115px;
  background: #edf1f7;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-art svg {
  width: 115px;
  height: 115px;
}
.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  display: block;
  padding: 10px;
}
.product-info strong {
  display: block;
  font-size: 13px;
}
.product-info small {
  display: block;
  margin-top: 3px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 20px;
}
label > span {
  display: block;
  margin-bottom: 8px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd6e2;
  border-radius: 8px;
  padding: 11px;
  color: #1c2c3d;
  background: white;
  min-height: 44px;
}
textarea {
  resize: vertical;
  min-height: 110px;
  font-weight: 400;
}
.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.channels button {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.channels button[aria-pressed="true"] {
  background: #eaf2ff;
  border-color: #9fbff1;
  color: #1259c2;
}
.network-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #15263b;
  border-radius: 6px;
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.primary {
  background: #1769df;
  border-color: #1769df;
  color: white;
}
.error {
  color: #a42635;
  font-size: 13px;
  margin-top: 8px;
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preview-tabs {
  display: flex;
  gap: 4px;
  margin: 16px 0;
}
.preview-tabs button {
  min-height: 36px;
  padding: 5px 12px;
  font-size: 12px;
}
.preview-tabs button[aria-pressed="true"] {
  background: #14243b;
  color: #fff;
  border-color: #14243b;
}
.social-post {
  border: 1px solid #e1e6ed;
  border-radius: 10px;
  overflow: hidden;
}
.post-identity {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f0fb;
  color: #155bbc;
  font-size: 12px;
  font-weight: 700;
}
.post-art {
  height: 240px;
  display: grid;
  place-items: center;
  background: #edf1f7;
}
.post-art svg {
  height: 230px;
  width: 230px;
}
.post-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-copy {
  padding: 16px;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-bottom {
  padding: 10px 16px;
  border-top: 1px solid #edf0f3;
  font-size: 12px;
  color: #5c6d7e;
}
.simulation-note {
  font-size: 12px;
  color: #5c6d7e;
  margin-top: 16px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: #fff;
  padding: 20px;
  border: 1px solid #dce3eb;
  border-radius: 12px;
}
.metric:first-child {
  background: #14243b;
  color: #fff;
  border: 0;
}
.metric span {
  font-size: 12px;
  display: block;
  color: #5c6d7e;
}
.metric:first-child span {
  color: #c1d0e3;
}
.metric strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.metric small {
  color: #137461;
}
.metric:first-child small {
  color: #8ce0c6;
}
.filters {
  display: flex;
  gap: 10px;
}
.filters select {
  width: auto;
  font-size: 13px;
}
.chart {
  display: flex;
  height: 190px;
  gap: 14px;
  align-items: end;
  padding-top: 15px;
  border-bottom: 1px solid #dce3eb;
  margin: 22px 0 8px;
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  height: 100%;
  gap: 8px;
  font-size: 11px;
  color: #5c6d7e;
}
.chart-col i {
  display: block;
  background: #1769df;
  width: 100%;
  max-width: 60px;
  border-radius: 5px 5px 0 0;
  min-height: 8px;
}
.chart-col b {
  font-size: 11px;
  font-weight: 500;
}
.analytics-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
}
.channel-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f3;
  font-size: 13px;
}
.channel-track {
  height: 7px;
  background: #edf1f7;
  border-radius: 8px;
  overflow: hidden;
}
.channel-track i {
  display: block;
  height: 100%;
  background: #1a8c85;
}
.legend {
  display: flex;
  gap: 16px;
  color: #5c6d7e;
  font-size: 12px;
  margin-top: 14px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #1769df;
  border-radius: 50%;
  margin-right: 6px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  color: #5c6d7e;
  font-weight: 500;
  font-size: 12px;
}
th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid #edf0f3;
  white-space: nowrap;
}
.status {
  padding: 5px 9px;
  border-radius: 20px;
  background: #eaf2ff;
  color: #1259c2;
  font-size: 11px;
}
.status.live {
  background: #e6f6ef;
  color: #116b49;
}
.empty {
  padding: 32px;
  text-align: center;
  color: #5c6d7e;
}
.queue-actions {
  display: flex;
  gap: 6px;
}
.queue-actions button {
  font-size: 12px;
  padding: 6px 10px;
}
.queue-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 20px;
  background: #e5edf7;
  margin-left: 6px;
  font-size: 11px;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #14243b;
  color: white;
  border-radius: 10px;
  padding: 14px 22px;
  box-shadow: 0 8px 40px #10203030;
  z-index: 10;
  max-width: calc(100% - 32px);
  display: none;
}
.toast.show {
  display: block;
}
dialog {
  border: 1px solid #dce3eb;
  border-radius: 16px;
  padding: 24px;
  max-width: 460px;
  width: calc(100% - 32px);
  color: #1c2c3d;
}
dialog::backdrop {
  background: #101b2b80;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.icon {
  font-size: 22px;
  padding: 4px 12px;
}
form .primary {
  margin-top: 20px;
  width: 100%;
}
footer {
  padding: 20px 28px;
  color: #5c6d7e;
  font-size: 12px;
  border-top: 1px solid #dce3eb;
}
.tour {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #e6eefb;
  border-left: 3px solid #1769df;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 13px;
}
.tour b {
  color: #1259c2;
}
.chart-col i {
  transition: height 180ms ease;
}
@media (max-width: 850px) {
  .workspace,
  .analytics-layout {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .preview-panel {
    max-width: none;
  }
  .page-head {
    align-items: start;
    flex-direction: column;
  }
  .filters {
    flex-wrap: wrap;
  }
  main {
    padding: 20px;
  }
  header {
    padding: 16px 20px;
  }
  .sample {
    display: none;
  }
}
@media (max-width: 480px) {
  .chart {
    gap: 6px;
  }
  .chart-col b {
    font-size: 9px;
  }
  .channel-row {
    grid-template-columns: 80px minmax(0, 1fr) 52px;
    gap: 8px;
  }
  .preview-tabs {
    flex-wrap: wrap;
  }
  main {
    padding: 16px;
  }
  .panel {
    padding: 16px;
  }
  .catalog {
    gap: 6px;
  }
  .product-art {
    height: 90px;
  }
  .product-art svg {
    height: 85px;
    width: 85px;
  }
  .product-info {
    padding: 8px;
  }
  .product-info strong {
    font-size: 12px;
  }
  .header-end {
    gap: 8px;
  }
  .brand {
    font-size: 16px;
  }
  .brand b {
    width: 28px;
    height: 28px;
  }
  .reset {
    padding: 8px;
  }
  .nav {
    gap: 0;
  }
  .nav button {
    padding: 10px 12px;
    font-size: 13px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 16px;
  }
  .metric strong {
    font-size: 25px;
  }
  .tour {
    display: block;
  }
  .tour button {
    margin-top: 10px;
  }
  .filters select {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
