.help-app {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(1100px, 88vw);
  height: min(760px, 84vh);
  transform: translate(-50%, -50%);
  z-index: 9999;

  color: #d9d9d9;
  background: #1e1e1e;
  border: 1px solid #414141;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);

  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.help-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.35);
}

.help-backdrop[hidden] {
    display: none;
}

.help-header {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 16px;
  color: #d9d9d9;
  font-size: 15px;
  font-weight: 400;
  background: #5f5a4c;
}

.help-center {
  font-size: 14px;
  font-weight: 400;
}

.help-close-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 6px;
  color: #d9d9d9;
}

.help-close-btn:hover {
  background: #454646;
}

.help-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  flex: 1;
  min-height: 0;
}

.help-sidebar {
  padding: 6px 0 0 0; 
  overflow-y: auto;
  border-right: 1px solid #414141;
}

.help-viewer {
  overflow-y: auto;
  padding: 0px 32px;
}

.help-sidebar button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  margin-bottom: 9px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: #ddd;
}

.help-sidebar button:hover {
  color: #878787;
}

.help-divider {
  margin: 6px 0;
  background: #3c3c3c;
}

/* 제목 */
.help-viewer h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.25;
}

.help-viewer h2 {
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #4a4a4a;
  font-size: 22px;
}

.help-viewer h3 {
  margin: 22px 0 10px;
  font-size: 18px;
}

/* 본문 */
.help-viewer p {
  margin: 0 0 12px;
}

/* 목록 */
.help-viewer ul,
.help-viewer ol {
  margin: 8px 0 16px;
  padding-left: 24px;
}

.help-viewer li {
  margin: 4px 0;
}

/* 인라인 코드 */
.help-viewer :not(pre) > code {
  padding: 2px 5px;
  border: 1px solid #454545;
  border-radius: 4px;
  background: #2a2a2a;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

/* 코드블록 */
.help-viewer pre {
  margin: 14px 0 20px;
  padding: 14px 16px;
  overflow-x: auto;

  background: #151515;
  border: 1px solid #3e3e3e;
  border-radius: 6px;
}

.help-viewer pre code {
  padding: 0;
  border: 0;
  background: none;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}

/* 인용문 */
.help-viewer blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 3px solid #6a6a6a;
  background: #242424;
}

.help-viewer blockquote p {
  margin: 0;
}

/* 가로선 */
.help-viewer hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid #444;
}

/* 링크 */
.help-viewer a {
  color: #7fb7ff;
  text-decoration: none;
}

.help-viewer a:hover {
  text-decoration: underline;
}

/* 표 */
.help-viewer table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}

.help-viewer th,
.help-viewer td {
  padding: 8px 10px;
  border: 1px solid #444;
  text-align: left;
}

.help-viewer th {
  background: #2b2b2b;
}
