:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202a36;
  background: #f3f5f7;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #4a8c79;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
  color: #677380;
}
button,
.btn {
  padding: 10px 15px;
  background: white;
  border: 1px solid #d6dde2;
  color: #27313b;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  text-decoration: none;
  font-weight: 550;
}
button:hover,
.btn:hover {
  background: #f0f4f2;
  border-color: #81978c;
}
.primary {
  background: #234f42;
  color: white;
  border-color: #234f42;
}
.primary:hover {
  background: #173e32;
}
.danger {
  color: #a13535;
}
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #132c26;
  color: #c0d0c8;
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  padding: 0 10px 32px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: #cbdf9e;
  color: #18372d;
  display: grid;
  place-items: center;
  font-size: 25px;
  border-radius: 5px;
}
.sidebar .section-label {
  padding: 20px 12px 10px;
  color: #8ca397;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.sidebar button {
  background: transparent;
  border: 0;
  color: inherit;
  justify-content: flex-start;
  padding: 12px 14px;
  margin-bottom: 4px;
  font-weight: 450;
  font-size: 13px;
}
.sidebar button.active {
  background: #284a3d;
  color: #e4f0d0;
}
.sidebar .bottom {
  margin-top: auto;
  border-top: 1px solid #365044;
  padding: 20px 12px 0;
  font-size: 11px;
  line-height: 1.8;
}
.main {
  grid-column: 2;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid #dde3e7;
  padding: 0 38px;
  gap: 18px;
}
.topbar label {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: #677380;
}
.topbar select {
  min-width: 205px;
  border: 0;
  font-weight: 600;
  color: #253c31;
  background: white;
}
.topbar > span {
  font-size: 11px;
  color: #64766c;
}
.workspace {
  padding: 36px 38px;
  max-width: 1550px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading p {
  margin-top: 8px;
  font-size: 13px;
}
.kicker {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #74847b;
  margin-bottom: 11px;
  font-weight: 650;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 28px;
}
.stat {
  padding: 24px;
  background: white;
  border: 1px solid #dee4e8;
  border-radius: 9px;
}
.stat span {
  font-size: 12px;
  color: #77818b;
}
.stat strong {
  display: block;
  font-size: 34px;
  font-weight: 500;
  margin-top: 15px;
}
.stat small {
  color: #77818b;
  font-size: 10px;
  display: block;
  margin-top: 8px;
}
.panel {
  background: white;
  border: 1px solid #dfe5e8;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 24px;
}
.panel-head {
  padding: 22px 24px;
  border-bottom: 1px solid #e7ecee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-head p {
  font-size: 12px;
  margin-top: 5px;
}
.panel-body {
  padding: 24px;
}
.brief {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 25px;
  background: #e7eddf;
  padding: 24px;
  border: 1px solid #d2ddc7;
  border-radius: 8px;
  margin-bottom: 25px;
}
.brief h3 {
  color: #36513c;
  margin-bottom: 8px;
}
.brief p {
  font-size: 12px;
  max-width: 800px;
  color: #5c6d57;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #839968;
  border-radius: 50%;
  margin-right: 6px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filters button {
  font-size: 11px;
  padding: 7px 10px;
  border-color: transparent;
  background: #f4f6f7;
}
.filters button.active {
  background: #dfebe2;
  color: #284c37;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #869098;
  padding: 15px 24px;
  border-bottom: 1px solid #e7ecee;
  font-weight: 550;
  background: #fafbfc;
}
td {
  padding: 19px 24px;
  border-bottom: 1px solid #edf0f2;
  font-size: 12px;
}
td strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 5px;
}
td small {
  color: #849099;
}
.status {
  font-size: 10px;
  border-radius: 4px;
  background: #edf0f3;
  padding: 5px 8px;
  white-space: nowrap;
}
.status-published {
  background: #e0eee4;
  color: #367345;
}
.status-scheduled {
  background: #e6edf9;
  color: #456796;
}
.status-review {
  background: #fff0d8;
  color: #9b7728;
}
.empty {
  padding: 60px 24px;
  text-align: center;
}
.empty .empty-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: #eff3ee;
  border-radius: 10px;
  margin: 0 auto 18px;
  font-size: 25px;
  color: #7c927b;
}
.empty h3 {
  margin-bottom: 10px;
}
.empty p {
  font-size: 12px;
  margin-bottom: 20px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.setup-row {
  padding: 15px 0;
  border-bottom: 1px solid #edf0f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.setup-row:last-child {
  border: 0;
}
.subtle {
  color: #87918a;
  font-size: 11px;
}
.site-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.site-card {
  padding: 26px;
}
.site-card h2 {
  margin: 12px 0;
}
.site-card p {
  font-size: 12px;
  min-height: 60px;
}
.site-card .domain {
  font: 11px monospace;
  color: #7c8a80;
}
.site-card .card-actions {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}
.site-card .card-actions button,
.site-card .card-actions a {
  font-size: 11px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
}
label.field small {
  font-weight: 400;
  color: #7e8993;
  line-height: 1.5;
}
input,
textarea,
select {
  padding: 11px 12px;
  border: 1px solid #d8e0e4;
  border-radius: 5px;
  background: #fff;
  color: #28323e;
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #97b1a2;
  outline-offset: 1px;
}
textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.7;
}
.wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
}
.check input {
  width: auto;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.editor-grid .panel-body {
  display: grid;
  gap: 20px;
}
#body-editor {
  min-height: 500px;
  font:
    13px/1.8 ui-monospace,
    monospace;
}
#preview-body {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#preview-body h2,
#preview-body h3 {
  margin: 25px 0 15px;
}
#preview-body p {
  margin: 0 0 18px;
}
#preview-body pre {
  overflow: auto;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.notes {
  padding: 18px;
  background: #f3f6ef;
  border: 1px solid #dbe4cf;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
}
.notes ul {
  padding-left: 18px;
  margin: 10px 0;
}
.notes.error {
  background: #fff5ef;
  border-color: #efd9c9;
  color: #9a5139;
}
.image-preview {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}
.token-value {
  padding: 18px;
  background: #eef5e7;
  border: 1px solid #c5d8b8;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.token-value code {
  display: block;
  margin: 12px 0;
  user-select: all;
}
code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.login {
  max-width: 430px;
  margin: 12vh auto;
  padding: 35px;
  background: white;
  border: 1px solid #dee5df;
  border-radius: 12px;
}
.login .brand {
  color: #244f3f;
  padding: 0 0 30px;
}
.login h1 {
  font-size: 27px;
}
.login p {
  font-size: 13px;
  margin: 12px 0 25px;
}
.login form {
  display: grid;
  gap: 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #244f42;
  color: white;
  max-width: 600px;
  padding: 16px 22px;
  border-radius: 7px;
  box-shadow: 0 8px 30px #18332622;
  display: none;
  z-index: 20;
  line-height: 1.6;
}
#toast.visible {
  display: block;
}
#toast.error {
  background: #853d34;
}
.loading {
  padding: 50px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.media-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
}
.media-grid button {
  font-size: 11px;
  width: 100%;
  margin-top: 8px;
}
.inline-error {
  color: #a13535;
  font-size: 12px;
  line-height: 1.6;
}
.revision {
  padding: 16px;
  border-bottom: 1px solid #e1e7e4;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    width: 200px;
  }
  .workspace {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .site-list {
    grid-template-columns: 1fr 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 750px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 18px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
  }
  .sidebar .brand {
    width: 100%;
    padding: 0 5px 15px;
  }
  .sidebar .section-label,
  .sidebar .bottom {
    display: none;
  }
  .sidebar button {
    padding: 8px;
    font-size: 11px;
    margin: 0;
  }
  .topbar {
    padding: 15px;
    height: auto;
    flex-wrap: wrap;
  }
  .topbar label {
    width: 100%;
  }
  .topbar select {
    min-width: 0;
  }
  .workspace {
    padding: 24px 15px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
  }
  h1 {
    font-size: 28px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .site-list,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .brief {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-head {
    align-items: start;
    flex-direction: column;
  }
  .login {
    margin: 50px 15px;
  }
  td,
  th {
    padding: 16px;
  }
  .wide {
    grid-column: auto;
  }
}

.spaced {
  margin-top: 18px;
}

[hidden] {
  display: none !important;
}
