/* Stage 2 editors follow the existing palette and leave controls reachable. */
.stage2-toolbar,.stage2-actions,.stage2-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.stage2-toolbar{margin-bottom:20px}.stage2-toolbar h2{margin:0 0 6px}.stage2-toolbar p{margin:0;color:var(--muted,#777)}.stage2-actions{justify-content:flex-start}.stage2-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:8px;border:1px solid #ddd;border-radius:9px;background:transparent;cursor:pointer;flex-shrink:0}.stage2-icon.active{background:#eee}.stage2-icon svg{width:18px;height:18px}.stage2-dialog{width:min(740px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:auto}.stage2-dialog .modal{width:100%;max-width:none;box-sizing:border-box}.stage2-form{padding:24px;display:flex;flex-direction:column;gap:16px}.stage2-form .modal-head{margin:0}.stage2-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:500}.stage2-form input:not([type=checkbox]),.stage2-form select,.stage2-form textarea,.stage2-filters input,.stage2-filters select,#specialSearchV191{width:100%;box-sizing:border-box;min-width:0;padding:11px;border:1px solid #ddd;border-radius:8px;background:var(--paper,#fff);color:inherit;font:inherit}.stage2-form textarea{resize:vertical;line-height:1.65}.stage2-form small{font-size:12px;font-weight:400;color:var(--muted,#777)}.stage2-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stage2-form details summary{cursor:pointer;font-size:13px;padding:8px 0}.stage2-form details[open]>.stage2-fields{margin-top:12px}.stage2-people{display:flex;gap:12px;flex-wrap:wrap}.stage2-people label,.stage2-form .stage2-checkbox{display:flex;flex-direction:row;align-items:center}.stage2-form fieldset{border:1px solid #ddd;border-radius:9px;padding:12px}.stage2-feedback{font-size:12px;line-height:1.6;min-height:18px;margin:0}.stage2-goal-total{display:flex;justify-content:space-between;align-items:center}.stage2-goal-total strong{font-size:30px}.stage2-form progress{width:100%;accent-color:#746548;height:8px}.stage2-stats{display:flex;gap:24px;flex-wrap:wrap;padding:16px 0 24px;font-size:13px}.stage2-stats b{margin-right:6px}.stage2-timeline article,.stage2-version{padding:16px 0;border-top:1px solid #e8e8e8}.stage2-timeline article>div{display:flex;justify-content:space-between;gap:16px}.stage2-timeline time{font-size:12px;color:#777}.stage2-timeline p{white-space:pre-wrap;margin:8px 0}.stage2-timeline .text-btn{display:block;font-size:12px;margin-top:8px}.stage2-filters{margin-bottom:18px;flex-wrap:nowrap}.stage2-filters input{flex:1}.stage2-filters select{width:160px}.stage2-notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.stage2-note-card{text-align:left;display:flex;flex-direction:column;justify-content:space-between;min-height:200px;border:1px solid #e0dfda;background:var(--paper,#fff);border-radius:12px;padding:20px;color:inherit;cursor:pointer;overflow:hidden}.stage2-note-card h3{font-size:17px;margin:10px 0}.stage2-note-card p{white-space:pre-wrap;font-size:13px;line-height:1.65;max-height:130px;overflow:hidden;margin:0 0 14px}.stage2-note-card small,.stage2-note-card time{font-size:11px;color:#777}.stage2-note-card footer{display:flex;gap:6px;flex-wrap:wrap;font-size:11px}.stage2-note-card time{width:100%;margin-top:8px}.stage2-note-editor textarea[name=body]{font-size:15px;min-height:270px}.stage2-drafts{padding:12px;margin-bottom:16px;border:1px solid #e5d5b4;border-radius:8px}.stage2-drafts>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.stage2-note-preview{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 inherit;background:#f5f4f0;color:#333;padding:14px;border-radius:8px;max-height:270px;overflow:auto}.stage2-date-list{display:flex;flex-direction:column;gap:0}.stage2-date-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e8e8e8;padding:14px 0}.stage2-date-list article>div{display:flex;flex-direction:column;gap:5px}.stage2-date-list time{font-size:12px;color:#777}.stage2-date-list b{font-size:14px}.stage2-form [hidden]{display:none!important}
@media(max-width:600px){.stage2-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.stage2-form{padding:18px;gap:14px}.stage2-fields{grid-template-columns:1fr}.stage2-toolbar{align-items:flex-start}.stage2-notes-grid{grid-template-columns:1fr}.stage2-timeline article>div{flex-wrap:wrap}.stage2-filters{flex-wrap:wrap}.stage2-filters select{width:100%}.stage2-goal-total strong{font-size:24px}.stage2-stats{gap:14px}.stage2-form .modal-actions{flex-wrap:wrap}}

.stage2-note-editor textarea[name=body]{height:250px;min-height:200px}
