:root {
  color-scheme: dark;
  --bg: #050806;
  --panel: rgba(12, 20, 18, 0.84);
  --panel-strong: rgba(16, 28, 25, 0.94);
  --ink: #ecfff7;
  --muted: #8fa79e;
  --line: rgba(119, 255, 211, 0.18);
  --line-strong: rgba(119, 255, 211, 0.36);
  --teal: #29f0c4;
  --teal-dark: #16b89b;
  --amber: #f5b84b;
  --red: #ff6f61;
  --green: #64f29a;
  --blue: #62b7ff;
  --violet: #9d7cff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --glow: 0 0 0 1px rgba(41, 240, 196, 0.16), 0 0 34px rgba(41, 240, 196, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(41, 240, 196, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 240, 196, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(245, 184, 75, 0.08) 50%, transparent 52%),
    linear-gradient(180deg, transparent 0 72%, rgba(98, 183, 255, 0.06) 74%, transparent 78%);
  opacity: 0.7;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  background: #20261f;
  color: #f7f2e8;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-block {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #d7a13f;
  color: #1c1c17;
  font-weight: 800;
  border-radius: 8px;
}

.brand-block h1,
.topbar h2,
.panel h3 {
  margin: 0;
}

.brand-block h1 {
  font-size: 21px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar .eyebrow {
  color: rgba(247, 242, 232, 0.66);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  border: 0;
  background: transparent;
  color: rgba(247, 242, 232, 0.76);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(247, 242, 232, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.nav-help:hover::after,
.nav-help:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 5;
  left: 26px;
  top: 50%;
  width: 220px;
  transform: translateY(-50%);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #111712;
  color: #fff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
}

.sidebar-note {
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 242, 232, 0.8);
}

.sidebar-note p {
  margin: 0 0 6px;
}

.main {
  padding: 24px;
  min-width: 0;
}

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

.topbar h2 {
  font-size: 28px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  font-weight: 700;
  background: var(--panel);
  color: var(--ink);
}

.button.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary:hover {
  border-color: var(--teal);
}

.button.small {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 13px;
}

.status {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #fff3d8;
  border: 1px solid #e6c47a;
  border-radius: 8px;
  color: #5d3d00;
}

.hidden,
.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 18px;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: stretch;
}

.dashboard-overview-grid > .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.metric-card,
.panel,
.lead-card,
.community-card,
.content-card,
.delivery-card,
.seo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 16px;
  min-height: 118px;
  display: grid;
  align-content: space-between;
}

.metric-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.metric-value {
  font-size: 34px;
  font-weight: 850;
}

.metric-sub {
  color: var(--muted);
  font-size: 13px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

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

.compact-list {
  margin-top: 10px;
}

.report-box {
  min-height: 280px;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(5, 8, 6, 0.62);
  color: var(--ink);
  line-height: 1.75;
  overflow: auto;
}

.panel {
  padding: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.panel-header.compact {
  margin-bottom: 10px;
}

.panel h3 {
  font-size: 17px;
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px auto;
  gap: 8px;
  margin-bottom: 12px;
}

.stack-form {
  display: grid;
  gap: 10px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
}

textarea {
  resize: vertical;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  max-width: 100%;
}

.tag strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.tag button {
  border: 0;
  background: transparent;
  color: var(--red);
  padding: 0 2px;
}

.lead-list,
.content-list,
.seo-list,
.action-list,
.account-list,
.bar-list,
.table-list {
  display: grid;
  gap: 12px;
}

.action-plan-panel {
  border-color: rgba(183, 127, 25, 0.38);
  background: linear-gradient(135deg, rgba(255, 248, 222, 0.96), rgba(237, 248, 255, 0.94));
}

.action-plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
}

.today-action-card {
  display: grid;
  align-content: space-between;
  min-height: 178px;
  padding: 14px;
  border: 1px solid rgba(54, 95, 145, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.today-action-card h3 {
  margin: 9px 0 6px;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.today-action-card.lead {
  border-color: rgba(183, 127, 25, 0.38);
}

.today-action-card.review {
  border-color: rgba(37, 116, 71, 0.28);
}

.today-action-card.publish {
  border-color: rgba(54, 95, 145, 0.32);
}

.action-badge,
.priority-badge,
.status-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.action-badge {
  background: #eef6ff;
  color: var(--blue);
}

.funnel-panel {
  min-height: 100%;
}

.funnel-list {
  display: grid;
  gap: 13px;
}

.funnel-stage {
  display: grid;
  gap: 7px;
}

.funnel-stage-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.funnel-stage-top span {
  color: var(--muted);
  font-weight: 750;
}

.funnel-stage-top strong {
  font-size: 20px;
}

.funnel-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe7db;
}

.funnel-fill {
  height: 100%;
  min-width: 10px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #7fbf99);
}

.lead-card,
.community-card,
.content-card,
.account-card,
.delivery-card,
.seo-card {
  padding: 14px;
}

.lead-card,
.content-card {
  border-left: 4px solid transparent;
}

.lead-card.is-high-intent {
  border-left-color: var(--amber);
}

.lead-card.is-low-risk,
.content-card.is-low-risk {
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(37, 116, 71, 0.06), var(--panel) 46%);
}

.lead-card.is-high-risk,
.content-card.is-high-risk {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(179, 59, 49, 0.06), var(--panel) 46%);
}

.lead-title-row,
.content-title-row,
.seo-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.lead-title,
.content-title,
.seo-title {
  margin: 0 0 6px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.lead-badge-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.status-tag.new {
  background: #eef6ff;
  color: var(--blue);
}

.status-tag.progress {
  background: #fff4d8;
  color: #8a5a00;
}

.status-tag.published {
  background: #eaf7ef;
  color: var(--green);
}

.priority-badge.intent {
  background: #fff4d8;
  color: #8a5a00;
}

.priority-badge.low-risk {
  background: #eaf7ef;
  color: var(--green);
}

.priority-badge.high-risk {
  background: #ffecea;
  color: var(--red);
}

.lead-body,
.content-body,
.seo-outline {
  color: var(--muted);
  line-height: 1.5;
}

.content-body {
  white-space: pre-wrap;
  color: #303832;
}

.delivery-view {
  margin-top: 12px;
}

.delivery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.delivery-grid pre {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
  color: #26322d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cover-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #101418;
}

.cover-preview svg {
  display: block;
  width: 100%;
  height: auto;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.pill.intent {
  color: var(--green);
  border-color: rgba(37, 116, 71, 0.28);
}

.pill.risk {
  color: var(--red);
  border-color: rgba(179, 59, 49, 0.26);
}

.pill.action {
  color: var(--blue);
  border-color: rgba(54, 95, 145, 0.28);
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.channel-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 800;
}

.channel-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.channel-brief {
  display: grid;
  gap: 10px;
}

.channel-brief h3 {
  margin: 0;
}

.channel-link {
  width: fit-content;
  font-weight: 800;
}

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

.channel-brief-grid h4 {
  margin: 0;
  font-size: 14px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.toolbar input {
  width: 220px;
}

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

.community-card h3 {
  margin: 0 0 6px;
}

.sample-list,
.seo-outline {
  margin: 10px 0 0;
  padding-left: 18px;
}

.sample-list li,
.seo-outline li {
  margin: 6px 0;
}

.bar-item {
  display: grid;
  gap: 7px;
}

.bar-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.bar-track {
  height: 10px;
  background: #ebe7db;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: var(--teal);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, minmax(62px, 92px));
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.table-row.sprint-row {
  grid-template-columns: minmax(90px, 0.8fr) 72px minmax(180px, 1.5fr) minmax(130px, 1fr);
}

.table-row.roi-row,
.table-row.table-head {
  grid-template-columns: minmax(96px, 1.1fr) repeat(5, minmax(92px, 1fr));
}

.table-head {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

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

.settings-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.settings-grid .wide {
  grid-column: 1 / -1;
}

.empty {
  color: var(--muted);
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.next-action-item,
.empty-state {
  color: var(--muted);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  line-height: 1.48;
}

.empty-state {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.empty-state p {
  margin: 0 0 10px;
}

.empty-illustration {
  width: 64px;
  height: 64px;
  display: grid;
  align-items: end;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: #eef6ff;
}

.empty-illustration span {
  display: block;
  border-radius: 999px 999px 4px 4px;
  background: var(--teal);
}

.empty-illustration span:nth-child(1) {
  height: 24px;
}

.empty-illustration span:nth-child(2) {
  height: 40px;
}

.empty-illustration span:nth-child(3) {
  height: 31px;
}

/* Tech command-center skin */
.sidebar {
  background:
    linear-gradient(180deg, rgba(13, 25, 22, 0.98), rgba(5, 8, 6, 0.96)),
    #08110f;
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.32);
}

.brand-mark {
  border-color: rgba(41, 240, 196, 0.44);
  background: linear-gradient(135deg, rgba(41, 240, 196, 0.92), rgba(98, 183, 255, 0.72));
  color: #02100d;
  box-shadow: 0 0 26px rgba(41, 240, 196, 0.28);
}

.brand-block h1 {
  font-size: 22px;
  font-weight: 900;
}

.eyebrow,
.sidebar .eyebrow {
  color: rgba(41, 240, 196, 0.78);
}

.nav-item {
  border: 1px solid transparent;
  color: rgba(236, 255, 247, 0.72);
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(90deg, rgba(41, 240, 196, 0.14), rgba(98, 183, 255, 0.06));
  border-color: rgba(41, 240, 196, 0.2);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--teal);
}

.nav-help {
  background: rgba(41, 240, 196, 0.12);
  color: var(--teal);
}

.nav-help:hover::after,
.nav-help:focus::after {
  background: #07110f;
  border-color: rgba(41, 240, 196, 0.28);
}

.sidebar-note {
  border: 1px solid rgba(41, 240, 196, 0.22);
  background: linear-gradient(135deg, rgba(41, 240, 196, 0.1), rgba(245, 184, 75, 0.06));
  color: rgba(236, 255, 247, 0.78);
}

.main {
  padding: 26px;
}

.topbar {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(12, 20, 18, 0.88), rgba(10, 14, 13, 0.62));
  box-shadow: var(--shadow);
}

.topbar h2 {
  font-size: 30px;
  font-weight: 900;
}

.button {
  background: rgba(236, 255, 247, 0.05);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.button.primary {
  background: linear-gradient(135deg, var(--teal), #62b7ff);
  border-color: rgba(41, 240, 196, 0.66);
  color: #03110e;
  box-shadow: 0 0 20px rgba(41, 240, 196, 0.22);
}

.button.primary:hover {
  background: linear-gradient(135deg, #6affd9, #8fceff);
}

.button.secondary:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.status {
  background: rgba(245, 184, 75, 0.12);
  border-color: rgba(245, 184, 75, 0.34);
  color: #ffd68c;
}

.metric-card,
.panel,
.lead-card,
.community-card,
.content-card,
.account-card,
.delivery-card,
.seo-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric-card::before,
.panel::before,
.lead-card::before,
.content-card::before,
.account-card::before,
.seo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(41, 240, 196, 0.05), transparent 36%);
}

.metric-card {
  box-shadow: var(--glow), var(--shadow);
}

.metric-value {
  color: var(--ink);
  text-shadow: 0 0 22px rgba(41, 240, 196, 0.2);
}

.panel h3 {
  color: var(--ink);
}

input,
select,
textarea {
  background: rgba(2, 10, 8, 0.62);
  color: var(--ink);
  border-color: var(--line);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(41, 240, 196, 0.62);
  box-shadow: 0 0 0 3px rgba(41, 240, 196, 0.1);
}

.tag,
.pill,
.channel-tab {
  background: rgba(236, 255, 247, 0.06);
  border-color: var(--line);
}

.tag strong {
  color: var(--ink);
}

.action-plan-panel {
  border-color: rgba(245, 184, 75, 0.38);
  background:
    linear-gradient(135deg, rgba(245, 184, 75, 0.13), rgba(41, 240, 196, 0.08)),
    var(--panel-strong);
  box-shadow: 0 0 0 1px rgba(245, 184, 75, 0.08), 0 24px 64px rgba(0, 0, 0, 0.32);
}

.today-action-card {
  border-color: rgba(41, 240, 196, 0.18);
  background: rgba(3, 14, 12, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.today-action-card.lead {
  border-color: rgba(245, 184, 75, 0.42);
}

.today-action-card.review {
  border-color: rgba(100, 242, 154, 0.34);
}

.today-action-card.publish {
  border-color: rgba(98, 183, 255, 0.4);
}

.action-badge {
  background: rgba(98, 183, 255, 0.12);
  color: var(--blue);
  border: 1px solid rgba(98, 183, 255, 0.24);
}

.funnel-track,
.bar-track {
  background: rgba(236, 255, 247, 0.08);
}

.funnel-fill,
.bar-fill {
  background: linear-gradient(90deg, var(--teal), var(--amber));
  box-shadow: 0 0 16px rgba(41, 240, 196, 0.24);
}

.lead-card.is-low-risk,
.content-card.is-low-risk {
  background: linear-gradient(90deg, rgba(100, 242, 154, 0.1), var(--panel) 46%);
}

.lead-card.is-high-risk,
.content-card.is-high-risk {
  background: linear-gradient(90deg, rgba(255, 111, 97, 0.1), var(--panel) 46%);
}

.status-tag.new {
  background: rgba(98, 183, 255, 0.12);
  color: var(--blue);
}

.status-tag.progress,
.priority-badge.intent {
  background: rgba(245, 184, 75, 0.14);
  color: var(--amber);
}

.status-tag.published,
.priority-badge.low-risk {
  background: rgba(100, 242, 154, 0.12);
  color: var(--green);
}

.priority-badge.high-risk {
  background: rgba(255, 111, 97, 0.12);
  color: var(--red);
}

.content-body,
.delivery-grid pre {
  color: rgba(236, 255, 247, 0.84);
}

.delivery-grid pre {
  background: rgba(2, 10, 8, 0.72);
}

.channel-tab.active {
  background: linear-gradient(135deg, var(--teal), #62b7ff);
  border-color: rgba(41, 240, 196, 0.66);
  color: #03110e;
}

.empty,
.next-action-item,
.empty-state {
  background: rgba(236, 255, 247, 0.05);
}

.empty-illustration {
  background: rgba(98, 183, 255, 0.12);
}

a {
  color: var(--teal);
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .metric-grid,
  .community-grid,
  .workbench-grid,
  .three-column,
  .dashboard-overview-grid,
  .action-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-overview-grid > .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .main {
    padding: 16px;
  }

  .topbar,
  .two-column,
  .three-column,
  .lead-title-row,
  .content-title-row,
  .seo-title-row,
  .settings-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .metric-grid,
  .community-grid,
  .workbench-grid,
  .delivery-grid,
  .channel-brief-grid,
  .dashboard-overview-grid,
  .dashboard-overview-grid > .metric-grid,
  .action-plan-grid,
  .nav-list,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .empty-state {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .button {
    flex: 1;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar input {
    width: 100%;
  }

  .table-row {
    grid-template-columns: 1fr 1fr;
  }

  .table-row.sprint-row {
    grid-template-columns: 1fr;
  }
}
