/* =========================================================
   Ying — Unified theme for public + admin
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fafafa;
  color: #24292e;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

::-webkit-scrollbar {
  width: 13px;
}

::-webkit-scrollbar-button {
  display: none;
}

::-webkit-scrollbar-thumb {
  min-height: 16px;
  border: 3px solid #fdfdfd;
  border-radius: 5px;
  background-color: #999;
  background-clip: padding-box;
}

::selection {
  background: #444;
  color: #fff;
}

a,
a:hover {
  color: #24292e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  outline: none;
}

a img {
  border: 0;
}

hr {
  display: block;
  height: 1px;
  margin: 1rem 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #ccc;
}

pre,
code {
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  background-color: #3a3a3a;
  color: #eee;
  font-size: 15px;
}

code {
  padding: 1px 5px;
}

pre {
  overflow-x: auto;
  padding: 8px 12px;
}

pre > code {
  display: block;
  border: 0;
  padding-right: 0;
  padding-left: 0;
  background: transparent;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  word-break: break-all;
}

table th {
  background-color: #f6f8fa;
}

table th,
table td {
  padding: 10px 20px;
  border: 1px solid #dfe2e5;
}

blockquote {
  margin-left: 4px;
  border-left: 3.8px solid rgb(80 80 80);
  background-color: rgba(51 51 51 / 5%);
  padding-left: 20px;
  font-weight: 300;
  word-break: break-all;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.125rem; }

p,
li,
label,
time,
span {
  text-wrap: pretty;
}

ul {
  padding-left: 0;
  list-style: none;
}

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

/* ---------- Public layout ---------- */
.main {
  max-width: 660px;
  overflow: hidden;
  margin: 60px auto;
  padding: 50px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 20px 0 rgba(236, 236, 236, 0.86);
}

.container {
  width: 100%;
}

.header {
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.header nav {
  border-top: 1px solid #f4f4f4;
}

.header nav ul,
.header nav li {
  margin: 0;
}

.header nav ul.flat {
  padding: 0;
}

.header nav ul.flat li {
  display: inline-block;
  margin-right: 10px;
  margin-top: 20px;
  text-transform: capitalize;
}

.header nav ul.flat li.active a {
  color: #24292e;
}

.header nav ul.flat li a {
  color: #586069;
}

.header nav ul.flat li a:hover {
  color: #646464;
  text-decoration: none;
}

.header .site-description {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.site-avatar-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.site-avatar {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.site-copy {
  min-width: 0;
  flex: 1;
}

.site-copy h2 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 2rem;
}

.header .site-description nav {
  min-width: 50px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.header .site-description nav ul.flat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header .site-description nav ul.flat li {
  display: inline-flex;
  margin: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #24292e;
  text-decoration: none;
  transition-property: color, background-color, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.social-link:hover,
.social-link.is-active {
  color: #586069;
  text-decoration: none;
}

.social-link:active {
  transform: scale(0.96);
}

.social-link svg,
.section-header svg,
.to_top svg {
  width: 20px;
  height: 20px;
}

.section .section-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: #999;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.recent-posts .posts .post {
  margin-bottom: 30px;
}

.recent-posts .posts .post .time,
.archives-time {
  margin-bottom: 2px;
  color: #bec8d2;
  font-size: 0.725rem;
  font-variant-numeric: tabular-nums;
}

.post-title {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.meta {
  margin-top: 10px;
  margin-bottom: 2px;
  color: #999;
  font-size: 12px;
}

.meta span {
  margin-right: 10px;
}

.post-content {
  line-height: 1.8;
}

.post-content > :first-child { margin-top: 0; }
.post-content > :last-child { margin-bottom: 0; }

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content pre,
.post-content table {
  margin-top: 0;
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  padding-left: 20px;
  list-style-position: outside;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin: 1.6rem 0 0.7rem;
}

.post-content img {
  display: block;
}

.post-tags {
  margin-top: 20px;
}

.post-tags .tags {
  margin-top: 40px;
  border-top: 0;
}

.tag-list,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list .tag-chip,
.tag-cloud .tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0.18rem 0.5rem;
  border: 1px solid #41464b;
  border-radius: 2px;
  background: #41464b;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-decoration: none;
  box-shadow: none;
}

.tag-list .tag-chip:active,
.tag-cloud .tag-chip:active {
  transform: scale(0.96);
}

.tag-cloud .tag-chip strong {
  font-variant-numeric: tabular-nums;
}

.archives-item {
  margin-bottom: 28px;
}

.archives-item-title {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.archives-item-content p {
  margin: 0 0 10px;
}

.archives-time {
  display: inline-block;
  min-width: 48px;
  margin-right: 10px;
}

.footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f4f4f4;
  color: #999;
  font-size: 0.75em;
  text-align: right;
}

.footer nav {
  border-top: 0;
}

.footer a {
  color: inherit;
}

/* Friendship links shown in footer */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 6px;
}

.footer-links a {
  color: #586069;
}

.footer-links a:hover {
  color: #24292e;
}

.footer-links__more {
  color: #999 !important;
  font-size: 0.78rem;
}

.footer-links__more:hover {
  color: #24292e !important;
  text-decoration: underline;
}

/* Public /links page */
.links-page {
  margin-top: 18px;
}

.links-group {
  margin-bottom: 36px;
}

.links-group:last-child {
  margin-bottom: 0;
}

.links-group__title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f4f4f4;
  font-size: 1.1rem;
  font-weight: 500;
  color: #24292e;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  margin: 0;
}

.link-card__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #eaecef;
  border-radius: 6px;
  background: #fff;
  color: #24292e;
  text-decoration: none;
  height: 100%;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.link-card__link:hover {
  border-color: #c8ced3;
  box-shadow: 0 4px 12px rgba(36, 41, 46, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
  color: #24292e;
}

.link-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f6f8fa;
  overflow: hidden;
}

.link-card__icon img {
  width: 20px;
  height: 20px;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  object-fit: contain;
}

.link-card__icon-fallback {
  font-size: 16px;
  line-height: 1;
}

.link-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.link-card__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #24292e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__desc {
  font-size: 0.78rem;
  color: #586069;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-card__rel {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f4f6f8;
  color: #6b7280;
}

.link-card__rel--friend { background: #dcfce7; color: #166534; }
.link-card__rel--tool { background: #ede9fe; color: #5b21b6; }
.link-card__rel--resource { background: #dbeafe; color: #1e40af; }
.link-card__rel--footer { background: #fef3c7; color: #92400e; }
.link-card__rel--hidden { background: #f4f6f8; color: #6b7280; }

@media (max-width: 767px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
}

.flash--public {
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: none;
}

.empty-notice {
  padding: 10px 0 0;
  color: #999;
}

.highlight {
  border: 3px solid #e8e8e8;
  background: #3a3a3a;
}

.highlight pre,
.highlight code,
.highlight kbd,
.highlight samp {
  background-color: inherit;
  color: #eee;
  font-weight: 400;
  white-space: pre;
}

.highlight pre {
  margin: 0;
  padding: 10px;
  overflow: auto;
}

.highlight pre code {
  padding: 0;
}

.highlight pre::-webkit-scrollbar { height: 10px; }
.highlight pre::-webkit-scrollbar-button { display: none; }

.highlight pre::-webkit-scrollbar-thumb {
  min-height: 16px;
  border: 3px solid #fdfdfd;
  border-radius: 5px;
  background-color: #ccc;
  background-clip: padding-box;
}

.highlight pre::-webkit-scrollbar-thumb:active {
  border-width: 2px;
  background-color: #999;
}

a.to_top {
  position: fixed;
  right: 30px;
  bottom: 40px;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #888;
  line-height: 36px;
  text-align: center;
  text-decoration: none;
  transition-property: background-color, color, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

a.to_top:hover {
  cursor: pointer;
  background: #dfdfdf;
  color: #555;
  text-decoration: none;
}

a.to_top:active {
  transform: scale(0.96);
}

#mhz,
#szh,
#yyz {
  border-radius: 8px;
}

#mhz {
  overflow: hidden;
  margin: 10px 0;
  padding: 15px 15px 15px 35px;
  background-color: #8ec5fc;
  background-image: linear-gradient(62deg, #8ec5fc 0%, #e0c3fc 100%);
  box-shadow: 6px 0 12px -5px rgb(190, 196, 252), -6px 0 12px -5px rgb(189, 196, 252);
  color: #555;
}

#yyz {
  overflow: hidden;
  margin: 10px 0;
  padding: 15px 15px 15px 35px;
  background-image: radial-gradient(circle farthest-corner at 10% 20%, rgba(95, 117, 227, 1) 0%, rgba(188, 167, 205, 1) 90%);
  box-shadow: 6px 0 12px -5px rgb(175, 160, 208), -6px 0 12px -5px rgba(177, 161, 207, 0);
  color: #fff;
}

#szh {
  overflow: hidden;
  margin: 10px 0;
  padding: 15px 15px 15px 35px;
  background-image: radial-gradient(circle farthest-corner at 10% 20%, rgba(0, 0, 0, 1) 0%, rgba(64, 64, 64, 1) 90.2%);
  box-shadow: 6px 0 12px -5px rgb(155, 170, 185), -6px 0 12px -5px rgba(177, 161, 207, 0);
  color: #c7c7c7;
}

darkb-text {
  border-radius: 4px;
  background-color: #12121c;
  color: #12121c;
  padding: 2px;
  font-size: 14px;
  text-shadow: none;
  transition: color 0.3s;
}

darkb-text:hover,
darkb-text:active {
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 10px 0 0;
  text-align: left;
}

.pagination li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.pagination .page-previous {
  margin-right: 20px;
  padding-right: 20px;
}

.pagination .page-item.page-next,
.pagination .page-item.page-previous {
  text-align: right;
}

.size-video {
  position: relative;
  overflow: hidden;
  height: 0;
  border: 6px solid #f0f0f0;
  border-radius: 5px;
  padding-bottom: 66.5%;
}

.size-video iframe {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767px) {
  h1 { font-size: 1.375rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }
  h4, h5, h6 { font-size: 1rem; }

  body {
    background: #fff;
  }

  .main {
    margin: 0 auto;
    padding: 30px;
    box-shadow: none;
  }

  .header .site-description {
    align-items: flex-start;
    flex-direction: column;
  }

  .header .site-description h2 {
    display: none;
  }

  .container {
    margin-top: 10px;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }

  .highlight pre::-webkit-scrollbar {
    display: none;
  }

  a.to_top {
    right: 18px;
    bottom: 18px;
  }
}

/* =========================================================
   Admin (unified with public Ying theme)
   ========================================================= */

.admin-main {
  max-width: 960px;
  overflow: hidden;
  margin: 60px auto;
  padding: 50px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 20px 0 rgba(236, 236, 236, 0.86);
}

/* Top brand row inside admin */
.admin-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}

.admin-brand__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.admin-brand__avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-brand__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.admin-brand__meta {
  margin: 2px 0 0;
  color: #999;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.admin-brand__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tabs nav */
.admin-tabs {
  margin: 22px 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f4f4f4;
}

.admin-tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  color: #586069;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.admin-tabs a:hover {
  color: #24292e;
  text-decoration: none;
}

.admin-tabs a.is-active {
  color: #24292e;
  border-bottom-color: #24292e;
}

/* Page title + description */
.admin-page-head {
  margin-bottom: 24px;
}

.admin-page-head h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 500;
}

.admin-page-head p {
  margin: 0;
  color: #586069;
  font-size: 0.92rem;
}

/* Sections */
.admin-section {
  margin-bottom: 36px;
}

.admin-section:last-child {
  margin-bottom: 0;
}

.admin-section > h2 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f4f4f4;
  font-size: 1.1rem;
  font-weight: 500;
}

.admin-section--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

/* Stat cards */
.stat-card {
  padding: 18px 20px;
  border-radius: 6px;
  background: #f6f8fa;
  border: 1px solid #eaecef;
}

.stat-card__value {
  display: block;
  font-size: 1.7rem;
  font-weight: 600;
  color: #24292e;
  font-variant-numeric: tabular-nums;
}

.stat-card__label {
  display: block;
  margin-top: 4px;
  color: #586069;
  font-size: 0.82rem;
}

.stat-card__hint {
  display: block;
  margin-top: 8px;
  color: #999;
  font-size: 0.75rem;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #eaecef;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #586069;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fbfbfc;
}

.admin-table tbody tr:hover td {
  background: #fafbfc;
}

.admin-table .col-title strong {
  display: block;
  color: #24292e;
  font-weight: 500;
  font-size: 0.95rem;
}

.admin-table .col-title small {
  display: block;
  margin-top: 2px;
  color: #999;
  font-size: 0.78rem;
  word-break: break-all;
}

.admin-table .col-actions {
  white-space: nowrap;
}

/* Buttons */
.admin-btn {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid #dfe2e5;
  border-radius: 4px;
  background: #fff;
  color: #24292e;
  font-size: 0.82rem;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.admin-btn:hover {
  background: #f6f8fa;
  border-color: #c8ced3;
  text-decoration: none;
}

.admin-btn--primary {
  background: #24292e;
  color: #fff;
  border-color: #24292e;
}

.admin-btn--primary:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.admin-btn--danger {
  color: #cb2431;
  border-color: #fdaeb7;
  background: #fff;
}

.admin-btn--danger:hover {
  background: #ffeef0;
  border-color: #fdaeb7;
  color: #cb2431;
}

.admin-btn--sm {
  padding: 3px 8px;
  font-size: 0.75rem;
}

.admin-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-btn-row form {
  margin: 0;
}

/* Status & kind badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.5;
}

.badge--post {
  background: #fff3e8;
  color: #b54708;
}

.badge--page {
  background: #edf3ff;
  color: #2c5cd0;
}

.badge--published {
  background: #dcfce7;
  color: #166534;
}

.badge--draft {
  background: #fef3c7;
  color: #92400e;
}

.badge--scheduled {
  background: #ede9fe;
  color: #5b21b6;
}

/* Link rel badges (used in admin link table) */
.badge--friend {
  background: #dcfce7;
  color: #166534;
}

.badge--tool {
  background: #ede9fe;
  color: #5b21b6;
}

.badge--resource {
  background: #dbeafe;
  color: #1e40af;
}

.badge--footer {
  background: #fef3c7;
  color: #92400e;
}

.badge--hidden {
  background: #f4f6f8;
  color: #6b7280;
}

/* Forms */
.admin-form .field {
  margin-bottom: 18px;
}

.admin-form label {
  display: block;
  margin-bottom: 6px;
  color: #24292e;
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="datetime-local"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dfe2e5;
  border-radius: 4px;
  background: #fff;
  color: #24292e;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.admin-form input:hover,
.admin-form select:hover,
.admin-form textarea:hover {
  border-color: #c8ced3;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: #24292e;
  box-shadow: 0 0 0 3px rgba(36, 41, 46, 0.08);
}

.admin-form textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-form .editor-textarea {
  min-height: 460px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.7;
  font-size: 0.88rem;
}

.admin-form .field-hint {
  margin: 6px 0 0;
  color: #999;
  font-size: 0.8rem;
}

.admin-form .field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.admin-form .field-row--triple {
  grid-template-columns: repeat(3, 1fr);
}

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

/* Flash messages */
.flash {
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.flash--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.flash--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Empty state */
.admin-empty {
  padding: 30px 20px;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

.admin-empty a {
  display: inline-block;
  margin-top: 10px;
}

/* Tag cloud in admin tags page */
.admin-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0;
}

.admin-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #dfe2e5;
  border-radius: 999px;
  background: #fff;
  color: #24292e;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.admin-tag-chip:hover {
  background: #f6f8fa;
  border-color: #c8ced3;
  text-decoration: none;
}

.admin-tag-chip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eaecef;
  color: #586069;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

/* Two-column layout for editor */
.admin-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Responsive */
@media (max-width: 767px) {
  .admin-main {
    margin: 0 auto;
    padding: 30px;
    box-shadow: none;
  }

  .admin-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-tabs ul {
    gap: 6px 16px;
  }

  .admin-form .field-row,
  .admin-form .field-row--triple {
    grid-template-columns: 1fr;
  }

  .admin-section--grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-table {
    font-size: 0.85rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
  }

  .admin-table .col-actions {
    white-space: normal;
  }
}
