:root {
  color-scheme: dark;
  --bg: #020611;
  --bg-2: #060b18;
  --panel: rgba(10, 16, 31, 0.78);
  --panel-2: rgba(13, 22, 42, 0.9);
  --line: rgba(91, 141, 255, 0.2);
  --line-strong: rgba(84, 128, 255, 0.52);
  --text: #f7fbff;
  --muted: #93a4c2;
  --faint: #60708f;
  --blue: #3f6cff;
  --blue-2: #54a6ff;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --violet: #8b5cf6;
  --radius: 18px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 72% 4%, rgba(54, 92, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 12% 35%, rgba(44, 102, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, #01040b 0%, #050917 45%, #020611 100%);
  color: var(--text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(47, 91, 255, 0.14) 18.2%, transparent 18.8% 100%),
    linear-gradient(158deg, transparent 0 52%, rgba(69, 115, 255, 0.16) 52.2%, transparent 53% 100%),
    linear-gradient(20deg, transparent 0 60%, rgba(35, 85, 255, 0.13) 60.2%, transparent 61% 100%);
  filter: blur(0.3px);
}

body::after {
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 72%);
}

.fatal-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 16px;
  padding: 32px;
  background: radial-gradient(circle at 50% 0%, rgba(63, 108, 255, 0.24), transparent 34rem), var(--bg);
}

.fatal-error h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.04em;
}

.fatal-error p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
}

.fatal-error code {
  max-width: min(720px, 100%);
  padding: 12px 14px;
  border-radius: 12px;
  color: #fecaca;
  white-space: pre-wrap;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(89, 119, 185, 0.4); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

.shell {
  display: flex;
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(100%, 440px);
  padding: 30px;
  border-radius: 26px;
  border: 1px solid rgba(116, 149, 226, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)), var(--panel);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 18px 0 8px;
  font-size: 34px;
}

.login-card p,
.login-card small {
  color: var(--muted);
  line-height: 1.5;
}

.login-card form {
  display: grid;
  gap: 14px;
  margin: 22px 0 14px;
}

.login-card label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.login-card input {
  width: 100%;
  margin-top: 7px;
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  outline: none;
  border-radius: 12px;
  padding: 12px 13px;
}

.login-alert {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #cbd7ff;
  background: rgba(63, 108, 255, 0.12);
  border: 1px solid rgba(117, 145, 209, 0.18);
  font-size: 12.5px;
  line-height: 1.45;
}

.login-alert.danger {
  color: #ffaaa8;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.32);
}

.login-card button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  font-size: 12px;
}

.session-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.session-bar b {
  color: var(--text);
}

.sidebar {
  width: 286px;
  flex: 0 0 286px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(111, 146, 255, 0.16);
  background: rgba(2, 6, 17, 0.86);
  backdrop-filter: blur(20px);
  box-shadow: 12px 0 60px rgba(0, 0, 0, 0.26);
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(111, 146, 255, 0.14);
}

.brand-mark,
.app-icon,
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbe8ff;
  background: linear-gradient(135deg, rgba(61, 101, 255, 0.92), rgba(35, 61, 178, 0.8));
  border: 1px solid rgba(132, 164, 255, 0.45);
  box-shadow: 0 0 24px rgba(63, 108, 255, 0.34), inset 0 0 18px rgba(255,255,255,0.08);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.brand strong {
  display: block;
  letter-spacing: 0.02em;
  font-size: 15px;
}

.brand span {
  color: var(--muted);
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.sidebar nav {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
}

.sidebar nav button,
.settings-tabs button {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 11px;
  color: #a8b7d3;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

.sidebar nav button:hover,
.settings-tabs button:hover {
  background: rgba(255,255,255,0.045);
}

.sidebar nav button.active,
.settings-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(65, 103, 255, 0.28), rgba(21, 34, 74, 0.82));
  box-shadow: inset 0 0 0 1px rgba(119, 152, 255, 0.26), 0 0 26px rgba(63, 108, 255, 0.13);
}

.sidebar nav em {
  margin-left: auto;
  color: #bcd0ff;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
  border: 1px solid rgba(98, 134, 255, 0.42);
  padding: 2px 6px;
  border-radius: 999px;
}

.profile {
  margin: 12px 16px 16px;
  padding: 10px;
  border-radius: 15px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(121, 151, 220, 0.13);
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile > div {
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: grid;
  place-items: center;
  font-weight: 800;
}

.profile span {
  flex: 1;
  min-width: 0;
}

.profile b,
.profile small {
  display: block;
}

.profile b { font-size: 13px; }
.profile small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.profile b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  flex: 1;
  min-width: 0;
}

.topbar {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(111, 146, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
}

.mobile-menu {
  display: none !important;
}

.searchbox {
  max-width: 520px;
  flex: 1;
  position: relative;
}

.searchbox svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
}

.searchbox input,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  outline: none;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13px;
}

.searchbox input {
  padding-left: 40px;
}

.form-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.searchbox input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(95, 139, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(63, 108, 255, 0.16);
}

.top-actions,
.title-actions,
.hero-actions,
.detail-actions,
.modal-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.wow-actions button {
  min-width: 174px;
}

button.primary,
button.ghost,
.panel-head button,
.app-card button,
.icon-button,
.mobile-menu,
.icon-only {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(112, 144, 230, 0.18);
  background: rgba(255,255,255,0.04);
  color: #dbe6ff;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

button.primary,
.app-card button {
  border-color: rgba(111, 154, 255, 0.55);
  background: linear-gradient(135deg, #466dff, #2854ff);
  color: #fff;
  box-shadow: 0 0 22px rgba(63, 108, 255, 0.32);
}

button.primary.big,
button.ghost.big {
  min-height: 48px;
  padding: 0 18px;
}

button.primary.small {
  min-height: 30px;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 12px;
}

button.ghost:hover,
.panel-head button:hover,
.icon-button:hover,
.icon-only:hover {
  background: rgba(255,255,255,0.075);
  border-color: rgba(111, 154, 255, 0.36);
}

.icon-only {
  width: 39px;
  padding: 0;
  position: relative;
}

.icon-only i {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border: 2px solid #071023;
  border-radius: 50%;
}

.fx-rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(112, 144, 230, 0.15);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

main {
  padding: 28px;
  max-width: 1680px;
  margin: 0 auto;
}

.hero-panel {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  gap: 30px;
  align-items: center;
  padding: 34px;
  margin-bottom: 18px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(111, 146, 255, 0.24);
  background:
    radial-gradient(circle at 82% 0%, rgba(68, 111, 255, 0.32), transparent 34%),
    linear-gradient(145deg, rgba(9, 17, 35, 0.98), rgba(3, 7, 18, 0.78));
  box-shadow: var(--shadow), inset 0 0 60px rgba(75, 113, 255, 0.08);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 41%, rgba(84, 132, 255, 0.22) 41.3%, transparent 42%),
    linear-gradient(22deg, transparent 0 62%, rgba(84, 132, 255, 0.16) 62.3%, transparent 63%);
  pointer-events: none;
}

.hero-copy,
.hero-console {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0;
  max-width: 670px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 590px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 22px 0;
}

.answer-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.answer-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c2d1ef;
  font-size: 12px;
}

.answer-strip svg {
  color: var(--blue-2);
}

.hero-console {
  border-radius: 24px;
  padding: 18px;
  border: 1px solid rgba(102, 144, 255, 0.42);
  background: linear-gradient(145deg, rgba(7, 13, 29, 0.78), rgba(13, 22, 42, 0.56));
  box-shadow: 0 0 42px rgba(63, 108, 255, 0.32), inset 0 0 42px rgba(127, 163, 255, 0.06);
  transform: perspective(1100px) rotateY(-7deg) rotateX(2deg);
}

.console-top,
.panel-head,
.metric-top,
.app-card-top,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.console-top {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
}

.console-top span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.console-top i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(156, 180, 236, 0.7);
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-terminal {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: #030817;
  border: 1px solid rgba(112, 144, 230, 0.16);
}

.mini-terminal span,
.mini-terminal strong {
  display: block;
}

.mini-terminal span {
  color: var(--blue-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.mini-terminal strong {
  margin-top: 7px;
  font-size: 13px;
}

.metrics-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.metrics-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metrics-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metrics-grid.secondary { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(180px, 0.6fr));
  gap: 14px;
  margin-bottom: 18px;
}

.profit-hero {
  min-height: 178px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background:
    radial-gradient(circle at 85% 10%, rgba(34, 197, 94, 0.28), transparent 32%),
    linear-gradient(145deg, rgba(11, 32, 25, 0.92), rgba(8, 15, 29, 0.82));
  box-shadow: 0 24px 80px rgba(0,0,0,0.3), 0 0 34px rgba(34, 197, 94, 0.12);
}

.profit-hero span {
  display: block;
  color: #88f4b0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profit-hero h2 {
  margin: 8px 0;
  color: #f4fff8;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.profit-hero p {
  margin: 0;
  max-width: 620px;
  color: #b9d5c5;
  line-height: 1.55;
  font-size: 13px;
}

.profit-hero div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.profit-hero strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #76ffad;
  font-size: 13px;
}

.profit-hero button,
.today-actions button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(116, 149, 226, 0.18);
  background: rgba(255,255,255,0.07);
  color: #f5fbff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.metric-card,
.panel,
.app-card,
.report-cards article,
.integration-grid article,
.todo-board section,
.modal,
.detail-hero {
  border: 1px solid rgba(116, 149, 226, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
    var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.04);
}

.metric-card {
  min-height: 138px;
  padding: 18px;
}

.icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.icon-box.green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(16, 82, 47, 0.8)); border-color: rgba(74, 222, 128, 0.35); box-shadow: 0 0 22px rgba(34, 197, 94, 0.18); }
.icon-box.amber { background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(91, 52, 8, 0.8)); border-color: rgba(251, 191, 36, 0.35); box-shadow: 0 0 22px rgba(245, 158, 11, 0.18); }
.icon-box.violet { background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(60, 32, 120, 0.82)); border-color: rgba(167, 139, 250, 0.35); box-shadow: 0 0 22px rgba(139, 92, 246, 0.18); }

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.delta.positive { color: #70f0a3; background: rgba(34, 197, 94, 0.12); }
.delta.negative { color: #ff8b8b; background: rgba(239, 68, 68, 0.12); }

.metric-label {
  color: var(--muted);
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
}

.metric-value {
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}

.metric-sub {
  margin-top: 7px;
  color: var(--faint);
  font-size: 11px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.8fr);
  gap: 14px;
  margin-bottom: 18px;
}

.bottom-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  padding: 19px;
  margin-bottom: 18px;
}

.panel-head {
  margin-bottom: 17px;
}

.panel-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.chart-tooltip {
  min-width: 140px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(3, 8, 20, 0.96);
  border: 1px solid rgba(111, 146, 255, 0.24);
  box-shadow: var(--shadow);
}

.chart-tooltip b,
.chart-tooltip span {
  display: block;
}

.chart-tooltip b {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.chart-tooltip span {
  color: var(--text);
  font-size: 12px;
  margin-top: 5px;
}

.chart-tooltip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}

.recommendations article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid rgba(116, 149, 226, 0.11);
}

.recommendations article:first-child {
  border-top: 0;
  padding-top: 0;
}

.recommendations.premium {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.recommendations.premium article {
  grid-template-columns: auto auto 1fr;
  padding: 14px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  border-radius: 15px;
  background: rgba(255,255,255,0.045);
}

.recommendations.premium article:first-child {
  padding-top: 14px;
  border-top: 1px solid rgba(116, 149, 226, 0.14);
}

.recommendations.premium > article > svg {
  color: var(--blue-2);
  margin-top: 7px;
}

.recommendations.premium strong {
  display: block;
  color: #76ffad;
  margin-top: 8px;
  font-size: 12px;
}

.priority {
  width: 8px;
  height: 36px;
  align-self: start;
  border-radius: 999px;
  text-indent: -999px;
  overflow: hidden;
  background: var(--blue);
}

.priority.critical { background: var(--red); }
.priority.high { background: var(--green); }
.priority.medium { background: var(--amber); }
.priority.low { background: var(--blue); }

.recommendations h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.recommendations p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.rec-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.rec-actions button {
  min-height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(116, 149, 226, 0.16);
  background: rgba(255,255,255,0.045);
  color: #dce7ff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 0 10px;
}

.rec-actions button:first-child {
  color: #fff;
  background: rgba(63, 108, 255, 0.5);
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th {
  color: #7384a4;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
  padding: 11px 12px;
  border-top: 1px solid rgba(116, 149, 226, 0.10);
  border-bottom: 1px solid rgba(116, 149, 226, 0.12);
  background: rgba(255,255,255,0.025);
}

td {
  padding: 12px;
  border-bottom: 1px solid rgba(116, 149, 226, 0.09);
  color: #cfdbf1;
  font-size: 12.5px;
  vertical-align: middle;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: rgba(74, 110, 255, 0.055);
}

td b,
td small {
  display: block;
}

td small {
  color: var(--faint);
  margin-top: 4px;
}

.compact table { min-width: 760px; }

.app-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.app-icon.large {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  color: #bcd0ff;
  background: rgba(63, 108, 255, 0.12);
  border: 1px solid rgba(63, 108, 255, 0.22);
}

.badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge.success { color: #76ffad; background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.48); }
.badge.warning { color: #ffd166; background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.5); }
.badge.danger { color: #ff8b8b; background: rgba(239, 68, 68, 0.22); border-color: rgba(239, 68, 68, 0.5); }
.badge.violet { color: #c4b5fd; background: rgba(80, 125, 255, 0.2); border-color: rgba(111, 154, 255, 0.45); }
.badge.info { color: #bcd0ff; background: rgba(63, 108, 255, 0.2); border-color: rgba(63, 108, 255, 0.45); }

.score {
  width: 42px;
  height: 42px;
  position: relative;
  display: inline-grid;
  place-items: center;
}

.score svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.score-bg,
.score-fg {
  fill: none;
  stroke-width: 4;
}

.score-bg { stroke: rgba(255,255,255,0.08); }
.score-fg { stroke-linecap: round; }
.score-fg.success { stroke: var(--green); }
.score-fg.warning { stroke: var(--amber); }
.score-fg.danger { stroke: var(--red); }

.score strong {
  font-size: 12px;
  z-index: 1;
}

.score small {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.readiness {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 11px;
}

.readiness.success,
.good,
.money.positive { color: #70f0a3; }
.readiness.warning,
.warn { color: #ffd166; }
.readiness.danger,
.bad,
.money.negative { color: #ff8b8b; }

.app-score {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 9px;
  font-weight: 900;
  font-size: 12px;
}

.app-score.success { color: #76ffad; background: rgba(34, 197, 94, 0.15); }
.app-score.warning { color: #ffd166; background: rgba(245, 158, 11, 0.15); }
.app-score.danger { color: #ff8b8b; background: rgba(239, 68, 68, 0.15); }

.today-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.today-actions article {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.045);
}

.today-actions article.success { border-color: rgba(34, 197, 94, 0.32); }
.today-actions article.danger { border-color: rgba(239, 68, 68, 0.34); }
.today-actions article.warning { border-color: rgba(245, 158, 11, 0.34); }
.today-actions article.info { border-color: rgba(63, 108, 255, 0.34); }

.today-actions b {
  display: block;
  font-size: 14px;
}

.today-actions p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 12px;
}

.today-actions span {
  display: block;
  color: #f4fbff;
  font-size: 16px;
  font-weight: 900;
}

.today-actions small {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.today-actions button {
  margin-top: auto;
  justify-content: center;
}

.social-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  margin-bottom: 18px;
}

.publishing-plan,
.generated-list {
  display: grid;
  gap: 10px;
}

.publishing-plan article,
.generated-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.045);
}

.publishing-plan time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  font-weight: 900;
  background: rgba(63, 108, 255, 0.22);
  border: 1px solid rgba(111, 154, 255, 0.28);
}

.publishing-plan b,
.generated-list b {
  display: block;
  font-size: 13px;
}

.publishing-plan span,
.generated-list small {
  color: var(--muted);
  font-size: 11.5px;
}

.publishing-plan em {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(34, 197, 94, 0.12);
  color: #90ffc0;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.generated-list > article > span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #9bb8ff;
  background: rgba(63, 108, 255, 0.14);
}

.quick-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-create-grid button {
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  min-height: 128px;
  padding: 15px;
  border-radius: 15px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(116, 149, 226, 0.16);
}

.quick-create-grid b {
  color: #fff;
  font-size: 14px;
}

.quick-create-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.alert-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ff8b8b;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.page-title span {
  display: block;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chips button {
  border: 1px solid rgba(116, 149, 226, 0.18);
  background: rgba(255,255,255,0.045);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.chips button.active {
  color: #fff;
  background: rgba(63, 108, 255, 0.24);
  border-color: rgba(111, 154, 255, 0.55);
}

.chip-separator {
  width: 1px;
  align-self: stretch;
  background: rgba(116, 149, 226, 0.18);
  margin: 0 4px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  padding: 18px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 154, 255, 0.45);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28), 0 0 28px rgba(63, 108, 255, 0.14);
}

.app-card h2 {
  margin: 15px 0 5px;
  font-size: 18px;
}

.app-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -6px 0 13px;
  min-height: 20px;
}

.brand-meta i,
.brand-color-row i {
  width: 17px;
  height: 17px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.22);
}

.brand-meta span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
}

.brand-brief {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.brand-brief span {
  display: block;
  padding: 9px;
  border-radius: 11px;
  background: rgba(3, 7, 18, 0.25);
  border: 1px solid rgba(116, 149, 226, 0.12);
  color: #dce7ff;
  font-size: 11.5px;
  line-height: 1.4;
}

.brand-brief small {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 9.5px;
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -6px 0 14px;
}

.stack-chips span,
.import-summary em {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(111, 154, 255, 0.26);
  background: rgba(63, 108, 255, 0.11);
  color: #dce7ff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 8px;
}

.score-row {
  min-height: 72px;
  display: flex;
  justify-content: space-around;
  gap: 12px;
  border-top: 1px solid rgba(116, 149, 226, 0.1);
  border-bottom: 1px solid rgba(116, 149, 226, 0.1);
  padding: 14px 0 16px;
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.card-stats small,
.card-stats b {
  display: block;
}

.card-stats small {
  color: var(--faint);
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 800;
}

.card-stats b {
  margin-top: 4px;
  font-size: 14px;
}

.platform-dot {
  width: 8px;
  height: 26px;
  border-radius: 999px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  background: var(--platform);
}

.mini-progress {
  width: 76px;
  height: 4px;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.currency-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 6px;
  color: #bcd0ff;
  background: rgba(63, 108, 255, 0.16);
  border: 1px solid rgba(63, 108, 255, 0.24);
  font-size: 9px;
  font-weight: 900;
}

.row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.copy-cell {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-layout,
.settings-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.ai-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ai-action-grid article {
  padding: 18px;
  border: 1px solid rgba(116, 149, 226, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)), var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0,0,0,0.22);
}

.ai-action-grid svg {
  color: var(--blue-2);
  margin-bottom: 12px;
}

.ai-action-grid h2 {
  margin: 0 0 7px;
  font-size: 16px;
}

.ai-action-grid p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.ai-action-grid button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(116, 149, 226, 0.18);
  background: rgba(255,255,255,0.045);
  color: #dce7ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  cursor: pointer;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  margin-top: 7px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.generator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.generator-actions span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #bed0ff;
  background: rgba(63, 108, 255, 0.12);
  border: 1px solid rgba(63, 108, 255, 0.21);
  font-size: 11px;
  font-weight: 800;
}

.ai-output h3 {
  margin: 14px 0 8px;
  font-size: 13px;
  color: var(--blue-2);
}

.ai-output h3:first-child {
  margin-top: 0;
}

.ai-output p {
  margin: 0 0 8px;
  padding: 12px;
  border-radius: 12px;
  color: #d4e1f7;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(116, 149, 226, 0.12);
  line-height: 1.5;
  font-size: 13px;
}

.ai-output p button {
  float: right;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.content-output ol {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.content-output li {
  padding: 10px 12px;
  border-radius: 12px;
  color: #d4e1f7;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(116, 149, 226, 0.12);
  line-height: 1.45;
  font-size: 13px;
}

.graphic-generator-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  margin: 18px 0;
}

.graphic-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.graphic-preview-frame {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(116, 149, 226, 0.18);
  background: rgba(3, 7, 18, 0.52);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.graphic-preview-frame.square {
  max-width: 520px;
}

.graphic-preview-frame.story {
  max-width: 340px;
}

.graphic-preview-frame img {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.34);
}

.carousel-builder {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.carousel-controls label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.carousel-controls textarea {
  width: 100%;
  margin-top: 7px;
  min-height: 96px;
}

.carousel-slide-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.carousel-slide-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 13px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  color: var(--text);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  text-align: left;
}

.carousel-slide-list button.active {
  border-color: rgba(111, 154, 255, 0.48);
  background: rgba(63, 108, 255, 0.14);
}

.carousel-slide-list span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #dbeafe;
  background: rgba(63, 108, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.carousel-slide-list b {
  font-size: 12px;
}

.carousel-slide-list small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.carousel-preview {
  align-self: start;
}

.reels-layout,
.publish-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  margin-bottom: 18px;
}

.video-drop {
  min-height: 156px;
  margin-top: 14px;
  border-radius: 18px;
  border: 1px dashed rgba(111, 154, 255, 0.45);
  background: rgba(63, 108, 255, 0.08);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  padding: 18px;
}

.video-drop input {
  display: none;
}

.video-drop svg {
  color: var(--blue-2);
}

.video-drop b,
.video-drop span {
  display: block;
}

.video-drop span {
  max-width: 420px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.video-preview {
  width: 100%;
  max-height: 340px;
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(116, 149, 226, 0.16);
  background: rgba(3, 7, 18, 0.64);
}

.reels-analysis {
  display: grid;
  gap: 12px;
}

.reels-analysis article,
.script-grid article,
.publish-preview {
  padding: 14px;
  border-radius: 15px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(116, 149, 226, 0.13);
}

.reels-analysis h3,
.script-grid h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.reels-analysis p,
.reels-analysis span,
.script-grid p {
  margin: 0;
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.reels-analysis div {
  padding: 9px 0;
  border-top: 1px solid rgba(116, 149, 226, 0.1);
}

.reels-analysis b {
  display: block;
  margin-bottom: 3px;
}

.script-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.script-grid time {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #90ffc0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 11px;
  font-weight: 900;
}

.calendar-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
}

.calendar-form input,
.calendar-form select,
.carousel-controls textarea {
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  outline: none;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13px;
}

.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.calendar-week section,
.calendar-month section {
  min-height: 220px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.035);
}

.calendar-week h2 {
  margin: 0 0 10px;
  color: #dce7ff;
  font-size: 13px;
}

.calendar-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-month section {
  min-height: 132px;
}

.calendar-month section > b {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
}

.calendar-card {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(63, 108, 255, 0.09);
  border: 1px solid rgba(111, 154, 255, 0.19);
  cursor: pointer;
}

.calendar-card.compact {
  padding: 8px;
}

.calendar-card time {
  color: #90ffc0;
  font-size: 11px;
  font-weight: 900;
}

.calendar-card b {
  font-size: 12.5px;
}

.calendar-card span {
  color: var(--muted);
  font-size: 11px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.asset-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.asset-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.asset-form input,
.asset-form select,
.asset-form textarea {
  width: 100%;
  margin-top: 7px;
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  outline: none;
  border-radius: 12px;
  padding: 11px 13px;
}

.asset-form textarea {
  min-height: 86px;
  resize: vertical;
}

.asset-form .full,
.asset-toggle {
  grid-column: span 2;
}

.asset-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.asset-toggle input {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}

.asset-context {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(84, 166, 255, 0.18);
  background: rgba(63, 108, 255, 0.09);
}

.asset-context b {
  font-size: 13px;
}

.asset-context span,
.ai-asset-flag {
  color: #90ffc0 !important;
}

.media-card {
  min-height: 280px;
  display: grid;
  grid-template-rows: 130px 1fr;
  border-radius: var(--radius);
  border: 1px solid rgba(116, 149, 226, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)), var(--panel);
  overflow: hidden;
}

.media-thumb {
  display: grid;
  place-items: center;
  color: #dbeafe;
  background:
    linear-gradient(135deg, rgba(63, 108, 255, 0.38), rgba(139, 92, 246, 0.16)),
    rgba(3, 7, 18, 0.5);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.media-card > div:last-child {
  padding: 14px;
}

.media-card h2 {
  margin: 10px 0 7px;
  font-size: 15px;
}

.media-card p,
.media-card small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.platform-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.platform-checks button {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(116, 149, 226, 0.16);
  background: rgba(255,255,255,0.04);
  color: #b8c7e4;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
}

.platform-checks button.active {
  color: #fff;
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.14);
}

.publish-center-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
}

.publish-center-grid article {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 104px;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.04);
}

.publish-center-grid article.connected {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.07);
}

.platform-copy-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.platform-copy-grid article {
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(116, 149, 226, 0.13);
  background: rgba(255,255,255,0.04);
}

.platform-copy-grid h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.platform-copy-grid label {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.platform-copy-grid textarea,
.platform-copy-grid input {
  width: 100%;
  margin-top: 6px;
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  outline: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
}

.platform-copy-grid textarea {
  min-height: 82px;
  resize: vertical;
}

.publish-preview b,
.publish-preview span {
  display: block;
}

.publish-preview small {
  display: block;
  color: #bcd0ff;
  margin-bottom: 7px;
  font-size: 12px;
}

.publish-preview p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.publish-preview span {
  color: #90ffc0;
  font-size: 12px;
  font-weight: 900;
}

.publish-log {
  display: grid;
  gap: 10px;
}

.publish-log article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(116, 149, 226, 0.12);
  background: rgba(255,255,255,0.04);
}

.publish-log svg {
  color: var(--blue-2);
}

.publish-log b,
.publish-log small {
  display: block;
}

.publish-log b {
  font-size: 13px;
}

.publish-log small,
.publish-log time {
  color: var(--muted);
  font-size: 11px;
}

.one-click-campaign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px auto;
  gap: 12px;
  align-items: end;
}

.one-click-campaign label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.one-click-campaign select {
  width: 100%;
  margin-top: 7px;
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  outline: none;
  border-radius: 12px;
  padding: 11px 13px;
}

.campaign-result {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-top: 14px;
}

.campaign-result article {
  padding: 14px;
  border-radius: 15px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.075);
}

.campaign-result b,
.campaign-result span {
  display: block;
}

.campaign-result b {
  font-size: 28px;
}

.campaign-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.campaign-bundle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 17px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
}

.campaign-bundle h3,
.campaign-bundle p {
  margin: 0;
}

.campaign-bundle p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 12px;
}

.campaign-bundle span {
  display: grid;
  justify-items: center;
  min-width: 86px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.campaign-bundle b {
  color: var(--text);
  font-size: 24px;
}

.meta-ad-generator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.meta-ad-generator label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.meta-ad-generator select {
  width: 100%;
  margin-top: 7px;
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  outline: none;
  border-radius: 12px;
  padding: 11px 13px;
}

.save-confirm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #90ffc0;
  background: rgba(34, 197, 94, 0.11);
  border: 1px solid rgba(34, 197, 94, 0.22);
  font-size: 12px;
  font-weight: 900;
}

.meta-ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.meta-ad-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  border-radius: 17px;
  border: 1px solid rgba(116, 149, 226, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
}

.meta-ad-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.meta-ad-card-head > span {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
}

.meta-ad-card h3,
.meta-ad-card p {
  margin: 0;
}

.meta-ad-card h3 {
  font-size: 19px;
}

.meta-ad-card p,
.meta-ad-audience span,
.meta-ad-graphic span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.meta-ad-card strong {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-size: 12px;
}

.meta-ad-audience,
.meta-ad-graphic {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 13px;
  border: 1px solid rgba(116, 149, 226, 0.12);
  background: rgba(3, 10, 24, 0.32);
}

.meta-ad-audience b,
.meta-ad-graphic b {
  color: #dce7ff;
  font-size: 12px;
}

.ad-score-panel {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 17px;
  border: 1px solid rgba(111, 154, 255, 0.24);
  background: rgba(63, 108, 255, 0.1);
}

.ad-score-panel > strong {
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 30px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.ad-score-panel b,
.ad-score-panel span {
  display: block;
}

.ad-score-panel span,
.ad-score-panel p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.competitor-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.competitor-list {
  display: grid;
  gap: 12px;
}

.competitor-list article {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.04);
}

.competitor-list h3,
.competitor-list p {
  margin: 0 0 8px;
}

.competitor-list p {
  color: var(--muted);
  font-size: 12.5px;
}

.competitor-list strong {
  display: block;
  margin-top: 10px;
  color: #90ffc0;
  font-size: 13px;
  line-height: 1.45;
}

.competitor-source-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(98, 132, 255, 0.22);
  background: rgba(64, 92, 210, 0.1);
}

.competitor-source-box b,
.competitor-source-box span,
.competitor-source-box code {
  display: block;
}

.competitor-source-box span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.competitor-source-box code {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 12px;
  padding: 10px 12px;
  color: #c8d7ff;
  background: rgba(2, 8, 20, 0.72);
  border: 1px solid rgba(117, 145, 209, 0.16);
}

.api-message {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #dbe7ff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(117, 145, 209, 0.14);
  font-size: 12.5px;
}

.source-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.source-checklist span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(117, 145, 209, 0.14);
  font-size: 11.5px;
  font-weight: 700;
}

.analysis-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.analysis-status small {
  color: #ffaaa8;
}

.competitor-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.competitor-card-head h3 {
  word-break: break-word;
}

.competitor-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
}

.popular-posts {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(117, 145, 209, 0.12);
}

.popular-posts > b {
  font-size: 12px;
  color: var(--text);
}

.popular-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(2, 8, 20, 0.38);
  border: 1px solid rgba(117, 145, 209, 0.1);
}

.popular-post-row span,
.popular-post-row small {
  display: block;
}

.popular-post-row span {
  font-weight: 800;
  color: var(--text);
  font-size: 12.5px;
}

.popular-post-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.popular-post-row a {
  color: #8eb0ff;
}

.post-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.post-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 8px;
  color: #cbd7ff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(117, 145, 209, 0.1);
  font-size: 11px;
}

.api-error {
  margin-top: 10px !important;
  color: #ffaaa8 !important;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.lead-form input,
.lead-form select {
  width: 100%;
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  outline: none;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13px;
}

.lead-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lead-board section {
  min-height: 360px;
  padding: 12px;
  border-radius: 17px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.035);
}

.lead-board h2 {
  margin: 0 0 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}

.lead-board article {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(3, 7, 18, 0.38);
}

.lead-board span,
.lead-board p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.lead-board strong {
  color: #90ffc0;
}

.lead-board button {
  min-height: 32px;
  justify-self: start;
  border-radius: 10px;
  border: 1px solid rgba(116, 149, 226, 0.16);
  background: rgba(255,255,255,0.045);
  color: #dbeafe;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 800;
}

.queue-grid,
.history-grid,
.lead-finder-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.queue-grid article,
.history-grid article,
.lead-finder-metrics article {
  min-height: 132px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.04);
}

.queue-grid h3,
.history-grid b,
.lead-finder-metrics b {
  margin: 0;
}

.queue-grid b,
.lead-finder-metrics b {
  display: block;
  margin: 8px 0;
  font-size: 28px;
}

.queue-grid span,
.history-grid span,
.history-grid strong,
.lead-finder-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.history-grid svg,
.lead-finder-metrics svg {
  color: var(--blue-2);
  margin-bottom: 10px;
}

.history-grid strong {
  color: #90ffc0;
  margin-top: 8px;
}

.lead-finder-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.case-study-list {
  display: grid;
  gap: 10px;
}

.case-study-list article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.04);
}

.case-study-list span {
  color: var(--muted);
  font-size: 12px;
}

.case-study-list strong {
  color: #90ffc0;
  font-size: 12.5px;
}

.manager-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.manager-summary article {
  min-height: 86px;
  padding: 14px;
  border-radius: 15px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(116, 149, 226, 0.14);
}

.manager-summary b,
.manager-summary span {
  display: block;
}

.manager-summary b {
  font-size: 28px;
  line-height: 1;
}

.manager-summary span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.plan-30-list {
  display: grid;
  gap: 9px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.plan-30-list article {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 128px 170px auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(116, 149, 226, 0.12);
}

.plan-30-list time,
.plan-30-list em,
.plan-30-list small {
  font-size: 11px;
  font-weight: 900;
}

.plan-30-list time {
  color: #bcd0ff;
}

.plan-30-list b {
  display: block;
  font-size: 13px;
}

.plan-30-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-30-list em {
  justify-self: start;
  font-style: normal;
  color: #90ffc0;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.plan-30-list small {
  color: #b8c7e4;
}

.empty-state {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--muted);
  gap: 10px;
  padding: 24px;
}

.empty-state svg {
  color: var(--blue-2);
}

.empty-state b {
  color: var(--text);
  max-width: 360px;
}

.empty-state.wide {
  grid-column: 1 / -1;
}

.empty-state.compact {
  min-height: 150px;
}

.empty-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.import-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.import-steps article {
  padding: 15px;
  border-radius: 14px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.045);
}

.import-steps b,
.import-steps span {
  display: block;
}

.import-steps b {
  color: var(--blue-2);
  font-size: 12px;
  margin-bottom: 8px;
}

.import-steps span {
  color: #d7e2f6;
  font-weight: 800;
  line-height: 1.35;
}

.keyword-list div,
.source-list div,
.pie-row span,
.webhook-list article,
.todo-list article,
.timeline article,
.seo-checks article,
.user-list article,
.toggle-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(116, 149, 226, 0.1);
}

.keyword-list div:first-child,
.source-list div:first-child,
.webhook-list article:first-child,
.todo-list article:first-child,
.timeline article:first-child,
.seo-checks article:first-child,
.user-list article:first-child,
.toggle-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.keyword-list span,
.keyword-list small {
  display: block;
}

.user-list span {
  flex: 1;
  min-width: 0;
}

.user-list b,
.user-list small {
  display: block;
}

.user-list small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.keyword-list b {
  font-size: 12.5px;
}

.keyword-list small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}

.keyword-list em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

.source-list div {
  display: grid;
  grid-template-columns: 1fr auto;
}

.source-list i {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.source-list em {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.pie-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.pie-row div {
  flex: 1;
}

.pie-row span {
  font-size: 12px;
  padding: 6px 0;
}

.pie-row span i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.pie-row span b {
  margin-left: auto;
}

.report-cards,
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.report-cards article,
.integration-grid article {
  padding: 18px;
}

.report-cards article > svg,
.integration-grid article > svg {
  color: var(--blue-2);
  margin-bottom: 14px;
}

.report-cards h2,
.integration-grid h3 {
  margin: 10px 0 6px;
  font-size: 16px;
}

.report-cards p,
.integration-grid p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.report-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.report-cards button,
.integration-grid button {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(116, 149, 226, 0.16);
  background: rgba(255,255,255,0.045);
  color: #dce7ff;
  cursor: pointer;
  font-weight: 800;
}

.content-report-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.content-report-summary article {
  min-height: 106px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border-radius: 15px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.045);
}

.content-report-summary svg {
  color: var(--blue-2);
}

.content-report-summary b {
  font-size: 24px;
  line-height: 1;
}

.content-report-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.next-action {
  display: inline-flex;
  max-width: 260px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #bcd0ff;
  background: rgba(63, 108, 255, 0.14);
  border: 1px solid rgba(63, 108, 255, 0.22);
  font-weight: 800;
  font-size: 11px;
}

.todo-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.todo-board section {
  padding: 15px;
  min-height: 360px;
}

.todo-board h2,
.integration-section h2 {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.todo-board article {
  padding: 13px;
  border-radius: 13px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(116, 149, 226, 0.11);
}

.todo-board article span {
  color: var(--blue-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.todo-board h3 {
  margin: 7px 0 7px;
  font-size: 13px;
}

.todo-board p,
.todo-board small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.webhook-list article {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.1fr auto auto auto;
  align-items: center;
}

.webhook-list h3 {
  margin: 0 0 7px;
  font-size: 13px;
}

code {
  color: #b8c7e7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #70f0a3;
  font-size: 11px;
  font-weight: 900;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.integration-section {
  margin-bottom: 22px;
}

.integration-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 14px;
  margin-bottom: 18px;
}

.connection-checklist {
  display: grid;
  gap: 10px;
}

.connection-checklist article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(116, 149, 226, 0.14);
  background: rgba(255,255,255,0.045);
}

.connection-checklist article.active {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.075);
}

.connection-checklist > article > span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #9bb8ff;
  background: rgba(63, 108, 255, 0.14);
}

.connection-checklist article.active > span {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
}

.connection-checklist b,
.connection-checklist small {
  display: block;
}

.connection-checklist b {
  font-size: 13px;
}

.connection-checklist small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 11px;
}

.integration-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.integration-config label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.integration-config input,
.integration-config select,
.integration-config textarea {
  width: 100%;
  margin-top: 7px;
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  outline: none;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13px;
}

.integration-config textarea {
  min-height: 78px;
  resize: vertical;
}

.integration-config .full,
.integration-config-actions,
.test-log {
  grid-column: 1 / -1;
}

.integration-config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.test-log {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 13px;
  background: rgba(3, 7, 18, 0.42);
  border: 1px solid rgba(116, 149, 226, 0.12);
}

.test-log p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.test-log b {
  color: var(--blue-2);
}

.integration-grid article {
  display: grid;
  grid-template-columns: auto 1fr 112px 92px;
  column-gap: 12px;
}

.integration-grid article.selected {
  border-color: rgba(111, 154, 255, 0.46);
  box-shadow: 0 0 28px rgba(63, 108, 255, 0.12);
}

.integration-grid article.active {
  border-color: rgba(34, 197, 94, 0.2);
}

.integration-grid h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.integration-grid small {
  color: var(--faint);
  font-size: 11px;
}

.integration-grid article.active small {
  color: #8fe3ae;
}

.integration-grid article button {
  align-self: end;
}

.integration-grid article button.disconnect {
  color: #ff9d9d;
}

.settings-layout {
  grid-template-columns: 240px minmax(0, 1fr);
}

.settings-tabs {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 10px;
  border: 1px solid rgba(116, 149, 226, 0.16);
  background: rgba(10, 16, 31, 0.65);
  border-radius: 16px;
}

.toggle-list button {
  width: 42px;
  height: 24px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  cursor: pointer;
}

.toggle-list button i {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  transition: transform 140ms ease;
}

.toggle-list button.on {
  background: var(--blue);
}

.toggle-list button.on i {
  transform: translateX(18px);
}

.api-key-list {
  display: grid;
  gap: 12px;
}

.api-key-list label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.api-key-list span {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}

.api-key-list input {
  flex: 1;
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  border-radius: 12px;
  padding: 11px 13px;
}

.api-key-list button {
  width: 42px;
  border-radius: 12px;
  border: 1px solid rgba(116, 149, 226, 0.18);
  background: rgba(255,255,255,0.045);
  color: var(--muted);
  cursor: pointer;
}

.detail-hero {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.detail-hero > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-hero h1 {
  margin: 0 0 5px;
  font-size: 28px;
}

.detail-hero p {
  margin: 0 0 9px;
  color: var(--muted);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(116, 149, 226, 0.16);
  margin-bottom: 18px;
}

.tabs button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.tabs button.active {
  color: #fff;
  border-bottom-color: var(--blue);
}

.back-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  margin: 0 0 14px;
  padding: 0;
  cursor: pointer;
  font-weight: 800;
}

.ai-report {
  padding: 18px;
  border-radius: 16px;
  background: rgba(63, 108, 255, 0.12);
  border: 1px solid rgba(63, 108, 255, 0.22);
}

.ai-report h3 {
  margin: 0 0 9px;
}

.ai-report p {
  color: #cbd8ef;
  line-height: 1.6;
}

.import-summary {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(3, 7, 18, 0.34);
  border: 1px solid rgba(116, 149, 226, 0.18);
}

.import-summary b {
  font-size: 13px;
}

.import-summary span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.import-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.import-summary ul {
  margin: 0;
  padding-left: 18px;
  color: #cbd8ef;
  font-size: 12px;
  line-height: 1.55;
}

.brand-profile {
  display: grid;
  gap: 10px;
}

.brand-color-row {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}

.brand-profile article {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(116, 149, 226, 0.14);
}

.brand-profile article span {
  display: block;
  color: var(--faint);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 5px;
}

.brand-profile article p {
  margin: 0;
  color: #dce7ff;
  font-size: 12.5px;
  line-height: 1.55;
}

.brain-layout {
  display: grid;
  gap: 14px;
}

.brain-memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.brain-memory-grid article,
.brain-list article,
.brain-recommendations article {
  padding: 13px;
  border-radius: 15px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(116, 149, 226, 0.14);
}

.brain-memory-grid span,
.brain-list span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.45;
}

.brain-memory-grid b,
.brain-list b {
  display: block;
  margin-top: 6px;
  color: #eaf2ff;
  font-size: 13px;
  line-height: 1.45;
}

.brain-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(84, 166, 255, 0.24);
  background: linear-gradient(135deg, rgba(63, 108, 255, 0.15), rgba(139, 92, 246, 0.09));
}

.brain-prompt svg {
  color: var(--blue-2);
}

.brain-prompt p {
  margin: 0;
  color: #cbd8ef;
  line-height: 1.65;
}

.brain-prompt b {
  color: #fff;
}

.brain-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.brain-list {
  display: grid;
  gap: 10px;
}

.brain-recommendations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brain-recommendations article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.brain-recommendations svg {
  color: var(--blue-2);
  margin-top: 2px;
}

.brain-recommendations span {
  color: #dce7ff;
  font-size: 13px;
  line-height: 1.5;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
}

.profile-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.08);
}

.profile-progress b {
  color: #90ffc0;
  font-size: 22px;
}

.profile-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-progress i {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.profile-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.social-fields,
.profile-checklist {
  display: grid;
  gap: 10px;
}

.social-fields label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.social-fields input {
  width: 100%;
  margin-top: 7px;
  color: var(--text);
  background: rgba(3, 10, 24, 0.84);
  border: 1px solid rgba(117, 145, 209, 0.18);
  outline: none;
  border-radius: 12px;
  padding: 11px 13px;
}

.profile-checklist {
  margin-top: 14px;
}

.profile-checklist article {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(116, 149, 226, 0.12);
  font-size: 12px;
  font-weight: 800;
}

.profile-checklist article.done {
  color: #90ffc0;
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.08);
}

.quality-bars div {
  margin-bottom: 14px;
}

.quality-bars span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
}

.quality-bars i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.quality-bars em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.todo-list article {
  justify-content: flex-start;
}

.todo-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.todo-list div {
  flex: 1;
}

.todo-list h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.todo-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.timeline article {
  justify-content: flex-start;
}

.timeline span {
  width: 110px;
  color: var(--blue-2);
  font-size: 12px;
}

.report-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(116, 149, 226, 0.1);
}

.report-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.report-row > div {
  flex: 1;
}

.report-row b,
.report-row small {
  display: block;
}

.report-row small {
  color: var(--muted);
  margin-top: 3px;
}

.alert-list article,
.campaign-mini-list article,
.todo-mini-list article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(116, 149, 226, 0.1);
}

.alert-list article:first-child,
.campaign-mini-list article:first-child,
.todo-mini-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.alert-list svg {
  color: var(--amber);
  flex: 0 0 auto;
}

.alert-list .danger svg { color: var(--red); }
.alert-list .success svg { color: var(--green); }

.alert-list div,
.campaign-mini-list div,
.todo-mini-list div {
  flex: 1;
  min-width: 0;
}

.alert-list b,
.alert-list small,
.campaign-mini-list b,
.campaign-mini-list small,
.todo-mini-list b,
.todo-mini-list small {
  display: block;
}

.alert-list b,
.campaign-mini-list b,
.todo-mini-list b {
  font-size: 12.5px;
}

.alert-list small,
.campaign-mini-list small,
.todo-mini-list small,
.alert-list span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.campaign-mini-list i {
  width: 8px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.campaign-mini-list strong {
  color: #70f0a3;
  font-size: 16px;
}

.seo-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(12px);
}

.modal {
  width: min(820px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
}

.modal-head {
  margin-bottom: 18px;
}

.modal-head h2 {
  margin: 0 0 5px;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
}

.modal-head button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(116, 149, 226, 0.18);
  background: rgba(255,255,255,0.045);
  color: var(--text);
  cursor: pointer;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.scrim {
  display: none;
}

@media (max-width: 1280px) {
  .metrics-grid.six,
  .metrics-grid.secondary,
  .content-report-summary,
  .detail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-grid,
  .ai-action-grid,
  .bottom-panels,
  .today-actions,
  .quick-create-grid,
  .manager-summary,
  .script-grid,
  .lead-board,
  .publish-center-grid,
  .campaign-result,
  .queue-grid,
  .history-grid,
  .lead-finder-metrics,
  .brain-memory-grid,
  .brain-recommendations,
  .meta-ad-grid,
  .asset-form,
  .report-cards,
  .integration-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profit-hero {
    grid-column: 1 / -1;
  }

  .todo-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0,0,0,0.48);
    border: 0;
  }

  .mobile-menu {
    display: inline-flex !important;
    width: 40px;
    padding: 0;
  }

  .hero-panel,
  .decision-grid,
  .dashboard-layout,
  .social-dashboard-grid,
  .creator-layout,
  .graphic-generator-grid,
  .carousel-builder,
  .reels-layout,
  .publish-layout,
  .one-click-campaign,
  .meta-ad-generator,
  .lead-finder-grid,
  .brain-columns,
  .profile-settings-grid,
  .competitor-layout,
  .integration-setup-grid,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .calendar-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-month {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-console {
    transform: none;
  }

  .top-actions .ghost,
  .top-actions .primary,
  .fx-rate {
    display: none;
  }

  .plan-30-list article {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .plan-30-list small,
  .plan-30-list .badge {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  main {
    padding: 18px;
  }

  .topbar {
    padding: 0 16px;
  }

  .hero-panel {
    padding: 22px;
    min-height: auto;
    border-radius: 22px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .console-grid,
  .ai-action-grid,
  .bottom-panels,
  .import-steps,
  .metrics-grid.four,
  .metrics-grid.six,
  .metrics-grid.secondary,
  .today-actions,
  .quick-create-grid,
  .manager-summary,
  .content-report-summary,
  .social-dashboard-grid,
  .integration-setup-grid,
  .graphic-generator-grid,
  .carousel-builder,
  .reels-layout,
  .publish-layout,
  .script-grid,
  .library-grid,
  .detail-stats,
  .app-grid,
  .publish-center-grid,
  .campaign-result,
  .queue-grid,
  .history-grid,
  .lead-finder-metrics,
  .lead-finder-grid,
  .one-click-campaign,
  .meta-ad-generator,
  .meta-ad-grid,
  .asset-form,
  .asset-form .full,
  .asset-toggle,
  .brain-memory-grid,
  .brain-recommendations,
  .brain-prompt,
  .report-cards,
  .integration-grid,
  .todo-board,
  .form-grid,
  .seo-checks {
    grid-template-columns: 1fr;
  }

  .plan-30-list article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .plan-30-list small,
  .plan-30-list .badge {
    grid-column: auto;
  }

  .plan-30-list span {
    white-space: normal;
  }

  .competitor-insights,
  .popular-post-row {
    grid-template-columns: 1fr;
  }

  .post-metrics {
    justify-content: flex-start;
  }

  .connection-checklist article,
  .integration-config,
  .integration-grid article,
  .calendar-form,
  .calendar-month,
  .publish-log article,
  .campaign-bundle,
  .ad-score-panel,
  .lead-form,
  .lead-board,
  .carousel-slide-list button {
    grid-template-columns: 1fr;
  }

  .integration-config .full,
  .integration-config-actions,
  .test-log {
    grid-column: auto;
  }

  .page-title,
  .detail-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .title-actions,
  .detail-actions {
    width: 100%;
  }

  .title-actions > *,
  .detail-actions > * {
    flex: 1;
  }

  .panel {
    padding: 15px;
  }

  .webhook-list article {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
