:root {
  --paper: #f7f5f0;
  --card: #fffefb;
  --ink: #28352f;
  --muted: #73796f;
  --line: #dedfd5;
  --green: #335a46;
  --lime: #dce7b9;
  --peach: #eddfcd;
  --red: #963d32;
  --radius: 12px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 15px;
  font-weight: 550;
  transition: background 0.15s;
}
button:hover {
  background: #e9eadd;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: var(--green);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd0c4;
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--card);
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  margin: 18px 0 7px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 14px;
}
h2 {
  font-size: 29px;
  line-height: 1.2;
  margin-bottom: 12px;
}
h3 {
  font-size: 16px;
  line-height: 1.3;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.muted,
small {
  color: var(--muted);
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #254332;
}
.link {
  border: 0;
  padding-left: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: #eeeee5;
  border-right: 1px solid var(--line);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.wordmark > span {
  font:
    500 12px/1.5 ui-sans-serif,
    system-ui;
}
.wordmark strong {
  font-size: 18px;
  font-weight: 600;
}
.sidebar > .eyebrow {
  margin-top: 50px;
}
.sidebar select {
  background: #f7f7ef;
}
nav {
  display: grid;
  gap: 8px;
  margin: 30px -6px;
}
nav button {
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 19px;
  padding: 12px;
}
nav button span {
  font-size: 13px;
}
nav button.active {
  background: #dce4d2;
  color: #254332;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.main {
  margin-left: 232px;
}
header {
  min-height: 79px;
  border-bottom: 1px solid var(--line);
  padding: 18px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
header > div {
  display: flex;
  gap: 18px;
  align-items: center;
}
header button {
  font-size: 12px;
}
.timezone {
  font-size: 11px;
}
.mode-banner {
  padding: 9px 38px;
  background: #e8ecd9;
  font-size: 12px;
  color: #42553a;
  border-bottom: 1px solid var(--line);
}
#content {
  padding: 36px 38px;
  min-height: calc(100vh - 185px);
  max-width: 1600px;
}
.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.page-top p {
  color: var(--muted);
  margin-bottom: 0;
}
.page-top h1 {
  font-size: 39px;
}
.top-actions {
  display: flex;
  gap: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.stat {
  padding: 20px 23px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
}
.stat strong {
  display: block;
  font:
    32px/1.2 Georgia,
    serif;
  margin: 12px 0 3px;
}
.stat .eyebrow {
  color: #64745d;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 16px;
}
.section-head h2 {
  font-size: 25px;
  margin: 0;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 19px;
}
.tabs button {
  font-size: 12px;
  border: 0;
  color: var(--muted);
}
.tabs .active {
  background: #e2e5d8;
  color: var(--ink);
}
.notice {
  border: 1px solid #d8d6c0;
  background: #f0eddf;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 12px;
  margin-bottom: 22px;
}
.notice strong {
  color: var(--ink);
}
.notice p:last-child {
  margin-bottom: 0;
}
.delivery {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 23px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr) 240px;
  gap: 21px;
}
.date-block {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 20px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.date-block strong {
  display: block;
  font:
    30px/1.2 Georgia,
    serif;
  color: var(--ink);
  margin: 4px 0;
}
.delivery h3 {
  margin: 0 0 5px;
}
.caption {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  margin: 12px 0;
  color: #5a655a;
}
.identity-line {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
}
.id {
  font:
    11px ui-monospace,
    SFMono-Regular,
    monospace;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.badge {
  font-size: 10px;
  letter-spacing: 0.02em;
  display: inline-block;
  border-radius: 4px;
  padding: 3px 7px;
  background: #ecece4;
  color: #5c6757;
  white-space: nowrap;
}
.badge.scheduled,
.badge.published {
  background: #e0e9d5;
  color: #385f38;
}
.badge.failed,
.badge.outcome-unknown,
.badge.needs-reconnection {
  background: #f5e3db;
  color: #873c30;
}
.badge.needs-manual-posting {
  background: #f0e4cd;
  color: #7e5825;
}
.delivery-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.delivery-end time {
  font-size: 11px;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.actions button,
.actions a {
  font-size: 11px;
  padding: 5px 9px;
}
.actions a {
  text-decoration: underline;
}
.empty {
  background: var(--card);
  border: 1px dashed #c8cdbf;
  border-radius: var(--radius);
  text-align: center;
  padding: 60px 24px;
}
.empty .stamp {
  font:
    45px Georgia,
    serif;
  color: #829670;
  margin-bottom: 18px;
}
.empty h2 {
  font-size: 30px;
}
.empty p {
  max-width: 480px;
  margin: 0 auto 22px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.account-card,
.asset-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #e1e5d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 24px;
}
.account-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.account-title h3 {
  margin: 0;
}
.account-card .actions {
  justify-content: flex-start;
  margin-top: 18px;
}
.account-card p {
  font-size: 12px;
}
.account-card .identity-line {
  margin: 10px 0;
}
.connections {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.error {
  color: var(--red);
  font-size: 12px;
}
.asset-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f3f1eb;
  border-radius: 6px;
}
.asset-card p {
  margin: 12px 0 0;
  font-size: 12px;
}
.brand-style {
  max-width: 780px;
  margin-bottom: 25px;
}
.brand-style textarea {
  min-height: 100px;
}
.calendar-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.weekday {
  background: #eeeee5;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 10px;
  border-right: 1px solid var(--line);
}
.day {
  min-height: 115px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
  background: var(--card);
}
.day > span {
  font-size: 12px;
  color: var(--muted);
}
.day.blank {
  background: #eeeee5;
}
.day.today {
  background: #eff2e5;
}
.calendar-entry {
  display: block;
  width: 100%;
  text-align: left;
  background: #e6eadc;
  border: 0;
  font-size: 10px;
  padding: 5px;
  margin: 5px 0;
}
.calendar-entry.manual {
  background: #efe4d1;
}
.calendar-entry.external {
  background: #eee6e1;
}
.calendar-entry strong {
  display: block;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 18px 38px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
dialog {
  width: min(1000px, 94vw);
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 29px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 25px 100px #26372f30;
}
dialog::backdrop {
  background: #25342bd0;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 7px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-head p {
  margin-bottom: 6px;
}
.close {
  font-size: 22px;
  border: 0;
  padding: 0 8px;
}
.composer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
}
.preview-panel {
  padding: 24px 0 0 10px;
}
.post-preview {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
  padding: 18px;
}
.post-preview img {
  width: 100%;
  object-fit: contain;
  max-height: 350px;
  margin-top: 16px;
  border-radius: 6px;
}
.post-preview p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  margin: 15px 0;
}
.destination-editor {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}
.destination-editor label {
  display: flex;
  gap: 10px;
  margin: 0;
  align-items: center;
  font-size: 12px;
}
.destination-editor input[type="checkbox"] {
  width: auto;
}
.destination-editor textarea {
  margin-top: 12px;
  font-size: 13px;
}
.destination-editor .id {
  margin: 5px 0 0 24px;
}
.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.dialog-foot .error {
  margin-right: auto;
  max-width: 60%;
}
#account-dialog,
#review-dialog {
  width: min(590px, 94vw);
}
#account-dialog .primary {
  width: 100%;
  margin-top: 18px;
}
#review-content {
  padding-top: 20px;
}
#review-content .caption {
  font-size: 15px;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
}
#review-content img.media {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
}
#review-content .actions {
  justify-content: flex-start;
}
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #eeeee5;
}
.login-card {
  padding: 46px;
  width: min(460px, 94vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.login-card .wordmark {
  margin-bottom: 55px;
}
.login-card h1 {
  font-size: 62px;
}
.login-card > p {
  color: var(--muted);
}
.login-card form button {
  width: 100%;
  margin: 18px 0 28px;
}
.login-card small {
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--ink);
  color: white;
  padding: 15px 22px;
  border-radius: 10px;
  max-width: min(530px, 90vw);
  box-shadow: 0 5px 30px #0002;
  z-index: 100;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row > input {
  flex: 1;
}
.section-note {
  max-width: 750px;
  color: var(--muted);
  font-size: 12px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.inline-file {
  max-width: 320px;
}
#asset-choice button {
  margin: 10px 5px 0 0;
  font-size: 11px;
}
#preview-account {
  font-size: 12px;
}
@media (min-width: 1500px) {
  #content {
    padding: 45px 60px;
  }
  .page-top {
    margin-bottom: 40px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 195px;
    padding: 25px 15px;
  }
  .main {
    margin-left: 195px;
  }
  header {
    padding: 16px 23px;
  }
  #content {
    padding: 28px 23px;
  }
  .delivery {
    grid-template-columns: 50px minmax(0, 1fr);
  }
  .delivery-end {
    grid-column: 2;
    align-items: flex-start;
  }
  .actions {
    justify-content: flex-start;
  }
  .timezone {
    display: none;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 15px;
  }
  .calendar .day {
    padding: 5px;
  }
  .composer-grid {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    padding-left: 0;
  }
}
@media (max-width: 680px) {
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    padding: 15px;
  }
  .sidebar .wordmark {
    font-size: 30px;
  }
  .sidebar .wordmark br,
  .sidebar .wordmark strong {
    display: none;
  }
  .sidebar > .eyebrow,
  .sidebar-foot {
    display: none;
  }
  .sidebar select {
    margin: 15px 0 0;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 0;
    gap: 0;
  }
  .sidebar nav button {
    padding: 8px;
    gap: 5px;
  }
  .sidebar nav button span {
    font-size: 10px;
  }
  .sidebar nav button:last-child {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  header {
    padding: 12px 18px;
    min-height: 55px;
  }
  header > span {
    font-size: 10px;
  }
  #content {
    padding: 25px 16px;
  }
  .mode-banner {
    padding: 10px 16px;
    font-size: 11px;
  }
  .page-top {
    align-items: flex-start;
    gap: 10px;
  }
  .page-top h1 {
    font-size: 32px;
  }
  .page-top p {
    font-size: 12px;
  }
  .top-actions {
    flex-direction: column;
  }
  .top-actions button {
    font-size: 11px;
    padding: 8px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 28px;
  }
  .delivery {
    padding: 16px;
    gap: 13px;
  }
  .delivery .caption {
    font-size: 12px;
  }
  .calendar {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(70px, 1fr));
  }
  .calendar-entry {
    font-size: 9px;
  }
  .day {
    min-height: 95px;
  }
  footer {
    padding: 16px;
    gap: 20px;
  }
  footer span {
    display: none;
  }
  dialog {
    padding: 20px;
  }
  .dialog-foot {
    flex-wrap: wrap;
  }
  .dialog-foot .error {
    max-width: 100%;
  }
  .login-card {
    padding: 35px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .calendar-tools {
    gap: 8px;
  }
  .calendar-tools h2 {
    font-size: 21px;
  }
  .page-top .eyebrow {
    font-size: 9px;
  }
}
