:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --line: #dfe6f1;
  --text: #07111f;
  --muted: #607089;
  --purple: #7c3aed;
  --purple-2: #5b5ff7;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #f43f5e;
  --shadow: 0 16px 42px rgba(20, 31, 53, .08), 0 2px 8px rgba(20, 31, 53, .05);
  --small-shadow: 0 8px 24px rgba(20, 31, 53, .07), 0 1px 3px rgba(20, 31, 53, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 1160px;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(124, 58, 237, .08), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 48%);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(255,255,255,.88);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}
.brand {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.bolt,
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.bolt {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 10px 24px rgba(124, 58, 237, .25);
}
.brand-logo {
  background: white;
  border: 1px solid var(--line);
  overflow: hidden;
}
.brand-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.brand strong { display: block; font-size: 18px; line-height: 1; letter-spacing: 0; }
.side-nav { padding: 18px 8px; display: grid; gap: 4px; }
.side-link, .agent-link, .settings-link {
  border: 0;
  width: 100%;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  color: #425575;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  text-align: left;
  transition: .18s ease;
}
.side-link:hover, .agent-link:hover, .settings-link:hover { background: #f0f4fb; color: var(--text); transform: translateX(1px); }
.side-link.active, .agent-link.active {
  color: white;
  background: linear-gradient(135deg, var(--purple), #8b3cf0);
  box-shadow: 0 10px 22px rgba(124, 58, 237, .22);
}
.agent-link.active { color: #641cff; background: #efe7ff; box-shadow: none; }
.section-title {
  margin: 20px 14px 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.agent-list { padding: 0 8px; display: grid; gap: 4px; }
.agent-symbol {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #6d45e8;
  background: #f1eaff;
  border: 1px solid #e5d9ff;
}
.agent-symbol svg {
  width: 14px;
  height: 14px;
}
.agent-link.active .agent-symbol {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  border-color: transparent;
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); flex: 0 0 auto; }
.dot.red { background: var(--red); }
.dot.amber { background: var(--amber); }
.settings-link { margin-top: auto; border-radius: 0; border-top: 1px solid var(--line); height: 56px; }
.main { min-width: 0; }
.topbar {
  height: 60px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(249,251,255,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.page-title h1 { margin: 0; font-size: 20px; line-height: 1.1; }
.page-title p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.search { position: relative; }
.search input {
  width: 230px;
  height: 38px;
  border: 1px solid var(--line);
  background: #f3f6fb;
  border-radius: 12px;
  padding: 0 14px 0 38px;
  color: var(--text);
  outline: 0;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.03);
}
.search svg { position: absolute; top: 10px; left: 12px; color: #71819a; }
.icon-btn, .plain-btn, .primary-btn, .ghost-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  border-radius: 11px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  font-weight: 750;
  transition: .18s ease;
}
.icon-btn { width: 38px; padding: 0; color: #52627a; background: transparent; border-color: transparent; }
.icon-btn:hover, .plain-btn:hover, .ghost-btn:hover { background: #f2f5fb; transform: translateY(-1px); }
.primary-btn {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), #8b3cf0);
  box-shadow: 0 10px 22px rgba(124, 58, 237, .25);
}
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(124, 58, 237, .28); }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
}
.badge-count {
  position: absolute;
  transform: translate(10px, 11px);
  width: 16px;
  height: 16px;
  border-radius: 99px;
  color: white;
  background: var(--purple);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}
.content { padding: 24px; }
.grid-kpis { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 16px; }
.card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--small-shadow);
}
.kpi { padding: 18px; min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; }
.kpi-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #f0eaff; color: var(--purple); }
.kpi:nth-child(2) .kpi-icon { background: #eaf4ff; color: #0b77ff; }
.kpi:nth-child(3) .kpi-icon { background: #fff7df; color: #e17900; }
.kpi:nth-child(4) .kpi-icon { background: #e8fff4; color: #08956d; }
.kpi:nth-child(5) .kpi-icon { background: #fff0f3; color: #e11d48; }
.kpi-value { font-size: 28px; font-weight: 900; letter-spacing: 0; }
.kpi-label { color: var(--muted); font-size: 13px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 498px; gap: 24px; margin-top: 28px; }
.panel { padding: 24px; min-height: 260px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-header h2, .panel h2 { margin: 0; font-size: 17px; }
.text-link { color: var(--purple); background: transparent; border: 0; font-weight: 750; }
.activity-list { display: grid; gap: 14px; }
.activity {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e8eef7;
  border-radius: 14px;
  background: var(--panel-soft);
}
.activity strong { display: block; font-size: 14px; }
.activity span { color: var(--muted); font-size: 12px; }
.pulse { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #f0eaff; color: var(--purple); position: relative; }
.pulse:after { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 1px solid rgba(124,58,237,.2); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
.approval-stack { display: grid; gap: 12px; }
.mini-approval { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.mini-approval h3 { margin: 0 0 6px; font-size: 14px; }
.mini-approval p { margin: 0 0 10px; color: #425575; font-size: 13px; line-height: 1.35; }
.mini-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  color: #92400e;
  background: #fff2cc;
}
.badge.high { color: #be123c; background: #ffe6ee; }
.badge.low, .badge.active { color: #047857; background: #c9ffe6; }
.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: #eef3fa;
  margin-bottom: 24px;
}
.tab {
  height: 32px;
  padding: 0 14px;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: #425575;
  font-size: 13px;
  white-space: nowrap;
}
.tab.active { background: white; color: var(--text); box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.approval-page { max-width: 1040px; }
.approval-card {
  display: grid;
  grid-template-columns: 1fr 126px;
  gap: 22px;
  padding: 20px;
  margin-bottom: 12px;
  border-radius: 16px;
}
.approval-card h3 { margin: 9px 0 6px; font-size: 16px; }
.approval-card p { margin: 0 0 8px; color: #425575; line-height: 1.45; }
.approval-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.approval-actions { display: grid; align-content: center; gap: 9px; }
.agent-hero {
  margin-bottom: 28px;
}
.agent-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.agent-hero h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; }
.agent-actions { display: flex; gap: 10px; margin-left: 8px; }
.paid-agent-frame {
  overflow: hidden;
  height: calc(100vh - 108px);
  min-height: 680px;
  padding: 0;
}
.paid-agent-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: white;
}
.content-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.content-toolbar > div:first-child { max-width: 620px; }
.segmented { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 2px; }
.approval-toolbar { margin-bottom: 14px; }
.approval-toolbar > div:first-child { max-width: 900px; }
.inline-filters {
  margin-top: 12px;
  padding: 4px;
  width: fit-content;
  border-radius: 14px;
  background: #eef3fa;
}
.chip {
  border: 1px solid var(--line);
  color: #425575;
  background: white;
  height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-weight: 750;
  font-size: 12px;
}
.chip.active { background: #111827; color: white; border-color: #111827; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; }
.post-card { overflow: hidden; transition: .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-image { height: 154px; background-size: cover; background-position: center; position: relative; }
.post-body { padding: 14px; }
.platforms { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; }
.platform-pill { height: 20px; min-width: 20px; padding: 0 6px; border-radius: 6px; background: rgba(17,24,39,.86); color: white; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.ai-label { position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.92); color: var(--purple); border-radius: 999px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 900; }
.post-body h3 { margin: 0 0 7px; font-size: 15px; }
.post-body p { margin: 0 0 10px; color: #425575; font-size: 13px; line-height: 1.38; }
.hashtags { color: var(--purple); font-size: 12px; font-weight: 750; }
.prediction { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.meter { width: 110px; height: 7px; border-radius: 99px; background: #edf2f7; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #22d3ee); }
.post-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.agent-approval-list { display: grid; gap: 12px; max-width: 1220px; }
.agent-approval-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 178px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  transition: .18s ease;
}
.agent-approval-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d8c6ff; }
.approval-thumb {
  width: 112px;
  height: 78px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.agent-approval-card h3 { margin: 7px 0 5px; font-size: 15px; }
.agent-approval-card p { margin: 0; color: #53647e; font-size: 13px; line-height: 1.35; }
.approval-card-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.agent-message-list { display: grid; gap: 12px; max-width: 1220px; }
.agent-message-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 170px;
  gap: 16px;
  align-items: start;
  padding: 18px;
  transition: .18s ease;
}
.agent-message-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d8c6ff; }
.message-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: #f0eaff;
}
.agent-message-card h3 { margin: 8px 0 7px; font-size: 17px; }
.agent-message-card p { margin: 0; color: #425575; line-height: 1.45; }
.message-ask {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e6dcff;
  border-radius: 12px;
  background: #fbf8ff;
  color: #3b2b63;
  font-size: 13px;
  font-weight: 750;
}
.message-actions { display: grid; gap: 10px; justify-items: stretch; }
.keyword-grid {
  display: grid;
  gap: 14px;
  max-width: 1220px;
}
.keyword-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px;
}
.keyword-summary div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  padding: 14px;
}
.keyword-summary strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 7px;
}
.keyword-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.keyword-table {
  overflow: hidden;
}
.keyword-row {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) .55fr .75fr .65fr .45fr .45fr minmax(190px, 1fr) .85fr;
  gap: 12px;
  align-items: center;
  padding: 0 16px;
  text-align: left;
  transition: .18s ease;
}
.keyword-row:last-child { border-bottom: 0; }
.keyword-row:not(.keyword-head):hover {
  background: #fbf8ff;
}
.keyword-head {
  min-height: 42px;
  background: #f4f7fb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: default;
}
.keyword-row span {
  color: #425575;
  font-size: 13px;
}
.keyword-row b {
  color: var(--text);
  font-size: 14px;
}
.keyword-row .rank-up {
  color: #047857;
  font-weight: 900;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f0eaff;
  color: var(--purple);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}
.keyword-task-brief {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.keyword-task-brief div {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-soft);
  padding: 12px;
}
.keyword-task-brief span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.keyword-task-brief strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}
.task-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lane-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #425575; font-size: 13px; font-weight: 850; }
.task-card { padding: 14px; margin-bottom: 12px; }
.task-card h3 { margin: 0 0 14px; font-size: 15px; line-height: 1.3; }
.task-goal { margin: -6px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.task-footer { border-top: 1px solid var(--line); padding-top: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.empty-lane { border: 2px dashed #d9e2ef; border-radius: 14px; height: 68px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.analytics-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.chart { height: 260px; padding: 18px; display: flex; align-items: end; gap: 12px; }
.bar { flex: 1; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #8b5cf6, #38bdf8); min-height: 36px; position: relative; }
.bar span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 11px; }
.donut { width: 210px; height: 210px; margin: 18px auto; border-radius: 999px; background: conic-gradient(var(--purple) 0 46%, #22c55e 46% 72%, #f59e0b 72% 88%, #e2e8f0 88%); position: relative; }
.donut:after { content: "3.8x ROI"; position: absolute; inset: 34px; border-radius: inherit; background: white; display: grid; place-items: center; font-weight: 900; font-size: 22px; }
.context-list { overflow: hidden; }
.context-row { min-height: 53px; display: grid; grid-template-columns: 28px 160px 1fr 70px; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.context-row:last-child { border-bottom: 0; }
.context-row strong { font-size: 14px; }
.context-row span { color: #425575; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.chat-box { min-height: 560px; display: flex; flex-direction: column; }
.messages { padding: 22px; display: grid; gap: 14px; flex: 1; align-content: start; }
.message { max-width: 72%; padding: 13px 15px; border-radius: 16px; line-height: 1.45; font-size: 14px; background: #f1f5fb; color: #26364f; }
.message.user { justify-self: end; background: linear-gradient(135deg, var(--purple), #8b3cf0); color: white; }
.composer { border-top: 1px solid var(--line); padding: 14px; display: flex; gap: 10px; }
.composer input { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; outline: 0; }
.accounts-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 14px; }
.account-card { padding: 18px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; }
.acct-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #eef3fb; color: #0f172a; font-weight: 950; }
.account-card h3 { margin: 0; font-size: 15px; }
.account-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.schedule-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; max-width: 980px; }
.schedule-toolbar { align-items: flex-end; }
.schedule-switch {
  padding: 5px;
  border-radius: 16px;
  background: #eef3fa;
}
.schedule-switch .chip {
  height: 38px;
  min-width: 92px;
  justify-content: center;
  font-size: 13px;
}
.schedule-stat { padding: 14px 16px; }
.schedule-stat strong { display: block; font-size: 24px; line-height: 1; margin-bottom: 6px; }
.schedule-stat span { color: var(--muted); font-size: 13px; }
.schedule-list { display: grid; gap: 10px; max-width: 1080px; }
.schedule-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  transition: .18s ease;
}
.schedule-item:hover { background: white; box-shadow: var(--small-shadow); transform: translateY(-1px); }
.schedule-item strong, .schedule-item b { display: block; font-size: 14px; }
.schedule-item span { color: var(--muted); font-size: 12px; }
.schedule-calendar { padding: 18px; max-width: 1180px; }
.schedule-calendar-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.schedule-calendar-head h3 { margin: 0 0 5px; font-size: 18px; }
.schedule-calendar-head p { margin: 0; color: var(--muted); font-size: 13px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 850; }
.calendar-weekdays span { padding-left: 8px; }
.calendar-board { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; }
.upcoming-calendar { max-width: 1220px; }
.upcoming-board {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}
.calendar-cell {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 7px;
}
.calendar-cell.has-posts { background: #ffffff; border-color: #d8c6ff; box-shadow: inset 0 0 0 1px rgba(124,58,237,.06); }
.calendar-date { color: #71819a; font-size: 12px; font-weight: 900; }
.upcoming-board .calendar-date { color: #425575; }
.calendar-post {
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--purple);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #faf7ff);
  padding: 7px;
  text-align: left;
  display: grid;
  gap: 2px;
  transition: .18s ease;
}
.calendar-post:hover { transform: translateY(-1px); box-shadow: var(--small-shadow); }
.calendar-post span { color: var(--purple); font-size: 11px; font-weight: 850; }
.calendar-post strong { font-size: 11px; color: #111827; }
.calendar-post em { font-style: normal; color: #53647e; font-size: 11px; line-height: 1.25; }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; background: rgba(15,23,42,.46); backdrop-filter: blur(8px); }
.modal-backdrop.open { display: flex; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(980px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto; background: white; border-radius: 18px; box-shadow: 0 30px 80px rgba(15,23,42,.28); }
.modal.small { width: 720px; }
.schedule-picker-modal {
  width: 540px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}
.schedule-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 26px 18px;
}
.schedule-picker-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 850;
}
.schedule-picker-body {
  padding: 20px 26px 0;
}
.schedule-month-nav {
  display: grid;
  grid-template-columns: 34px 34px 1fr 34px 34px;
  align-items: center;
  gap: 6px;
  max-width: 370px;
  margin: 0 auto 10px;
  text-align: center;
}
.schedule-month-nav strong {
  font-size: 18px;
}
.schedule-weekdays,
.schedule-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  max-width: 380px;
  margin: 0 auto;
}
.schedule-weekdays {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: #334155;
}
.schedule-weekdays span {
  text-align: center;
  font-size: 15px;
}
.schedule-date-grid {
  row-gap: 7px;
  padding-top: 10px;
}
.schedule-date {
  width: 34px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #334155;
  justify-self: center;
  font-size: 15px;
}
.schedule-date.muted { color: #c5c9d1; }
.schedule-date.selected {
  color: white;
  background: #2563eb;
}
.time-select-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 30px 0 18px;
}
.time-select-row select {
  width: 76px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 0 12px;
  box-shadow: var(--small-shadow);
}
.best-time-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
}
.best-time-box strong {
  display: block;
  color: #27364f;
  margin-bottom: 4px;
}
.best-time-box span {
  color: #53647e;
  font-size: 13px;
}
.best-time-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.best-time-pills button {
  border: 0;
  border-radius: 999px;
  color: #8a94a6;
  background: #f4f6f9;
  height: 24px;
  padding: 0 10px;
}
.schedule-picker-foot {
  justify-content: flex-end;
  gap: 12px;
  padding: 26px;
}
.modal-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; }
.modal-head h2 { margin: 0 0 4px; font-size: 17px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 12px; }
.modal-body { padding: 18px; }
.editor-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.review-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 18px; }
.review-side {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--panel-soft);
}
.review-side h3 { margin: 12px 0 8px; font-size: 18px; }
.review-side p { margin: 0 0 16px; color: #425575; line-height: 1.45; }
.approval-decision {
  margin: 14px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.approval-decision h3 { margin-top: 0; }
.approval-decision p { margin-bottom: 0; }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.article-preview img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.article-preview h3 { margin: 12px 0 8px; font-size: 18px; line-height: 1.25; }
.article-preview p { color: #425575; line-height: 1.45; }
.seo-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.seo-facts span {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: #425575;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 750;
}
.article-outline {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.article-outline strong { display: block; margin-bottom: 8px; }
.article-outline p { margin: 0 0 8px; font-size: 13px; }
.revised-plan {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #d8c6ff;
  border-radius: 14px;
  background: #fbf8ff;
}
.revised-plan strong { display: block; margin-bottom: 8px; color: #4c1d95; }
.revised-plan p { margin: 0 0 7px; color: #4b5563; font-size: 13px; }
.article-review-modal { width: min(1180px, calc(100vw - 48px)); }
.article-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 18px;
}
.article-document {
  overflow: hidden;
  box-shadow: none;
}
.article-document img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.article-doc-body {
  padding: 26px 34px 34px;
  background: white;
}
.article-doc-body h1 {
  margin: 16px 0 12px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}
.article-doc-body h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}
.article-doc-body p {
  margin: 0 0 12px;
  color: #334155;
  font-size: 15px;
  line-height: 1.7;
}
.article-doc-body [contenteditable="true"] {
  border-radius: 8px;
  outline: 0;
}
.article-doc-body [contenteditable="true"]:focus {
  box-shadow: 0 0 0 3px rgba(124,58,237,.14);
  background: #fbf8ff;
}
.article-lede {
  font-size: 17px !important;
  color: #475569 !important;
}
.keyword-focus {
  border: 1px solid #d8c6ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbf8ff, #ffffff);
  padding: 13px 14px;
  margin-bottom: 14px;
  display: grid;
  gap: 4px;
}
.keyword-focus span {
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.keyword-focus strong {
  font-size: 20px;
  line-height: 1.2;
}
.keyword-focus em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.keyword-focus.compact {
  margin-bottom: 12px;
  background: white;
}
.keyword-focus.compact strong {
  font-size: 17px;
}
.article-review-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
  padding: 16px;
  align-self: start;
}
.live-review {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 10px;
}
.live-review strong { display: block; margin-bottom: 2px; }
.live-step {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 9px;
  align-items: start;
  color: #53647e;
  font-size: 13px;
  line-height: 1.35;
}
.live-step span {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 99px;
  background: #cbd5e1;
}
.live-step.active span {
  background: var(--purple);
  box-shadow: 0 0 0 5px rgba(124,58,237,.12);
}
.published-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
  max-width: 1220px;
}
.published-card { overflow: hidden; transition: .18s ease; }
.published-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.published-image {
  height: 150px;
  background-size: cover;
  background-position: center;
  padding: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.published-body { padding: 15px; }
.published-body h3 { margin: 9px 0 13px; font-size: 16px; line-height: 1.3; }
.published-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.published-stats span {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  color: var(--muted);
  padding: 9px;
  font-size: 11px;
}
.published-stats strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 3px;
}
.stats-modal { width: min(1080px, calc(100vw - 48px)); }
.stats-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 18px;
}
.stats-main,
.stats-side {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
  padding: 16px;
}
.stats-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
}
.stats-hero img {
  width: 180px;
  height: 112px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.stats-hero h3 { margin: 10px 0 7px; font-size: 19px; line-height: 1.25; }
.stats-hero p { margin: 0; color: #53647e; line-height: 1.45; }
.stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.stats-kpis div {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  padding: 12px;
}
.stats-kpis span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  margin-bottom: 6px;
}
.stats-kpis strong { font-size: 19px; }
.performance-chart {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 16px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}
.chart-head strong { color: var(--text); font-size: 14px; }
.line-chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 0 4px 24px;
}
.line-chart i {
  display: block;
  min-height: 34px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--purple), #38bdf8);
  position: relative;
  box-shadow: 0 8px 18px rgba(124,58,237,.16);
}
.line-chart i span {
  position: absolute;
  bottom: -23px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.stats-side h3 { margin: 0 0 12px; font-size: 17px; }
.stats-table { display: grid; gap: 8px; }
.stats-table div {
  display: grid;
  grid-template-columns: 1.2fr .6fr .55fr .8fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 10px;
}
.stats-table span {
  color: #425575;
  font-size: 12px;
  font-weight: 750;
}
.insight-box {
  margin-top: 14px;
  border: 1px solid #d8c6ff;
  border-radius: 14px;
  background: #fbf8ff;
  padding: 14px;
}
.insight-box strong { display: flex; align-items: center; gap: 8px; color: #4c1d95; }
.insight-box p { margin: 9px 0 0; color: #425575; font-size: 13px; line-height: 1.45; }
.source-summary {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
  padding: 12px;
  margin-bottom: 14px;
}
.source-summary img {
  width: 128px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}
.source-summary h3 { margin: 8px 0 5px; font-size: 16px; }
.source-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.repurpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.repurpose-option {
  min-height: 104px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 13px;
  display: grid;
  gap: 6px;
  transition: .18s ease;
}
.repurpose-option:hover,
.repurpose-option.active {
  border-color: #c4adff;
  background: #fbf8ff;
  box-shadow: var(--small-shadow);
  transform: translateY(-1px);
}
.repurpose-option strong { font-size: 15px; }
.repurpose-option span { color: #53647e; font-size: 12px; line-height: 1.35; }
.repurpose-option em {
  color: var(--purple);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: #53647e; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  outline: 0;
  background: white;
}
.field textarea { min-height: 118px; resize: vertical; }
.preview-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fbfdff; }
.preview-account { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.preview-account .avatar { width: 34px; height: 34px; }
.preview-card img { width: 100%; border-radius: 12px; margin-top: 12px; display: block; }
.modal-foot { border-top: 1px solid var(--line); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.assign-task-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.upload-strip span {
  color: var(--muted);
  font-size: 12px;
}
.upload-btn { position: relative; overflow: hidden; }
.assign-task-row .field select { height: 46px; }
.date-field { position: relative; }
.date-input-button {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-weight: 750;
}
.date-input-button:hover { background: #fbf8ff; border-color: #d8c6ff; }
.date-popover {
  display: none;
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  width: 292px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow);
}
.date-popover.open { display: block; }
.popover-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.popover-weekdays, .popover-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.popover-weekdays span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}
.popover-day {
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f8fafc;
  color: #425575;
  height: 34px;
  font-size: 12px;
  font-weight: 850;
}
.popover-day:hover { border-color: #d8c6ff; background: #fbf8ff; }
.popover-day.selected {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), #8b3cf0);
  box-shadow: 0 8px 18px rgba(124,58,237,.22);
}
.time-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.time-card strong { display: block; }
.time-card span { color: var(--muted); font-size: 12px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; background: white; color: #425575; font-weight: 800; }
.day.hot { background: #f0eaff; color: var(--purple); border-color: #d8c6ff; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: none;
  padding: 13px 16px;
  border-radius: 14px;
  color: white;
  background: #111827;
  box-shadow: var(--shadow);
}
.toast.show { display: block; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1280px) {
  .grid-kpis { grid-template-columns: repeat(3, 1fr); }
  .two-col, .chat-layout, .analytics-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
  .published-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
  .review-grid { grid-template-columns: 1fr; }
  .article-review-grid { grid-template-columns: 1fr; }
  .schedule-summary { grid-template-columns: 1fr; }
  .calendar-board { grid-template-columns: repeat(7, minmax(96px, 1fr)); }
}
