
        @font-face {
            font-family: 'Panglong';
            src: url('../font/panglong.ttf') format('truetype');
            font-display: swap;
            /* Use Panglong for Shan/Myanmar letters; keep the Latin and Thai UI fonts. */
            unicode-range: U+1000-109F, U+AA60-AA7F;
        }

        html,
        body,
        input,
        textarea,
        select,
        option,
        button,
        [contenteditable] {
            font-family: 'Panglong', 'IBM Plex Sans Thai', 'Inter', 'Noto Sans Myanmar', sans-serif;
            -webkit-font-smoothing: antialiased;
        }

        /* Tailwind's font-sans utility should retain the same Shan glyph fallback. */
        .font-sans {
            font-family: 'Panglong', 'IBM Plex Sans Thai', 'Inter', 'Noto Sans Myanmar', sans-serif;
        }

        /* Keep Shan combining signs in the same shaped clusters as their base letters. */
        h1, h2, h3, h4, h5, h6, #publicSiteName, .adm-nav-caption {
            letter-spacing: normal;
        }

        .site-toast {
            position: fixed;
            left: max(1rem, env(safe-area-inset-left));
            bottom: calc(1rem + env(safe-area-inset-bottom));
            z-index: 120;
            display: flex;
            align-items: center;
            gap: .75rem;
            width: min(23rem, calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
            box-sizing: border-box;
            padding: .85rem 1rem;
            border-radius: .75rem;
            background: #232426;
            color: #fff;
            box-shadow: 0 5px 20px #0005;
            text-align: left;
        }
        .site-toast[hidden] { display: none; }
        .site-toast-icon, .site-toast-close {
            flex: 0 0 auto;
            display: grid;
            place-items: center;
            border-radius: 50%;
            line-height: 1;
        }
        .site-toast-icon {
            width: 1.4rem;
            height: 1.4rem;
            background: #9dc6ff;
            color: #17202b;
            font-weight: 700;
        }
        .site-toast[data-type="success"] .site-toast-icon { background: #4ade80; }
        .site-toast[data-type="error"] .site-toast-icon { background: #fda4af; }
        .site-toast-message {
            flex: 1 1 auto;
            min-width: 0;
            font-size: .94rem;
            line-height: 1.6;
            overflow-wrap: anywhere;
        }
        .site-toast-close {
            width: 2rem;
            height: 2rem;
            border: 0;
            background: #3c3d40;
            color: #fff;
            font-size: 1.35rem;
            cursor: pointer;
        }
        .site-toast-close:hover { background: #4d5055; }
        .site-toast-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
        @media (max-width: 920px) {
            body.admin-view .site-toast { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
        }

        /* Keep touch and wheel scrolling while hiding visible rails on every page. */
        html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
        ::-webkit-scrollbar { display: none; width: 0; height: 0; }
        .post-actions summary::-webkit-details-marker { display: none; }
        .post-option { display: block; width: 100%; text-align: left; padding: .65rem .8rem; border-radius: .7rem; }

        /* Rich Text Editor & Rendered Content */
        #editorCanvas:empty:before {
            content: attr(data-placeholder);
            color: #94A3B8;
            pointer-events: none;
        }

        .rich-content p {
            margin-bottom: 0.75rem;
            line-height: 1.7;
        }

        .rich-content a {
            color: #2563EB;
            text-decoration: underline;
            font-weight: 500;
            word-break: break-all;
            cursor: pointer;
        }

        .rich-content a:hover {
            color: #1D4ED8;
        }

        .rich-content ul {
            list-style-type: disc;
            padding-left: 1.5rem;
            margin-bottom: 0.75rem;
        }

        .rich-content ol {
            list-style-type: decimal;
            padding-left: 1.5rem;
            margin-bottom: 0.75rem;
        }

        .rich-content pre {
            background: #0F172A;
            color: #E2E8F0;
            padding: 1rem;
            border-radius: 0.75rem;
            overflow-x: auto;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 0.85rem;
            margin: 0.85rem 0;
        }

        .rich-content blockquote.question-callout {
            background: #EFF6FF;
            border-left: 4px solid #2563EB;
            padding: 0.85rem 1rem;
            border-radius: 0.5rem;
            color: #1E3A8A;
            margin: 0.85rem 0;
            font-weight: 500;
        }

        .rich-content img {
            max-width: 100%;
            border-radius: 0.75rem;
            margin: 0.75rem 0;
            border: 1px solid #E2E8F0;
        }

        #editorVideoDialog.hidden, #editorImageResizeToolbar.hidden, #editorVideoResizeToolbar.hidden { display: none !important; }
        #editorCanvas img { cursor: pointer; }
        #editorCanvas img.editor-image-selected { outline: 3px solid #2563EB; outline-offset: 2px; }
        .rich-content .video-embed {
            width: min(100%, 800px);
            max-width: 100%;
            aspect-ratio: 16 / 9;
            margin: 0.85rem 0;
            border-radius: 0.75rem;
            overflow: hidden;
            background: #0f172a;
        }
        .rich-content .video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
        #editorCanvas .video-embed { cursor: pointer; }
        #editorCanvas .video-embed.editor-video-selected { outline: 3px solid #2563EB; outline-offset: 2px; }
        #editorCanvas .video-embed iframe { pointer-events: none; }

        .mention-chip {
            display: inline-flex;
            align-items: center;
            background: #EFF6FF;
            color: #1D4ED8;
            border: 1px solid #BFDBFE;
            padding: 0.05rem 0.45rem;
            border-radius: 9999px;
            font-weight: 600;
            font-size: 0.85em;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .mention-chip:hover {
            background: #DBEAFE;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
            }
            to {
                transform: translateX(0);
            }
        }

        @keyframes slideUpMobile {
            from {
                transform: translateY(100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .animate-drawer-right {
            animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .animate-mobile-page {
            animation: slideUpMobile 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        /* Dark Mode Support */
        body.dark-mode {
            background-color: #0B1120;
            color: #F1F5F9;
        }

        body.dark-mode header,
        body.dark-mode aside,
        body.dark-mode article,
        body.dark-mode section,
        body.dark-mode #mobileSearchPage,
        body.dark-mode #mobileDrawerBackdrop aside,
        body.dark-mode #postEditorModal > div,
        body.dark-mode #sharePostModal > div,
        body.dark-mode #confirmDialogModal > div,
        body.dark-mode #legalDocModal > div,
        body.dark-mode .bg-white {
            background-color: #111827 !important;
            border-color: #1F2937 !important;
            color: #F1F5F9;
        }

        body.dark-mode .bg-slate-50,
        body.dark-mode .bg-slate-50\/80,
        body.dark-mode .bg-slate-50\/90,
        body.dark-mode .bg-slate-100,
        body.dark-mode .bg-slate-100\/90 {
            background-color: #1E293B !important;
            border-color: #334155 !important;
            color: #E2E8F0 !important;
        }

        body.dark-mode .text-slate-900,
        body.dark-mode .text-slate-800,
        body.dark-mode .text-slate-700 {
            color: #F1F5F9 !important;
        }

        body.dark-mode .text-slate-600,
        body.dark-mode .text-slate-500 {
            color: #94A3B8 !important;
        }

        body.dark-mode input,
        body.dark-mode textarea,
        body.dark-mode select,
        body.dark-mode #editorCanvas {
            background-color: #0F172A !important;
            border-color: #334155 !important;
            color: #F8FAFC !important;
        }

        body {
            --action-hover-text: #1e40af;
            --action-hover-surface: #dbeafe;
            --action-icon: #475569;
            --action-icon-surface: #f1f5f9;
        }

        body.dark-mode {
            --action-hover-text: #bfdbfe;
            --action-hover-surface: #243b5e;
            --action-icon: #cbd5e1;
            --action-icon-surface: #1e293b;
        }

        .text-white[class*="bg-"] {
            --action-hover-text: #fef9c3;
        }

        body :is(button:not(:disabled, [aria-disabled="true"]), a[href], summary, label.cursor-pointer,
            [onclick].cursor-pointer:not(article), [onclick].group):is(:hover, :focus-visible),
        body :is(button, [onclick].cursor-pointer:not(article), [onclick].group):is(:hover, :focus-visible)
            :is(.text-slate-900, .text-slate-800, .text-slate-700, .text-slate-600, .text-slate-500):not([class*="bg-"]),
        body article[onclick]:hover > h2 {
            color: var(--action-hover-text) !important;
        }

        body :is(button, summary, label.cursor-pointer):not(.text-white, :disabled, [aria-disabled="true"]):is(
            [class*="bg-"], .post-option, .search-clear, .menu-strip-arrow):is(:hover, :focus-visible),
        body [onclick].cursor-pointer[class*="hover:bg-"]:hover {
            background-color: var(--action-hover-surface) !important;
        }

        .search-clear,
        .menu-strip-arrow {
            display: grid;
            place-items: center;
            width: 2rem;
            height: 2rem;
            padding: 0;
            border: 0;
            border-radius: 50%;
            color: var(--action-icon);
            background: var(--action-icon-surface);
        }

        .search-clear {
            position: absolute;
            inset-inline-end: .25rem;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
        }

        .search-clear[hidden],
        .menu-strip-arrow[hidden] {
            display: none;
        }

        .menu-strip {
            display: flex;
            flex: 1 1 auto;
            align-items: center;
            min-width: 0;
            gap: .25rem;
        }

        .menu-strip-viewport {
            min-width: 0;
            flex: 1 1 auto;
            overflow-x: auto;
        }

        .menu-strip-items {
            display: flex;
            align-items: center;
            width: max-content;
            gap: .375rem;
            padding: .125rem;
            white-space: nowrap;
        }

        .menu-strip-arrow {
            flex: none;
        }

        .menu-strip-arrow[aria-disabled="true"] {
            opacity: .4;
            cursor: default;
        }

        .menu-strip-items > button:focus-visible,
        .menu-strip-arrow:focus-visible,
        .search-clear:focus-visible {
            outline: 2px solid currentColor;
            outline-offset: -2px;
        }
