/* Topic and editorial demo workspaces, scoped to their own surfaces. */
.library-experience[hidden], body[data-mode="chat"] .library-experience { display: none !important; }
.ow-workspace { max-width: 1520px; margin: auto; padding: 30px clamp(24px,3.5vw,62px) 35px; color: var(--ink); }
.ow-workspace button, #libraryTopicsPreview button { font: inherit; cursor: pointer; }
.ow-breadcrumb { display: flex; align-items: center; gap: 12px; min-height: 28px; padding-right: 100px; font-size: 11px; color: var(--muted); }
.ow-breadcrumb button { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 650; }
.ow-breadcrumb small { margin-left: auto; font-size: 9px; letter-spacing: .09em; }
.ow-kicker { display: block; font-size: 9px; letter-spacing: .15em; font-weight: 700; color: #58848b; line-height: 1.6; margin: 0 0 11px; }
.ow-workspace-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 34px 0 30px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.ow-workspace-head h1 { font-size: clamp(30px,3vw,44px); line-height: 1.3; letter-spacing: -.045em; margin: 0; }
.ow-workspace-head h1 em { font-style: normal; color: #168e91; }
.ow-workspace-head > div > p:last-child { max-width: 720px; font-size: 12px; line-height: 1.9; color: var(--muted); margin: 13px 0 0; }
.ow-head-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 10px; justify-content: flex-end; }
.ow-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; border-radius: 7px; color: var(--ink); font-size: 11px !important; line-height: 1.55; text-decoration: none; }
.ow-button:hover { border-color: #55a6a8; background: var(--soft); }
.ow-button-primary { color: white; background: #167d83; border-color: #167d83; }
.ow-button-primary:hover { color: white; background: #12686d; }
.ow-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 0 0 22px; }
.ow-section-heading h2 { margin: 0; font-size: 23px; line-height: 1.5; letter-spacing: -.025em; }
.ow-section-heading p:not(.ow-kicker) { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 8px 0 0; }
.ow-section-heading > button { border: 0; padding: 6px 0; background: transparent; color: #287c85; font-size: 12px; flex-shrink: 0; }
.ow-section-heading > span { color: var(--muted); font-size: 10px; flex-shrink: 0; }
.ow-topic-admin { flex-shrink: 0; color: #287c85; font-size: 12px; text-decoration: none; }
.ow-topic-admin:hover { text-decoration: underline; text-underline-offset: 3px; }
#libraryTopicsPreview { margin: 34px 0 38px; padding-top: 28px; border-top: 2px solid var(--ink); }
.ow-topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; }
.ow-topic-grid-home { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.ow-topic-card { border: 0; border-top: 1px solid var(--line); padding-top: 16px; background: transparent; min-width: 0; --topic-accent: #2b7c83; --topic-wash: #e7f3f1; }
.topic-tcm { --topic-accent: #8d7655; --topic-wash: #f3eee1; }
.topic-skin { --topic-accent: #9b716d; --topic-wash: #f6eeed; }
.topic-ageing { --topic-accent: #54718a; --topic-wash: #eaf0f7; }
.ow-source-image { margin: 0; min-width: 0; position: relative; background: transparent; }
.ow-source-image img { display: block; width: auto; max-width: min(100%,calc(var(--source-width,2400px)/2)); height: auto; object-fit: contain; padding: 0; }
.ow-source-image figcaption { padding: 8px 0 0; background: transparent; text-align: left; line-height: 1.5; }
.ow-source-image figcaption a { color: var(--muted); font-size: 8px; line-height: 1.5; text-decoration: none; }
.ow-source-image .ow-image-license { display: inline-block; margin-left: 8px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.ow-topic-card-image img { height: auto; max-height: 210px; }
.ow-topic-grid-home .ow-topic-card-image img { height: auto; max-height: 140px; }
.ow-topic-card-body { padding: 20px 0 0; background: transparent; }
.ow-topic-card h3 { font-size: 23px; line-height: 1.5; margin: 0; letter-spacing: -.02em; }
.ow-topic-card h3 button { border: 0; padding: 0; background: transparent; color: var(--ink); text-align: left; line-height: inherit; }
.ow-topic-card-formal { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ow-topic-card-formal .ow-topic-card-body { padding: 0; }
.ow-topic-card-formal h3 a { color: var(--ink); line-height: inherit; text-decoration: none; }
.ow-topic-card-formal h3 a:hover { color: #087f8b; text-decoration: underline; text-underline-offset: 3px; }
.ow-topic-empty { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.ow-demo-topic-section { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.ow-topic-card h3 span { color: var(--topic-accent); font-size: .75em; }
.ow-topic-card-body > p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 12px 0 22px; }
.ow-topic-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--muted); }
.ow-follow { border: 0; background: transparent; color: var(--topic-accent); padding: 4px 0; font-size: 11px !important; }
.ow-topic-grid-home .ow-topic-card-body { padding: 18px 0 0; }
.ow-topic-grid-home h3 { font-size: 18px; }
.ow-topic-grid-home .ow-topic-card-meta { font-size: 9px; }
.ow-topic-grid-home .ow-topic-card-body > p { font-size: 11px; margin-bottom: 17px; }
.ow-reading-path { margin-top: 40px; padding: 29px 0 0; border-top: 1px solid var(--line); }
.ow-reading-path > h2 { font-size: 24px; margin: 0 0 25px; }
.ow-reading-path ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); }
.ow-reading-path li { padding: 24px; border-right: 1px solid var(--line); }
.ow-reading-path li:last-child { border-right: 0; }
.ow-reading-path li > span { color: #8ea9ab; display: block; font: 24px Georgia,serif; margin-bottom: 13px; }
.ow-reading-path b { font-size: 13px; }
.ow-reading-path p { margin: 10px 0 0; font-size: 11px; color: var(--muted); line-height: 1.8; }
.ow-topic-hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr); background: transparent; margin-bottom: 34px; gap: 30px; align-items: start; border-top: 2px solid var(--topic-accent,#2b7c83); padding-top: 24px; }
.ow-topic-hero > div { padding: 0; }
.ow-topic-hero h2 { font-size: 29px; line-height: 1.5; letter-spacing: -.03em; margin: 0 0 16px; }
.ow-topic-hero > div > p:not(.ow-kicker) { color: var(--muted); font-size: 13px; line-height: 2; }
.ow-topic-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.ow-topic-tags span { padding: 5px 9px; font-size: 10px; border: 1px solid #9cb8b566; color: var(--topic-accent,#2b7c83); border-radius: 3px; }
.ow-topic-hero-image { height: auto; min-height: 0; }
.ow-topic-hero-image img { height: auto; min-height: 0; max-height: 340px; }
.ow-topic-hero:not(:has(figure)) { grid-template-columns: minmax(0,1fr); }
.ow-topic-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 32px; align-items: start; }
.ow-topic-group { scroll-margin-top: 25px; margin-bottom: 38px; }
.ow-topic-group .ow-section-heading { border-bottom: 1px solid var(--ink); padding-bottom: 17px; margin-bottom: 0; }
.ow-topic-group .ow-section-heading h2 { font-size: 22px; }
.ow-topic-sources { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; }
.ow-topic-source { display: flex; flex-direction: column; min-width: 0; padding: 23px 0; border-bottom: 1px solid var(--line); }
.ow-topic-source-label { display: flex; gap: 9px; align-items: center; color: #4e8288; }
.ow-topic-source-label > span { font: 18px Georgia,serif; color: #91abad; }
.ow-topic-source-label > small { font-size: 9px; line-height: 1.65; }
.ow-topic-source h3 { font-size: 17px; line-height: 1.7; margin: 13px 0 11px; }
.ow-topic-source h3 button, .ow-desk-record h3 button { border: 0; background: transparent; color: var(--ink); padding: 0; text-align: left; line-height: inherit; }
.ow-topic-source > p { font-size: 12px; line-height: 1.95; color: var(--muted); margin: 0 0 17px; }
.ow-topic-source-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: auto; }
.ow-topic-source-foot small { color: var(--muted); font-size: 9px; line-height: 1.7; flex: 1; min-width: 120px; }
.ow-topic-source-foot button { border: 0; padding: 0; background: transparent; color: #287c85; font-size: 10px; flex-shrink: 0; }
.ow-topic-rail { display: grid; gap: 26px; }
.ow-topic-rail > section { border-top: 2px solid #578b8c; padding-top: 19px; }
.ow-topic-rail h2 { font-size: 20px; margin: 0 0 14px; }
.ow-topic-rail h3 { font-size: 16px; margin: 0 0 16px; }
.ow-question { display: flex; gap: 11px; width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font-size: 12px !important; line-height: 1.8; }
.ow-question span { color: #8ea8ab; font: 15px Georgia,serif; padding-top: 3px; }
.ow-question b { color: #287c85; font-size: 15px; margin-left: auto; }
.ow-small-note { font-size: 10px; line-height: 1.85; color: var(--muted); }
.ow-topic-route { background: var(--soft); padding: 20px; }
.ow-topic-route > button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; width: 100%; text-align: left; font-size: 11px; line-height: 1.8; color: var(--ink); margin: 13px 0; padding: 0; }
.ow-topic-route button span { color: #658f92; }
.ow-topic-route > small { display: block; font-size: 9px; line-height: 1.9; color: var(--muted); margin-top: 22px; }
.ow-related-topic { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); padding: 15px 0; background: transparent; }
.ow-related-topic span { display: block; font-size: 9px; color: var(--muted); margin-bottom: 6px; }
.ow-related-topic b { font-size: 12px; line-height: 1.8; color: var(--ink); }
.ow-local-note { display: flex; align-items: center; gap: 15px; padding: 14px 18px; background: var(--soft); border-left: 3px solid #72a4a5; margin-bottom: 26px; }
.ow-local-note > span { font-size: 11px; font-weight: 650; flex-shrink: 0; }
.ow-local-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.ow-desk-tabs, .ow-editor-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ow-desk-tabs button, .ow-editor-tabs button { flex-shrink: 0; border: 0; border-bottom: 2px solid transparent; padding: 14px 0; background: transparent; color: var(--muted); font-size: 12px; }
.ow-desk-tabs button span, .ow-editor-tabs button span { margin-left: 7px; font-size: 9px; }
.ow-desk-tabs button.is-selected, .ow-editor-tabs button.is-selected { border-color: #26858b; color: #287c85; font-weight: 650; }
.ow-desk-content { padding-top: 10px; }
.ow-desk-record { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.ow-desk-record > div { min-width: 0; flex: 1; }
.ow-desk-record h3 { font-size: 19px; line-height: 1.7; margin: 0 0 10px; }
.ow-desk-record p { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 0; }
.ow-desk-record small { display: block; color: var(--muted); font-size: 10px; margin-top: 12px; }
.ow-desk-record > button { flex-shrink: 0; }
.ow-desk-note { border-left: 3px solid #9ab6b2; margin: 18px 0 0; padding: 10px 15px; background: var(--soft); font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.ow-empty { text-align: center; padding: 70px 20px; }
.ow-empty > span { color: #84aaa8; font-size: 35px; }
.ow-empty h2 { font-size: 22px; margin: 15px 0; }
.ow-empty p { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 0 0 22px; }
.ow-editor-steps { display: flex; align-items: center; gap: 24px; margin: 25px 0; font-size: 12px; }
.ow-editor-steps span { display: flex; gap: 9px; align-items: center; }
.ow-editor-steps b { font: 19px Georgia,serif; color: #8aa7a7; }
.ow-editor-steps i { font-style: normal; color: #9aaeb5; }
.ow-editor-layout { display: grid; grid-template-columns: minmax(260px,.83fr) minmax(0,1.17fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 25px; }
.ow-editor-list { min-width: 0; }
.ow-editor-add > label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 10px; }
.ow-editor-add > div { display: flex; gap: 8px; }
.ow-editor-add select { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); padding: 8px; font-size: 11px; text-overflow: ellipsis; }
.ow-editor-add button { flex-shrink: 0; }
.ow-editor-tabs { gap: 17px; margin: 19px 0 8px; }
.ow-editor-tabs button { font-size: 10px; }
.ow-editor-record { width: 100%; display: block; padding: 18px; border: 1px solid transparent; border-bottom-color: var(--line); background: var(--surface); text-align: left; margin-bottom: 6px; border-radius: 5px; }
.ow-editor-record.is-selected { background: var(--soft); border-color: #9dbfbd; }
.ow-editor-record b { display: block; color: var(--ink); font-size: 14px; line-height: 1.8; margin: 10px 0 7px; }
.ow-editor-record > small { display: block; color: var(--muted); font-size: 10px; line-height: 1.7; }
.ow-status { display: inline-block; font-size: 9px; padding: 3px 7px; border-radius: 3px; color: #627b86; background: #edf1f4; }
.ow-status-review { color: #8e682b; background: #f8f1df; }
.ow-status-published { color: #3f7f6a; background: #e6f2ea; }
.ow-editor-detail { min-width: 0; border-left: 1px solid var(--line); padding-left: 28px; }
.ow-editor-detail-head { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--muted); margin-bottom: 22px; }
.ow-editor-form > label { display: block; font-size: 12px; margin-bottom: 20px; }
.ow-editor-form input:not([type="checkbox"]), .ow-editor-form textarea { display: block; width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 11px 12px; margin-top: 9px; font-size: 13px; line-height: 1.85; font-family: inherit; resize: vertical; }
.ow-editor-form input[readonly], .ow-editor-form textarea[readonly] { background: var(--soft); }
.ow-editor-source { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 18px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 20px; }
.ow-editor-source > span { color: var(--muted); font-size: 9px; grid-column: 1/-1; }
.ow-editor-source > b { font-size: 12px; line-height: 1.8; }
.ow-editor-source > a { color: #287c85; text-decoration: none; font-size: 10px; line-height: 1.8; }
.ow-editor-source > small { grid-column: 1/-1; font-size: 10px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.ow-editor-checks { border: 1px solid var(--line); margin: 20px 0; padding: 15px; }
.ow-editor-checks legend { font-size: 11px; padding: 0 7px; }
.ow-editor-checks label { display: flex; gap: 9px; align-items: center; font-size: 11px; line-height: 1.8; margin: 10px 0; }
.ow-editor-checks input { accent-color: #257e83; width: 15px; height: 15px; flex-shrink: 0; }
.ow-editor-checks small { color: var(--muted); font-size: 9px; line-height: 1.8; }
.ow-editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.ow-editor-history { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; }
.ow-editor-history h3 { font-size: 12px; margin: 0 0 15px; }
.ow-editor-history ol { padding: 0; list-style: none; margin: 0; }
.ow-editor-history li { display: flex; align-items: baseline; gap: 12px; margin: 11px 0; }
.ow-editor-history span { color: var(--muted); font-size: 9px; flex-shrink: 0; }
.ow-editor-history b { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.8; }
.ow-workspace-status { color: #287c85; font-size: 12px; line-height: 1.8; margin: 20px 0 0; min-height: 22px; }
.ow-workspace button:focus-visible, .ow-workspace a:focus-visible, #libraryTopicsPreview button:focus-visible, #libraryTopicsPreview a:focus-visible { outline: 2px solid #168f94; outline-offset: 4px; }
.ow-workspace h1, .ow-workspace h2, .ow-workspace h3, .ow-workspace p, .ow-workspace button, #libraryTopicsPreview h3 { overflow-wrap: anywhere; }
body[data-theme="dark"] .ow-topic-card, body[data-theme="dark"] .ow-topic-hero { --topic-wash: #152f39; --topic-accent: #8dc0be; }
body[data-theme="dark"] .topic-tcm { --topic-wash: #2d3026; --topic-accent: #d0bd95; }
body[data-theme="dark"] .topic-skin { --topic-wash: #332b30; --topic-accent: #d4a6a0; }
body[data-theme="dark"] .topic-ageing { --topic-wash: #202e42; --topic-accent: #a9bfd9; }
body[data-theme="dark"] .ow-kicker, body[data-theme="dark"] .ow-topic-source-label, body[data-theme="dark"] .ow-question b, body[data-theme="dark"] .ow-topic-source-foot button, body[data-theme="dark"] .ow-editor-source a, body[data-theme="dark"] .ow-workspace-status, body[data-theme="dark"] .ow-desk-tabs button.is-selected { color: #94c6c7; }
body[data-theme="dark"] .ow-status { background: #293945; color: #c3d2dd; }
body[data-theme="dark"] .ow-status-review { background: #3c3422; color: #e1c58b; }
body[data-theme="dark"] .ow-status-published { background: #203c32; color: #a2d9bd; }
@media (max-width: 1250px) {
  .ow-workspace-head { align-items: flex-start; flex-direction: column; }
  .ow-head-actions { justify-content: flex-start; }
  .ow-topic-grid-home { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ow-topic-grid-home .ow-topic-card-image img { height: auto; max-height: 165px; }
  .ow-topic-layout { grid-template-columns: minmax(0,1fr) 225px; gap: 24px; }
  .ow-topic-sources { grid-template-columns: minmax(0,1fr); }
  .ow-topic-hero h2 { font-size: 25px; }
  .ow-topic-hero > div { padding: 0; }
  .ow-editor-layout { grid-template-columns: minmax(220px,.8fr) minmax(0,1.2fr); gap: 20px; }
  .ow-editor-detail { padding-left: 20px; }
}
@media (max-width: 1000px) {
  .ow-workspace { padding-inline: 28px; }
  .ow-breadcrumb small { display: none; }
  .ow-topic-layout { grid-template-columns: minmax(0,1fr); }
  .ow-topic-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ow-topic-rail > section:first-child { grid-column: 1/-1; }
  .ow-topic-hero { grid-template-columns: minmax(0,1fr); }
  .ow-topic-hero-image img { max-height: 270px; }
  .ow-topic-card h3 { font-size: 20px; }
  .ow-reading-path ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ow-reading-path li { border-bottom: 1px solid var(--line); }
  .ow-reading-path li:nth-child(2) { border-right: 0; }
  .ow-reading-path li:nth-child(n+3) { border-bottom: 0; }
  .ow-editor-layout { grid-template-columns: minmax(0,1fr); }
  .ow-editor-detail { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; }
  .ow-editor-records { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: 360px; overflow-y: auto; }
}
@media (max-width: 768px) {
  .ow-workspace { padding: 76px 20px 26px; }
  .ow-workspace-head { padding: 28px 0 24px; margin-bottom: 24px; }
  .ow-workspace-head h1 { font-size: 31px; }
  .ow-workspace-head > div > p:last-child { font-size: 12px; }
  .ow-breadcrumb { padding-right: 0; }
  .ow-topic-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .ow-topic-grid-home { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .ow-topic-card-image img { height: auto; max-height: 195px; }
  .ow-topic-grid-home .ow-topic-card-image img { height: auto; max-height: 115px; }
  .ow-topic-grid-home .ow-topic-card-body { padding: 16px 0 0; }
  .ow-topic-grid-home h3 { font-size: 17px; }
  .ow-topic-grid-home .ow-topic-card-meta { display: block; }
  .ow-topic-grid-home .ow-topic-card-meta span + span { display: none; }
  .ow-topic-card-body { padding: 20px 0 0; }
  .ow-section-heading { align-items: flex-start; gap: 14px; }
  .ow-section-heading h2 { font-size: 21px; }
  #libraryTopicsPreview .ow-section-heading { flex-direction: column; }
  .ow-topic-hero > div { padding: 0; }
  .ow-topic-hero h2 { font-size: 25px; }
  .ow-topic-hero-image { min-height: 0; }
  .ow-topic-hero-image img { min-height: 0; max-height: 235px; }
  .ow-topic-rail { grid-template-columns: minmax(0,1fr); }
  .ow-topic-source h3 { font-size: 18px; }
  .ow-desk-record { flex-direction: column; align-items: stretch; gap: 17px; }
  .ow-desk-record > button { align-self: flex-start; }
  .ow-desk-tabs { gap: 20px; }
  .ow-desk-tabs button { font-size: 11px; }
  .ow-local-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ow-editor-steps { gap: 12px; font-size: 10px; }
  .ow-editor-steps span { gap: 5px; }
  .ow-editor-steps b { font-size: 17px; }
  .ow-editor-records { grid-template-columns: minmax(0,1fr); max-height: 320px; }
  .ow-editor-source { grid-template-columns: minmax(0,1fr); }
  .ow-editor-source > a { grid-column: 1; }
  .ow-editor-history li { align-items: flex-start; }
  .ow-empty { padding: 48px 10px; }
  .ow-empty h2 { font-size: 20px; }
}
