:root {
  --brand: #0f766e;
  --brand-soft: rgba(15, 118, 110, 0.1);
  --brand-hover: #0d9488;
  --c-bg: #ffffff;
  --c-bg-alt: #f3f6f7;
  --c-border: #e5e7eb;
  --c-text-1: #111827;
  --c-text-2: #4b5563;
  --c-text-3: #9ca3af;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
  --nav-h: 52px;
  --side-w: 15rem;
  --font: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Segoe UI", sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body.docs-admin-body {
  font-family: var(--font);
  background: #eef2f4;
  color: var(--c-text-1);
  overflow: hidden;
}

.hidden { display: none !important; }

.admin-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.btn-primary,
.btn-danger,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 2.15rem;
  padding: 0 0.85rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, filter 0.15s;
}

.btn-primary {
  border: 0;
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-hover); }

.btn-danger {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.btn-ghost {
  background: #fff;
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
}

.btn-ghost:hover {
  color: var(--c-text-1);
  border-color: #cbd5e1;
  background: var(--c-bg-alt);
}

.admin-label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--c-text-2);
}

.admin-input {
  width: 100%;
  min-height: 2.15rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  color: var(--c-text-1);
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
}

.admin-input:focus {
  border-color: color-mix(in srgb, var(--brand) 55%, #94a3b8);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

#loginPage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(700px 320px at 10% -10%, rgba(15, 118, 110, 0.12), transparent 60%),
    linear-gradient(180deg, #f7fafb, #eef2f4);
}

#loginPage .admin-card {
  width: min(100%, 22rem);
  padding: 1.25rem;
}

#loginPage h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 750;
}

#loginPage p {
  margin: 0.35rem 0 0;
  color: var(--c-text-3);
  font-size: 0.82rem;
}

.vp-admin-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 40;
  border-bottom: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.vp-admin-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.9rem 0 0.85rem;
}

.vp-admin-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
}

.vp-admin-brand img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  object-fit: cover;
}

.vp-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.vp-admin-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.55rem;
  border-left: 1px solid var(--c-border);
}

.vp-admin-user-avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.7rem;
}

#sidebar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: var(--side-w);
  height: calc(100vh - var(--nav-h));
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--c-border);
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.2s;
}

@media (min-width: 1024px) {
  #sidebar { transform: translateX(0); }
  #sidebar.is-open,
  #sidebar:not(.is-open) { transform: translateX(0); }
}

#sidebar.is-open { transform: translateX(0); }

.admin-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--c-border);
  background: #fafbfc;
}

.admin-tab-btn {
  flex: 1;
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--c-text-3);
  padding: 0.55rem 0.2rem;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 650;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
}

.admin-tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.admin-tab-btn i { font-size: 0.85rem; }

.tab-content { flex: 1; overflow-y: auto; min-height: 0; }

.sidebar-item {
  transition: background 0.15s, color 0.15s;
}

.sidebar-item:hover { background: var(--brand-soft); }
.sidebar-item.active {
  background: color-mix(in srgb, var(--brand-soft) 80%, #fff);
  color: var(--brand);
  font-weight: 650;
}

.sidebar-item.draggable { cursor: grab; }
.sidebar-item.dragging { opacity: 0.55; }
.sidebar-item.drag-over { border-top: 2px solid var(--brand); }
.sidebar-item.drag-over-bottom { border-bottom: 2px solid var(--brand); }
.drag-handle { opacity: 0.35; }
.sidebar-item:hover .drag-handle { opacity: 0.8; }

.sort-indicator {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin: 0.4rem 0.65rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
}

.sort-indicator.visible { display: flex; }
.sort-indicator.saving { background: #fff7ed; color: #9a3412; }
.sort-indicator.saved { background: #ecfdf5; color: #065f46; }

.docs-main {
  height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .docs-main { margin-left: var(--side-w); }
}

#editorArea {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.65rem 0.65rem;
  overflow: hidden;
}

.docs-editor-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.docs-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  flex-shrink: 0;
}

.docs-editor-head h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--c-text-1);
}

.docs-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.docs-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  flex-shrink: 0;
  align-items: end;
}

.docs-publish {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  padding: 0 0.2rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--c-text-2);
}

.docs-publish input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand);
}

.docs-editor-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#editorContainer {
  flex: 1;
  min-height: 0;
  height: auto !important;
  display: flex;
  flex-direction: column;
}
#editorContainer > .toastui-editor-defaultUI {
  flex: 1 1 auto;
  min-height: 0;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
#editorContainer .toastui-editor-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
}
#editorContainer .toastui-editor-main-container,
#editorContainer .toastui-editor-md-container {
  height: 100% !important;
  min-height: 0 !important;
}
#editorContainer .toastui-editor.md-mode {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#editorContainer .toastui-editor.md-mode .ProseMirror {
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}
#editorContainer .toastui-editor-md-preview {
  height: 100% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
#editorContainer .toastui-editor-md-preview .toastui-editor-contents {
  min-height: 100%;
  box-sizing: border-box;
}

.docs-editor-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.docs-editor-foot span {
  font-size: 0.72rem;
  color: var(--c-text-3);
}

.docs-select {
  position: relative;
}

.docs-select-trigger {
  width: 100%;
  min-height: 2.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  color: var(--c-text-1);
  font-family: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
}

.docs-select-trigger:hover,
.docs-select.is-open .docs-select-trigger {
  border-color: color-mix(in srgb, var(--brand) 55%, #94a3b8);
}

.docs-select-trigger i {
  font-size: 0.7rem;
  color: var(--c-text-3);
}

.docs-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 14rem;
  overflow: auto;
  padding: 0.25rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.docs-select-menu.hidden { display: none; }

.docs-select-option {
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--c-text-1);
  cursor: pointer;
}

.docs-select-option:hover,
.docs-select-option.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}

.docs-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}

.docs-draft-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.75rem;
}

.docs-draft-banner.show { display: flex; }
.docs-draft-banner .btn-restore {
  border: 0;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.docs-draft-banner .btn-discard {
  border: 1px solid #fdba74;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  background: #fff;
  color: #9a3412;
  cursor: pointer;
  font-family: inherit;
}

.admin-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
}

.admin-welcome-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.25rem;
}

#toastContainer {
  position: fixed;
  top: calc(var(--nav-h) + 0.65rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 12rem;
  max-width: 22rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toastIn 0.2s ease;
}

.toast-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.toast-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.toast-info { background: var(--brand-soft); color: #115e59; border: 1px solid #99f6e4; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.toastui-editor-defaultUI {
  border: 1px solid var(--c-border) !important;
  border-radius: 10px;
  overflow: hidden;
}
.toastui-editor-md-container {
  background: #fff !important;
}
.toastui-editor.md-mode {
  background: #ffffff !important;
}
.toastui-editor-md-splitter {
  width: 8px !important;
  margin-left: -4px;
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(50% - 0.5px),
      var(--c-border) calc(50% - 0.5px),
      var(--c-border) calc(50% + 0.5px),
      transparent calc(50% + 0.5px),
      transparent 100%
    ) !important;
  border: 0 !important;
  z-index: 6 !important;
  cursor: col-resize;
}
.toastui-editor-md-splitter:hover,
.toastui-editor-md-splitter:active {
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(50% - 0.5px),
      var(--brand) calc(50% - 0.5px),
      var(--brand) calc(50% + 0.5px),
      transparent calc(50% + 0.5px),
      transparent 100%
    ) !important;
}
.toastui-editor-md-preview {
  background: #fff !important;
  padding: 0 !important;
}

.toastui-editor.md-mode,
.toastui-editor-md-preview,
.toastui-editor-md-preview .toastui-editor-contents,
.toastui-editor .CodeMirror-scroll {
  scrollbar-width: thin;
  scrollbar-color: #b7c2cb #eef2f4;
}
.toastui-editor.md-mode::-webkit-scrollbar,
.toastui-editor-md-preview::-webkit-scrollbar,
.toastui-editor-md-preview .toastui-editor-contents::-webkit-scrollbar,
.toastui-editor .CodeMirror-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.toastui-editor.md-mode::-webkit-scrollbar-track,
.toastui-editor-md-preview::-webkit-scrollbar-track,
.toastui-editor-md-preview .toastui-editor-contents::-webkit-scrollbar-track,
.toastui-editor .CodeMirror-scroll::-webkit-scrollbar-track {
  background: #eef2f4;
  border-left: 1px solid #e1e6ea;
}
.toastui-editor.md-mode::-webkit-scrollbar-thumb,
.toastui-editor-md-preview::-webkit-scrollbar-thumb,
.toastui-editor-md-preview .toastui-editor-contents::-webkit-scrollbar-thumb,
.toastui-editor .CodeMirror-scroll::-webkit-scrollbar-thumb {
  background: #b7c2cb;
  border-radius: 999px;
  border: 2px solid #eef2f4;
  min-height: 40px;
}
.toastui-editor.md-mode::-webkit-scrollbar-thumb:hover,
.toastui-editor-md-preview::-webkit-scrollbar-thumb:hover,
.toastui-editor-md-preview .toastui-editor-contents::-webkit-scrollbar-thumb:hover,
.toastui-editor .CodeMirror-scroll::-webkit-scrollbar-thumb:hover {
  background: #9aa8b4;
}
.toastui-editor.md-mode::-webkit-scrollbar-corner,
.toastui-editor-md-preview::-webkit-scrollbar-corner,
.toastui-editor-md-preview .toastui-editor-contents::-webkit-scrollbar-corner {
  background: #eef2f4;
}
.toastui-editor-md-preview .toastui-editor-contents {
  background: transparent !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 14px 16px !important;
}
.toastui-editor .ProseMirror,
.toastui-editor .CodeMirror {
  font-family: var(--font) !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
  padding: 14px 20px 18px 16px !important;
  box-sizing: border-box;
}
.toastui-editor .CodeMirror pre { font-size: 13.5px !important; }
.toastui-editor-contents {
  font-family: var(--font);
  font-size: 14.5px !important;
  line-height: 1.75 !important;
  color: var(--c-text-1) !important;
  padding: 12px 14px 16px !important;
  box-sizing: border-box;
}
.toastui-editor-md-preview .doc-callout,
.toastui-editor-md-preview pre,
.toastui-editor-md-preview table,
.toastui-editor-md-preview img {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.toastui-editor-contents h1 {
  font-size: 1.55rem !important;
  margin: 1.1rem 0 0.55rem !important;
  letter-spacing: -0.02em;
  border: 0 !important;
}
.toastui-editor-contents h2 {
  font-size: 1.2rem !important;
  margin: 1.2rem 0 0.5rem !important;
  padding-bottom: 0.35rem !important;
  border-bottom: 1px solid var(--c-border) !important;
}
.toastui-editor-contents h3 {
  font-size: 1rem !important;
  margin: 0.95rem 0 0.4rem !important;
  border: 0 !important;
}

.toastui-editor-contents h2.cl-preview-ver,
.toastui-editor-contents.changelog-preview h2.cl-preview-ver {
  display: block !important;
  margin: 1.1rem 0 0.55rem !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
.toastui-editor-contents .cl-ver-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px !important;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.3 !important;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.toastui-editor-contents h3.cl-preview-sec {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0.85rem 0 0.4rem !important;
  padding: 4px 9px !important;
  border: 0 !important;
  border-radius: 7px;
  font-size: 12px !important;
  font-weight: 720;
  letter-spacing: 0.04em;
  line-height: 1.2 !important;
  background: var(--c-bg-alt);
  color: var(--c-text-2);
}
.toastui-editor-contents h3.cl-preview-sec::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.toastui-editor-contents h3.cl-preview-sec.sec-new {
  color: #059669;
  background: color-mix(in srgb, #059669 10%, #fff);
}
.toastui-editor-contents h3.cl-preview-sec.sec-fix {
  color: #dc2626;
  background: color-mix(in srgb, #dc2626 10%, #fff);
}
.toastui-editor-contents h3.cl-preview-sec.sec-improve {
  color: #2563eb;
  background: color-mix(in srgb, #2563eb 10%, #fff);
}
.toastui-editor-contents h3.cl-preview-sec.sec-change {
  color: #d97706;
  background: color-mix(in srgb, #d97706 10%, #fff);
}
.toastui-editor-contents .doc-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #fff;
  vertical-align: middle;
}
.toastui-editor-contents .doc-badge.new { background: #059669; }
.toastui-editor-contents .doc-badge.fix { background: #dc2626; }
.toastui-editor-contents .doc-badge.improve { background: #2563eb; }
.toastui-editor-contents .doc-badge.change { background: #d97706; }
.toastui-editor-contents.changelog-preview ul {
  margin: 0.2rem 0 0.55rem !important;
  padding-left: 1.1em !important;
}
.toastui-editor-contents.changelog-preview li {
  margin-bottom: 0.28rem !important;
}
.toastui-editor-contents.changelog-preview li > p {
  margin: 0 !important;
  display: inline;
}
.toastui-editor-contents blockquote {
  margin: 12px 0 !important;
  padding: 10px 12px !important;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--c-border)) !important;
  border-left: 1px solid color-mix(in srgb, var(--brand) 20%, var(--c-border)) !important;
  border-radius: 10px !important;
  background: var(--brand-soft) !important;
  color: var(--c-text-2) !important;
}
.toastui-editor-contents code {
  background: #f1f5f9;
  color: #0f766e;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--c-border);
}
.toastui-editor-contents pre {
  background: #f8fafc !important;
  border: 1px solid var(--c-border) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
}
.toastui-editor-contents pre code {
  background: transparent !important;
  color: inherit !important;
  border: 0 !important;
  padding: 0 !important;
}
.toastui-editor-toolbar {
  height: 40px !important;
  background: #fafbfc !important;
  border-bottom: 1px solid var(--c-border) !important;
}
.toastui-editor-mode-switch {
  height: 28px !important;
  line-height: 28px !important;
  font-size: 11px !important;
}

.toastui-editor-contents .doc-callout {
  display: flex;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  margin: 12px 0 !important;
  background: var(--c-bg-alt);
}
.toastui-editor-contents .doc-callout-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 0;
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.toastui-editor-contents .doc-callout-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.toastui-editor-contents .doc-callout.note .doc-callout-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Ccircle cx='12' cy='8' r='0.9' fill='black' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Ccircle cx='12' cy='8' r='0.9' fill='black' stroke='none'/%3E%3C/svg%3E");
}
.toastui-editor-contents .doc-callout.tip .doc-callout-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2.2 2.2L16 9.5'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2.2 2.2L16 9.5'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
}
.toastui-editor-contents .doc-callout.warning .doc-callout-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.8L21 19.5H3L12 3.8z'/%3E%3Cpath d='M12 10v4'/%3E%3Ccircle cx='12' cy='16.4' r='0.9' fill='black' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.8L21 19.5H3L12 3.8z'/%3E%3Cpath d='M12 10v4'/%3E%3Ccircle cx='12' cy='16.4' r='0.9' fill='black' stroke='none'/%3E%3C/svg%3E");
}
.toastui-editor-contents .doc-callout.important .doc-callout-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5'/%3E%3Ccircle cx='12' cy='16.2' r='0.9' fill='black' stroke='none'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5'/%3E%3Ccircle cx='12' cy='16.2' r='0.9' fill='black' stroke='none'/%3E%3C/svg%3E");
}
.toastui-editor-contents .doc-callout-body {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--c-text-2);
}
.toastui-editor-contents .doc-callout-body p {
  margin: 0 0 0.35rem !important;
}
.toastui-editor-contents .doc-callout-body p:last-child {
  margin-bottom: 0 !important;
}
.toastui-editor-contents .doc-callout-title {
  font-size: 12px;
  font-weight: 720;
  margin-bottom: 3px;
}
.toastui-editor-contents .doc-callout.note {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--c-border));
  background: var(--brand-soft);
}
.toastui-editor-contents .doc-callout.note .doc-callout-icon,
.toastui-editor-contents .doc-callout.note .doc-callout-title { color: var(--brand); }
.toastui-editor-contents .doc-callout.tip {
  border-color: rgba(5,150,105,0.3);
  background: rgba(5,150,105,0.08);
}
.toastui-editor-contents .doc-callout.tip .doc-callout-icon,
.toastui-editor-contents .doc-callout.tip .doc-callout-title { color: #059669; }
.toastui-editor-contents .doc-callout.warning {
  border-color: rgba(217,119,6,0.35);
  background: rgba(217,119,6,0.1);
}
.toastui-editor-contents .doc-callout.warning .doc-callout-icon,
.toastui-editor-contents .doc-callout.warning .doc-callout-title { color: #d97706; }
.toastui-editor-contents .doc-callout.important {
  border-color: rgba(220,38,38,0.3);
  background: rgba(220,38,38,0.08);
}
.toastui-editor-contents .doc-callout.important .doc-callout-icon,
.toastui-editor-contents .doc-callout.important .doc-callout-title { color: #dc2626; }

.docs-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.docs-modal-backdrop.is-open,
.docs-modal-backdrop.flex { display: flex; }

.docs-modal-backdrop .admin-card {
  width: min(100%, 26rem);
  padding: 1rem;
}

.docs-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .docs-meta-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .docs-meta-row {
    grid-template-columns: 1fr;
  }
  .docs-editor-head {
    flex-wrap: wrap;
  }
  .docs-editor-actions {
    width: 100%;
  }
  .docs-editor-actions .btn-primary,
  .docs-editor-actions .btn-danger {
    flex: 1;
  }
}
