/* Zurfax web: tampilan chat yang bersih. Terang/gelap mengikuti perangkat atau pilihan admin. */
:root {
    color-scheme: light dark;
    --bg: #ffffff; --side-bg: #f9f9f9; --panel: #f4f4f4; --panel-2: #ececec; --line: #e5e5e5; --text: #0d0d0d; --muted: #6b6b6b; --soft: #8f8f8f;
    --accent: #0d0d0d; --on-accent: #ffffff; --bubble: #f2f2f2; --good: #177a4b; --bad: #c62828; --code: #f7f7f8; --code-head: #ececec;
    --shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06); --pop-shadow: 0 8px 28px rgba(0, 0, 0, .14);
    --side: 260px; --col: 768px;
    --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #212121; --side-bg: #181818; --panel: #2a2a2a; --panel-2: #333333; --line: #3a3a3a; --text: #ececec; --muted: #b4b4b4; --soft: #8e8e8e;
        --accent: #ececec; --on-accent: #0d0d0d; --bubble: #303030; --good: #5fd39a; --bad: #ff8a80; --code: #171717; --code-head: #2b2b2b;
        --shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 16px rgba(0, 0, 0, .3); --pop-shadow: 0 8px 28px rgba(0, 0, 0, .5);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #212121; --side-bg: #181818; --panel: #2a2a2a; --panel-2: #333333; --line: #3a3a3a; --text: #ececec; --muted: #b4b4b4; --soft: #8e8e8e;
    --accent: #ececec; --on-accent: #0d0d0d; --bubble: #303030; --good: #5fd39a; --bad: #ff8a80; --code: #171717; --code-head: #2b2b2b;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 16px rgba(0, 0, 0, .3); --pop-shadow: 0 8px 28px rgba(0, 0, 0, .5);
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-text-size-adjust: 100%; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }

.uy-app { display: flex; height: 100dvh; min-height: 0; }
.uy-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; flex: none; }
.uy-icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--muted); }
.uy-icon-btn:hover { background: var(--panel-2); color: var(--text); }
.uy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 14px; text-decoration: none; color: var(--text); }
.uy-btn:hover { background: var(--panel); }
.uy-btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.uy-btn-primary:hover { background: var(--accent); opacity: .88; }
.uy-btn-danger-fill { background: #d93025; border-color: #d93025; color: #fff; }
.uy-btn-danger-fill:hover { background: #d93025; opacity: .9; }
.uy-btn svg { width: 16px; height: 16px; }
.uy-link { color: var(--text); text-decoration: underline; font-size: 13px; }

/* ---------- Panel samping ---------- */
.uy-side { width: var(--side); flex: none; display: flex; flex-direction: column; background: var(--side-bg); min-height: 0; }
.uy-side-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 14px; }
.uy-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; }
.uy-side-search { display: flex; align-items: center; gap: 8px; margin: 4px 10px 8px; padding: 0 10px; height: 38px; border-radius: 10px; color: var(--muted); }
.uy-side-search:focus-within, .uy-side-search:hover { background: var(--panel-2); }
.uy-side-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14.5px; }
.uy-side-search input::placeholder { color: var(--muted); }
.uy-convs { flex: 1; overflow-y: auto; padding: 0 8px 12px; min-height: 0; }
.uy-convs-group { font-size: 12.5px; font-weight: 600; color: var(--soft); padding: 16px 8px 6px; }
.uy-conv { position: relative; display: flex; align-items: center; border-radius: 10px; }
.uy-conv:hover, .uy-conv.is-active { background: var(--panel-2); }
.uy-conv-open { flex: 1; min-width: 0; text-align: left; padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.uy-conv-more { flex: none; width: 32px; height: 32px; margin-right: 2px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); opacity: 0; }
.uy-conv:hover .uy-conv-more, .uy-conv.is-active .uy-conv-more, .uy-conv-more:focus-visible { opacity: 1; }
.uy-conv-more:hover { color: var(--text); }
.uy-conv-rename { flex: 1; min-width: 0; margin: 3px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--text); background: var(--bg); color: var(--text); font: inherit; font-size: 14.5px; }
.uy-convs-empty { color: var(--muted); font-size: 14px; padding: 12px 10px; }
.uy-side-foot { position: relative; padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); }
.uy-user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; }
.uy-user:hover { background: var(--panel-2); }
.uy-avatar { width: 32px; height: 32px; border-radius: 50%; background: #2f6f5e; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.uy-user-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uy-user svg { color: var(--muted); flex: none; }
.uy-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 20; }

/* Menu kecil (titik tiga, tombol +, menu akun) */
.uy-pop { position: fixed; z-index: 45; min-width: 180px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--pop-shadow); }
.uy-pop-up { position: absolute; bottom: calc(100% + 6px); left: 0; }
.uy-side-foot .uy-pop-up { left: 8px; right: 8px; }
.uy-pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; font-size: 14.5px; text-align: left; white-space: nowrap; }
.uy-pop-item:hover { background: var(--panel); }
.uy-pop-item svg { color: var(--muted); flex: none; }
.uy-pop-item.is-danger, .uy-pop-item.is-danger svg { color: var(--bad); }
.uy-pop-line { height: 1px; background: var(--line); margin: 6px 4px; }

/* ---------- Area utama ---------- */
.uy-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
.uy-top { display: flex; align-items: center; gap: 6px; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); min-height: 56px; }
.uy-title { flex: 1; min-width: 0; text-align: center; font-size: 14.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uy-model { display: inline-flex; align-items: center; gap: 6px; max-width: 60%; padding: 6px 8px 6px 10px; border-radius: 10px; font-size: 17px; flex: none; min-width: 0; }
.uy-model:hover { background: var(--panel); }
.uy-model b { font-weight: 600; }
.uy-model span { color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.uy-model svg { color: var(--muted); flex: none; }

.uy-msgs { flex: 1; overflow-y: auto; padding: 12px 16px 24px; min-height: 0; }
.uy-row { max-width: var(--col); margin: 0 auto 28px; display: flex; flex-direction: column; }
.uy-row.is-user { align-items: flex-end; margin-bottom: 24px; }
.uy-row.is-user .uy-bubble { background: var(--bubble); padding: 10px 18px; border-radius: 22px; max-width: 78%; white-space: pre-wrap; overflow-wrap: anywhere; }
.uy-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 12.5px; font-weight: 600; vertical-align: 1px; }
.uy-imgs { display: grid; gap: 6px; margin-bottom: 6px; justify-items: end; }
.uy-imgs img { width: 100%; max-width: 280px; max-height: 320px; object-fit: cover; border-radius: 18px; display: block; cursor: zoom-in; }
.uy-imgs.is-many { grid-template-columns: repeat(3, 96px); }
.uy-imgs.is-many img { width: 96px; height: 96px; }

/* Tombol di bawah pesan: muncul saat disorot, seperti aplikasi chat modern */
.uy-acts-row { display: flex; align-items: center; gap: 2px; margin-top: 6px; min-height: 32px; }
.uy-acts-row.is-user { opacity: 0; transition: opacity .15s; }
.uy-row.is-user:hover .uy-acts-row, .uy-acts-row.is-user:focus-within { opacity: 1; }
.uy-act-btn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.uy-act-btn:hover { background: var(--panel); color: var(--text); }
.uy-act-btn.is-done { color: var(--good); }
.uy-meta { margin-left: 8px; font-size: 12.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Edit pesan */
.uy-row.is-editing { align-items: stretch; }
.uy-editbox { background: var(--bubble); border-radius: 22px; padding: 12px 14px 10px; }
.uy-editbox textarea { width: 100%; border: 0; outline: 0; resize: none; background: none; color: var(--text); font: inherit; font-size: 16px; line-height: 1.55; }
.uy-editbar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* Layar kosong: judul di tengah, kotak tulis ikut di tengah */
.uy-empty { display: none; }
.uy-main.is-empty .uy-msgs { flex: 0 0 auto; padding-top: 0; overflow: visible; }
.uy-main.is-empty { justify-content: center; }
.uy-main.is-empty .uy-top { position: absolute; top: 0; left: 0; right: 0; }
.uy-main.is-empty .uy-empty { display: block; max-width: var(--col); margin: 0 auto 18px; text-align: center; }
.uy-empty h1 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.uy-main:not(.is-empty) #uySuggestSlot { display: none; }
.uy-suggest { max-width: var(--col); margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.uy-suggest button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
.uy-suggest button:hover { background: var(--panel); color: var(--text); }

/* Langkah kerja Zurfax */
.uy-steps { margin-bottom: 10px; font-size: 14px; }
.uy-steps summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); padding: 2px 0; }
.uy-steps summary::-webkit-details-marker { display: none; }
.uy-steps summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); margin-left: 2px; transition: transform .15s; }
.uy-steps[open] summary::after { transform: rotate(45deg); }
.uy-steps-label { font-weight: 500; }
.uy-steps.is-live .uy-steps-label { background: linear-gradient(90deg, var(--soft) 0%, var(--text) 45%, var(--soft) 90%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: uyShine 1.8s linear infinite; }
@keyframes uyShine { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.uy-clock { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--soft); }
.uy-steps ol { margin: 8px 0 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--line); list-style: none; color: var(--muted); max-height: 260px; overflow-y: auto; }
.uy-steps ol:empty { display: none; }
.uy-steps li { margin: 4px 0; overflow-wrap: anywhere; font-size: 13.5px; }
.uy-steps li code { display: block; font: 12px/1.45 var(--mono); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uy-steps li[data-open] > span { color: var(--text); font-weight: 600; }
.uy-steps li.is-failed > span { color: var(--bad); }
.uy-steps summary { max-width: 100%; }
.uy-steps.is-live .uy-steps-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uy-steps li.is-sub > span { color: var(--text); }
.uy-steps li.is-sub code { white-space: normal; }

/* Rencana kerja: daftar centang yang diperbarui Zurfax selama bekerja. */
.uy-plan { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 8px; margin-bottom: 10px; font-size: 14px; }
.uy-plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.uy-plan-title { font-weight: 600; }
.uy-plan-count { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.uy-plan ul { list-style: none; margin: 0; padding: 0; }
.uy-plan li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; line-height: 1.45; overflow-wrap: anywhere; }
.uy-plan-dot { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.6px solid var(--soft); position: relative; }
.uy-plan li.is-in_progress > span { font-weight: 600; }
.uy-plan li.is-in_progress .uy-plan-dot { border-color: var(--text); border-right-color: transparent; }
.uy-plan.is-live li.is-in_progress .uy-plan-dot { animation: uy-putar .9s linear infinite; }
.uy-plan li.is-completed > span { color: var(--muted); }
.uy-plan li.is-completed .uy-plan-dot { border-color: var(--good); background: var(--good); }
.uy-plan li.is-completed .uy-plan-dot::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.uy-plan li.is-cancelled > span { color: var(--soft); text-decoration: line-through; }
.uy-plan li.is-cancelled .uy-plan-dot { border-style: dashed; }

/* Pekerjaan latar dan laporan susulannya. */
.uy-latar { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 12px 14px; margin: 10px 0 4px; font-size: 14px; }
.uy-latar b { display: block; margin-bottom: 2px; }
.uy-latar p { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; }
.uy-latar code { display: block; font: 12px/1.45 var(--mono); color: var(--soft); overflow-wrap: anywhere; }
.uy-latar-dot { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.8px solid var(--text); border-right-color: transparent; animation: uy-putar .9s linear infinite; }
.uy-latar.is-done .uy-latar-dot { animation: none; border-color: var(--good); background: var(--good); }
.uy-susulan { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.uy-susulan i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.uy-susulan.is-failed i { background: var(--bad); }
@media (prefers-reduced-motion: reduce) { .uy-plan.is-live li.is-in_progress .uy-plan-dot, .uy-latar-dot { animation: none; } }

/* Bingkai tunggu saat gambar sedang dibuat */
.uy-img-wait { width: min(100%, 420px); aspect-ratio: 1 / 1; border-radius: 18px; margin-bottom: 12px; display: grid; place-items: center; color: var(--muted); font-size: 14px;
    background: linear-gradient(110deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%); background-size: 250% 100%; animation: uyWait 1.6s linear infinite; }
@keyframes uyWait { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .uy-steps.is-live .uy-steps-label { animation: none; background: none; color: var(--text); } .uy-img-wait { animation: none; } }

/* Permintaan izin menjalankan perintah */
.uy-ask { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 10px; font-size: 14.5px; }
.uy-ask pre { margin: 0; padding: 10px 12px; background: var(--code); border-radius: 10px; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow-y: auto; }
.uy-ask p { margin: 0; font-size: 13.5px; color: var(--muted); }
.uy-ask-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.uy-ask-actions .uy-btn:disabled { opacity: .5; }

/* ---------- Isi jawaban ---------- */
.uy-md { overflow-wrap: anywhere; line-height: 1.7; }
.uy-md > :first-child { margin-top: 0; }
.uy-md > :last-child { margin-bottom: 0; }
.uy-md p { margin: 0 0 14px; }
.uy-md h1, .uy-md h2, .uy-md h3, .uy-md h4 { margin: 24px 0 10px; line-height: 1.35; font-weight: 600; }
.uy-md h1 { font-size: 24px; } .uy-md h2 { font-size: 20px; } .uy-md h3 { font-size: 18px; } .uy-md h4 { font-size: 16px; }
.uy-md ul, .uy-md ol { margin: 0 0 14px; padding-left: 26px; }
.uy-md li { margin: 6px 0; padding-left: 2px; }
.uy-md li > ul, .uy-md li > ol { margin: 6px 0 0; }
.uy-md li > p { margin: 0 0 6px; }
.uy-md strong { font-weight: 600; }
.uy-md a { color: inherit; text-decoration: underline; text-decoration-color: var(--soft); text-underline-offset: 3px; }
.uy-md a:hover { text-decoration-color: currentColor; }
.uy-md :not(pre) > code { font: .875em var(--mono); background: var(--panel-2); padding: 2px 6px; border-radius: 6px; }
.uy-md blockquote { margin: 0 0 14px; padding: 2px 16px; border-left: 3px solid var(--line); color: var(--muted); }
.uy-md hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.uy-codeblk { margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: var(--code); border: 1px solid var(--line); }
.uy-codeblk-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; background: var(--code-head); font-size: 12.5px; color: var(--muted); }
.uy-copy { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 7px; font-size: 12.5px; color: var(--muted); }
.uy-copy:hover { color: var(--text); }
.uy-md pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.uy-md pre code { font: 13.5px/1.6 var(--mono); white-space: pre; background: none; padding: 0; }
.uy-table { margin: 0 0 16px; }
.uy-table-scroll { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 70vh; }
.uy-md table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.5; }
.uy-md th, .uy-md td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.uy-md th { background: var(--panel); position: sticky; top: 0; font-weight: 600; white-space: nowrap; }
.uy-md tbody tr:last-child td { border-bottom: 0; }
.uy-md th[align="right"], .uy-md td[align="right"] { text-align: right; }
.uy-md th[align="center"], .uy-md td[align="center"] { text-align: center; }
.uy-table-acts { display: flex; gap: 6px; margin-top: 6px; }
.uy-mini { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); }
.uy-mini:hover { color: var(--text); background: var(--panel); }
.uy-error { color: var(--bad); }

/* Gambar di jawaban: besar, membulat, tombol muncul saat disorot */
/* Gambar menyesuaikan bentuknya: persegi dan melebar mengikuti lebar kolom, memanjang dibatasi tinggi layar
   supaya poster/story tidak memenuhi seluruh layar HP (seperti ChatGPT). */
.uy-img { position: relative; display: inline-block; max-width: min(100%, 600px); line-height: 0; margin: 4px 0; }
.uy-md .uy-img img { width: auto; height: auto; max-width: 100%; max-height: min(70vh, 640px); }
.uy-md img { max-width: 100%; border-radius: 18px; cursor: zoom-in; display: block; }
.uy-img-acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; line-height: 1.3; opacity: 0; transition: opacity .15s; }
.uy-img:hover .uy-img-acts, .uy-img:focus-within .uy-img-acts { opacity: 1; }
.uy-img-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; min-width: 34px; justify-content: center; padding: 0 10px; border-radius: 999px; background: rgba(13, 13, 13, .7); color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none !important; backdrop-filter: blur(8px); }
.uy-img-btn:hover { background: rgba(13, 13, 13, .9); }
@media (hover: none) { .uy-img-acts, .uy-acts-row.is-user { opacity: 1; } }

/* Penampil gambar layar penuh */
.uy-view { position: fixed; inset: 0; z-index: 50; background: rgba(8, 8, 8, .96); display: flex; flex-direction: column; }
.uy-view-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.uy-view-bar .uy-btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.uy-view-bar .uy-btn-primary { background: #fff; color: #0d0d0d; border-color: #fff; }
.uy-view-stage { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 0 12px calc(14px + env(safe-area-inset-bottom)); }
.uy-view-stage img { max-width: 100%; max-height: 100%; border-radius: 12px; cursor: zoom-in; display: block; }
.uy-view.is-zoom .uy-view-stage { place-items: start; }
.uy-view.is-zoom .uy-view-stage img { max-width: none; max-height: none; cursor: zoom-out; }

/* ---------- Kotak tulis ---------- */
.uy-composer { padding: 0 16px calc(8px + env(safe-area-inset-bottom)); }
.uy-box { max-width: var(--col); margin: 0 auto; border-radius: 28px; padding: 10px 10px 8px 16px; background: var(--bg); box-shadow: var(--shadow); }
:root[data-theme="dark"] .uy-box { background: var(--panel); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .uy-box { background: var(--panel); } }
.uy-box textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; background: none; color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; padding: 6px 4px 4px; max-height: 38vh; }
.uy-box textarea::placeholder { color: var(--soft); }
.uy-box-bar { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.uy-plus-wrap { position: relative; }
.uy-round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text); border: 1px solid var(--line); }
.uy-round:hover { background: var(--panel); }
.uy-plus-wrap .uy-pop-up { left: -6px; bottom: calc(100% + 10px); }
.uy-mode { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 10px; border-radius: 999px; background: color-mix(in srgb, #2f6fdf 14%, transparent); color: #2f6fdf; font-size: 14px; font-weight: 600; }
.uy-mode button { width: 22px; height: 22px; border-radius: 50%; font-size: 16px; line-height: 1; color: inherit; }
.uy-mode button:hover { background: color-mix(in srgb, #2f6fdf 20%, transparent); }
.uy-send { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; margin-left: auto; }
.uy-send:disabled { opacity: .3; }
.uy-send-stop { display: none; }
.uy-send.is-stop .uy-send-go { display: none; }
.uy-send.is-stop .uy-send-stop { display: grid; }
.uy-hint { max-width: var(--col); margin: 8px auto 0; font-size: 12px; color: var(--soft); text-align: center; }
.uy-main.is-empty .uy-hint { display: none; }
.uy-composer.is-drop .uy-box { outline: 2px dashed var(--soft); outline-offset: 3px; }
.uy-preview { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0 6px; font-size: 13px; color: var(--muted); }
.uy-prev-list { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 2px; }
.uy-prev-item { position: relative; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 14px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; }
.uy-prev-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; display: block; }
.uy-prev-item.is-loading { color: var(--muted); font-size: 20px; }
.uy-prev-no { position: absolute; left: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.uy-prev-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 15px; line-height: 22px; display: grid; place-items: center; }
.uy-prev-note { font-size: 13px; color: var(--muted); }
.uy-prev-note.is-warn { color: #c2410c; }

/* Dialog konfirmasi */
.uy-dialog { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); display: grid; place-items: center; padding: 16px; }
.uy-dialog-card { width: min(420px, 100%); background: var(--bg); border-radius: 18px; padding: 20px 20px 16px; box-shadow: var(--pop-shadow); border: 1px solid var(--line); }
.uy-dialog-card h2 { font-size: 18px; margin: 0 0 8px; font-weight: 600; }
.uy-dialog-card p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.uy-dialog-bar { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Lembar pilihan (model, keahlian, alat, jadwal) ---------- */
/* Lembar pilihan (model, keahlian, alat, jadwal) */
.uy-sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45); display: grid; place-items: center; padding: 16px; }
.uy-sheet-card { width: min(520px, 100%); max-height: min(78dvh, 640px); background: var(--bg); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; }
.uy-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 16px; }
.uy-search { margin: 0 14px 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 16px; }
.uy-sheet-body { overflow-y: auto; padding: 0 8px 12px; min-height: 0; }
.uy-group { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 12px 8px 4px; }
.uy-opt { display: flex; width: 100%; text-align: left; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 14px; }
.uy-opt:hover { background: var(--panel); }
.uy-opt.is-on { background: var(--panel-2); font-weight: 600; }
.uy-opt small { color: var(--muted); font-weight: 400; margin-left: auto; flex: none; }
.uy-item { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.uy-item b { display: block; }
.uy-item span { color: var(--muted); }
.uy-sheet-note { color: var(--muted); padding: 14px 10px; font-size: 13.5px; }

/* Halaman masuk */
.uy-login { display: grid; place-items: center; min-height: 100dvh; padding: 20px; }
.uy-login-card { text-align: center; display: grid; gap: 10px; justify-items: center; max-width: 340px; }
.uy-login-card h1 { margin: 6px 0 0; font-size: 22px; }
.uy-login-card p { margin: 0 0 8px; color: var(--muted); }

/* ---------- HP ---------- */
.uy-only-mobile { display: none; }
@media (max-width: 820px) {
    .uy-only-mobile { display: grid; }
    .uy-side { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(84vw, 300px); transform: translateX(-102%); transition: transform .2s ease; padding-top: env(safe-area-inset-top); }
    .uy-side.is-open { transform: none; box-shadow: var(--pop-shadow); }
    .uy-conv-more { opacity: 1; }
    .uy-title { display: none; }
    .uy-model { flex: 1; max-width: none; justify-content: center; }
    .uy-msgs { padding: 8px 14px 20px; }
    .uy-composer { padding-left: 10px; padding-right: 10px; }
    .uy-row.is-user .uy-bubble { max-width: 86%; }
    .uy-empty h1 { font-size: 23px; }
    .uy-imgs.is-many { grid-template-columns: repeat(3, 84px); }
    .uy-imgs.is-many img { width: 84px; height: 84px; }
    .uy-sheet { place-items: end center; padding: 0; }
    .uy-sheet-card { width: 100%; border-radius: 18px 18px 0 0; max-height: 82dvh; padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) { .uy-side { transition: none; } }
/* ---------- Model & akun penyedia ---------- */
:root { --warn: #8a5a00; --ok-bg: rgba(23, 122, 75, .1); --bad-bg: rgba(179, 38, 30, .09); --warn-bg: rgba(138, 90, 0, .1); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --warn: #e3b341; --ok-bg: rgba(95, 211, 154, .13); --bad-bg: rgba(255, 138, 128, .13); --warn-bg: rgba(227, 179, 65, .13); }
}
:root[data-theme="dark"] { --warn: #e3b341; --ok-bg: rgba(95, 211, 154, .13); --bad-bg: rgba(255, 138, 128, .13); --warn-bg: rgba(227, 179, 65, .13); }

.uy-sheet.is-wide .uy-sheet-card { width: min(620px, 100%); max-height: min(86dvh, 740px); }
.uy-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 14px 10px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.uy-tab { padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.uy-tab.is-on { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

.uy-ava { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px; background: var(--panel-2); color: var(--muted); }
.uy-ava.is-ok { background: var(--ok-bg); color: var(--good); }
.uy-ava.is-bad { background: var(--bad-bg); color: var(--bad); }
.uy-ava.is-warn { background: var(--warn-bg); color: var(--warn); }
.uy-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.uy-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.uy-pill.is-ok { background: var(--ok-bg); color: var(--good); }
.uy-pill.is-bad { background: var(--bad-bg); color: var(--bad); }
.uy-pill.is-warn { background: var(--warn-bg); color: var(--warn); }

.uy-prov-head { display: flex; align-items: center; gap: 10px; padding: 16px 8px 6px; }
.uy-prov-title { min-width: 0; flex: 1; display: grid; }
.uy-prov-title b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uy-prov-title span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uy-opt-model { min-height: 40px; }
.uy-opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.uy-opt-model small { margin-left: 0; font-size: 12px; }
.uy-opt-plain { font-family: var(--font); font-size: 14px; font-weight: 600; }
.uy-opt.is-off { opacity: .5; }
.uy-check { flex: none; font-weight: 700; }
.uy-badge { flex: none; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.uy-badge.is-ok { border-color: transparent; background: var(--ok-bg); color: var(--good); }
.uy-more { display: block; width: 100%; text-align: left; padding: 9px 10px; font-size: 13px; font-weight: 600; color: var(--muted); border-radius: 10px; }
.uy-more:hover { background: var(--panel); color: var(--text); }
.uy-btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 9px; flex: none; }
.uy-btn-danger { color: var(--bad); }
.uy-btn:disabled { opacity: .5; cursor: default; }
.uy-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 16px 8px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.uy-flash { display: flex; gap: 10px; align-items: flex-start; margin: 2px 6px 10px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: var(--panel); }
.uy-flash span { flex: 1; min-width: 0; }
.uy-flash.is-ok { background: var(--ok-bg); color: var(--good); }
.uy-flash.is-bad { background: var(--bad-bg); color: var(--bad); }
.uy-flash.is-warn { background: var(--warn-bg); color: var(--warn); }
.uy-flash-x { font-size: 18px; line-height: 1.1; padding: 0 4px; color: inherit; flex: none; }

.uy-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 8px; font-size: 13px; color: var(--muted); }
.uy-group-btn { display: block; width: 100%; text-align: left; }
.uy-group-btn:hover { color: var(--text); }
.uy-acct { margin: 6px 6px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.uy-acct.is-sorot { border-color: var(--text); }
.uy-acct-top { display: flex; align-items: center; gap: 10px; }
.uy-acct-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.uy-acct-err { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--panel); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.uy-acct-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.uy-acct-list li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--panel); font-size: 13px; }
.uy-acct-list b { overflow-wrap: anywhere; }
.uy-acct-list span { color: var(--muted); font-size: 12.5px; }
.uy-acct-row { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.uy-acct-who { display: grid; gap: 1px; min-width: 0; }
.uy-acct-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.uy-acct-btns .uy-btn { background: var(--bg); }
.uy-acct-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.uy-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.uy-acts .uy-btn { min-height: 36px; }

.uy-form { margin-top: 12px; display: grid; gap: 8px; }
.uy-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.uy-key { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 16px var(--mono); }
.uy-form small { color: var(--muted); font-size: 12.5px; }
.uy-form .uy-acts { margin-top: 4px; }

.uy-masuk { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--panel); display: grid; gap: 12px; justify-items: start; }
.uy-step { display: flex; gap: 10px; align-items: flex-start; }
.uy-step-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.uy-step-body { display: grid; gap: 8px; justify-items: start; font-size: 13.5px; }
.uy-code-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.uy-code { padding: 8px 14px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line); font: 700 20px var(--mono); letter-spacing: .08em; user-select: all; }
.uy-wait { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.uy-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--text); animation: uy-putar .9s linear infinite; flex: none; }
@keyframes uy-putar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .uy-spin { animation: none; } }
@media (max-width: 820px) {
    .uy-sheet.is-wide .uy-sheet-card { max-height: 92dvh; }
    .uy-opt-model small { display: none; }
    .uy-opt-model { min-height: 44px; }
    .uy-acts .uy-btn { min-height: 40px; }
    .uy-btn-sm { min-height: 32px; }
}


/* ===== Panel berkas & pratinjau (seperti Claude) ===== */
.uy-files-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 13.5px; font-weight: 600; flex: none; }
.uy-files-btn:hover { background: var(--panel); }
.uy-files-btn b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--panel-2); font-size: 12px; display: inline-grid; place-items: center; }
.uy-files-btn[hidden] { display: none; }
.uy-panel { flex: none; width: min(52vw, 760px); min-width: 380px; border-left: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; min-height: 0; }
.uy-panel[hidden] { display: none; }
.uy-pn-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; min-height: 56px; padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.uy-pn-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uy-pn-title b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uy-pn-title small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uy-pn-acts { display: flex; gap: 2px; flex: none; }
.uy-pn-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); text-decoration: none; }
.uy-pn-btn:hover { background: var(--panel); color: var(--text); }
.uy-pn-tabs { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.uy-pn-tab { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.uy-pn-tab.is-on { background: var(--panel-2); color: var(--text); }
.uy-pn-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.uy-pn-body.is-center { align-items: center; justify-content: center; padding: 16px; overflow: auto; background: var(--panel); }
.uy-pn-body.is-code, .uy-pn-body.is-table, .uy-pn-body.is-doc { overflow: auto; }
.uy-pn-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.uy-pn-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow); }
.uy-pn-media { max-width: 100%; max-height: 100%; }
.uy-pn-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; background: var(--bg); }
.uy-pn-codebar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; background: var(--code-head); color: var(--muted); font-size: 12.5px; }
.uy-pn-mini { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.uy-pn-mini:hover { background: var(--panel-2); color: var(--text); }
.uy-pn-pre { margin: 0; padding: 14px 16px; font: 12.8px/1.6 var(--mono); background: var(--code); white-space: pre; tab-size: 4; min-height: 100%; }
.uy-pn-pre code { background: none !important; padding: 0 !important; }
.uy-pn-md { padding: 18px 22px; max-width: 760px; }
.uy-pn-tablewrap { overflow: auto; }
.uy-pn-table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.uy-pn-table th, .uy-pn-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.uy-pn-table th { position: sticky; top: 0; background: var(--panel); font-weight: 700; }
.uy-pn-list { flex: 1; overflow: auto; padding: 8px; }
.uy-pn-empty { color: var(--muted); font-size: 14px; padding: 24px 18px; text-align: center; line-height: 1.6; }
.uy-pn-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border-radius: 12px; text-align: left; }
.uy-pn-item:hover { background: var(--panel); }
.uy-pn-item-t { min-width: 0; display: flex; flex-direction: column; }
.uy-pn-item-t b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uy-pn-item-t small { color: var(--muted); font-size: 12px; }
.uy-pn-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.uy-pn-ic.is-html { background: #e8f1ff; color: #2563eb; } .uy-pn-ic.is-pdf { background: #fdecec; color: #dc2626; }
.uy-pn-ic.is-word { background: #e6efff; color: #1d4ed8; } .uy-pn-ic.is-excel, .uy-pn-ic.is-csv { background: #e6f6ec; color: #15803d; }
.uy-pn-ic.is-ppt { background: #fff0e6; color: #c2410c; } .uy-pn-ic.is-gambar { background: #f3e8ff; color: #7e22ce; }
:root[data-theme="dark"] .uy-pn-ic { filter: saturate(.9) brightness(.85); }
/* Kartu berkas di bawah jawaban */
.uy-files { display: grid; gap: 8px; margin: 12px 0 4px; }
.uy-file { display: flex; align-items: center; gap: 12px; width: min(100%, 460px); padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); text-align: left; transition: border-color .15s, background .15s; }
.uy-file:hover { border-color: var(--soft); background: var(--panel); }
.uy-file-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.uy-file-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uy-file-t small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uy-file-go { flex: none; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: var(--panel-2); }
.uy-file-more { justify-self: start; font-size: 13px; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.uy-file-more:hover { background: var(--panel); }
/* Desktop: percakapan menyempit saat panel terbuka */
.uy-app.has-panel .uy-main .uy-msgs > *, .uy-app.has-panel .uy-composer > * { max-width: min(var(--col), 100%); }
@media (max-width: 1100px) { .uy-app.has-panel .uy-side { display: none; } }
@media (max-width: 820px) {
    .uy-panel { position: fixed; inset: 0; z-index: 40; width: 100%; min-width: 0; border-left: 0; }
    .uy-files-btn span { display: none; }
    .uy-file { width: 100%; }
}
/* Warna kode (highlight.js), mengikuti tema terang/gelap */
.hljs-comment, .hljs-quote { color: #6a737d; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-type, .hljs-doctag { color: #d73a49; }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute, .hljs-meta .hljs-string { color: #032f62; }
.hljs-number, .hljs-built_in, .hljs-symbol, .hljs-bullet, .hljs-variable.language_ { color: #005cc5; }
.hljs-title, .hljs-title.function_, .hljs-section, .hljs-selector-id, .hljs-selector-class { color: #6f42c1; }
.hljs-name, .hljs-tag, .hljs-selector-pseudo { color: #22863a; }
.hljs-attr, .hljs-variable, .hljs-template-variable, .hljs-params { color: #e36209; }
.hljs-deletion { color: #b31d28; } .hljs-meta { color: #735c0f; } .hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: 700; }
:root[data-theme="dark"] .hljs-comment, :root[data-theme="dark"] .hljs-quote { color: #8b949e; }
:root[data-theme="dark"] .hljs-keyword, :root[data-theme="dark"] .hljs-selector-tag, :root[data-theme="dark"] .hljs-literal, :root[data-theme="dark"] .hljs-type, :root[data-theme="dark"] .hljs-doctag { color: #ff7b72; }
:root[data-theme="dark"] .hljs-string, :root[data-theme="dark"] .hljs-regexp, :root[data-theme="dark"] .hljs-addition, :root[data-theme="dark"] .hljs-attribute { color: #a5d6ff; }
:root[data-theme="dark"] .hljs-number, :root[data-theme="dark"] .hljs-built_in, :root[data-theme="dark"] .hljs-symbol, :root[data-theme="dark"] .hljs-bullet { color: #79c0ff; }
:root[data-theme="dark"] .hljs-title, :root[data-theme="dark"] .hljs-section, :root[data-theme="dark"] .hljs-selector-id, :root[data-theme="dark"] .hljs-selector-class { color: #d2a8ff; }
:root[data-theme="dark"] .hljs-name, :root[data-theme="dark"] .hljs-tag { color: #7ee787; }
:root[data-theme="dark"] .hljs-attr, :root[data-theme="dark"] .hljs-variable, :root[data-theme="dark"] .hljs-params { color: #ffa657; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hljs-comment { color: #8b949e; }
    :root:not([data-theme="light"]) .hljs-keyword, :root:not([data-theme="light"]) .hljs-literal, :root:not([data-theme="light"]) .hljs-type { color: #ff7b72; }
    :root:not([data-theme="light"]) .hljs-string, :root:not([data-theme="light"]) .hljs-attribute { color: #a5d6ff; }
    :root:not([data-theme="light"]) .hljs-number, :root:not([data-theme="light"]) .hljs-built_in { color: #79c0ff; }
    :root:not([data-theme="light"]) .hljs-title, :root:not([data-theme="light"]) .hljs-section { color: #d2a8ff; }
    :root:not([data-theme="light"]) .hljs-name, :root:not([data-theme="light"]) .hljs-tag { color: #7ee787; }
    :root:not([data-theme="light"]) .hljs-attr, :root:not([data-theme="light"]) .hljs-variable, :root:not([data-theme="light"]) .hljs-params { color: #ffa657; }
}
