:root { color-scheme: light dark; }
body { font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; max-width: 860px; margin: 32px auto; padding: 0 16px; }
header { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 18px; margin: 0; }
.instance-name { font-size: 14px; font-weight: 600; opacity: .75; }
.separator { opacity: 0.6; margin: 0 0.4em; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.card { border: 1px solid rgba(127,127,127,.35); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.meta { opacity: .75; font-size: 13px; margin-top: 6px; }
.small { font-size: 13px; opacity: .8; }
.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 100;
  background: #000;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
}
.skip-link:focus {
  top: 8px;
}
textarea, input, select { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(127,127,127,.35); background: transparent; }
textarea { min-height: 260px; }
#body { border-radius: 0 10px 10px 10px; }
button { font: inherit; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(127,127,127,.35); background: rgba(127,127,127,.12); cursor: pointer; }
button:hover { background: rgba(127,127,127,.18); }
.row { display: grid; gap: 10px; }
.actions { display: flex; gap: 0; align-items: center; }
.editor-tabs {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  margin-bottom: 0;
}
.editor-tab-btn {
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 12px 5px;
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(127,127,127,.35);
  border-bottom-color: rgba(127,127,127,.35);
  background: rgba(127,127,127,.08);
  position: relative;
  top: 1px;
  z-index: 1;
}
.editor-tab-btn:hover {
  background: rgba(127,127,127,.14);
}
.editor-tab-btn.active {
  font-weight: 600;
  background: transparent;
  border-bottom-color: transparent;
  z-index: 2;
}
.editor-preview-layout {
  display: grid;
  gap: 10px;
}
.post-title {
  display: flex;
  align-items: center;
  gap: 0.35em;
}
.pin-indicator {
  font-size: 14px;
}
.post-meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5em;
  row-gap: 0.2em;
  margin: 8px 0 0;
}
.post-meta-list dt {
  margin: 0;
  opacity: 0.75;
  font-size: 13px;
}
.post-meta-list dd {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
}
.post-meta-list.compact {
  margin-top: 6px;
}
.preview-panel { margin: 0; padding: 0; border: none; background: none; }
.preview-content {
  display: block;
  min-height: 260px;
  max-height: 260px;
  overflow: auto;
  resize: vertical;
  border: 1px solid rgba(127,127,127,.35);
  border-radius: 0 12px 12px 12px;
  padding: 14px 16px;
  box-sizing: border-box;
}
.preview-content.empty { opacity: 0.5; }

hr { border: 0; border-top: 1px solid rgba(127,127,127,.25); margin: 18px 0; }
pre { overflow: auto; padding: 12px; border-radius: 12px; border: 1px solid rgba(127,127,127,.25); }
.site-footer { margin-top: 48px; text-align: center; }
.info-banner { padding: 0.5em 16px; margin: 12px 0; border-radius: 12px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); font-size: 13px; opacity: .75; }
.info-banner.warning { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.4); }
