.gd, .gd-pop {
    --bg: #0a0f19; --bg2: #0c1321; --panel: #101828; --panel2: #162137; --line: #1e2d46; --line2: #2a3f63;
    --acc: #3b82f6; --acc2: #60a5fa; --acc3: #1e40af; --dim: #172a4e; --tx: #f1f5f9; --mut: #94a3b8; --sub: #64748b;
    --ok: #22c55e; --bad: #ef4444; --warn: #f59e0b; --r: 16px; --r-sm: 10px; --ease: cubic-bezier(.2, .7, .2, 1);
    --font: 'Segoe UI', 'Inter', system-ui, sans-serif; --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
/* ====== Replika tampilan aplikasi G-Macro v2.5.1 (demo interaktif) — palet aplikasi, sengaja berbeda dari tema situs ====== */
.gd, .gd *, .gd *::before, .gd *::after, .gd-pop, .gd-pop * { box-sizing: border-box; }
.gd { font-family: var(--font); }
.gd button, .gd input, .gd select, .gd textarea { color: inherit; letter-spacing: normal; text-transform: none; }
.gd h1, .gd h2, .gd h3, .gd h4, .gd h5 { text-transform: none; letter-spacing: -0.01em; font-family: var(--font); font-weight: 700; }
.gd { border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 50px 90px -34px rgba(0, 0, 0, .9), 0 0 0 1px rgba(59, 130, 246, .1), 0 0 90px -26px rgba(59, 130, 246, .5); text-align: left; color: var(--tx); font-size: 13.5px; line-height: 1.45; user-select: none; -webkit-user-select: none; }
.gd button, .gd input, .gd select { font-family: inherit; }
.gd-title { height: 34px; background: #fff; display: flex; align-items: center; gap: 9px; padding: 0 0 0 11px; font-size: 12px; color: #111827; border-bottom: 1px solid #e5e7eb; }
.gd-title img { width: 15px; height: 15px; border-radius: 3px; }
.gd-title span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-wc { display: flex; height: 100%; }
.gd-wc i { width: 44px; height: 100%; display: grid; place-items: center; color: #374151; font-style: normal; font-size: 13px; }
.gd-wc i:last-child:hover { background: #c42b1c; color: #fff; }
.gd-wc i:not(:last-child):hover { background: rgba(0, 0, 0, .07); }
.gd-body { display: grid; grid-template-columns: 224px minmax(0, 1fr); height: 640px; }
.gd-side { background: var(--bg2); border-right: 1px solid var(--line); padding: 16px 10px 12px; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.gd-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 10px; }
.gd-brand img { width: 44px; height: 44px; border-radius: 6px; }
.gd-brand b { display: block; font-size: 15px; font-weight: 700; line-height: 1.15; }
.gd-brand small { display: block; color: var(--mut); font-size: 11px; }
.gd-grp { font-size: 10.5px; letter-spacing: .1em; color: var(--sub); padding: 12px 12px 5px; text-transform: uppercase; font-weight: 600; }
.gd-nav { display: flex; flex-direction: column; gap: 2px; }
.gd-nav button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--mut); font-size: 13.5px; cursor: pointer; text-align: left; transition: background .2s, color .2s; }
.gd-nav button:hover { background: rgba(30, 64, 175, .18); color: #e2e8f0; }
.gd-nav button svg { width: 19px; height: 19px; flex: none; }
.gd-nav button.on { background: linear-gradient(90deg, rgba(23, 42, 78, .95), rgba(23, 42, 78, .45)); color: #fff; font-weight: 600; }
.gd-nav button.on::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--acc); }
.gd-status { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: linear-gradient(180deg, #131f36, #0f1829); border: 1px solid var(--line); cursor: pointer; transition: border-color .25s; text-align: left; width: 100%; }
.gd-status:hover { border-color: var(--line2); }
.gd-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); flex: none; transition: all .3s; }
.gd-status.on i { background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, .22); }
.gd-status b { display: block; font-size: 12.5px; }
.gd-status small { display: block; font-size: 11px; color: var(--mut); }
.gd-ver { color: var(--sub); font-size: 11px; padding: 10px 6px 0; }
.gd-main { padding: 22px 24px 26px; overflow-y: auto; min-width: 0; position: relative; scrollbar-width: thin; scrollbar-color: #243653 transparent; }
.gd-page { display: none; animation: gdin .35s var(--ease); }
.gd-page.on { display: block; }
@keyframes gdin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gd-h1 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.gd-sub { color: var(--mut); font-size: 12.5px; margin: 2px 0 16px; }
.gd-card { position: relative; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, #121c31, #0f182b); padding: 18px 20px; margin-bottom: 14px; }
.gd-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; letter-spacing: -.01em; }
.gd-card h3 small { font-weight: 500; color: var(--mut); font-size: 11.5px; }
.gd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gd-field { margin-bottom: 12px; min-width: 0; }
.gd-field > label { display: block; color: var(--mut); font-size: 11.5px; margin-bottom: 6px; }
.gd-note { color: var(--sub); font-size: 11.5px; margin-top: 8px; }
.gd-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.gd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; align-items: start; }

.gd-dd { position: relative; }
.gd-dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 3px; border: 1px solid var(--line2); background: #0b1220; color: var(--tx); cursor: pointer; font-size: 13px; transition: border-color .2s, background .2s; text-align: left; }
.gd-dd-btn:hover { border-color: #3a5483; }
.gd-dd.open .gd-dd-btn { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.gd-dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-dd-btn svg { width: 14px; height: 14px; flex: none; color: var(--mut); transition: transform .25s var(--ease); }
.gd-dd.open .gd-dd-btn svg { transform: rotate(180deg); }
.gd-pop { position: fixed; z-index: 1200; background: #0e1729; border: 1px solid var(--line2); border-radius: 10px; padding: 5px; box-shadow: 0 30px 60px -16px rgba(0, 0, 0, .95); max-height: 280px; overflow-y: auto; opacity: 0; transform: translateY(-6px) scaleY(.96); transform-origin: top; transition: opacity .16s, transform .2s var(--ease); scrollbar-width: thin; scrollbar-color: #243653 transparent; font-family: var(--font); font-size: 13px; color: var(--tx); user-select: none; }
.gd-pop.show { opacity: 1; transform: none; }
.gd-pop .opt { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: #cbd5e1; gap: 8px; }
.gd-pop .opt:hover, .gd-pop .opt.hi { background: rgba(59, 130, 246, .2); color: #fff; }
.gd-pop .opt.sel { color: #fff; font-weight: 600; }
.gd-pop .opt.sel::after { content: '✓'; color: var(--acc2); }
.gd-pop .hd { padding: 8px 10px 4px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); font-weight: 600; cursor: default; }

.gd-sw { position: relative; width: 38px; height: 21px; border-radius: 999px; border: 0; background: #334155; cursor: pointer; flex: none; transition: background .25s; padding: 0; }
.gd-sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .4); transition: transform .25s var(--ease); }
.gd-sw.on { background: linear-gradient(180deg, #4f8ff7, #2563eb); }
.gd-sw.on::after { transform: translateX(17px); }
.gd-btn { padding: 10px 14px; border-radius: 4px; border: 1px solid var(--line2); background: linear-gradient(180deg, #17243d, #111b30); color: #e2e8f0; cursor: pointer; font-size: 12.5px; font-weight: 600; transition: transform .15s, filter .2s, border-color .2s; }
.gd-btn:hover { border-color: var(--acc2); filter: brightness(1.15); }
.gd-btn:active { transform: scale(.97); }
.gd-btn.pri { background: linear-gradient(180deg, #5b9bf8, #2563eb); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px rgba(59, 130, 246, .9); }
.gd-btn.dng { background: linear-gradient(180deg, #f06060, #dc2f2f); border-color: transparent; color: #fff; }
.gd-btn.blk { width: 100%; }
.gd-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.gd-input { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line2); background: #0b1220; color: var(--tx); font-size: 13px; user-select: text; -webkit-user-select: text; }
.gd-input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }

.gd-range { margin-bottom: 14px; }
.gd-range .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #cbd5e1; font-size: 12.5px; }
.gd-hr .val, .gd-range .val { min-width: 54px; text-align: center; padding: 3px 9px; border-radius: 6px; background: #0b1220; border: 1px solid var(--line2); font-family: var(--mono); font-size: 12px; color: #bfdbfe; }
.gd-range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--acc) var(--p, 50%), #334155 var(--p, 50%)); outline: none; cursor: pointer; }
.gd-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--acc); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); transition: transform .15s; }
.gd-range input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.gd-range input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--acc); }

.gd-list { max-height: 360px; overflow-y: auto; border-radius: 10px; background: #0a111f; border: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #243653 transparent; }
.gd-li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid #111c30; cursor: default; position: relative; transition: background .2s; }
.gd-li:hover { background: rgba(30, 64, 175, .12); }
.gd-li.cur::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acc); }
.gd-li .nm { flex: 1; font-weight: 600; font-size: 13px; color: #94a3b8; }
.gd-li.on .nm { color: #fff; }
.gd-li .cur-tag { color: var(--acc2); font-weight: 600; font-size: 12px; margin-left: 8px; }
.gd-li .cat { font-size: 11.5px; color: var(--sub); background: #101a2d; padding: 3px 12px; border-radius: 5px; min-width: 96px; text-align: center; }
.gd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gd-bar .gd-dd { width: 190px; }

.gd-mouse { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.gd-mouse-art { border-radius: 12px; border: 1px solid var(--line); background-color: var(--bg); background-image: linear-gradient(rgba(59, 130, 246, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, .06) 1px, transparent 1px); background-size: 24px 24px; display: grid; place-items: center; padding: 14px; min-height: 340px; }
.gd-mouse-art svg { width: 190px; max-width: 100%; overflow: visible; }
.gd-mouse-art .zone { cursor: pointer; transition: fill .2s, opacity .2s; }
.gd-mouse-art .zone:hover { fill: rgba(255, 255, 255, .3); }
.gd-mouse-art .zone.sel { fill: rgba(255, 255, 255, .5); }
.gd-mrow { display: grid; grid-template-columns: 34px 96px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.gd-mrow.sel { background: rgba(30, 64, 175, .18); border-color: rgba(59, 130, 246, .35); }
.gd-mrow .bd { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; background: linear-gradient(180deg, #4f8ff7, #1e40af); }
.gd-mrow .lb { font-size: 12.5px; color: #cbd5e1; }

.gd-cross { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.gd-cross-view { border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, #2a3a52, #141d2e 70%); aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.gd-cross-view canvas { width: 100%; height: 100%; }
.gd-sw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; color: #cbd5e1; font-size: 12.5px; }
.gd-color { display: flex; gap: 8px; align-items: center; }
.gd-color input[type=color] { width: 36px; height: 30px; border: 1px solid var(--line2); border-radius: 7px; background: #0b1220; padding: 2px; cursor: pointer; }
.gd-hk { display: grid; grid-template-columns: 1fr; gap: 0; }
.gd-hk-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #14213a; font-size: 12.5px; color: #cbd5e1; }
.gd-hk-row:last-child { border: 0; }
.gd-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.gd-tbl td { padding: 9px 4px; border-bottom: 1px solid #14213a; color: #cbd5e1; }
.gd-tbl td:last-child { text-align: right; font-weight: 600; }
.gd-tbl tr:last-child td { border: 0; }
.gd-good { color: var(--ok); } .gd-bad { color: #f87171; }
.gd-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gd-tile { position: relative; padding: 20px 16px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, #121c31, #0e1729); cursor: pointer; text-align: center; transition: border-color .25s, background .25s, transform .25s var(--ease); color: var(--tx); }
.gd-tile:hover { transform: translateY(-3px); border-color: var(--line2); }
.gd-tile.sel { border-color: var(--acc); background: linear-gradient(180deg, rgba(30, 64, 175, .45), #0e1729); box-shadow: 0 0 0 1px rgba(59, 130, 246, .5), 0 18px 34px -18px rgba(59, 130, 246, .8); }
.gd-tile svg { width: 46px; height: 46px; margin: 0 auto 10px; color: var(--acc2); }
.gd-tile b { display: block; font-size: 14px; }
.gd-tile small { color: var(--mut); font-size: 11.5px; }
.gd-sim { position: relative; height: 190px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: crosshair; background: linear-gradient(180deg, #162239, #0c1424); }
.gd-sim canvas { width: 100%; height: 100%; display: block; }
.gd-sim-hint { position: absolute; left: 12px; bottom: 10px; font-size: 11.5px; color: var(--mut); pointer-events: none; }
.gd-sim-st { position: absolute; right: 12px; top: 10px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(239, 68, 68, .2); color: #fca5a5; pointer-events: none; }
.gd-sim-st.on { background: rgba(34, 197, 94, .2); color: #86efac; }
.gd-toast { position: absolute; right: 18px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 10px; background: #0f1b31; border: 1px solid var(--line2); box-shadow: 0 18px 34px -14px #000; font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.gd-toast.show { opacity: 1; transform: none; }
.gd-toast i { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.gd-osd { position: absolute; left: 50%; top: 16px; transform: translate(-50%, -14px); z-index: 20; padding: 7px 18px; border-radius: 8px; background: rgba(8, 12, 21, .92); border: 1px solid var(--line2); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; opacity: 0; transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
.gd-osd.show { opacity: 1; transform: translate(-50%, 0); }
.demo-wrap { position: relative; }
.demo-tips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.demo-note { color: var(--sub); font-size: .85rem; margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }

/* hero: versi mini statis */
.gd.mini .gd-body { height: 396px; grid-template-columns: 170px minmax(0, 1fr); }
.gd.mini .gd-main { padding: 16px 18px; overflow: hidden; }
.gd.mini .gd-nav button { padding: 7px 10px; font-size: 12px; }
.gd.mini .gd-h1 { font-size: 19px; }
.gd.mini .gd-li { padding: 7px 10px; }
.gd.mini .gd-grid2, .gd.mini .gd-cols { grid-template-columns: 1fr; }
.gd.mini .gd-grid2 > div:first-child .gd-card:nth-child(2), .gd.mini .gd-grid2 > div:last-child > .gd-note { display: none; }
.gd.mini .gd-sim { height: 170px; }
.gd.mini .gd-sub { margin-bottom: 12px; }


@media (max-width: 1060px) {
    .gd-grid2, .gd-cols { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .gd-body { grid-template-columns: 1fr; height: auto; }
    .gd-side { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 10px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); align-items: center; }
    .gd-brand, .gd-grp, .gd-ver, .gd-status small { display: none; }
    .gd-nav { flex-direction: row; gap: 4px; }
    .gd-nav button { white-space: nowrap; width: auto; padding: 8px 12px; }
    .gd-status { margin: 0 0 0 6px; width: auto; flex: none; padding: 8px 12px; }
    .gd-main { max-height: 560px; }
    .gd.mini .gd-body { grid-template-columns: 1fr; height: auto; }
    .gd.mini .gd-main { max-height: 330px; }
    .gd.mini .gd-nav button { padding: 8px 12px; font-size: 13px; }
    .gd-mouse, .gd-cross { grid-template-columns: 1fr; }
    .gd-mouse-art { min-height: 280px; }
    .gd-cross-view { max-width: 260px; margin: 0 auto; }
}

@media (max-width: 760px) {
    .gd-row { grid-template-columns: 1fr; }
    .gd-main { padding: 18px 14px; }
}


/* ====== layout halaman mengikuti aplikasi v2.5.1 ====== */
.gd-card h3 { margin-bottom: 14px; font-size: 15px; }
.gd-card h3 small { font-size: 11.5px; }
.gd-mtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.gd-mtiles .t { height: 54px; display: grid; place-items: center; background: #172641; font-weight: 800; font-size: 16px; color: #fff; border-radius: 3px; letter-spacing: .01em; }
.gd-mtiles .t.cat { color: #5ea0ff; }
.gd-pair { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px 12px; align-items: center; }
.gd-pair .lb, .gd-ir .lb, .gd-hr .lb { color: var(--mut); font-size: 12.5px; }
.gd-cfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 36px; }
.gd-ir { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 16px; }
.gd-ir.wide { grid-template-columns: 130px minmax(0, 1fr); }
.gd-ir.wide .gd-dd { max-width: 250px; }
.gd-ir .lb.b { color: #e5edf8; font-weight: 600; font-size: 13.5px; }
.gd-hr { display: grid; grid-template-columns: 112px minmax(0, 1fr) 62px; align-items: center; gap: 10px; margin-bottom: 16px; }
.gd-hr.plain { grid-template-columns: 130px minmax(0, 1fr) 62px; margin-bottom: 13px; }
.gd-hr .val { min-width: 0; text-align: center; padding: 6px 4px; border-radius: 3px; background: #0b1424; border: 1px solid var(--line2); font-family: var(--font); font-size: 12.5px; font-weight: 600; color: #6aa8ff; }
.gd-hr.plain .val { background: transparent; border: 0; text-align: right; font-weight: 700; }
.gd-hr input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 5px; background: linear-gradient(90deg, #3b82f6 var(--p, 50%), #2c3a52 var(--p, 50%)); outline: none; cursor: pointer; }
.gd-hr input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #3b82f6; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.gd-hr input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid #3b82f6; }
.gd-tip { padding: 16px 20px; border-radius: 12px; border: 1px solid var(--line); background: #0f182b; color: var(--mut); font-size: 12.5px; line-height: 1.55; }
.gd-note { line-height: 1.5; }
.gd-lbl { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; color: #e5edf8; }
.gd-hr-line { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.gd-hd-dd { width: 190px; font-weight: 400; }
.gd-pcols { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; align-items: start; }
.gd-btns.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.gd-list { max-height: 400px; }
.gd-li { padding: 8px 12px; }
.gd-li .nm { font-size: 13px; text-transform: uppercase; letter-spacing: .01em; }
.gd-li .cur-tag { text-transform: none; }
.gd-li .cat { border-radius: 3px; min-width: 110px; }
.gd-ok { color: #34d399; font-size: 12.5px; margin: -4px 0 14px; }
.gd-mouse { grid-template-columns: 280px minmax(0, 1fr); }
.gd-mouse-art { padding: 0; min-height: 330px; border-radius: 4px; }
.gd-mouse-art svg { width: 100%; height: auto; max-width: 280px; }
.gd-mouse-art .zone { cursor: pointer; }
.gd-mouse-art .zone:hover rect { stroke: #60a5fa; }
.gd-mhead { display: grid; grid-template-columns: 146px minmax(0, 1fr); color: var(--sub); font-size: 12px; padding: 0 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.gd-mrow { grid-template-columns: 34px 106px minmax(0, 1fr); border-radius: 2px; padding: 8px 6px; }
.gd-mrow .bd { width: 30px; height: 30px; border-radius: 3px; background: #1a2740; color: #6aa8ff; font-size: 13px; }
.gd-mrow.sel { background: rgba(30, 64, 175, .28); border-color: transparent; }
.gd-mrow.sel .bd { background: #3b82f6; color: #fff; }
.gd-xcols { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; align-items: start; }
.gd-cross-view { background: #070d18; border-radius: 3px; }
.gd-swatch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gd-swatch .sc { width: 24px; height: 24px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer; padding: 0; transition: transform .15s; }
.gd-swatch .sc:hover { transform: scale(1.12); }
.gd-swatch .sc.on { outline: 2px solid #fff; outline-offset: 1px; }
.gd-swatch .plus { position: relative; width: 24px; height: 24px; border-radius: 3px; display: grid; place-items: center; background: #1a2740; border: 1px solid var(--line2); cursor: pointer; font-weight: 700; color: #cbd5e1; font-size: 13px; overflow: hidden; }
.gd-swatch .plus input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.gd-input.hex { max-width: 130px; border-radius: 3px; font-family: var(--mono); }
.gd-input { border-radius: 3px; }
.gd-sw.lg { width: 54px; height: 26px; background: #2a3446; }
.gd-sw.lg::before { content: 'OFF'; position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 800; color: #e2e8f0; }
.gd-sw.lg::after { width: 20px; height: 20px; top: 3px; left: 3px; }
.gd-sw.lg.on { background: #2f6df0; }
.gd-sw.lg.on::before { content: 'ON'; left: 8px; right: auto; color: #fff; }
.gd-sw.lg.on::after { transform: translateX(28px); }
.gd-sw-row { font-weight: 600; font-size: 13px; color: #e5edf8; padding: 8px 0; }
.gd-hk-row { padding: 7px 0; border: 0; font-size: 13px; }
.gd-hkb { min-width: 210px; padding: 8px 12px; border-radius: 3px; border: 1px solid var(--line2); background: linear-gradient(180deg, #19263f, #131e33); color: #5ea0ff; font-weight: 700; font-size: 12.5px; cursor: pointer; font-family: var(--font); transition: border-color .2s; }
.gd-hkb:hover { border-color: var(--acc2); }
.gd-hkb.cap { color: #fbbf24; border-color: #fbbf24; }
.gd-manual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; color: var(--mut); font-size: 12px; line-height: 1.7; white-space: pre-line; }
.gd.mini { display: none; }

@media (max-width: 1060px) {
    .gd-pcols, .gd-xcols { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .gd-side { flex-direction: row; }
    .gd-status { display: none; }
    .gd-mouse { grid-template-columns: 1fr; }
    .gd-mouse-art { max-width: 300px; margin: 0 auto; }
    .gd-cross-view { max-width: 240px; }
}
@media (max-width: 760px) {
    .gd-cfg, .gd-manual, .gd-mtiles { grid-template-columns: 1fr; }
    .gd-pair { grid-template-columns: 80px minmax(0, 1fr); }
    .gd-ir, .gd-ir.wide { grid-template-columns: 1fr; gap: 6px; }
    .gd-hr, .gd-hr.plain { grid-template-columns: 88px minmax(0, 1fr) 52px; gap: 8px; }
    .gd-hk-row { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 0; }
    .gd-hkb { min-width: 0; width: 100%; }
    .gd-mrow { grid-template-columns: 30px minmax(0, 1fr); }
    .gd-mrow .lb { grid-column: 2; }
    .gd-mrow .gd-dd { grid-column: 1 / -1; }
    .gd-mhead { display: none; }
    .gd-li .cat { min-width: 0; padding: 3px 8px; }
    .gd-hd-dd { width: 140px; }
    .gd-card { padding: 16px 14px; }
}
