:root {
  color-scheme: light;
  color: #555;
  background: #eee;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  --ink: #5c6b72;
  --muted: #8aa0a8;
  --line: #d0d7de;
  --paper: #fff;
  --page: #f4f8fc;
  --link: #66afef;
  --field: #f6f8fa;
  --danger: #c0392b;
  --soft: #f7f7f7;
  --footer: #262a30;
}

* { box-sizing: border-box; }

body { margin: 0; background: var(--page); color: var(--ink); }

a { color: var(--link); text-decoration: none; }

a:hover { text-decoration: underline; }

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

.nav-check, .search-check { position: absolute; opacity: 0; pointer-events: none; }

.site {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.banner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding-top: max(18px, env(safe-area-inset-top));
  background:
    linear-gradient(180deg, rgba(16, 28, 40, 0.05), rgba(16, 28, 40, 0.42)),
    linear-gradient(165deg, #8ec8e6 0%, #d5ebc4 36%, #6e9a5c 37%, #4d7346 70%, #2f4a30 100%);
}

.banner-in, .foot-in, .head-search {
  width: min(1120px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.banner-in { margin-bottom: 8px; }

.site-name { margin: 0 0 18px; font-size: 40px; font-weight: 600; line-height: 1.15; }

.site-name a { color: #fff; text-decoration: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28); }

.site-name a:hover { color: #fff; }

.nav-bar { background: rgba(0, 0, 0, 0.22); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  min-height: 42px;
  margin-bottom: 0;
}

.nav a, .nav .link, .search-btn, .menu {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.nav a:hover, .nav .link:hover, .search-btn:hover, .nav a.is-on { color: #fff; text-decoration: none; box-shadow: inset 0 -2px #fff; }

.nav-end { display: flex; align-items: center; margin-left: auto; }

.langs { display: flex; align-items: center; gap: 2px; margin-right: 4px; }

.nav .langs a { min-height: 28px; padding: 0 6px; font-size: 12px; opacity: 0.75; }

.nav .langs a.is-on { opacity: 1; }

.nav form { margin: 0; }

.nav a[href="/login"] { margin-left: 0; }

.nav .menu { margin-left: 0; }

.menu {
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.head-search { display: none; gap: 8px; margin-top: 16px; margin-bottom: 0; }

.search-check:checked ~ .site .head-search { display: flex; }

.shade { display: none; }

.wrap {
  display: grid;
  gap: 28px;
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 36px;
  padding: 0;
  background: transparent;
  border: 0;
}

.column { min-width: 0; }

.side { display: flex; flex-direction: column; gap: 22px; }

.archive-title {
  margin: 18px 0 0;
  font-size: 22px;
  font-weight: 650;
}

.widget {
  margin: 0;
  padding: 12px 14px 8px;
  background: #ddd;
}

.widget h3 {
  margin: 0 0 8px;
  padding-bottom: 0;
  border-bottom: 0;
  color: #777;
  font-size: 14px;
  font-weight: 650;
}

.widget form { margin: 0; }

.widget ul { list-style: none; margin: 0; padding: 0; }

.widget li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 28px;
  border-bottom: 0;
}

.widget li a {
  min-width: 0;
  overflow: hidden;
  color: #555;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget li a.is-on { color: var(--link); }

.widget .count { margin-left: auto; color: var(--muted); font-size: 12px; }

.search, .add-cate, .drop-cate {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.search input, .add-cate input, .add-cate select, .drop-cate select, .ask input, .write select, .cate-pick select, .head-search input, .share-box input,
.admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.admin-form select,
.gate input {
  width: auto;
  min-width: 0;
  flex: 1;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
}

.search input:focus, .add-cate input:focus, .add-cate select:focus, .drop-cate select:focus, .head-search input:focus, .share-box input:focus,
.admin-form input:focus, .admin-form select:focus, .gate input:focus {
  outline: none;
  border-color: var(--link);
  background: #fff;
  box-shadow: 0 0 0 3px #66afef33;
}

.post { margin: 0 0 42px; }

.post-meta { margin: 0 0 8px 12px; }

.chip {
  display: inline-block;
  padding: 2px 8px;
  background: var(--link);
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
  text-decoration: none;
}

a.chip:hover { color: #fff; text-decoration: none; }

.chip-cate { margin-left: 8px; color: #bbb; font-size: 13px; text-decoration: none; }

.chip-cate::before { content: "•"; margin-right: 8px; }

.chip-cate:hover { color: var(--link); }

.post-card {
  background: var(--paper);
  padding: 16px 20px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.post h2, .entry h1, .write-title {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

.post h2 { font-size: 2em; }

.post h2 a { color: inherit; text-decoration: none; }

.post h2 a:hover { color: var(--link); }

.entry h1 { font-size: 2em; }

.entry { margin-bottom: 8px; }

.meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.meta a { color: var(--muted); }

.meta a:hover { color: var(--link); }

.meta > * + *::before { content: " · "; color: #c8c1b6; }

.excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  margin: 14px 0 0;
  color: #555;
  font-size: 15px;
  line-height: 1.75;
}

.article-more-link { margin: 16px 0 4px; }

.note-edit, .article-more-link .note-edit { margin-left: 12px; font-size: 13px; }

.more {
  display: inline-block;
  margin-top: 0;
  padding: 6px 15px;
  border-radius: 15px;
  background: #eee;
  color: #999;
  font-size: 14px;
  text-decoration: none;
  text-shadow: 0 1px #fff;
}

.more:hover { background: var(--link); color: #fff; text-decoration: none; text-shadow: none; }

.prose { margin-top: 22px; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }

.prose :first-child { margin-top: 0; }

.prose p { margin: 0 0 1em; }

.prose h1, .prose h2, .prose h3 { margin: 1.3em 0 0.55em; line-height: 1.4; font-weight: 650; }

.prose img, .prose video, .prose audio, .ee-content img, .ee-content video, .ee-content audio {
  max-width: 100%;
  height: auto;
}

.prose img, .prose video { display: block; margin: 12px auto; cursor: zoom-in; }

.prose .anchor { margin-left: 8px; color: #ccc; font-weight: 400; text-decoration: none; }

.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor { color: var(--link); }

.prose pre, .ee-content pre, .prose code, .ee-content code {
  max-width: 100%;
  font-family: Consolas, "Courier New", monospace;
}

.prose pre, .ee-content pre {
  padding: 12px 14px;
  overflow-x: auto;
  background: #f7f7f7;
  border: 1px solid var(--line);
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
}

.prose blockquote, .ee-content blockquote {
  margin: 1em 20px;
  padding: 0;
  border: 0;
  color: #777;
  font-family: Georgia, "Songti SC", "Noto Serif SC", SimSun, serif;
  text-align: center;
}

.prose table, .ee-content table { width: 100%; border-collapse: collapse; }

.prose th, .prose td, .ee-content th, .ee-content td {
  padding: 6px 8px;
  border: 1px solid #e5e5e5;
}

.log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.log-actions form, .manage form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }

.manage { font-size: 13px; color: var(--muted); }

.empty-log {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 28px 20px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

.year { margin: 22px 0 8px; color: #999; font-size: 18px; font-weight: 400; }

.year:first-child { margin-top: 4px; }

.archive-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed #e5e5e5;
}

.archive-row time { flex: none; color: #999; font-size: 13px; }

.archive-row a { color: #555; }

.entry-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #999;
  font-size: 13px;
}

.share {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
}

.share:hover { color: #555; }

.share-box { margin-top: 10px; }

.share-box input { width: 100%; }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.article-nav a {
  display: grid;
  gap: 4px;
  max-width: 46%;
  color: #999;
  text-decoration: none;
}

.article-nav .older { margin-left: auto; text-align: right; }

.article-nav span { color: #ccc; font-size: 12px; font-weight: 700; letter-spacing: 1px; }

.article-nav strong { color: #777; font-weight: 400; }

.article-nav a:hover strong { color: #555; }

.pager { display: flex; gap: 14px; align-items: center; margin: 8px 0 20px; color: #999; }

.pager a { color: var(--link); }

.light {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.light[hidden] { display: none; }

.light img { max-width: min(1100px, 100%); max-height: 88vh; cursor: zoom-out; }

.error { margin: 12px 0; color: var(--danger); }

.primary, .quiet, .text, .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 14px;
  border: 1px solid var(--link);
  border-radius: 2px;
  background: var(--link);
  color: #fff;
  text-decoration: none;
}

.quiet, .text {
  border-color: #ddd6cb;
  background: var(--paper);
  color: #444;
}

.danger {
  border-color: #f0c2c2;
  background: var(--paper);
  color: var(--danger);
}

.primary:hover { filter: brightness(1.05); }

.check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }

.check input { width: auto; min-height: 0; }

.write {
  padding: 8px 20px 18px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.write-title {
  width: 100%;
  min-width: 0;
  padding: 18px 0 10px;
  border: 0;
  background: transparent;
  font-size: 34px;
}

.write-title:focus, .ee-content:focus { outline: none; }

.cate-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.cate-pick select { flex: 0 1 16rem; }

.email-editor { border-top: 1px solid var(--line); }

.ee-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.ee-toolbar select {
  flex: 0 1 auto;
  width: auto;
  max-width: 7.5rem;
  min-height: 28px;
  margin-right: 4px;
  padding: 0 4px;
  border: 1px solid #e1e1e1;
  background: var(--paper);
}

.ee-toolbar > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #555;
}

.ee-toolbar > button svg { width: 16px; height: 16px; fill: currentColor; }

.ee-toolbar > button strong,
.ee-toolbar > button em,
.ee-toolbar > button u,
.ee-toolbar > button s,
.ee-toolbar > button code {
  font-size: 14px;
  font-style: normal;
  text-decoration: none;
}

.ee-toolbar > button em { font-style: italic; }

.ee-toolbar > button u { text-decoration: underline; }

.ee-toolbar > button s { text-decoration: line-through; }

.ee-toolbar > button code { font-family: Consolas, monospace; font-size: 11px; }

.ee-toolbar > button:hover, .ee-toolbar > button.is-active {
  background: #e7f1f5;
  color: var(--link);
}

.ee-toolbar-divider { width: 1px; height: 16px; margin: 0 4px; background: #ddd; }

.ee-content {
  min-height: 460px;
  padding: 18px 2px 28px;
  font-size: 16px;
  line-height: 1.85;
  outline: none;
}

.ee-content.is-empty::before {
  content: "开始编写笔记...";
  color: #aaa;
}

.ee-content.is-empty[data-placeholder]::before {
  content: attr(data-placeholder);
}

.ee-content p { margin: 0 0 0.7em; }

.ee-content h1 { margin: 0.8em 0 0.4em; font-size: 1.7em; }

.ee-content h2 { margin: 0.8em 0 0.4em; font-size: 1.35em; }

.ee-content h3 { margin: 0.7em 0 0.3em; font-size: 1.15em; }

.ee-content ul, .ee-content ol { margin: 0.4em 0; padding-left: 1.4em; }

.ee-content li:has(> input[type="checkbox"]) { list-style: none; }

.ee-content input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0 0.4em 0 0;
  vertical-align: middle;
  position: relative;
  top: -2px;
  accent-color: var(--link);
}

.publish { display: flex; gap: 12px; align-items: center; margin-top: 12px; }

.foot {
  margin-top: auto;
  border-top: 0;
  padding: 18px 0 max(18px, env(safe-area-inset-bottom));
  background: var(--footer);
  color: #999;
  font-size: 13px;
}

.foot a { color: #bbb; }

.foot-in { min-height: 48px; display: flex; align-items: center; justify-content: center; }

.ask {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(44, 42, 38, 0.28);
}

.ask[hidden] { display: none; }

.ask form {
  display: grid;
  gap: 10px;
  width: min(420px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.ask .row { display: flex; justify-content: flex-end; gap: 8px; }

.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.card {
  display: grid;
  gap: 10px;
  width: min(400px, 100%);
  padding: 28px 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.card h1 { margin: 0; font-size: 22px; }

.card p { margin: 0; color: var(--muted); }

.brand { font-size: 28px; font-weight: 700; }

.card input {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #ddd6cb;
  background: var(--paper);
}

.card label { font-size: 13px; color: var(--muted); }

.back { justify-self: start; font-size: 13px; }

.wide { width: 100%; }

@media (max-width: 879px) {
  .banner { min-height: 180px; }

  .site-name { margin-bottom: 12px; font-size: 30px; }

  .nav .nav-cate { display: none; }

  .nav a[href="/login"] { margin-left: 0; }

  .post h2 { font-size: 1.45em; }

  .entry h1, .write-title { font-size: 1.6em; }

  .article-nav { display: grid; }

  .article-nav a, .article-nav .older { max-width: none; text-align: left; }

  .side {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    padding: 16px;
    overflow: auto;
    background: var(--page);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform 0.2s ease;
  }

  .nav-check:checked ~ .site .side { transform: none; }

  .nav-check:checked ~ .shade {
    display: block;
    position: fixed;
    z-index: 15;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
  }
}

@media (min-width: 880px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 28px;
    padding: 0;
  }

  .menu, .shade { display: none; }

  .side { position: sticky; top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .side { transition: none; }
}

.banner-sub {
  margin: -8px 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.admin-entry { margin: 0 0 10px; }

html[data-theme="light"] .banner {
  min-height: 0;
  padding-top: max(8px, env(safe-area-inset-top));
  background: #fff;
  border-bottom: 1px solid var(--line);
}

html[data-theme="light"] .site-name { margin: 14px 0 6px; font-size: 28px; }

html[data-theme="light"] .site-name a { color: #444; text-shadow: none; }

html[data-theme="light"] .site-name a:hover { color: var(--link); }

html[data-theme="light"] .banner-sub { color: #888; text-shadow: none; }

html[data-theme="light"] .nav-bar { background: #fff; border-top: 1px solid var(--line); }

html[data-theme="light"] .nav a,
html[data-theme="light"] .nav .link,
html[data-theme="light"] .search-btn,
html[data-theme="light"] .menu { color: #555; }

html[data-theme="light"] .nav a:hover,
html[data-theme="light"] .nav .link:hover,
html[data-theme="light"] .search-btn:hover,
html[data-theme="light"] .nav a.is-on {
  color: var(--link);
  box-shadow: inset 0 -2px var(--link);
}

html[data-menu="1"]:not([data-theme="particle"]) .nav-bar {
  background: var(--menu-bg);
}

html[data-menu="1"]:not([data-theme="particle"]) .nav a,
html[data-menu="1"]:not([data-theme="particle"]) .nav .link,
html[data-menu="1"]:not([data-theme="particle"]) .search-btn,
html[data-menu="1"]:not([data-theme="particle"]) .menu {
  color: var(--menu-fg);
}

html[data-theme="light"] .menu { border-color: var(--line); }

html[data-theme="light"] .widget { background: transparent; padding-left: 0; padding-right: 0; }

html[data-theme="light"] .foot {
  background: transparent;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

html[data-theme="light"] .foot a { color: var(--link); }

@media (min-width: 880px) {
  html[data-side="left"] .wrap { grid-template-columns: 280px minmax(0, 1fr); }

  html[data-side="left"] .column { order: 2; }

  html[data-side="left"] .side { order: 1; }

  html[data-side="bottom"] .wrap { grid-template-columns: minmax(0, 1fr); }

  html[data-side="bottom"] .side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  html[data-side="off"] .wrap { grid-template-columns: minmax(0, 1fr); }
}

html[data-side="off"] .side,
html[data-side="off"] .menu,
html[data-side="off"] .shade { display: none; }

.note-lock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.note-lock label { color: var(--ink); font-size: 14px; }

.note-lock input {
  min-width: 180px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.note-lock button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #326891;
  color: #fff;
}

@media (max-width: 879px) {
  html[data-side="bottom"] .side {
    position: static;
    width: auto;
    padding: 0;
    border-left: 0;
    transform: none;
    background: transparent;
  }
}

body:has(.admin) {
  --bar: #1b1e27;
  --bar-text: #f4f5f7;
  --mark: #f4f5f7;
  --btn: #1b1e27;
  --btn-text: #fff;
  background: #f0f0f1;
  color: #3c434a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

body[data-scheme="modern"] { --bar: #1e1e1e; --bar-text: #f3f1f1; --mark: #7b90ff; --btn: #3858e9; --btn-text: #fff; }
body[data-scheme="fresh"] { --bar: #1d2327; --bar-text: #f0f0f1; --mark: #2271b1; --btn: #2271b1; --btn-text: #fff; }
body[data-scheme="light"] { --bar: #e5e5e5; --bar-text: #1d2327; --mark: #c64606; --btn: #007cba; --btn-text: #fff; }
body[data-scheme="blue"] { --bar: #183751; --bar-text: #e5f8ff; --mark: #e1a948; --btn: #437aa8; --btn-text: #fff; }
body[data-scheme="midnight"] { --bar: #232a2e; --bar-text: #f1f2f3; --mark: #69a8bb; --btn: #69a8bb; --btn-text: #1d2327; }
body[data-scheme="sunrise"] { --bar: #6f2724; --bar-text: #f3f1f1; --mark: #ccaf0b; --btn: #ad631e; --btn-text: #fff; }
body[data-scheme="ectoplasm"] { --bar: #392751; --bar-text: #ece6f6; --mark: #d46f15; --btn: #d46f15; --btn-text: #fff; }
body[data-scheme="ocean"] { --bar: #2b3f44; --bar-text: #f2fcff; --mark: #aa9d88; --btn: #567958; --btn-text: #fff; }
body[data-scheme="coffee"] { --bar: #382e27; --bar-text: #f3f2f1; --mark: #9ea476; --btn: #916745; --btn-text: #fff; }

.admin {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f0f0f1;
  color: #3c434a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  accent-color: var(--btn);
}

.admin-side {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 52px;
  padding: 0 8px;
  overflow: visible;
  overscroll-behavior-x: contain;
  background: var(--bar);
  color: var(--bar-text);
  scrollbar-width: thin;
}

body[data-scheme="light"] .admin-side { box-shadow: inset 0 -1px 0 #c3c4c7; }

.admin-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  color: var(--bar-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 52px;
  text-decoration: none;
}

.brand-icon {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

.admin-brand:hover { color: var(--bar-text); text-decoration: none; }

.side-scroll { display: contents; }

.side-label { display: none; }

.admin-side nav { display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; }

.admin-side nav a,
.side-foot a,
.side-foot .nav-btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 52px;
  padding: 14px 16px 11px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--bar-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.admin-side nav a.is-on,
.admin-side nav a:hover {
  background: transparent;
  border-bottom-color: var(--mark);
  color: var(--bar-text);
  box-shadow: none;
  text-decoration: none;
}

.side-foot a:hover,
.side-foot .nav-btn:hover {
  background: transparent;
  color: var(--bar-text);
  text-decoration: none;
}

.side-foot {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin-left: auto;
  padding: 0 6px;
  border: 0;
}

.side-foot form { flex: 0 0 auto; margin: 0; }

.admin-main {
  flex: 1;
  width: 100%;
  min-height: 0;
  margin: 0;
}

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

.admin-head.bare { margin-bottom: 12px; }

.admin-head form { margin: 0; }

.panel {
  padding: 28px 0 48px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.panel:has(.admin-form) { max-width: 1200px; margin-right: auto; margin-left: auto; padding: 36px 48px 56px; }

.panel > .admin-head,
.panel > .admin-lead,
.panel > .stat-row,
.panel > .dash-notes { padding-right: 32px; padding-left: 32px; }

.panel:has(.admin-form) > .admin-head { padding-right: 0; padding-left: 0; }

.admin .notice {
  border: 0;
  border-left: 4px solid #c3c4c7;
  margin: 0 32px 16px;
  padding: 8px 12px;
  background: #fff;
  color: #1e1e1e;
}

.admin .notice p {
  margin: 0.5em 0;
  padding: 0;
  color: #1e1e1e;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.54;
}

.admin .notice strong { font-weight: 600; }

.admin .notice-success {
  border-left-color: #4ab866;
  background: #eff9f1;
}

.admin .notice-error {
  border-left-color: #cc1818;
  background: #fcf0f0;
}

.admin-head:has(+ .notice) { margin-bottom: 8px; }

.panel:has(.admin-form) > .notice { margin-right: 0; margin-left: 0; }

.compose > .notice {
  grid-column: 1 / -1;
  margin: 12px 20px 0;
}

.admin-main > .admin-ok,
.admin-main > p.error {
  margin: 16px 32px 0;
  padding: 8px 12px;
  border: 0;
  border-left: 4px solid #4ab866;
  background: #eff9f1;
  color: #1e1e1e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.54;
}

.admin-main > p.error {
  border-left-color: #cc1818;
  background: #fcf0f0;
  font-weight: 400;
}

.admin-main:has(> .panel > .admin-form) > .admin-ok,
.admin-main:has(> .panel > .admin-form) > p.error {
  max-width: 1104px;
  margin-right: auto;
  margin-left: auto;
}

body:has(.compose),
.admin:has(.compose),
.admin-main:has(> .compose) { background: #f0f0f1; }

.admin-main:has(> .compose) {
  display: flex;
  flex-direction: column;
}

.compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  flex: 1;
  min-height: calc(100dvh - 52px);
  background: #f0f0f1;
}

.compose-canvas {
  min-width: 0;
  min-height: calc(100dvh - 52px);
  background: #fff;
  border-right: 1px solid #dcdcde;
}

.compose-top {
  position: relative;
  z-index: 20;
  display: block;
  padding: 16px 20px 0;
  background: #fff;
}

.compose-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compose h1.compose-sr {
  margin: -1px;
  font-size: 1px;
  line-height: 1;
}

.compose-title { display: block; margin: 0; }

.compose-actions {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 14px;
}

.compose-config { position: relative; }

.compose-config > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  list-style: none;
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: #222;
  cursor: pointer;
}

.compose-config > summary::-webkit-details-marker { display: none; }

.compose-config > summary::marker { content: ""; }

.compose-config > summary svg { width: 16px; height: 16px; fill: currentColor; }

.compose-config > summary svg path { fill-rule: evenodd; }

.compose-config[open] > summary {
  background: #000;
  color: #fff;
}

.compose-config-panel {
  position: absolute;
  top: 0;
  right: 30px;
  z-index: 30;
  width: 220px;
  padding: 10px;
  border-radius: 10px 0 10px 10px;
  background: #000;
  color: #fff;
  font-size: 16px;
  line-height: 16px;
}

.compose-config-panel label {
  display: grid;
  gap: 5px;
  margin: 0 0 8px;
}

.compose-config-panel label span {
  color: #fff;
  font-size: 14px;
  line-height: 14px;
}

.compose-config-panel .quiet {
  width: 100%;
  min-height: 28px;
  margin-top: 2px;
  border: 1px solid #777;
  border-radius: 5px;
  background: transparent;
  color: #fff;
}

.compose-config-panel .quiet:hover {
  border-color: #aaa;
  color: #fff;
  text-decoration: none;
}

.compose-sheet {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  border-top: 0;
  background: #fff;
}

.compose-media-row {
  padding: 12px 20px 0;
}

.compose-media-row .quiet {
  min-height: 32px;
  border: 1px solid #c3c4c7;
  border-radius: 2px;
  background: #f6f7f7;
  color: #2c3338;
}

.compose-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.compose-main .email-editor {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 12px 20px 28px;
  border: 1px solid #c3c4c7;
}

.compose-main .ee-toolbar {
  margin: 0;
  padding: 4px 25px;
  border: 0;
  border-bottom: 1px solid #e6e8ec;
  border-radius: 0;
  background: #fff;
}

.compose-main .ee-toolbar > button:hover,
.compose-main .ee-toolbar > button.is-active {
  background: #f3f4f6;
  color: #1f2328;
}

.compose-main .ee-content {
  flex: 1;
  min-height: 420px;
  padding: 36px 25px 64px;
  font-size: 18px;
  line-height: 1.7;
}

.compose .ee-toolbar select { flex: 0 1 auto; width: auto; max-width: 7.5rem; }

.note-rows { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid #c3c4c7; }

.note-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 16px 32px 18px;
  border-bottom: 1px solid #c3c4c7;
  transition: background-color 0.3s ease;
}

.note-rows li:hover,
.note-rows li:focus-within { background: #f3f4f6; }

.note-row-title {
  color: #1f2328;
  font-weight: 650;
  text-decoration: none;
}

.note-row-title:hover { color: #1f2328; text-decoration: none; }

.note-row-meta { color: #667085; font-size: 13px; }

.note-row-when { color: #667085; font-size: 12px; }

.note-row-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.note-rows li:hover .note-row-actions,
.note-rows li:focus-within .note-row-actions { opacity: 1; }

.note-row-actions form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }

.post-admin { list-style: none; margin: 16px 0 0; padding: 0; }

.post-admin li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 44px;
  padding: 8px 0;
  border-top: 1px solid #eef1f4;
}

.post-admin-title { flex: 1 1 180px; color: #243038; font-weight: 650; }

.post-admin form { display: flex; align-items: center; gap: 8px; margin: 0; }

@media (max-width: 879px) {
  .panel,
  .panel:has(.admin-form) { padding: 24px 16px 40px; }

  .panel > .admin-head,
  .panel > .admin-lead,
  .panel > .stat-row,
  .panel > .dash-notes,
  .panel:has(.admin-form) > .admin-head { padding-right: 0; padding-left: 0; }

  .panel > .notice,
  .admin-main > .admin-ok,
  .admin-main > p.error { margin-right: 16px; margin-left: 16px; }

  .compose > .notice { margin-right: 16px; margin-left: 16px; }

  .note-rows li { padding-right: 16px; padding-left: 16px; }

  .note-row-actions { opacity: 1; }

  .compose { grid-template-columns: minmax(0, 1fr); min-height: 0; }

  .compose-canvas { min-height: 0; border-right: 0; }

  .compose-main .ee-toolbar { padding-right: 12px; padding-left: 12px; }

  .compose-main .ee-content { padding: 24px 16px 48px; }

  .compose-config-panel {
    top: calc(100% + 8px);
    right: 0;
    width: min(220px, calc(100vw - 24px));
    border-radius: 10px;
  }

  .compose-config[open] > summary { border-radius: 10px; }
}

.admin-main h1 {
  margin: 0;
  padding: 9px 0 4px;
  color: #1d2327;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
}

.admin-lead { margin: 0 0 18px; color: #667085; }

.admin-main code { font-family: Consolas, "Segoe UI Mono", monospace; font-size: 0.92em; }

.admin-now { display: grid; gap: 8px; margin: 0 0 18px; }

.admin-now div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }

.admin-now dt { color: #667085; }

.admin-now dd { margin: 0; }

.admin-jumps,
.admin-fixed,
.plugin-list { list-style: none; margin: 0 0 16px; padding: 0; }

.admin-jumps li,
.plugin-list li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.admin-jumps span,
.plugin-list span,
.hint { color: #888; font-size: 13px; }

.admin-form { display: grid; gap: 14px; }

.admin-form label { display: grid; gap: 6px; }

.admin-form input[type="text"],
.admin-form input:not([type]),
.admin-form select {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.admin-form .check,
.admin-form .choice { display: flex; align-items: flex-start; gap: 8px; }

.admin-form .choice { padding: 10px 12px; background: #fff; border: 1px solid var(--line); }

.admin-form .choice span,
.admin-form .choice input { font-weight: 400; }

.admin-form input[type="color"] {
  width: 72px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-form fieldset { margin: 0; padding: 12px; border: 1px solid var(--line); background: #fff; display: grid; gap: 8px; }

.pack-install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.pack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  grid-auto-rows: max-content;
  gap: 4%;
  margin: 0;
}

.admin-form > .pack-grid {
  align-self: start;
  height: max-content;
}

.admin-form .pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: max-content;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
}

.admin-form .pack-card:has(input:focus-visible) {
  border-color: var(--btn);
  box-shadow: 0 0 0 1.5px var(--btn);
}

.admin-form .pack-card:has(input:disabled) { cursor: default; }

.admin-form .pack-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.admin-form .pack-card input:focus {
  outline: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pack-shot {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0;
  background: #f0f0f1;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
}

.pack-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease-in-out;
}

.admin-form .pack-card:has(.pack-details):hover .pack-shot,
.admin-form .pack-card:has(.pack-details):has(:focus-visible) .pack-shot {
  background: #fff;
}

.admin-form .pack-card:has(.pack-details):hover .pack-shot img,
.admin-form .pack-card:has(.pack-details):has(:focus-visible) .pack-shot img {
  opacity: 0.4;
}

.pack-details {
  position: absolute;
  top: 50%;
  right: 12%;
  left: 12%;
  transform: translateY(-50%);
  z-index: 2;
  margin: 0;
  padding: 15px 12px;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.1s ease-in-out;
}

.admin-form .pack-card:hover .pack-details,
.admin-form .pack-card:has(:focus-visible) .pack-details {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none), (max-width: 782px) {
  .admin-form .pack-card .pack-details {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-form .pack-card:has(.pack-details) .pack-shot img {
    opacity: 1;
  }
}

.pack-name {
  position: relative;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 16px 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0 0 7px 7px;
  background: #fff;
  color: #1d2327;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-form .pack-card:has(input:checked) .pack-name {
  background: var(--btn);
  color: var(--btn-text);
  border-top-color: var(--btn);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
  font-weight: 300;
}

.admin-form .pack-card:has(input:checked):has(.pack-customize) .pack-name,
.admin-form .pack-card:has(.pack-switch) .pack-name {
  padding-right: 132px;
}

.admin-form .pack-card:has(input:checked) .pack-name::before {
  content: attr(data-active);
  font-weight: 600;
  margin-right: 0.35em;
}

.pack-customize {
  display: none;
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 2;
  transform: translateY(-50%);
  align-items: center;
  box-sizing: border-box;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--btn-text);
  border-radius: 2px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
  text-decoration: none;
  white-space: nowrap;
}

.admin-form .pack-card:has(input:checked) .pack-customize {
  display: inline-flex;
}

.pack-switch {
  display: inline-flex;
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 2;
  transform: translateY(-50%);
  align-items: center;
  box-sizing: border-box;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #8c8f94;
  border-radius: 2px;
  background: #fff;
  color: #1d2327;
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
  white-space: nowrap;
  cursor: pointer;
}

.admin-form .pack-card:has(input:checked) .pack-switch {
  border-color: var(--btn-text);
  background: var(--btn);
  color: var(--btn-text);
}

.admin-form .pack-card:has(input:checked) .pack-switch:hover {
  background: color-mix(in srgb, var(--btn) 88%, #000);
}

.admin-main .pack-card .pack-customize,
.admin-main .pack-card .pack-customize:hover {
  background: var(--btn);
  color: var(--btn-text);
  text-decoration: none;
}

.admin-main .pack-card .pack-customize:hover {
  background: color-mix(in srgb, var(--btn) 88%, #000);
}

.admin-form .pack-card .pack-customize:focus-visible {
  outline: 1px solid transparent;
  box-shadow: 0 0 0 1.5px #fff, inset 0 0 0 1px var(--btn);
}

@media (min-width: 480px) {
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 769px) {
  .pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body.theme-open { overflow: hidden; }

.theme-overlay[hidden] { display: none; }

.theme-overlay .theme-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(240, 240, 241, 0.9);
}

.theme-overlay .theme-wrap {
  position: fixed;
  z-index: 81;
  top: 48px;
  right: 24px;
  bottom: 24px;
  left: 24px;
  background: #fff;
  box-shadow: 0 1px 20px 5px rgba(0, 0, 0, 0.1);
}

.theme-overlay .theme-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 48px;
  border-bottom: 1px solid #dcdcde;
}

.theme-overlay .theme-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid #dcdcde;
  background: transparent;
  color: #787c82;
}

.theme-overlay .theme-header button svg {
  width: 20px;
  height: 20px;
}

.theme-overlay .theme-header .close {
  width: 50px;
  margin-left: auto;
  border-right: 0;
  border-left: 1px solid #dcdcde;
}

.theme-overlay .theme-header button:hover,
.theme-overlay .theme-header button:focus-visible {
  background: #dcdcde;
  color: #000;
  outline: none;
}

.theme-overlay .theme-header button:disabled,
.theme-overlay .theme-header button:disabled:hover {
  background: transparent;
  color: #c3c4c7;
  cursor: default;
}

.theme-overlay .theme-about {
  position: absolute;
  top: 49px;
  right: 0;
  bottom: 57px;
  left: 0;
  overflow: auto;
  padding: 2% 4%;
}

.theme-overlay .theme-screenshots {
  float: left;
  width: 55%;
  max-width: 880px;
  margin: 0 30px 0 0;
}

.theme-overlay .screenshot {
  position: relative;
  overflow: hidden;
  background: #f0f0f1;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.theme-overlay .screenshot::after {
  content: "";
  display: block;
  padding-top: 66.6667%;
}

.theme-overlay .screenshot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-overlay .screenshot.blank img { display: none; }

.theme-overlay .theme-info { width: 40%; float: left; }

.theme-overlay .current-label[hidden],
.theme-overlay .theme-tags[hidden],
.theme-overlay .theme-actions .primary[hidden],
.theme-overlay .theme-actions .pack-remove[hidden],
.theme-overlay .screenshot img[hidden] {
  display: none;
}

.theme-overlay .current-label {
  display: inline-block;
  margin: 0 0 -10px;
  padding: 2px 8px;
  border-radius: 2px;
  background: #2c3338;
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
  user-select: none;
}

.theme-overlay .theme-name {
  margin: 10px 0 0;
  color: #1d2327;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.theme-overlay .theme-description {
  margin: 30px 0 0;
  color: #50575e;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.theme-overlay .theme-tags {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 3px solid #f0f0f1;
  color: #646970;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.theme-overlay .theme-tags span:first-child {
  margin-right: 5px;
  color: #3c434a;
  font-weight: 600;
}

.theme-overlay .theme-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  padding: 10px 25px 5px;
  border-top: 1px solid #f0f0f1;
  background: #f6f7f7;
}

.theme-overlay .theme-actions .primary {
  width: auto;
  min-height: 32px;
  margin: 0 0 5px;
  padding: 0 12px;
  border: 1px solid var(--btn);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
}

.theme-overlay .theme-actions .pack-remove {
  width: auto;
  min-height: 32px;
  margin: 0 0 5px;
  padding: 0 12px;
  border: 1px solid #c3c4c7;
  border-radius: 2px;
  background: #fff;
  color: #1d2327;
  font-size: 13px;
  font-weight: 500;
  line-height: 30px;
}

@media (min-width: 1680px) {
  .theme-overlay .theme-wrap {
    right: auto;
    left: 50%;
    width: 1450px;
    transform: translateX(-50%);
  }
}

@media (max-width: 782px) {
  .admin-side {
    align-items: stretch;
    min-height: 48px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .admin-brand {
    height: 48px;
    font-size: 14px;
    line-height: 48px;
  }

  .admin-side nav a,
  .side-foot a,
  .side-foot .nav-btn {
    min-height: 48px;
    padding: 0 12px;
    font-size: 13px;
  }

  .theme-overlay .theme-wrap {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .theme-overlay .theme-name { font-size: 26px; }
}

@media (max-width: 650px) {
  .theme-overlay .theme-about { bottom: 105px; }

  .theme-overlay .theme-screenshots,
  .theme-overlay .theme-info {
    float: none;
    width: 100%;
    margin: 0;
  }

  .theme-overlay .theme-info { margin-top: 22px; }

  .theme-overlay .theme-description { margin-top: 16px; }
}

.admin-form legend { padding: 0 6px; color: #667085; }

.admin .error { margin: 0 0 12px; color: #b42318; }

.field,
.search input,
.head-search input,
.share-box input,
.add-cate input,
.add-cate select,
.drop-cate select,
.ask input,
.write select,
.cate-pick select,
.admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.admin-form select,
.gate input,
.card input {
  width: 100%;
  flex: 1 1 12rem;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
}

.field:focus,
.search input:focus,
.head-search input:focus,
.share-box input:focus,
.admin-form input:focus,
.admin-form select:focus,
.gate input:focus,
.card input:focus,
.ask input:focus {
  outline: none;
  border-color: #66afef;
  background: #fff;
  box-shadow: 0 0 0 3px #66afef33;
}

.search input,
.head-search input,
.add-cate input,
.widget .search input {
  width: auto;
  flex: 1 1 8rem;
  min-width: 0;
  border-radius: 50px;
}

.admin-form select,
.write select,
.cate-pick select,
.add-cate select,
.drop-cate select {
  appearance: none;
  flex: none;
  width: 100%;
  padding-right: 32px;
  background-color: var(--field);
  background-image:
    linear-gradient(45deg, transparent 50%, #5c6b72 50%),
    linear-gradient(135deg, #5c6b72 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.ee-toolbar select {
  appearance: auto;
  width: auto;
  max-width: 7.5rem;
  min-height: 28px;
  padding: 0 4px;
  border-radius: 6px;
  background-image: none;
}

.primary,
.quiet,
.text,
.danger { border-radius: 8px; min-height: 36px; }

.admin .primary,
.admin .quiet,
.admin .text,
.admin .danger,
.admin .admin-form input,
.admin .admin-form select,
.admin .admin-form input[type="color"] { border-radius: 5px; }

.admin .compose-publish {
  display: inline-flex;
  width: 100%;
  height: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--btn);
  border-radius: 2px;
  background: var(--btn);
  box-shadow: none;
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 2.15;
  text-shadow: none;
  white-space: nowrap;
  opacity: 1;
  justify-content: center;
}

.admin .compose-publish:hover {
  background: var(--btn);
  color: var(--btn-text);
  filter: brightness(0.88);
  opacity: 1;
}

.admin .compose-config select {
  appearance: none;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 4px 22px 4px 6px;
  border: 1px solid #777;
  border-radius: 5px;
  background-color: #111;
  background-image:
    linear-gradient(45deg, transparent 50%, #ccc 50%),
    linear-gradient(135deg, #ccc 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: #fff;
  color-scheme: dark;
  box-shadow: none;
}

.admin .compose-config select:focus {
  border-color: #aaa;
  background-color: #111;
  box-shadow: none;
  outline: none;
}

.admin .compose-config option { color: #222; background: #fff; }

.admin .ee-toolbar select { border-radius: 2px; }

.admin .admin-form input[type="color"] {
  width: 44px;
  height: 32px;
  min-height: 32px;
  padding: 2px;
}

.admin .admin-form input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }

.admin .admin-form input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 3px;
}

.primary { background: #66afef; border-color: #66afef; }

.quiet,
.text {
  background: var(--field);
  border-color: var(--line);
  color: #5c6b72;
}

.admin .primary {
  border-color: var(--btn);
  background: var(--btn);
  color: var(--btn-text);
}

.admin .primary:hover {
  border-color: var(--btn);
  background: var(--btn);
  color: var(--btn-text);
  filter: brightness(0.88);
}

.admin .quiet,
.admin .text {
  border-color: #e6e8ec;
  background: #f6f7f9;
  color: #1f2328;
}

.admin .compose-config-panel .quiet {
  border-color: #777;
  background: transparent;
  color: #fff;
}

.admin .compose-config-panel .quiet:hover {
  border-color: #aaa;
  background: transparent;
  color: #fff;
}

.admin .note-row-actions button,
.admin .cate-rows button,
.admin .cate-table button,
.admin .media-side .quiet {
  border-color: #e7c8c4;
  background: #fff;
  color: #b42318;
}

.admin .note-row-actions button:hover,
.admin .cate-rows button:hover,
.admin .cate-table button:hover,
.admin .media-side .quiet:hover {
  border-color: #b42318;
  background: #fff;
  color: #b42318;
}

.admin-main a { color: #1f2328; }

.admin-main a:hover { color: #1f2328; }

.admin .check { color: #667085; }

.admin .admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.admin .admin-form select,
.admin .admin-form textarea {
  border-color: #e6e8ec;
  background-color: #f6f7f9;
  color: #1f2328;
}

.admin .admin-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
}

.admin .admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):focus,
.admin .admin-form select:focus,
.admin .admin-form textarea:focus {
  border-color: var(--btn);
  background-color: #fff;
  box-shadow: 0 0 0 2px var(--btn);
}

.admin .plugin-list li,
.admin .admin-jumps li,
.admin .post-admin li { border-top-color: #e6e8ec; }

.admin .plugin-list span,
.admin .hint { color: #667085; }

.crop .primary {
  border-color: var(--btn);
  background: var(--btn);
  color: var(--btn-text);
}

.crop .primary:hover {
  border-color: var(--btn);
  background: var(--btn);
  color: var(--btn-text);
  filter: brightness(0.88);
}

body[data-scheme="ink"] .admin .primary:hover,
body[data-scheme="ink"] .admin .compose-publish:hover,
body[data-scheme="ink"] .crop .primary:hover {
  border-color: #000;
  background: #000;
  color: #fff;
  filter: none;
}

.crop .quiet {
  border-color: #e6e8ec;
  background: #f6f7f9;
  color: #1f2328;
}

.compose-top input.write-title {
  width: 100%;
  flex: none;
  min-height: 0;
  padding: 3px 8px;
  border: 1px solid #8c8f94;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #1d2327;
  font-size: 1.7em;
  font-weight: 400;
  line-height: 1.4;
}

.compose-top input.write-title::placeholder {
  color: #8c8f94;
  font-style: normal;
  font-weight: 400;
}

.compose-top input.write-title:placeholder-shown {
  color: #8c8f94;
  font-style: normal;
}

.compose-top input.write-title:focus {
  border-color: var(--btn);
  background: #fff;
  color: #1d2327;
  box-shadow: 0 0 0 1px var(--btn);
  outline: none;
}

@media (max-width: 879px) {
  .compose-top input.write-title {
    padding-left: 8px;
    font-size: 1.5em;
  }
}

.ee-content hr[data-more] {
  height: 0;
  margin: 22px 0;
  border: 0;
  border-top: 1px dashed #c5cad3;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 240px));
  gap: 12px;
  justify-content: start;
  margin: 8px 0 22px;
}

.stat {
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  border: 1px solid #e6e8ec;
  border-radius: 0;
  background: #fff;
  color: #1f2328;
  text-decoration: none;
}

.stat strong { color: #1f2328; font-size: 32px; line-height: 1.1; }

.stat:hover { background: #f3f4f6; text-decoration: none; }

.dash-notes { margin: 0; padding: 0; list-style: none; }

.dash-notes li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e6e8ec;
}

.dash-notes a {
  min-width: 0;
  overflow: hidden;
  color: #1f2328;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-notes span { color: #667085; font-size: 13px; white-space: nowrap; }

.admin .admin-form.cate-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.admin .admin-form.cate-bar > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.admin .admin-form.cate-bar > label {
  flex: 1 1 180px;
  width: auto;
  min-width: 0;
}

.admin .admin-form.cate-bar .primary { flex: 0 0 auto; width: auto; }

.cate-rows { list-style: none; margin: 18px 0 0; padding: 0; }

.cate-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 48px;
  padding: 8px 0;
  border-top: 1px solid #e6e8ec;
}

.cate-name { min-width: 0; color: #1f2328; font-weight: 650; }

.cate-rows form { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin: 0; }

.compose-box {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.postbox {
  border: 1px solid #c3c4c7;
  background: #fff;
}

.postbox h2 {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid #c3c4c7;
  background: #f6f7f7;
  color: #1d2327;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.postbox-in {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.postbox .quiet { width: 100%; }

.postbox select {
  appearance: none;
  width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 0 28px 0 8px;
  border: 1px solid #8c8f94;
  border-radius: 2px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #50575e 50%),
    linear-gradient(135deg, #50575e 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: #2c3338;
  font-size: 13px;
}

.postbox select:focus {
  border-color: var(--btn);
  background-color: #fff;
  box-shadow: 0 0 0 1px var(--btn);
  outline: none;
}

.cate-screen {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.admin .cate-add.form-wrap {
  display: block;
}

.cate-add h2 {
  margin: 0 0 14px;
  color: #1d2327;
  font-size: 14px;
  font-weight: 600;
}

.admin .form-field { margin: 0 0 16px; }

.admin .form-field label {
  display: block;
  margin: 0 0 4px;
  color: #1d2327;
  font-size: 14px;
  font-weight: 400;
}

.admin .cate-add.admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.admin .cate-add.admin-form select {
  width: 100%;
  max-width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #8c8f94;
  border-radius: 2px;
  background-color: #fff;
  box-shadow: none;
  color: #2c3338;
  font-size: 14px;
}

.admin .cate-add.admin-form select {
  padding-right: 24px;
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
}

.admin .cate-add .description,
.admin .form-table .description,
.admin #code > .description {
  margin: 6px 0 0;
  color: #646970;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.admin .cate-add .submit { margin: 0; }

.admin .cate-add .primary {
  width: auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 2px;
  justify-self: start;
}

.widefat {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #c3c4c7;
  background: #fff;
  color: #2c3338;
  font-size: 13px;
}

.widefat th,
.widefat td {
  padding: 8px 10px;
  border-bottom: 1px solid #dcdcde;
  text-align: left;
  vertical-align: middle;
}

.widefat th {
  background: #f6f7f7;
  color: #1d2327;
  font-weight: 600;
}

.widefat.striped tbody tr:nth-child(odd) { background: #f6f7f7; }

.widefat.striped tbody tr:hover { background: #f0f0f1; }

.cate-table .column-name { width: auto; }

.cate-table .column-count {
  width: 74px;
  text-align: center;
  color: #50575e;
}

.cate-table .cate-name { font-weight: 600; color: #1d2327; }

.cate-table .row-actions {
  margin-top: 2px;
  visibility: hidden;
  color: #b32d2e;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.cate-table tr:hover .row-actions,
.cate-table tr:focus-within .row-actions { visibility: visible; }

.cate-table form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.admin .cate-table .row-actions .check,
.admin .cate-table .row-actions .quiet {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b32d2e;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.admin .cate-table .row-actions .check input {
  width: auto;
  min-height: 0;
  margin: 0 4px 0 0;
}

.admin .cate-table .row-actions .quiet:hover {
  border: 0;
  background: transparent;
  color: #b32d2e;
  text-decoration: underline;
}

.media-panel { padding: 12px 20px 32px; }

.media-panel > .admin-head { padding-right: 0; padding-left: 0; }

.media-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.media-toolbar form { display: flex; margin: 0; }

.media-toolbar select,
.media-toolbar input[type="search"],
.media-modal-tools input[type="search"],
.media-side input[type="text"],
.media-side input:not([type]) {
  min-height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #8c8f94;
  border-radius: 2px;
  background: #fff;
  color: #2c3338;
  font-size: 13px;
}

.media-toolbar select {
  appearance: none;
  min-width: 8.5rem;
  padding-right: 28px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #50575e 50%),
    linear-gradient(135deg, #50575e 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.media-toolbar select:focus,
.media-toolbar input[type="search"]:focus,
.media-side input:focus {
  border-color: var(--btn);
  background-color: #fff;
  box-shadow: 0 0 0 1px var(--btn);
  outline: none;
}

.media-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: 360px;
  border: 1px solid #c3c4c7;
  background: #fff;
}

.media-screen:not(:has(.media-side[hidden])) {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.media-grid,
.media-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  align-content: start;
  padding: 8px;
}

.media-tile {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #c3c4c7;
  border-radius: 2px;
  background: #f0f0f1;
  cursor: pointer;
}

.media-tile.is-on {
  border-color: var(--btn);
  box-shadow: 0 0 0 3px var(--btn);
}

.media-tile[hidden] { display: none; }

.media-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb > span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #50575e;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.media-side {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-left: 1px solid #dcdcde;
  background: #f6f7f7;
}

.media-side[hidden] { display: none; }

.media-side h2 {
  margin: 0;
  color: #1d2327;
  font-size: 13px;
  font-weight: 600;
}

.media-side form,
.media-side label { display: grid; gap: 6px; margin: 0; }

.media-side label.check { display: inline-flex; align-items: center; gap: 6px; }

.media-side .primary,
.media-side .quiet { width: 100%; }

.media-preview {
  display: grid;
  place-items: center;
  min-height: 120px;
  background: #fff;
  border: 1px solid #dcdcde;
}

.media-preview img,
.media-preview video { display: block; width: 100%; max-height: 180px; object-fit: contain; }

.media-preview audio { width: 100%; }

.media-preview .media-text {
  width: 100%;
  max-height: 180px;
  margin: 0;
  padding: 8px;
  overflow: auto;
  white-space: pre-wrap;
  text-align: left;
  color: #1d2327;
  font-size: 12px;
  line-height: 1.5;
}

.media-line,
.media-meta { margin: 0; color: #50575e; font-size: 12px; overflow-wrap: anywhere; }

.media-line span:first-child { color: #1d2327; font-weight: 600; }

.media-url {
  color: #1f2328;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.media-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.7);
}

.media-modal[hidden] { display: none; }

.media-modal-box {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(920px, 100%);
  height: min(640px, 100%);
  border: 1px solid #c3c4c7;
  background: #fff;
}

.media-modal-bar,
.media-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #dcdcde;
  background: #fff;
}

.media-modal-foot { justify-content: flex-end; border-bottom: 0; border-top: 1px solid #dcdcde; }

.media-modal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.media-modal-grid { overflow: auto; background: #fff; }

.media-modal-grid .admin-lead { margin: 12px; }

.admin .postbox .compose-publish,
.admin .postbox .quiet { border-radius: 2px; }

@media (max-width: 782px) {
  .cate-screen { grid-template-columns: minmax(0, 1fr); }

  .cate-table .row-actions { visibility: visible; }

  .media-screen,
  .media-screen:not(:has(.media-side[hidden])) { grid-template-columns: minmax(0, 1fr); }

  .media-side { border-top: 1px solid #dcdcde; border-left: 0; }

  .media-grid,
  .media-modal-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }

  .media-modal { padding: 8px; }
}

.icon-field {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e8ec;
}

#site-settings,
#theme-settings { display: none; }

.set-screen { display: grid; gap: 18px; }

.set-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin: 0;
  border-bottom: 1px solid #e6e8ec;
}

.admin .set-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 8px 0 10px;
  border-bottom: 3px solid transparent;
  color: #646970;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.admin .set-nav a:hover { color: #1f2328; text-decoration: none; }

.admin .set-nav a.is-on,
.set-screen:not(:has(.set-module:target)):not(:has(.set-module.is-open)) .set-nav a.is-home,
.set-screen:not(:has(.set-module.is-open)):has(#general:target) .set-nav a[href="#general"],
.set-screen:not(:has(.set-module.is-open)):has(#reading:target) .set-nav a[href="#reading"],
.set-screen:not(:has(.set-module.is-open)):has(#media:target) .set-nav a[href="#media"],
.set-screen:not(:has(.set-module.is-open)):has(#scheme:target) .set-nav a[href="#scheme"],
.set-screen:not(:has(.set-module.is-open)):has(#pick:target) .set-nav a[href="#pick"],
.set-screen:not(:has(.set-module.is-open)):has(#options:target) .set-nav a[href="#options"],
.set-screen:not(:has(.set-module.is-open)):has(#code:target) .set-nav a[href="#code"] {
  border-bottom-color: var(--btn);
  color: #1d2327;
  font-weight: 600;
}

.set-screen.is-settings .set-nav {
  gap: 0.5em;
  align-items: flex-end;
  border-bottom: 1px solid #c3c4c7;
  padding-top: 9px;
}

.admin .set-screen.is-settings .set-nav a {
  min-height: 0;
  margin: 0 0 -1px;
  padding: 5px 10px;
  border: 1px solid #c3c4c7;
  background: #dcdcde;
  color: #50575e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.71428571;
}

.admin .set-screen.is-settings .set-nav a:hover {
  background: #fff;
  color: #1d2327;
  text-decoration: none;
}

.admin .set-screen.is-settings .set-nav a.is-on,
.set-screen.is-settings:not(:has(.set-module:target)):not(:has(.set-module.is-open)) .set-nav a.is-home,
.set-screen.is-settings:not(:has(.set-module.is-open)):has(#general:target) .set-nav a[href="#general"],
.set-screen.is-settings:not(:has(.set-module.is-open)):has(#reading:target) .set-nav a[href="#reading"],
.set-screen.is-settings:not(:has(.set-module.is-open)):has(#media:target) .set-nav a[href="#media"],
.set-screen.is-settings:not(:has(.set-module.is-open)):has(#scheme:target) .set-nav a[href="#scheme"],
.set-screen.is-settings:not(:has(.set-module.is-open)):has(#permalink:target) .set-nav a[href="#permalink"] {
  border-bottom-color: #f0f0f1;
  background: #f0f0f1;
  color: #1d2327;
}

.admin .form-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.admin .form-table th {
  width: 200px;
  padding: 20px 10px 20px 0;
  vertical-align: top;
  text-align: left;
  color: #1d2327;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.admin .form-table td {
  padding: 15px 10px;
  vertical-align: middle;
  color: #2c3338;
  font-size: 14px;
  line-height: 1.3;
}

.admin .set-screen.is-form .form-table input.regular-text:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.admin .set-screen.is-form .form-table select.regular-text {
  width: 25em;
  max-width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #8c8f94;
  border-radius: 2px;
  background-color: #fff;
  box-shadow: none;
  color: #2c3338;
  font-size: 14px;
  line-height: 2;
}

.admin .set-screen.is-form .form-table select.regular-text { padding-right: 28px; }

.admin .set-screen.is-form .form-table input.regular-text:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):focus,
.admin .set-screen.is-form .form-table select.regular-text:focus {
  border-color: var(--btn);
  background-color: #fff;
  box-shadow: 0 0 0 1px var(--btn);
  outline: none;
}

.admin .set-screen.is-form .form-table input.small-text:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]) {
  width: 6em;
  max-width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #8c8f94;
  border-radius: 2px;
  background-color: #fff;
  box-shadow: none;
  color: #2c3338;
  font-size: 14px;
  line-height: 2;
}

.admin .form-table fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 6px;
}

.admin .form-table .icon-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.admin .form-table .icon-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin .form-table .icon-actions img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.admin .form-table .scheme-list { margin-top: 10px; }

@media (max-width: 782px) {
  .admin .form-table,
  .admin .form-table tbody,
  .admin .form-table tr,
  .admin .form-table th,
  .admin .form-table td { display: block; width: 100%; }

  .admin .form-table th { padding: 16px 0 4px; }

  .admin .form-table td { padding: 0 0 8px; }

  .admin .set-screen.is-form .form-table input.regular-text:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
  .admin .set-screen.is-form .form-table select.regular-text { width: 100%; }
}

.set-module { display: none; }

.set-module.is-open,
.set-screen:not(:has(.set-module.is-open)) .set-module:target { display: grid; gap: 14px; }

.set-screen:not(:has(.set-module:target)):not(:has(.set-module.is-open)) .set-module.is-default { display: grid; gap: 14px; }

.set-screen.is-settings .set-module.is-open,
.set-screen.is-settings:not(:has(.set-module.is-open)) .set-module:target,
.set-screen.is-settings:not(:has(.set-module:target)):not(:has(.set-module.is-open)) .set-module.is-default {
  display: block;
}

.set-save { justify-self: start; }

.set-screen[data-default="pick"] > .set-save { display: none; }

.set-screen[data-default="pick"]:has(#options.is-open) > .set-save,
.set-screen[data-default="pick"]:has(#options:target) > .set-save {
  display: inline-flex;
}

.theme-preview {
  border: 1px solid #c3c4c7;
  background: #fff;
  min-width: 0;
}

.theme-preview iframe {
  display: block;
  width: 100%;
  height: 70vh;
  border: 0;
}

@media (min-width: 1100px) {
  .set-screen.is-themes #options.set-module.is-open,
  .set-screen.is-themes:not(:has(.set-module.is-open)):has(#options:target) #options.set-module {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
    align-items: start;
    column-gap: 16px;
  }

  .set-screen.is-themes #options .theme-preview {
    position: sticky;
    top: 64px;
  }
}

.admin .form-title {
  margin: 8px 0 0;
  color: #1d2327;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
}

.admin .form-table .hero-upload { margin-top: 8px; }

.menu-paints {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: end;
}

.menu-paints label {
  width: auto;
  color: #1d2327;
  font-size: 13px;
  font-weight: 400;
}

.code-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  font-size: 13px;
}

.code-packs a.is-on { font-weight: 600; text-decoration: none; }

.plugin-hooks { margin-top: 16px; }

.code-screen {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 560px;
  border: 1px solid #c3c4c7;
  background: #fff;
}

.code-files {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 8px 0;
  border-right: 1px solid #c3c4c7;
  background: #f6f7f7;
  overflow: auto;
  max-height: 560px;
}

.code-files button {
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1d2327;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  min-height: 0;
  justify-content: flex-start;
  cursor: pointer;
}

.code-files button.is-on {
  background: #f0f0f1;
  font-weight: 600;
}

.code-editor { min-width: 0; min-height: 560px; }

#theme-editor { display: none; height: 560px; }

#code.is-monaco #theme-editor { display: block; }

.admin .code-fallback {
  display: block;
  width: 100%;
  min-height: 560px;
  height: 560px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  resize: vertical;
  background: #fff;
  color: #1d2327;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: none;
}

#code.is-monaco .code-fallback { display: none; }

#theme-code { margin: 0; }

#theme-code .primary { justify-self: start; }

@media (max-width: 782px) {
  .code-screen { grid-template-columns: 1fr; min-height: 0; }

  .code-files {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid #c3c4c7;
    overflow-x: auto;
  }

  .code-editor,
  #theme-editor,
  .admin .code-fallback { min-height: 420px; height: 420px; }
}

.admin .pager { margin: 16px 0 4px; color: #50575e; font-size: 13px; }

.admin-main .pager a,
.admin-main .pager a:hover { color: var(--btn); text-decoration: none; }

.admin-main .pager a:hover { text-decoration: underline; }

.scheme-list { display: grid; gap: 10px; }

.admin .scheme {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-areas: "radio name" "radio preview";
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid #e6e8ec;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.admin .scheme.is-on {
  border-color: var(--btn);
  box-shadow: 0 0 0 1px var(--btn);
}

.admin .scheme input {
  grid-area: radio;
  width: auto;
  min-height: 0;
  margin: 0;
}

.scheme-name { grid-area: name; color: #1f2328; font-weight: 650; }

.scheme-preview {
  grid-area: preview;
  display: flex;
  width: 220px;
  max-width: 100%;
  height: 24px;
  overflow: hidden;
  border: 1px solid #d0d5dd;
  border-radius: 2px;
}

.scheme-preview i { flex: 1 1 0; }

.icon-field > span { color: #667085; font-size: 13px; }

.icon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.icon-actions img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid #e6e8ec;
  border-radius: 2px;
}

.icon-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }

form[data-crop] { position: relative; }

form[data-crop] input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.crop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(27, 30, 39, 0.55);
}

.crop-panel {
  display: grid;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  padding: 12px;
  background: #fff;
}

.crop-stage {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  background: #1b1e27;
  touch-action: none;
  user-select: none;
}

.crop-stage img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.crop-box {
  position: absolute;
  border: 1px solid #fff;
  outline: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  cursor: move;
}

.crop-box i {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.crop-box .v1,
.crop-box .v2 { top: 0; bottom: 0; width: 1px; }

.crop-box .v1 { left: 33.33%; }

.crop-box .v2 { left: 66.66%; }

.crop-box .h1,
.crop-box .h2 { left: 0; right: 0; height: 1px; }

.crop-box .h1 { top: 33.33%; }

.crop-box .h2 { top: 66.66%; }

.crop-handle {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid #243038;
}

.crop-handle[data-handle="nw"] { top: -1px; left: -1px; cursor: nwse-resize; }
.crop-handle[data-handle="ne"] { top: -1px; right: -1px; cursor: nesw-resize; }
.crop-handle[data-handle="sw"] { bottom: -1px; left: -1px; cursor: nesw-resize; }
.crop-handle[data-handle="se"] { right: -1px; bottom: -1px; cursor: nwse-resize; }
.crop-handle[data-handle="n"] { top: -1px; left: calc(50% - 6px); cursor: ns-resize; }
.crop-handle[data-handle="s"] { bottom: -1px; left: calc(50% - 6px); cursor: ns-resize; }
.crop-handle[data-handle="w"] { top: calc(50% - 6px); left: -1px; cursor: ew-resize; }
.crop-handle[data-handle="e"] { top: calc(50% - 6px); right: -1px; cursor: ew-resize; }

.crop .row { display: flex; justify-content: flex-end; gap: 8px; }

.crop .primary,
.crop .quiet { width: auto; min-width: 72px; }

@media (prefers-reduced-motion: reduce) {
  .loop { animation: none; }

  .post:hover .post-card,
  .stat:hover,
  .more:hover { transform: none; }
}

@keyframes loop1 { from { transform: rotate(30deg); } to { transform: rotate(390deg); } }
@keyframes loop2 { from { transform: rotate(60deg); } to { transform: rotate(420deg); } }
@keyframes loop3 { from { transform: rotate(90deg); } to { transform: rotate(450deg); } }
@keyframes loop4 { from { transform: rotate(120deg); } to { transform: rotate(480deg); } }

.hero-upload { margin-top: 18px; }

.hero-upload .quiet { justify-self: start; width: auto; }

.nav-ico {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  fill: currentColor;
}

html[data-theme="particle"] {
  scrollbar-color: #8ab5ff #e6efff;
  scrollbar-width: thin;
}

html[data-theme="particle"] ::selection { background: #3392ff2a; }

html[data-theme="particle"] ::-webkit-scrollbar { width: 12px; height: 12px; }

html[data-theme="particle"] ::-webkit-scrollbar-thumb {
  background: #8ab5ff;
  border: 3px solid #e6efff;
  border-radius: 100px;
}

html[data-theme="particle"] ::-webkit-scrollbar-track { background: #e6efff; }

html[data-theme="particle"] body {
  background: #f6f8fa;
  color: #1e3e3f;
}

html[data-theme="particle"] .mast { padding-top: 50px; }

html[data-theme="particle"] .mast:has(.hero) { padding-top: 0; }

html[data-theme="particle"] .nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 50px;
  background: var(--menu-solid, #92cafa);
  box-shadow: 0 -1px 10px 0 #9e9e9e4d;
  transition: background 0.25s ease-out;
}

html[data-theme="particle"] .nav-bar.menu-color {
  background: var(--menu-bg, rgba(0, 0, 0, 0.2));
}

html[data-theme="particle"] .nav {
  width: 100%;
  max-width: none;
  height: 50px;
  min-height: 50px;
  margin: 0;
  flex-wrap: nowrap;
  gap: 0;
}

html[data-theme="particle"] .nav a,
html[data-theme="particle"] .search-btn,
html[data-theme="particle"] .menu {
  border: 0;
  padding: 0;
  color: var(--menu-solid-fg, #555);
  font-weight: 700;
  box-shadow: none;
}

html[data-theme="particle"] .nav > a { margin-left: 30px; }

html[data-theme="particle"] .nav > a.brand {
  margin-left: 60px;
  margin-right: 5px;
  color: var(--menu-solid-fg, #555);
  font-size: 16px;
}

html[data-theme="particle"] .nav-bar.menu-color .nav a,
html[data-theme="particle"] .nav-bar.menu-color .search-btn,
html[data-theme="particle"] .nav-bar.menu-color .menu,
html[data-theme="particle"] .nav-bar.menu-color .nav > a.brand {
  color: var(--menu-fg, #fff);
}

html[data-theme="particle"] .nav-end {
  margin-left: auto;
  margin-right: 28px;
}

html[data-theme="particle"] .nav-end a,
html[data-theme="particle"] .nav-end .search-btn { margin-left: 18px; }

html[data-theme="particle"] .nav a:hover,
html[data-theme="particle"] .search-btn:hover,
html[data-theme="particle"] .nav > a.brand:hover,
html[data-theme="particle"] .nav-bar.menu-color .nav a:hover,
html[data-theme="particle"] .nav-bar.menu-color .search-btn:hover,
html[data-theme="particle"] .nav-bar.menu-color .nav > a.brand:hover {
  text-decoration: none;
  box-shadow: none;
  opacity: 0.8;
}

html[data-theme="particle"] .search-check:checked ~ .site .head-search {
  position: fixed;
  z-index: 40;
  top: 62px;
  left: 50%;
  width: min(520px, calc(100% - 24px));
  margin: 0;
  padding: 0 6px 0 0;
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 0 20px #d9d9d980;
  transform: translateX(-50%);
}

html[data-theme="particle"] .head-search input {
  height: 50px;
  border: 0;
  border-radius: 50px;
  background: transparent;
  box-shadow: none;
}

html[data-theme="particle"] .head-search .quiet {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #66afef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M15 15.5 19 19.5' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  color: transparent;
  font-size: 0;
}

html[data-theme="particle"] .hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #7eb6ea;
  background-image:
    radial-gradient(ellipse 80% 42% at 50% 118%, rgba(255, 255, 255, 0.55), transparent 64%),
    radial-gradient(circle at 78% 18%, rgba(255, 244, 214, 0.9) 0 34px, transparent 38px),
    linear-gradient(180deg, #5eaff8 0%, #b7dcff 42%, #f7d3ea 74%, #ffe6c2 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

html[data-theme="particle"] .hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  height: 500px;
}

html[data-theme="particle"] .loop {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  pointer-events: none;
}

html[data-theme="particle"] .loop-1 { opacity: 0.3; animation: loop1 10s linear infinite; }
html[data-theme="particle"] .loop-2 { opacity: 0.45; animation: loop2 15s linear infinite; }
html[data-theme="particle"] .loop-3 { opacity: 0.3; animation: loop3 10s linear infinite; }
html[data-theme="particle"] .loop-4 { opacity: 0.45; animation: loop4 15s linear infinite; }

html[data-theme="particle"] .hero-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
  text-align: center;
}

html[data-theme="particle"] .hero .site-name {
  margin: 0 0 10px;
  font-size: 52px;
  font-weight: 700;
}

html[data-theme="particle"] .hero .site-name a,
html[data-theme="particle"] .hero .site-name a:hover {
  color: #1e3e3f;
  text-decoration: none;
  text-shadow: none;
}

html[data-theme="particle"] .hero .banner-sub {
  margin: 10px 0 0;
  color: #5c6b72;
  font-size: 20px;
  text-shadow: none;
}

html[data-theme="particle"] .wrap {
  width: min(1200px, calc(100% - 40px));
  margin-top: 50px;
}

html[data-theme="particle"] .mast:has(.hero) ~ .wrap { margin-top: 28px; }

html[data-theme="particle"] .post { margin: 0 0 25px; }

html[data-theme="particle"] .post .post-card,
html[data-theme="particle"] .empty-log {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 20px #d9d9d980;
}

html[data-theme="particle"] .post .post-card {
  position: relative;
  padding: 50px;
  overflow: visible;
}

html[data-theme="particle"] .post:hover .post-card {
  box-shadow: 0 0 5px #d9d9d9;
  transform: none;
}

html[data-theme="particle"] .entry {
  margin-top: 50px;
}

html[data-theme="particle"] .entry .post-card,
html[data-theme="particle"] .archive-card {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

html[data-theme="particle"] .post h2 {
  color: #66afef;
  font-size: 27px;
  text-align: center;
}

html[data-theme="particle"] .post h2 a,
html[data-theme="particle"] .post h2 a:hover {
  color: #66afef;
  text-decoration: none;
}

html[data-theme="particle"] .post h2 a:hover { opacity: 0.8; }

html[data-theme="particle"] .entry h1 {
  color: #1e3e3f;
  font-size: 30px;
  text-align: center;
}

html[data-theme="particle"] .post-meta {
  margin: 15px 0 0;
  color: #5c6b72;
  text-align: center;
}

html[data-theme="particle"] .chip,
html[data-theme="particle"] a.chip,
html[data-theme="particle"] a.chip:hover {
  padding: 0;
  background: transparent;
  color: #5c6b72;
  font-size: 14px;
  text-decoration: none;
}

html[data-theme="particle"] .chip-cate {
  margin: 0 18px 0 0;
  color: #5c6b72;
  font-size: 14px;
}

html[data-theme="particle"] .chip::before,
html[data-theme="particle"] .chip-cate::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  background: center / 14px 14px no-repeat;
}

html[data-theme="particle"] .chip-cate::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235c6b72' stroke-width='1.6' stroke-linejoin='round' d='M4.2 1.8h7.6V14L8 11.1 4.2 14z'/%3E%3C/svg%3E");
}

html[data-theme="particle"] .chip::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2.3' y='3.3' width='11.4' height='10.2' rx='1.2' fill='none' stroke='%235c6b72' stroke-width='1.4'/%3E%3Cpath fill='none' stroke='%235c6b72' stroke-width='1.4' stroke-linecap='round' d='M2.3 6.5h11.4M5.4 1.8v2.3M10.6 1.8v2.3'/%3E%3C/svg%3E");
}

html[data-theme="particle"] .post .note-edit {
  position: absolute;
  top: 18px;
  right: 22px;
  margin: 0;
  color: #8aa0a8;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

html[data-theme="particle"] .post .note-edit:hover { color: #66afef; text-decoration: none; }

html[data-theme="particle"] .chip-cate:hover,
html[data-theme="particle"] a.chip:hover { color: #66afef; }

html[data-theme="particle"] .excerpt {
  margin: 20px 0;
  color: #1e3e3f;
  text-align: left;
}

html[data-theme="particle"] .article-more-link { margin: 0; }

html[data-theme="particle"] .more {
  position: absolute;
  right: -5px;
  bottom: -5px;
  padding: 10px 24px;
  border: 0;
  border-radius: 20px 0;
  background: linear-gradient(120deg, #9abbf7 0%, #ffbbf4 100%);
  box-shadow: 2px 2px 10px 0 #ffbbf47a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: none;
}

html[data-theme="particle"] .more:hover {
  right: -5px;
  bottom: -5px;
  background: linear-gradient(120deg, #9abbf7 0%, #ffbbf4 100%);
  box-shadow: -2px -2px 10px 0 #9abbf77a;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
}

html[data-theme="particle"] .archive-title {
  margin: 8px 0 22px;
  color: #66afef;
  font-size: 28px;
  text-align: center;
}

html[data-theme="particle"] .pager { justify-content: center; gap: 7px; margin-top: 50px; }

html[data-theme="particle"] .pager a,
html[data-theme="particle"] .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  padding: 0 8px;
  border-radius: 5px;
  color: #999;
  font-weight: 700;
  text-decoration: none;
}

html[data-theme="particle"] .pager span { color: #da0a51; }

html[data-theme="particle"] .pager a:hover { background: #66afef; color: #fff; opacity: 1; }

html[data-theme="particle"] .year {
  margin: 10px 0 16px 24px;
  color: #1e3e3f;
  font-size: 24px;
  font-weight: 700;
}

html[data-theme="particle"] .archive-row {
  position: relative;
  display: block;
  margin: 0 0 30px 24px;
  padding: 24px;
  border: 1px solid #0002;
  border-radius: 3px;
  background: #fff;
}

html[data-theme="particle"] .archive-row::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -26px;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border: 2px solid #a5c2f5;
  border-radius: 50%;
  background: #fff;
}

html[data-theme="particle"] .archive-row time { display: block; color: #5c6b72; font-size: 14px; }

html[data-theme="particle"] .archive-row > a:not(.note-edit) {
  color: #1e3e3f;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

html[data-theme="particle"] .archive-row .note-edit {
  position: absolute;
  top: 16px;
  right: 18px;
  margin: 0;
  color: #8aa0a8;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

html[data-theme="particle"] .archive-row:hover {
  box-shadow: 0 2px 8px #00000017;
}

html[data-theme="particle"] .prose {
  margin-top: 50px;
  font-size: 15px;
  line-height: 1.7;
}

html[data-theme="particle"] .prose h1 { font-size: 30px; }
html[data-theme="particle"] .prose h2 { font-size: 27px; }
html[data-theme="particle"] .prose h3 { font-size: 24px; }
html[data-theme="particle"] .prose h4 { font-size: 21px; }

html[data-theme="particle"] .prose p,
html[data-theme="particle"] .prose ul,
html[data-theme="particle"] .prose ol { margin: 15px 0; line-height: 1.7; }

html[data-theme="particle"] .prose ul,
html[data-theme="particle"] .prose ol { padding-left: 40px; }

html[data-theme="particle"] .prose li { margin: 8px 0; }

html[data-theme="particle"] .prose a:hover { text-decoration: none; opacity: 0.8; }

html[data-theme="particle"] .prose input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  accent-color: #66afef;
  vertical-align: -2px;
}

html[data-theme="particle"] .prose hr {
  border: 0;
  border-top: 1.5px dashed #1e3e3f;
}

html[data-theme="particle"] .prose img,
html[data-theme="particle"] .prose video,
html[data-theme="particle"] .prose audio,
html[data-theme="particle"] .prose iframe {
  display: block;
  max-width: 75%;
  margin: 15px auto;
  border-radius: 10px;
}

html[data-theme="particle"] .prose th,
html[data-theme="particle"] .prose td {
  border: 0;
  border-radius: 3px;
  padding: 10px 20px;
}

html[data-theme="particle"] .prose th { background: #a3ddfb; }
html[data-theme="particle"] .prose td:nth-child(odd) { background: #d9e8ff4d; }
html[data-theme="particle"] .prose td:nth-child(even) { background: #c7e0fb4d; }

html[data-theme="particle"] .entry-foot {
  margin-top: 40px;
  border-top: 1px solid #aaa;
  border-radius: 0;
}

html[data-theme="particle"] .article-nav a {
  max-width: 46%;
  padding: 16px 18px;
  border: 1px solid #0002;
  border-radius: 3px;
  background: #fff;
}

html[data-theme="particle"] .prose blockquote {
  margin: 15px 0;
  padding: 0 15px;
  border: 0;
  border-left: 3px solid #1e3e3f;
  border-radius: 3px;
  background: #d9e8ff6b;
  color: #1e3e3f;
  font-family: inherit;
  text-align: left;
}

html[data-theme="particle"] .prose code { padding: 2px 6px; border-radius: 4px; background: #bddcf76b; }

html[data-theme="particle"] .prose pre {
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 12px 0 #0000001a;
}

html[data-theme="particle"] .side {
  gap: 0;
  text-align: center;
}

html[data-theme="particle"] .widget {
  width: 85%;
  margin: 0 auto;
  padding: 14px 0 8px;
  background: transparent;
  text-align: center;
  border-top: 1px solid #cdcdcd;
}

html[data-theme="particle"] .side .widget:first-child {
  border-top: 0;
  padding-top: 4px;
}

html[data-theme="particle"] .widget h3 {
  margin: 4px 0 10px;
  color: #1e3e3f;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

html[data-theme="particle"] .widget .search {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 8px;
}

html[data-theme="particle"] .widget .search input {
  width: 100%;
  height: 50px;
  min-height: 50px;
  flex: none;
  padding: 0 46px;
  border: 1px solid #d0d7de;
  border-radius: 50px;
  background: #f6f8fa;
  text-align: center;
}

html[data-theme="particle"] .widget .search button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #66afef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M15 15.5 19 19.5' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat;
  color: transparent;
  font-size: 0;
}

html[data-theme="particle"] .widget li {
  display: block;
  min-height: 0;
  margin: 4px 0;
  padding: 8px 10px;
  border-radius: 5px;
  text-align: center;
}

html[data-theme="particle"] .widget li a {
  display: inline;
  min-width: 0;
  overflow: visible;
  padding: 0;
  color: #5c6b72;
  white-space: normal;
}

html[data-theme="particle"] .widget .count {
  margin-left: 6px;
  color: #8aa0a8;
  font-size: 12px;
}

html[data-theme="particle"] .widget li:hover,
html[data-theme="particle"] .widget li:has(a.is-on) {
  background: #66afef;
}

html[data-theme="particle"] .widget li:hover a,
html[data-theme="particle"] .widget li:hover .count,
html[data-theme="particle"] .widget li:has(a.is-on) a,
html[data-theme="particle"] .widget li:has(a.is-on) .count {
  color: #fff;
  text-decoration: none;
}

html[data-theme="particle"] .foot {
  margin-top: auto;
  padding: 80px 0 20px;
  border-top: 0;
  background: transparent;
  color: #5c6b72;
}

html[data-theme="particle"] .foot a { color: #66afef; }

html[data-theme="particle"] .foot-in {
  width: min(900px, calc(100% - 32px));
  min-height: 0;
  padding-top: 15px;
  border-top: 1px solid #aaa;
}

@media (min-width: 880px) {
  html[data-theme="particle"] .wrap { grid-template-columns: minmax(0, 1fr) 300px; }

  html[data-theme="particle"][data-side="left"] .wrap { grid-template-columns: 300px minmax(0, 1fr); }

  html[data-theme="particle"] .side {
    position: sticky;
    top: 70px;
    padding: 22px 0 18px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 20px #d9d9d980;
  }

  html[data-theme="particle"][data-side="bottom"] .side {
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  html[data-theme="particle"][data-side="bottom"] .widget {
    width: auto;
    border-top: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 20px #d9d9d980;
  }
}

@media (max-width: 1099px) and (min-width: 880px) {
  html[data-theme="particle"] .nav > a.brand { margin-left: 22px; }

  html[data-theme="particle"] .nav > a { margin-left: 16px; }
}

@media (max-width: 879px) {
  html[data-theme="particle"] .nav-bar { height: auto; min-height: 50px; }

  html[data-theme="particle"] .nav {
    position: relative;
    height: auto;
    min-height: 50px;
    flex-wrap: wrap;
    justify-content: center;
  }

  html[data-theme="particle"] .nav > a.brand {
    display: block;
    width: 100%;
    margin: 0;
    line-height: 50px;
    text-align: center;
  }

  html[data-theme="particle"] .nav > a:not(.brand),
  html[data-theme="particle"] .nav-end > a,
  html[data-theme="particle"] .nav-end .langs,
  html[data-theme="particle"] .search-btn { display: none; }

  html[data-theme="particle"] .menu {
    display: inline-flex;
    position: absolute;
    top: 0;
    right: 8px;
    height: 50px;
    border: 0;
    color: var(--menu-solid-fg, #555);
  }

  html[data-theme="particle"] .nav-bar.menu-color .menu { color: var(--menu-fg, #fff); }

  html[data-theme="particle"] .nav-check:checked ~ .site .nav-bar { height: auto; }

  html[data-theme="particle"] .nav-check:checked ~ .site .nav > a:not(.brand) {
    display: flex;
    width: 80%;
    margin: 0 auto;
    justify-content: center;
    line-height: 42px;
  }

  html[data-theme="particle"] .nav-check:checked ~ .site .nav-end {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0 0 12px;
  }

  html[data-theme="particle"] .nav-check:checked ~ .site .nav-end > a,
  html[data-theme="particle"] .nav-check:checked ~ .site .search-btn,
  html[data-theme="particle"] .nav-check:checked ~ .site .langs { display: flex; }

  html[data-theme="particle"] .side {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding: 12px 0 16px;
    transform: none;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 20px #d9d9d980;
  }

  html[data-theme="particle"] .nav-check:checked ~ .site .side { transform: none; }

  html[data-theme="particle"] .nav-check:checked ~ .shade { display: none; }

  html[data-theme="particle"] .hero { min-height: 100dvh; }

  html[data-theme="particle"] .loop { display: none; }

  html[data-theme="particle"] .hero-stage {
    width: min(350px, 92vw);
    height: min(350px, 92vw);
    background: #ffffffa6;
    border-radius: 50%;
  }

  html[data-theme="particle"] .hero .site-name { font-size: 46px; }

  html[data-theme="particle"] .prose ul,
  html[data-theme="particle"] .prose ol { padding-left: 20px; }

  html[data-theme="particle"] .post .post-card { padding: 20px 30px 36px; }

  html[data-theme="particle"] .entry { margin-top: 24px; }

  html[data-theme="particle"] .entry .post-card,
  html[data-theme="particle"] .archive-card { padding: 0 4px; }

  html[data-theme="particle"] .more { right: 0; bottom: 0; }
}

.nav-menu { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 0; padding: 0; list-style: none; }
.nav-menu > .nav-item { position: relative; }
.nav-menu .nav-menu { display: none; position: absolute; z-index: 5; min-width: 140px; flex-direction: column; gap: 8px; padding: 8px 10px; background: var(--paper, #fff); border: 1px solid var(--line); }
.nav-menu > .nav-item:hover > .nav-menu,
.nav-menu > .nav-item:focus-within > .nav-menu { display: flex; }
.block-board .block-row { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; padding: 8px; border: 1px solid var(--line); }
.block-board textarea { flex: 1; min-height: 64px; }
.widget-sort { list-style: none; margin: 0; padding: 0; }
.widget-sort li { margin: 6px 0; }
.revision-list { list-style: none; margin: 0; padding: 0; }
.revision-list li { margin: 8px 0; }
.revision-list form { display: inline; }

.desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
  margin-bottom: 28px;
}

.admin .desk-box { margin: 0 0 20px; padding: 0 0 4px; }

.admin .desk-box .widefat { border-right: 0; border-left: 0; }

.admin .desk-box .desk-add { padding: 4px 12px 8px; }

.admin .desk-add .primary,
.admin .desk-box .quiet {
  width: auto;
  min-height: 30px;
}

.admin .desk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.admin .desk-actions form { display: inline-flex; gap: 6px; margin: 0; }

.desk-href { color: #646970; font-size: 13px; word-break: break-all; }

.widget-sort tr { cursor: grab; }

#fresh-key {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #c3c4c7;
  background: #fff;
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
}

@media (max-width: 782px) {
  .desk-grid { grid-template-columns: minmax(0, 1fr); }
}

.profile-screen h2 {
  margin: 28px 0 12px;
  color: #1d2327;
  font-size: 20px;
  font-weight: 600;
}

.profile-apps { margin-top: 36px; }

.admin .profile-screen input.regular-text {
  width: 25em;
  max-width: 100%;
}

.admin .profile-screen .submit { margin: 8px 0 0; }

.admin .profile-screen .primary,
.admin .profile-screen .quiet {
  width: auto;
  min-height: 30px;
  justify-self: start;
}

.admin .profile-screen .avatar-slot {
  display: inline-block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f0f0f1;
  vertical-align: middle;
}

.admin .profile-screen .icon-actions img.avatar-slot {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.menu-node { position: relative; display: flex; align-items: stretch; }

.menu-node > a::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.menu-sub {
  display: none;
  position: absolute;
  z-index: 50;
  top: 100%;
  left: 0;
  min-width: 168px;
  flex-direction: column;
  padding: 6px 0;
  background: var(--bar);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.menu-node:hover > .menu-sub,
.menu-node:focus-within > .menu-sub { display: flex; }

.admin-side .menu-sub a {
  min-height: 34px;
  padding: 7px 14px;
  border-bottom: 0;
  font-size: 13px;
}

.admin-side .menu-sub a.is-on,
.admin-side .menu-sub a:hover {
  border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

.set-screen.is-settings:has(#permalink.is-open) > .set-save,
.set-screen.is-settings:has(#permalink:target) > .set-save { display: none; }

.admin #permalink .primary {
  width: auto;
  min-height: 30px;
  justify-self: start;
}

@media (max-width: 782px) {
  .menu-node { display: flex; }

  .menu-sub {
    display: flex;
    position: static;
    flex-direction: row;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-side .menu-sub a {
    min-height: 48px;
    padding: 0 12px;
    border-bottom: 3px solid transparent;
    font-size: 13px;
  }
}

#permalink fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#permalink-preview {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #c3c4c7;
  background: #fff;
  color: #1d2327;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-all;
}

.permalink-example {
  margin: -4px 0 12px 26px;
  color: #646970;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-all;
}

.admin #permalink input[type="radio"] {
  width: auto;
  min-height: 0;
}

.permalink-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.permalink-tags button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #c3c4c7;
  border-radius: 2px;
  background: #f6f7f7;
  color: #1d2327;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}
