:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #292b25;
  background: #f6f5f1;
  font-synthesis: none;
  --accent: #526242;
  --line: #dedfd6;
  --muted: #797e71;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  font-weight: 550;
  font-size: 14px;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover,
.button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #8ea872;
  outline-offset: 3px;
}
.primary {
  background: var(--accent);
  color: #fff;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
}
.subtle {
  background: transparent;
  color: var(--muted);
}
.icon-button {
  font-size: 25px;
  background: transparent;
  padding: 3px 12px;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}
h1 {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1.8px;
  margin: 0 0 12px;
}
h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}
p {
  line-height: 1.65;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
}
input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: #292b25;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  display: flex;
  gap: 24px;
}
legend {
  font-size: 13px;
  padding: 0 5px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  display: flex;
  background: var(--accent);
  color: #fff;
  border-radius: 15px;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -3px;
  padding-right: 4px;
}
.brand-mark.small {
  width: 36px;
  height: 36px;
  font-size: 23px;
  border-radius: 10px;
}
.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 20% 80%, #e6e9dd 0, transparent 60%);
}
.login-card {
  max-width: 400px;
  width: 100%;
  display: grid;
  gap: 20px;
}
.login-card .eyebrow {
  margin-top: 22px;
  margin-bottom: 0;
}
.login-card h1 {
  line-height: 1.1;
  font-size: 52px;
}
.login-card p {
  margin: 0;
}
.login-card #login-error {
  color: #9d4235;
  font-size: 13px;
}
.header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 5vw;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}
.header nav {
  display: flex;
  gap: 8px;
}
.nav {
  background: transparent;
  color: var(--muted);
}
.nav.active {
  background: #e7ebdf;
  color: var(--accent);
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 48px 5vw 80px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p:last-child {
  margin: 0;
  font-size: 14px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.upload-label {
  display: block;
}
.connections {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chip {
  font-size: 11px;
  background: #e8ecdf;
  color: #475d37;
  padding: 7px 11px;
  border-radius: 20px;
}
.chip.off {
  background: #edece7;
  color: #787a71;
}
.chip.warn {
  background: #f5e8d2;
  color: #8a6526;
}
.sync-state {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 30px;
}
.section-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 17px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.asset {
  position: relative;
  min-width: 0;
}
.asset-image {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  background: #e8e8df;
}
.asset-select {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 3px solid transparent;
  border-radius: 15px;
  overflow: hidden;
}
.asset.selected .asset-select {
  border-color: var(--accent);
}
.asset-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  box-shadow: 0 2px 10px #0001;
  pointer-events: none;
}
.asset.selected .asset-badge {
  background: var(--accent);
  color: #fff;
}
.asset-meta {
  padding: 10px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.asset-meta button {
  padding: 3px 6px;
  background: none;
  font-size: 11px;
}
.empty {
  text-align: center;
  border: 1px dashed #d7d9cc;
  border-radius: 14px;
  padding: 65px 20px;
  margin: 20px 0;
}
.empty p {
  font-size: 14px;
  color: var(--muted);
}
.empty-symbol {
  font-size: 45px;
  color: #8b997e;
  display: block;
  margin-bottom: 16px;
}
.selection-bar {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff;
  padding: 12px 16px 12px 24px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 50px #28351e18;
  border-radius: 14px;
  font-size: 13px;
  z-index: 2;
}
.more {
  display: block;
  margin: 25px auto;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 5vw;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
dialog {
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 25px 100px #0003;
  background: #fafaf7;
  max-height: 92dvh;
}
dialog::backdrop {
  background: #20261dcc;
  backdrop-filter: blur(4px);
}
.editor {
  width: min(1080px, 94vw);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  padding-bottom: 8px;
}
.editor-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.fields {
  display: grid;
  gap: 19px;
}
.slides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0 22px;
}
.slide {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.slide img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: contain;
  display: block;
  background: #f5f3ef;
}
.slides.square .slide img {
  aspect-ratio: 1/1;
}
.slide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-size: 12px;
}
.slide-controls button {
  padding: 5px 8px;
  font-size: 13px;
  background: none;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.dialog-footer p {
  margin-right: auto;
  color: #9d4235;
  font-size: 12px;
  max-width: 50%;
}
.review {
  max-width: 470px;
  width: 90vw;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.post-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e8e8df;
}
.post-body {
  padding: 18px;
}
.post-body h2 {
  font-size: 18px;
}
.post-body p {
  font-size: 12px;
  color: var(--muted);
}
.post-body button {
  margin-top: 12px;
}
.post-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.publication-results {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.publication-result {
  background: #eeefe8;
  border-radius: 8px;
  padding: 15px;
  font-size: 13px;
}
.publication-result p {
  font-size: 12px;
}
.publication-result button {
  padding: 7px 10px;
  margin: 4px 6px 0 0;
}
.publication-result a {
  color: var(--accent);
}
.toast {
  position: fixed;
  right: 25px;
  top: 100px;
  background: #293325;
  color: #fff;
  box-shadow: 0 5px 30px #0002;
  padding: 14px 20px;
  border-radius: 9px;
  font-size: 13px;
  max-width: 400px;
  z-index: 10;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .editor-columns {
    gap: 22px;
  }
  .header {
    padding: 0 4vw;
  }
  .brand > span:last-child {
    display: none;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 34px;
  }
  .header {
    height: 70px;
    gap: 8px;
  }
  .header nav {
    gap: 0;
  }
  .nav {
    padding: 10px 12px;
  }
  main {
    padding: 30px 5vw 90px;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .editor-columns {
    grid-template-columns: 1fr;
  }
  .editor {
    padding: 20px;
  }
  .dialog-footer {
    flex-wrap: wrap;
  }
  .dialog-footer p {
    max-width: 100%;
    width: 100%;
  }
  .selection-bar {
    width: 92%;
    gap: 8px;
    justify-content: space-between;
    padding: 10px;
    font-size: 12px;
  }
  .selection-bar button {
    padding: 10px;
  }
  .page-heading .actions {
    width: 100%;
  }
  .page-heading .actions > * {
    flex: 1;
    text-align: center;
  }
  .toast {
    right: 5%;
    left: 5%;
    max-width: none;
  }
  footer {
    gap: 15px;
    align-items: flex-start;
  }
  .slides {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .slide-controls {
    flex-wrap: wrap;
    padding: 4px;
  }
  .slide-controls button {
    padding: 4px;
  }
  .brand-mark.small {
    width: 30px;
    height: 30px;
  }
}

.danger {
  color: #a33e35;
  border-color: #dbb5ae;
}
@media (max-width: 700px) {
  .selection-bar {
    flex-wrap: wrap;
  }
}

.prompt-dialog {
  width: min(800px, 92vw);
  max-height: 85vh;
}
.prompt-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  max-height: 58vh;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.comment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.comment-option input {
  width: auto;
  margin: 0;
}

.publishing-control {
  padding: 16px 20px;
  margin: 0 0 20px;
  border: 1px solid #d7d9cc;
  border-radius: 12px;
  background: #f3f4eb;
}
.publishing-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  cursor: pointer;
}
.publishing-switch input {
  width: 20px;
  height: 20px;
}
#publishing-state {
  font-size: 12px;
  color: var(--muted);
}
.publishing-control .hint {
  margin: 8px 0 0;
}
.asset.used .asset-image {
  outline: 2px solid #6d8051;
  outline-offset: -2px;
}
.asset-used {
  position: absolute;
  top: 14px;
  left: 14px;
  pointer-events: none;
  background: #344b2a;
  color: #fff;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 10px #0002;
}
