/* Content creation, user-approved reference surfaces, 2026-10-24.
   Scoped to the writing workspace; all content remains API-backed. */
.cw-workspace,.dl-workspace {
  --cw-canvas:#f6f8fb;
  --cw-text:#182133;
  --cw-muted:#697991;
  --cw-line:#e4eaf3;
  --cw-blue:#006399;
  --cw-tint:#edf6ff;
  --cw-pearl-shadow:inset 0 0 0 1px #fff,inset 0 0 0 5px #ffffffb3,0 18px 30px -22px #607b9d55;
  --cw-pearl-bg:linear-gradient(145deg,#fcf8ff 0%,#fff 48%,#e8f9ff 100%);
}
.cw-workspace .cw-content {padding:28px 24px 32px;max-width:none;margin:0}
.cw-workspace .cw-intro h2,.cw-workspace .cw-section-head h2 {margin-bottom:4px}
.cw-workspace h2 {font-size:24px!important;font-weight:650}
.cw-workspace h3 {font-size:16px!important;font-weight:600}
.cw-workspace .cw-intro>div>p,.cw-workspace .cw-section-head>div>p {font-size:14px}
.cw-workspace .cw-tabs {height:46px}
.cw-workspace .cw-create-grid {grid-template-columns:minmax(0,1fr) 29%;gap:20px;align-items:stretch}
.cw-workspace .cw-compose {padding:28px;--cw-pearl-bg:linear-gradient(135deg,#f2ebff 0%,#fafbff 48%,#e5f8ff 100%)}
.cw-workspace .cw-preparation {padding:26px;--cw-pearl-bg:linear-gradient(135deg,#fff7eb 0%,#fffaff 48%,#e0faff 100%)}
.cw-workspace .cw-card-head {margin-bottom:20px}
.cw-workspace .cw-card-head p {font-size:13px}
.cw-workspace .cw-symbol {width:42px;height:42px;background:linear-gradient(140deg,#fff,#e7f6ff);color:#0078c4}
.cw-workspace .cw-compose>textarea {background:#ffffffed;min-height:144px;font-size:16px;border-color:#dfe5f1}
.cw-workspace .cw-compose-footer {gap:10px;margin-top:20px;padding-top:20px}
.cw-workspace .cw-compose-footer>span {margin-right:auto;font-size:13px}
.cw-workspace .cw-compose-footer>.btn {padding:10px 18px;white-space:nowrap}
.cw-workspace .btn.primary {background:#006399;border-color:#006399;box-shadow:0 4px 10px -6px #00639966}
.cw-workspace .btn.primary:hover:not(:disabled) {background:#005580;border-color:#005580;filter:none}
.cw-workspace .cw-properties>div {padding:11px 0;font-size:14px}
.cw-workspace .cw-preparation-foot {margin-top:24px}
.cw-workspace .cw-preparation-foot button {font-weight:600}
.cw-workspace .cw-topic-section {margin-top:30px}
.cw-workspace .cw-topic-card {min-height:148px;padding:22px;gap:12px;--cw-pearl-bg:linear-gradient(135deg,#f4eeff 0%,#fbfdff 50%,#e0f2ff 100%)}
.cw-workspace .cw-topic-card:nth-child(3n+2) {--cw-pearl-bg:linear-gradient(135deg,#fff0fc 0%,#fffafa 50%,#fff2e7 100%)}
.cw-workspace .cw-topic-card:nth-child(3n) {--cw-pearl-bg:linear-gradient(135deg,#ecfff5 0%,#fcffff 50%,#ddfff4 100%)}
.cw-workspace .cw-topic-card>span,.cw-workspace .cw-topic-card small {font-size:13px}
.cw-workspace .cw-topic-card strong {font-size:15px}
.cw-workspace .cw-topic-card {border:1px solid transparent;transition:border-color 140ms,box-shadow 140ms}
.cw-workspace .cw-topic-card:hover {transform:none;border-color:#bdc9dd;background:var(--cw-pearl-bg);box-shadow:var(--cw-pearl-shadow),0 9px 18px -14px #536d9466}
.cw-workspace .cw-topic-card.selected {border-color:#5774aa;background:var(--cw-pearl-bg);box-shadow:var(--cw-pearl-shadow)}
.cw-workspace .cw-topic-card.selected::after {content:'✓';position:absolute;right:18px;top:18px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#006399;color:#fff;font-size:12px}
.cw-workspace .cw-topic-card.selected>span {padding-right:22px}
.cw-workspace .cw-flow {padding:18px 24px;gap:25px}
.cw-workspace .cw-flow li.current>span {width:27px;height:27px}
.cw-workspace .cw-analysis-heading h2 {font-size:30px!important;font-weight:650}
.cw-workspace .cw-analysis-heading {padding-top:2px;padding-bottom:6px}
.cw-workspace .cw-analysis {background:radial-gradient(ellipse at 50% 42%,#e2f1ff80,transparent 55%)}
.cw-workspace .cw-analysis-scene {height:540px;margin-top:8px}
.cw-workspace .cw-panel-source {--cw-pearl-bg:linear-gradient(140deg,#fff 10%,#f5fbff 65%,#d5eeff 100%)}
.cw-workspace .cw-panel-topic {--cw-pearl-bg:linear-gradient(140deg,#fff 5%,#fff8ff 65%,#f6e5ff 100%)}
.cw-workspace .cw-panel-plan {--cw-pearl-bg:linear-gradient(140deg,#fff 5%,#f4fffd 60%,#d4fff5 100%)}
.cw-workspace .cw-panel-angle {--cw-pearl-bg:linear-gradient(140deg,#fff 5%,#fffaf5 65%,#ffeddd 100%)}
.cw-workspace .cw-pearl-panel {padding:24px 26px 20px;min-height:218px}
.cw-workspace .cw-panel-source {min-height:252px}
.cw-workspace .cw-panel-source {padding:20px 25px 18px}
.cw-workspace .cw-panel-source header {margin-bottom:12px}
.cw-workspace .cw-panel-source .cw-panel-number {margin-bottom:8px}
.cw-workspace .cw-panel-source ul {margin:0 0 8px}
.cw-workspace .cw-panel-source li {margin:3px 0;line-height:1.6}
.cw-workspace .cw-panel-source footer {padding-top:10px}
.cw-workspace .cw-pearl-panel h3 {font-size:18px!important}
.cw-workspace .cw-pearl-panel header span,.cw-workspace .cw-pearl-panel footer {font-size:12px}
.cw-workspace .cw-pearl-panel p,.cw-workspace .cw-pearl-panel li {font-size:14px!important}
.cw-workspace .cw-panel-number {color:#202b3d}
.cw-workspace .cw-analysis-scene .cw-pearl-panel {box-shadow:inset 0 0 0 1px #fff,inset 0 0 0 5px #ffffffaa,0 24px 35px -20px #546d8a66}
.cw-workspace .cw-analysis-scene .cw-pearl-panel {transition:translate 220ms cubic-bezier(.16,1,.3,1),box-shadow 220ms ease}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
 .cw-workspace .cw-analysis-scene:not(.p1-motion-paused) .cw-pearl-panel:hover {translate:0 -9px;box-shadow:inset 0 0 0 1px #fff,inset 0 0 0 5px #ffffffaa,0 32px 42px -20px #546d8a77}
}
.cw-workspace .cw-rich-editor {min-height:480px;outline:none;overflow-wrap:anywhere;line-height:2.1}
.cw-workspace #article-body[hidden] {display:none!important}
.cw-workspace .cw-rich-editor:focus-visible {outline:2px solid #006399;outline-offset:8px;border-radius:4px}
.cw-workspace .cw-rich-editor figure {position:relative;cursor:default;margin:28px 0;outline:none}
.cw-workspace .cw-rich-editor figure:is(.is-selected,:focus-visible) {outline:2px solid #006399;outline-offset:5px;border-radius:8px}
.cw-workspace .cw-paper .aw-photo {display:block;width:100%;max-width:100%;margin:28px 0;padding:0}
.cw-workspace .cw-paper .aw-photo img {display:block;width:100%;max-width:100%;height:auto;border-radius:8px}
.cw-workspace .cw-follow-writing {position:fixed;bottom:28px;left:50%;z-index:20;box-shadow:0 6px 18px #18233220}
.cw-workspace [data-upload-marker] {display:inline-block;padding:8px 12px;background:#f0f5f9;border-radius:6px;color:#526378}
.cw-workspace .cw-energy-stage .cw-analysis-core {width:224px;height:224px}
.cw-workspace .cw-analysis-core strong {color:#24364c}
.cw-workspace .cw-analysis-status {min-height:48px;margin-top:10px}
.cw-workspace .cw-analysis-progress {padding:22px 24px;--cw-pearl-bg:linear-gradient(135deg,#fffaf5,#fff 40%,#edf8ff)}
.cw-workspace .cw-analysis-progress .cw-process {gap:18px}
.cw-workspace .cw-analysis-progress .cw-process strong {font-size:13px}
.cw-workspace .cw-article-layout {grid-template-columns:minmax(0,1fr) 296px;gap:18px;padding-top:24px}
.cw-workspace .cw-article-layout:has([data-write=read][aria-pressed=true]) {grid-template-columns:minmax(0,1fr) 320px}
.cw-workspace .cw-document {background:#fff;border:1px solid #e1e9f8;border-radius:14px;box-shadow:0 12px 30px -26px #567d9d55}
.cw-workspace .cw-document-toolbar {min-height:64px;padding:12px 18px}
.cw-workspace .cw-view-tabs {background:#fff;border:1px solid var(--cw-line);padding:0;gap:0}
.cw-workspace .cw-view-tabs .btn {padding:7px 16px;min-height:34px}
.cw-workspace .cw-view-tabs .btn[aria-pressed=true] {background:#f1edff;color:#7952df}
.cw-workspace .cw-paper {padding:30px 40px 28px;max-width:none}
.cw-workspace .cw-paper h1,.cw-workspace .cw-paper #article-title {font-size:26px!important;font-weight:650!important}
.cw-workspace .cw-paper #article-title {box-sizing:border-box;height:calc(1.6em + 21px)!important;min-height:calc(1.6em + 21px)!important;max-height:none!important;line-height:1.6!important;padding:4px 0 16px!important}
.cw-workspace .cw-paper .plane-document-body,.cw-workspace .cw-paper .plane-document-body p {font-size:16px;line-height:1.95}
.cw-workspace .cw-paper .plane-document-body {width:100%;max-width:75ch!important;margin-inline:0}
.cw-workspace .cw-paper .plane-document-body>p {max-width:100%}
.cw-workspace .cw-paper .plane-document-body h2 {font-size:20px!important;font-weight:600;margin:28px 0 12px}
.cw-workspace .cw-paper .plane-document-body>p:last-child {margin-bottom:0}
.cw-workspace .cw-paper #article-body {font-size:15px;line-height:2.1}
.cw-workspace .cw-article-side>.cw-card {padding:22px;--cw-pearl-bg:linear-gradient(135deg,#fff5f0,#fcf9ff 50%,#e3f9ff)}
.cw-workspace .cw-article-side .cw-symbol {width:40px;height:40px;border-radius:50%}
.cw-workspace .cw-article-side .cw-card-head {align-items:flex-start;gap:12px}
.cw-workspace .cw-article-side h3 {font-size:16px!important}
.cw-workspace .cw-article-side .cw-card-head p {font-size:12px}
.cw-workspace .cw-next>.btn {min-height:35px;margin-bottom:10px}
.cw-workspace .cw-publish-later {border:0;margin:0;padding:0}
.cw-workspace .cw-publish-later p {margin-top:12px}
.cw-workspace .cw-article-side .cw-outline-card {--cw-pearl-bg:linear-gradient(135deg,#fcf4ff,#fcfcff 48%,#e5efff)}
.cw-workspace .cw-outline-card .cw-symbol {color:#8651fa;background:#f7f0ff}
.cw-workspace .cw-outline-card li {font-size:14px;padding:5px 0}
.cw-workspace .cw-outline-card .cw-card-head {margin-bottom:14px}
.cw-workspace .cw-outline-card li {padding:3px 0}
.cw-workspace .cw-article-side .cw-check-card {--cw-pearl-bg:linear-gradient(135deg,#f1fff7,#f8fffc 50%,#dff7f7)}
.cw-workspace .cw-check-card .cw-symbol {color:#009e85;background:#edfff8}
.cw-workspace .cw-article-side .cw-tools {--cw-pearl-bg:linear-gradient(135deg,#fff5eb,#fff9fe 50%,#f1eeff)}
.cw-workspace .cw-tools>.cw-card-head {margin-bottom:10px}
.cw-workspace .cw-tools .cw-sources {margin-top:10px}
.cw-workspace .cw-live-engine .cw-energy {height:190px}
.cw-workspace .cw-live-engine .cw-analysis-core {width:115px;height:115px}
.cw-workspace .cw-live-engine .cw-process li {padding-bottom:22px}
.cw-workspace .cw-live-engine .cw-process li:last-child {padding-bottom:0}
.cw-workspace .cw-schedule-summary {padding:24px;--cw-pearl-bg:linear-gradient(135deg,#fffaf2,#fcf5ff 40%,#f9fdff 65%,#dff3ff)}
.cw-workspace .cw-schedule-summary h3 {font-size:20px!important}
.cw-workspace .cw-schedule-summary p {font-size:14px}
.cw-workspace .cw-schedule-summary>.cw-tag {background:transparent}
.cw-workspace .cw-schedule-summary .cw-symbol {color:#854aff;background:linear-gradient(140deg,#fff,#f1ebff)}
.cw-workspace .cw-schedule-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));max-width:none}
.cw-workspace .cw-schedule-card {max-width:460px;padding:28px;--cw-pearl-bg:linear-gradient(135deg,#fff7ec,#fff 40%,#fbf6ff 65%,#dcf5ff)}
.cw-workspace .cw-schedule-card p,.cw-workspace .cw-schedule-date,.cw-workspace .cw-schedule-card dl {font-size:14px}
.cw-workspace .cw-schedule-card dl {border-top:1px solid var(--cw-line);padding-top:4px}
/* One continuous article list, with the same pearl material as the workbench. */
.cw-workspace .cw-library-controls {gap:20px;margin-top:24px;margin-bottom:22px}
.cw-workspace .cw-library-controls>label {max-width:360px;padding:10px 14px}
.cw-workspace .cw-library-controls input,.cw-workspace .cw-library-controls>div button {font-size:14px}
.cw-workspace .cw-library-list {border-radius:22px;padding:6px;overflow:hidden;background:var(--cw-pearl-bg);box-shadow:var(--cw-pearl-shadow);border:1px solid #e4eaf3}
.cw-workspace .cw-library-heading,.cw-workspace .cw-library-row {display:grid;grid-template-columns:minmax(180px,1fr) 112px 104px 80px 116px 32px;align-items:center;gap:18px;padding:16px 22px}
.cw-workspace .cw-library-heading {font-size:12px;color:var(--cw-muted);border-bottom:1px solid var(--cw-line)}
.cw-workspace .cw-library-grid {display:block}
.cw-workspace .cw-library-row {width:100%;border:1px solid transparent;border-bottom-color:var(--cw-line);border-radius:0;background:transparent;color:var(--cw-text);font:inherit;text-align:left;min-height:104px;transition:background 140ms,border-color 140ms}
.cw-workspace .cw-library-row:last-child {border-bottom-color:transparent}
.cw-workspace .cw-library-row:hover {background:#ffffffb3;border-color:#bccce2;border-radius:12px}
.cw-workspace .cw-library-row:focus-visible {outline:2px solid var(--cw-blue);outline-offset:-3px;border-radius:12px}
.cw-workspace .cw-row-article {display:flex;align-items:center;gap:16px;min-width:0}
.cw-workspace .cw-row-copy {display:block;min-width:0}
.cw-workspace .cw-row-copy strong {display:block;font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cw-workspace .cw-row-excerpt {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--cw-muted);margin-top:7px}
.cw-workspace .cw-row-meta,.cw-workspace .cw-library-row time {font-size:13px;color:var(--cw-muted);font-variant-numeric:tabular-nums}
.cw-workspace .cw-library-row>.cw-tag {justify-self:start}
.cw-workspace .cw-row-open {display:flex;color:var(--cw-muted)}
.cw-workspace .cw-library-list .cw-empty {margin:0}
/* Settings use the four pastel rows and the two right-hand guidance panels. */
.wp-settings {--wp-blue:#006399;--wp-text:#182133;--wp-muted:#697991;--wp-line:#e4eaf3}
.wp-settings #wp-settings-body>form {grid-template-columns:minmax(0,1fr) 310px}
.wp-settings .wp-settings-main {padding:10px 20px 28px}
.wp-settings .wp-setting-row {position:relative;isolation:isolate;gap:18px;padding:17px;border:1px solid #eae5ff;border-radius:12px;margin-bottom:12px;min-height:94px;background:linear-gradient(125deg,#fcfaff,#f8f6ff)}
.wp-settings .wp-setting-default {min-height:118px;align-items:flex-start;background:linear-gradient(135deg,#fcfaff,#f8f5ff)}
.wp-settings .wp-setting-format {border-color:#ffeddf;background:linear-gradient(135deg,#fffdfb,#fff5ed)}
.wp-settings .wp-setting-length {border-color:#ddf8f0;background:linear-gradient(135deg,#f8fffd,#eafcf7)}
.wp-settings .wp-setting-tone {border-color:#dfedff;background:linear-gradient(135deg,#f8fcff,#edf7ff)}
.wp-settings .wp-setting-copy {flex:1;min-width:0}
.wp-settings .wp-setting-row h2,.wp-settings .wp-setting-row h3 {font-size:15px;margin:3px 0 6px}
.wp-settings .wp-setting-row p {font-size:13px;margin:0}
.wp-settings .wp-setting-icon {display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:12px;background:#f0eaff;color:#8560ef}
.wp-settings .wp-setting-icon svg {width:23px;height:23px}
.wp-settings .wp-setting-format .wp-setting-icon {background:#fff0dc;color:#ff9500}
.wp-settings .wp-setting-length .wp-setting-icon {background:#dffbf2;color:#00b997}
.wp-settings .wp-setting-tone .wp-setting-icon {background:#e1efff;color:#2489ff}
.wp-settings .wp-setting-row select {min-width:0;width:auto;max-width:235px;padding:9px 15px;border:1px solid #dce3ef;border-radius:8px;font:inherit;font-size:13px;box-shadow:0 3px 7px -5px #7890b455}
.wp-settings .wp-setting-default select {align-self:flex-end}
.wp-settings .wp-setting-default>.plane-select {align-self:flex-end}
.wp-settings .wp-setting-row>.plane-select {flex:0 0 auto;max-width:240px}
.plane-shell.plane-refresh .wp-settings .wp-setting-row .plane-select-trigger {min-height:38px;padding:8px 16px!important;font-size:14px!important;border-radius:8px;background:#fff;border:1px solid #dce3ef;box-shadow:0 3px 7px -5px #7890b455}
.wp-settings .wp-image-note {padding:13px 15px;border:1px solid #e6efff;border-radius:10px;background:#f8fbff;font-size:12px;display:flex;align-items:center;gap:10px}
.wp-settings .wp-image-note svg {width:16px;height:16px;flex:none}
.wp-settings .wp-settings-footer {margin-top:16px}
.wp-settings .wp-settings-footer .btn.primary {background:#006399;border-color:#006399;color:#fff}
.wp-settings .wp-properties {padding:4px 10px 24px 0;border-left:1px solid var(--wp-line);background:transparent}
.wp-settings .wp-guide-panel {margin:0 0 14px 12px;border:1px solid #e6edf8;border-radius:11px;padding:22px 20px}
.wp-settings .wp-guide-panel h2 {font-size:17px;font-weight:600;margin-bottom:8px}
.wp-settings .wp-guide-panel p {font-size:13px;margin:0}
.wp-settings .wp-flow {margin:24px 0 0;line-height:2.5}
.wp-settings .wp-guide-panel>.btn {margin-top:18px}
html.dark .cw-workspace {--cw-canvas:#141619;--cw-text:#e5e9ef;--cw-muted:#a8b2c0;--cw-line:#323841;--cw-blue:#80c5ed;--cw-tint:#233644}
html.dark .cw-workspace :is(.cw-card,.cw-topic-card,.cw-pearl-panel,.cw-library-list) {--cw-pearl-bg:linear-gradient(135deg,#292635,#212a33 55%,#213942)}
html.dark .cw-workspace .cw-document,html.dark .cw-workspace .cw-view-tabs {background:#1c1e22}
html.dark .cw-workspace .cw-compose>textarea {background:#1c2730;border-color:#46525d}
html.dark .cw-workspace .cw-panel-number {color:#d6e7f4}
html.dark .cw-workspace .cw-library-row:hover {background:#ffffff0a;border-color:#607591}
html.dark .cw-workspace .cw-view-tabs .btn[aria-pressed=true] {background:#38304b;color:#d7bcff}
html.dark .wp-settings {--wp-text:#e5e9ef;--wp-muted:#a8b2c0;--wp-line:#323841}
html.dark .wp-settings .wp-setting-row {background:linear-gradient(135deg,#292635,#212a33);border-color:#393e50}
html.dark .wp-settings .wp-guide-panel,html.dark .wp-settings .wp-image-note {background:#1c222c;border-color:#323b4a}
html.dark .wp-settings .wp-setting-icon {background:#343044;color:#c1afff}
@media(min-width:1600px) {.cw-workspace .cw-article-layout {grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1220px) {
 .cw-workspace .cw-library-heading,.cw-workspace .cw-library-row {grid-template-columns:minmax(140px,1fr) 90px 80px 60px 100px 20px;gap:10px;padding:16px}
 .cw-workspace .cw-pearl-panel {padding:20px;min-height:210px}
 .cw-workspace .cw-panel-source {min-height:245px}
 .cw-workspace .cw-compose-footer {flex-wrap:wrap}
 .cw-workspace .cw-compose-footer>span {flex-basis:100%}
}
@media(max-width:1000px) {
 .cw-workspace .cw-create-grid,.cw-workspace .cw-article-layout,.cw-workspace .cw-article-layout:has([data-write=read][aria-pressed=true]) {grid-template-columns:minmax(0,1fr)}
 .cw-workspace .cw-analysis-heading {padding-inline:0;padding-bottom:46px}
 .cw-workspace .cw-motion-toggle {top:auto;bottom:2px;right:50%;transform:translateX(50%)}
 .cw-workspace .cw-analysis-scene {height:auto;display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0;padding-top:300px}
 .cw-workspace .cw-energy-stage {height:290px;bottom:auto}
 .cw-workspace .cw-pearl-panel {position:relative;inset:auto;width:100%;transform:none;min-height:218px}
 .cw-workspace .cw-panel-plan {grid-column:1;grid-row:2}
 .cw-workspace .cw-analysis-progress .cw-process {grid-template-columns:1fr 1fr;gap:20px}
 .wp-settings #wp-settings-body>form {grid-template-columns:minmax(0,1fr) 270px}
 .wp-settings .wp-setting-row {flex-direction:row;flex-wrap:wrap;align-items:center}
 .wp-settings .wp-setting-row select {margin-left:64px;max-width:calc(100% - 64px)}
 .wp-settings .wp-setting-row>.plane-select {margin-left:64px;max-width:calc(100% - 64px)}
 .wp-settings .wp-setting-copy {flex-basis:calc(100% - 64px)}
}
@media(max-width:700px) {
 .cw-workspace .cw-content {padding:20px 16px}
 .cw-workspace h2 {font-size:21px!important}
 .cw-workspace .cw-compose,.cw-workspace .cw-preparation {padding:22px}
 .cw-workspace .cw-compose-footer>span {flex-basis:auto}
 .cw-workspace .cw-article-side {grid-template-columns:1fr}
 .cw-workspace .cw-paper {padding:26px 20px}
 .cw-workspace .cw-paper h1,.cw-workspace .cw-paper #article-title {font-size:23px!important}
 .cw-workspace .cw-analysis-heading h2 {font-size:23px!important}
 .cw-workspace .cw-analysis-scene {grid-template-columns:1fr;padding-top:270px}
 .cw-workspace .cw-energy-stage {height:260px}
 .cw-workspace .cw-energy-stage .cw-analysis-core {width:165px;height:165px}
 .cw-workspace .cw-panel-plan {grid-column:auto;grid-row:auto}
 .cw-workspace .cw-analysis-progress .cw-process {grid-template-columns:1fr}
 .cw-workspace .cw-library-controls {gap:12px;flex-wrap:wrap}
 .cw-workspace .cw-library-controls>label {min-width:0;max-width:none;flex-basis:100%}
 .cw-workspace .cw-library-controls>div {flex-wrap:wrap;gap:2px}
 .cw-workspace .cw-library-controls>div button {font-size:13px;padding:7px 9px}
 .cw-workspace .cw-library-heading {display:none}
 .cw-workspace .cw-library-row {grid-template-columns:1fr auto;gap:10px;padding:16px 12px}
 .cw-workspace .cw-row-article {grid-column:1/-1;gap:12px}
 .cw-workspace .cw-library-row>.cw-tag {grid-column:1;grid-row:2}
 .cw-workspace .cw-library-row>.cw-row-source {grid-column:1;grid-row:3}
 .cw-workspace .cw-library-row>.cw-row-words {grid-column:2;grid-row:3;text-align:right}
 .cw-workspace .cw-library-row time {grid-column:2;grid-row:2}
 .cw-workspace .cw-row-open {display:none}
 .wp-settings #wp-settings-body>form {display:block}
 .wp-settings .wp-settings-main {padding:16px}
 .wp-settings .wp-properties {border:0;padding:0 16px 20px}
 .wp-settings .wp-guide-panel {margin-left:0}
}
@media(prefers-reduced-motion:reduce) {.cw-workspace .cw-topic-card,.cw-workspace .cw-library-row {transition:none}}

/* These scoped rules win over the legacy shell's compact control overrides. */
.plane-shell.plane-refresh :is(.cw-workspace,.wp-settings) .btn {height:auto;min-height:34px;padding:6px 13px!important;font-size:14px!important;line-height:20px;background:#fff;color:#182133;border:1px solid #dfe5ef;border-radius:7px}
.plane-shell.plane-refresh :is(.cw-workspace,.wp-settings) .btn.primary {background:#006399!important;border-color:#006399!important;color:#fff!important}
.plane-shell.plane-refresh :is(.cw-workspace,.wp-settings) .btn.primary:hover:not(:disabled) {background:#005580!important;border-color:#005580!important}
.plane-shell.plane-refresh .cw-workspace .cw-compose-footer>.btn {min-height:44px;height:44px;padding:10px 18px!important;font-size:15px!important}
.plane-shell.plane-refresh .cw-workspace .cw-section-head>.btn.primary,.plane-shell.plane-refresh .wp-settings .wp-settings-footer>.btn {min-height:40px;padding:9px 18px!important}
.plane-shell.plane-refresh .cw-workspace .cw-next>.btn {min-height:35px;font-size:13px!important}
.plane-shell.plane-refresh .cw-workspace .cw-view-tabs .btn {min-height:34px;border:0;padding:6px 16px!important;font-size:13px!important;background:transparent}
.plane-shell.plane-refresh .cw-workspace .cw-view-tabs .btn[aria-pressed=true],.plane-shell.plane-refresh .cw-workspace .cw-document:has(.is-generating) .cw-view-tabs [data-write=edit] {background:#f1edff;color:#7952df;opacity:1}
.plane-shell.plane-refresh .cw-workspace .cw-library-controls input {font-size:14px!important;height:22px!important;min-height:22px!important;padding:0!important}
.plane-shell.plane-refresh .cw-workspace .cw-paper .plane-document-body h2 {font-size:20px!important;line-height:1.6!important;font-weight:600!important;color:var(--cw-text)}
.plane-shell.plane-refresh .cw-workspace .cw-paper .plane-document-body h3 {font-size:18px!important;line-height:1.6!important;font-weight:600!important;color:var(--cw-text)}
.plane-shell.plane-refresh .wp-settings .pa-header h1 {font-size:20px!important;font-weight:600!important}
.plane-shell.plane-refresh:has(.cw-workspace,.wp-settings) .plane-global-header {background:linear-gradient(110deg,#f2f5f8,#f8faff)}
.plane-shell.plane-refresh:has(.cw-workspace,.wp-settings) .plane-nav-item.selected {background:#f2edff!important;color:#382467!important}
html.dark .plane-shell.plane-refresh :is(.cw-workspace,.wp-settings) .btn:not(.primary) {background:#242b35!important;color:#e5e9ef!important;border-color:#3b4655!important}
html.dark .plane-shell.plane-refresh .wp-settings .wp-setting-row .plane-select-trigger {background:#242b35;color:#e5e9ef;border-color:#3b4655}
html.dark .plane-shell.plane-refresh:has(.cw-workspace,.wp-settings) .plane-global-header {background:#17191c}
html.dark .plane-shell.plane-refresh:has(.cw-workspace,.wp-settings) .plane-nav-item.selected {background:#302a42!important;color:#d7c8f3!important}
@media(min-width:1100px) {
 .plane-shell.plane-refresh:has(.cw-workspace,.wp-settings) .plane-sidebar.sidebar {width:228px!important}
 .plane-shell.plane-refresh:not(.sidebar-collapsed):has(.cw-workspace,.wp-settings) .plane-main.main {left:286px!important;width:auto!important}
}
@media(max-width:700px) {
 .plane-shell.plane-refresh:has(.cw-workspace,.wp-settings) .plane-main.main {left:48px!important;right:6px!important;top:46px!important;width:auto!important;max-width:none!important;margin:0!important}
 .plane-shell.plane-refresh:has(.cw-workspace,.wp-settings) .plane-sidebar.sidebar {left:48px!important;width:232px!important;transform:translateX(calc(-100% - 60px))!important;pointer-events:none!important}
 .plane-shell.plane-refresh.menu-open:has(.cw-workspace,.wp-settings) .plane-sidebar.sidebar {transform:translateX(0)!important;pointer-events:auto!important}
 .plane-shell.plane-refresh :is(.cw-workspace,.wp-settings) .pa-header {flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;height:56px!important;min-height:56px!important}
 .plane-shell.plane-refresh :is(.cw-workspace,.wp-settings) .pa-header .btn {font-size:12px!important;padding:5px 9px!important}
 .plane-shell.plane-refresh .cw-workspace .cw-section-head {flex-wrap:wrap}
 .plane-shell.plane-refresh .cw-workspace .cw-section-head>div:first-child {flex:1 1 100%}
 .plane-shell.plane-refresh .wp-settings .wp-setting-row>.plane-select {width:auto;max-width:calc(100% - 64px)}
 .plane-shell.plane-refresh .wp-settings .wp-setting-row .plane-select-trigger {max-width:100%;font-size:12px!important;padding:8px 10px!important}
}
