:root {
  --qz-bg: linear-gradient(180deg, #f6f1ea 0%, #fdfaf6 100%);
  --qz-panel: #fffdf9;
  --qz-border: rgba(146, 64, 14, 0.14);
  --qz-text: #3f2b1d;
  --qz-muted: #7c5c45;
  --qz-primary: #9a3412;
  --qz-primary-strong: #7c2d12;
  --qz-shadow: 0 24px 48px -28px rgba(120, 53, 15, 0.38);
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--qz-text);
  background: var(--qz-bg);
}

body {
  padding: 16px;
}

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

a:hover {
  color: var(--qz-primary-strong);
  text-decoration: none;
}

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

.qz-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  box-shadow: var(--qz-shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
}

.qz-hero {
  position: relative;
  padding: 28px 28px 24px;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 42%),
    radial-gradient(circle at top right, rgba(124, 45, 18, 0.20), transparent 44%),
    linear-gradient(135deg, #fff7ed 0%, #fffdf8 58%, #fff8f0 100%);
  border-bottom: 1px solid var(--qz-border);
}

.qz-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.qz-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.08);
  color: var(--qz-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qz-kicker-link:hover {
  color: var(--qz-primary-strong);
  background: rgba(154, 52, 18, 0.12);
}

.qz-title {
  margin: 10px 0 6px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.qz-subtitle {
  margin: 0;
  max-width: 700px;
  color: var(--qz-muted);
  font-size: 15px;
  line-height: 1.7;
}

.qz-hero-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qz-btn,
.qz-btn-secondary,
.qz-btn-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.qz-btn {
  background: linear-gradient(135deg, var(--qz-primary) 0%, #c2410c 100%);
  color: #fff;
  box-shadow: 0 18px 36px -20px rgba(154, 52, 18, 0.68);
}

.qz-btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

.qz-btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--qz-primary);
  border-color: rgba(154, 52, 18, 0.18);
}

.qz-btn-secondary:hover,
.qz-btn-link:hover {
  transform: translateY(-1px);
}

.qz-btn-link {
  background: transparent;
  color: var(--qz-primary);
  border-color: rgba(154, 52, 18, 0.12);
}

.qz-content {
  padding: 22px;
}

.qz-content--single {
  display: grid;
  gap: 18px;
}

.qz-panel {
  background: var(--qz-panel);
  border: 1px solid rgba(154, 52, 18, 0.1);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 34px -28px rgba(120, 53, 15, 0.38);
}

.qz-panel + .qz-panel {
  margin-top: 18px;
}

.qz-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.qz-panel-header h3 {
  margin: 0;
  font-size: 18px;
}

.qz-circle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.qz-circle-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(154, 52, 18, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(255, 248, 241, 0.95) 100%);
  box-shadow: 0 20px 34px -28px rgba(120, 53, 15, 0.38);
}

.qz-circle-card-head {
  display: grid;
  gap: 12px;
}

.qz-circle-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.qz-circle-card-intro {
  margin: 6px 0 0;
  color: var(--qz-muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qz-circle-card-footer {
  display: flex;
  justify-content: flex-start;
}

.qz-function-panel {
  padding-bottom: 18px;
}

.qz-action-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
}

.qz-action-tab {
  min-height: 38px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(154, 52, 18, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: var(--qz-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  font-size: 14px;
  white-space: nowrap;
}

.qz-action-tab:hover,
.qz-action-tab.is-active {
  transform: translateY(-1px);
  border-color: rgba(154, 52, 18, 0.24);
  box-shadow: 0 14px 26px -22px rgba(120, 53, 15, 0.45);
}

.qz-action-tab.is-active,
.qz-action-tab--primary {
  background: linear-gradient(135deg, var(--qz-primary) 0%, #c2410c 100%);
  color: #fff;
}

.qz-action-tab--primary:hover {
  color: #fff;
}

.qz-action-tab--create {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: #fff;
  border-color: rgba(4, 120, 87, 0.24);
  box-shadow: 0 14px 26px -22px rgba(4, 120, 87, 0.55);
  font-weight: 800;
}

.qz-action-tab--create:hover {
  color: #fff;
  border-color: rgba(4, 120, 87, 0.34);
  box-shadow: 0 16px 30px -22px rgba(4, 120, 87, 0.65);
}

.qz-action-tab--danger {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(254, 242, 242, 0.9);
}

.qz-action-tab--danger:hover {
  border-color: rgba(185, 28, 28, 0.32);
  box-shadow: 0 14px 26px -22px rgba(185, 28, 28, 0.45);
}

.qz-switch-panel {
  padding-bottom: 18px;
}

.qz-circle-switch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.qz-circle-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(154, 52, 18, 0.1);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.qz-circle-switch:hover,
.qz-circle-switch.is-active {
  transform: translateY(-1px);
  border-color: rgba(154, 52, 18, 0.24);
  box-shadow: 0 18px 30px -24px rgba(120, 53, 15, 0.45);
}

.qz-circle-switch.is-active {
  background: linear-gradient(135deg, #fff8f1 0%, #fff 100%);
}

.qz-circle-switch-name {
  min-width: 0;
  flex: 1;
  color: var(--qz-text);
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qz-circle-switch-meta {
  flex-shrink: 0;
  color: var(--qz-muted);
  font-size: 12px;
  font-weight: 700;
}

.qz-chip-row,
.qz-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qz-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--qz-primary);
  font-size: 12px;
  font-weight: 700;
}

.qz-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.qz-toolbar-left h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
}

.qz-toolbar-left p {
  margin: 0;
  color: var(--qz-muted);
  font-size: 14px;
  line-height: 1.7;
}

.qz-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.qz-select {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(154, 52, 18, 0.16);
  background: #fff;
  color: var(--qz-text);
}

.qz-empty,
.qz-loading,
.qz-error {
  padding: 26px 22px;
  border: 1px dashed rgba(154, 52, 18, 0.18);
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.54);
  color: var(--qz-muted);
  text-align: center;
  line-height: 1.8;
}

.qz-post-list {
  display: grid;
  gap: 14px;
}

.qz-load-more-status {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(154, 52, 18, 0.18);
  background: rgba(255, 247, 237, 0.54);
  color: var(--qz-muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.qz-post-card {
  padding: 16px;
  background: var(--qz-panel);
  border: 1px solid rgba(154, 52, 18, 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 34px -28px rgba(120, 53, 15, 0.38);
}

.qz-post-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.qz-post-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 247, 237, 0.8);
  border: 1px solid rgba(154, 52, 18, 0.12);
}

.qz-post-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qz-post-main {
  min-width: 0;
}

.qz-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 10px;
  color: var(--qz-muted);
  font-size: 12px;
}

.qz-post-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.08);
  color: var(--qz-primary);
  font-weight: 700;
}

.qz-post-title {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.4;
}

.qz-post-title--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qz-post-excerpt {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.78;
  color: #5f4632;
  white-space: pre-wrap;
}

.qz-post-excerpt--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.qz-post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qz-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--qz-muted);
  font-size: 12px;
}

.qz-stat {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.78);
}

.qz-post-layout {
  padding: 22px;
}

.qz-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--qz-muted);
}

.qz-comment-list {
  display: grid;
  gap: 12px;
}

.qz-comment-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(154, 52, 18, 0.08);
  background: rgba(255, 250, 245, 0.96);
}

.qz-comment-card p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
}

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

.qz-form-row {
  display: grid;
  gap: 8px;
}

.qz-form-row label {
  font-size: 14px;
  font-weight: 700;
  color: var(--qz-text);
}

.qz-input,
.qz-textarea {
  width: 100%;
  border: 1px solid rgba(154, 52, 18, 0.16);
  border-radius: 16px;
  background: #fff;
  color: var(--qz-text);
  padding: 12px 14px;
  box-sizing: border-box;
}

.qz-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}

.qz-form-label-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qz-form-label-line span {
  color: var(--qz-muted);
  font-size: 12px;
  font-weight: 700;
}

.qz-form-label-line span.is-warning {
  color: #b91c1c;
}

.qz-editor-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(154, 52, 18, 0.12);
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.55);
  overflow-x: auto;
  scrollbar-width: thin;
}

.qz-editor-tools-row {
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.qz-pub-editor-head {
  flex-wrap: wrap;
  align-items: center;
}

.qz-pub-editor-controls {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.qz-editor-mode-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(154, 52, 18, 0.16);
  border-radius: 14px;
  background: #fff;
}

.qz-editor-mode-tab {
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--qz-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.qz-editor-mode-tab.is-active {
  background: rgba(154, 52, 18, 0.1);
  color: var(--qz-primary);
}

.qz-editor-tool {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(154, 52, 18, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--qz-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.qz-editor-tool:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 52, 18, 0.28);
  box-shadow: 0 12px 22px -18px rgba(120, 53, 15, 0.45);
}

.qz-editor-tool--red {
  color: #b91c1c;
  background: #fff5f5;
}

.qz-editor-tool--mark {
  color: #8a5200;
  background: #fff7d6;
}

.qz-structure-select {
  width: min(190px, 46vw);
  min-height: 38px;
  font-weight: 800;
  color: var(--qz-primary);
  border-radius: 14px;
}

.qz-editor-hint {
  margin: 0;
  color: var(--qz-muted);
  font-size: 12px;
  line-height: 1.5;
}

.qz-template-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.qz-template-card {
  min-height: 58px;
  border: 1px solid rgba(154, 52, 18, 0.14);
  border-radius: 14px;
  background: #fff;
  color: var(--qz-text);
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.qz-template-card span {
  font-size: 14px;
  font-weight: 800;
}

.qz-template-card small {
  color: var(--qz-muted);
  font-size: 12px;
  line-height: 1.25;
}

.qz-template-card:hover,
.qz-template-card.is-active {
  border-color: rgba(154, 52, 18, 0.34);
  background: #fff8ef;
  box-shadow: 0 14px 26px -22px rgba(120, 53, 15, 0.5);
}

.qz-template-card:hover {
  transform: translateY(-1px);
}

.qz-template-select {
  min-height: 48px;
  border-color: rgba(154, 52, 18, 0.18);
  background-color: #fff;
  color: #3b82f6;
  font-weight: 400;
}

.qz-pub-preview {
  height: 100%;
  min-height: 300px;
  padding: 18px;
  border: 1px solid rgba(154, 52, 18, 0.16);
  border-radius: 16px;
  background: #fff;
  overflow: auto;
}

.qz-pub-preview-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  color: var(--qz-muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.qz-pub-preview-body:empty {
  display: none;
}

.qz-pub-page .qz-hero {
  padding: 14px 18px;
}

.qz-pub-page .qz-pub-topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.qz-pub-page .qz-title {
  margin: 8px 0 4px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.qz-pub-page .qz-subtitle {
  font-size: 14px;
  line-height: 1.55;
}

.qz-pub-page .qz-post-layout {
  padding: 16px 18px 18px;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.qz-pub-page .qz-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
  border-radius: 20px;
  box-shadow: none;
}

.qz-pub-page .qz-form-grid {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.qz-pub-page .qz-select,
.qz-pub-page .qz-input {
  min-height: 48px;
  border-radius: 16px;
}

.qz-pub-page .qz-title-input {
  min-height: 48px;
  border-color: rgba(154, 52, 18, 0.16);
  background: #fff;
  color: var(--qz-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.qz-pub-page .qz-title-input::placeholder {
  color: #8b8f98;
  font-weight: 400;
}

.qz-pub-content-row {
  flex: 1;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.qz-pub-page .qz-pub-editor {
  height: 100%;
  min-height: 300px;
  font-size: 16px;
  line-height: 1.82;
}

.qz-pub-submit-row {
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
}

.qz-helper {
  color: var(--qz-muted);
  font-size: 13px;
  line-height: 1.6;
}

.qz-banner {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.qz-banner.info {
  background: rgba(245, 158, 11, 0.12);
  color: #8a5200;
}

.qz-banner.error {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
}

.qz-banner.success {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.qz-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.qz-admin-stat {
  min-height: 76px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(154, 52, 18, 0.1);
  background: rgba(255, 247, 237, 0.62);
  display: grid;
  align-content: center;
  gap: 4px;
}

.qz-admin-stat strong {
  font-size: 22px;
  line-height: 1.1;
}

.qz-admin-stat span {
  color: var(--qz-muted);
  font-size: 13px;
}

.qz-admin-list {
  display: grid;
  gap: 12px;
}

.qz-admin-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(154, 52, 18, 0.1);
  background: rgba(255, 250, 245, 0.96);
}

.qz-admin-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.qz-admin-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.qz-admin-excerpt {
  margin: 12px 0 0;
  color: #5f4632;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}

.qz-admin-reason {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  color: #8a5200;
  font-size: 13px;
  line-height: 1.6;
}

.qz-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.qz-admin-actions .qz-action-tab {
  min-width: 76px;
}

.qz-admin-load {
  width: 100%;
  cursor: pointer;
}

.qz-admin-load--disabled {
  cursor: default;
  opacity: 0.66;
}

.qz-admin-role-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.qz-admin-black-form {
  display: grid;
  grid-template-columns: 130px 120px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.qz-admin-disabled {
  opacity: 0.6;
}

.qz-admin-role-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(154, 52, 18, 0.1);
  background: rgba(255, 250, 245, 0.96);
}

.qz-admin-role-card .qz-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.qz-admin-role-main {
  min-width: 0;
}

.qz-admin-role-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qz-list-page .qz-hero {
  padding: 20px 22px 18px;
}

.qz-list-page .qz-title {
  margin: 8px 0 4px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}

.qz-list-page .qz-subtitle {
  font-size: 14px;
  line-height: 1.55;
}

.qz-list-page .qz-content {
  padding: 14px;
}

.qz-list-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(160px, 1.4fr);
  gap: 10px;
}

.qz-overview-stat,
.qz-overview-live {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(154, 52, 18, 0.12);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.92);
}

.qz-overview-stat {
  display: grid;
  gap: 3px;
}

.qz-overview-stat strong {
  color: var(--qz-text);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.qz-overview-stat span,
.qz-overview-live span,
.qz-overview-live em {
  color: var(--qz-muted);
  font-size: 12px;
  line-height: 1.35;
  font-style: normal;
}

.qz-overview-live {
  display: grid;
  gap: 3px;
}

.qz-overview-live strong {
  min-width: 0;
  overflow: hidden;
  color: var(--qz-primary);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qz-overview-live em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qz-list-page .qz-panel {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: none;
}

.qz-list-page .qz-panel-header {
  padding: 12px 14px 8px;
  margin: 0;
}

.qz-list-page .qz-panel-header h3 {
  font-size: 16px;
}

.qz-list-page .qz-circle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.qz-list-page .qz-circle-row-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  border: 0;
  border-top: 1px solid rgba(154, 52, 18, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--qz-text);
}

.qz-list-page .qz-circle-row-card.is-official {
  background: rgba(255, 247, 237, 0.45);
}

.qz-list-page .qz-circle-row-card:hover {
  background: rgba(255, 247, 237, 0.55);
}

.qz-list-page .qz-circle-row-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(154, 52, 18, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9), rgba(255, 255, 255, 0.94));
  color: var(--qz-primary);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.qz-list-page .qz-circle-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.qz-list-page .qz-circle-card-title {
  min-width: 0;
  font-size: 16px;
  line-height: 1.3;
}

.qz-list-page .qz-circle-heat-tag {
  flex-shrink: 0;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(154, 52, 18, 0.14);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.8);
  color: var(--qz-primary);
  font-size: 11px;
  line-height: 18px;
}

.qz-list-page .qz-circle-card-intro {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 1;
}

.qz-list-page .qz-circle-latest {
  min-width: 0;
  margin: 6px 0 0;
  overflow: hidden;
  color: #6d5845;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qz-list-page .qz-circle-row-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: #9a8a7b;
  font-size: 12px;
  white-space: nowrap;
}

.qz-post-page .qz-hero {
  padding: 18px 22px 16px;
}

.qz-post-page .qz-title {
  margin: 8px 0 4px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.qz-post-page .qz-subtitle {
  font-size: 14px;
  line-height: 1.55;
}

.qz-post-page .qz-post-layout {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.qz-post-page .qz-post-topbar {
  display: flex;
  justify-content: flex-start;
}

.qz-post-page .qz-panel {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: none;
}

.qz-post-page .qz-panel + .qz-panel {
  margin-top: 0;
}

.qz-post-page .qz-panel-header {
  padding: 16px 18px 10px;
  margin: 0;
}

.qz-post-page .qz-panel-header h3 {
  font-size: 18px;
}

.qz-detail-article {
  padding: 18px 84px 18px 18px;
}

.qz-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.qz-detail-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.42;
  font-weight: 800;
}

.qz-detail-author {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 0 14px;
  border-bottom: 1px solid rgba(154, 52, 18, 0.1);
  color: var(--qz-muted);
}

.qz-detail-author .qz-post-avatar,
.qz-comment-head .qz-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.qz-detail-author strong,
.qz-comment-meta strong {
  display: block;
  color: var(--qz-text);
  font-size: 14px;
  line-height: 1.4;
}

.qz-detail-author span,
.qz-comment-meta span {
  display: block;
  margin-top: 2px;
  color: var(--qz-muted);
  font-size: 12px;
  line-height: 1.4;
}

.qz-detail-body {
  padding: 18px 0 16px;
  color: #4d3727;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-wrap;
}

.qz-detail-body.is-collapsed {
  position: relative;
  max-height: 680px;
  overflow: hidden;
}

.qz-detail-body.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0), var(--qz-panel));
}

.qz-detail-expand {
  width: 100%;
  min-height: 42px;
  margin: 2px 0 16px;
  border: 1px dashed rgba(154, 52, 18, 0.22);
  border-radius: 16px;
  background: rgba(255, 247, 237, 0.74);
  color: var(--qz-primary);
  cursor: pointer;
  font-weight: 800;
}

.qz-detail-expand:hover {
  border-color: rgba(154, 52, 18, 0.34);
  background: rgba(255, 247, 237, 0.95);
}

.qz-detail-foot-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  padding: 0 0 10px;
}

.qz-report-post-link,
.qz-owner-post-link {
  border: 0;
  background: transparent;
  color: var(--qz-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  padding: 2px 0;
  text-decoration: none;
}

.qz-report-post-link:hover,
.qz-owner-post-link:hover {
  color: var(--qz-primary);
}

.qz-owner-post-link--danger:hover {
  color: #dc2626;
}

.qz-circle-activity-panel {
  padding: 14px 18px 16px;
}

.qz-circle-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.qz-circle-activity-head h3 {
  margin: 0;
  color: var(--qz-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.qz-circle-activity-head span {
  color: var(--qz-muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.qz-circle-activity-list {
  display: grid;
}

.qz-circle-activity-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(154, 52, 18, 0.1);
  color: inherit;
  text-decoration: none;
}

.qz-circle-activity-item:last-child {
  border-bottom: 0;
}

.qz-circle-activity-item:hover {
  color: inherit;
}

.qz-circle-activity-time {
  color: #5b4636;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.qz-circle-activity-main {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--qz-muted);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qz-circle-activity-main strong {
  margin-right: 4px;
  color: var(--qz-primary);
  font-weight: 800;
}

.qz-circle-activity-main span {
  margin-right: 4px;
}

.qz-circle-activity-main em {
  color: #4d3727;
  font-style: normal;
}

.qz-rich-content {
  white-space: normal;
}

.qz-rich-content p {
  margin: 0 0 12px;
  white-space: pre-wrap;
}

.qz-rich-content .qz-rich-paragraph {
  margin: 0 0 18px;
  white-space: normal;
}

.qz-rich-content .qz-rich-paragraph:last-child {
  margin-bottom: 0;
}

.qz-rich-card {
  position: relative;
  overflow: hidden;
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), #fff 72%);
  box-shadow: 0 18px 30px -26px rgba(190, 18, 60, 0.35);
}

.qz-rich-card::before {
  content: "";
  position: absolute;
  top: -38px;
  right: -30px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.12);
}

.qz-rich-card-body {
  position: relative;
}

.qz-rich-card .qz-rich-paragraph:last-child,
.qz-rich-card p:last-child,
.qz-rich-card blockquote:last-child {
  margin-bottom: 0;
}

.qz-rich-card--frame {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #7c3aed, #22d3ee 28%, #f472b6 56%, #f59e0b 82%, #7c3aed) border-box;
  box-shadow: 0 14px 28px -24px rgba(59, 130, 246, 0.55);
}

.qz-rich-card--frame::before {
  display: none;
}

.qz-rich-card--title {
  border-color: rgba(37, 99, 235, 0.22);
  border-left: 5px solid #2563eb;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 66%);
  box-shadow: 0 16px 30px -26px rgba(37, 99, 235, 0.4);
}

.qz-rich-card--title::before {
  display: none;
}

.qz-rich-card--title h3 {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 18px;
  line-height: 1.45;
}

.qz-rich-card--steps {
  border-color: #1d4ed8;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.qz-rich-card--steps::before {
  display: none;
}

.qz-rich-card--steps h3 {
  margin: 0 0 12px;
  color: #1d4ed8;
  text-align: center;
}

.qz-rich-card--steps .qz-rich-bullet {
  padding: 9px 0;
  border-top: 1px solid rgba(37, 99, 235, 0.16);
}

.qz-rich-card--steps .qz-rich-bullet::before {
  background: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.qz-rich-card--quote {
  overflow: visible;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px -24px rgba(17, 24, 39, 0.5);
}

.qz-rich-card--quote::before {
  left: 14px;
  top: 13px;
  right: auto;
  width: 10px;
  height: 10px;
  border: 1px solid #111827;
  background: #fde047;
}

.qz-rich-card--quote::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-right: 1px solid #111827;
  border-bottom: 1px solid #111827;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.qz-rich-card--quote .qz-rich-card-body {
  padding-left: 18px;
}

.qz-rich-card--blue {
  border-color: rgba(29, 78, 216, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 58%, #fff 100%);
  color: #1f2a44;
  box-shadow: 0 18px 32px -28px rgba(29, 78, 216, 0.45);
}

.qz-rich-card--blue::before {
  display: block;
  top: -42px;
  right: -34px;
  background: rgba(59, 130, 246, 0.12);
}

.qz-rich-card--blue h3 {
  color: #1d4ed8;
}

.qz-rich-card--blue p {
  color: #334155;
}

.qz-rich-card--blue strong {
  color: #0f3fb3;
}

.qz-rich-card--blue .qz-rich-red {
  color: #b91c1c;
}

.qz-rich-card--blue mark {
  color: #1e3a8a;
  background: #dbeafe;
}

.qz-rich-card--spring {
  border-color: rgba(34, 197, 94, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(236, 72, 153, 0.12), rgba(34, 197, 94, 0.16)) top left / 100% 6px no-repeat,
    linear-gradient(135deg, #f0fdf4 0%, #fff7ed 62%, #fff 100%);
  box-shadow: 0 18px 32px -28px rgba(22, 163, 74, 0.42);
}

.qz-rich-card--spring::before,
.qz-rich-card--notice::before,
.qz-rich-card--season::before,
.qz-rich-card--festival::before {
  display: none;
}

.qz-rich-card--spring h3 {
  color: #15803d;
}

.qz-rich-card--spring p {
  color: #365314;
}

.qz-rich-card--notice {
  border: 2px solid rgba(245, 158, 11, 0.36);
  border-radius: 14px;
  background:
    linear-gradient(90deg, #f59e0b, #facc15) top left / 100% 5px no-repeat,
    #fffaf0;
  box-shadow: 0 16px 30px -26px rgba(180, 83, 9, 0.45);
}

.qz-rich-card--notice h3 {
  color: #b45309;
}

.qz-rich-card--notice p {
  color: #5f3f17;
}

.qz-rich-card--season {
  border-color: rgba(15, 118, 110, 0.22);
  border-left: 5px solid #0f766e;
  border-radius: 16px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 68%, #fff 100%);
  box-shadow: 0 18px 32px -28px rgba(15, 118, 110, 0.45);
}

.qz-rich-card--season h3 {
  color: #0f766e;
}

.qz-rich-card--season p {
  color: #164e63;
}

.qz-rich-card--festival {
  border-color: rgba(220, 38, 38, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(90deg, #dc2626, #f97316) top left / 100% 6px no-repeat,
    linear-gradient(135deg, #fff1f2 0%, #fff7ed 68%, #fff 100%);
  box-shadow: 0 18px 32px -28px rgba(185, 28, 28, 0.45);
}

.qz-rich-card--festival h3 {
  color: #b91c1c;
}

.qz-rich-card--festival p {
  color: #7f1d1d;
}

.qz-rich-content h3 {
  margin: 18px 0 10px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 800;
  color: var(--qz-text);
}

.qz-rich-content .qz-rich-card--title h3 {
  margin-top: 0;
  color: #1d4ed8;
  font-size: 18px;
}

.qz-rich-content .qz-rich-card--blue h3 {
  margin-top: 0;
  color: #1d4ed8;
}

.qz-rich-content .qz-rich-card--spring h3,
.qz-rich-content .qz-rich-card--notice h3,
.qz-rich-content .qz-rich-card--season h3,
.qz-rich-content .qz-rich-card--festival h3 {
  margin-top: 0;
  font-size: 18px;
}

.qz-rich-content .qz-rich-card--spring h3 {
  color: #15803d;
}

.qz-rich-content .qz-rich-card--notice h3 {
  color: #b45309;
}

.qz-rich-content .qz-rich-card--season h3 {
  color: #0f766e;
}

.qz-rich-content .qz-rich-card--festival h3 {
  color: #b91c1c;
}

.qz-rich-content blockquote {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 4px solid rgba(154, 52, 18, 0.38);
  border-radius: 12px;
  background: rgba(255, 247, 237, 0.68);
  color: #6b4a33;
}

.qz-rich-content mark {
  padding: 0 4px;
  border-radius: 5px;
  background: #fde68a;
  color: #4d3727;
}

.qz-rich-post-link {
  color: var(--qz-primary);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 52, 18, 0.24);
}

.qz-rich-post-link:hover {
  color: #b8320e;
  border-bottom-color: currentColor;
}

.qz-rich-red {
  color: #b91c1c;
  font-weight: 800;
}

.qz-rich-divider {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid rgba(154, 52, 18, 0.18);
}

.qz-rich-bullet {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.qz-rich-bullet::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--qz-primary);
  box-shadow: 0 0 0 4px rgba(154, 52, 18, 0.08);
}

.qz-template-view {
  display: grid;
  gap: 14px;
  margin: 4px 0 6px;
  --qz-template-accent: #2563eb;
  --qz-template-soft: #eff6ff;
  --qz-template-soft-strong: #dbeafe;
  --qz-template-ink: #1e3a8a;
}

.qz-template-view--notice {
  --qz-template-accent: #dc2626;
  --qz-template-soft: #fff1f2;
  --qz-template-soft-strong: #ffe4e6;
  --qz-template-ink: #9f1239;
}

.qz-template-view--story {
  --qz-template-accent: #0f766e;
  --qz-template-soft: #ecfdf5;
  --qz-template-soft-strong: #ccfbf1;
  --qz-template-ink: #115e59;
}

.qz-template-section {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--qz-template-accent) 22%, #fff);
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--qz-template-soft) 92%, #fff) 0%, #fff 72%),
    var(--qz-template-soft);
  box-shadow: 0 18px 30px -26px color-mix(in srgb, var(--qz-template-accent) 46%, transparent);
}

.qz-template-section::before {
  content: "";
  position: absolute;
  top: -32px;
  right: -30px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--qz-template-accent) 12%, transparent);
}

.qz-template-section-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.qz-template-index {
  flex: 0 0 auto;
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--qz-template-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}

.qz-template-section-head h3 {
  margin: 0;
  color: var(--qz-template-ink);
  font-size: 20px;
}

.qz-template-section-body {
  position: relative;
}

.qz-template-section-body p {
  margin-bottom: 10px;
}

.qz-template-section-body blockquote {
  border-left-color: var(--qz-template-accent);
  background: color-mix(in srgb, var(--qz-template-soft-strong) 60%, #fff);
}

.qz-template-section-body .qz-rich-bullet::before {
  background: var(--qz-template-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--qz-template-accent) 11%, transparent);
}

.qz-template-view--notice .qz-rich-red {
  display: inline;
  padding: 2px 6px;
  border-radius: 8px;
  background: #fff;
  color: var(--qz-template-accent);
}

.qz-detail-stats {
  padding-top: 12px;
  border-top: 1px solid rgba(154, 52, 18, 0.1);
}

.qz-post-action-rail {
  position: fixed;
  top: 50%;
  right: max(10px, calc((100vw - 760px) / 2 + 12px));
  z-index: 96;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

body.qz-comment-drawer-open .qz-post-action-rail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
}

.qz-post-action-item {
  width: 58px;
  min-height: 68px;
  border: 1px solid rgba(154, 52, 18, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: 0 14px 28px -22px rgba(154, 52, 18, 0.54);
  color: var(--qz-text);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.qz-post-action-button {
  cursor: pointer;
}

.qz-post-action-button:hover,
.qz-post-action-button.is-active {
  border-color: rgba(154, 52, 18, 0.32);
  background: var(--qz-primary);
  color: #fff;
}

.qz-post-action-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.1);
  color: var(--qz-primary);
}

.qz-post-action-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qz-post-action-button:hover .qz-post-action-icon,
.qz-post-action-button.is-active .qz-post-action-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.qz-post-action-item strong {
  font-size: 15px;
  line-height: 1.1;
}

.qz-post-action-item small {
  color: var(--qz-muted);
  font-size: 11px;
  line-height: 1.1;
}

.qz-post-action-button:hover small,
.qz-post-action-button.is-active small {
  color: rgba(255, 255, 255, 0.86);
}

.qz-comment-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(38, 29, 24, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.qz-comment-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.qz-comment-drawer {
  position: fixed;
  top: 0;
  right: max(0px, calc((100vw - 760px) / 2));
  z-index: 90;
  display: none;
  width: min(430px, calc(100vw - 22px));
  height: 100dvh;
  flex-direction: column;
  border-left: 1px solid rgba(154, 52, 18, 0.14);
  background: var(--qz-panel);
  box-shadow: -24px 0 42px -30px rgba(0, 0, 0, 0.52);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(105%);
  transition: opacity 0.18s ease, transform 0.2s ease, visibility 0.18s ease;
}

.qz-comment-drawer.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(0);
}

body.qz-comment-drawer-open {
  overflow: hidden;
}

.qz-comment-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid rgba(154, 52, 18, 0.1);
}

.qz-comment-drawer-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.qz-drawer-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.08);
  color: var(--qz-muted);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.qz-drawer-close:hover {
  background: rgba(154, 52, 18, 0.14);
  color: var(--qz-primary);
}

.qz-comment-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 6px;
}

.qz-comment-drawer .qz-comment-list .qz-empty,
.qz-comment-drawer .qz-comment-list .qz-loading,
.qz-comment-drawer .qz-comment-list .qz-error {
  margin-bottom: 14px;
}

.qz-comment-drawer-form {
  flex: 0 0 auto;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(154, 52, 18, 0.1);
  background: rgba(255, 253, 249, 0.98);
}

.qz-comment-drawer-form .qz-actions {
  justify-content: flex-end;
}

.qz-reply-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(154, 52, 18, 0.12);
  border-radius: 12px;
  background: rgba(255, 247, 237, 0.78);
  color: var(--qz-muted);
  font-size: 13px;
}

.qz-reply-target button,
.qz-comment-tools button {
  border: 0;
  background: transparent;
  color: var(--qz-primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.qz-comment-tools button.qz-comment-report {
  color: var(--qz-muted);
  font-weight: 400;
}

.qz-comment-tools button.qz-comment-report:hover {
  color: var(--qz-primary);
}

.qz-comment-drawer .qz-textarea {
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  resize: none;
  line-height: 1.45;
}

.qz-mod-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(154, 52, 18, 0.1);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.qz-mod-toolbar::-webkit-scrollbar {
  display: none;
}

.qz-mod-label {
  flex: 0 0 auto;
  color: var(--qz-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.qz-mod-toolbar button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(154, 52, 18, 0.16);
  background: rgba(255, 255, 255, 0.88);
  color: var(--qz-primary);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.qz-mod-toolbar button:hover {
  border-color: rgba(154, 52, 18, 0.28);
  background: rgba(255, 247, 237, 0.9);
}

.qz-mod-toolbar button.danger {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(254, 242, 242, 0.9);
}

.qz-mod-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.qz-post-page .qz-comment-list {
  gap: 0;
}

.qz-post-page .qz-comment-list .qz-empty,
.qz-post-page .qz-comment-list .qz-loading,
.qz-post-page .qz-comment-list .qz-error {
  margin: 0 18px 18px;
}

.qz-post-page .qz-comment-card {
  padding: 10px 18px 11px;
  border: 0;
  border-top: 1px solid rgba(154, 52, 18, 0.08);
  border-radius: 0;
  background: transparent;
}

.qz-comment-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.qz-comment-head .qz-post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.qz-comment-head .qz-comment-meta strong {
  font-size: 13px;
  line-height: 1.28;
}

.qz-comment-head .qz-comment-meta span {
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.25;
}

.qz-post-page .qz-comment-card p {
  margin: 4px 58px 0 44px;
  color: #4d3727;
  font-size: 14px;
  line-height: 1.58;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.qz-comment-quote {
  margin: 5px 58px 0 44px;
  padding: 6px 8px;
  border-left: 3px solid rgba(154, 52, 18, 0.22);
  border-radius: 10px;
  background: rgba(255, 247, 237, 0.62);
  color: var(--qz-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.qz-comment-quote span {
  color: var(--qz-primary);
  font-weight: 700;
}

.qz-comment-tools {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 4px 58px 0 44px;
}

.qz-post-page .qz-comment-load {
  width: calc(100% - 36px);
  margin: 12px 18px 18px;
  cursor: pointer;
}

.qz-post-page .qz-comment-load[data-state="done"] {
  cursor: default;
  opacity: 0.7;
}

.qz-post-page .qz-banner {
  margin: 0 18px 12px;
}

.qz-post-page .qz-form-grid {
  padding: 0 18px 18px;
}

.qz-post-page .qz-textarea {
  min-height: 120px;
}

.qz-post-page .qz-comment-drawer .qz-textarea {
  height: 46px;
  min-height: 46px;
  max-height: 46px;
}

.qz-circle-page .qz-hero {
  padding: 18px 22px 16px;
}

.qz-circle-page .qz-hero-top {
  gap: 12px;
}

.qz-circle-page .qz-title {
  margin: 8px 0 4px;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.qz-circle-page .qz-subtitle {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qz-circle-page .qz-hero-meta {
  margin-top: 10px;
}

.qz-circle-page .qz-actions {
  gap: 8px;
}

.qz-circle-page .qz-btn,
.qz-circle-page .qz-btn-secondary {
  min-height: 36px;
  padding: 0 14px;
}

.qz-circle-page .qz-content {
  padding: 14px;
}

.qz-circle-page .qz-content--single {
  gap: 10px;
}

.qz-circle-page .qz-panel {
  padding: 14px;
  border-radius: 18px;
  box-shadow: none;
}

.qz-circle-page .qz-panel + .qz-panel {
  margin-top: 0;
}

.qz-circle-page .qz-panel-header {
  margin-bottom: 10px;
}

.qz-circle-page .qz-panel-header h3 {
  font-size: 16px;
}

.qz-circle-page .qz-helper {
  font-size: 12px;
  line-height: 1.45;
}

.qz-circle-page .qz-function-panel {
  padding: 12px;
}

.qz-circle-page .qz-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qz-circle-page .qz-action-tab {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.qz-circle-page .qz-current-panel {
  padding: 0;
  overflow: hidden;
}

.qz-circle-page .qz-current-panel > .qz-panel-header {
  padding: 12px 14px 8px;
  margin: 0;
}

.qz-circle-page .qz-current-panel > .qz-banner {
  margin: 0 14px 10px;
}

.qz-circle-page .qz-post-list {
  display: grid;
  gap: 0;
}

.qz-circle-page .qz-feed-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid rgba(154, 52, 18, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.qz-circle-page .qz-feed-avatar {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.qz-circle-page .qz-feed-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--qz-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.38;
}

.qz-circle-page .qz-feed-content-link {
  display: block;
  min-width: 0;
  color: inherit;
}

.qz-circle-page .qz-feed-content-link:hover .qz-feed-title {
  color: var(--qz-primary);
}

.qz-circle-page .qz-feed-meta {
  gap: 5px 8px;
  margin: 7px 0 0;
  color: #8b6f5b;
  font-size: 12px;
  line-height: 1.35;
}

.qz-circle-page .qz-feed-meta .qz-post-badge {
  min-height: 20px;
  padding: 0 7px;
  font-size: 11px;
}

.qz-circle-page .qz-feed-excerpt {
  margin: 8px 0 0;
  color: var(--qz-muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
}

.qz-circle-page .qz-feed-stats {
  gap: 12px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed rgba(154, 52, 18, 0.12);
  font-size: 11px;
  color: #9a8a7b;
  white-space: nowrap;
}

.qz-circle-page .qz-feed-stats span {
  white-space: nowrap;
}

.qz-circle-page .qz-load-more-status {
  margin: 10px 14px 14px;
  padding: 10px 12px;
  border-radius: 14px;
}

.qz-hidden {
  display: none !important;
}

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

@media (min-width: 768px) {
  body {
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: stretch;
  }

  .qz-shell {
    max-width: 760px;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(154, 52, 18, 0.12);
  }
}

@media (max-width: 640px) {
  body {
    padding: 0;
  }

  .qz-shell {
    min-height: 100vh;
    border-radius: 0;
  }

  .qz-hero,
  .qz-content,
  .qz-post-layout {
    padding: 18px;
  }

  .qz-title {
    font-size: 30px;
  }

  .qz-toolbar-left h2 {
    font-size: 24px;
  }

  .qz-post-title {
    font-size: 19px;
  }

  .qz-circle-switch-list {
    grid-template-columns: 1fr 1fr;
  }

  .qz-circle-grid {
    grid-template-columns: 1fr;
  }

  .qz-action-strip {
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
    gap: 6px;
  }

  .qz-action-tab {
    min-height: 36px;
    padding: 0 4px;
    font-size: 13px;
  }

  .qz-post-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .qz-post-avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .qz-admin-card-head {
    grid-template-columns: 1fr;
  }

  .qz-admin-role-form {
    grid-template-columns: 1fr;
  }

  .qz-admin-black-form {
    grid-template-columns: 1fr;
  }

  .qz-admin-role-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .qz-admin-role-card .qz-post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .qz-admin-role-card .qz-action-tab {
    grid-column: 1 / -1;
  }

  .qz-list-page .qz-hero,
  .qz-list-page .qz-content {
    padding: 12px;
  }

  .qz-list-page .qz-title {
    font-size: 28px;
  }

  .qz-list-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .qz-overview-stat,
  .qz-overview-live {
    padding: 10px;
    border-radius: 14px;
  }

  .qz-overview-stat strong {
    font-size: 20px;
  }

  .qz-overview-live {
    grid-column: 1 / -1;
  }

  .qz-list-page .qz-circle-row-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
    padding: 11px 12px;
  }

  .qz-list-page .qz-circle-row-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 15px;
  }

  .qz-list-page .qz-circle-row-meta {
    display: flex;
    grid-column: 2;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    font-size: 11px;
  }

  .qz-post-page .qz-hero,
  .qz-post-page .qz-post-layout {
    padding: 12px;
  }

  .qz-post-page .qz-title {
    font-size: 26px;
  }

  .qz-detail-article {
    padding: 16px 58px 16px 16px;
  }

  .qz-detail-title {
    font-size: 21px;
  }

  .qz-detail-body {
    font-size: 15px;
    line-height: 1.82;
  }

  .qz-detail-body.is-collapsed {
    max-height: 560px;
  }

  .qz-post-action-rail {
    top: 50%;
    right: 8px;
    bottom: auto;
    gap: 7px;
    transform: translateY(-50%);
  }

  .qz-post-action-item {
    width: 46px;
    min-height: 56px;
    border-radius: 15px;
    background: rgba(255, 253, 249, 0.56);
    box-shadow: 0 10px 20px -18px rgba(154, 52, 18, 0.62);
  }

  .qz-post-action-icon {
    width: 24px;
    height: 24px;
  }

  .qz-post-action-icon svg {
    width: 15px;
    height: 15px;
  }

  .qz-post-action-item strong {
    font-size: 13px;
  }

  .qz-post-action-item small {
    font-size: 10px;
  }

  .qz-comment-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(82dvh, 720px);
    border-left: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 44px -34px rgba(0, 0, 0, 0.62);
    transform: translateY(105%);
  }

  .qz-comment-drawer.is-open {
    transform: translateY(0);
  }

  .qz-comment-drawer-head {
    padding: 14px 16px 12px;
  }

  .qz-comment-drawer-form {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .qz-post-page .qz-comment-card p {
    margin: 5px 58px 0 44px;
  }

  .qz-comment-quote,
  .qz-comment-tools {
    margin-left: 44px;
    margin-right: 58px;
  }

  .qz-post-page .qz-comment-load {
    width: calc(100% - 32px);
    margin: 12px 16px 16px;
  }

  .qz-pub-page .qz-hero,
  .qz-pub-page .qz-post-layout {
    padding: 12px;
  }

  .qz-pub-page .qz-title {
    font-size: 28px;
  }

  .qz-pub-page .qz-panel {
    padding: 14px 14px 24px;
    border-radius: 18px;
  }

  .qz-pub-page .qz-form-grid {
    min-height: calc(100dvh - 154px);
  }

  .qz-pub-page .qz-title-input {
    min-height: 48px;
    font-size: 16px;
  }

  .qz-pub-page .qz-pub-editor {
    min-height: 320px;
  }

  .qz-pub-editor-head {
    align-items: stretch;
  }

  .qz-pub-editor-controls {
    flex-basis: 100%;
    justify-content: space-between;
  }

  .qz-editor-mode-tabs {
    min-width: 0;
  }

  .qz-editor-mode-tab {
    min-height: 34px;
    padding: 0 12px;
  }

  .qz-pub-page .qz-structure-select {
    flex: 1 1 150px;
    width: auto;
    min-width: 0;
  }

  .qz-pub-preview {
    min-height: 320px;
    padding: 14px;
  }

  .qz-template-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qz-template-card {
    min-height: 54px;
  }

  .qz-editor-tools-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .qz-editor-tool {
    min-height: 34px;
    padding: 0 11px;
  }

  .qz-circle-page .qz-hero,
  .qz-circle-page .qz-content {
    padding: 12px;
  }

  .qz-circle-page .qz-title {
    font-size: 26px;
  }

  .qz-circle-page .qz-subtitle {
    font-size: 13px;
  }

  .qz-circle-page .qz-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .qz-circle-page .qz-current-panel {
    padding: 0;
  }

  .qz-circle-page .qz-feed-card {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 12px;
    gap: 10px;
  }

  .qz-circle-page .qz-feed-avatar {
    width: 52px;
    height: 52px;
    border-radius: 11px;
  }

  .qz-circle-page .qz-feed-title {
    font-size: 16px;
  }

}
