:root{color:#101521;background:var(--tg-theme-bg-color, #f7f9fc);font-family:Manrope,Inter,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;min-width:320px}button{font:inherit}.app-shell{display:flex;min-height:100dvh;flex-direction:column;gap:20px;padding:calc(24px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));background:var(--tg-theme-secondary-bg-color, #f7f9fc)}.header{display:grid;gap:10px}.eyebrow{margin:0;color:#196fe2;font-size:12px;font-weight:700;letter-spacing:.06em}h1,h2,p{margin:0}h1{font-size:clamp(26px,8vw,34px);line-height:1.16;letter-spacing:-.03em}h2{font-size:16px;line-height:1.35}.subtitle,.safety-card p,.privacy-note,.session-message{color:var(--tg-theme-hint-color, #536073);font-size:14px;line-height:1.5}.safety-card,.steps-card,.resume-card,.demo-card,.audit-card,.audit-result-card,.paywall-card,.channel-card,.kill-switch-card,.weekly-report-card{border:1px solid color-mix(in srgb,#196fe2 15%,transparent);border-radius:16px;padding:16px;background:var(--tg-theme-section-bg-color, #fff)}.safety-card{display:flex;gap:12px;background:#eaf4ff}.safety-card div{display:grid;gap:6px}.status-dot{width:10px;height:10px;margin-top:6px;flex:0 0 auto;border-radius:50%;background:#15965c}.steps-card{display:grid;gap:12px}.resume-card{display:grid;gap:8px}.demo-card{display:grid;gap:12px}.demo-label{color:#8a4c00;font-size:11px;font-weight:800;letter-spacing:.06em}.demo-example{display:grid;gap:5px;padding:12px;border-radius:10px;background:#f6f8fb}.demo-example p,.audit-card p{color:var(--tg-theme-hint-color, #536073);font-size:14px;line-height:1.5}.audit-card{display:grid;gap:8px;background:#fff9eb;border-color:color-mix(in srgb,#cb8a16 25%,transparent)}.audit-result-card{display:grid;gap:10px}.audit-result-card>p{color:var(--tg-theme-hint-color, #536073);font-size:14px;line-height:1.5}.audit-list{display:grid;gap:6px;margin:0;padding-left:20px;font-size:14px;line-height:1.45}.audit-result-card h3{margin:0;font-size:14px}.demo-draft{white-space:pre-line;padding:12px;border-radius:10px;background:#f6f8fb}.feedback-label{font-size:13px;font-weight:700}textarea{width:100%;min-height:76px;resize:vertical;border:1px solid #cbd3df;border-radius:10px;padding:10px;color:inherit;background:var(--tg-theme-section-bg-color, #fff);font:inherit;font-size:14px}.feedback-actions{display:flex;gap:16px}.feedback-confirmation{color:#147647!important;font-weight:700}.sample-import{display:grid;gap:8px;padding:12px;border-radius:10px;background:#f6f8fb}.sample-import h3{margin:0;font-size:14px}.sample-import p,.sample-import label{color:var(--tg-theme-hint-color, #536073);font-size:13px;line-height:1.45}.sample-import label{font-weight:700;color:var(--tg-theme-text-color, #101521)}.sample-import select{width:100%;border:1px solid #cbd3df;border-radius:10px;padding:10px;color:inherit;background:var(--tg-theme-section-bg-color, #fff);font:inherit;font-size:14px}.sample-import textarea{min-height:120px}.profile-editor,.profile-history{display:grid;gap:10px;padding:12px;border-radius:10px;background:#f6f8fb}.profile-editor h3,.profile-history h3,.profile-history article p{margin:0}.profile-editor>p,.profile-history article p{color:var(--tg-theme-hint-color, #536073);font-size:13px;line-height:1.45}.profile-editor fieldset{display:grid;gap:6px;margin:0;padding:10px;border:1px solid #d8e0ec;border-radius:10px}.profile-editor label{font-size:13px;font-weight:700}.profile-editor input:not([type=checkbox]){width:100%;border:1px solid #cbd3df;border-radius:8px;padding:8px;color:inherit;background:var(--tg-theme-section-bg-color, #fff);font:inherit;font-size:14px}.rule-toggle{display:flex;align-items:center;gap:7px;font-weight:500!important}.profile-history article{display:grid;gap:4px;border-left:3px solid #196fe2;padding-left:10px}.profile-history article label{font-size:13px;font-weight:700}.profile-history article input{width:100%;border:1px solid #cbd3df;border-radius:8px;padding:8px;color:inherit;background:var(--tg-theme-section-bg-color, #fff);font:inherit;font-size:14px}.topic-picker{display:grid;gap:6px}.topic-picker .rule-toggle{padding:4px 0}.paywall-card{display:grid;gap:9px;background:#eef7ff}.channel-card{display:grid;gap:10px;background:#f1f8f5;border-color:color-mix(in srgb,#15965c 25%,transparent)}.channel-card>p:not(.eyebrow),.channel-form{color:var(--tg-theme-hint-color, #536073);font-size:14px;line-height:1.5}.channel-form{display:grid;gap:8px}.channel-form label{font-weight:700;color:var(--tg-theme-text-color, #101521)}.channel-form input{width:100%;border:1px solid #cbd3df;border-radius:10px;padding:10px;color:inherit;background:var(--tg-theme-section-bg-color, #fff);font:inherit;font-size:14px}.compact-action{margin-top:0}.channel-error{color:#bb3f35!important;font-weight:700}.channel-diagnostics{display:grid;gap:9px}.channel-diagnostic{display:grid;gap:5px;border-left:3px solid #bb3f35;padding:8px 0 8px 10px}.channel-diagnostic h3{margin:0;font-size:14px}.channel-diagnostic p{margin:0;color:var(--tg-theme-hint-color, #536073);font-size:14px;line-height:1.45}.support-link{color:var(--tg-theme-link-color, #196fe2);font-size:13px;font-weight:700}.timezone-settings{display:grid;gap:8px;margin-top:4px}.timezone-settings label{font-size:13px;font-weight:700}.timezone-settings input{width:100%;border:1px solid #cbd3df;border-radius:10px;padding:10px;color:inherit;background:var(--tg-theme-section-bg-color, #fff);font:inherit;font-size:14px}.timezone-settings p{color:var(--tg-theme-hint-color, #536073);font-size:13px;line-height:1.45}.channel-actions{display:grid;gap:8px}.danger-action{width:fit-content;margin-top:4px;padding:0;border:0;background:transparent;color:#bb3f35;font:inherit;font-weight:700}.connection-confirmed{color:#147647!important;font-weight:700}.kill-switch-card{display:grid;gap:10px;background:#fdf1f0;border-color:color-mix(in srgb,#bb3f35 25%,transparent)}.kill-switch-card>p:not(.eyebrow){color:var(--tg-theme-hint-color, #536073);font-size:14px;line-height:1.5}.kill-switch-card label{font-size:13px;font-weight:700;color:var(--tg-theme-text-color, #101521)}.kill-switch-card>input{width:100%;border:1px solid #cbd3df;border-radius:10px;padding:10px;color:inherit;background:var(--tg-theme-section-bg-color, #fff);font:inherit;font-size:14px}.kill-switch-banner{display:grid;gap:6px;border-left:3px solid #bb3f35;padding:8px 0 8px 10px}.weekly-report-card{display:grid;gap:8px;background:#eef7ff;border-color:color-mix(in srgb,#196fe2 20%,transparent)}.weekly-report-card>p:not(.eyebrow){color:var(--tg-theme-hint-color, #536073);font-size:14px;line-height:1.5}.paywall-card>p:not(.eyebrow){color:var(--tg-theme-hint-color, #536073);font-size:14px;line-height:1.5}.resume-card>p:not(.eyebrow){color:var(--tg-theme-hint-color, #536073);font-size:14px;line-height:1.5}.steps{white-space:pre-line;color:var(--tg-theme-text-color, #101521);font-size:14px;line-height:1.7}.session-message{min-height:21px}.primary-action{width:100%;min-height:50px;margin-top:auto;border:0;border-radius:12px;background:var(--tg-theme-button-color, #2481cc);color:var(--tg-theme-button-text-color, #fff);font-weight:700}.primary-action:disabled{opacity:.55}.secondary-action{width:fit-content;margin-top:4px;padding:0;border:0;background:transparent;color:var(--tg-theme-link-color, #196fe2);font-weight:700}.privacy-note{text-align:center;font-size:12px}.draft-container{margin-top:8px}.draft-card{display:grid;gap:8px;padding:12px;border-radius:10px;background:#fff;border:1px solid #d0d7de}.draft-badge-row{display:flex;gap:8px;align-items:center}.draft-status-badge{font-size:11px;font-weight:700;color:#0969da;background:#ddf4ff;padding:2px 8px;border-radius:12px}.draft-version-badge{font-size:11px;font-weight:600;color:#57606a;background:#f6f8fa;padding:2px 8px;border-radius:12px}.draft-field-label{font-size:12px;font-weight:700;color:#57606a;margin:0}.draft-thesis{font-size:14px;font-weight:600;color:#24292f;margin:0}.draft-post-text{font-size:14px;line-height:1.5;color:#24292f;white-space:pre-wrap;background:#f6f8fa;padding:10px;border-radius:6px}.draft-cta{font-size:13px;font-style:italic;color:#0969da;margin:0}.draft-meta-row{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:#57606a;align-items:center}.draft-warning-badge{color:#9a6700;font-weight:600}.draft-unapproved-notice{font-size:12px;color:#57606a;font-weight:600;background:#fff8c5;padding:6px 10px;border-radius:6px;border:1px solid #d4a72c40;margin:4px 0 0}.draft-action-row{margin-top:6px}.draft-claims-container{margin-top:10px;display:grid;gap:8px;border-top:1px solid #e1e4e8;padding-top:10px}.draft-claims-title{font-size:13px;font-weight:700;color:#24292f;margin:0}.draft-claims-desc{font-size:12px;color:#57606a;margin:0}.draft-unverified-alert,.draft-security-alert{font-size:12px;font-weight:600;color:#855500;background:#fff8c5;border:1px solid #d4a72c;padding:8px;border-radius:6px;margin:0}.claim-card{display:grid;gap:6px;padding:8px;border-radius:6px;background:#f6f8fa;border:1px solid #d0d7de}.claim-card-header{display:flex;justify-content:space-between;align-items:center}.claim-badge{font-size:11px;font-weight:700;padding:2px 8px;border-radius:12px}.claim-badge-verified{background:#dafbe1;color:#1a7f37}.claim-badge-unverified{background:#fff8c5;color:#9a6700}.claim-badge-opinion{background:#ddf4ff;color:#0969da}.claim-evidence-hint{font-size:11px;color:#9a6700;font-weight:500}.draft-tab-row{display:flex;gap:8px;margin-top:4px}.draft-tab-button{font-size:12px;font-weight:600;padding:4px 10px;border-radius:6px;border:1px solid #d0d7de;background:#f6f8fa;color:#24292f;cursor:pointer}.draft-tab-button.active{background:#0969da;color:#fff;border-color:#0969da}.draft-diff-box{font-size:14px;line-height:1.6;color:#24292f;white-space:pre-wrap;background:#fff;padding:10px;border-radius:6px;border:1px solid #d0d7de}.diff-added{background-color:#e6ffec;color:#1a7f37;text-decoration:underline;font-weight:600}.diff-removed{background-color:#ffebe9;color:#cf222e;text-decoration:line-through;opacity:.8}.diff-unchanged{color:#24292f}.draft-rewrite-section,.draft-editor-section{margin-top:10px;display:grid;gap:8px;border-top:1px solid #e1e4e8;padding-top:10px}.draft-editor-section textarea{min-height:150px}.draft-decision-section{margin-top:10px;display:grid;gap:8px;border-top:1px solid #e1e4e8;padding-top:10px}.draft-decision-section select{width:100%;border:1px solid #cbd3df;border-radius:8px;padding:8px;background:var(--tg-theme-section-bg-color, #fff);color:inherit;font:inherit;font-size:13px}.draft-decision-history{display:grid;gap:5px;padding:8px;border-left:3px solid #196fe2;background:#f6f8fa;font-size:12px;line-height:1.4}.draft-conflict{display:grid;gap:7px;padding:10px;border:1px solid #d4a72c;border-radius:6px;background:#fff8c5;color:#6f4b00;font-size:12px;line-height:1.45}.draft-rewrite-presets{display:flex;flex-wrap:wrap;gap:6px}.draft-preset-chip{font-size:11px;padding:3px 8px;border-radius:12px;border:1px solid #d0d7de;background:#f6f8fa;cursor:pointer}.draft-preset-chip.active{background:#ddf4ff;color:#0969da;border-color:#54aeff;font-weight:700}.draft-failed-card{display:grid;gap:8px;padding:12px;border-radius:10px;background:#fff8f8;border:1px solid #ff818260}.draft-retry-hint{font-size:12px;color:#57606a;margin:0}.draft-history-card{font-size:12px;padding:8px;border-radius:6px;background:#f6f8fa;border:1px solid #d0d7de;display:grid;gap:4px}.tg-preview-wrapper{background:#eef2f6;border-radius:10px;padding:12px;display:grid;gap:8px}.tg-preview-label{font-size:11px;font-weight:700;color:#57606a;letter-spacing:.04em;margin:0}.tg-preview-bubble{background:#fff;border-radius:12px 12px 12px 4px;padding:12px 14px;font-size:14px;line-height:1.55;color:#24292f;box-shadow:0 1px 3px #00000014;word-break:break-word;white-space:pre-wrap;max-width:100%}.tg-preview-bubble strong{font-weight:700}.tg-preview-bubble em{font-style:italic}.tg-preview-bubble code{font-family:monospace;font-size:13px;background:#f0f3f6;padding:1px 4px;border-radius:4px}.tg-preview-bubble a{color:#0969da;text-decoration:none}.tg-preview-bubble a:hover{text-decoration:underline}.tg-preview-counter{font-size:11px;text-align:right;margin:0;font-weight:600;color:#57606a}.tg-preview-counter.warn{color:#9a6700}.tg-preview-counter.error{color:#bb3f35}.tg-preview-oversize-alert{font-size:12px;font-weight:600;color:#bb3f35;background:#ffebe9;border:1px solid #ff818260;padding:8px;border-radius:6px;margin:0}.draft-publish-section{margin-top:12px;display:grid;gap:8px;border-top:1px solid #e1e4e8;padding-top:12px}.publication-action-wrapper{display:flex;gap:10px}.publish-now-button{background:#196fe2;color:#fff;font-weight:700;border:none;border-radius:8px;padding:10px 18px;cursor:pointer}.publish-now-button:disabled{opacity:.6;cursor:not-allowed}.publication-success-banner{background:#dafbe1;border:1px solid #2da44e60;border-radius:8px;padding:12px;color:#1a7f37;font-size:14px;line-height:1.5}.publication-success-banner a{color:#0969da;font-weight:700;text-decoration:underline}.publication-actions-container{display:grid;gap:14px}.publication-scheduled-banner{background:#e8f4fd;border:1px solid #0969da40;border-radius:8px;padding:12px;color:#0969da;font-size:14px;line-height:1.5}.publication-scheduled-banner p{margin:0 0 4px}.publication-scheduled-banner p:last-child{margin-bottom:0}.scheduled-version-hint{font-size:12px;opacity:.85}.schedule-action-wrapper{display:grid;gap:6px;padding:10px;background:#f6f8fa;border:1px solid #d0d7de;border-radius:8px}.schedule-tz-note{font-size:12px;color:#57606a;margin:0}.schedule-inputs-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.schedule-datetime-input{flex:1;min-width:180px;padding:8px 10px;font-size:13px;border:1px solid #d0d7de;border-radius:6px;background:#fff;color:#24292f}.schedule-button{white-space:nowrap;padding:8px 14px;font-size:13px;font-weight:600}.scheduled-queue-card{margin-top:20px;padding:16px;background:#fff;border-radius:12px;border:1px solid #e1e4e8;box-shadow:0 1px 3px #0000000d}.scheduled-queue-list{display:grid;gap:10px;margin-top:12px}.scheduled-queue-item{padding:12px;background:#f6f8fa;border:1px solid #d0d7de;border-radius:8px;display:grid;gap:6px}.scheduled-item-header{display:flex;justify-content:space-between;align-items:center;font-size:13px}.scheduled-item-time{font-weight:600;color:#24292f}.scheduled-item-status{font-size:11px;font-weight:700;padding:2px 8px;border-radius:10px;text-transform:uppercase}.scheduled-item-status.status-pending{background:#ddf4ff;color:#0969da}.scheduled-item-status.status-sending{background:#fff8c5;color:#9a6700}.scheduled-item-status.status-published{background:#dafbe1;color:#1a7f37}.scheduled-item-status.status-failed{background:#ffebe9;color:#cf222e}.scheduled-item-status.status-needs_attention{background:#fff8c5;color:#9a6700;border:1px solid #d4a72c}.scheduled-item-preview{font-size:13px;color:#57606a;margin:0;line-height:1.4;word-break:break-word}.scheduled-banner-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}.reschedule-toggle-button{font-size:12px;padding:6px 12px}.cancel-schedule-button{font-size:12px;padding:6px 12px;background:#ffebe9;color:#cf222e;border:1px solid #ff818260;border-radius:6px;cursor:pointer}.cancel-schedule-button:hover{background:#ffe0dd}.cancel-schedule-button:disabled{opacity:.6;cursor:not-allowed}.reschedule-inline-form{margin-top:8px;padding:8px;background:#fff;border-radius:6px;border:1px solid #d0d7de;display:grid;gap:6px}.cancel-edit-button{font-size:12px;padding:6px 10px;background:#f6f8fa;border:1px solid #d0d7de;border-radius:6px;cursor:pointer}.queue-cancel-link{background:none;border:none;padding:0;color:#cf222e;font-size:11px;text-decoration:underline;cursor:pointer}.queue-cancel-link:hover{color:#a40e26}.queue-cancel-link:disabled{opacity:.5;cursor:not-allowed}.queue-retry-link{background:none;border:none;padding:0;color:#0969da;font-size:11px;text-decoration:underline;cursor:pointer;font-weight:600}.queue-retry-link:hover{color:#0550ae}.queue-retry-link:disabled{opacity:.5;cursor:not-allowed}.queue-item-actions{display:flex;gap:8px;margin-left:auto;align-items:center}.queue-diagnostic-code{font-size:11px;color:#cf222e;margin:0}.queue-diagnostic-code code{background:#ffebe9;padding:1px 4px;border-radius:4px;font-weight:600}.publication-attention-banner{background:#fffbe6;border:1px solid #d4a72c;border-radius:8px;padding:14px;color:#24292f;font-size:14px;line-height:1.5}.publication-attention-title{margin:0 0 8px;color:#b08800;font-size:15px}.diagnostic-details{display:grid;gap:6px;background:#fff;border:1px solid #e1e4e8;border-radius:6px;padding:10px;margin:8px 0 12px;font-size:13px}.diagnostic-code-badge{margin:0;font-size:12px;color:#57606a}.diagnostic-code-badge code{background:#f6f8fa;border:1px solid #d0d7de;padding:2px 6px;border-radius:4px;font-weight:700;color:#cf222e}.diagnostic-message{margin:0;color:#24292f;font-weight:500}.diagnostic-action{margin:0;color:#0969da}.diagnostic-retry-after{margin:0;color:#9a6700;font-weight:600}.diagnostic-warning-unknown{margin:0;color:#cf222e;background:#ffebe9;padding:8px;border-radius:6px;border:1px solid #ff8182;font-weight:600}.publication-attention-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.retry-publication-button{font-size:13px;padding:8px 14px;font-weight:600}.support-deep-link{font-size:12px;padding:6px 12px;background:#2da44e;color:#fff!important;border:1px solid #2da44e;border-radius:6px;text-decoration:none;font-weight:600;display:inline-flex;align-items:center}.support-deep-link:hover{background:#2c974b}
