/* Topic composer: a dedicated writing workspace, using the station palette. */
.cm-compose-page{max-width:1280px;margin:0 auto}
.cm-compose-page>.cm-back{margin:12px 0 18px}
.cm-compose-heading{padding:10px 0 34px;border-bottom:1px solid var(--cm-line)}
.cm-compose-heading h1{margin:10px 0 12px}
.cm-compose-heading p{font-size:15px}
.cm-topic-composer{margin-top:32px}
.cm-compose-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:clamp(32px,5vw,68px);align-items:start}
.cm-compose-workspace{min-width:0}
.cm-topic-composer .cm-editor-title{margin-bottom:30px}
.cm-topic-composer .cm-editor-title h2{font-size:16px;letter-spacing:-.015em;margin-bottom:4px}
.cm-topic-composer .cm-avatar{width:38px;height:38px}
.cm-draft-indicator{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:10px;color:var(--cm-muted);white-space:nowrap}
.cm-draft-indicator svg{width:13px;height:13px;color:var(--accent-soft)}
.cm-topic-title-field{margin-bottom:26px}
.cm-topic-title-field>label{display:block;font-size:12px;font-weight:550;color:#c6d0d9;margin-bottom:12px}
.cm-topic-title-field>input{width:100%;border:0;border-bottom:1px solid #4b566350;background:transparent;padding:0 0 16px;font-size:clamp(19px,1.65vw,25px);font-weight:500;line-height:1.45;letter-spacing:-.025em;border-radius:0;outline:none!important;transition:border-color .2s}
.cm-topic-title-field>input:focus{border-color:var(--accent-soft)}
.cm-topic-title-field>input::placeholder{color:#70808f;font-weight:400}
.cm-title-help{display:flex;justify-content:space-between;gap:15px;margin-top:10px;font-size:10px;color:#81919f;line-height:1.5}
.cm-title-help>span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.cm-editor-modes{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--cm-line);padding:0 13px;background:rgba(255,255,255,.012)}
.cm-editor-tabs{display:flex;align-items:stretch;gap:21px}
.cm-editor-tabs .cm-button{background:none;border:0;border-radius:0;padding:16px 1px 14px;min-height:46px;font-size:11px;color:#8b9ba8;position:relative}
.cm-editor-tabs .cm-button.is-selected{color:#eef1f2;box-shadow:inset 0 -2px var(--accent-soft)}
.cm-editor-tabs .cm-button svg{width:15px;height:15px}
.cm-focus-button{border:0!important;padding:7px!important;min-height:30px!important;color:#8b9ba8!important}
.cm-focus-button svg{width:16px;height:16px}
.cm-editor-toolbar{padding:8px 10px;gap:8px;row-gap:5px;background:#ffffff01}
.cm-tool-group{display:flex;align-items:center;gap:1px;padding-right:8px;border-right:1px solid var(--cm-line)}
.cm-tool-group:last-child{border:0;padding-right:0}
.cm-tool-group .cm-button{width:30px;height:31px;min-height:31px;padding:6px;border-radius:3px;font-size:14px;font-family:inherit}
.cm-tool-group .cm-button:hover{background:#ffffff0a;color:#e4eaf0}
.cm-tool-group .cm-button:focus-visible{outline:1px solid var(--accent-soft);outline-offset:2px}
.cm-tool-group svg{width:17px;height:17px}
.cm-history-tools{margin-left:auto}
.cm-heading-tool{font-size:15px;font-weight:600;position:relative}
.cm-heading-tool small{font-size:8px;position:relative;top:2px;margin-left:1px}
.cm-editor-surface{background:linear-gradient(135deg,#101720,#0c111b);border-color:rgba(206,217,232,.18);border-radius:8px}
.cm-editor textarea{padding:22px 24px;min-height:210px;font-size:15px;line-height:1.9;resize:vertical}
.cm-topic-composer textarea{min-height:300px}
.cm-editor-status{display:flex;align-items:center;gap:16px;padding:11px 18px;border-top:1px solid #ffffff07;font-size:9px;color:#7f909e;line-height:1.4;font-variant-numeric:tabular-nums}
.cm-editor-markdown{margin-left:auto}
.cm-editor-bottom{padding-top:20px;align-items:center}
.cm-editor-bottom>.cm-actions{flex:none}
.cm-keyboard-hint{display:block;margin-top:5px;color:#718391;font-size:9px}
.cm-keyboard-hint kbd{font:inherit;border:1px solid #ffffff15;background:#ffffff03;border-radius:3px;padding:0 3px;color:#96a5b1}
.cm-compose-aside{min-width:0;padding-top:1px}
.cm-category-picker{padding:0;margin:0;border:0;min-width:0}
.cm-category-picker legend{padding:0;margin:0 0 9px;font-size:15px;font-weight:600;letter-spacing:-.02em;color:#e5eaee}
.cm-category-picker>p{font-size:11px;margin:0 0 19px;line-height:1.6}
.cm-category-choice{position:relative;display:flex;align-items:flex-start;gap:12px;padding:13px 12px;margin:0 0 7px;border:1px solid transparent;border-radius:6px;cursor:pointer;transition:background .15s,border-color .15s}
.cm-category-choice:hover{background:#ffffff03}
.cm-category-choice.is-selected{background:rgba(var(--accent-rgb),.055);border-color:rgba(var(--accent-rgb),.32)}
.cm-category-choice:focus-within{outline:2px solid var(--accent-soft);outline-offset:2px}
.cm-category-choice>input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.cm-category-choice>svg{width:18px;height:18px;margin-top:1px;color:#8395a5}
.cm-category-choice.is-selected>svg{color:var(--accent-soft)}
.cm-choice-copy{display:block;flex:1;min-width:0}
.cm-choice-copy strong{display:block;color:#c0ccd5;font-size:12px;font-weight:550;line-height:1.45;margin-bottom:5px}
.cm-choice-copy small{display:block;color:#7f919f;font-size:10px;line-height:1.6}
.cm-category-choice.is-selected strong{color:#ecedef}
.cm-choice-check{display:grid;place-items:center;border:1px solid #71829340;border-radius:50%;width:15px;height:15px;flex:none;margin-top:2px}
.cm-choice-check svg{width:11px;height:11px;stroke-width:2}
.is-selected>.cm-choice-check{background:var(--accent-soft);border-color:var(--accent-soft);color:#090d16}
.cm-compose-hint{margin-top:25px;padding:24px 0 0;border-top:1px solid var(--cm-line);position:relative}
.cm-compose-hint>svg{width:17px;height:17px;position:absolute;left:0;top:24px;color:var(--accent-soft)}
.cm-compose-hint h3{font-size:13px;margin:0 0 10px;padding-left:27px;letter-spacing:0;color:#c8d2da}
.cm-compose-hint p{font-size:11px;line-height:1.8;color:#92a2af;margin:0;padding-left:27px}
.cm-compose-privacy{font-size:10px!important;line-height:1.75!important;color:#738694;margin:25px 0 0;display:flex;align-items:flex-start;gap:10px}
.cm-compose-privacy svg{width:14px;height:14px;margin-top:2px}
.cm-composer-preview{min-height:260px;padding:22px 25px 28px}
.cm-preview-notice{display:flex;align-items:center;gap:8px;font-size:10px;color:#8a9aa7;margin-bottom:25px}
.cm-preview-notice svg{width:14px;height:14px}
.cm-topic-preview-header{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--cm-line)}
.cm-topic-preview-header h2{font-size:28px;line-height:1.3;letter-spacing:-.035em;overflow-wrap:anywhere;margin:10px 0 20px}
.cm-preview-author{display:flex;align-items:center;gap:9px;font-size:11px;color:#8395a4}
.cm-preview-author strong{font-weight:500;color:#c9d3dc}
.cm-preview-author .cm-avatar{width:26px;height:26px}
.cm-composer-preview .cm-editor-preview{padding:0;min-height:100px}
.cm-composer-preview .cm-prose :is(ul,ol){padding-left:24px;margin:15px 0}
.cm-attachment-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:5px}
.cm-editor.is-focused{position:fixed;inset:16px;z-index:120;background:#0b111b;border:1px solid #35414f;border-radius:10px;padding:28px;overflow:auto;margin:0;box-shadow:0 20px 100px #000a}
.cm-editor.is-focused .cm-compose-grid{display:block;max-width:1000px;margin:auto}
.cm-editor.is-focused .cm-compose-aside{display:none}
.cm-editor.is-focused textarea{min-height:calc(100dvh - 450px)}
.cm-editor.is-focused:not(.cm-topic-composer)>div{max-width:1000px;margin:auto}
.cm-editor.is-focused:not(.cm-topic-composer) textarea{min-height:calc(100dvh - 310px)}
.cm-editor.is-focused .cm-composer-preview{min-height:calc(100dvh - 420px)}
@media(max-width:1100px){.cm-compose-grid{grid-template-columns:minmax(0,1fr) 265px;gap:30px}.cm-tool-group{padding-right:6px}.cm-editor-toolbar{gap:5px}.cm-history-tools{margin-left:0}.cm-title-help{font-size:9px}}
@media(max-width:850px){.cm-compose-grid{display:flex;flex-direction:column;gap:30px}.cm-compose-aside{order:-1;width:100%}.cm-compose-workspace{width:100%}.cm-category-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cm-category-picker legend{margin-bottom:8px}.cm-category-picker>p{grid-column:1/-1;margin-bottom:4px}.cm-category-choice{margin:0;padding:10px;gap:9px}.cm-choice-copy small{display:none}.cm-choice-copy strong{margin:0;font-size:11px}.cm-category-choice>svg{width:16px;height:16px}.cm-compose-hint,.cm-compose-privacy{display:none}.cm-topic-composer .cm-editor-title{margin-bottom:25px}.cm-compose-heading{padding-bottom:24px}.cm-topic-composer{margin-top:25px}.cm-history-tools{margin-left:auto}.cm-editor.is-focused{inset:8px;padding:20px}}
@media(max-width:540px){.cm-draft-indicator{font-size:9px;max-width:135px;white-space:normal;line-height:1.5}.cm-topic-composer .cm-editor-title h2{font-size:14px}.cm-compose-heading p{font-size:13px}.cm-compose-page>.cm-back{margin-bottom:12px}.cm-topic-title-field>input{font-size:20px}.cm-title-help>span:first-child{max-width:220px}.cm-topic-composer textarea{min-height:260px}.cm-editor textarea{padding:18px 16px;font-size:14px}.cm-editor-toolbar{padding:7px;gap:4px}.cm-tool-group{padding-right:5px;gap:0}.cm-tool-group .cm-button{width:28px;height:30px;min-height:30px;padding:5px}.cm-history-tools{margin-left:0}.cm-editor-tabs{gap:18px}.cm-editor-tabs .cm-button{font-size:11px}.cm-editor-status{padding:10px 13px;font-size:8px;gap:12px}.cm-editor-bottom{flex-direction:column;align-items:stretch;gap:15px}.cm-editor-bottom>.cm-actions{align-self:stretch}.cm-editor-bottom>.cm-actions>.cm-button-primary{flex:1;min-height:46px}.cm-editor-bottom>small{font-size:9px}.cm-keyboard-hint{display:none}.cm-composer-preview{padding:18px}.cm-topic-preview-header h2{font-size:23px}.cm-editor.is-focused{inset:0;border-radius:0;padding:15px}.cm-editor.is-focused textarea{min-height:calc(100dvh - 460px)}}
