.app-err { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 10px; background: var(--card); font-size: 14px; }
.app-muted { color: var(--muted); font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flash { margin: 0; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; overflow-wrap: anywhere; }
.flash.ok { border-color: var(--teal); }
.flash.err { border-color: var(--accent); background: var(--raised); }
.today-line { margin: -8px 0 0; font-size: 16px; color: var(--text-2); }
.empty { margin: 0; padding: 20px; color: var(--muted); font-size: 14px; }
.side-user form { display: contents; }
button.out { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-align: left; }
.pill { font: 400 12px/1 var(--mono); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised); color: var(--muted); white-space: nowrap; }
.pill.ok, .pill.approved { color: var(--ok); border-color: var(--ok); }
.pill.draft { color: var(--teal); border-color: var(--teal); }
.pill.failed, .pill.rejected { color: var(--text); border-color: var(--accent); background: var(--accent-fill); }
.wf-real { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); margin-bottom: 0; }
.wf-real .dcard { display: flex; flex-direction: column; gap: 12px; }
.wf-real .dcard > * { margin: 0; }
.wf-real .sub { margin: 0; }
.meta { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 14px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.meta dd.late { color: var(--lavender); }
.wf-msg { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.checks { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.checks li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); }
.checks li.on { color: var(--text); }
.checks li.on::before { border-color: var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071016' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.wf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.wf-actions form { display: contents; }
.sub-h { margin: 20px 0 12px; }
.appr .act { margin-top: 8px; }
.integ li { overflow-wrap: anywhere; }
.editor { display: grid; gap: 24px; }
@media (min-width: 1000px) { .editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.ed-form { display: grid; gap: 16px; min-width: 0; }
.ed-form label { display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.ed-form input[type=text], .ed-form textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
.ed-form textarea { font-family: var(--mono); font-size: 13px; line-height: 1.6; resize: vertical; }
.ed-form input:focus, .ed-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(167, 139, 250, .2); }
.ed-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.preview { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; min-width: 0; }
.preview h2 { font-size: 24px; margin: 8px 0 6px; overflow-wrap: anywhere; }
.md { margin-top: 16px; color: var(--text-2); overflow-wrap: anywhere; }
.md h2, .md h3, .md h4 { color: var(--text); font-weight: 500; margin: 24px 0 8px; font-size: 19px; }
.md h3, .md h4 { font-size: 16px; }
.md p, .md ul, .md ol { margin: 0 0 14px; }
.md ul, .md ol { padding-left: 22px; }
.md a { color: var(--accent); }
.dcard.off { opacity: .6; }
.lbl-row { display: flex; justify-content: space-between; gap: 12px; }
.note { margin: 12px 0 0; }
.ed-form h2, .editor > .card h2 { font-size: 15px; font-weight: 500; margin: 0; }
.appr .act { display: flex; flex-wrap: wrap; gap: 8px; }
.appr .act form { display: contents; }
.mv { margin: 0; }
.integ li.st { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.ed-form label.sw { display: inline-flex; font-family: inherit; font-size: 14px; color: var(--text); }
.subj { margin: 8px 0 0; padding-left: 22px; font-size: 14px; color: var(--text-2); display: grid; gap: 6px; overflow-wrap: anywhere; }
.subj small { color: var(--muted); margin-left: 6px; }
.subj + .note { margin-top: 20px; }
.bib-wrap { overflow-x: auto; margin-top: 12px; }
.bib-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.bib-t th { text-align: left; font: 400 12px/1 var(--mono); color: var(--muted); padding: 0 12px 8px 0; }
.bib-t td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.bib-t td:nth-child(2) { white-space: nowrap; }

.automation-settings fieldset { margin: 0; padding: 16px; border: 1px solid var(--line-2); border-radius: 10px; min-width: 0; }
.automation-settings legend { padding: 0 6px; color: var(--text-2); font-size: 14px; }
.schedule-options { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.schedule-options label { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.schedule-options input { flex: none; accent-color: var(--accent); width: 16px; height: 16px; }
.site-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.automation-settings input[type=time] { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; color-scheme: dark; }
.layout-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.layout-toolbar h2 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.layout-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.layout-message:empty { display: none; }
.widget-choices { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 20px; }
.widget-choices label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.widget-choices input { width: 16px; height: 16px; accent-color: var(--accent); }
.dashboard-widgets { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dashboard-widget { min-width: 0; scroll-margin-top: 20px; }
.dashboard-widget.widget-metric { grid-column: span 3; }
.dashboard-widget.widget-half { grid-column: span 6; }
.dashboard-widget.widget-wide { grid-column: 1 / -1; }
.dashboard-widget > .card, .dashboard-widget > .board, .dashboard-widget > .kpi { height: 100%; }
.dashboard-widget .dcard-head h2 { margin: 0; }
.dashboard-widget .flow-line { overflow-wrap: anywhere; }
.dashboard-widget > .card > .mono { display: block; margin: 12px 0; color: var(--muted); font-size: 14px; }
.dashboard-widget .integ { margin: 0; }
.widget-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px; border-bottom: 1px solid var(--line-2); }
.widget-handle { cursor: grab; touch-action: none; text-align: left; min-width: 0; white-space: normal; }
.widget-handle span { font-size: 20px; line-height: 1; margin-right: 4px; }
.widget-moves { display: flex; gap: 4px; }
.dashboard-widgets.editing .dashboard-widget { border: 1px dashed var(--accent); border-radius: 14px; background: var(--raised); overflow: hidden; }
.dashboard-widgets.editing .dashboard-widget > .card, .dashboard-widgets.editing .dashboard-widget > .kpi, .dashboard-widgets.editing .dashboard-widget > .board { height: auto; border: none; border-radius: 0; }
.dashboard-widgets.editing .widget-metric { grid-column: span 6; }
.dashboard-widgets.editing .dashboard-widget > .integ { padding: 20px; }
.dashboard-widget.dragging { opacity: .55; outline: 2px solid var(--accent); }
.widget-handle:active { cursor: grabbing; }
.dashboard-widgets [hidden], [hidden].layout-toolbar, [hidden].widget-controls, [hidden].widget-library, .layout-actions [hidden] { display: none !important; }
@media (max-width: 1100px) { .dashboard-widget.widget-metric { grid-column: span 6; } .dashboard-widget.widget-half { grid-column: 1 / -1; } }
@media (max-width: 580px) { .dashboard-widget.widget-metric, .dashboard-widgets.editing .widget-metric { grid-column: 1 / -1; } .widget-controls { align-items: flex-start; } .layout-actions { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .dashboard-widget, .dashboard-widget * { scroll-behavior: auto; transition: none; } }
.connection-setup { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.connection-setup summary { cursor: pointer; font-size: 14px; color: var(--text-2); }
.connection-setup > p, .connection-setup > form { margin-top: 16px; }
.native-results { margin-top: 24px; }
.native-results .ed-form { margin-top: 16px; }
.native-results article + article { margin-top: 16px; }
.github-tools { align-items: end; margin: 20px 0; }
.github-table { min-width: 760px; }
.github-table td:first-child { min-width: 220px; }
.github-table td:nth-child(3) { min-width: 240px; max-width: 400px; overflow-wrap: anywhere; }
.github-table tr[hidden] { display: none; }
.native-results pre { white-space: pre-wrap; word-break: break-word; color: var(--text-2); font-size: 14px; }
.github-scroll { max-height: 560px; overflow: auto; }
.github-table thead { position: sticky; top: 0; background: var(--card); z-index: 1; }
.github-table th { padding-top: 12px; }

.briefing-task { padding: 1.25rem 0; border-top: 1px solid var(--border, #292c34); }
.briefing-task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.briefing-task h3 { margin: 0; font-size: 1rem; line-height: 1.5; }
.briefing-task .pill { flex-shrink: 0; }
.briefing-task blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 2px solid #7c3aed; overflow-wrap: anywhere; }
.briefing-task .wf-actions { margin-top: 1rem; }
.ce-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.ce-bar select { font: inherit; font-size: 14px; color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; min-width: 0; max-width: 100%; }
.ce-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ce-tab { display: flex; align-items: center; gap: 8px; font: 400 13px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raised); color: var(--muted); cursor: pointer; }
.ce-tab.on { color: var(--text); border-color: var(--accent); }
.ce-tab button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 0 2px; }
.ce-term { height: min(70vh, 640px); background: #000; border-radius: 10px; padding: 8px; display: none; }
.ce-term.on { display: block; }
.ce-srv { padding: 12px 0; border-top: 1px solid var(--line); }
.ce-srv p { margin: 0 0 8px; overflow-wrap: anywhere; }
.seo-sum { margin: 16px 0 4px; font-size: 15px; color: var(--text); }
.seo-site { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raised); }
.seo-site > summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 2fr) 34px; gap: 12px; align-items: center; cursor: pointer; font-size: 14px; color: var(--text); }
.seo-name { overflow-wrap: anywhere; }
.seo-bar { width: 100%; height: 10px; border: 0; border-radius: 999px; appearance: none; -webkit-appearance: none; background: var(--line-2); overflow: hidden; }
.seo-bar::-webkit-progress-bar { background: var(--line-2); border-radius: 999px; }
.seo-bar::-webkit-progress-value { border-radius: 999px; background: var(--ok); }
.seo-bar::-moz-progress-bar { border-radius: 999px; background: var(--ok); }
.seo-bar.warn::-webkit-progress-value { background: #f5c451; } .seo-bar.warn::-moz-progress-bar { background: #f5c451; }
.seo-bar.bad::-webkit-progress-value { background: #f2766b; } .seo-bar.bad::-moz-progress-bar { background: #f2766b; }
.seo-score { font: 400 13px/1 var(--mono); text-align: right; color: var(--ok); }
.seo-score.warn { color: #f5c451; } .seo-score.bad { color: #f2766b; }
.seo-site > p { margin-top: 12px; }
@media (max-width: 480px) { .seo-site > summary { grid-template-columns: minmax(0, 1fr) 34px; } .seo-bar { grid-column: 1 / -1; grid-row: 2; } .seo-score { grid-row: 1; grid-column: 2; } }

.compose-post select, .compose-post input[type=date], .compose-post input[type=time], .compose-post input[type=file] { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; color-scheme: dark; }
.compose-post fieldset { margin: 0; padding: 16px; border: 1px solid var(--line-2); border-radius: 10px; min-width: 0; }
.compose-post legend { padding: 0 6px; color: var(--text-2); font-size: 14px; }
.compose-when { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.post-thumb { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); margin: 8px 0; }
.ce-qr svg{display:block;width:200px;height:200px;margin:8px 0 12px;border-radius:8px;background:#fff}

.rev-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.rev-big { display: flex; flex-direction: column; gap: 8px; }
.rev-big .num { font-size: 34px; line-height: 1.1; font-weight: 500; }
.rev-big small { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rev-up { color: var(--ok); } .rev-down { color: #f2766b; }
.rev-t { min-width: 640px; }
.rev-n { text-align: right; font-family: var(--mono); white-space: nowrap; }
.rev-t td small { display: block; font-size: 11px; color: var(--muted); }
.rev-t td .rev-up, .rev-t td .rev-down { font-size: 11px; }
.rev-all td { border-top: 1px solid var(--line-2); }
.rev-days { max-height: 420px; overflow: auto; }
.rev-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 96px; gap: 10px; align-items: center; padding: 3px 0; font-size: 12px; color: var(--muted); }
.rev-row .seo-bar { height: 8px; grid-column: 2; grid-row: 1; }
