/* Storyteller — V1.7 Editorial rewrite + V1.8 coach goals */

.editorial-rewrite {
    position: fixed;
    inset: 0;
    z-index: 1160;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14vh 20px 40px;
}

.editorial-rewrite[hidden] {
    display: none;
}

.editorial-rewrite-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.28);
}

.editorial-rewrite-panel {
    position: relative;
    width: min(520px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(17, 17, 17, 0.18);
    padding: 24px 22px 22px;
    animation: st-fade-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.editorial-rewrite-title {
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: -0.03em;
    color: #111;
}

.editorial-rewrite-hint {
    margin: 0 0 14px;
}

.editorial-rewrite-goals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    max-height: 160px;
    overflow: auto;
}

.editorial-rewrite-goal {
    appearance: none;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #222;
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-size: 13px;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.editorial-rewrite-goal:hover {
    border-color: #bbb;
    background: #f3f3f3;
}

.editorial-rewrite-goal.is-selected {
    border-color: #111;
    background: #111;
    color: #fff;
}

.editorial-rewrite-input {
    width: 100%;
    min-height: 84px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    line-height: 1.45;
    resize: vertical;
}

.editorial-rewrite-actions,
.editorial-rewrite-scope-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editorial-rewrite-actions .project-home-primary,
.editorial-rewrite-actions .project-resume-secondary,
.editorial-rewrite-scope-actions .project-home-primary,
.editorial-rewrite-scope-actions .project-resume-secondary {
    width: 100%;
    max-width: none;
    margin: 0;
}

.editorial-rewrite-scope {
    margin-bottom: 8px;
}

.editorial-rewrite-scope-label {
    margin: 0 0 14px;
    font-size: 16px;
    color: #333;
    letter-spacing: -0.02em;
}

.editorial-rewrite-status {
    margin: 12px 0 0;
    font-size: 14px;
    color: #888;
    text-align: center;
}

body.editorial-rewrite-open {
    overflow: hidden;
}

/* V1.8 coach observation / remember prompt */

.editorial-coach {
    position: fixed;
    inset: 0;
    z-index: 1170;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16vh 20px 40px;
}

.editorial-coach[hidden] {
    display: none;
}

.editorial-coach-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.22);
}

.editorial-coach-panel {
    position: relative;
    width: min(480px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(17, 17, 17, 0.16);
    padding: 22px 20px 18px;
    animation: st-fade-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.editorial-coach-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
}

.editorial-coach-message {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.45;
    color: #222;
    letter-spacing: -0.015em;
}

.editorial-coach-tradeoff {
    margin: 0 0 16px;
}

.editorial-coach-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.editorial-coach-actions .project-home-primary,
.editorial-coach-actions .project-resume-secondary {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.editorial-coach-open {
    overflow: hidden;
}

/* V2.1 Narrative Intelligence — quiet notes */

.narrative-intel {
    position: fixed;
    inset: 0;
    z-index: 1165;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18vh 20px 40px;
}

.narrative-intel[hidden] {
    display: none;
}

.narrative-intel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.18);
}

.narrative-intel-panel {
    position: relative;
    width: min(440px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(17, 17, 17, 0.14);
    padding: 22px 20px 18px;
    animation: st-fade-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.narrative-intel-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
}

.narrative-intel-message {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.45;
    color: #222;
    letter-spacing: -0.015em;
}

.narrative-intel-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.narrative-intel-actions .project-home-primary,
.narrative-intel-actions .project-resume-secondary {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.narrative-intel-open {
    overflow: hidden;
}
