:root {
  --ink: #171812;
  --muted: #697066;
  --line: #dce1d7;
  --paper: #f7f8f3;
  --card: #ffffff;
  --lime: #b9ff1b;
  --deep-green: #1b3c05;
  --soft-green: #edf1e7;
  --blue: #0a66c2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 16px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 32px 34px; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -0.04em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--lime); font-size: 17px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.private-chip, .eyebrow, .generated-label { color: var(--muted); font-size: 14px; }
.lock-dot, .pulse { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #86c61c; box-shadow: 0 0 0 4px rgba(134,198,28,.16); }
.ghost-button, .text-button { background: none; border: 0; color: var(--muted); padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.ghost-button:hover, .text-button:hover { color: var(--ink); }
.hero { padding: 80px 0 54px; display: flex; justify-content: space-between; gap: 60px; align-items: end; }
.eyebrow { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
h1, h2 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.065em; margin: 0; }
h1 { max-width: 700px; font-size: clamp(50px, 8vw, 92px); line-height: .94; }
h2 { font-size: clamp(29px, 4vw, 47px); line-height: 1.02; }
.hero-copy { max-width: 570px; margin: 24px 0 0; color: var(--muted); font-size: 20px; line-height: 1.45; }
.hero-note { max-width: 250px; padding-left: 22px; border-left: 2px solid var(--lime); display: grid; gap: 5px; color: var(--muted); line-height: 1.35; }
.hero-note strong { color: var(--ink); font-size: 18px; }
.note-label, .section-kicker { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.composer-card { border: 1px solid var(--line); border-radius: 24px; background: var(--card); padding: clamp(24px, 5vw, 46px); box-shadow: 0 16px 50px rgba(30,45,20,.04); }
.section-heading, .results-intro { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.section-kicker { display: block; margin-bottom: 13px; }
.field-grid { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 10px; color: var(--ink); }
.field > span { font-weight: 600; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; padding: 15px 17px; outline: none; transition: border-color .2s, box-shadow .2s; }
input { min-height: 54px; }
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #9ba39b; }
input:focus, textarea:focus { border-color: #86ad2f; box-shadow: 0 0 0 4px rgba(185,255,27,.22); }
.mode-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 26px; gap: 5px; padding: 5px; background: var(--soft-green); border-radius: 14px; }
.mode { border: 0; border-radius: 10px; padding: 14px 12px; background: transparent; color: var(--muted); font-weight: 500; }
.mode span { margin-right: 7px; font-size: 18px; }
.mode.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); font-weight: 700; }
.mode-fields { min-height: 150px; }
.mode-fields small { color: var(--muted); font-size: 13px; }
.hidden { display: none !important; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.hint { color: var(--muted); font-size: 14px; }
.tiny-check { color: #699b14; font-size: 19px; margin-right: 5px; }
.primary-button, .dark-button { border: 0; color: #fff; background: var(--ink); border-radius: 13px; padding: 16px 22px; font-weight: 700; transition: transform .2s, background .2s; }
.primary-button:hover, .dark-button:hover { transform: translateY(-1px); background: #303328; }
.primary-button span, .dark-button span { margin-left: 15px; font-size: 20px; }
.results-section { padding: 84px 0 0; }
.generated-label { padding-top: 8px; }
.platform-grid { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 25px; min-width: 0; }
.linkedin-card { border-top: 5px solid var(--blue); }
.post-header { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.post-header > div:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.post-header strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-header span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.network-badge { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; font-weight: 700; font-size: 19px; }
.x-badge { background: #111; }
.linkedin-badge { background: var(--blue); font-size: 18px; }
.network-name { margin-left: auto; color: var(--muted); font-size: 13px !important; }
.post-editor { margin-top: 18px; border: 0; padding: 0; min-height: 205px; font-size: 18px; line-height: 1.55; }
.linkedin-editor { min-height: 265px; }
.post-editor:focus { box-shadow: none; }
.post-meta { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.card-actions { display: flex; gap: 10px; margin-top: 20px; }
.card-actions button { flex: 1; }
.secondary-button, .outline-button { background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 13px 16px; font-weight: 600; }
.secondary-button:hover, .outline-button:hover { border-color: #a4ad9f; background: var(--soft-green); }
.dark-button { padding: 13px 16px; }
.approval-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; margin-top: 20px; border-bottom: 1px solid var(--line); }
.approval-bar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.approval-bar strong { font-size: 15px; }
.approval-bar > div > span:last-child { color: var(--muted); font-size: 14px; }
.approval-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--lime); font-weight: 700; }
.voice-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; padding: 110px 0 80px; }
.voice-copy p { max-width: 430px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.voice-panel { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 25px; }
.voice-panel-head { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.voice-panel-head > div { display: grid; gap: 3px; min-width: 0; }
.voice-panel-head span:not(.avatar):not(.active-label) { color: var(--muted); font-size: 14px; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 50%; background: #e8d3c4; color: #432918; font-weight: 700; text-transform: uppercase; }
.active-label { margin-left: auto; padding: 5px 9px; border-radius: 99px; background: #eef9d8; color: #527a13; font-size: 12px; }
.voice-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; }
.voice-tags span { border: 1px solid var(--line); border-radius: 99px; padding: 8px 11px; color: var(--muted); font-size: 14px; }
.footer { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; padding-top: 24px; border-top: 1px solid var(--line); }
.connections-section { padding: 35px 0 80px; border-top: 1px solid var(--line); }
.connection-status { padding-top: 7px; color: var(--muted); font-size: 14px; }
.connection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.connection-card { display: flex; align-items: center; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.connection-info { display: grid; gap: 4px; min-width: 0; }
.connection-info span { color: var(--muted); font-size: 14px; }
.connect-button { margin-left: auto; white-space: nowrap; }
.connection-footnote { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.mcp-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; padding: 0 0 86px; }
.mcp-copy p { max-width: 450px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.mcp-panel { border-radius: 22px; background: var(--ink); color: #fff; padding: 25px; }
.mcp-panel-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #40433a; }
.mcp-panel-head > div { display: grid; gap: 3px; min-width: 0; }
.mcp-panel-head strong { font-size: 17px; }
.mcp-panel-head span:not(.mcp-icon) { color: #b9c0b5; font-size: 13px; }
.mcp-panel-head .text-button { margin-left: auto; color: #c9ff4c; font-size: 13px; }
.mcp-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--lime); color: var(--ink); font-size: 23px; }
.mcp-panel code { display: block; margin: 20px 0; color: var(--lime); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; }
.mcp-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mcp-tools span { border: 1px solid #40433a; border-radius: 99px; padding: 7px 10px; color: #d5dbd0; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 5; transform: translate(-50%, 20px); background: var(--ink); color: #fff; border-radius: 99px; padding: 13px 18px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; padding: 20px; background: rgba(20,23,16,.42); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(480px, 100%); border-radius: 22px; background: var(--paper); padding: 34px; box-shadow: 0 20px 80px rgba(0,0,0,.2); }
.modal p { color: var(--muted); margin: 12px 0 20px; }
.modal textarea { margin-bottom: 15px; }
.modal-close { position: absolute; right: 20px; top: 16px; border: 0; background: transparent; font-size: 28px; color: var(--muted); }
@media (max-width: 780px) {
  .shell { padding: 0 18px 24px; }
  .topbar { min-height: 68px; }
  .private-chip { display: none; }
  .hero { padding: 55px 0 40px; display: block; }
  h1 { font-size: clamp(48px, 15vw, 76px); }
  .hero-copy { font-size: 18px; }
  .hero-note { margin-top: 36px; }
  .field-grid, .platform-grid, .voice-section, .connection-grid, .mcp-section { grid-template-columns: 1fr; }
  .composer-footer, .approval-bar, .footer { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .results-section { padding-top: 60px; }
  .results-intro { display: block; }
  .generated-label { display: block; margin-top: 18px; }
  .voice-section { gap: 30px; padding: 80px 0 60px; }
  .mode { font-size: 14px; padding: 13px 5px; }
  .mode span { display: block; margin: 0 0 4px; }
}
