/* Dedicated author workspace. Every rule is scoped away from the approved public site. */
.crm-app { min-height: 100vh; background: #f7f9f6; color: var(--ink); font-size: 16px; }
.crm-header { height: 96px; padding: 18px 35px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); background: #fff; }
.crm-header .brand { width: 110px; }
.crm-header .brand-caption { font-size: 7px; }
.crm-product { border-left: 1px solid var(--line); padding-left: 28px; font-size: 18px; }
.crm-header>.quiet-link { margin-left: auto; font-size: 15px; }
.crm-person { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.crm-person small { display: block; font-size: 12px; color: var(--muted); }
.crm-avatar { flex-shrink: 0; width: 40px; height: 40px; display: inline-grid; place-items: center; background: #e6eeeb; border: 1px solid #c9d9d4; color: #355f60; border-radius: 50%; font-size: 13px; }
.crm-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); min-height: calc(100vh - 96px); }
.crm-sidebar { background: #fff; border-right: 1px solid var(--line); padding: 32px 18px; }
.crm-sidebar nav { display: grid; gap: 7px; }
.crm-sidebar nav a { display: flex; gap: 12px; align-items: center; padding: 13px 15px; color: #52656e; border-radius: 5px; font-size: 15px; }
.crm-sidebar nav a:hover { background: #f4f7f4; }
.crm-sidebar nav a[aria-current] { color: #25586c; background: #eaf1ee; }
.crm-sidebar nav .icon { width: 19px; height: 19px; }
.crm-sidebar nav small { margin-left: auto; font-size: 12px; }
.crm-sidebar-note { padding: 28px 12px; margin-top: 40px; border-top: 1px solid var(--line); }
.crm-sidebar-note>.icon { color: var(--accent); margin-bottom: 14px; }
.crm-sidebar-note strong { display: block; font-size: 14px; font-weight: 500; }
.crm-sidebar-note p,.crm-local-note p { font-size: 13px; line-height: 1.7; margin-top: 9px; }
.crm-local-note { padding: 18px 12px; font-size: 13px; color: var(--accent-text); }
.crm-local-note i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6f957e; margin-right: 6px; }
.crm-main { min-width: 0; padding: 44px clamp(28px,3vw,56px) 70px; max-width: 1660px; width: 100%; margin-inline: auto; }
.crm-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 35px; }
.crm-kicker { font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.crm-heading h1 { font: 400 clamp(36px,3.2vw,52px)/1.08 var(--serif); margin: 15px 0; }
.crm-heading p { max-width: 620px; font-size: 16px; line-height: 1.7; }
.crm-heading>.button { flex-shrink: 0; }
.crm-app .button,.crm-modal .button { font-size: 15px; min-height: 46px; padding: 12px 18px; gap: 12px; }
.crm-app .quiet-link,.crm-app .text-button { font-size: 15px; }
.crm-app .small-note { font-size: 14px; line-height: 1.7; }
.crm-app .status { font-size: 12px; padding: 5px 9px; }
.crm-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); background: #fff; margin-bottom: 38px; }
.crm-metrics>div { padding: 23px 24px; }
.crm-metrics>div+div { border-left: 1px solid var(--line); }
.crm-metrics span { display: block; font-size: 14px; color: var(--muted); }
.crm-metrics strong { display: block; font: 400 43px/1.1 var(--serif); margin-block: 10px 8px; }
.crm-metrics small { display: block; font-size: 12px; color: var(--muted); }
.crm-section-title { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.crm-section-title h2 { font: 400 27px/1.15 var(--serif); }
.crm-section-title>span { font-size: 14px; color: var(--muted); }
.crm-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.crm-column { min-width: 0; padding: 18px; background: #edf2ee; border-top: 2px solid #839b8d; }
.crm-column-review { background: #f4f0e8; border-color: #b7a074; }
.crm-column-approved { background: #eaf1f2; border-color: #7195a4; }
.crm-column>h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; padding: 2px 0 17px; }
.crm-column>h3>span { margin-left: auto; color: var(--muted); font-weight: 400; }
.crm-column>h3>i { height: 6px; width: 6px; border-radius: 50%; background: currentColor; }
.crm-work-card { display: block; background: #fff; border: 1px solid #cfdbd4; padding: 18px; margin-bottom: 13px; transition: border-color .2s,box-shadow .2s; }
.crm-work-card:hover { border-color: #7d9ca3; box-shadow: 0 5px 15px #24404e09; }
.crm-card-topic { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--accent-text); }
.crm-priority { color: #835426; font-size: 12px; }
.crm-work-card h3 { font: 400 24px/1.2 var(--serif); margin-block: 12px 18px; overflow-wrap: anywhere; }
.crm-readiness { display: flex; gap: 8px 13px; flex-wrap: wrap; font-size: 12px; color: #817563; }
.crm-readiness span { display: flex; align-items: center; gap: 4px; }
.crm-readiness .complete { color: #527768; }
.crm-readiness .icon { width: 13px; height: 13px; }
.crm-card-foot { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; color: var(--muted); font-size: 12px; }
.crm-overdue { color: #9a4c30 !important; }
.crm-more { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 5px 0; color: var(--accent-text); }
.crm-more .icon { width: 16px; }
.crm-column-empty { padding-block: 20px 35px; font-size: 15px; line-height: 1.7; }
.crm-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.crm-attention-list>a { display: flex; align-items: center; gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); }
.crm-attention-list>a>.icon { color: var(--accent); width: 18px; }
.crm-attention-list>a>.icon:last-child { margin-left: auto; }
.crm-attention-list strong,.crm-activity strong { display: block; font-size: 15px; font-weight: 400; }
.crm-attention-list small { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.crm-activity>div { display: flex; gap: 15px; border-top: 1px solid var(--line); padding-block: 16px; }
.crm-activity-dot { width: 5px; height: 5px; border-radius: 50%; background: #7e9a95; margin-top: 10px; flex-shrink: 0; }
.crm-activity p { font-size: 13px; margin-top: 4px; text-transform: capitalize; }
.crm-app .field,.crm-modal .field { margin-bottom: 20px; }
.crm-app .field>span,.crm-modal .field>span { font-size: 15px; margin-bottom: 8px; }
.crm-app .field input,.crm-app .field textarea,.crm-app .field select,.crm-modal .field input,.crm-modal .field textarea,.crm-modal .field select { font-size: 16px; padding: 12px 13px; min-height: 46px; background: #fff; line-height: 1.55; }
.crm-app .field small { font-size: 13px; }
.crm-filters { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,.8fr); gap: 20px; margin-bottom: 10px; }
.crm-library-count { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.crm-unit-table { border: 1px solid var(--line); background: #fff; }
.crm-unit-table-head,.crm-unit-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,.75fr) minmax(0,.65fr); align-items: center; gap: 20px; padding: 20px 24px; }
.crm-unit-table-head { font-size: 13px; color: var(--muted); background: #f0f4f0; }
.crm-unit-row { border-top: 1px solid var(--line); font-size: 14px; }
.crm-unit-row:hover { background: #f9fbf8; }
.crm-unit-name { display: flex; align-items: center; gap: 16px; min-width: 0; }
.crm-unit-name h3 { font: 400 24px/1.2 var(--serif); margin-bottom: 7px; overflow-wrap: anywhere; }
.crm-unit-row small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.crm-thumb { display: block; position: relative; width: 50px; height: 60px; flex-shrink: 0; overflow: hidden; }
.crm-thumb .idea-thumbnail { width: 100%; height: 100%; }
.crm-no-results { padding: 50px; text-align: center; border: 1px solid var(--line); }
.crm-no-results h2 { font-size: 32px; }
.crm-no-results p { margin: 15px 0 25px; }
.crm-author-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.crm-author-card { background: #fff; border: 1px solid var(--line); padding: 26px; min-width: 0; }
.crm-author-top { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.crm-author-top>.icon-button { margin-left: auto; }
.crm-role { font-size: 13px; color: var(--accent); text-transform: capitalize; }
.crm-author-card h2 { font-size: 29px; margin-bottom: 10px; overflow-wrap: anywhere; }
.crm-author-card p { font-size: 15px; margin-bottom: 20px; overflow-wrap: anywhere; }
.crm-author-email { color: var(--accent-text); }
.crm-author-details { padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.crm-author-details strong { font-weight: 400; color: var(--accent); }
.crm-info-line { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; margin-top: 30px; }
.crm-info-line .icon { flex-shrink: 0; width: 18px; }
.crm-app .editor-page { padding: 0; }
.crm-app .editor-page>.back-link { margin: 0 0 25px; }
.crm-app .editor-heading { margin-bottom: 30px; }
.crm-app .editor-heading h1 { font: 400 43px/1.12 var(--serif); margin-top: 15px; overflow-wrap: anywhere; }
.crm-app .editor-heading .eyebrow { font-size: 12px; }
.crm-app .unit-meta { font-size: 14px; gap: 15px; }
.crm-app .editor-layout { grid-template-columns: minmax(0,1.4fr) minmax(300px,.8fr); gap: 35px; }
.crm-app .editor-preview { position: static; max-width: none; padding: 0; }
.crm-panel { border: 1px solid var(--line); padding: 25px; background: #fff; margin-bottom: 30px; }
.crm-panel h3 { font: 400 26px/1.15 var(--serif); margin-bottom: 23px; }
.crm-panel p { font-size: 15px; }
.crm-panel .form-grid { grid-template-columns: 1fr; gap: 0; }
.crm-app .editor-tabs { gap: 23px; }
.crm-app .editor-tabs button { font-size: 15px; padding-block: 15px; }
.crm-app .form-section-title h2 { font-size: 30px; }
.crm-app .form-section-title p,.crm-app .review-box p { font-size: 16px; }
.crm-app .source-fields { display: grid; grid-template-columns: minmax(0,1fr) 40px; gap: 0 10px; }
.crm-app .source-fields>.field { grid-column: 1; width: 100%; margin-bottom: 12px; }
.crm-app .source-fields>.icon-button { grid-column: 2; grid-row: 1/3; align-self: center; margin: 0; }
.crm-app .check-field,.crm-modal .check-field { font-size: 15px; line-height: 1.6; }
.crm-app .review-box .eyebrow,.crm-app .preview-heading .eyebrow { font-size: 12px; }
.crm-app .ad-copy strong { font-size: 26px; }
.crm-app .ad-copy p,.crm-app .publication-card p { font-size: 15px; }
.crm-app .media-picker legend { font-size: 16px; }
.crm-app .media-picker>div { gap: 12px; }
.crm-app .publication-card h3 { font-size: 24px; }
.crm-app .revision-history { margin-top: 30px; }
.crm-app .revision-history h3 { font-size: 22px; }
.crm-app .revision-history strong { font-size: 14px; }
.crm-app .revision-history p>span { font-size: 13px; }
.crm-discussion { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
.crm-comments { margin-bottom: 25px; }
.crm-comment { background: #fff; padding: 20px; border: 1px solid var(--line); margin-bottom: 12px; }
.crm-comment>div { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; font-size: 14px; }
.crm-comment strong { font-weight: 500; }
.crm-comment>div>span { font-size: 12px; color: var(--muted); }
.crm-comment p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 12px; font-size: 16px; }
.crm-comment-changes { border-left: 3px solid #b19161; }
.crm-comment-actions { display: flex; flex-wrap: wrap; gap: 15px; }
.crm-revisions { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.crm-revisions h3 { font: 400 25px var(--serif); margin-bottom: 15px; }
.crm-revisions>div { display: flex; flex-wrap: wrap; gap: 18px; }
.crm-empty-line { font-size: 15px; padding-block: 20px; }
.crm-modal { width: min(660px,calc(100vw - 32px)); }
.crm-dialog h2 { font-size: 37px; margin-bottom: 25px; }
.crm-dialog>h3 { margin-top: 25px; font-size: 19px; }
.crm-dialog>p,.crm-dialog>ul { font-size: 16px; line-height: 1.7; margin-top: 10px; }
.crm-dialog a { color: var(--accent-text); text-decoration: underline; }
.crm-preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-app .connector-card p,.crm-app .connector-note,.crm-app .assistant-intro p { font-size: 16px; }
.crm-app .inline-notice p { font-size: 15px; }
@media(max-width:1200px) {
  .crm-layout { grid-template-columns: 190px minmax(0,1fr); }
  .crm-main { padding: 30px 26px 55px; }
  .crm-sidebar { padding-inline: 10px; }
  .crm-sidebar nav a { padding-inline: 10px; }
  .crm-heading { flex-wrap: wrap; align-items: flex-start; }
  .crm-board { grid-template-columns: 1fr; }
  .crm-column { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .crm-column>h3,.crm-column-empty,.crm-more { grid-column: 1/-1; }
  .crm-column>h3 { padding-bottom: 4px; }
  .crm-work-card { margin-bottom: 0; }
  .crm-metrics>div { padding: 18px 15px; }
  .crm-lower { grid-template-columns: 1fr; }
  .crm-author-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .crm-unit-table-head { display: none; }
  .crm-unit-row { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 17px; }
  .crm-app .editor-layout { display: block; }
  .crm-app .editor-preview { margin-top: 40px; }
  .crm-app .ad-preview { max-width: 440px; }
  .crm-app .form-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:720px) {
  .crm-header { height: 82px; gap: 15px; padding: 15px 20px; }
  .crm-header .brand { width: 85px; }
  .crm-header .brand-caption { font-size: 6px; }
  .crm-product { font-size: 16px; padding-left: 16px; }
  .crm-header>.quiet-link { display: none; }
  .crm-person { margin-left: auto; }
  .crm-person>span:last-child { display: none; }
  .crm-layout { display: block; }
  .crm-sidebar { padding: 9px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .crm-sidebar nav { display: flex; overflow-x: auto; gap: 5px; }
  .crm-sidebar nav a { flex-shrink: 0; font-size: 14px; gap: 9px; padding: 12px; }
  .crm-sidebar-note,.crm-local-note { display: none; }
  .crm-main { padding: 30px 20px 50px; }
  .crm-heading { gap: 22px; margin-bottom: 25px; }
  .crm-heading h1 { font-size: 37px; }
  .crm-metrics { grid-template-columns: 1fr 1fr; margin-bottom: 30px; }
  .crm-metrics>div { padding: 20px; }
  .crm-metrics>div:nth-child(3) { border-left: 0; }
  .crm-metrics>div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .crm-column { grid-template-columns: 1fr; }
  .crm-section-title { flex-wrap: wrap; gap: 12px; }
  .crm-section-title h2 { font-size: 26px; }
  .crm-filters { grid-template-columns: 1fr 1fr; gap: 0 15px; }
  .crm-filters>.field:first-child { grid-column: 1/-1; }
  .crm-unit-row { padding: 20px 16px; }
  .crm-unit-name { grid-column: 1/-1; }
  .crm-evidence { display: none; }
  .crm-author-grid { grid-template-columns: 1fr; }
  .crm-author-card { padding: 23px; }
  .crm-app .editor-heading h1 { font-size: 36px; }
  .crm-app .editor-tabs { gap: 23px; }
  .crm-app .editor-tabs button { font-size: 15px; }
  .crm-app .form-grid,.crm-modal .form-grid { grid-template-columns: 1fr; }
  .crm-panel { padding: 20px; }
  .crm-modal { padding: 35px 22px; }
  .crm-dialog h2 { font-size: 33px; }
}
