/* A visual content studio inside the existing administration workspace. */
.content-administration { min-width: 0; width: 100%; color: #263d35; }
.content-administration * { box-sizing: border-box; }
.content-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.content-list-card { min-width: 0; border: 1px solid #d9e2dc; border-radius: 12px; background: #fff; overflow: hidden; }
.content-card-body { display: grid; gap: 12px; padding: 24px; height: 100%; }
.content-card-body h2, .content-card-body p { margin: 0; overflow-wrap: anywhere; }
.content-card-body p { color: #60716a; line-height: 1.6; }
.content-card-body > .button { justify-self: start; align-self: end; }
.content-list-image { display: block; width: 100%; height: 180px; object-fit: cover; }
.content-list-card:has(.content-list-image) .content-card-body { height: auto; }
.content-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.content-badge { display: inline-flex; align-items: center; border-radius: 999px; background: #f1f4f2; color: #5b6b62; padding: 5px 10px; font-size: 11px; font-weight: 650; line-height: 1.4; }
.content-badge.is-published { background: #e7f4eb; color: #235e3d; }
.content-editor-heading { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 0 0 20px; }
.content-editor-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: #6d796e; font-size: 12px; }
.content-feedback:not(:empty) { margin: 0 0 16px; padding: 14px 16px; background: #f4f7f1; border: 1px solid #cedccc; border-radius: 6px; line-height: 1.6; }
.content-form { border: 1px solid #d9e2dc; border-radius: 12px; background: #fff; overflow: hidden; }
.content-form-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(130px, 1fr)); gap: 18px; align-items: start; }
.content-settings { padding: 24px; background: #fbfcfa; border-bottom: 1px solid #e1e7e2; }
.content-field { display: grid; gap: 8px; margin: 0 0 18px; font-size: 13px; font-weight: 600; min-width: 0; }
.content-field input, .content-field textarea, .content-field select { width: 100%; min-height: 44px; color: #273d33; background: white; padding: 11px 12px; border: 1px solid #b8c6bd; border-radius: 6px; font: inherit; font-weight: 400; }
.content-field textarea { resize: vertical; line-height: 1.65; }
.content-field :is(input, textarea, select):focus-visible { outline: 3px solid #bdd9cb; outline-offset: 1px; border-color: #366e57; }
.content-field :disabled { color: #637067; background: #f4f6f3; opacity: 1; }
.content-field small, .content-check small { color: #6b7971; font-size: 12px; font-weight: 400; line-height: 1.5; }
.content-check { display: flex; align-items: start; gap: 10px; font-weight: 600; font-size: 13px; line-height: 1.5; }
.content-check input { width: 18px; height: 18px; accent-color: #2d7158; flex: 0 0 auto; margin-top: 2px; }
.content-check span { display: grid; gap: 3px; }
.content-language-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e1e7e2; }
.content-language-bar > div:first-child { display: grid; gap: 5px; font-size: 13px; }
.content-language-bar small { color: #6b7971; line-height: 1.5; font-size: 12px; }
.content-language-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #edf2ee; border: 1px solid #dce5dd; border-radius: 8px; flex-shrink: 0; }
.content-language-tabs button { min-height: 38px; border: 0; background: transparent; border-radius: 5px; padding: 8px 12px; cursor: pointer; color: #57705f; font: inherit; font-size: 12px; }
.content-language-tabs button[aria-pressed=true] { background: white; box-shadow: 0 1px 4px #183a251c; font-weight: 700; color: #274c37; }
.content-progress-note, .content-helper { margin: 0; padding: 18px 24px; color: #627567; font-size: 12px; line-height: 1.65; }
.content-progress-note { background: #f4f8f4; border-bottom: 1px solid #e1e7e2; }
.content-builder { display: grid; grid-template-columns: 205px minmax(0, 1fr); min-height: 460px; align-items: start; }
.content-phase-nav { padding: 20px 14px; background: #f8faf7; border-right: 1px solid #e1e7e2; min-height: 100%; }
.content-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
#main-content .content-section-heading h2 { margin: 0; font-size: 15px; }
.content-phase-nav ol { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.content-phase-nav li { border: 1px solid transparent; border-radius: 8px; overflow: hidden; }
.content-phase-nav li:has([aria-current=step]) { border-color: #c7dacb; background: #edf4ec; }
.content-phase-nav [data-content-phase] { display: flex; align-items: start; gap: 10px; text-align: left; padding: 12px 10px; border: 0; width: 100%; background: transparent; color: #5b6d60; font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; }
.content-phase-nav [data-content-phase] span { width: 24px; height: 24px; background: #e6ebe5; border-radius: 6px; display: grid; place-content: center; flex-shrink: 0; font-size: 12px; }
.content-phase-nav [data-content-phase] strong { overflow-wrap: anywhere; }
.content-phase-nav [aria-current=step] { color: #255238; }
.content-phase-nav [aria-current=step] span { background: #2f6950; color: white; }
.content-phase-nav .content-item-actions { padding: 0 8px 8px; gap: 4px; }
.content-item-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.content-item-actions .button { min-height: 32px; padding: 5px 9px; font-size: 11px; }
.content-item-actions .content-remove { color: #795952; background: transparent; }
.content-phase-nav > .button { font-size: 12px; width: 100%; }
.content-phase-heading { padding: 24px 24px 18px; }
.content-phase-heading h2 { margin: 8px 0; overflow-wrap: anywhere; }
.content-stable-id { display: block; font-size: 11px; line-height: 1.6; color: #758175; overflow-wrap: anywhere; font-weight: 400; }
.content-stable-id code { color: #647464; font-size: 10px; }
.content-part-tabs { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 0 24px; border-bottom: 1px solid #e0e7e0; }
.content-part-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: #687a6b; font: inherit; font-size: 12px; padding: 12px 0; cursor: pointer; }
.content-part-tabs button[aria-pressed=true] { border-bottom-color: #347455; color: #29583e; font-weight: 700; }
.content-part-tabs span { display: inline-block; border-radius: 5px; padding: 1px 5px; background: #edf2ed; font-size: 10px; }
.content-part-body { padding: 24px; }
.content-part-body > .content-helper { padding: 0 0 18px; }
.content-items { display: grid; gap: 20px; margin-bottom: 20px; }
.content-item { border: 1px solid #dce4dc; border-radius: 8px; padding: 18px; }
.content-item > .content-stable-id { margin: -5px 0 18px; }
.content-item > .content-section-heading { font-size: 13px; }
.content-item > .content-field:last-child { margin-bottom: 0; }
.content-format { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid #d5dfd5; border-radius: 6px 6px 0 0; margin-bottom: -9px; background: #f5f8f4; }
.content-format .button { min-height: 28px; padding: 4px 8px; font-size: 11px; background: transparent; border-color: transparent; }
.content-format + textarea { border-radius: 0 0 6px 6px; }
.content-save-bar { display: flex; justify-content: flex-end; gap: 10px; align-items: center; padding: 18px 24px; background: #fbfcfa; border-top: 1px solid #dce4dc; }
.content-undo { display: flex; gap: 12px; align-items: center; padding: 12px 24px; background: #fff8e8; color: #74613b; font-size: 12px; }
.content-undo .button { font-size: 12px; }
.content-empty { padding: 24px; border: 1px dashed #c8d4c8; border-radius: 8px; color: #6d7c6d; font-size: 13px; line-height: 1.6; }
.content-preview { min-width: 0; }
.content-preview-banner { margin: 0 24px 24px; padding: 26px; background: #edf4ef; border-radius: 10px; border: 1px solid #dce7dd; }
.content-preview-banner h2 { margin: 8px 0; overflow-wrap: anywhere; }
.content-preview-banner p { margin: 0; color: #5b7362; line-height: 1.65; }
.content-preview-layout { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 20px; padding: 0 24px 24px; }
.content-preview-layout nav { display: grid; align-content: start; gap: 6px; }
.content-preview-layout nav button { padding: 10px; border: 0; background: transparent; border-radius: 6px; font: inherit; font-size: 12px; text-align: left; color: #627565; cursor: pointer; overflow-wrap: anywhere; }
.content-preview-layout nav [aria-current] { background: #e8f2e9; color: #23563b; font-weight: 700; }
.content-preview-layout > section { min-width: 0; }
.content-preview-layout h3 { margin-top: 0; }
.content-preview-activity { display: flex; align-items: start; gap: 14px; padding: 18px 0; border-bottom: 1px solid #e3e8e1; }
.content-preview-activity > span { flex-shrink: 0; background: #e6efea; border-radius: 50%; width: 30px; height: 30px; display: grid; place-content: center; font-size: 12px; }
.content-preview-activity p { color: #627565; font-size: 13px; line-height: 1.65; }
.content-preview-list { padding-left: 20px; line-height: 1.8; }
.content-preview-callout { margin: 20px 0; padding: 14px; background: #f5f7f2; border-radius: 6px; font-size: 13px; }
.content-preview-callout p { color: #617365; line-height: 1.65; margin-bottom: 0; }
.content-administration .chat-markdown img { max-width: 100%; height: auto; border-radius: 8px; }
.content-highlight-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 0 24px 24px; }
.content-highlight-preview { min-width: 0; align-self: start; }
.content-highlight-preview > .content-helper { padding: 0 0 14px; }
.content-form > .content-highlight-preview { max-width: 550px; margin: 0 auto; padding: 24px; }
.content-highlight-card { border: 1px solid #dce4dc; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px #20392208; background: white; }
.content-highlight-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.content-highlight-card > div:last-child { padding: 24px; }
.content-highlight-card h2 { margin: 10px 0; overflow-wrap: anywhere; }
.content-highlight-card p { color: #607367; line-height: 1.65; font-size: 14px; }
.content-highlight-card a { display: inline-block; margin-top: 12px; color: #295d42; font-weight: 600; }
.content-image-placeholder { display: grid; place-content: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e6eee1, #d3e6df); color: #607663; font-size: 13px; }
.content-assignment-form { padding: 24px; max-width: 760px; }
.content-assignment-form .content-save-bar { margin: 24px -24px -24px; }
.content-target-search { display: flex; align-items: end; gap: 12px; margin: 20px 0; }
.content-target-search .field { flex: 1; margin: 0; }
.content-administration button:focus-visible, .content-administration a:focus-visible { outline: 3px solid #8cb39c; outline-offset: 3px; }
@media (max-width: 1150px) {
  .content-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-form-grid > .content-field:first-child { grid-column: 1 / -1; }
  .content-builder { grid-template-columns: 175px minmax(0, 1fr); }
  .content-language-bar { align-items: start; flex-direction: column; }
  .content-preview-layout { grid-template-columns: minmax(0, 1fr); }
  .content-preview-layout nav { display: flex; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .content-builder, .content-highlight-editor { grid-template-columns: minmax(0, 1fr); }
  .content-phase-nav { border-right: 0; border-bottom: 1px solid #e1e7e2; }
  .content-phase-nav ol { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
  .content-phase-nav > .button { width: auto; }
  .content-settings, .content-language-bar, .content-part-body, .content-phase-heading { padding: 18px; }
  .content-part-tabs { padding: 0 18px; }
  .content-highlight-editor { padding: 0 18px 18px; }
  .content-item { padding: 14px; }
  .content-form-grid { grid-template-columns: minmax(0, 1fr); }
  .content-language-tabs { width: 100%; }
  .content-language-tabs button { flex: 1; }
  .content-save-bar { padding: 16px 18px; }
}
