:root {
  color: #202124;
  background: #f5f6f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem max(1.25rem, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid #d9dde2;
  background: rgba(255, 255, 255, 0.97);
}

.eyebrow {
  color: #687078;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-name {
  font-size: 0.92rem;
  font-weight: 650;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.updated {
  margin-right: 0.35rem;
  color: #687078;
  font-size: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #c9ced5;
  border-radius: 5px;
  color: #30343a;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: #89919a;
  background: #f3f5f7;
}

.button.primary {
  border-color: #22643a;
  color: #fff;
  background: #22643a;
}

.button.ai-button {
  border-color: #6254a8;
  color: #fff;
  background: #6254a8;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.25rem;
  width: min(1600px, calc(100% - 2.5rem));
  margin: 1.5rem auto;
}

.sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100vh - 6.5rem);
  padding: 1rem;
  border: 1px solid #e0e3e6;
  border-radius: 7px;
  background: #fff;
  overflow: auto;
}

.sidebar label {
  display: block;
  margin-bottom: 0.45rem;
  color: #4e575f;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cfd4d9;
  border-radius: 4px;
  color: inherit;
  background: #fff;
  font: inherit;
  font-size: 0.86rem;
}

.doc-link {
  display: block;
  margin: 0.1rem 0;
  padding: 0.46rem 0.55rem;
  border-radius: 4px;
  color: #3e4850;
  font-size: 0.82rem;
  line-height: 1.3;
  text-decoration: none;
}

.doc-link:hover {
  color: #17211a;
  background: #f0f3f1;
}

.doc-link.active {
  color: #174c2a;
  background: #e4eee7;
  font-weight: 700;
}

.document {
  min-width: 0;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3.6rem);
  border: 1px solid #e0e3e6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(28, 35, 42, 0.05);
}

h1,
h2,
h3 {
  color: #17211a;
  line-height: 1.25;
  scroll-margin-top: 5rem;
}

h1 {
  margin: 0 0 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #dce7df;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h2 {
  margin: 3rem 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #e2e5e8;
  font-size: 1.65rem;
}

h3 {
  margin: 2.1rem 0 0.7rem;
  font-size: 1.18rem;
}

p,
li {
  max-width: 92ch;
}

li + li {
  margin-top: 0.3rem;
}

a {
  color: #075ea8;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #003f73;
}

strong {
  color: #17211a;
}

code {
  padding: 0.12em 0.32em;
  border-radius: 3px;
  background: #eef1f3;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
}

table {
  display: block;
  width: 100%;
  margin: 1rem 0 1.7rem;
  border: 1px solid #dce0e4;
  border-collapse: collapse;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.45;
}

thead {
  background: #eef4f0;
}

th,
td {
  min-width: 7rem;
  padding: 0.68rem 0.75rem;
  border: 1px solid #dce0e4;
  text-align: left;
  vertical-align: top;
}

th:first-child,
td:first-child {
  min-width: 3.2rem;
  text-align: right;
}

tbody tr:nth-child(even) {
  background: #fafbfb;
}

.progress-column,
.progress-cell {
  width: 11.5rem;
  min-width: 11.5rem;
  text-align: left;
}

.progress-control {
  display: grid;
  gap: 0.3rem;
}

.progress-select {
  width: 100%;
  min-height: 2rem;
  padding: 0.3rem 1.8rem 0.3rem 0.45rem;
  border: 1px solid #c9ced5;
  border-radius: 4px;
  color: #30343a;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.progress-date {
  min-height: 1.1rem;
  color: #687078;
  font-size: 0.72rem;
  line-height: 1.3;
}

tbody tr.is-finished > td:not(.progress-cell) {
  color: #657069;
  background: #f3f8f4;
}

tbody tr.is-finished .progress-cell {
  background: #e8f3eb;
}

tbody tr.is-finished .progress-select {
  border-color: #6f9b7d;
  color: #174c2a;
  background: #f7fbf8;
  font-weight: 700;
}

tbody tr.is-posted > td:not(.progress-cell) {
  background: #f3f7fb;
}

tbody tr.is-posted .progress-cell {
  background: #e8f0f8;
}

tbody tr.is-posted .progress-select {
  border-color: #6c8cab;
  color: #16486d;
  background: #f7faff;
  font-weight: 700;
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 1rem;
  border-left: 4px solid #8aa696;
  color: #4d555c;
  background: #f6f8f7;
}

footer {
  padding: 0 1.25rem 2rem;
  color: #71777d;
  font-size: 0.78rem;
  text-align: center;
}

/* Social publishing desk */

.social-workspace {
  min-height: 100vh;
  background: #f3f5f4;
}

.social-app {
  width: min(1480px, calc(100% - 2.5rem));
  margin: 1.5rem auto 4rem;
}

.social-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid #d9e1dc;
  border-radius: 10px;
  background: #fff;
}

.social-hero h1 {
  margin: 0 0 0.8rem;
  padding: 0;
  border: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.social-hero p {
  margin: 0;
}

.social-kicker {
  color: #247442;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.campaign-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(5.5rem, 1fr));
  gap: 0.55rem;
  min-width: min(100%, 22rem);
}

.summary-item {
  padding: 0.8rem;
  border: 1px solid #dce1e4;
  border-radius: 7px;
  background: #fafbfb;
}

.summary-item strong,
.summary-item span {
  display: block;
}

.summary-item strong {
  color: #17211a;
  font-size: 1.45rem;
  line-height: 1;
}

.summary-item span {
  margin-top: 0.35rem;
  color: #687078;
  font-size: 0.72rem;
}

.summary-item.is-posted {
  border-color: #b9ccdc;
  background: #f3f7fb;
}

.summary-item.is-finished {
  border-color: #b8d1c0;
  background: #f2f8f4;
}

.integration-panel {
  margin: 1rem 0;
  padding: 1.15rem;
  border: 1px solid #d8ddd9;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(242, 247, 244, 0.96), rgba(250, 248, 241, 0.96)),
    #fff;
}

.integration-heading,
.vault-workbench,
.vault-result-head,
.editor-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.integration-heading h2 {
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
  font-size: 1.18rem;
}

.integration-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.45rem;
}

.integration-badge {
  padding: 0.28rem 0.55rem;
  border: 1px solid #d1b6b8;
  border-radius: 999px;
  color: #7b4146;
  background: #fbf1f2;
  font-size: 0.7rem;
  font-weight: 750;
}

.integration-badge.is-ready {
  border-color: #a9c8b3;
  color: #275d38;
  background: #eaf4ed;
}

.vault-workbench {
  display: grid;
  grid-template-columns: minmax(18rem, 1.1fr) minmax(18rem, 0.9fr);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dfe4e0;
}

.vault-search-row {
  display: flex;
  gap: 0.5rem;
}

.vault-search-row input,
.editor-shell input[type="text"],
.editor-shell textarea,
.editor-shell select,
.login-card input {
  width: 100%;
  padding: 0.58rem 0.65rem;
  border: 1px solid #c9ced5;
  border-radius: 6px;
  color: #202124;
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
}

.integration-help,
.editor-section-head p {
  margin: 0.45rem 0 0;
  color: #687078;
  font-size: 0.75rem;
}

.vault-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 2.35rem;
}

.vault-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.4rem 0.28rem 0.55rem;
  border: 1px solid #b9c8bd;
  border-radius: 999px;
  color: #31543a;
  background: #edf5ef;
  font-size: 0.72rem;
  font-weight: 700;
}

.vault-chip button {
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: #d6e6da;
  cursor: pointer;
}

.vault-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.vault-result {
  padding: 0.75rem;
  border: 1px solid #dce1dd;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
}

.vault-result-head > div {
  min-width: 0;
}

.vault-result-head strong,
.vault-result-head span {
  display: block;
}

.vault-result-head span {
  color: #737c75;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.vault-result p {
  margin: 0.6rem 0 0;
  color: #536059;
  font-size: 0.75rem;
  line-height: 1.45;
}

.muted {
  color: #7a827d;
  font-size: 0.76rem;
}

.error-text {
  color: #9f2531;
  font-size: 0.78rem;
}

.social-controls {
  position: sticky;
  top: 4.2rem;
  z-index: 8;
  display: flex;
  align-items: end;
  gap: 1rem;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #dce1e4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 5px 18px rgba(28, 35, 42, 0.05);
}

.social-controls > div {
  flex: 1;
  min-width: 0;
}

.social-controls label {
  min-width: 10rem;
}

.control-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #687078;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-controls select,
.social-status-select {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.35rem 2rem 0.35rem 0.55rem;
  border: 1px solid #c9ced5;
  border-radius: 5px;
  color: #30343a;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
}

.platform-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
}

.platform-tab {
  flex: none;
  min-height: 2.25rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid #cfd4d9;
  border-radius: 5px;
  color: #4a535a;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.platform-tab[aria-pressed="true"] {
  border-color: var(--platform-accent);
  color: #fff;
  background: var(--platform-accent);
}

.schedule-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid #5b8e6c;
  color: #4f5a52;
  background: #edf3ef;
  font-size: 0.8rem;
}

.social-board {
  display: grid;
  gap: 1rem;
}

.social-slot {
  display: grid;
  grid-template-columns: minmax(14rem, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #dce1e4;
  border-radius: 9px;
  background: #fff;
}

.social-slot-head {
  padding: 0.4rem 0.5rem;
}

.social-slot-head h2 {
  margin: 0.35rem 0 0.55rem;
  padding: 0;
  border: 0;
  font-size: 1.2rem;
}

.slot-time {
  margin: 0;
  color: #505a62;
  font-size: 0.8rem;
  font-weight: 700;
}

.engineering-fact {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e2e5e8;
  color: #657078;
  font-size: 0.82rem;
  line-height: 1.55;
}

.social-post-card {
  min-width: 0;
  border: 1px solid #dce1e4;
  border-top: 3px solid var(--platform-accent);
  border-radius: 8px;
  background: #fbfcfc;
  overflow: hidden;
}

.social-post-card.is-posted {
  background: #f4f8fc;
}

.social-post-card.is-finished {
  background: #f2f8f4;
}

.social-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #e0e4e7;
}

.social-platform-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.platform-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--platform-accent);
}

.character-count {
  color: #667078;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.7rem;
}

.character-count.is-over {
  color: #a11f2d;
  font-weight: 800;
}

.social-visual {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  margin: 0.8rem;
  color: #405048;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.social-visual img {
  display: block;
  width: 100%;
  height: 5rem;
  border: 1px solid #d6dbde;
  border-radius: 5px;
  object-fit: cover;
  object-position: top;
  background: #e8ebed;
}

.social-post-copy {
  margin: 0;
  padding: 1rem;
  border-top: 1px solid #e3e7e9;
  color: #1d2520;
  background: #fff;
  font-size: 0.94rem;
  line-height: 1.58;
  white-space: pre-wrap;
  user-select: text;
}

.character-meter {
  height: 3px;
  background: #e3e7e9;
}

.character-meter span {
  display: block;
  height: 100%;
  background: var(--platform-accent);
}

.character-meter span.is-over {
  background: #b42333;
}

.social-post-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.8rem;
}

.edit-post-button {
  margin-right: auto;
}

.social-status-control {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem);
  gap: 0.25rem;
}

.social-status-date {
  min-height: 1rem;
  color: #687078;
  font-size: 0.68rem;
}

.nodebb-publisher {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 16rem) auto;
  align-items: end;
  gap: 0.65rem 1rem;
  padding: 0.75rem 0.8rem;
  border-top: 1px solid #dce1e4;
  background: #f4f6f8;
}

.nodebb-publisher-head {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.55rem;
}

.nodebb-automation-badge {
  padding: 0.15rem 0.4rem;
  border: 1px solid #9fb8a7;
  border-radius: 999px;
  color: #315c3d;
  background: #e8f1eb;
  font-size: 0.7rem;
  font-weight: 700;
}

.nodebb-category-control {
  display: grid;
  gap: 0.25rem;
}

.nodebb-category-select {
  width: 100%;
}

.nodebb-publisher-actions {
  display: flex;
  gap: 0.45rem;
}

.nodebb-publish-status {
  grid-column: 1 / -1;
  min-height: 1rem;
  color: #687078;
  font-size: 0.74rem;
}

.nodebb-topic-link[hidden] {
  display: none;
}

.social-empty {
  padding: 3rem;
  border: 1px dashed #cbd2d6;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.social-empty h2 {
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
}

.editor-dialog {
  width: min(1320px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid #cbd2cd;
  border-radius: 12px;
  background: #f7f8f7;
  box-shadow: 0 22px 70px rgba(23, 33, 26, 0.28);
}

.editor-dialog::backdrop {
  background: rgba(20, 27, 23, 0.62);
  backdrop-filter: blur(3px);
}

.editor-shell > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #dbe0dc;
  background: #fff;
}

.editor-shell > header h2 {
  margin: 0.15rem 0 0;
  padding: 0;
  border: 0;
  font-size: 1.35rem;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  max-height: calc(100vh - 7rem);
  overflow: auto;
}

.editor-copy-panel,
.editor-visual-panel {
  min-width: 0;
  padding: 1.15rem;
}

.editor-copy-panel {
  border-right: 1px solid #dce1dd;
  background: #fff;
}

.editor-shell label {
  display: block;
  margin-top: 0.85rem;
}

.editor-shell textarea {
  line-height: 1.48;
  resize: vertical;
}

#editor-copy {
  min-height: 18rem;
  font-size: 0.92rem;
}

#editor-published-preview {
  min-height: 9rem;
  color: #26342b;
  background: #f4f7f5;
  font-size: 0.8rem;
}

.editor-actions.is-compact {
  margin-top: 0.45rem;
}

.editor-channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 0.65rem;
}

.editor-channel-tabs .platform-tab {
  min-width: 5.4rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.74rem;
}

.immutable-rule,
.reference-analysis {
  margin: 0.55rem 0 0;
  padding: 0.58rem 0.68rem;
  border: 1px solid #d8ded9;
  border-radius: 6px;
  color: #536059;
  background: #f6f8f6;
  font-size: 0.72rem;
  line-height: 1.45;
}

.immutable-rule {
  border-left: 3px solid #3b754c;
}

.reference-analysis {
  border-left: 3px solid #7569ae;
  background: #f5f3fa;
}

.editor-reference-summary {
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid #7d73b7;
  color: #55516d;
  background: #f2f0fa;
  font-size: 0.74rem;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.editor-feedback {
  min-height: 1.3rem;
  margin: 0.65rem 0 0;
  color: #536059;
  font-size: 0.75rem;
}

#editor-visual-preview {
  display: block;
  width: 100%;
  height: 17rem;
  margin-top: 0.35rem;
  border: 1px solid #d6dcda;
  border-radius: 8px;
  object-fit: contain;
  background:
    linear-gradient(45deg, #ecefed 25%, transparent 25%),
    linear-gradient(-45deg, #ecefed 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ecefed 75%),
    linear-gradient(-45deg, transparent 75%, #ecefed 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.upload-drop {
  padding: 0.8rem;
  border: 1px dashed #aeb8b1;
  border-radius: 7px;
  color: #47534b;
  background: #fff;
  cursor: pointer;
}

.upload-drop strong,
.upload-drop span {
  display: block;
}

.upload-drop span {
  color: #747d77;
  font-size: 0.72rem;
}

.upload-drop input {
  margin-top: 0.5rem;
  font-size: 0.76rem;
}

.visual-options {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(13rem, 1fr);
  align-items: end;
  gap: 0.8rem;
}

.checkbox-control {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  font-size: 0.78rem;
}

.checkbox-control input {
  width: auto;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 15% 10%, rgba(53, 112, 76, 0.22), transparent 34rem),
    radial-gradient(circle at 90% 90%, rgba(98, 84, 168, 0.18), transparent 30rem),
    #edf1ee;
}

.login-card {
  width: min(29rem, 100%);
  padding: 2rem;
  border: 1px solid #d3dad5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 65px rgba(23, 33, 26, 0.14);
}

.login-card h1 {
  margin: 0.35rem 0 0.8rem;
  padding: 0;
  border: 0;
  font-size: 2rem;
}

.login-card > p {
  color: #606a63;
}

.login-card label {
  display: block;
  margin-top: 0.9rem;
}

.login-card .button {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.login-feedback {
  min-height: 1.3rem;
  margin: 0.65rem 0 0;
  color: #9f2531;
  font-size: 0.78rem;
}

.due-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f3f5f4;
}

.due-dialog::backdrop {
  background: rgba(20, 26, 23, 0.72);
}

.due-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
}

.due-dialog-shell > header,
.due-dialog-shell > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1rem, calc((100vw - 1480px) / 2));
  border-bottom: 1px solid #d7dcdf;
  background: #fff;
}

.due-dialog-shell > header h2 {
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
  font-size: 1.4rem;
}

.due-dialog-shell > footer {
  border-top: 1px solid #d7dcdf;
  border-bottom: 0;
}

.due-dialog-shell > footer p {
  margin: 0;
  color: #687078;
  font-size: 0.75rem;
}

.dialog-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #c9ced5;
  border-radius: 50%;
  color: #30343a;
  background: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.due-dialog-body {
  width: min(1480px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
  overflow: auto;
}

.dialog-context {
  display: grid;
  grid-template-columns: minmax(12rem, 22rem) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #dce1e4;
  border-radius: 8px;
  background: #fff;
}

.dialog-context img {
  width: 100%;
  height: 9rem;
  border: 1px solid #d6dbde;
  border-radius: 5px;
  object-fit: cover;
  object-position: top;
}

.dialog-context p {
  margin: 0 0 0.8rem;
}

.dialog-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.is-dialog-card .social-post-copy {
  min-height: 11rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  color: #fff;
  background: #1d5631;
  box-shadow: 0 8px 28px rgba(17, 35, 24, 0.24);
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .toolbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    flex-wrap: wrap;
  }

  .updated {
    width: 100%;
  }

  .workspace {
    display: block;
    width: 100%;
    margin: 0;
  }

  .sidebar {
    position: static;
    max-height: none;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .document {
    padding: 1.15rem;
    border: 0;
    border-radius: 0;
  }

  .social-app {
    width: 100%;
    margin: 0;
    padding: 0.75rem;
  }

  .social-hero,
  .social-controls,
  .social-slot,
  .integration-heading,
  .vault-workbench,
  .vault-result-head,
  .editor-grid,
  .dialog-context,
  .dialog-post-grid {
    display: block;
  }

  .integration-badges {
    justify-content: start;
    margin-top: 0.8rem;
  }

  .vault-search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .vault-selected {
    margin-top: 0.8rem;
  }

  .vault-results {
    grid-template-columns: 1fr;
  }

  .vault-result-head .button {
    margin-top: 0.55rem;
  }

  .social-hero {
    padding: 1rem;
  }

  .campaign-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    margin-top: 1rem;
  }

  .social-hero h1,
  .social-slot-head h2 {
    overflow-wrap: anywhere;
  }

  .social-controls {
    position: static;
  }

  .social-controls > label {
    display: block;
    margin-top: 0.75rem;
  }

  .social-slot-head {
    margin-bottom: 0.7rem;
  }

  .social-post-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .social-status-control {
    grid-template-columns: 1fr;
  }

  .editor-dialog {
    width: 100vw;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .editor-grid {
    max-height: calc(100vh - 5rem);
  }

  .editor-copy-panel {
    border-right: 0;
    border-bottom: 1px solid #dce1dd;
  }

  .visual-options {
    grid-template-columns: 1fr;
  }

  .nodebb-publisher {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .nodebb-publisher-actions {
    flex-direction: column;
  }

  .nodebb-publish-status {
    grid-column: auto;
  }

  .due-dialog-body {
    width: calc(100% - 1rem);
  }

  .dialog-context > div {
    margin-top: 0.8rem;
  }

  .dialog-post-grid .social-post-card + .social-post-card {
    margin-top: 0.8rem;
  }

  .due-dialog-shell > footer {
    align-items: stretch;
    flex-direction: column;
  }
}
