.user-guide-app {
    --ug-bg: #f7f8fa;
    --ug-surface: #ffffff;
    --ug-surface-soft: #f9fafb;
    --ug-border: #e5e7eb;
    --ug-border-dark: #d1d5db;
    --ug-text: #111827;
    --ug-text-soft: #374151;
    --ug-muted: #6b7280;
    --ug-muted-light: #9ca3af;
    --ug-primary: #2563eb;
    --ug-primary-dark: #1d4ed8;
    --ug-primary-soft: #eff6ff;
    --ug-danger: #dc2626;
    --ug-radius: 12px;
    --ug-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .04);
    position: relative;
    left: 50%;
    width: 100vw;
    min-height: 100vh;
    margin-left: -50vw;
    background: var(--ug-bg);
    color: var(--ug-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}

.user-guide-app * {
    box-sizing: border-box;
}

.user-guide-app button,
.user-guide-app input,
.user-guide-app textarea,
.user-guide-app select {
    font: inherit;
}

.user-guide-hero {
    position: relative;
    overflow: visible;
    background: black;
}

.user-guide-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
    padding: 38px 0 40px;
}

.user-guide-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.user-guide-heading {
    max-width: 650px;
}

.user-guide-eyebrow,
.user-guide-section-label {
    display: block;
    margin-bottom: 8px;
    color: #3f6f9c;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 1px;
}

.user-guide-eyebrow {
    color: #a7d3ff;
}

.user-guide-heading h1 {
    margin: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.5px;
}

.user-guide-heading p {
    max-width: 620px;
    margin: 14px 0 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

.user-guide-section-header h2,
.user-guide-faq-heading h2 {
    margin: 0;
    color: var(--ug-text);
    font-size: 24px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.3px;
}

.user-guide-section-description,
.user-guide-result-count {
    padding-bottom: 2px;
    color: var(--ug-muted);
    font-size: 14px;
}

.user-guide-admin-actions {
    position: relative;
    display: flex;
    gap: 9px;
}

.user-guide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: 0;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.user-guide-btn .material-icons {
    font-size: 18px;
}

.user-guide-btn:disabled {
    opacity: .55;
    cursor: default;
}

.user-guide-btn-light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
}

.user-guide-btn-light:hover,
.user-guide-btn-light.active {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .24);
}

.user-guide-btn-chevron {
    margin-left: -2px;
    transition: transform .16s ease;
}

.user-guide-btn-light.active .user-guide-btn-chevron {
    transform: rotate(180deg);
}

.user-guide-manage-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 118px;
    z-index: 20;
    display: none;
    width: 250px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--ug-border);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.user-guide-manage-menu.active {
    display: block;
}

.user-guide-manage-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--ug-text);
    cursor: pointer;
}

.user-guide-manage-menu button:hover {
    background: var(--ug-surface-soft);
}

.user-guide-manage-menu button>.material-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background: var(--ug-primary-soft);
    border-radius: 7px;
    color: #3f6f9c;
    font-size: 18px;
}

.user-guide-manage-menu button span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-guide-manage-menu strong {
    font-size: 13px;
    font-weight: 600;
}

.user-guide-manage-menu small {
    color: var(--ug-muted);
    font-size: 11px;
}

.user-guide-search {
    display: flex;
    align-items: center;
    width: min(760px, 100%);
    height: 50px;
    margin-top: 24px;
    padding: 0 17px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

.user-guide-heading p {
    margin-top: 10px;
}

.user-guide-search>.material-icons {
    margin-right: 11px;
    color: var(--ug-muted-light);
    font-size: 22px;
}

.user-guide-search input {
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--ug-text);
    font-size: 14px;
}

.user-guide-search input::placeholder {
    color: var(--ug-muted-light);
}

#user-guide-clear-search {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--ug-muted);
    cursor: pointer;
}

#user-guide-clear-search.active {
    display: flex;
}

#user-guide-clear-search:hover {
    background: var(--ug-surface-soft);
}

#user-guide-clear-search .material-icons {
    font-size: 18px;
}

.user-guide-main {
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
    padding-bottom: 80px;
}

.user-guide-category-wrap {
    position: relative;
    margin-top: 28px;
}

.user-guide-category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
}

.user-guide-category-scroll::-webkit-scrollbar {
    display: none;
}

.user-guide-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    flex: 0 0 auto;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--ug-border);
    border-radius: 8px;
    color: var(--ug-text-soft);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .16s ease;
}

.user-guide-category small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    background: var(--ug-surface-soft);
    border-radius: 5px;
    color: var(--ug-muted);
    font-size: 12px;
    font-weight: 700;
}

.user-guide-category:hover {
    border-color: var(--ug-border-dark);
    color: var(--ug-text);
}

.user-guide-category.active {
    background: var(--ug-text);
    border-color: var(--ug-text);
    color: #fff;
}

.user-guide-category.active small {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.user-guide-featured-section,
.user-guide-all-section {
    padding-top: 50px;
}

.user-guide-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.user-guide-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.user-guide-featured-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ug-border);
    border-radius: var(--ug-radius);
    box-shadow: var(--ug-shadow);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.user-guide-featured-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}

.user-guide-featured-thumbnail {
    position: relative;
    width: calc(100% + 44px);
    aspect-ratio: 16 / 9;
    margin: -22px -22px 12px;
    overflow: hidden;
    background: #111827;
}

.user-guide-featured-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-guide-thumbnail-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(17, 24, 39, .82);
    border-radius: 50%;
    color: #fff;
    transform: translate(-50%, -50%);
}

.user-guide-thumbnail-play .material-icons {
    margin-left: 2px;
    font-size: 26px;
}

.user-guide-featured-card-body {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.user-guide-featured-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.user-guide-featured-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--ug-primary-soft);
    border-radius: 9px;
    color: #3f6f9c;
}

.user-guide-featured-icon .material-icons {
    font-size: 21px;
}

.user-guide-featured-badge {
    padding: 5px 8px;
    background: #fef3c7;
    border-radius: 5px;
    color: #92400e;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.user-guide-card-category {
    margin-bottom: 7px;
    color: #3f6f9c;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.user-guide-featured-card h3 {
    margin: 0;
    color: var(--ug-text);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
}

.user-guide-featured-card>p {
    display: -webkit-box;
    margin: 8px 0 20px;
    overflow: hidden;
    color: var(--ug-muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.user-guide-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f1f3;
    color: var(--ug-muted-light);
    font-size: 13px;
}

.user-guide-open-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ug-text-soft);
    font-weight: 600;
}

.user-guide-open-link .material-icons {
    font-size: 15px;
}

.user-guide-card-admin {
    position: absolute;
    top: 14px;
    right: 14px;
    display: none;
    gap: 5px;
    padding: 4px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--ug-border);
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}

.user-guide-featured-card:hover .user-guide-card-admin {
    display: flex;
}

.user-guide-card-admin button,
.user-guide-list-admin button,
.user-guide-manage-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: var(--ug-muted);
    cursor: pointer;
}

.user-guide-card-admin button:hover,
.user-guide-list-admin button:hover,
.user-guide-manage-actions button:hover {
    background: var(--ug-surface-soft);
    color: var(--ug-text);
}

.user-guide-card-admin button:last-child:hover,
.user-guide-list-admin button:last-child:hover,
.user-guide-manage-actions button:last-child:hover {
    background: #fef2f2;
    color: var(--ug-danger);
}

.user-guide-card-admin .material-icons,
.user-guide-list-admin .material-icons,
.user-guide-manage-actions .material-icons {
    font-size: 17px;
}

.user-guide-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.user-guide-all-status {
    padding: 5px 8px;
    background: #f3f4f6;
    border-radius: 5px;
    color: var(--ug-muted);
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.user-guide-list-item {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 112px;
    padding: 19px 21px;
    border-bottom: 1px solid var(--ug-border);
    cursor: pointer;
    transition: background .15s ease;
}

.user-guide-list-item:last-child {
    border-bottom: 0;
}

.user-guide-list-item:hover {
    background: #fafbfc;
}

.user-guide-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: var(--ug-primary-soft);
    border-radius: 9px;
    color: #3f6f9c;
}

.user-guide-list-icon .material-icons {
    font-size: 21px;
}

.user-guide-list-content {
    min-width: 0;
    flex: 1;
}

.user-guide-list-meta i {
    width: 3px;
    height: 3px;
    background: var(--ug-border-dark);
    border-radius: 50%;
}

.user-guide-list-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
    color: var(--ug-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-guide-list-content h3 {
    margin: 0;
    color: var(--ug-text);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 650;
}

.user-guide-list-content p {
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--ug-muted);
    font-size: 14px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-guide-list-end {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.user-guide-list-admin {
    display: none;
    align-items: center;
    gap: 3px;
}

.user-guide-list-item:hover .user-guide-list-admin {
    display: flex;
}

.user-guide-list-arrow {
    color: var(--ug-muted-light);
    font-size: 19px;
    transition: transform .15s ease, color .15s ease;
}

.user-guide-list-item:hover .user-guide-list-arrow {
    color: #3f6f9c;
    transform: translateX(2px);
}

.user-guide-empty {
    display: none;
    padding: 70px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--ug-border);
    border-radius: var(--ug-radius);
}

.user-guide-empty.active {
    display: block;
}

.user-guide-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    background: var(--ug-surface-soft);
    border-radius: 50%;
    color: var(--ug-muted);
}

.user-guide-empty-icon .material-icons {
    font-size: 25px;
}

.user-guide-empty h3 {
    margin: 0;
    color: var(--ug-text);
    font-size: 16px;
    font-weight: 700;
}

.user-guide-empty p {
    margin: 7px 0 18px;
    color: var(--ug-muted);
    font-size: 12px;
}

.user-guide-faq-section {
    margin-top: 62px;
    padding: 38px;
    background: #fff;
    border: 1px solid var(--ug-border);
    border-radius: 14px;
    box-shadow: var(--ug-shadow);
}

.user-guide-faq {
    border-bottom: 1px solid var(--ug-border);
}

.user-guide-faq-heading p {
    margin: 12px 0 0;
    color: var(--ug-muted);
    font-size: 14px;
    line-height: 1.65;
}

.user-guide-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    text-align: left;
    background: transparent;
    border: 0;
    color: var(--ug-text);
    cursor: pointer;
}

.user-guide-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    color: var(--ug-muted);
    font-size: 14px;
    line-height: 1.7;
    transition: grid-template-rows .22s ease;
}

.user-guide-faq-question .material-icons {
    color: var(--ug-muted);
    font-size: 19px;
    transition: transform .2s ease;
}

.user-guide-faq.active .user-guide-faq-question .material-icons {
    transform: rotate(180deg);
}

.user-guide-faq-answer>div {
    overflow: hidden;
}

.user-guide-faq.active .user-guide-faq-answer {
    grid-template-rows: 1fr;
}

.user-guide-faq.active .user-guide-faq-answer>div {
    padding: 0 10px;
}

body.user-guide-modal-open {
    overflow: hidden;
}

.user-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.user-guide-modal.active {
    display: flex;
}

.user-guide-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(3px);
}

.user-guide-modal-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 13px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
}

.user-guide-detail-panel {
    max-width: 850px;
}

.user-guide-editor-panel {
    max-width: 1000px;
}

.user-guide-manage-panel {
    max-width: 720px;
}

.user-guide-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--ug-muted);
    cursor: pointer;
}

.user-guide-modal-close:hover {
    background: transparent;
    color: var(--ug-text);
}

.user-guide-modal-close .material-icons {
    font-size: 22px;
}

.user-guide-detail-header {
    position: relative;
    padding: 20px 20px 0;
    border-bottom: 1px solid var(--ug-border);
}

.user-guide-detail-header .user-guide-modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
}

.user-guide-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #3f6f9c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.user-guide-detail-meta i {
    width: 3px;
    height: 3px;
    background: var(--ug-border-dark);
    border-radius: 50%;
}

.user-guide-detail-header h2 {
    max-width: 680px;
    margin: 0;
    color: var(--ug-text);
    font-size: 28px;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: -.4px;
}

.user-guide-detail-header p {
    max-width: 700px;
    margin: 12px 0 0;
    color: var(--ug-muted);
    font-size: 13px;
    line-height: 1.7;
}

.user-guide-detail-video {
    padding: 20px 20px 0;
}

.user-guide-detail-video:empty {
    display: none;
}

.user-guide-video-frame {
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

.user-guide-video-frame iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.user-guide-detail-content {
    padding: 20px;
    color: var(--ug-text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.user-guide-detail-content h2,
.user-guide-detail-content h3,
.user-guide-detail-content h4 {
    margin: 28px 0 12px;
    color: var(--ug-text);
    line-height: 1.4;
}

.user-guide-detail-content h2 {
    font-size: 20px;
}

.user-guide-detail-content h3 {
    font-size: 17px;
}

.user-guide-detail-content h4 {
    font-size: 15px;
}

.user-guide-detail-content p {
    margin: 0 0 16px;
}

.user-guide-detail-content ul,
.user-guide-detail-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.user-guide-detail-content li {
    margin-bottom: 7px;
}

.user-guide-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.user-guide-detail-content a {
    color: #3f6f9c;
}

.user-guide-detail-content code {
    padding: 2px 5px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: .9em;
}

.user-guide-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--ug-border);
}

.user-guide-modal-header h2 {
    margin: 0;
    color: var(--ug-text);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.user-guide-modal-body {
    padding: 20px;
}

.user-guide-modal-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 26px;
    background: var(--ug-surface-soft);
    border-top: 1px solid var(--ug-border);
}

.user-guide-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 26px;
}

.user-guide-editor-sidebar {
    min-width: 0;
}

.user-guide-editor-box {
    padding: 19px;
    background: var(--ug-surface-soft);
    border: 1px solid var(--ug-border);
    border-radius: 10px;
}

.user-guide-field {
    margin-bottom: 10px;
}

.user-guide-field:last-child {
    margin-bottom: 0;
}

.user-guide-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--ug-text-soft);
    font-size: 13px;
    font-weight: 650;
}

.user-guide-field input,
.user-guide-field textarea,
.user-guide-field select {
    width: 100%;
    padding: 9px 11px;
    background: #fff;
    border: 1px solid var(--ug-border-dark);
    border-radius: 7px;
    outline: 0;
    color: var(--ug-text);
    font-size: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.user-guide-field input,
.user-guide-field select {
    height: 40px;
}

.user-guide-field textarea {
    min-height: 50px;
    line-height: 1.6;
    resize: vertical;
}

.user-guide-field input:focus,
.user-guide-field textarea:focus,
.user-guide-field select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.user-guide-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.user-guide-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 21px;
    padding-top: 18px;
    border-top: 1px solid var(--ug-border);
    cursor: pointer;
}

.user-guide-switch-row>span:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-guide-switch-row strong {
    color: var(--ug-text-soft);
    font-size: 13px;
    font-weight: 650;
}

.user-guide-switch-row small {
    color: var(--ug-muted);
    font-size: 11px;
    line-height: 1.4;
}

.user-guide-switch {
    position: relative;
    display: inline-flex;
    width: 38px;
    height: 22px;
    flex: 0 0 38px;
}

.user-guide-switch input {
    position: absolute;
    opacity: 0;
}

.user-guide-switch>span {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 20px;
    transition: background .18s ease;
}

.user-guide-switch>span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    content: "";
    transition: transform .18s ease;
}

.user-guide-switch input:checked+span {
    background: #3f6f9c;
}

.user-guide-switch input:checked+span::after {
    transform: translateX(16px);
}

.user-guide-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px auto;
    gap: 10px;
    align-items: end;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--ug-border);
}

.user-guide-inline-form .user-guide-field {
    margin: 0;
}

.user-guide-inline-form .user-guide-btn {
    height: 40px;
}

.user-guide-order-field {
    width: 90px;
}

.user-guide-manage-list {
    margin-top: 18px;
    border: 1px solid var(--ug-border);
    border-radius: 9px;
    overflow: hidden;
}

.user-guide-manage-row {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 66px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--ug-border);
}

.user-guide-manage-row:last-child {
    border-bottom: 0;
}

.user-guide-manage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: var(--ug-primary-soft);
    border-radius: 7px;
    color: #3f6f9c;
}

.user-guide-manage-icon .material-icons {
    font-size: 18px;
}

.user-guide-manage-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.user-guide-manage-content strong {
    overflow: hidden;
    color: var(--ug-text);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-guide-manage-content small {
    color: var(--ug-muted);
    font-size: 10px;
}

.user-guide-manage-actions {
    display: flex;
    gap: 3px;
}

.user-guide-manage-empty {
    padding: 35px 20px;
    text-align: center;
    color: var(--ug-muted);
    font-size: 12px;
}

.user-guide-faq-form-bottom {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    align-items: end;
    gap: 16px;
    width: 100%;
}

.user-guide-faq-form-bottom .user-guide-order-field {
    grid-column: 1;
    margin: 0;
}

.user-guide-faq-form-bottom .user-guide-field {
    margin: 0;
}

.user-guide-publish-switch {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
    margin: 0;
    padding: 0 0 3px;
    border: 0;
}

.user-guide-faq-form-bottom>.user-guide-btn {
    grid-column: 4;
    height: 40px;
}

.user-guide-faq-manage-list {
    margin-top: 24px;
}

.user-guide-field input[type="file"] {
    height: auto;
    padding: 8px;
    cursor: pointer;
}

.user-guide-field-help {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: var(--ug-muted);
    font-size: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-guide-video-frame video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.user-guide-required {
    color: var(--ug-danger);
}

#user-guide-video-fields {
    display: none;
}

#user-guide-save-item:disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

.user-guide-featured-card-body>p:empty {
    display: none;
}

.user-guide-card-category:empty {
    display: none;
}

.user-guide-status-switch {
    margin-top: 10px;
    padding-top: 5px;
    padding-bottom: 10px;
    border-top: none;
}

.user-guide-all-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-guide-delete-all {
    display: none;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 7px;
    color: var(--ug-danger);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.user-guide-delete-all.active {
    display: inline-flex;
}

.user-guide-delete-all:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.user-guide-delete-all .material-icons {
    font-size: 16px;
}

.user-guide-loading {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .18);
    backdrop-filter: blur(1px);
}

.user-guide-loading.active {
    display: flex;
}

.user-guide-loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: user-guide-spin .7s linear infinite;
}

@keyframes user-guide-spin {
    to {
        transform: rotate(360deg);
    }
}

.user-guide-upload-progress {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
}

.user-guide-upload-progress.active {
    display: flex;
}

.user-guide-upload-progress-bar {
    height: 6px;
    flex: 1;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 999px;
}

.user-guide-upload-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: #3f6f9c;
    border-radius: inherit;
    transition: width .15s ease;
}

.user-guide-upload-progress strong {
    width: 36px;
    flex: 0 0 36px;
    color: var(--ug-muted);
    font-size: 10px;
    line-height: 1;
    text-align: right;
}

.user-guide-rich-editor {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ug-border-dark);
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.user-guide-rich-editor:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.user-guide-rich-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 34px;
    padding: 3px 5px;
    background: #f9fafb;
    border-bottom: 1px solid var(--ug-border);
}

.user-guide-rich-toolbar button,
.user-guide-rich-color {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 26px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: var(--ug-text-soft);
    font-size: 13px;
    cursor: pointer;
}

.user-guide-rich-toolbar button:hover,
.user-guide-rich-toolbar button.active,
.user-guide-rich-color:hover {
    background: #e5e7eb;
    color: var(--ug-text);
}

.user-guide-rich-toolbar button .material-icons,
.user-guide-rich-color .material-icons {
    font-size: 15px;
    margin-bottom: -5px;
}

.user-guide-rich-color {
    position: relative;
    margin-bottom: 0 !important;
}

.user-guide-rich-color input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.user-guide-rich-input {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    overflow-y: auto;
    outline: 0;
    color: var(--ug-text);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.user-guide-rich-input:empty::before {
    color: #9ca3af;
    font-weight: 400;
    font-style: normal;
    content: attr(data-placeholder);
    pointer-events: none;
}

.user-guide-rich-title {
    min-height: 40px;
    max-height: 90px;
}

.user-guide-rich-description {
    min-height: 68px;
    max-height: 140px;
}

.user-guide-rich-content {
    min-height: 150px;
    max-height: 320px;
}

.user-guide-rich-input b,
.user-guide-rich-input strong {
    font-weight: 700;
}

.user-guide-featured-card h3 b,
.user-guide-featured-card h3 strong,
.user-guide-detail-header h2 b,
.user-guide-detail-header h2 strong {
    font-weight: 700;
}

.user-guide-featured-card h3 em,
.user-guide-featured-card h3 i,
.user-guide-detail-header h2 em,
.user-guide-detail-header h2 i {
    font-style: italic;
}

.user-guide-rich-input [data-color],
.user-guide-featured-card [data-color],
.user-guide-detail-header [data-color],
.user-guide-detail-content [data-color] {
    color: var(--rich-color);
}

.user-guide-featured-card-body p,
#user-guide-detail-description,
#user-guide-detail-content {
    white-space: pre-wrap;
}

#user-guide-detail-description div,
#user-guide-detail-content div {
    margin-bottom: 8px;
}

#user-guide-detail-description p,
#user-guide-detail-content p {
    margin: 0 0 8px;
}

@media (max-width: 768px) {

    .user-guide-list {
        grid-template-columns: 1fr;
    }

    .user-guide-hero-inner,
    .user-guide-main {
        width: calc(100% - 30px);
    }

    .user-guide-hero-inner {
        padding: 42px 0 38px;
    }

    .user-guide-hero-top {
        flex-direction: column;
        gap: 24px;
    }

    .user-guide-heading {
        max-width: 100%;
    }

    .user-guide-heading h1 {
        font-size: 30px;
    }

    .user-guide-admin-actions {
        width: 100%;
    }

    .user-guide-admin-actions>.user-guide-btn {
        flex: 1;
    }

    .user-guide-manage-menu {
        right: auto;
        left: 0;
        width: min(250px, 100%);
    }

    .user-guide-search {
        height: 50px;
        margin-top: 27px;
    }

    .user-guide-featured-section,
    .user-guide-all-section {
        padding-top: 38px;
    }

    .user-guide-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .user-guide-section-header h2,
    .user-guide-faq-heading h2 {
        font-size: 21px;
    }

    .user-guide-featured-grid {
        grid-template-columns: 1fr;
    }

    .user-guide-featured-card {
        padding: 20px;
    }

    .user-guide-featured-card h3 {
        font-size: 16px;
    }

    .user-guide-list-item {
        min-height: 96px;
        padding: 15px;
    }

    .user-guide-list-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .user-guide-list-content h3 {
        font-size: 15px;
    }

    .user-guide-list-content p {
        white-space: normal;
    }

    .user-guide-list-admin {
        display: none !important;
    }

    .user-guide-faq-section {
        margin-top: 45px;
        padding: 24px 20px;
    }

    .user-guide-modal {
        padding: 10px;
    }

    .user-guide-modal-panel {
        max-height: calc(100vh - 20px);
        border-radius: 10px;
    }

    .user-guide-detail-header .user-guide-modal-close {
        top: 15px;
        right: 15px;
    }

    .user-guide-detail-header h2 {
        padding-right: 30px;
        font-size: 23px;
    }

    .user-guide-detail-video {
        padding: 22px 22px 0;
    }

    .user-guide-modal-header,
    .user-guide-modal-body {
        padding: 20px;
    }

    .user-guide-modal-footer {
        padding: 14px 20px;
    }

    .user-guide-editor-layout {
        grid-template-columns: 1fr;
    }

    .user-guide-form-row {
        grid-template-columns: 1fr;
    }

    .user-guide-inline-form {
        grid-template-columns: 1fr 90px;
    }

    .user-guide-inline-form .user-guide-btn {
        grid-column: 1 / -1;
    }

    .user-guide-faq-form-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .user-guide-publish-switch {
        width: 100%;
        min-width: 0;
        padding: 10px 0;
    }

    .user-guide-all-header-actions {
        width: 100%;
        justify-content: space-between;
    }
}