﻿/* KINGLED (kingledweb.softaz.vn) - kgstudio.css 1.0 (15/11/2026, AZUI2 - STUDIO #24784) : nut «Xem mẫu» + hop xem mau AZ-Studio — theo kl2/studio.css 018 (KINGLUX) ;
   mau xanh thuong hieu Kingled ; sang mac dinh, toi theo prefers-color-scheme ; <= 640 px : hop toan man hinh */
.kg-st, .kg-st-btn { --kg-st-acc: #2e7d32; --kg-st-acct: #2e7d32; --kg-st-acc2: #50B848; --kg-st-panel: #ffffff; --kg-st-panel2: #F3F8F1; --kg-st-text: #1f2a1f; --kg-st-muted: #55605a;
    --kg-st-line: #dfe7dc; --kg-st-line2: #c9d6c5; --kg-st-bg: #0f140f; --kg-st-bg2: #e9efe7; }
@media (prefers-color-scheme: dark) {
    .kg-st { --kg-st-panel: #161b16; --kg-st-panel2: #1f261f; --kg-st-text: #e8efe6; --kg-st-muted: #a9b5a7; --kg-st-line: #2c352b; --kg-st-line2: #3a4639; --kg-st-bg2: #0d110d; --kg-st-acct: #8fd785; }
}
.kg-st-hide { display: none !important; }
.kg-st-btn { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--kg-st-acc2); border-radius: 10px;
    background: var(--kg-st-panel2); color: var(--kg-st-text); font: inherit; text-align: left; cursor: pointer; }
.kg-st-btn:hover, .kg-st-btn:focus-visible { border-color: var(--kg-st-acc); outline: 2px solid var(--kg-st-acc2); outline-offset: 1px; }
.kg-st-btn b { color: var(--kg-st-acct); font-size: 15px; }
.kg-st-btn small { display: block; color: var(--kg-st-muted); font-size: 12px; }
.kg-st-btn .kg-st-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--kg-st-acc); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.kg-st { position: fixed; inset: 0; z-index: 10060; /* ban 019 : tren thanh mua (.az-kl-pd-sticky 9990), Mai (.az-agent 9990), gio mini (10050) ; duoi bao gio (10100), toast */ display: none; align-items: center; justify-content: center; padding: 3vh 16px; box-sizing: border-box; }
.kg-st.kg-open { display: flex; }
.kg-st-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); }
.kg-st-box { position: relative; width: 100%; max-width: 1180px; max-height: 94vh; display: flex; flex-direction: column; background: var(--kg-st-panel); color: var(--kg-st-text);
    border: 1px solid var(--kg-st-line2); border-radius: 14px; box-sizing: border-box; overflow: hidden; }
.kg-st-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--kg-st-line); }
.kg-st-top h2 { margin: 0; font: 800 17px "Roboto", sans-serif; color: var(--kg-st-text); }
.kg-st-x { width: 40px; height: 40px; border: 0; background: transparent; color: var(--kg-st-muted); font-size: 26px; cursor: pointer; border-radius: 10px; }
.kg-st-x:hover, .kg-st-x:focus-visible { color: var(--kg-st-acct); outline: none; background: var(--kg-st-panel2); }
.kg-st-body { padding: 16px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.kg-st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kg-st-card { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--kg-st-panel2); border: 1px solid var(--kg-st-line2); border-radius: 10px;
    padding: 0 0 12px; color: var(--kg-st-text); cursor: pointer; overflow: hidden; }
.kg-st-card:hover, .kg-st-card:focus-visible { border-color: var(--kg-st-acc); outline: none; }
.kg-st-card img, .kg-st-noimg { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--kg-st-bg2); }
.kg-st-card > span, .kg-st-card > b { padding: 0 12px; }
.kg-st-kind { color: var(--kg-st-acct); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.kg-st-card b { font-size: 15px; line-height: 1.35; }
.kg-st-sum { color: var(--kg-st-muted); font-size: 13px; }
.kg-st-note { color: var(--kg-st-muted); font-size: 12px; font-style: italic; margin: 0; }
.kg-st-back { align-self: flex-start; background: transparent; border: 1px solid var(--kg-st-line2); color: var(--kg-st-text); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.kg-st-back:hover { border-color: var(--kg-st-acc2); color: var(--kg-st-acct); }
.kg-st-frame { position: relative; width: 100%; height: 68vh; background: var(--kg-st-bg); border: 1px solid var(--kg-st-line); border-radius: 10px; overflow: hidden; }
.kg-st-frame iframe, .kg-st-frame video { width: 100%; height: 100%; border: 0; display: block; background: var(--kg-st-bg); }
.kg-st-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.kg-st-imgs img { width: 100%; border-radius: 10px; display: block; }
.kg-st-files { display: flex; flex-wrap: wrap; gap: 8px; }
.kg-st-dl { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--kg-st-acc); color: #fff !important; font-weight: 800; text-decoration: none; }
.kg-st-dl:hover { background: var(--kg-st-acc2); }
html.kg-st-lock, html.kg-st-lock body { overflow: hidden; }
@media (max-width: 640px) {
    .kg-st { padding: 0; }
    .kg-st-box { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
    .kg-st-body { padding: 12px; }
    .kg-st-frame { height: calc(100dvh - 190px); }
}
