.marketing-studio { padding: 0 4px 28px; --studio-forest: #214f40; --studio-gold: #b68a3e; --studio-muted: #718077; }
.marketing-studio [hidden] { display: none !important; }
.marketing-heading, .marketing-panel-heading, .marketing-actions, .marketing-meta, .marketing-version-row { display: flex; align-items: center; gap: 10px; }
.marketing-heading { position: sticky; top: 0; z-index: 40; justify-content: space-between; flex-wrap: nowrap; margin-bottom: 16px; padding: 5px 28px; min-height: 96px; border: 1px solid #dde5da; border-radius: 18px; background: radial-gradient(ellipse at top left, #e2ecdf 0, transparent 65%), #f8f8f2; box-shadow: 0 5px 12px #213d310a; }
.marketing-fixpost-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.marketing-heading .marketing-fixpost-wordmark { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -1.3px; line-height: 1.2; color: var(--studio-forest); white-space: nowrap; }
.marketing-fixpost-wordmark span { color: #0a66c2; }
.marketing-fixpost-mark { display: block; width: 92px; height: 84px; object-fit: contain; flex-shrink: 0; }
.marketing-heading #marketing-profile-open { flex-shrink: 0; }
.marketing-heading-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.marketing-heading #marketing-profile-open { background: #fff; border: 1px solid #cad8ce; border-radius: 10px; box-shadow: 0 2px 5px #214f4008; }
.marketing-heading .button svg, .marketing-studio .button svg { width: 17px; height: 17px; }
.marketing-layout { display: grid; grid-template-columns: 210px minmax(280px, 1.05fr) minmax(290px, 1.15fr); gap: 18px; align-items: start; }
.marketing-card { min-width: 0; background: #fff; border: 1px solid #e0e6df; border-radius: 16px; padding: 22px; box-shadow: 0 4px 18px #213d3105; }
.marketing-library { background: #f3f5ef; padding: 18px 12px; box-shadow: none; }
.marketing-conversation { background: #fdfefb; }
.marketing-editor { border: 0; border-radius: 2px 3px 2px 1px; background-color: #fffdf6; background-image: url("note-paper-grain.svg"), linear-gradient(#7cacc538 1px, transparent 1px), linear-gradient(90deg, #7cacc538 1px, transparent 1px), radial-gradient(ellipse at 0 100%, #cabd9d26, transparent 55%), linear-gradient(105deg, #ffffff80, transparent 55%, #d6cbb51a); background-size: 160px 160px, 20px 20px, 20px 20px, 100% 100%, 100% 100%; background-position: 0 0, -1px -1px, -1px -1px, 0 0, 0 0; box-shadow: 0 1px 2px #423c2924, 3px 7px 12px -5px #423c2936, 1px 20px 30px -18px #423c2940; }
.marketing-editor { position: relative; }
.marketing-editor::before { content: ""; position: absolute; top: 18px; left: 20px; width: 32px; height: 32px; background: url("marketing-linkedin-paper-mark.svg") center / contain no-repeat; mix-blend-mode: multiply; transform: rotate(-2deg); pointer-events: none; }
.marketing-panel-kicker { font-size: 10px; font-weight: 500; color: #7c826e; margin: 0 0 5px; letter-spacing: .2px; }
.marketing-panel-heading { justify-content: space-between; margin-bottom: 14px; }
.marketing-panel-heading h2 { font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.marketing-studio label { display: block; font-size: 12px; font-weight: 700; margin: 10px 0 6px; }
.marketing-studio textarea, .marketing-studio select { width: 100%; box-sizing: border-box; padding: 14px; border: 1px solid #d7e0d6; border-radius: 10px; background: #fff; color: #202d26; font: inherit; line-height: 1.8; transition: border-color .15s, box-shadow .15s; }
.marketing-studio textarea { resize: vertical; }
.marketing-studio textarea:focus, .marketing-studio select:focus { outline: 2px solid #95b9a7; outline-offset: 1px; }
.marketing-studio button { font: inherit; cursor: pointer; }
.marketing-studio button:disabled { opacity: .5; cursor: not-allowed; }
.marketing-studio .button { font-size: 12px; justify-content: center; }
.marketing-studio .button.primary { background: var(--studio-forest); border-color: var(--studio-forest); border-radius: 9px; box-shadow: 0 3px 7px #214f4012; }
.marketing-studio .button.secondary { border-radius: 9px; }
.marketing-studio button:focus-visible { outline: 2px solid #759983; outline-offset: 3px; }
.marketing-studio .button:not(:disabled):hover { filter: brightness(.97); }
.marketing-actions { flex-wrap: wrap; margin: 12px 0; }
.marketing-meta { justify-content: space-between; flex-wrap: wrap; color: #65766b; font-size: 11px; margin: 10px 0; }
.marketing-muted { color: #65766b; font-size: 12px; line-height: 1.7; }
.marketing-link-button { border: 0; background: transparent; color: var(--green, #1f5b49); padding: 4px 0; text-decoration: underline; font-size: 11px !important; }
.marketing-notice { padding: 12px 16px; margin-bottom: 16px; border-radius: 8px; color: #863c31; background: #fff0e9; border: 1px solid #ebc9bd; white-space: pre-wrap; }
.marketing-notice[data-kind="success"] { background: #edf6ef; border-color: #b9d6c1; color: #1f5b49; }
.marketing-session-note { position: relative; margin: 22px 0 18px; transform: rotate(-1.4deg); transform-origin: 50% 12px; transition: transform .25s, opacity .25s; }
.marketing-session-note:nth-child(even) { transform: rotate(1.1deg); }
.marketing-session-note:nth-child(3n) { transform: rotate(-.7deg); }
.marketing-session-button { position: relative; display: block; width: 100%; border: 0; background: url("note-paper-grain.svg"), radial-gradient(ellipse at 8% 95%, #c9c1ad26, transparent 42%), linear-gradient(112deg, #fffef9, #f9f6ed 52%, #eeeadf); text-align: start; padding: 30px 15px 25px; margin: 0; border-radius: 1px 2px 1px 3px; color: #465346; box-shadow: 0 1px 2px #443c2520, 2px 6px 9px -4px #443c2538, 1px 13px 18px -11px #443c2540; transition: box-shadow .15s; }
.marketing-note-fold { position: absolute; bottom: 0; left: 0; width: 22px; height: 22px; background: linear-gradient(45deg, #f3f5ef 0 47%, #b5aa9155 49%, #dad3c0 53%, #fffdf6 83%); border-top-right-radius: 7px 4px; filter: drop-shadow(2px -2px 2px #4e432d14); pointer-events: none; }
.marketing-session-pin { position: absolute; top: -19px; left: calc(50% - 22px); z-index: 2; width: 44px; height: 46px; padding: 0; border: 0; border-radius: 8px; background: transparent; isolation: isolate; cursor: pointer; transition: transform .18s; }
.marketing-session-pin::before { content: ""; position: absolute; width: 20px; height: 7px; left: 15px; top: 31px; border-radius: 50%; background: #25332140; filter: blur(2px); transform: translate(3px, 2px) rotate(-14deg); transition: opacity .18s, transform .18s; pointer-events: none; }
.marketing-session-pin::after { content: ""; position: absolute; inset: 0; background: url("marketing-pushpin.svg") center / 34px 40px no-repeat; transform: translate(-1px, -2px) rotate(-22deg); filter: drop-shadow(2px 4px 2px #263c2c38); transition: transform .2s, opacity .2s; pointer-events: none; }
.marketing-session-pin:hover:not(:disabled), .marketing-session-pin:focus-visible { transform: translateY(-4px); }
.marketing-session-pin:hover:not(:disabled)::before, .marketing-session-pin:focus-visible::before { opacity: .55; transform: translate(6px, 7px) rotate(-14deg) scale(1.15); }
.marketing-session-pin:hover:not(:disabled)::after, .marketing-session-pin:focus-visible::after { transform: translate(-3px, -4px) rotate(-34deg); }
.marketing-session-pin:focus-visible { outline: 2px solid var(--green, #1f5b49); outline-offset: 2px; }
.marketing-session-pin:disabled { cursor: default; }
.marketing-session-note.is-removing .marketing-session-pin::after { opacity: 0; transform: translate(-8px, -22px) rotate(-60deg); }
.marketing-session-note.is-removing .marketing-session-pin::before { opacity: 0; }
.marketing-session-note.is-removing { opacity: .35; transform: rotate(-4deg) translateY(10px) scale(.96); }
.marketing-session-button:hover { box-shadow: 0 1px 2px #443c2520, 3px 9px 13px -5px #443c2540, 1px 16px 23px -12px #443c2545; }
.marketing-session-button strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: "Assistant", Arial, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.65; overflow-wrap: anywhere; }
.marketing-session-button small { display: block; color: #718176; font-size: 10px; margin-top: 5px; }
.marketing-studio .marketing-session-button strong { font-family: "Assistant", Arial, sans-serif !important; }
.marketing-session-button.active { box-shadow: 0 1px 2px #243f2d24, 2px 7px 11px -4px #243f2d38, 1px 14px 19px -11px #243f2d40; }
.marketing-session-status { display: inline-block; background: #e7ede3; border-radius: 5px; padding: 2px 6px; color: #365c46; margin-inline-end: 6px; font-weight: 500; }
.marketing-library .marketing-panel-heading { flex-wrap: nowrap; gap: 12px; margin: 0 0 10px; padding: 6px 14px; border: 1px solid #dde5da; border-radius: 14px; background: radial-gradient(ellipse at top left, #e2ecdf 0, transparent 65%), #f8f8f2; box-shadow: 0 5px 12px #213d3114; }
.marketing-new-post { flex-shrink: 0; }
.marketing-library-tabs { display: flex; gap: 4px; border-bottom: 1px solid #d6dfd2; margin-bottom: 8px; background: transparent; }
.marketing-library-tabs button { flex: 1; padding: 9px 3px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #718077; font-size: 12px; }
.marketing-library-tabs button[aria-selected="true"] { color: var(--studio-forest); border-bottom-color: var(--studio-forest); font-weight: 700; }
.marketing-library-tabs span { font-size: 10px; font-weight: 400; }
.marketing-session-check { position: absolute; top: -20px; left: calc(50% - 22px); width: 44px; height: 44px; pointer-events: none; }
.marketing-library #marketing-more { width: 100%; margin-top: 10px; }
#marketing-sessions { max-height: 65vh; overflow: auto; padding: 4px 12px 10px; }
#marketing-welcome { padding: 18px 2px 4px; }
#marketing-welcome h2 { font-size: 26px; margin: 10px 0; color: #244b39; letter-spacing: -.5px; }
#marketing-welcome p { line-height: 1.8; }
.marketing-intro-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; color: #f7f5e9; background: var(--studio-forest); border-radius: 18px 18px 5px 18px; box-shadow: 0 5px 14px #214f4020; }
#marketing-topic { min-height: 150px; background: #fff; }
#marketing-topic::placeholder, #marketing-message::placeholder { color: #8b978d; font-size: 12px; }
#marketing-topic-form .button { margin-top: 12px; }
.marketing-brief { background: #f5f8f5; border-radius: 7px; padding: 10px; font-size: 12px; margin: 14px 0; }
.marketing-brief summary { cursor: pointer; font-weight: 600; }
.marketing-brief p { white-space: pre-wrap; line-height: 1.7; }
.marketing-messages { max-height: 52vh; overflow-y: auto; padding: 6px 2px; scrollbar-width: thin; scrollbar-color: #c9d6c9 transparent; }
.marketing-message { padding: 17px; margin-bottom: 18px; border: 1px solid #e5e9df; border-radius: 3px 13px 13px 13px; background: #fff; }
.marketing-message[data-role="user"] { background: #eaf0e7; border-color: #dfe7d9; border-radius: 13px 3px 13px 13px; margin-inline-start: 24px; }
.marketing-message[data-role="assistant"]>strong::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 28px; margin-inline-end: 7px; background: var(--studio-forest) url("marketing-ai-sparkles.svg") center / 23px 23px no-repeat; border-radius: 9px; }
#marketing-message-form { border-top: 1px solid #e1e7dc; padding-top: 8px; margin-top: 12px; }
.marketing-message strong { font-size: 11px; color: #557260; }
.marketing-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; margin: 7px 0 0; }
.marketing-progress { position: relative; display: flex; align-items: center; min-height: 66px; box-sizing: border-box; font-size: 12px; line-height: 1.7; color: #1f5b49; padding: 12px; padding-inline-start: 100px; background: linear-gradient(110deg, #f4f8ef, #eaf2e9); border: 1px solid #dce8d9; border-radius: 12px; margin-top: 10px; }
.marketing-progress::before, .marketing-progress::after { content: ""; position: absolute; top: calc(50% - 21px); width: 42px; height: 42px; pointer-events: none; }
.marketing-progress::before { inset-inline-start: 48px; background: url("marketing-writing-pencil.svg") center / contain no-repeat; transform-origin: 30% 85%; animation: marketing-pencil-write 1.2s ease-in-out infinite; }
.marketing-progress::after { inset-inline-start: 10px; background: var(--studio-forest) url("marketing-ai-sparkles.svg") center / 34px 34px no-repeat; border-radius: 14px; animation: marketing-star-think 1.8s ease-in-out infinite; }
@keyframes marketing-pencil-write { 0%, 100% { transform: translate(0, 0) rotate(-5deg); } 30% { transform: translate(3px, -2px) rotate(4deg); } 60% { transform: translate(-2px, 1px) rotate(-2deg); } 80% { transform: translate(2px, -1px) rotate(3deg); } }
@keyframes marketing-star-think { 0%, 100% { opacity: .7; transform: scale(.92) rotate(-4deg); } 50% { opacity: 1; transform: scale(1.04) rotate(4deg); } }
#marketing-draft-tools > label:first-child { margin-top: 0; min-height: 28px; padding-left: 44px; }
.marketing-version-row select { min-width: 0; flex: 1; font-size: 11px; }
.marketing-version-row button { max-width: 90px; }
#marketing-draft { min-height: 360px; padding: 18px 8px; font-size: 15px; line-height: 2; border: 0; border-radius: 0; background: transparent; color: #243f50; box-shadow: none; }
#marketing-draft:focus { outline: 2px solid #95b9a7; outline-offset: 1px; }
.marketing-draft-placeholder { min-height: 300px; padding: 28px 8px; }
.marketing-draft-placeholder h3 { font-size: 17px; color: #687969; font-weight: 500; margin: 28px 0 8px; }
.marketing-paper-lines { display: grid; gap: 14px; }
.marketing-paper-lines i { display: block; height: 7px; width: 92%; background: #f0f2eb; border-radius: 4px; }
.marketing-paper-lines i:nth-child(2) { width: 76%; }
.marketing-paper-lines i:nth-child(3) { width: 85%; }
.marketing-paper-lines i:nth-child(4) { width: 52%; }
.marketing-quick-feedback { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.marketing-quick-feedback button { border: 1px solid #dbe6de; background: #f8faf7; border-radius: 16px; padding: 5px 9px; color: #40624c; font-size: 11px; }
.marketing-profile-dialog { width: min(760px, calc(100vw - 36px)); box-sizing: border-box; max-height: 90vh; overflow: auto; border: 1px solid #cddbd2; border-radius: 14px; padding: 24px; color: #202d26; }
.marketing-profile-dialog::backdrop { background: rgba(15, 37, 27, .45); }
.marketing-research-dialog { margin: 0 0 0 auto; width: min(660px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; box-sizing: border-box; overflow: auto; border: 0; border-inline-start: 1px solid #d6dfd2; padding: 24px; background: #f8faf5; color: #202d26; }
.marketing-research-dialog::backdrop { background: #10271c66; }
.marketing-research-dialog h2 { margin: 0; font-size: 22px; }
#marketing-research-topic { width: 100%; box-sizing: border-box; border: 1px solid #cbd8ca; border-radius: 8px; padding: 12px; font: inherit; }
#marketing-research-topic:focus { outline: 2px solid #95b9a7; outline-offset: 1px; }
.marketing-research-idea { background: #fff; border: 1px solid #dce5d8; border-radius: 14px; padding: 20px; margin: 16px 0; box-shadow: 0 4px 12px #214f4008; }
.marketing-research-idea h3 { margin: 0 0 14px; font-size: 18px; color: #214f40; }
.marketing-research-idea p, .marketing-research-idea li { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.marketing-research-idea a, .marketing-message a { color: #14659c; text-decoration: underline; }
.marketing-research-idea { position: relative; padding: 0; background: linear-gradient(130deg, #fffef9, #f6f4e9); border: 0; box-shadow: 0 1px 3px #423c291c, 0 5px 12px #423c2910; }
.marketing-research-idea summary { cursor: pointer; padding: 20px; padding-inline-end: 60px; font-size: 16px; font-weight: 600; line-height: 1.7; color: #214f40; }
.marketing-research-idea details[open] summary { background: #e8efe480; border-radius: 14px 14px 0 0; }
.marketing-research-body { padding: 0 20px 20px; }
.marketing-research-pin { position: absolute; top: 8px; inset-inline-end: 8px; width: 44px; height: 48px; border: 0; border-radius: 8px; background: transparent; isolation: isolate; }
.marketing-research-pin::before { content: ""; position: absolute; width: 23px; height: 8px; left: 13px; top: 34px; border-radius: 50%; background: #30392b26; filter: blur(3px); transform: translate(4px, 2px) rotate(-18deg); pointer-events: none; }
.marketing-research-pin::after { content: ""; position: absolute; inset: 0; background: url("marketing-pushpin.svg") center / 36px 42px no-repeat; transform: translate(-2px, -3px) rotate(-28deg); filter: drop-shadow(3px 5px 2px #263c2c30); pointer-events: none; }
.marketing-research-pin[aria-pressed="true"]::before { width: 18px; height: 6px; left: 14px; top: 32px; background: #25332159; filter: blur(1.5px); transform: none; }
.marketing-research-pin[aria-pressed="true"]::after { transform: translate(0, 2px) rotate(-5deg); clip-path: inset(0 0 9px); filter: drop-shadow(1px 2px 1px #263c2c50); }
.marketing-research-switch { display: flex; gap: 8px; margin-top: 22px; }
.marketing-research-switch button { border: 0; border-radius: 20px; padding: 8px 14px; color: #65766b; background: transparent; font-size: 12px; }
.marketing-research-switch button[aria-pressed="true"] { background: #e1ebdf; color: #214f40; }
#marketing-research-search { margin-top: 14px; padding: 11px 18px; gap: 9px; box-shadow: 0 4px 10px #214f4020; }
.marketing-profile-dialog p { line-height: 1.7; }
#marketing-profile-error { color: #a33a29; }
@media (min-width: 1550px) { .marketing-layout { grid-template-columns: 240px minmax(360px, 1.1fr) minmax(350px, 1fr); } }
@media (max-width: 1200px) {
  .marketing-layout { grid-template-columns: 180px minmax(0, 1fr); }
  .marketing-editor { grid-column: 2; }
  .marketing-library { grid-row: span 2; }
}
@media (max-width: 760px) {
  main.main.main-wide:has(.marketing-studio) { margin-right: 0 !important; }
  .marketing-layout { grid-template-columns: minmax(0, 1fr); }
  .marketing-editor, .marketing-library { grid-column: auto; grid-row: auto; }
  .marketing-heading .marketing-fixpost-wordmark { font-size: 25px; }
  .marketing-heading { padding: 5px 12px; gap: 8px; border-radius: 14px; }
  .marketing-fixpost-brand { gap: 2px; }
  .marketing-fixpost-mark { width: 68px; height: 72px; }
  .marketing-heading #marketing-profile-open { padding: 8px; font-size: 11px; gap: 5px; }
  .marketing-heading-actions { gap: 4px; }
  .marketing-heading-actions .button { padding: 7px; font-size: 10px; }
  .marketing-card { padding: 15px; }
  .marketing-editor::before { top: 12px; left: 13px; }
  #marketing-sessions { max-height: 160px; }
  .marketing-messages { max-height: 420px; }
  .marketing-draft-placeholder { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-progress::before, .marketing-progress::after { animation: none; }
  .marketing-studio textarea, .marketing-studio select, .marketing-session-button, .marketing-session-note, .marketing-session-pin, .marketing-session-pin::before, .marketing-session-pin::after { transition: none; }
}
