/* Storyfellow — Developmental Edit workspace (full page) */

#screen-developmental-edit {
    padding: 0;
    align-items: stretch;
}

#screen-developmental-edit.is-active {
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: flex-start;
    align-items: stretch;
}

#screen-developmental-edit.is-active > .prologue-layout.developmental-edit-workspace {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#screen-developmental-edit > .brand-bar {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: var(--st-page-pad-y) var(--st-page-pad-x) 8px;
    background: var(--st-bg, #fff);
}

.developmental-edit-workspace {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 12px var(--st-page-pad-x, 1.25rem) 3rem;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    /*
     * Match Editor's Note desktop canvas (ProjectHomeScreen.is-editorial-home).
     * Override inherited .prologue-layout max-width: 620px; do not nest a prose column.
     */
    #screen-developmental-edit .prologue-layout.developmental-edit-workspace {
        width: 100%;
        max-width: 1040px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    #screen-developmental-edit .developmental-edit-reading-panel,
    #screen-developmental-edit .developmental-edit-recommendations,
    #screen-developmental-edit .developmental-edit-overview.is-overview-card,
    #screen-developmental-edit .developmental-edit-workspace-header,
    #screen-developmental-edit .developmental-edit-workspace-footer,
    #screen-developmental-edit .developmental-edit-new-reading,
    #screen-developmental-edit .developmental-edit-guided-completion,
    #screen-developmental-edit .developmental-edit-workspace-toolbar,
    #screen-developmental-edit .developmental-edit-workspace-resume {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    #screen-developmental-edit .developmental-edit-reading-body.editorial-prose {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.developmental-edit-workspace-header {
    margin-bottom: 1.5rem;
}

.developmental-edit-workspace-title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 600;
}

.developmental-edit-workspace-book-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.developmental-edit-workspace-scope {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-edit-workspace-loading:not([hidden]) {
    margin: 0;
}

.developmental-edit-workspace.prologue-layout.is-editorial-loading {
    animation: none;
    padding-top: 0;
}

.developmental-edit-workspace.is-editorial-loading {
    animation: none;
    flex: 1 1 auto;
    min-height: min(52vh, 420px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(24px, 6vh, 48px) var(--st-page-pad-x, 1.25rem) 3rem;
    text-align: center;
}

.developmental-edit-workspace.is-editorial-loading
    > :not(.developmental-edit-workspace-header) {
    display: none !important;
}

.developmental-edit-workspace.is-editorial-loading
    .developmental-edit-workspace-header {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    margin-bottom: 0;
}

.developmental-edit-workspace.is-editorial-loading
    .developmental-edit-workspace-header
    > :not(.developmental-edit-workspace-loading) {
    display: none;
}

.developmental-edit-workspace.is-editorial-loading
    .developmental-edit-workspace-loading {
    display: block;
}

.developmental-edit-finding-details {
    margin: 0.35rem 0 0;
    text-align: left;
    font-size: 0.92rem;
}

.developmental-edit-finding-details summary {
    cursor: pointer;
    color: var(--st-color-muted, #5c5c5c);
}

/* Revise Selected — black primary when idle; grey only while submitting */
.developmental-edit-work-selected.project-home-primary:disabled:not(
        .is-primary-action-busy
    ) {
    opacity: 1;
    background: var(--st-ink);
    color: #fff;
    cursor: default;
    pointer-events: none;
}

.developmental-edit-work-selected.project-home-primary.is-primary-action-busy,
.developmental-edit-work-selected.project-home-primary:disabled.is-primary-action-busy {
    opacity: 1;
    background: var(--st-muted);
    color: #fff;
    cursor: wait;
    pointer-events: none;
}

.developmental-edit-work-selected[hidden] {
    display: none !important;
}

.developmental-edit-workspace-lead {
    margin: 0;
    color: var(--st-color-muted, #5c5c5c);
    line-height: 1.45;
}

.developmental-edit-prepare {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.15rem 1.2rem;
    border: 1px solid var(--st-border-strong, #e4d7c8);
    background: var(--st-bg-selected, #f6f1ea);
}

.developmental-edit-prepare-copy {
    margin: 0 0 0.9rem;
    line-height: 1.5;
}

.developmental-edit-workspace.is-workspace-complete .developmental-edit-prepare,
.developmental-edit-workspace.is-workspace-complete .developmental-edit-workspace-toolbar,
.developmental-edit-workspace.is-workspace-preparing .developmental-edit-workspace-toolbar,
.developmental-edit-workspace.is-workspace-preparing .developmental-shape-request-fresh,
.developmental-edit-workspace.is-workspace-preparing .developmental-edit-legacy-agenda {
    display: none !important;
}

.developmental-edit-secondary {
    margin-top: 2rem;
}

.developmental-edit-secondary summary {
    cursor: pointer;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-edit-dashboard-status {
    margin: 0.15rem 0 0.75rem;
    color: var(--st-ink, #1c1a17);
    line-height: 1.45;
}

.developmental-edit-overview {
    margin: 0.5rem 0 1.75rem;
}

#screen-developmental-edit .developmental-edit-overview.is-overview-card {
    position: relative;
    border: 1px solid var(--st-border-strong, #e4d7c8);
    border-right: 4px solid var(--st-brand-gold, #a67c52);
    border-radius: 8px;
    padding: 1rem 1.1rem 1.15rem 1.35rem;
    background: var(--st-bg, #fff);
    box-sizing: border-box;
}

.developmental-edit-overview-details {
    margin: 0;
}

.developmental-edit-overview-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    cursor: pointer;
    list-style: none;
}

.developmental-edit-overview-summary::-webkit-details-marker {
    display: none;
}

.developmental-edit-overview-summary::after {
    content: "Expand";
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--revision-accent, #6b4f2a);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.developmental-edit-overview-details[open] .developmental-edit-overview-summary::after {
    content: "Collapse";
}

.developmental-edit-overview-summary-title {
    margin: 0;
    font-size: 1.05rem;
    text-align: left;
}

.developmental-edit-overview-summary-meta {
    margin: 0;
    max-width: 42rem;
    text-align: left;
    line-height: 1.45;
}

.developmental-edit-overview-details[open] .developmental-edit-overview-body {
    margin-top: 0.85rem;
}

.developmental-edit-overview-preview,
.developmental-edit-overview-rest {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: none;
    width: 100%;
}

.developmental-edit-overview-preview p,
.developmental-edit-overview-rest p {
    margin: 0 0 1rem;
}

.developmental-edit-overview-preview p:last-child,
.developmental-edit-overview-rest p:last-child {
    margin-bottom: 0;
}

.developmental-edit-overview-toggle {
    margin: 0.85rem 0 0;
    font-size: 0.95rem;
}

.developmental-edit-findings-panel,
.developmental-edit-revisions-panel {
    margin: 1.75rem 0 0;
    padding: 0;
}

.developmental-edit-findings-lead,
.developmental-edit-revisions-lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-edit-chapter-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: var(--st-ink, #111);
}

.developmental-edit-chapter-picker select {
    width: 100%;
    max-width: 28rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--st-border-strong, #e4d7c8);
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

#screen-developmental-edit .your-editor-card-detail {
    margin: 0 0 0.5rem;
    line-height: 1.45;
    font-size: 0.95rem;
}

#screen-developmental-edit .your-editor-card-detail .your-editor-card-label {
    display: block;
    margin-bottom: 0.25rem;
}

.developmental-edit-overview-body {
    width: 100%;
}

.developmental-edit-create-whole {
    margin-top: 0.75rem;
}

.developmental-shape-actions,
.developmental-edit-finding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.developmental-shape-trajectory {
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--st-border-strong, #ddd);
    background: var(--st-bg-selected, #f6f1ea);
}

.developmental-shape-trajectory h4 {
    margin: 0 0 0.35rem;
}

.developmental-talk-return {
    margin-top: 0.85rem;
}

.developmental-edit-scope-routing {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: var(--st-bg-selected, #f6f1ea);
    border: 1px solid var(--st-border-strong, #e4d7c8);
    color: var(--st-ink, #1c1a17);
    line-height: 1.45;
    font-size: 0.92rem;
}

.developmental-edit-assessment-freshness {
    margin: -0.5rem 0 1rem;
    max-width: 46rem;
    line-height: 1.45;
}

.developmental-edit-assessment-history,
.developmental-edit-next-actions {
    margin-bottom: 1.25rem;
}

.developmental-edit-chapter-back {
    margin-bottom: 0.75rem;
}

.developmental-edit-chapter-entry {
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--st-border-strong, #e4d7c8);
    border-radius: 10px;
    background: var(--st-bg-editorial, #f9f6f1);
}

.developmental-edit-chapter-entry-select-row {
    display: flex;
    justify-content: flex-start;
    margin: 0.5rem 0 0.85rem;
}

.developmental-edit-chapter-entry-body {
    text-align: center;
}

.developmental-edit-chapter-entry-lead {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 0.85rem;
}

.developmental-edit-chapter-entry-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 0.35rem;
}

.developmental-edit-chapter-entry-hint {
    text-align: center;
}

.developmental-edit-chapter-entry .developmental-edit-entry-chapter-select {
    min-width: 11rem;
    font-size: 0.95rem;
}

.developmental-edit-chapter-saved-wrap {
    margin-top: 0.85rem;
    text-align: center;
}

.developmental-edit-chapter-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.developmental-edit-chapter-history-btn {
    font-size: 0.92rem;
    padding: 0.15rem 0.35rem;
}

.developmental-edit-chapter-history-multi {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
}

.developmental-edit-chapter-history-select {
    min-width: 16rem;
    max-width: 100%;
}

.developmental-edit-chapter-heading {
    margin: 0.25rem 0 0;
    font-weight: 600;
}

.developmental-edit-assessment-history-wrap {
    margin-top: 1.5rem;
}

.developmental-edit-assessment-history-wrap summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.developmental-edit-workspace.is-chapter-assessment .developmental-chapter-scene-shape {
    margin-top: 1rem;
}

.developmental-edit-chapter-strengths-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.developmental-edit-history-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.developmental-edit-history-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--st-border, #ddd);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.developmental-edit-history-item:hover {
    background: var(--st-bg-hover, #f6f6f6);
}

.developmental-edit-history-item:focus-visible {
    outline: 2px solid var(--st-ink, #111111);
    outline-offset: 2px;
}

.developmental-edit-history-item.is-current {
    border-color: var(--st-ink, #111111);
    background: var(--st-bg-editorial, #f9f6f1);
}

.developmental-edit-history-item.is-current:hover,
.developmental-edit-history-item.is-current:focus-visible {
    background: var(--st-bg-editorial, #f9f6f1);
}

.developmental-edit-history-meta {
    font-size: 0.85rem;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-edit-next-actions-list {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
    line-height: 1.45;
}

.developmental-book-shape {
    margin: 1.5rem 0 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid #ececec;
}

.developmental-shape-legacy-notice {
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--st-border-strong, #dddddd);
    border-radius: 8px;
    background: var(--st-bg-selected, #f3f3f3);
}

.developmental-shape-legacy-notice-copy {
    margin: 0;
    line-height: 1.45;
    font-size: 0.92rem;
}

.developmental-shape-unavailable-notice {
    margin: 0.75rem 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--st-border-strong, #dddddd);
    border-radius: 8px;
    background: var(--st-bg, #fff);
}

.developmental-shape-unavailable-notice-copy {
    margin: 0;
    line-height: 1.45;
    font-size: 0.92rem;
}

.developmental-shape-detail-meta {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
}

.developmental-book-shape-modes {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
    flex-wrap: wrap;
}

.developmental-book-shape-mode {
    font: inherit;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--st-border, #ddd);
    background: #fff;
    cursor: pointer;
}

.developmental-book-shape-mode.is-active {
    border-color: var(--st-ink, #111111);
    background: var(--st-bg-selected, #f3f3f3);
}

.developmental-book-shape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.developmental-book-shape-cell {
    padding: 0.65rem 0.75rem;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
}

.developmental-book-shape-cell.is-empty {
    opacity: 0.85;
}

.developmental-book-shape-dim {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-book-shape-band {
    display: inline-block;
    margin-top: 0.2rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.developmental-book-shape-reason {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: #333;
}

.developmental-edit-finding.is-shape-highlight {
    outline: 2px solid var(--st-brand-gold, #a67c52);
    outline-offset: 4px;
}

.developmental-book-shape-timeline {
    margin: 0.75rem 0 1.25rem;
}

.developmental-book-shape-timeline-lead {
    margin: 0 0 0.65rem;
}

.developmental-book-shape-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    align-items: stretch;
}

.developmental-book-shape-marker {
    flex: 0 0 min(220px, 42vw);
    position: relative;
    padding: 0.65rem 0.75rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    margin-right: 1.25rem;
}

.developmental-book-shape-connector {
    position: absolute;
    right: -1.1rem;
    top: 50%;
    width: 1rem;
    height: 2px;
    background: #c5c5c5;
    transform: translateY(-50%);
}

.developmental-book-shape-marker-ch {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
}

.developmental-book-shape-marker-dim {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--st-color-muted, #5c5c5c);
    margin-top: 0.15rem;
}

.developmental-book-shape-marker-band {
    display: inline-block;
    margin-top: 0.2rem;
    font-weight: 600;
}

.developmental-book-shape-marker-reason {
    margin: 0.35rem 0 0.5rem;
    font-size: 0.85rem;
    line-height: 1.35;
}

.developmental-book-shape-marker-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.developmental-book-shape-interactive {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: none;
}

.developmental-shape-dimension-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0 1rem;
}

.developmental-shape-dimension-tab {
    font: inherit;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--st-border, #ddd);
    background: #fff;
    cursor: pointer;
}

.developmental-shape-dimension-tab.is-active {
    border-color: var(--st-ink, #111111);
    background: var(--st-bg-selected, #f3f3f3);
    font-weight: 600;
}

.developmental-shape-graph-panel {
    border: 1px solid var(--st-border-strong, #e4d7c8);
    border-radius: 10px;
    padding: 0.75rem 0.85rem 0.9rem;
    background: linear-gradient(180deg, #f9f6f1 0%, #fff 62%);
}

.developmental-shape-graph-frame {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 0.65rem;
}

.developmental-shape-graph-svg {
    width: 100%;
    min-width: 280px;
    max-width: 100%;
    height: auto;
    display: block;
}

.developmental-shape-axis {
    stroke: #c8c8c8;
    stroke-width: 1;
}

.developmental-shape-curve {
    stroke: var(--st-ink, #111111);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.88;
}

.developmental-shape-node {
    fill: var(--st-bg, #fff);
    stroke: var(--st-border-strong, #dddddd);
    stroke-width: 2;
    cursor: pointer;
}

.developmental-shape-node.is-evidenced {
    fill: var(--st-bg-selected, #f3f3f3);
    stroke: var(--st-ink, #111111);
}

.developmental-shape-node.is-selected {
    fill: var(--st-brand-gold, #a67c52);
    stroke: var(--st-ink, #111111);
    stroke-width: 2.5;
}

.developmental-shape-node.is-gap {
    stroke-dasharray: 4 3;
    opacity: 0.65;
}

.developmental-shape-node.is-evidenced-text {
    fill: var(--st-bg, #fff);
    stroke: var(--st-muted, #888888);
    stroke-dasharray: 2 2;
}

.developmental-shape-scrub-line {
    stroke: var(--st-muted, #888888);
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
    opacity: 0.85;
}

.developmental-shape-y-label {
    font-size: 9px;
    fill: #6a7380;
}

.developmental-shape-scrubber-wrap {
    display: block;
    font-size: 0.88rem;
    margin: 0.5rem 0 1rem;
    color: #333;
}

.developmental-shape-scrubber {
    width: 100%;
    margin: 0.35rem 0 0.25rem;
    accent-color: var(--st-ink, #111111);
}

.developmental-shape-scrubber-current {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--st-ink, #111);
}

.developmental-shape-scrubber-chapters {
    display: block;
    font-size: 0.75rem;
    color: var(--st-color-muted, #5c5c5c);
    line-height: 1.35;
    word-break: break-word;
}

.developmental-shape-detail-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.developmental-shape-detail-band {
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
}

.developmental-shape-band-label {
    font-weight: 600;
}

.developmental-shape-detail-interpretation {
    margin: 0 0 0.65rem;
    line-height: 1.45;
    font-size: 0.92rem;
}

.developmental-shape-evidence-list {
    list-style: none;
    margin: 0.5rem 0 0.75rem;
    padding: 0;
}

.developmental-shape-evidence-item {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.35rem;
    border: 1px solid #e0e6ee;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    line-height: 1.4;
    font-size: 0.88rem;
}

.developmental-shape-evidence-item.is-active {
    border-color: var(--st-ink, #111111);
    background: var(--st-bg-selected, #f3f3f3);
}

.developmental-shape-detail-interpretation,
.developmental-shape-evidence-item {
    font-family: var(--st-font-serif, Georgia, serif);
}

.developmental-shape-insufficient {
    padding: 0.85rem 1rem;
    border: 1px solid #e8dcc8;
    border-radius: 10px;
    background: #fffaf3;
}

.developmental-shape-insufficient-copy {
    margin: 0 0 0.5rem;
    line-height: 1.45;
}

.developmental-shape-alt-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (max-width: 640px) {
    .developmental-shape-graph-panel {
        padding: 0.75rem;
    }

    .developmental-shape-dimension-tab {
        font-size: 0.85rem;
        padding: 0.4rem 0.65rem;
    }
}

.developmental-edit-finding-actions {
    margin-top: 0.5rem;
}

.developmental-edit-workspace-toolbar {
    display: none !important;
}

.developmental-edit-recommendations.is-awaiting-first-reading > :not(.developmental-edit-workspace-footer) {
    display: none !important;
}

.developmental-edit-workspace-stale {
    padding: 16px 18px;
    border-radius: 0;
    background: #f6f6f6;
    border: 1px solid #e4e4e4;
    color: #111;
    margin-bottom: 1.25rem;
}

.developmental-edit-workspace-stale-copy {
    margin: 0;
    line-height: 1.5;
    color: #111;
}

.developmental-edit-workspace-stale-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
}

.developmental-edit-workspace-resume {
    padding: 0.85rem 1rem 1rem;
    border-radius: 8px;
    background: var(--st-surface-2, #f4f4f4);
    margin-bottom: 1.25rem;
}

.developmental-edit-resume-text {
    margin: 0 0 0.9rem;
    line-height: 1.45;
}

.developmental-edit-resume-guided {
    margin-top: 0.15rem;
}

.developmental-edit-resume-guided:disabled {
    opacity: 0.72;
    cursor: progress;
}

.developmental-edit-reading-panel {
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid #ececec;
}

.developmental-edit-reading-meta {
    font-size: 0.9rem;
    color: var(--st-color-muted, #5c5c5c);
    margin: 0 0 0.75rem;
}

.developmental-edit-reading-body.editorial-prose {
    line-height: 1.55;
}

.developmental-edit-new-reading {
    border: 1px solid var(--st-border, #ddd);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    background: var(--st-surface-1, #fff);
}

.developmental-edit-new-reading[hidden] {
    display: none !important;
}

.developmental-edit-new-reading.is-open {
    margin-top: 1.25rem;
}

.developmental-edit-scope-inline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.developmental-edit-scope-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--st-border, #ddd);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font: inherit;
}

.developmental-edit-scope-option.is-primary {
    border-color: var(--st-ink, #111111);
    box-shadow: 0 0 0 1px var(--st-border-strong, #dddddd);
}

.developmental-edit-scope-option strong {
    display: block;
    font-size: 1.05rem;
}

.developmental-edit-scope-option span.scope-detail {
    display: block;
    font-size: 0.9rem;
    color: var(--st-color-muted, #5c5c5c);
    margin-top: 0.2rem;
}

.developmental-edit-chapter-picker {
    margin: 0.5rem 0 0.75rem;
}

.developmental-edit-chapter-picker select {
    max-width: 100%;
    width: 100%;
}

.developmental-edit-recommendations {
    margin-top: 0.25rem;
    padding: 4px 0 8px;
}

.developmental-edit-recommendations-heading {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.developmental-edit-recommendations-lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-edit-selection-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.developmental-edit-selection-toolbar[hidden] {
    display: none !important;
}

.developmental-edit-finding-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

#screen-developmental-edit
    .developmental-edit-observation-list
    .developmental-edit-finding.your-editor-card {
    border-right: 4px solid var(--st-brand-gold, #a67c52);
    margin: 0;
}

/* Recommended Revisions — flat rows on workspace background (no card chrome) */
#screen-developmental-edit .developmental-edit-revision-list.developmental-edit-finding-list {
    gap: 0;
}

#screen-developmental-edit
    .developmental-edit-revision-list
    .developmental-edit-finding.your-editor-card,
#screen-developmental-edit .developmental-edit-revision-list .developmental-edit-finding {
    border: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 1.15rem 0;
    background: transparent;
    border-bottom: 1px solid var(--st-border, #e8e8e8);
}

#screen-developmental-edit
    .developmental-edit-revision-list
    .developmental-edit-finding.is-selected,
#screen-developmental-edit
    .developmental-edit-revision-list
    .developmental-edit-finding.your-editor-card.is-selected {
    border: none;
    border-bottom: 1px solid var(--st-border, #e8e8e8);
    background: transparent;
}

#screen-developmental-edit
    .developmental-edit-revision-list
    .developmental-edit-finding.is-compact {
    padding: 1.1rem 0;
    margin-bottom: 0;
}

#screen-developmental-edit
    .developmental-edit-revision-list
    .developmental-edit-chapter-heading {
    margin: 1.35rem 0 0.25rem;
    padding: 0;
}

#screen-developmental-edit
    .developmental-edit-revision-list
    .developmental-edit-chapter-heading:first-child {
    margin-top: 0;
}

@media (max-width: 640px) {
    #screen-developmental-edit
        .developmental-edit-revision-list
        .developmental-edit-finding {
        padding: 1rem 0;
    }

    #screen-developmental-edit
        .developmental-edit-revision-list
        .developmental-edit-circle-toggle {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.developmental-edit-revision-actions {
    margin: 1.1rem 0 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--st-border, #e8e8e8);
}

.developmental-edit-revision-actions .developmental-edit-selection-toolbar {
    margin-bottom: 0.45rem;
}

.developmental-edit-revision-actions .developmental-edit-work-selected {
    display: block;
    width: 100%;
    max-width: 22rem;
    margin-top: 0.35rem;
}

.developmental-edit-evidence-register.developmental-edit-editorial-panel {
    margin: 0 0 1.25rem;
    padding: 1rem 1.05rem 1.1rem;
    background: #fff;
    border: 1px solid var(--st-border-strong, #e4d7c8);
    border-radius: 10px;
    box-shadow: inset -3px 0 0 var(--revision-accent, #6b4f2a);
    box-sizing: border-box;
}

.developmental-edit-evidence-details {
    margin: 0;
}

.developmental-edit-evidence-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    cursor: pointer;
    list-style: none;
}

.developmental-edit-evidence-summary::-webkit-details-marker {
    display: none;
}

.developmental-edit-evidence-summary::after {
    content: "Expand";
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--revision-accent, #6b4f2a);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.developmental-edit-evidence-details[open] .developmental-edit-evidence-summary::after {
    content: "Collapse";
}

.developmental-edit-evidence-summary-title {
    margin: 0;
    font-size: 1.05rem;
}

.developmental-edit-evidence-summary-meta {
    margin: 0;
    max-width: 42rem;
    text-align: left;
    line-height: 1.45;
}

.developmental-edit-evidence-details[open] .developmental-edit-evidence-lead,
.developmental-edit-evidence-details[open] .developmental-edit-evidence-groups {
    margin-top: 0.85rem;
}

.developmental-edit-evidence-lead {
    margin: 0 0 0.85rem;
    max-width: 42rem;
}

.developmental-edit-inline-proposal {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(107, 79, 42, 0.12);
}

.developmental-edit-inline-proposal-warning {
    margin: 0 0 0.65rem;
    color: #8a3b12;
    font-size: 0.92rem;
}

.developmental-edit-inline-proposal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.developmental-edit-inline-original,
.developmental-edit-inline-proposed {
    white-space: pre-wrap;
}

.developmental-evidence-group + .developmental-evidence-group {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(107, 79, 42, 0.1);
}

.developmental-evidence-group-title {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--revision-accent, #6b4f2a);
}

.developmental-evidence-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.developmental-evidence-row + .developmental-evidence-row {
    margin-top: 0.65rem;
}

.developmental-evidence-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--st-ink, #1a1a1a);
}

.developmental-evidence-meta {
    margin: 0.2rem 0 0;
}

.developmental-evidence-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.developmental-evidence-badge-plan {
    background: rgba(107, 79, 42, 0.1);
    color: var(--revision-accent, #6b4f2a);
}

.developmental-shape-connections-shell {
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(107, 79, 42, 0.14);
}

.developmental-shape-connections-title {
    margin: 0 0 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--revision-accent, #6b4f2a);
}

.developmental-shape-connections-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.developmental-shape-connection-row + .developmental-shape-connection-row {
    margin-top: 0.55rem;
}

.developmental-shape-connection-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.48;
    color: var(--st-ink, #1a1a1a);
}

.developmental-shape-connection-meta {
    margin: 0.15rem 0 0;
}

.developmental-shape-chapter-editorial {
    margin: 1rem 0 0.25rem;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--st-border, #e8e8e8);
}

.developmental-shape-editorial-title {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.developmental-shape-editorial-group {
    margin: 0 0 0.75rem;
}

.developmental-shape-editorial-group h5 {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-shape-editorial-group.is-preserve h5 {
    color: var(--st-brand-gold, #a67c52);
}

.developmental-shape-editorial-group.is-address h5 {
    color: var(--st-ink, #1c1a17);
}

.developmental-shape-editorial-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.developmental-shape-editorial-row {
    margin: 0 0 0.65rem;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.developmental-shape-editorial-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.developmental-shape-editorial-heading {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.developmental-shape-editorial-rationale {
    margin: 0 0 0.35rem;
    font-size: 0.88rem;
    line-height: 1.4;
}

.developmental-edit-history-details {
    margin: 2rem 0 0;
    padding: 0;
    border: none;
}

.developmental-edit-history-details summary {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--st-color-muted, #5c5c5c);
    margin-bottom: 0.5rem;
}

.developmental-edit-history-details[open] summary {
    margin-bottom: 0.75rem;
}

.developmental-edit-finding.is-compact {
    padding: 0.65rem 0.85rem 0.7rem 0.85rem;
    margin-bottom: 0.5rem;
}

.developmental-edit-finding.is-compact .developmental-edit-finding-heading {
    font-size: 0.98rem;
    margin: 0 0 0.2rem;
}

.developmental-edit-card-teaser {
    margin: 0.15rem 0 0.35rem;
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--st-ink, #111);
}

.developmental-edit-card-scope {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-edit-card-expand {
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    font-size: 0.88rem;
    color: var(--st-brand-gold, #a67c52);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.developmental-edit-card-expanded {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--st-border, #ececec);
}

.developmental-edit-card-expanded[hidden] {
    display: none !important;
}

.developmental-edit-finding {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--st-border, #ddd);
    border-radius: 12px;
    background: #fff;
}

.developmental-edit-finding.is-selected {
    border-color: var(--st-ink, #111);
    background: var(--st-surface-subtle, #f5f5f5);
}

.developmental-edit-finding.is-author-retained {
    grid-template-columns: 1fr;
    padding-left: 1.15rem;
}

.developmental-edit-circle-toggle {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    border: 2px solid var(--st-ink, #111);
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.developmental-edit-circle-toggle:focus-visible {
    outline: 2px solid var(--st-ink, #111);
    outline-offset: 2px;
}

.developmental-edit-circle-toggle.is-selected {
    background: var(--st-ink, #111);
    color: #fff;
    border-color: var(--st-ink, #111);
}

.developmental-edit-circle-toggle .check-icon {
    font-size: 1.15rem;
    line-height: 1;
    opacity: 0;
}

.developmental-edit-circle-toggle.is-selected .check-icon {
    opacity: 1;
}

.developmental-edit-selection-count {
    margin: 0;
    font-size: 0.85rem;
    color: #5c5c5c;
}

.developmental-edit-chapter-heading {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.developmental-edit-finding-heading {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.developmental-edit-finding-chapters {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-edit-finding-summary {
    margin: 0;
    line-height: 1.45;
    font-size: 0.95rem;
}

.developmental-edit-finding-progress {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-edit-finding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.developmental-edit-request-panel {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--st-border, #ddd);
    background: var(--st-surface-subtle, #f8f8f8);
}

.developmental-edit-request-panel[hidden] {
    display: none !important;
}

.developmental-edit-request-lead {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-edit-request-scope {
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
}

.developmental-edit-request-scope legend {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.developmental-edit-request-scope-option {
    display: block;
    margin: 0.35rem 0;
    font-size: 0.92rem;
}

.developmental-edit-request-field {
    display: block;
    margin: 0.65rem 0;
    font-size: 0.92rem;
}

.developmental-edit-request-field textarea,
.developmental-edit-request-field select {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    max-width: 100%;
}

.developmental-edit-request-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.developmental-edit-request-status {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-edit-workspace-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--st-border, #ddd);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.developmental-edit-edit-hint {
    margin: 0;
}

.developmental-edit-guided-completion {
    margin: 1.5rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--st-border, #ddd);
    background: var(--st-surface-subtle, #f8f8f8);
}

.developmental-edit-guided-completion-note {
    margin: 0.75rem 0 0;
}

.developmental-edit-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--st-color-muted, #5c5c5c);
}

.developmental-revision-trial-identity {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px dashed var(--st-border, #ccc);
    border-radius: 8px;
}

.developmental-revision-trial-identity legend {
    font-weight: 600;
    padding: 0 0.25rem;
}

.developmental-revision-trial-identity .st-tip {
    margin: 0 0 0.75rem;
}

.developmental-revision-trial-axis {
    margin-bottom: 0.65rem;
}

.developmental-revision-trial-axis label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.developmental-revision-trial-axis select {
    width: 100%;
    max-width: 20rem;
}

.developmental-edit-book-plan {
    margin: 0.75rem 0 1.5rem;
}

.developmental-edit-book-plan-details summary {
    cursor: pointer;
}

.developmental-edit-book-plan-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.developmental-edit-book-plan-row {
    border: 1px solid var(--st-border, #e4d7c8);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: var(--st-bg, #fff);
}

.developmental-edit-book-plan-title {
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.developmental-edit-book-plan-meta,
.developmental-edit-book-plan-preview {
    margin: 0.15rem 0 0.5rem;
}

.developmental-edit-book-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.developmental-edit-book-plan-on-card {
    margin: 0.35rem 0 0;
}
