:root {
  --ink: #171a17;
  --muted: #5f665d;
  --line: #e5e7e1;
  --paper: #f7f7f3;
  --card: #ffffff;
  --lime: #c5f46a;
  --lime-deep: #8fc62e;
  --mint: #dff5df;
  --peach: #ffe5d0;
  --lilac: #e7e0ff;
  --blue: #dfeeff;
  --danger: #c44432;
  --shadow: 0 20px 60px rgba(29, 34, 24, 0.08);
  --radius: 20px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--paper); font-size: 16px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.login-screen {
  min-height: 100vh;
  color: white;
  background:
    radial-gradient(circle at 18% 80%, rgba(197, 244, 106, .12), transparent 26%),
    radial-gradient(circle at 76% 14%, rgba(184, 153, 255, .12), transparent 25%),
    #171a17;
  overflow: hidden;
  position: relative;
}
.login-screen::before {
  content: "";
  position: absolute;
  width: 570px;
  height: 570px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  left: -260px;
  bottom: -330px;
  box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012);
}
.login-brand, .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.4px;
}
.login-brand { position: absolute; left: 44px; top: 34px; z-index: 2; }
.brand-mark, .mini-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--lime);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 7px;
  transform: rotate(-3deg);
}
.brand-mark span, .mini-mark span { background: var(--ink); border-radius: 5px 5px 2px 2px; }
.brand-mark span:last-child, .mini-mark span:last-child { transform: translateY(5px); }
.login-layout {
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 48px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .65fr);
  align-items: center;
  gap: 100px;
}
.login-story { padding-bottom: 30px; }
.eyebrow, .page-kicker {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 760;
  color: var(--muted);
}
.eyebrow.light { color: var(--lime); }
.login-story h1 {
  font-size: clamp(54px, 6.2vw, 88px);
  line-height: .98;
  letter-spacing: -.07em;
  margin: 22px 0 28px;
  font-weight: 720;
}
.login-story > p { max-width: 550px; color: #adb4aa; font-size: 18px; line-height: 1.65; }
.story-flow { display: flex; align-items: center; margin-top: 56px; max-width: 580px; }
.story-flow div { display: grid; gap: 4px; min-width: 105px; }
.story-flow span { color: var(--lime); font-size: 10px; font-weight: 800; }
.story-flow strong { font-size: 14px; }
.story-flow small { color: #858c82; font-size: 11px; }
.story-flow i { flex: 1; height: 1px; margin: 0 15px; background: linear-gradient(90deg, #596055, #31352f); position: relative; }
.story-flow i::after { content: ""; position: absolute; right: 0; top: -2px; border-left: 5px solid #596055; border-top: 2.5px solid transparent; border-bottom: 2.5px solid transparent; }
.login-card {
  background: #f9faf6;
  color: var(--ink);
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 40px 100px rgba(0,0,0,.35);
}
.mini-mark { width: 42px; height: 42px; margin-bottom: 34px; }
.login-card h2 { font-size: 31px; letter-spacing: -.04em; margin: 12px 0 10px; }
.login-card > p:not(.form-error) { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 28px; }
.login-help { display: block; text-align: center; color: #5f665d; font-size: 11px; margin-top: 18px; }
.login-help code { color: #6a7166; background: #eceee8; padding: 2px 5px; border-radius: 5px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  padding: 27px 20px 20px;
  background: #181b18;
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.icon-button.sidebar-close {
  position: absolute;
  top: 20px;
  right: 17px;
  color: #f5f7f1;
  border-color: #50564e;
  background: #252925;
  font-size: 22px;
  line-height: 1;
}
.sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(12, 14, 12, .42); }
.brand { padding: 0 10px; }
.brand .brand-mark { width: 30px; height: 30px; }
.workspace-label { color: #a8afa5; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; margin: 42px 12px 12px; }
.nav { display: grid; gap: 5px; }
.nav-item {
  border: 0;
  background: transparent;
  color: #969c94;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: background .16s, color .16s, transform .16s;
}
.nav-item:hover { color: white; background: rgba(255,255,255,.055); }
.nav-item.active { background: #292d28; color: white; }
.nav-item.active::before { content: ""; width: 3px; height: 19px; border-radius: 9px; background: var(--lime); margin-left: -12px; }
.nav-item.active svg { margin-left: -3px; }
.nav-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:first-child svg { fill: currentColor; stroke: none; }
.nav-item b { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 8px; background: #323731; font-size: 10px; color: #bfc5bb; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.sidebar-account { padding: 13px; border: 1px solid #30342f; border-radius: 13px; min-height: 61px; overflow: hidden; }
.account-mini { display: flex; gap: 10px; align-items: center; min-width: 0; max-width: 100%; }
.account-avatar { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; background: linear-gradient(145deg, var(--lilac), var(--peach)); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.account-mini > div { min-width: 0; flex: 1 1 0; overflow: hidden; }
.account-mini strong, .account-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-mini strong { font-size: 11px; color: #ecf0ea; }
.account-mini small { font-size: 10px; color: #a8afa5; margin-top: 3px; }
.nav-item.quiet { padding-left: 13px; }

.main { grid-column: 2; min-width: 0; }
.topbar {
  min-height: 94px;
  border-bottom: 1px solid var(--line);
  padding: 20px clamp(24px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247,247,243,.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.page-kicker { margin: 0 0 5px; }
.topbar h1 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.live-pill { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 8px 11px; border-radius: 99px; background: rgba(255,255,255,.65); }
.live-pill i { width: 6px; height: 6px; background: #75bd39; border-radius: 50%; box-shadow: 0 0 0 4px rgba(117,189,57,.12); }
.view { padding: 34px clamp(24px, 4vw, 56px) 70px; max-width: 1550px; margin: 0 auto; }
.mobile-only { display: none !important; }

.button {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  padding: 10px 15px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(24,28,21,.09); }
.button:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.button.primary { background: var(--ink); border-color: var(--ink); color: white; }
.button.primary:hover { background: #282d26; }
.button.lime { background: var(--lime); border-color: #b4df60; color: var(--ink); }
.button.ghost { background: transparent; }
.button.danger { color: var(--danger); border-color: #efccc6; background: #fff9f8; }
.button.wide { width: 100%; justify-content: space-between; padding-inline: 18px; }
.icon-button { width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: white; cursor: pointer; }
.text-button { border: 0; background: none; color: #526c2c; font-weight: 750; font-size: 11px; cursor: pointer; padding: 2px; }

.overview-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.overview-heading h2, .section-heading h2 { font-size: 27px; letter-spacing: -.045em; margin: 0 0 7px; }
.overview-heading p, .section-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.date-chip { color: var(--muted); font-size: 11px; border: 1px solid var(--line); padding: 8px 12px; border-radius: 99px; background: white; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 19px 20px; min-height: 136px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 76px; height: 76px; border-radius: 50%; right: -36px; top: -34px; background: var(--wash, var(--mint)); opacity: .7; }
.metric-card.metric-lilac { --wash: var(--lilac); }
.metric-card.metric-blue { --wash: var(--blue); }
.metric-card.metric-mint { --wash: var(--mint); }
.metric-card.metric-peach { --wash: var(--peach); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 650; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--wash, var(--mint)); font-size: 14px; }
.metric-value { display: block; font-size: 35px; letter-spacing: -.055em; line-height: 1; margin: 24px 0 7px; }
.metric-foot { color: var(--muted); font-size: 10px; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .72fr); gap: 16px; margin-top: 16px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { padding: 19px 21px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-head h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.flow-canvas { min-height: 245px; padding: 30px 24px; background: radial-gradient(#d8dcd3 1px, transparent 1px); background-size: 18px 18px; display: flex; align-items: center; justify-content: safe center; overflow-x: auto; }
.flow-node { flex: 0 0 142px; border: 1px solid #dfe2db; border-radius: 14px; background: white; padding: 15px; box-shadow: 0 8px 25px rgba(22,28,18,.07); }
.flow-node .node-icon { width: 28px; height: 28px; border-radius: 9px; background: var(--node-color, var(--mint)); display: grid; place-items: center; margin-bottom: 15px; }
.flow-node.node-sand { --node-color: #f1eadf; }
.flow-node.node-blue { --node-color: var(--blue); }
.flow-node.node-lilac { --node-color: var(--lilac); }
.flow-node.node-mint { --node-color: var(--mint); }
.flow-node b { display: block; font-size: 11px; margin-bottom: 5px; }
.flow-node small { display: block; color: var(--muted); font-size: 9px; line-height: 1.45; }
.flow-link { flex: 0 0 45px; height: 1px; background: #bdc3b8; position: relative; }
.flow-link::after { content: ""; position: absolute; right: 0; top: -3px; border-left: 6px solid #9ea69a; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }
.flow-node.decision { border-radius: 50%; width: 103px; height: 103px; flex-basis: 103px; padding: 0; display: grid; place-items: center; text-align: center; background: #fbfbf8; }
.flow-node.decision .node-icon { margin: 0 auto 7px; }
.flow-node.decision small { max-width: 75px; }
.mini-legend { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 9px; }
.mini-legend span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #78bd3f; margin-right: 5px; }
.health-body { padding: 20px; }
.health-score { display: flex; align-items: center; gap: 14px; padding: 17px; border-radius: 15px; background: #f5f8ef; }
.score-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; position: relative; font-size: 11px; font-weight: 800; }
.score-ring.score-75 { background: conic-gradient(#d19a3a 75%, #e4e9dc 0); }
.score-ring.score-100 { background: conic-gradient(#83c23c 100%, #e4e9dc 0); }
.score-ring::before { content: ""; position: absolute; inset: 5px; background: #f5f8ef; border-radius: 50%; }
.score-ring span { position: relative; }
.health-score b { font-size: 12px; display: block; margin-bottom: 4px; }
.health-score small { color: var(--muted); font-size: 9px; }
.health-list { display: grid; gap: 14px; margin: 20px 2px 4px; }
.health-row { min-width: 0; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.health-row i { width: 7px; height: 7px; border-radius: 50%; background: #7ebc43; }
.health-row .health-indicator.success { background: #5c9b27; }
.health-row .health-indicator.warning { background: #c17a16; }
.health-row .health-indicator.danger { background: var(--danger); }
.health-row span { min-width: 0; font-size: 10px; color: #535951; }
.health-row b { min-width: 0; font-size: 9px; color: var(--muted); font-weight: 600; text-align: right; }
.health-label small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .75fr); gap: 16px; margin-top: 16px; }
.activity-list { min-height: 255px; }
.activity-item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 21px; border-bottom: 1px solid #eff0ec; }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 31px; height: 31px; border-radius: 10px; background: var(--mint); display: grid; place-items: center; font-size: 12px; }
.activity-dot.follow_request, .activity-dot.follow_reminder { background: var(--peach); }
.activity-dot.opening_dm { background: var(--blue); }
.activity-dot.delivery_error { background: #ffe1dc; }
.activity-copy { min-width: 0; }
.activity-copy b { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-copy small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.empty-state { min-height: 230px; padding: 35px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-state div { max-width: 300px; }
.empty-state .empty-icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 15px; display: grid; place-items: center; background: #f0f2ec; font-size: 20px; }
.empty-state b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 7px; }
.empty-state p { font-size: 10px; line-height: 1.5; margin: 0; }
.sim-card { color: white; background: #1d211c; border-color: #1d211c; padding: 24px; position: relative; overflow: hidden; }
.sim-card::after { content: ""; width: 180px; height: 180px; border-radius: 50%; position: absolute; right: -75px; bottom: -105px; border: 1px solid rgba(197,244,106,.23); box-shadow: 0 0 0 34px rgba(197,244,106,.04), 0 0 0 68px rgba(197,244,106,.025); }
.sim-card .eyebrow { color: var(--lime); }
.sim-card h3 { font-size: 22px; letter-spacing: -.04em; margin: 13px 0 10px; max-width: 280px; }
.sim-card p { color: #9fa69c; font-size: 11px; line-height: 1.6; margin: 0 0 22px; max-width: 300px; }
.sim-card .button { position: relative; z-index: 2; }

.onboarding-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 34px;
  align-items: center;
  padding: 36px;
  border-radius: 24px;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(197,244,106,.13), transparent 28%),
    radial-gradient(circle at 10% 100%, rgba(231,224,255,.11), transparent 30%),
    #1b1f1a;
  overflow: hidden;
  position: relative;
}
.onboarding-hero-copy { min-width: 0; position: relative; z-index: 1; }
.onboarding-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.onboarding-meta .eyebrow { color: var(--lime); }
.verified-badge { padding: 5px 8px; border: 1px solid #4a5146; border-radius: 99px; color: #c6ccc3; font-size: 12px; font-weight: 700; }
.onboarding-hero h2 { max-width: 780px; margin: 18px 0 13px; font-size: clamp(30px, 4vw, 50px); line-height: 1.04; letter-spacing: -.055em; }
.onboarding-hero-copy > p { max-width: 780px; margin: 0; color: #bac1b7; font-size: 14px; line-height: 1.7; }
.onboarding-hero code { color: #e7ffbb; }
.onboarding-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.onboarding-link-button { color: white; border-color: #454b42; background: #292e28; text-decoration: none; }
.onboarding-link-button:hover { background: #333932; }
.onboarding-score { min-width: 0; padding: 22px; border: 1px solid #343a32; border-radius: 20px; background: rgba(255,255,255,.04); text-align: center; }
.onboarding-score > p { margin: 15px 0 0; color: #abb2a8; font-size: 12px; line-height: 1.55; }
.onboarding-ring { width: 132px; height: 132px; margin: 0 auto; border-radius: 50%; display: grid; align-content: center; position: relative; background: conic-gradient(var(--lime) 0%, #363c34 0); }
.onboarding-ring.readiness-25 { background: conic-gradient(var(--lime) 25%, #363c34 0); }
.onboarding-ring.readiness-50 { background: conic-gradient(var(--lime) 50%, #363c34 0); }
.onboarding-ring.readiness-75 { background: conic-gradient(var(--lime) 75%, #363c34 0); }
.onboarding-ring.readiness-100 { background: conic-gradient(var(--lime) 100%, #363c34 0); }
.onboarding-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #20241f; }
.onboarding-ring strong, .onboarding-ring span { position: relative; z-index: 1; display: block; }
.onboarding-ring strong { font-size: 28px; letter-spacing: -.05em; }
.onboarding-ring span { margin-top: 3px; color: #b4bcb1; font-size: 12px; }
.onboarding-demo-note { margin-top: 16px; }
.onboarding-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 16px; align-items: start; margin-top: 16px; }
.onboarding-steps, .onboarding-aside { min-width: 0; display: grid; gap: 16px; }
.onboarding-aside { position: sticky; top: 110px; }
.onboarding-step { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 19px; padding: 24px; }
.onboarding-step-number { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: #eff3e9; color: #4e672e; font-size: 13px; font-weight: 850; }
.onboarding-step-copy { min-width: 0; }
.onboarding-step-copy .eyebrow { color: #5d742f; }
.onboarding-step-copy h3 { margin: 7px 0 10px; font-size: 20px; letter-spacing: -.03em; }
.onboarding-step-copy > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.onboarding-checks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.onboarding-checks li { position: relative; padding-left: 22px; color: #4f564d; font-size: 12px; line-height: 1.58; overflow-wrap: anywhere; }
.onboarding-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #588e24; font-weight: 850; }
.permission-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.permission-list code { max-width: 100%; padding: 7px 9px; border-radius: 8px; color: #43562c; background: #eef5e5; font-size: 12px; overflow-wrap: anywhere; }
.onboarding-caution { margin-top: 13px !important; padding: 12px; border: 1px solid #eadfc8; border-radius: 11px; background: #fffaf1; color: #665b49 !important; font-size: 12px !important; }
.onboarding-copy { margin-top: 16px; }
.onboarding-copy code { white-space: normal; overflow-wrap: anywhere; }
.onboarding-sequence { margin: 17px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; counter-reset: onboarding-sequence; }
.onboarding-sequence li { min-width: 0; padding: 11px 9px; border-radius: 10px; background: #f4f6f1; color: #525a4e; font-size: 12px; font-weight: 700; text-align: center; overflow-wrap: anywhere; counter-increment: onboarding-sequence; }
.onboarding-sequence li::before { content: counter(onboarding-sequence) ". "; color: #6c8d3e; }
.onboarding-text-link { margin-top: 16px; }
.onboarding-inline-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.readiness-list { margin: 0; padding: 5px 20px 12px; list-style: none; }
.readiness-list li { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid #eef0eb; }
.readiness-list li:last-child { border-bottom: 0; }
.readiness-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #777e74; background: #eff1ed; font-size: 12px; font-weight: 850; }
.readiness-icon.complete { color: #315f13; background: #e3f4d6; }
.readiness-list b, .readiness-list small { display: block; overflow-wrap: anywhere; }
.readiness-list b { font-size: 12px; }
.readiness-list small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.readiness-list strong { color: #687066; font-size: 12px; }
.meta-rule-list { display: grid; padding: 8px 20px 18px; }
.meta-rule-list > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: center; padding: 11px 0; }
.meta-rule-list > div > strong { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #3f5f1c; background: #edf5e4; font-size: 12px; }
.meta-rule-list p, .meta-rule-list b, .meta-rule-list span { display: block; margin: 0; }
.meta-rule-list b { font-size: 12px; }
.meta-rule-list span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.official-sources nav { display: grid; padding: 8px 20px 18px; }
.official-sources a { min-width: 0; display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef0eb; color: #445735; font-size: 12px; font-weight: 750; text-decoration: none; }
.official-sources a:last-child { border-bottom: 0; }
.official-sources a:hover span { text-decoration: underline; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.performance-heading { gap: 24px; }
.performance-heading > div:first-child { max-width: 650px; }
.performance-filters { display: flex; gap: 9px; flex: 0 0 auto; }
.performance-filters label { display: grid; gap: 5px; min-width: 150px; }
.performance-filters label:first-child { min-width: 230px; }
.performance-filters span { color: var(--muted); font-size: 12px; font-weight: 700; }
.performance-filters select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); padding: 8px 34px 8px 11px; font-size: 12px; }
.performance-summary { margin-bottom: 16px; }
.performance-loading { min-height: 220px; display: grid; align-content: center; gap: 14px; color: var(--muted); text-align: center; }
.performance-loading .skeleton { width: min(100%, 760px); margin: 0 auto; }
.performance-loading p { margin: 0; font-size: 13px; font-weight: 700; }
.performance-error { margin-bottom: 16px; align-items: flex-start; }
.performance-error > div { min-width: 0; }
.performance-error .button { margin-top: 11px; }
.performance-callout { min-width: 0; margin-bottom: 12px; padding: 23px 25px; border-radius: 18px; background: #1d211c; color: white; display: flex; justify-content: space-between; align-items: center; gap: 25px; overflow: hidden; position: relative; }
.performance-callout::after { content: ""; position: absolute; width: 190px; height: 190px; right: -80px; top: -115px; border: 1px solid rgba(197,244,106,.24); border-radius: 50%; box-shadow: 0 0 0 34px rgba(197,244,106,.04); }
.performance-callout > div:first-child { min-width: 0; }
.performance-callout .eyebrow { color: var(--lime); }
.performance-callout h3 { max-width: 820px; margin: 8px 0 5px; font-size: 18px; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.performance-callout p { margin: 0; color: #b3bab0; font-size: 12px; }
.performance-callout-rate { flex: 0 0 auto; min-width: 130px; text-align: right; position: relative; z-index: 1; }
.performance-callout-rate strong, .delivery-rate strong { display: block; font-size: 28px; letter-spacing: -.05em; }
.performance-callout-rate span, .delivery-rate span { display: block; margin-top: 3px; color: #aab1a7; font-size: 12px; }
.performance-notice { margin-bottom: 12px; }
.performance-data-note { min-width: 0; display: flex; align-items: center; gap: 11px; margin-bottom: 16px; padding: 12px 15px; border: 1px solid #dfe5d7; border-radius: 13px; background: #f4f8ef; color: #4f584b; }
.performance-data-note > span { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: #e4f1d6; }
.performance-data-note p { margin: 0; font-size: 12px; line-height: 1.5; }
.post-performance-list { display: grid; gap: 14px; }
.post-performance-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.post-performance-head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.post-identity { min-width: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 15px; align-items: center; }
.post-thumbnail-frame { width: 76px; height: 76px; position: relative; display: block; overflow: hidden; border-radius: 13px; background: #eff1eb; }
.post-thumbnail, .post-thumbnail-fallback { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.post-thumbnail { z-index: 1; object-fit: cover; background: #eff1eb; }
.post-thumbnail-fallback { display: grid; place-items: center; color: #596154; background: linear-gradient(145deg, var(--blue), var(--lilac)); font-size: 20px; }
.post-thumbnail-frame.thumbnail-failed .post-thumbnail { display: none; }
.post-rank { color: #65705f; font-size: 12px; font-weight: 760; text-transform: uppercase; letter-spacing: .09em; }
.post-identity h3 { max-width: 780px; margin: 6px 0 7px; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-identity p { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.delivery-rate { min-width: 105px; text-align: right; }
.delivery-rate span { color: var(--muted); }
.history-warning { margin-top: 16px; padding: 10px 12px; border: 1px solid #ead8b9; border-radius: 11px; background: #fff8eb; color: #5e5547; display: flex; gap: 9px; align-items: flex-start; }
.history-warning > span { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; background: #ffe8bd; font-weight: 800; }
.history-warning p { margin: 1px 0 0; font-size: 12px; line-height: 1.45; }
.post-funnel { min-width: 0; margin: 18px 0 14px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid #e7e9e3; border-radius: 13px; overflow: hidden; background: #fafbf8; }
.post-funnel li { min-width: 0; min-height: 78px; padding: 14px 12px; border-right: 1px solid #e7e9e3; display: grid; align-content: center; gap: 5px; }
.post-funnel li:last-child { border-right: 0; background: #f1f8e8; }
.post-funnel strong { font-size: 21px; letter-spacing: -.04em; }
.post-funnel span { color: var(--muted); font-size: 12px; line-height: 1.25; }
.post-funnel .not-applicable { background: #f6f7f4; }
.post-funnel .not-applicable strong, .post-funnel .not-applicable span { color: #666d63; }
.post-performance-foot { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.post-path-tags { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.post-path-tags span { padding: 5px 8px; border-radius: 8px; background: #f0f2ec; color: #596056; font-size: 12px; }
.post-link { flex: 0 0 auto; color: #46651f; font-size: 12px; font-weight: 760; text-decoration: none; }
.post-link:hover { text-decoration: underline; }
.post-id { flex: 0 0 auto; max-width: 180px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; gap: 7px; }
.filter-chip { border: 1px solid var(--line); background: white; color: var(--muted); padding: 7px 11px; border-radius: 99px; font-size: 10px; cursor: pointer; }
.filter-chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.automation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.automation-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: transform .15s, box-shadow .15s; }
.automation-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.automation-top { min-width: 0; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.automation-title, .automation-title > div { display: flex; gap: 12px; min-width: 0; }
.automation-title { flex: 1 1 0; max-width: 100%; }
.automation-title > div { display: block; overflow-wrap: anywhere; }
.automation-icon { width: 37px; height: 37px; flex: 0 0 37px; border-radius: 11px; background: var(--lilac); display: grid; place-items: center; }
.automation-title h3 { font-size: 13px; margin: 1px 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.automation-title p { font-size: 9px; margin: 0; color: var(--muted); }
.automation-title .automation-account { margin-bottom: 4px; color: #4f564d; font-weight: 700; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: #eef0eb; color: #545b51; }
.automation-top > .status { flex: 0 0 auto; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.active { background: #e9f7dc; color: #3f7019; }
.status.paused { background: #fff2df; color: #7c4b0e; }
.status.draft { background: #edf0f5; color: #4f596a; }
.automation-path { margin: 19px 0; border: 1px solid #eceee8; background: #fafbf8; border-radius: 13px; padding: 12px; display: flex; align-items: center; gap: 8px; overflow-x: auto; }
.path-pill { flex: 0 0 auto; padding: 6px 8px; border-radius: 8px; background: white; border: 1px solid #e5e7e1; font-size: 8.5px; font-weight: 700; max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.path-pill.keyword { background: #f1eadf; border-color: #e9dece; }
.path-pill.follow { background: #f3efff; border-color: #e5ddfa; }
.path-arrow { color: #5b6258; font-size: 10px; }
.keyword-row { display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; }
.keyword { padding: 5px 8px; border-radius: 8px; background: #f0f2ec; color: #596056; font-size: 8.5px; font-weight: 700; }
.automation-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }
.automation-stat { border-top: 1px solid var(--line); padding-top: 13px; }
.automation-stat b { font-size: 18px; letter-spacing: -.04em; }
.automation-stat small { color: var(--muted); font-size: 8.5px; margin-left: 5px; }
.automation-actions { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 13px; display: flex; justify-content: space-between; align-items: center; }
.automation-actions .button { min-height: 32px; padding: 7px 10px; font-size: 9px; }

.table-panel { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.table-toolbar { padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.table-toolbar h3 { margin: 0; font-size: 13px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 11px 18px; background: #fafbf8; color: #5b6258; text-transform: uppercase; font-size: 8px; letter-spacing: .09em; border-bottom: 1px solid var(--line); }
td { padding: 14px 18px; font-size: 10px; border-bottom: 1px solid #eff0ec; color: #535951; }
tr:last-child td { border-bottom: 0; }
.table-user { display: flex; align-items: center; gap: 9px; }
.tiny-avatar { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; background: var(--lilac); color: #4e4863; font-size: 9px; font-weight: 800; }
.kind-label { display: inline-flex; padding: 5px 7px; border-radius: 7px; background: #f0f2ed; font-size: 8px; font-weight: 750; }
.kind-label.sent { color: #3f6c1f; background: #edf7e5; }
.kind-label.succeeded { color: #406f20; background: #edf7e5; }
.kind-label.failed { color: #a84234; background: #fff0ed; }
.review-actions { display: grid; gap: 5px; margin-top: 7px; }
.review-actions .text-button { text-align: left; }
.review-queue { margin-bottom: 16px; padding: 20px; border: 1px solid #efc7be; border-radius: 18px; background: #fff8f6; }
.review-queue-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 14px; }
.review-queue-head h3 { margin: 5px 0 0; font-size: 17px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.review-card { min-width: 0; padding: 15px; border: 1px solid #efd9d3; border-radius: 13px; background: white; }
.review-card b, .review-card small { display: block; }
.review-card > div:first-child small, .review-impact { margin-top: 4px; color: var(--muted); font-size: 11px; }
.review-card p { margin: 12px 0; color: #5e554f; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.review-card .review-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.review-card .button { min-height: 34px; font-size: 11px; }

.settings-stack { display: grid; gap: 16px; }
.account-card { padding: 20px; }
.account-card-head { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.account-card-head .account-avatar { width: 44px; height: 44px; border-radius: 14px; }
.account-card-head .account-mini strong { color: var(--ink); font-size: 12px; }
.account-card-head .account-mini small { color: var(--muted); font-size: 9px; }
.account-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-actions .button { min-height: 34px; font-size: 9px; }
.requeue-button { margin-top: 14px; }
.account-modal-notice { align-items: flex-start; margin-bottom: 22px; }
.account-modal-notice p + p { margin-top: 8px; }
.account-modal-notice a { color: #3f5f1c; font-weight: 760; text-decoration: underline; text-underline-offset: 2px; }
.account-modal-notice a:focus-visible { border-radius: 3px; outline: 3px solid rgba(79,117,31,.35); outline-offset: 2px; }
.queue-card { margin-bottom: 16px; padding: 21px; }
.queue-card h3 { margin: 0 0 7px; font-size: 14px; }
.queue-card > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.copy-field { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fafbf8; }
.copy-field code { min-width: 0; flex: 1; padding: 11px; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-field button { border: 0; border-left: 1px solid var(--line); background: white; padding: 0 12px; cursor: pointer; font-size: 9px; font-weight: 700; }
.notice { border: 1px solid #e5ddcf; background: #fffaf1; border-radius: 14px; padding: 15px; display: flex; gap: 11px; }
.notice-icon { width: 28px; height: 28px; border-radius: 9px; background: #ffe9bf; display: grid; place-items: center; flex: 0 0 auto; }
.notice b { display: block; font-size: 10px; margin-bottom: 4px; }
.notice p { margin: 0; color: #625a4e; font-size: 9px; line-height: 1.55; }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.system-cell { background: #f8f9f5; border-radius: 10px; padding: 11px; }
.system-cell small { display: block; color: var(--muted); font-size: 8px; margin-bottom: 4px; }
.system-cell b { font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(12,14,12,.62); backdrop-filter: blur(8px); z-index: 100; display: flex; justify-content: flex-end; animation: fade-in .16s ease-out; }
.modal-panel { width: min(640px, 100%); height: 100%; background: #fbfbf8; box-shadow: -20px 0 70px rgba(0,0,0,.2); overflow-y: auto; scroll-padding-block: 90px; animation: slide-in .22s ease-out; }
.modal-panel.centered { position: relative; width: min(760px, calc(100% - 30px)); height: auto; max-height: calc(100vh - 40px); margin: auto; border-radius: 24px; overflow-y: auto; }
.modal-head { position: sticky; top: 0; z-index: 3; padding: 22px 25px; border-bottom: 1px solid var(--line); background: rgba(251,251,248,.94); backdrop-filter: blur(12px); display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { font-size: 19px; letter-spacing: -.035em; margin: 0 0 4px; }
.modal-head p { margin: 0; font-size: 9px; color: var(--muted); }
.modal-body { padding: 24px 25px 100px; }
.modal-panel.centered .modal-body { padding-bottom: 26px; }
.modal-footer { position: sticky; z-index: 4; bottom: 0; padding: 15px 25px; border-top: 1px solid var(--line); background: rgba(251,251,248,.96); backdrop-filter: blur(12px); display: flex; justify-content: flex-end; gap: 9px; }
.form-section { margin-bottom: 27px; }
.form-section-title { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 15px; }
.form-step { width: 24px; height: 24px; border-radius: 8px; background: var(--ink); color: white; display: grid; place-items: center; font-size: 8px; font-weight: 800; flex: 0 0 auto; }
.form-section-title h3 { margin: 1px 0 3px; font-size: 12px; }
.form-section-title p { margin: 0; color: var(--muted); font-size: 9px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field > span { font-size: 9px; font-weight: 750; color: #545a51; }
.field-label { font-size: 9px; font-weight: 750; color: #545a51; }
.field em { color: #60675d; font-style: normal; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid #dfe2db;
  border-radius: 10px;
  background: white;
  padding: 10px 11px;
  color: var(--ink);
  font-size: 11px;
  outline: none;
  transition: border .15s, box-shadow .15s;
}
.modal-panel input, .modal-panel textarea, .modal-panel select, .modal-panel button { scroll-margin-block: 90px; }
.field input, .field select { min-height: 41px; }
.field input[readonly] { color: #4f554d; background: #f0f2ed; cursor: not-allowed; }
.field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #91b84e; box-shadow: 0 0 0 3px rgba(165,209,86,.16); }
.secret-input { position: relative; }
.secret-input input { padding-right: 64px; }
.secret-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 48px;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: #edf1e8;
  color: #3f493b;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}
.secret-toggle:focus-visible { outline: 3px solid rgba(79, 117, 31, .35); outline-offset: 2px; }
.field .invalid { border-color: #d36959; box-shadow: 0 0 0 3px rgba(211,105,89,.1); }
.field-error { color: var(--danger); font-size: 8px; margin-top: -3px; }
.field-note { color: var(--muted); font-size: 12px; line-height: 1.45; }
.media-picker { min-width: 0; margin: 5px 0 20px; padding: 0; border: 0; }
.media-picker legend { margin-bottom: 5px; color: #545a51; font-size: 12px; font-weight: 750; }
.media-picker-heading, .media-picker-section-head, .older-media-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.media-picker-heading { margin-bottom: 14px; }
.media-picker-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.media-picker-heading > span, .media-picker-section-head > span, .older-media-toolbar > p {
  flex: 0 0 auto;
  margin: 0;
  color: #62695f;
  font-size: 12px;
}
.media-picker-section-head { margin-bottom: 9px; }
.media-picker-section-head b { font-size: 12px; }
.media-selected-summary { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin: -2px 0 14px; border-left: 3px solid #759b39; padding: 7px 10px; background: #f3f7ed; }
.media-selected-summary span { flex: 0 0 auto; color: #5b6556; font-size: 12px; }
.media-selected-summary b { min-width: 0; overflow: hidden; color: #35402f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.media-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.media-choice[hidden] { display: none; }
.media-choice > input, .media-wide-choice > input, .media-saved-target > input {
  position: absolute;
  width: 1px !important;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}
.media-choice-surface {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dfe2db;
  border-radius: 12px;
  background: white;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.media-choice:hover .media-choice-surface { border-color: #aeb6a8; transform: translateY(-1px); }
.media-choice > input:checked + .media-choice-surface { border-color: #61842d; box-shadow: 0 0 0 3px rgba(112, 153, 48, .17); }
.media-choice > input:focus-visible + .media-choice-surface,
.media-wide-choice > input:focus-visible + span,
.media-saved-target > input:focus-visible + span { outline: 3px solid rgba(79, 117, 31, .38); outline-offset: 3px; }
.media-choice-image-frame { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .72; overflow: hidden; background: linear-gradient(145deg, #eff3e8, #e4eadc); }
.media-choice-image { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-choice-image-frame.thumbnail-failed .media-choice-image { display: none; }
.media-choice-fallback { color: #63715c; font-size: 25px; }
.media-choice-type { position: absolute; z-index: 2; left: 7px; bottom: 7px; max-width: calc(100% - 14px); overflow: hidden; border-radius: 99px; padding: 4px 7px; background: rgba(18, 22, 17, .76); color: white; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.media-choice-check { position: absolute; z-index: 2; top: 7px; right: 7px; display: none; width: 23px; height: 23px; border-radius: 50%; background: #6d9532; color: white; font-size: 13px; font-weight: 800; place-items: center; box-shadow: 0 2px 8px rgba(23, 35, 16, .25); }
.media-choice > input:checked + .media-choice-surface .media-choice-check { display: grid; }
.media-choice-copy { display: grid; gap: 4px; min-width: 0; padding: 10px; }
.media-choice-copy b { min-height: 2.8em; overflow: hidden; color: #343a31; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.media-choice-copy small { color: #656c62; font-size: 12px; line-height: 1.35; }
.media-browser-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid #dfe2db;
  border-radius: 11px;
  padding: 9px 12px;
  background: #f6f8f2;
  color: #405037;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.media-browser-toggle:hover { border-color: #aeb6a8; background: #f0f4e9; }
.media-browser-toggle:focus-visible { outline: 3px solid rgba(79, 117, 31, .38); outline-offset: 2px; }
.media-browser-toggle b { font-size: 18px; line-height: 1; }
.older-media-panel { margin-top: 10px; border: 1px solid #dfe2db; border-radius: 13px; padding: 13px; background: #f7f8f4; }
.older-media-toolbar { align-items: flex-end; margin-bottom: 12px; }
.older-media-search { flex: 1 1 auto; min-width: 0; margin: 0; }
.older-media-search input { background: white; }
.older-media-search small { color: #626a5f; font-size: 12px; line-height: 1.4; }
.media-search-empty, .media-picker-empty { margin: 0; border-radius: 11px; padding: 15px; background: #f3f5ef; color: #5c6458; font-size: 12px; line-height: 1.5; text-align: center; }
.media-search-error { margin: 10px 0 0; border-radius: 10px; padding: 11px; background: #fff0ed; color: var(--danger); font-size: 12px; line-height: 1.45; }
.media-load-more { width: 100%; margin-top: 12px; }
.media-picker-empty { margin-bottom: 12px; }
.media-picker-empty b { display: block; margin-bottom: 3px; color: #3c4438; }
.media-picker-empty p { margin: 0; }
.media-scope-divider { display: flex; align-items: center; gap: 9px; margin: 17px 0 11px; color: #687064; font-size: 12px; }
.media-scope-divider::before, .media-scope-divider::after { content: ""; height: 1px; flex: 1 1 auto; background: #dfe2db; }
.media-wide-choice { position: relative; display: block; cursor: pointer; }
.media-wide-choice > span { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; align-items: center; gap: 10px; min-height: 64px; border: 1px solid #dfe2db; border-radius: 12px; padding: 10px 12px; background: white; transition: border-color .15s, box-shadow .15s; }
.media-wide-choice > input:checked + span { border-color: #61842d; box-shadow: 0 0 0 3px rgba(112, 153, 48, .17); }
.media-wide-choice i { width: 34px; height: 34px; border-radius: 10px; background: #edf2e6; color: #597a2e; font-style: normal; display: grid; place-items: center; }
.media-wide-choice b, .media-wide-choice small { display: block; }
.media-wide-choice b { color: #353c32; font-size: 12px; }
.media-wide-choice small { margin-top: 3px; color: #626a5f; font-size: 12px; line-height: 1.4; }
.media-wide-choice strong { display: none; width: 22px; height: 22px; border-radius: 50%; background: #6d9532; color: white; font-size: 12px; place-items: center; }
.media-wide-choice > input:checked + span strong { display: grid; }
.current-media-heading { margin-top: 3px; }
.current-media-grid { margin-bottom: 15px; }
.media-saved-target { position: relative; display: block; margin-bottom: 15px; cursor: pointer; }
.media-saved-target > span { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; align-items: center; gap: 10px; min-height: 72px; border: 1px solid #dfb978; border-radius: 12px; padding: 11px 12px; background: #fffaf1; }
.media-saved-target > input:checked + span { border-color: #9a6a19; box-shadow: 0 0 0 3px rgba(173, 117, 31, .15); }
.media-saved-target i { width: 34px; height: 34px; border-radius: 10px; background: #ffe9bf; color: #765018; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.media-saved-target b, .media-saved-target small { display: block; }
.media-saved-target b { color: #443821; font-size: 12px; overflow-wrap: anywhere; }
.media-saved-target small { margin-top: 3px; color: #675b47; font-size: 12px; line-height: 1.4; }
.media-saved-target strong { display: none; width: 22px; height: 22px; border-radius: 50%; background: #8b651f; color: white; font-size: 12px; place-items: center; }
.media-saved-target > input:checked + span strong { display: grid; }
.form-error { color: var(--danger); font-size: 10px; background: #fff0ed; border: 1px solid #f0cbc4; padding: 10px; border-radius: 9px; }
.toggle-row { border: 1px solid var(--line); border-radius: 13px; padding: 13px; display: flex; justify-content: space-between; align-items: center; gap: 15px; background: white; margin-bottom: 15px; }
.toggle-copy b { display: block; font-size: 10px; margin-bottom: 4px; }
.toggle-copy small { display: block; color: var(--muted); font-size: 8.5px; line-height: 1.45; }
.switch { position: relative; width: 38px; height: 22px; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #d9dcd5; cursor: pointer; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: white; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: #8cc33e; }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid rgba(79, 117, 31, .35); outline-offset: 3px; }
.subsection { padding: 16px; border: 1px dashed #daddd5; border-radius: 13px; background: #f8f9f5; }
.inline-tip { display: flex; gap: 8px; color: #555d52; font-size: 8.5px; line-height: 1.5; margin-bottom: 13px; }
.inline-tip i { font-style: normal; width: 18px; height: 18px; border-radius: 6px; flex: 0 0 auto; display: grid; place-items: center; background: var(--lilac); }

.simulator { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 490px; }
.sim-info { background: #1b1f1a; color: white; padding: 30px; position: relative; overflow: hidden; }
.sim-info::after { content: ""; width: 190px; height: 190px; border-radius: 50%; border: 1px solid rgba(197,244,106,.18); position: absolute; left: -90px; bottom: -100px; box-shadow: 0 0 0 38px rgba(197,244,106,.035); }
.sim-info .eyebrow { color: var(--lime); }
.sim-info h2 { font-size: 28px; letter-spacing: -.05em; margin: 15px 0 10px; }
.sim-info > p { color: #9da49a; font-size: 10px; line-height: 1.65; }
.sim-steps { margin-top: 30px; display: grid; gap: 13px; }
.sim-step { display: grid; grid-template-columns: 25px 1fr; gap: 9px; align-items: center; color: #9da49a; }
.sim-step.active, .sim-step.done { color: white; }
.sim-step span { width: 24px; height: 24px; border-radius: 8px; border: 1px solid #41463f; display: grid; place-items: center; font-size: 8px; }
.sim-step.active span { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.sim-step.done span { background: #3a4930; border-color: #597442; color: var(--lime); }
.sim-step b { font-size: 9px; }
.sim-step small { display: block; color: #9da49a; font-size: 8px; margin-top: 2px; }
.sim-stage { padding: 30px; background: #fbfbf8; }
.sim-stage h3 { font-size: 17px; letter-spacing: -.03em; margin: 0 0 7px; }
.sim-stage > p { margin: 0 0 24px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.phone-message { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 17px; margin: 18px 0; box-shadow: 0 10px 35px rgba(24,28,21,.05); }
.delivery-preview { text-align: left; }
.phone-user { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.phone-user .tiny-avatar { background: linear-gradient(145deg, var(--peach), var(--lilac)); }
.phone-user b { font-size: 9px; }
.phone-user small { display: block; font-size: 7.5px; color: var(--muted); margin-top: 2px; }
.message-bubble { display: inline-block; max-width: 86%; border-radius: 14px 14px 14px 4px; padding: 10px 12px; background: #f0f1ed; font-size: 9.5px; line-height: 1.5; white-space: pre-wrap; }
.sim-actions { display: grid; gap: 8px; margin-top: 17px; }
.sim-actions.two { grid-template-columns: 1fr 1fr; }
.sim-actions .button { min-height: 44px; }
.success-illustration { width: 82px; height: 82px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: 35px; margin: 28px auto 20px; box-shadow: 0 0 0 12px #f0f8ed; }
.success-copy { text-align: center; }
.success-copy h3 { font-size: 21px; }
.success-copy p { max-width: 330px; margin: 0 auto 22px; }
.simulator-close { position: absolute; right: 18px; top: 18px; z-index: 4; }

.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 9px; }
.toast { min-width: 260px; max-width: 370px; padding: 13px 15px; border-radius: 12px; color: white; background: #252a24; box-shadow: 0 15px 40px rgba(0,0,0,.2); font-size: 10px; animation: toast-in .2s ease-out; display: flex; gap: 10px; align-items: center; }
.toast.success::before { content: "✓"; color: var(--lime); }
.toast.error::before { content: "!"; color: #ff9b8c; font-weight: 800; }
.skeleton { border-radius: 10px; min-height: 90px; background: linear-gradient(90deg, #edeFE9 25%, #f7f8f5 50%, #edeFE9 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }

/* Readable application type scale. Keep density, but avoid sub-12px UI copy. */
.eyebrow, .page-kicker { font-size: 12px; }
.login-help { font-size: 12px; }
.workspace-label { font-size: 12px; }
.nav-item { font-size: 14px; }
.nav-item b { font-size: 12px; }
.account-mini strong { font-size: 13px; }
.account-mini small { font-size: 12px; }
.live-pill { font-size: 12px; }
.button { font-size: 13px; }
.text-button { font-size: 12px; }
.date-chip { font-size: 12px; }
.metric-top { font-size: 12px; }
.metric-foot { font-size: 12px; }
.panel-head h3 { font-size: 16px; }
.panel-head p { font-size: 12px; }
.flow-node b { font-size: 13px; }
.flow-node small { font-size: 12px; }
.mini-legend { font-size: 12px; }
.health-score b { font-size: 13px; }
.health-score small { font-size: 12px; }
.health-row span { font-size: 12px; }
.health-row b { font-size: 12px; }
.health-label small { font-size: 12px; }
.activity-copy b { font-size: 12px; }
.activity-copy small { font-size: 12px; }
.activity-time { font-size: 12px; }
.empty-state b { font-size: 14px; }
.empty-state p { font-size: 12px; }
.sim-card p { font-size: 12px; }
.filter-chip { font-size: 12px; }
.automation-title h3 { font-size: 15px; }
.automation-title p { font-size: 12px; }
.status { font-size: 12px; }
.path-pill, .keyword { font-size: 12px; }
.automation-stat small { font-size: 12px; }
.automation-actions .button { font-size: 12px; }
.table-toolbar h3 { font-size: 15px; }
th { font-size: 12px; }
td { font-size: 12px; }
.tiny-avatar { font-size: 12px; }
.kind-label { font-size: 12px; }
.account-card-head .account-mini strong { font-size: 14px; }
.account-card-head .account-mini small { font-size: 12px; }
.account-actions .button { font-size: 12px; }
.queue-card h3 { font-size: 16px; }
.queue-card > p { font-size: 12px; }
.copy-field code, .copy-field button { font-size: 12px; }
.notice b { font-size: 12px; }
.notice p { font-size: 12px; }
.system-cell small { font-size: 12px; }
.system-cell b { font-size: 12px; }
.modal-head h2 { font-size: 21px; }
.modal-head p { font-size: 12px; }
.form-section-title h3 { font-size: 14px; }
.form-section-title p { font-size: 12px; }
.form-step { font-size: 12px; }
.field > span { font-size: 12px; }
.field input, .field textarea, .field select { font-size: 13px; }
.field-error { font-size: 12px; }
.form-error { font-size: 12px; }
.toggle-copy b { font-size: 12px; }
.toggle-copy small { font-size: 12px; }
.inline-tip { font-size: 12px; }
.sim-info > p { font-size: 12px; }
.sim-step b { font-size: 12px; }
.sim-step small { font-size: 12px; }
.sim-stage h3 { font-size: 20px; }
.sim-stage > p { font-size: 12px; }
.phone-user b { font-size: 12px; }
.phone-user small { font-size: 12px; }
.message-bubble { font-size: 12px; }
.toast { font-size: 12px; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(30px); opacity: .5; } }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .skeleton { animation: none !important; background-position: 0 0; }
}

@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid, .lower-grid { grid-template-columns: 1fr; }
  .health-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: center; }
  .automation-grid { grid-template-columns: minmax(0, 1fr); }
  .login-layout { gap: 55px; }
  .onboarding-layout { grid-template-columns: 1fr; }
  .onboarding-aside { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}

@media (max-width: 780px) {
  .login-brand { left: 24px; top: 24px; }
  .login-layout { display: block; padding: 100px 20px 35px; }
  .login-story { display: none; }
  .login-card { max-width: 440px; margin: 30px auto; padding: 30px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .app-shell.menu-open .sidebar { transform: translateX(0); }
  .app-shell.menu-open .sidebar-backdrop { display: block; }
  .main { width: 100%; }
  .topbar { min-height: 78px; padding: 14px 17px; }
  .topbar h1 { font-size: 20px; }
  .page-kicker, .live-pill { display: none; }
  .mobile-only { display: grid !important; }
  .topbar > div:nth-child(2) { margin-right: auto; margin-left: 11px; }
  .topbar .button { font-size: 0; width: 39px; height: 39px; padding: 0; }
  .topbar .button span { font-size: 17px; }
  .view { padding: 24px 16px 50px; }
  .onboarding-hero { grid-template-columns: 1fr; padding: 27px 23px; gap: 24px; }
  .onboarding-score { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 18px; text-align: left; }
  .onboarding-ring { width: 100px; height: 100px; }
  .onboarding-score > p { margin: 0; }
  .onboarding-aside { grid-template-columns: 1fr; }
  .overview-heading { align-items: flex-start; }
  .overview-heading h2 { font-size: 23px; }
  .date-chip { display: none; }
  .metrics-grid { gap: 9px; }
  .metric-card { min-height: 125px; padding: 16px; }
  .metric-value { font-size: 30px; }
  .flow-canvas { justify-content: flex-start; }
  .health-body { display: block; }
  .health-list { margin-top: 20px; }
  .section-heading { display: block; }
  .section-heading > .button { margin-top: 14px; }
  .performance-filters { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); margin-top: 18px; }
  .performance-filters label, .performance-filters label:first-child { min-width: 0; }
  .performance-callout { align-items: flex-end; }
  .post-performance-card { padding: 16px; }
  .post-performance-head { display: block; }
  .post-identity { grid-template-columns: 64px minmax(0, 1fr); }
  .post-thumbnail-frame { width: 64px; height: 64px; }
  .post-identity h3 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .delivery-rate { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .delivery-rate strong { font-size: 23px; }
  .post-funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-funnel li { border-bottom: 1px solid #e7e9e3; }
  .post-funnel li:nth-child(3n) { border-right: 0; }
  .post-funnel li:nth-last-child(-n + 3) { border-bottom: 0; }
  .post-funnel li:last-child { border-right: 0; }
  .post-performance-foot { align-items: flex-start; flex-direction: column; }
  .filters { margin-top: 16px; overflow-x: auto; }
  .automation-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .media-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .modal-panel { width: 100%; }
  .simulator { grid-template-columns: 1fr; }
  .sim-info { padding: 24px; }
  .sim-steps { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .sim-steps.direct { grid-template-columns: repeat(2, 1fr); }
  .sim-step { display: block; }
  .sim-step div { margin-top: 5px; }
  .sim-step small { display: none; }
  .sim-stage { padding: 24px; }
}

@media (max-width: 470px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 118px; }
  .metric-top > span:first-child { max-width: 80px; }
  .automation-card { padding: 16px; }
  .path-pill { max-width: 90px; }
  .sim-actions.two { grid-template-columns: 1fr; }
  .account-card-head { align-items: flex-start; }
  .account-card-head .account-mini { min-width: 0; flex: 1 1 auto; }
  .account-card-head > .status { flex: 0 0 auto; }
  .account-card .system-grid { grid-template-columns: 1fr; }
  .system-cell b { overflow-wrap: anywhere; }
  .review-queue { padding: 15px; }
  .review-queue-head { align-items: flex-start; }
  .performance-filters { grid-template-columns: 1fr; }
  .performance-callout { display: block; padding: 20px; }
  .performance-callout h3 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .performance-callout-rate { margin-top: 17px; text-align: left; }
  .performance-data-note { align-items: flex-start; }
  .onboarding-hero h2 { font-size: 31px; }
  .onboarding-actions { display: grid; }
  .onboarding-actions .button { width: 100%; }
  .onboarding-score { grid-template-columns: 1fr; text-align: center; }
  .onboarding-score > p { margin-top: 2px; }
  .onboarding-step { grid-template-columns: 1fr; padding: 19px; }
  .onboarding-step-number { width: 42px; height: 42px; }
  .onboarding-sequence { grid-template-columns: 1fr 1fr; }
  .post-funnel li { min-height: 84px; padding: 12px 9px; }
  .post-funnel strong { font-size: 19px; }
  .media-picker-heading, .older-media-toolbar { align-items: flex-start; }
  .older-media-toolbar { display: grid; }
  .older-media-toolbar > p { justify-self: start; }
}
