/* ===== Token ===== */
:root {
  --g: #0b5130; --g2: #13703f; --g-soft: #e5f3ea; --o: #c2410c; --o-soft: #fff1e8;
  --bg: #f6f8f5; --card: #ffffff; --ink: #142019; --mut: #5b6b61; --line: #dfe6e1; --line2: #eef2ef;
  --ok: #15803d; --ok-bg: #dcfce7; --no: #b91c1c; --no-bg: #fee2e2; --warn: #a16207; --warn-bg: #fef9c3;
  --shadow: 0 1px 2px rgba(16, 40, 25, .06), 0 8px 24px rgba(16, 40, 25, .06);
  --radius: 16px; --mono: 'JetBrains Mono', Consolas, monospace;
  --vbe: #ece9e1; --vbe-ink: #1b1b1b; --code-bg: #ffffff; --code-ink: #111; --code-k: #0000c8; --code-s: #a31515; --code-c: #008000; --code-n: #098658;
  --xl-head: #f3f3f3; --xl-cell: #ffffff; --xl-line: #d9d9d9; --xl-ink: #111; --xl-sel: rgba(33, 115, 70, .14); --xl-act: #217346;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --g: #4ade80; --g2: #22c55e; --g-soft: #153222; --o: #fb923c; --o-soft: #3a2314;
    --bg: #0c130f; --card: #141e18; --ink: #e5eee8; --mut: #9cb0a4; --line: #26362c; --line2: #1b2820;
    --ok: #4ade80; --ok-bg: #12301f; --no: #f87171; --no-bg: #3a1616; --warn: #facc15; --warn-bg: #3a3212;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --vbe: #23272b; --vbe-ink: #e4e4e4; --code-bg: #1b1f23; --code-ink: #e6e6e6; --code-k: #6ea8ff; --code-s: #f0a07a; --code-c: #6fbf73; --code-n: #b5cea8;
    --xl-head: #20262a; --xl-cell: #171b1e; --xl-line: #31383d; --xl-ink: #e9ecef; --xl-sel: rgba(74, 222, 128, .16); --xl-act: #4ade80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --g: #4ade80; --g2: #22c55e; --g-soft: #153222; --o: #fb923c; --o-soft: #3a2314;
  --bg: #0c130f; --card: #141e18; --ink: #e5eee8; --mut: #9cb0a4; --line: #26362c; --line2: #1b2820;
  --ok: #4ade80; --ok-bg: #12301f; --no: #f87171; --no-bg: #3a1616; --warn: #facc15; --warn-bg: #3a3212;
  --vbe: #23272b; --vbe-ink: #e4e4e4; --code-bg: #1b1f23; --code-ink: #e6e6e6; --code-k: #6ea8ff; --code-s: #f0a07a; --code-c: #6fbf73; --code-n: #b5cea8;
  --xl-head: #20262a; --xl-cell: #171b1e; --xl-line: #31383d; --xl-ink: #e9ecef; --xl-sel: rgba(74, 222, 128, .16); --xl-act: #4ade80;
  color-scheme: dark;
}

/* ===== Dasar ===== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--g); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); }
code { background: var(--line2); padding: .1em .38em; border-radius: 6px; font-size: .88em; }
kbd { display: inline-block; padding: .05em .45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card); font-size: .82em; font-weight: 600; }
button { font: inherit; color: inherit; }
.muted { color: var(--mut); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--g) 55%, transparent); outline-offset: 2px; }
#app { min-height: calc(100vh - 140px); outline: none; }
.boot { padding: 80px 16px; text-align: center; color: var(--mut); }

/* ===== Header ===== */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px clamp(16px, 3vw, 32px); background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap; }
.brand b { color: var(--g); } .brand em { color: var(--o); font-style: normal; font-weight: 800; }
.brand small { font-size: 11px; font-weight: 700; color: var(--mut); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; margin-left: 4px; vertical-align: middle; }
.logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #0b5130, #198754); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .5px; box-shadow: 0 4px 12px rgba(11, 81, 48, .3); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.topnav a:hover, .topnav a.on { background: var(--g-soft); color: var(--g); }
.topnav .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--o); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; padding: 0; }
@media (max-width: 720px) {
  .brand span:last-child small, .brand span:last-child em, .brand span:last-child { font-size: 15px; }
  .topnav a.hide-m { display: none; }
  .topnav a { padding: 8px 8px; font-size: 14px; }
}
@media (max-width: 420px) { .brand > span:last-child { display: none; } }
.foot { text-align: center; color: var(--mut); font-size: 13px; padding: 28px 16px 36px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot a { color: var(--mut); }

/* ===== Tombol & form ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; background: var(--g); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s; min-height: 46px; }
:root:not([data-theme="light"]) .btn { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost):not(.line) { color: #06240f; } }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--g) 30%, transparent); }
.btn:active { transform: translateY(0); }
.btn.o { background: var(--o); }
.btn.ghost { background: transparent; color: var(--g); border-color: var(--line); }
.btn.line { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.sm { padding: 8px 14px; min-height: 38px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.field input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-height: 46px; }
.field input:focus { border-color: var(--g); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--g) 20%, transparent); }
.field small { color: var(--mut); font-size: 13px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.alert.err { background: var(--no-bg); color: var(--no); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }

/* ===== Layout umum ===== */
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: var(--g-soft); color: var(--g); font-weight: 700; font-size: 13px; }
.pill.o { background: var(--o-soft); color: var(--o); }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--o); }

/* ===== Landing ===== */
.hero { padding: clamp(32px, 6vw, 72px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 .hl { color: var(--g); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .08em; height: .22em; background: color-mix(in srgb, var(--o) 30%, transparent); z-index: -1; border-radius: 4px; }
.hero p.lead { font-size: clamp(17px, 2vw, 19px); color: var(--mut); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-demo { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(11, 81, 48, .45); border: 1px solid var(--line); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 56px; }
.feat .card { padding: 22px; }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--g-soft); margin-bottom: 12px; }
.feat h4 { font-size: 17px; margin-bottom: 6px; }
.feat p { color: var(--mut); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; } }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; margin: 20px 0 56px; }
.flow > div { padding: 18px 18px 18px 0; position: relative; }
.flow > div::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--g); color: #fff; font-weight: 800; margin-bottom: 12px; }
.flow > div::after { content: ''; position: absolute; left: 44px; right: 8px; top: 36px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.flow > div:last-child::after { display: none; }
.flow b { display: block; margin-bottom: 4px; }
.flow span { color: var(--mut); font-size: 15px; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr 1fr; } .flow > div::after { display: none; } }
.syl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.syl .card { padding: 18px 20px; }
.syl h4 { font-size: 15px; color: var(--g); margin-bottom: 8px; }
.syl ul { margin: 0; padding-left: 18px; color: var(--mut); font-size: 14.5px; }
@media (max-width: 900px) { .syl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .syl { grid-template-columns: 1fr; } }
.auth-wrap { display: grid; place-items: center; padding: 40px 16px; }
.auth { width: min(440px, 100%); padding: 28px; }
.auth h2 { margin-bottom: 4px; }
.auth .sub { color: var(--mut); margin-bottom: 20px; }
.auth .btn { width: 100%; }
.auth .alt { text-align: center; margin-top: 16px; font-size: 15px; color: var(--mut); }

/* ===== Dashboard ===== */
.dash { padding-block: 28px; }
.dash-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.dash-top .card { padding: 20px; display: flex; gap: 16px; align-items: center; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; flex: none; background: conic-gradient(var(--g) calc(var(--p) * 1%), var(--line2) 0); display: grid; place-items: center; transition: --p 1s; }
.ring::before { content: attr(data-v); width: 66px; height: 66px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.dash-top h3 { margin: 0 0 4px; font-size: 17px; }
.dash-top p { margin: 0 0 10px; color: var(--mut); font-size: 14px; }
@media (max-width: 900px) { .dash-top { grid-template-columns: 1fr; } }
.mods { display: grid; gap: 18px; }
.mod h3 { margin: 6px 0 10px; font-size: 16px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lcard { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.lcard:hover { transform: translateY(-2px); border-color: var(--g); }
.lcard .st { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--line2); color: var(--mut); }
.lcard.done .st { background: var(--ok-bg); color: var(--ok); }
.lcard b { display: block; font-size: 15.5px; line-height: 1.3; }
.lcard small { color: var(--mut); font-size: 13px; }
.lcard .star { color: #eab308; }

/* ===== Halaman materi ===== */
.lesson { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-block: 24px 40px; }
.toc { position: sticky; top: 74px; align-self: start; max-height: calc(100vh - 90px); overflow: auto; padding-right: 6px; }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin: 16px 0 6px; }
.toc a { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.3; }
.toc a:hover { background: var(--line2); }
.toc a.on { background: var(--g-soft); color: var(--g); font-weight: 700; }
.toc a i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 11px; }
.toc a.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (max-width: 980px) { .lesson { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.lhead { margin-bottom: 18px; }
.lhead .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.lhead p { color: var(--mut); font-size: 17px; max-width: 760px; }
.lsec { margin: 26px 0; }
.lsec > h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.lsec > h2 .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--g); color: #fff; font-size: 15px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lsec > h2 .n { color: #06240f; } }
.prose { max-width: 820px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.tbl { border-collapse: collapse; width: 100%; margin: 12px 0 18px; font-size: 15px; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: block; overflow-x: auto; }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--g-soft); color: var(--g); font-weight: 700; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.callout { padding: 12px 16px; border-radius: 12px; background: var(--g-soft); border-left: 4px solid var(--g); margin: 14px 0; font-size: 15px; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn); }
.ex { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 14px 0 18px; background: var(--code-bg); }
.ex-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; background: var(--vbe); color: var(--vbe-ink); font-size: 13px; font-weight: 600; }
.ex-try { border: 0; background: var(--g); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ex-try { color: #06240f; } }
pre.code { margin: 0; padding: 14px 16px; font-size: 13.5px; line-height: 1.55; overflow-x: auto; color: var(--code-ink); background: var(--code-bg); }
pre.code.anat { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0 14px; }
pre.code .k, .cm-keyword { color: var(--code-k); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .cols2 { grid-template-columns: 1fr; } }
.chal { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--o-soft); border: 1px dashed color-mix(in srgb, var(--o) 50%, transparent); margin-bottom: 14px; }
.chal .ic { font-size: 26px; line-height: 1; }
.chal b { color: var(--o); }
.chal.done { background: var(--ok-bg); border-color: var(--ok); border-style: solid; }
.chal.done b { color: var(--ok); }
.chal p { margin: 4px 0 0; }
.lnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ===== Kuis ===== */
.quiz { display: grid; gap: 14px; }
.qcard { padding: 18px 20px; }
.qcard .qq { font-weight: 700; margin-bottom: 10px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-size: 15px; min-height: 46px; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--g); }
.opt .l { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--line2); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.opt.sel { border-color: var(--g); background: var(--g-soft); }
.opt.sel .l { background: var(--g); color: #fff; }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.wrong { border-color: var(--no); background: var(--no-bg); animation: shake .35s; }
.qres { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ===== Motion graphic ===== */
.mg { border-radius: 18px; overflow: hidden; background: #062417; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mg-stage { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 20% 0%, #13603b 0%, #0a3d25 45%, #062417 100%); }
.mg-stage::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.mg-canvas { position: absolute; left: 0; top: 0; width: 640px; height: 360px; transform-origin: 0 0; font-family: 'Plus Jakarta Sans', sans-serif; color: #eafff2; font-size: 13px; }
.mg-canvas.instant * { transition: none !important; animation-duration: 1ms !important; }
.mg-big { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--o); color: #fff; font-size: 30px; cursor: pointer; z-index: 5; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.mg-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #04190f; color: #d7f5e3; }
.mg-foot button { border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; flex: none; font-size: 14px; }
.mg-foot button:hover { background: rgba(255, 255, 255, .2); }
.mg-cap { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; }
.mg-cap .mg-n { display: inline-block; font-size: 11px; font-weight: 800; color: #04190f; background: #86efac; border-radius: 6px; padding: 1px 6px; margin-right: 8px; vertical-align: 1px; }
.mg-cap code, .mg-cap kbd { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }
.mg-cap b { color: #fde68a; }
.mg-dots { display: flex; gap: 5px; flex: none; }
.mg-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mg-dots button.seen { background: rgba(134, 239, 172, .6); }
.mg-dots button.on { background: #fb923c; transform: scale(1.3); }
@media (max-width: 560px) { .mg-dots { display: none; } .mg-cap { font-size: 13px; } }

/* elemen adegan */
.mg-canvas > * { position: absolute; }
.mg-canvas .hide:not(.on), .g-pop:not(.on), .g-win:not(.on):not(.in), .g-menu:not(.on), .vdrop:not(.on), .g-bucket:not(.on), .g-key:not(.on), .g-btn:not(.on),
.g-factory:not(.on), .g-prod:not(.on), .g-drop:not(.fall), .g-diamond:not(.on), .g-gate:not(.on), .g-funnel:not(.on), .g-chute:not(.on), .g-ball:not(.on), .g-lockers:not(.on),
.g-machine:not(.on), .g-ib:not(.on), .g-env:not(.on), .g-app:not(.on), .g-file:not(.on), .g-clip:not(.on), .g-mail:not(.on), .g-bp:not(.on), .g-detour:not(.on), .g-err:not(.on),
.g-counter:not(.on), .g-bars:not(.on), .g-shot:not(.on), .g-runner:not(.on), .g-cmp:not(.on), .g-band:not(.on), .g-road:not(.on), .ufdd:not(.on), .nm:not(.on), .vcode:not(.on) { opacity: 0; pointer-events: none; transform: translateY(8px) scale(.96); }
.mg-canvas > *, .mg-canvas .nm, .mg-canvas .vcode, .mg-canvas .vdrop, .mg-canvas .ufdd { transition: opacity .45s, transform .5s cubic-bezier(.3, 1.3, .5, 1), left .7s cubic-bezier(.5, 0, .2, 1), top .7s cubic-bezier(.5, 0, .2, 1), width .6s, height .7s cubic-bezier(.5, 0, .2, 1), background .3s, box-shadow .3s; }
.g-grid { display: grid; background: #fff; color: #111; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: 12px; }
.g-grid b { background: #eef1ee; color: #555; font-weight: 600; display: grid; place-items: center; border-right: 1px solid #d6dbd7; border-bottom: 1px solid #d6dbd7; font-size: 11px; }
.g-grid b.hl { background: #d7f0df; color: #0b5130; }
.g-grid i { font-style: normal; border-right: 1px solid #e3e6e4; border-bottom: 1px solid #e3e6e4; padding: 0 6px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; transition: background .3s, box-shadow .3s; }
.g-grid i.hl { background: #c9f2d5; box-shadow: inset 0 0 0 2px #16a34a; }
.g-grid i.hl2 { background: #ffe8d6; box-shadow: inset 0 0 0 1px #f97316; }
.g-grid i.pop { animation: cellpop .5s; }
@keyframes cellpop { 0% { background: #fde047; transform: scale(1.15); } 100% { transform: scale(1); } }
.g-win { background: #fff; color: #111; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.g-wt { background: #217346; color: #fff; padding: 6px 12px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.g-wb { position: relative; height: calc(100% - 29px); }
.xlwin .g-wb { background: #f7f7f7; }
.g-ribbon { display: flex; gap: 14px; padding: 6px 12px; font-size: 11px; color: #333; background: #f3f3f3; border-bottom: 1px solid #ddd; }
.g-ribbon .dev { color: #217346; font-weight: 700; }
.xlwin .g-grid { position: absolute; box-shadow: none; }
.vbewin .g-wt { background: #2b4f81; }
.vbewin .g-wb { background: #ece9e1; }
.vmenu { display: flex; gap: 16px; padding: 5px 10px; font-size: 12px; background: #f5f3ee; border-bottom: 1px solid #cfcab9; }
.vmenu span.hl, #mMod.hl { background: #cfe3ff; }
.vdrop { position: absolute !important; left: 110px; top: 24px; background: #fff; border: 1px solid #aaa; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); z-index: 3; display: flex; flex-direction: column; font-size: 12px; }
.vdrop span { padding: 5px 22px; }
.vtree { position: absolute; left: 6px; top: 34px; width: 190px; bottom: 6px; background: #fff; border: 1px solid #b9b39f; font-size: 11px; padding: 4px 6px; line-height: 1.9; }
.vtree b { display: block; background: #e8e5dc; margin: -4px -6px 4px; padding: 2px 6px; font-size: 11px; }
.vtree .t2 { padding-left: 10px; } .vtree .t3 { padding-left: 24px; }
.vtree .glow { background: #cfe3ff; font-weight: 700; }
.vcode { position: absolute !important; left: 204px; right: 6px; top: 34px; bottom: 6px; background: #fff; border: 1px solid #b9b39f; }
.vct { background: #e8e5dc; font-size: 11px; padding: 2px 8px; }
.g-code { background: #0e1a14; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; color: #e8f4ec; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.g-code.big { font-size: 13.5px; }
.g-code.bare { position: absolute !important; background: transparent; border: 0; box-shadow: none; color: #111; padding: 0; }
.g-code.bare .k { color: #0000c8; } .g-code.bare .s { color: #a31515; } .g-code.bare .f { color: #111; }
.g-code .ln { min-height: 1.6em; white-space: pre; border-radius: 4px; padding: 0 4px; transition: background .25s; }
.g-code .ln.hl, .g-code .ln.run { background: rgba(250, 204, 21, .22); }
.g-code .ln.exec { background: #fde047; color: #111; }
.g-code .ln.bpl { box-shadow: inset 3px 0 0 #ef4444; }
.g-code.glow { box-shadow: 0 0 0 3px #86efac, 0 10px 30px rgba(0, 0, 0, .3); }
.g-code.fade { opacity: 0 !important; transform: translateY(-20px); }
.g-code .k { color: #7cc4ff; } .g-code .s { color: #fdba74; } .g-code .c { color: #86efac; } .g-code .f { color: #f0abfc; }
.g-code .rep { border-radius: 4px; transition: background .3s; }
.g-code .rep.hl { background: #c2410c; color: #fff; }
.typing::after { content: '▍'; animation: blink .7s steps(1) infinite; color: #86efac; }
@keyframes blink { 50% { opacity: 0; } }
.g-key { background: linear-gradient(#fff, #e5e7eb); color: #111; border-radius: 8px; padding: 8px 0; text-align: center; font-weight: 800; box-shadow: 0 4px 0 #9ca3af, 0 8px 20px rgba(0, 0, 0, .3); }
.g-key.down { transform: translateY(4px); box-shadow: 0 0 0 #9ca3af; }
.g-label { font-weight: 700; color: #eafff2; white-space: nowrap; }
.g-label.big { font-size: 18px; } .g-label.big b { color: #fde047; }
.g-label.tag { background: rgba(255, 255, 255, .12); padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.g-label.mini { font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.g-label.ok { background: #16a34a; color: #fff; } .g-label.no { background: #dc2626; color: #fff; }
.g-label.glow { box-shadow: 0 0 0 3px #fde047; }
.g-label.plus { font-size: 20px; }
.g-pop { background: #fff; color: #111; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.g-pop.on { animation: popin .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes popin { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.g-pt { background: #fff; padding: 6px 10px; font-size: 11px; display: flex; justify-content: space-between; border-bottom: 1px solid #eee; }
.g-pb { display: flex; gap: 10px; align-items: center; padding: 14px 12px; min-height: 52px; font-size: 13px; }
.g-ic { width: 26px; height: 26px; border-radius: 50%; background: #2563eb; color: #fff; display: grid; place-items: center; font-weight: 800; font-style: italic; flex: none; }
.g-pf { background: #f0f0f0; padding: 7px 10px; text-align: right; }
.g-pf span { display: inline-block; border: 1px solid #0b6bd3; padding: 2px 18px; font-size: 11px; background: #fff; }
.g-pf.r { position: absolute; bottom: 0; left: 0; right: 0; }
.g-ptext .pc { display: inline-block; animation: popin .4s backwards; }
.g-ptext .pc:nth-child(2) { animation-delay: .15s; } .g-ptext .pc:nth-child(3) { animation-delay: .3s; } .g-ptext .pc:nth-child(4) { animation-delay: .45s; }
.pulse { display: inline-block; font-size: 20px; animation: popin .5s; color: #16a34a; }
.g-fly { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; font-weight: 800; }
.g-fly.chipf { background: #fde047; color: #111; padding: 3px 10px; border-radius: 99px; font-size: 13px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.g-fly.arrow { color: #fb923c; font-size: 28px; }
.g-chip { background: #fde047; color: #111; padding: 4px 12px; border-radius: 99px; font-weight: 800; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.g-chip.money { background: #86efac; }
.g-chip.tagc { background: #c4b5fd; font-family: var(--mono); }
.g-cursor { z-index: 30; pointer-events: none; transform-origin: 3px 2px; }
.g-cursor.clk { animation: clk .22s; }
@keyframes clk { 50% { transform: scale(.8); } }
.g-btn { background: linear-gradient(#f9fafb, #e5e7eb); color: #111; border: 1px solid #9ca3af; border-radius: 4px; padding: 8px 18px; font-weight: 700; box-shadow: 0 2px 0 #9ca3af; }
.g-btn.down { transform: translateY(2px); box-shadow: none; }
.g-menu { background: #fff; color: #111; border: 1px solid #ccc; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); display: flex; flex-direction: column; font-size: 12px; min-width: 140px; z-index: 4; }
.g-menu span { padding: 5px 14px; } .g-menu span.hl, .amlist span.hl { background: #cfe3ff; }
.dlg .g-wb { background: #f0f0f0; padding: 10px; font-size: 12px; }
.amlist { background: #fff; border: 1px solid #aaa; display: flex; flex-direction: column; margin-top: 4px; }
.amlist span { padding: 3px 8px; }
.g-factory { width: 340px; height: 270px; }
.g-factory .roof { height: 34px; background: repeating-linear-gradient(135deg, #fb923c 0 14px, #ea580c 14px 28px); clip-path: polygon(0 100%, 12% 0, 30% 100%, 42% 0, 60% 100%, 72% 0, 90% 100%, 100% 30%, 100% 100%); }
.g-factory .sign { background: #0e1a14; border: 2px solid #86efac; color: #fff; font-family: var(--mono); padding: 8px 12px; border-radius: 8px; text-align: center; margin: 4px 0 8px; transition: box-shadow .3s; }
.g-factory .sign .k, .g-factory .door .k { color: #7cc4ff; }
.g-factory .sign.glow, .g-factory .door.glow { box-shadow: 0 0 0 4px #fde047; }
.g-factory .belt { background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .25); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.g-factory .mach { font-family: var(--mono); font-size: 12px; background: rgba(255, 255, 255, .08); border-radius: 6px; padding: 6px 10px; transition: transform .3s, background .3s; }
.g-factory .mach.run { background: #fde047; color: #111; transform: translateX(12px); }
.g-factory .door { margin-top: 8px; background: #0e1a14; border: 2px solid #fb923c; border-radius: 8px; padding: 6px; text-align: center; font-family: var(--mono); transition: box-shadow .3s; }
.g-prod { font-size: 44px; }
.g-bucket { width: 150px; text-align: center; }
.g-btag { background: #fb923c; color: #111; font-weight: 800; border-radius: 8px 8px 0 0; padding: 4px; font-family: var(--mono); }
.g-btag small { display: block; font-size: 10px; font-weight: 700; }
.g-bbody { position: relative; height: 110px; border: 3px solid #cbd5e1; border-top: 0; border-radius: 0 0 40px 40px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.g-bucket.sm .g-bbody { height: 80px; }
.g-water { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(#38bdf8, #0284c7); transition: height .8s cubic-bezier(.3, 1.2, .5, 1); }
.g-bucket.full .g-water { height: 70%; }
.g-bval { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.g-bval s { opacity: .6; margin-right: 6px; }
.g-bucket.shake { animation: shake .4s 2; }
.g-drop { background: #38bdf8; color: #04203a; font-weight: 800; padding: 4px 10px; border-radius: 99px 99px 99px 4px; }
.g-drop.fall { animation: fall .7s cubic-bezier(.5, 0, 1, .5) forwards; }
@keyframes fall { 0% { transform: translateY(-30px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(120px); opacity: 0; } }
.g-band { background: rgba(250, 204, 21, .28); border: 2px solid #facc15; border-radius: 4px; z-index: 2; pointer-events: none; }
.g-shot { width: 4px; background: linear-gradient(#fb923c, rgba(251, 146, 60, .1)); border-radius: 4px; z-index: 3; transition: top .6s cubic-bezier(.6, 0, .3, 1), height .6s cubic-bezier(.6, 0, .3, 1), opacity .3s !important; }
.g-shot::before { content: '▲'; position: absolute; top: -14px; left: -6px; color: #fb923c; font-size: 14px; }
.g-diamond { width: 140px; height: 90px; display: grid; place-items: center; }
.g-diamond::before { content: ''; position: absolute; inset: 0; background: #fb923c; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.g-diamond span { position: relative; color: #111; font-weight: 800; font-size: 12.5px; }
.g-box { padding: 10px 16px; border-radius: 10px; font-weight: 800; border: 2px solid; transition: box-shadow .3s, transform .3s; }
.g-box.ok { border-color: #22c55e; color: #86efac; } .g-box.no { border-color: #ef4444; color: #fca5a5; }
.g-box.glow { box-shadow: 0 0 0 4px #fde047, 0 0 30px #fde047; transform: scale(1.08); }
.g-token { width: 44px; height: 44px; border-radius: 50%; background: #fde047; color: #111; display: grid; place-items: center; font-weight: 800; z-index: 3; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.g-gate { display: flex; gap: 10px; align-items: center; }
.g-gate .sw { padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .25); font-size: 12px; transition: all .3s; position: static; }
.g-gate .sw.on { background: #16a34a; border-color: #86efac; }
.g-gate .op { font-weight: 800; color: #fde047; font-size: 18px; position: static; }
.g-gate .lamp { font-size: 30px; filter: grayscale(1) brightness(.5); transition: filter .3s; position: static; }
.g-gate .lamp.on { filter: drop-shadow(0 0 14px #fde047); }
.g-funnel { width: 150px; padding: 10px; text-align: center; font-family: var(--mono); font-weight: 600; background: #0e1a14; border: 2px solid #86efac; border-radius: 10px 10px 40px 40px; }
.g-chute { width: 140px; height: 120px; border: 2px dashed rgba(255, 255, 255, .3); border-top: 0; border-radius: 0 0 14px 14px; text-align: center; padding-top: 4px; transition: all .3s; }
.g-chute span { display: block; font-family: var(--mono); font-size: 11.5px; background: rgba(255, 255, 255, .1); padding: 4px; border-radius: 6px; }
.g-chute b { display: block; font-size: 28px; margin-top: 30px; color: rgba(255, 255, 255, .25); }
.g-chute.chk span { background: #fb923c; color: #111; }
.g-chute.glow { border-color: #fde047; border-style: solid; box-shadow: 0 0 24px rgba(253, 224, 71, .4); }
.g-chute.glow b { color: #fde047; }
.g-ball { width: 40px; height: 40px; border-radius: 50%; background: #38bdf8; color: #04203a; display: grid; place-items: center; font-weight: 800; z-index: 3; }
.g-runner { color: #fb923c; font-size: 22px; z-index: 3; }
.g-counter { width: 120px; height: 100px; border-radius: 16px; background: #0e1a14; border: 2px solid #86efac; display: grid; place-items: center; }
.g-counter small { position: absolute; top: 6px; left: 10px; color: #86efac; font-family: var(--mono); }
.g-counter b { font-size: 48px; color: #fde047; }
.g-dots { display: flex; gap: 8px; transition: opacity .4s; }
.g-dots span { position: static; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); display: grid; place-items: center; font-weight: 800; font-size: 12px; transition: all .3s; }
.g-dots span.on { background: #16a34a; border-color: #86efac; }
.g-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 340px; }
.g-cmp div { position: static; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.5; }
.g-cmp b { color: #fde047; font-size: 15px; } .g-cmp small { font-family: var(--mono); color: #86efac; }
.g-cmp.sm { width: 280px; } .g-cmp.sm div { padding: 8px; font-size: 12px; }
.g-lockers { display: flex; gap: 6px; }
.g-lockers .lock { position: static; width: 74px; height: 110px; background: linear-gradient(#64748b, #475569); border-radius: 8px; border: 2px solid #94a3b8; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 2px; transition: all .3s; }
.g-lockers .lock small { font-family: var(--mono); font-size: 10.5px; color: #e2e8f0; }
.g-lockers .lock b { font-size: 13px; color: #fde047; min-height: 20px; }
.g-lockers .lock.hl { border-color: #fde047; box-shadow: 0 0 18px rgba(253, 224, 71, .6); transform: translateY(-6px); }
.g-lockers .lock.pop { animation: cellpop .5s; }
.g-machine { width: 260px; height: 130px; background: linear-gradient(#334155, #1e293b); border: 2px solid #94a3b8; border-radius: 16px; }
.g-machine .mt { text-align: center; font-family: var(--mono); padding: 8px; color: #fff; border-bottom: 1px solid #475569; } .g-machine .mt .k { color: #7cc4ff; }
.g-machine .gear { position: absolute; font-size: 36px; color: #fb923c; top: 46px; transition: transform 1s; }
.g-machine .g1 { left: 90px; } .g-machine .g2 { left: 128px; top: 62px; font-size: 28px; color: #fde047; }
.g-machine.spin .g1 { animation: spin 1s linear infinite; } .g-machine.spin .g2 { animation: spin 1s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.g-machine .mi, .g-machine .mo { position: absolute; top: 56px; font-size: 11px; color: #94a3b8; }
.g-machine .mi { left: 10px; } .g-machine .mo { right: 10px; }
.g-fx { display: flex; align-items: center; gap: 8px; background: #fff; color: #111; padding: 4px 10px; border-radius: 6px; min-width: 200px; font-family: var(--mono); }
.g-fx span { color: #888; font-style: italic; }
.g-ib { width: 340px; background: #fff; color: #111; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.g-ibb { padding: 12px; position: relative; min-height: 120px; font-size: 13px; }
.g-ibside { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.g-ibside span { border: 1px solid #999; padding: 2px 14px; font-size: 11px; background: #f5f5f5; }
.g-ibin { position: absolute; left: 12px; right: 12px; bottom: 12px; border: 1px solid #7a7a7a; height: 24px; padding: 2px 6px; font-family: var(--mono); }
.g-road { display: flex; gap: 4px; }
.g-road .seg { position: static; width: 146px; padding: 10px 6px; font-family: var(--mono); font-size: 11.5px; text-align: center; background: #334155; border-radius: 6px; border-bottom: 4px dashed #fde047; }
.g-road .seg.hole { background: #7f1d1d; border-bottom-color: #ef4444; }
.g-car { font-size: 34px; z-index: 4; transition: left .6s cubic-bezier(.5, 0, .3, 1), top .6s cubic-bezier(.5, 0, .3, 1) !important; }
.g-car.crash { animation: shake .3s 3; filter: drop-shadow(0 0 12px #ef4444); }
.g-car.jump { animation: jump .6s; }
@keyframes jump { 50% { transform: translateY(-40px) rotate(-12deg); } }
.g-detour .sign { display: inline-block; position: static; background: #fb923c; color: #111; font-weight: 800; padding: 4px 10px; border-radius: 6px; font-size: 12px; margin-bottom: 6px; }
.g-detour .seg { position: static; font-family: var(--mono); font-size: 12px; background: #14532d; border: 2px solid #22c55e; padding: 8px 12px; border-radius: 6px; width: 400px; }
.g-detour .seg.glow { box-shadow: 0 0 20px #22c55e; }
.g-err { background: #fff; color: #111; border-left: 6px solid #dc2626; padding: 12px 16px; border-radius: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); font-size: 13px; }
.g-rec { display: flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: 6px 12px; border-radius: 8px; font-weight: 700; }
.g-rec i { width: 12px; height: 12px; border-radius: 50%; background: #94a3b8; }
.g-rec.on { background: #7f1d1d; } .g-rec.on i { background: #ef4444; animation: blink 1s infinite; }
.g-bold { width: 32px; height: 32px; border-radius: 6px; background: #fff; color: #111; font-weight: 900; display: grid; place-items: center; }
.g-bold.on { background: #bbf7d0; box-shadow: inset 0 0 0 2px #16a34a; }
.g-locals { width: 200px; background: #fff; color: #111; border-radius: 8px; padding: 8px 12px; font-family: var(--mono); font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.g-locals b { display: block; font-family: 'Plus Jakarta Sans'; background: #e8e5dc; margin: -8px -12px 6px; padding: 4px 12px; border-radius: 8px 8px 0 0; }
.g-locals div { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px solid #eee; }
.g-locals span { color: #0000c8; font-weight: 700; transition: background .3s; } .g-locals span.pop { background: #fde047; }
.g-bp { width: 14px; height: 14px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; }
.g-code.dbg { padding-left: 24px; }
.svrow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 12px; }
.svin { background: #fff; border: 1px solid #999; padding: 2px 8px; flex: 1; transition: background .3s; } .svin.hl { background: #dcfce7; }
.svlist { position: absolute !important; left: 96px; top: 70px; right: 10px; background: #fff; border: 1px solid #888; display: flex; flex-direction: column; font-size: 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.svlist:not(.on) { opacity: 0; } .svlist span { padding: 3px 8px; } .svlist span.hl { background: #0b6bd3; color: #fff; }
.g-file { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; }
.g-file .doc { position: relative; width: 70px; height: 86px; background: #fff; color: #217346; border-radius: 6px; display: grid; place-items: center; font-size: 32px; font-weight: 900; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.g-file .doc.m::after { content: '!'; position: absolute; right: -8px; bottom: -8px; width: 26px; height: 26px; border-radius: 50%; background: #fb923c; color: #111; font-size: 16px; display: grid; place-items: center; }
.g-file .gear { position: absolute; top: -10px; right: -16px; font-size: 26px; color: #fde047; font-style: normal; transition: transform .8s, opacity .8s; }
.g-file .gear.fall { transform: translateY(80px) rotate(200deg); opacity: 0; }
.g-file span { position: static; font-size: 13px; }
.g-bars { display: flex; gap: 18px; align-items: flex-end; height: 160px; border-bottom: 2px solid rgba(255, 255, 255, .5); padding: 0 12px; }
.g-bars .bar { position: static; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.g-bars .bar i { display: block; width: 48px; height: 0; background: linear-gradient(#fb923c, #c2410c); border-radius: 6px 6px 0 0; transition: height 1s cubic-bezier(.3, 1.3, .5, 1); }
.g-bars .bar:nth-child(2) i { transition-delay: .15s; background: linear-gradient(#86efac, #16a34a); } .g-bars .bar:nth-child(3) i { transition-delay: .3s; background: linear-gradient(#7dd3fc, #0284c7); }
.g-bars .bar span { font-size: 11px; }
.g-app { width: 90px; height: 90px; border-radius: 20px; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); transition: box-shadow .4s; }
.g-app small { position: absolute; bottom: -22px; font-size: 12px; font-weight: 600; color: #d1fae5; }
.g-app.xl { background: linear-gradient(135deg, #21a366, #107c41); } .g-app.ol { background: linear-gradient(135deg, #28a8ea, #0364b8); }
.g-app.glow { box-shadow: 0 0 0 4px #fde047, 0 0 40px #fde047; }
.g-env { width: 220px; background: #fff; color: #111; border-radius: 10px; padding: 10px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); font-size: 12px; transition: all .8s cubic-bezier(.5, 0, .2, 1) !important; }
.g-env.big { width: 290px; }
.g-env .er { display: flex; gap: 8px; border-bottom: 1px solid #e5e7eb; padding: 4px 0; min-height: 26px; }
.g-env .er b { width: 52px; color: #0364b8; flex: none; } .g-env .er.body { min-height: 50px; border: 0; }
.g-env .att { display: inline-block; background: #e0f2fe; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.g-env.fold { transform: rotateX(30deg) scale(.9); }
.g-clip { font-size: 40px; }
.g-mail { width: 270px; background: #fff; color: #111; border-radius: 10px; padding: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); font-size: 12px; }
.g-mail > b { display: inline-block; background: #e0f2fe; color: #0364b8; font-family: var(--mono); padding: 2px 8px; border-radius: 6px; margin-bottom: 8px; }
.g-mail pre { margin: 0; white-space: pre-wrap; font-family: 'Plus Jakarta Sans'; }
.g-mail .hb h4 { margin: 4px 0; color: #0b5130; font-size: 14px; }
.g-mail .hb table { border-collapse: collapse; width: 100%; } .g-mail .hb th { background: #0b5130; color: #fff; } .g-mail .hb td, .g-mail .hb th { border: 1px solid #ccc; padding: 2px 6px; }
.g-mail .hb p { margin: 4px 0; } .g-mail .sig { color: #c2410c; }
.uf .g-wb { background: #ece9e1; } .uf .g-wt { background: #2b4f81; }
.ufl { position: absolute !important; left: 14px; font-size: 12px; color: #111; }
.uft { position: absolute !important; left: 70px; width: 160px; height: 24px; background: #fff; border: 1px solid #7a7a7a; font-size: 12px; padding: 2px 6px; color: #111; }
.uft.cb::after { content: '▾'; position: absolute; right: 4px; color: #555; }
.ufdd { position: absolute !important; left: 70px; top: 78px; width: 160px; background: #fff; border: 1px solid #555; color: #111; display: flex; flex-direction: column; font-size: 12px; z-index: 3; }
.ufdd span { padding: 2px 6px; } .ufdd span.hl { background: #0b6bd3; color: #fff; }
.ufb { position: absolute !important; left: 70px; width: 100px; padding: 6px; text-align: center; background: linear-gradient(#fafafa, #e1e1e1); border: 1px solid #777; color: #111; font-size: 12px; }
.ufb.down { background: #cfcfcf; }
.g-win.fade { opacity: 0 !important; transform: scale(.85) !important; }
.dotx { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .5; }

/* ===== Workspace (VBE + Excel) ===== */
.ws { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--vbe); color: var(--vbe-ink); box-shadow: var(--shadow); font-size: 14px; container-type: inline-size; }
.ws-head { background: var(--vbe); border-bottom: 1px solid color-mix(in srgb, var(--vbe-ink) 18%, transparent); }
.ws-menu { display: flex; gap: 2px; padding: 4px 8px 0; font-size: 13px; }
.ws-menu > span { padding: 4px 10px; border-radius: 6px; cursor: default; position: relative; color: color-mix(in srgb, var(--vbe-ink) 70%, transparent); }
.ws-ins { cursor: pointer !important; color: var(--vbe-ink) !important; font-weight: 600; }
.ws-ins:hover, .ws-ins.open { background: color-mix(in srgb, #0b6bd3 18%, transparent); }
.no-module .ws-ins { animation: attn 1.6s infinite; background: color-mix(in srgb, #f97316 25%, transparent); }
@keyframes attn { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, #f97316 35%, transparent); } }
.ws-drop { display: none; position: absolute; top: 100%; left: 0; z-index: 20; background: var(--code-bg); border: 1px solid color-mix(in srgb, var(--vbe-ink) 25%, transparent); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); min-width: 160px; padding: 4px; border-radius: 8px; }
.ws-ins.open .ws-drop { display: grid; }
.ws-drop button { text-align: left; border: 0; background: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--code-ink); }
.ws-drop button:hover { background: #0b6bd3; color: #fff; }
.ws-tb { display: flex; gap: 6px; padding: 6px 8px 8px; flex-wrap: wrap; align-items: center; }
.tb { display: inline-flex; align-items: center; gap: 6px; border: 1px solid color-mix(in srgb, var(--vbe-ink) 18%, transparent); background: var(--code-bg); color: var(--code-ink); border-radius: 9px; padding: 6px 10px; min-height: 36px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tb:hover:not([disabled]) { border-color: var(--g); }
.tb[disabled] { opacity: .45; cursor: default; }
.tb kbd { font-size: 10.5px; padding: 0 4px; background: transparent; }
.tb.run { background: #16a34a; color: #fff; border-color: #15803d; }
.tb.run kbd { color: #fff; border-color: rgba(255, 255, 255, .5); }
.tb.stop b { color: #2563eb; }
.tb.sel select { font: inherit; border: 0; background: transparent; color: inherit; max-width: 160px; }
.tb.sel span { color: color-mix(in srgb, var(--code-ink) 60%, transparent); font-weight: 500; }
.tb.chk input { accent-color: var(--g); }
.tb.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: #dc2626; }
.tb.rec.on { background: #7f1d1d; color: #fff; } .tb.rec.on .dot { animation: blink 1s infinite; background: #fca5a5; }
.tb.ghost { background: transparent; font-weight: 500; }
.tb-gap { flex: 1; }
.ws-tabs-m { display: none; }
.ws-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 460px; }
.ws-vbe { display: grid; grid-template-columns: 170px minmax(0, 1fr); grid-template-rows: minmax(260px, 1fr) 150px; border-right: 1px solid color-mix(in srgb, var(--vbe-ink) 18%, transparent); min-width: 0; }
.ws-explorer { grid-row: 1 / 3; background: var(--code-bg); border-right: 1px solid color-mix(in srgb, var(--vbe-ink) 15%, transparent); font-size: 12.5px; overflow: auto; }
.ex-h { background: var(--vbe); padding: 4px 8px; font-weight: 600; font-size: 12px; border-bottom: 1px solid color-mix(in srgb, var(--vbe-ink) 15%, transparent); }
.ex-tree, .ex-tree ul { list-style: none; margin: 0; padding: 0 0 0 10px; }
.ex-tree { padding: 6px 4px; color: var(--code-ink); }
.ex-tree li { white-space: nowrap; line-height: 1.9; }
.ex-g { color: color-mix(in srgb, var(--code-ink) 75%, transparent); }
.ex-i.on { background: color-mix(in srgb, #0b6bd3 20%, transparent); border-radius: 4px; font-weight: 700; color: var(--code-ink); }
.ex-i.new { animation: newmod 1.4s 2; }
@keyframes newmod { 50% { background: #fde047; color: #111; } }
.ex-ic { display: inline-block; width: 16px; text-align: center; margin-right: 4px; font-size: 11px; }
.ex-ic.p { color: #7c3aed; } .ex-ic.s { color: #16a34a; } .ex-ic.m { color: #2563eb; } .ex-ic.f { color: #c2410c; }
.ws-codewrap { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--code-bg); }
.ws-codetitle { background: var(--vbe); font-size: 12px; padding: 3px 10px; border-bottom: 1px solid color-mix(in srgb, var(--vbe-ink) 15%, transparent); }
.ws-code { flex: 1; min-height: 0; position: relative; }
.ws-code .CodeMirror { position: absolute; inset: 0; height: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.55; background: var(--code-bg); color: var(--code-ink); }
.ws-ta { width: 100%; height: 100%; border: 0; resize: none; padding: 10px; font-family: var(--mono); background: var(--code-bg); color: var(--code-ink); }
.ws-insert-hint { position: absolute; inset: 28px 0 0; display: grid; place-items: center; background: color-mix(in srgb, var(--code-bg) 88%, transparent); z-index: 5; text-align: center; padding: 16px; }
.ws-insert-hint > div { background: var(--card); color: var(--ink); border: 2px dashed #f97316; border-radius: 14px; padding: 18px 22px; max-width: 320px; line-height: 1.7; }
.ws-insert-hint .pill { background: #f97316; color: #fff; }
.ws-bottom { display: flex; flex-direction: column; min-height: 0; border-top: 1px solid color-mix(in srgb, var(--vbe-ink) 18%, transparent); background: var(--code-bg); }
.ws-btabs { display: flex; gap: 2px; background: var(--vbe); padding: 3px 6px 0; }
.ws-btabs button { border: 0; background: transparent; padding: 4px 12px; font-size: 12px; border-radius: 6px 6px 0 0; cursor: pointer; color: var(--vbe-ink); }
.ws-btabs button.on { background: var(--code-bg); font-weight: 700; }
.ws-pane { flex: 1; min-height: 0; overflow: auto; }
.ws-imm { display: flex; flex-direction: column; }
.imm-out { flex: 1; overflow: auto; padding: 6px 10px; font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; color: var(--code-ink); }
.imm-in { border: 0; border-top: 1px solid color-mix(in srgb, var(--vbe-ink) 12%, transparent); padding: 6px 10px; font-family: var(--mono); font-size: 12.5px; background: transparent; color: var(--code-ink); outline: none; }
.ws-loc table { width: 100%; border-collapse: collapse; font-size: 12.5px; color: var(--code-ink); }
.ws-loc th { text-align: left; background: var(--vbe); padding: 3px 8px; font-weight: 600; position: sticky; top: 0; }
.ws-loc td { padding: 3px 8px; border-bottom: 1px solid color-mix(in srgb, var(--vbe-ink) 10%, transparent); font-family: var(--mono); }
.ws-loc .loc-proc td { font-weight: 700; font-family: inherit; }
.ws-loc .loc-sub td { color: color-mix(in srgb, var(--code-ink) 70%, transparent); }
.ws-xlwrap { min-width: 0; background: var(--xl-cell); display: flex; }
.ws-xl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ws-status { display: flex; justify-content: space-between; gap: 10px; padding: 5px 12px; font-size: 12.5px; background: #217346; color: #fff; }
.st-rec { font-weight: 700; animation: blink 1.2s infinite; }
.ws[data-state="paused"] .ws-status { background: #a16207; }
.ws[data-state="running"] .ws-status { background: #1d4ed8; }
/* CodeMirror di dalam workspace */
.CodeMirror-gutters { background: var(--vbe); border-right: 1px solid color-mix(in srgb, var(--vbe-ink) 15%, transparent); }
.CodeMirror-linenumber { color: color-mix(in srgb, var(--code-ink) 45%, transparent); }
.bp-gutter { width: 18px; cursor: pointer; }
.bp-dot { width: 11px; height: 11px; border-radius: 50%; background: #b91c1c; margin: 4px 0 0 3px; }
.exec-arrow { color: #ca8a04; font-weight: 900; font-size: 12px; margin-left: 2px; }
.exec-line { background: #fde047 !important; }
.exec-line .CodeMirror-line, .exec-line .CodeMirror-line span { color: #111 !important; }
.err-line { background: color-mix(in srgb, #ef4444 28%, transparent) !important; }
.bp-line { background: color-mix(in srgb, #b91c1c 18%, transparent); }
.CodeMirror-cursor { border-left-color: var(--code-ink); }
.CodeMirror-selected { background: color-mix(in srgb, #0b6bd3 22%, transparent) !important; }
.cm-s-default .cm-keyword { color: var(--code-k); }
.cm-s-default .cm-string, pre.code .cm-string { color: var(--code-s); }
.cm-s-default .cm-comment, pre.code .cm-comment { color: var(--code-c); font-style: normal; }
.cm-s-default .cm-number, pre.code .cm-number { color: var(--code-n); }
.cm-s-default .cm-variable, .cm-s-default .cm-builtin, pre.code .cm-builtin { color: var(--code-ink); }
.cm-s-default .cm-operator { color: var(--code-ink); }
.cm-s-default .cm-variable-2, .cm-s-default .cm-atom { color: #a855f7; }
pre.code .cm-atom { color: #a855f7; }
@container (max-width: 1080px) and (min-width: 701px) {
  .ws .ws-body { grid-template-columns: 1fr; }
  .ws .ws-vbe { border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--vbe-ink) 18%, transparent); grid-template-rows: 300px 130px; }
  .ws .ws-xlwrap { min-height: 360px; }
}
@container (max-width: 700px) {
  .ws .ws-tabs-m { display: flex; background: var(--vbe); padding: 0 8px; gap: 4px; }
  .ws-tabs-m button { flex: 1; border: 0; background: transparent; padding: 9px; font-weight: 700; border-bottom: 3px solid transparent; color: var(--vbe-ink); cursor: pointer; }
  .ws-tabs-m button.on { border-color: #16a34a; }
  .ws .ws-body { grid-template-columns: 1fr; }
  .ws:not([data-view="xl"]) .ws-xlwrap { display: none; }
  .ws[data-view="xl"] .ws-vbe { display: none; }
  .ws .ws-vbe { grid-template-columns: 1fr; grid-template-rows: 330px 150px; border-right: 0; }
  .ws .ws-explorer { display: none; }
  .ws .ws-xlwrap { min-height: 420px; }
  .ws .tb kbd, .ws .tb.ghost { display: none; }
}

/* Grid Excel */
.xl { flex: 1; display: flex; flex-direction: column; min-height: 0; color: var(--xl-ink); background: var(--xl-cell); font-family: Calibri, 'Segoe UI', 'Plus Jakarta Sans', sans-serif; }
.xl-bar { display: flex; align-items: stretch; gap: 0; border-bottom: 1px solid var(--xl-line); background: var(--xl-cell); }
.xl-name { width: 86px; padding: 6px 8px; font-size: 13px; border-right: 1px solid var(--xl-line); font-family: var(--mono); white-space: nowrap; overflow: hidden; }
.xl-fx { padding: 6px 10px; color: color-mix(in srgb, var(--xl-ink) 50%, transparent); font-style: italic; border-right: 1px solid var(--xl-line); }
.xl-input { flex: 1; min-width: 0; border: 0; padding: 6px 10px; font: inherit; font-size: 14px; background: transparent; color: var(--xl-ink); outline: none; }
.xl-input:focus { box-shadow: inset 0 -2px 0 var(--xl-act); }
.xl-tools { display: flex; gap: 4px; padding: 4px 8px; border-bottom: 1px solid var(--xl-line); background: var(--xl-head); align-items: center; font-size: 12px; }
.xl-tools .ft-l { color: color-mix(in srgb, var(--xl-ink) 55%, transparent); margin-right: 4px; }
.xl-tools button { width: 30px; height: 28px; border: 1px solid var(--xl-line); background: var(--xl-cell); color: var(--xl-ink); border-radius: 6px; cursor: pointer; font-size: 13px; }
.xl-tools button:hover { border-color: var(--xl-act); }
.xl-tools .sw { background: var(--sw); }
.xl-tools .fc { color: #dc2626; font-weight: 800; text-decoration: underline 3px; }
.xl-scroll { position: relative; flex: 1; overflow: auto; min-height: 260px; max-height: 520px; outline: none; }
.xl-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.xl-macro-btn { position: absolute; pointer-events: auto; padding: 7px 16px; background: linear-gradient(#fafafa, #e3e3e3); border: 1px solid #8a8a8a; border-radius: 3px; color: #111; font-size: 13px; cursor: pointer; box-shadow: 0 2px 0 #9ca3af; animation: popin .4s; }
.xl-macro-btn:active { transform: translateY(2px); box-shadow: none; }
.xl-grid { border-collapse: separate; border-spacing: 0; font-size: 13.5px; user-select: none; table-layout: fixed; }
.xl-grid th { position: sticky; background: var(--xl-head); color: color-mix(in srgb, var(--xl-ink) 65%, transparent); font-weight: 500; font-size: 12px; border-right: 1px solid var(--xl-line); border-bottom: 1px solid var(--xl-line); padding: 2px 4px; z-index: 2; }
.xl-grid thead th { top: 0; min-width: 84px; z-index: 3; }
.xl-grid tbody th { left: 0; min-width: 40px; text-align: center; }
.xl-grid .xl-corner { left: 0; z-index: 5; min-width: 40px; }
.xl-grid th.hl { background: color-mix(in srgb, var(--xl-act) 22%, var(--xl-head)); color: var(--xl-act); font-weight: 700; }
.xl-grid td { height: 25px; max-width: 160px; min-width: 84px; padding: 0 6px; border-right: 1px solid var(--xl-line); border-bottom: 1px solid var(--xl-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--xl-cell); cursor: cell; }
.xl-grid td.num { text-align: right; }
.xl-grid td.err { color: #dc2626; }
.xl-grid td.sel { background-image: linear-gradient(var(--xl-sel), var(--xl-sel)); }
.xl-grid td.act { box-shadow: inset 0 0 0 2px var(--xl-act); }
.xl-grid td.flash { animation: flash .9s ease-out; }
@keyframes flash { 0% { background-color: #fde047; } 100% { } }
.xl-charts { display: flex; gap: 10px; flex-wrap: wrap; padding: 10px; border-top: 1px solid var(--xl-line); background: var(--xl-head); }
.xl-charts[hidden] { display: none; }
.xl-chart { margin: 0; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); width: min(460px, 100%); }
.xl-chart svg { display: block; width: 100%; height: auto; }
.ch-title { font: 700 15px 'Plus Jakarta Sans', sans-serif; fill: #111; }
.ch-axis, .ch-lbl { font: 11px 'Plus Jakarta Sans', sans-serif; fill: #555; }
.ch-grid { stroke: #e5e7eb; }
.ch-empty { font: 13px sans-serif; fill: #888; }
.ch-bar { animation: grow .7s cubic-bezier(.3, 1.2, .5, 1) backwards; transform-origin: bottom; transform-box: fill-box; }
@keyframes grow { from { transform: scaleY(0); } }
.ch-line { stroke-dasharray: 1200; animation: draw 1.2s ease-out; }
@keyframes draw { from { stroke-dashoffset: 1200; } }
.xl-tabs { display: flex; gap: 2px; padding: 0 8px; background: var(--xl-head); border-top: 1px solid var(--xl-line); }
.xl-tabs button { border: 0; background: transparent; padding: 6px 14px; font-size: 12.5px; color: var(--xl-ink); cursor: pointer; border-bottom: 3px solid transparent; }
.xl-tabs button.on { background: var(--xl-cell); color: var(--xl-act); font-weight: 700; border-bottom-color: var(--xl-act); }

/* ===== Dialog ===== */
#dlg-layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.dlg-back { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(10, 20, 15, .28); pointer-events: auto; animation: fadein .15s; }
.dlg-back.out { opacity: 0; transition: opacity .15s; }
@keyframes fadein { from { opacity: 0; } }
.win { background: #fff; color: #111; border-radius: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); min-width: 280px; max-width: min(520px, 100%); font-family: 'Segoe UI', 'Plus Jakarta Sans', sans-serif; font-size: 14px; overflow: hidden; border: 1px solid #c8c8c8; }
.win.pop { animation: popin .28s cubic-bezier(.3, 1.5, .5, 1); }
.win-title { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px 8px 14px; font-size: 13px; }
.win-x { border: 0; background: none; width: 34px; height: 30px; cursor: pointer; border-radius: 4px; color: #333; }
.win-x:hover { background: #e81123; color: #fff; }
.win-body { padding: 0; }
.mb { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px 18px; }
.mb-text { white-space: pre-wrap; word-break: break-word; line-height: 1.5; padding-top: 4px; }
.ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; }
.ic-info { background: #0b6bd3; font-style: italic; font-family: Georgia, serif; } .ic-q { background: #0b6bd3; } .ic-crit { background: #e81123; } .ic-warn { background: #f7b500; color: #111; border-radius: 4px; clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 8px; }
.win-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; background: #f0f0f0; }
.win-btns button, .ib-side button { min-width: 84px; padding: 6px 14px; border: 1px solid #adadad; background: #e1e1e1; border-radius: 3px; cursor: pointer; font-size: 13px; color: #111; }
.win-btns button.def, .ib-side button.def { border: 2px solid #0b6bd3; }
.win-btns button:hover:not([disabled]), .ib-side button:hover { background: #e5f1fb; border-color: #0b6bd3; }
.win-btns button[disabled] { color: #999; }
.err-hint { margin: 0 20px 14px; padding: 10px 12px; background: #fff7e6; border: 1px solid #fcd34d; border-radius: 8px; font-size: 13.5px; color: #4a3400; }
.vbaerr .win-title { background: #fff; }
.ib { display: flex; gap: 14px; padding: 12px 16px; }
.ib .mb-text { flex: 1; min-height: 60px; }
.ib-side { display: flex; flex-direction: column; gap: 8px; }
.ib-in { display: block; width: calc(100% - 32px); margin: 0 16px 16px; padding: 6px 8px; border: 1px solid #7a7a7a; font: inherit; color: #111; background: #fff; }
.uform { background: #ece9e1; }
.uform .win-title { background: #fff; }
.uf-body { position: relative; }
.uf-label { position: absolute; font-size: 13px; color: #111; }
.uf-text, .uf-combo input { position: absolute; height: 26px; border: 1px solid #7a7a7a; padding: 2px 6px; font: 13px 'Segoe UI', sans-serif; background: #fff; color: #111; }
.uf-combo { position: absolute; } .uf-combo input { position: static; width: 100%; height: 26px; }
.uf-btn { position: absolute; border: 1px solid #adadad; background: #e1e1e1; font-size: 13px; cursor: pointer; color: #111; }
.uf-btn:hover { background: #e5f1fb; border-color: #0b6bd3; }
.uf-check { position: absolute; font-size: 13px; color: #111; }
.assign .win-body { padding: 10px 16px 0; }
.am-l { margin: 0 0 4px; font-size: 13px; }
.am-list { list-style: none; margin: 0 0 10px; padding: 4px; border: 1px solid #7a7a7a; max-height: 160px; overflow: auto; }
.am-list label { display: flex; gap: 8px; padding: 3px 4px; cursor: pointer; font-size: 13px; }
.am-cap { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 12px; }
.am-cap input { flex: 1; padding: 4px 6px; border: 1px solid #7a7a7a; }
.assign .win-btns { margin: 0 -16px; }
.dlg-back.wide .win { max-width: min(720px, 100%); width: 100%; }
.mailwin { width: 100%; }
.mail-title { background: #0364b8; color: #fff; } .mail-title .win-x { color: #fff; }
.mail-ribbon { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: #f3f2f1; font-weight: 600; font-size: 13px; border-bottom: 1px solid #ddd; }
.mail-ribbon small { color: #777; font-weight: 400; }
.ol-logo { width: 22px; height: 22px; border-radius: 4px; background: #0364b8; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.mail-head { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e5e5e5; }
.mail-send { width: 72px; flex: none; border: 1px solid #c8c8c8; background: #fff; border-radius: 4px; cursor: pointer; font-weight: 700; color: #0364b8; }
.mail-send.done { background: #dcfce7; color: #166534; }
.mail-fields { flex: 1; display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; font-size: 13.5px; min-width: 0; }
.mail-fields label { color: #555; } .mail-fields div { border-bottom: 1px solid #eee; padding-bottom: 3px; word-break: break-all; }
.att { display: inline-block; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 2px 8px; margin: 0 6px 4px 0; font-size: 12.5px; }
.mail-body { padding: 0; }
.mail-html { width: 100%; height: 280px; border: 0; display: block; background: #fff; }
.mail-plain { margin: 0; padding: 14px; font: 14px Calibri, Arial, sans-serif; white-space: pre-wrap; min-height: 160px; color: #222; }
.plane { position: absolute; font-size: 40px; color: #0364b8; left: 40%; top: 40%; animation: plane 1s ease-in forwards; pointer-events: none; }
.mailwin { position: relative; }
@keyframes plane { to { transform: translate(300px, -260px) rotate(-20deg) scale(.4); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: #132018; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: 14px; max-width: calc(100% - 32px); animation: toastin .3s cubic-bezier(.3, 1.4, .5, 1); }
.toast.out { opacity: 0; transform: translate(-50%, 10px); transition: all .3s; }
@keyframes toastin { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ===== Ujian ===== */
.exam { padding-block: 28px; }
.exam-intro { padding: 28px; max-width: 760px; margin: 0 auto; }
.exam-intro ul { padding-left: 20px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.rules div { background: var(--line2); border-radius: 12px; padding: 14px; text-align: center; }
.rules b { display: block; font-size: 26px; color: var(--g); }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }
.exam-run { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
@media (max-width: 900px) { .exam-run { grid-template-columns: minmax(0, 1fr); } }
.exam-bar { position: sticky; top: 64px; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; margin-bottom: 14px; }
.timer { font-family: var(--mono); font-weight: 700; font-size: 20px; padding: 4px 12px; border-radius: 10px; background: var(--g-soft); color: var(--g); }
.timer.low { background: var(--no-bg); color: var(--no); animation: blink 1s infinite; }
.qbox { padding: 24px; }
.qbox .qn { color: var(--mut); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.qbox .qq { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.qbox pre.code { border-radius: 12px; border: 1px solid var(--line); margin-bottom: 16px; }
.qnav { padding: 16px; align-self: start; position: sticky; top: 132px; }
.qnav h4 { margin: 0 0 10px; font-size: 14px; }
.qdots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.qdots button { aspect-ratio: 1; border-radius: 9px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 13px; cursor: pointer; }
.qdots button.ans { background: var(--g); border-color: var(--g); color: #fff; }
.qdots button.cur { box-shadow: 0 0 0 3px var(--o); }
.qdots button.flag { border-color: var(--o); border-width: 3px; }
.qnav .leg { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--mut); margin-top: 12px; }
.result { text-align: center; padding: 36px 24px; max-width: 640px; margin: 0 auto; }
.result .big { --p: 0; width: 170px; height: 170px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--g)) calc(var(--p) * 1%), var(--line2) 0); }
.result .big span { width: 136px; height: 136px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 44px; font-weight: 800; }
.weak { text-align: left; background: var(--line2); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.confetti { position: fixed; top: -20px; z-index: 300; width: 10px; height: 14px; pointer-events: none; animation: conf 2.6s linear forwards; }
@keyframes conf { to { transform: translateY(110vh) rotate(720deg); } }

/* ===== Sertifikat ===== */
.cert-page { padding-block: 28px; }
.cert-prev { width: 100%; max-width: 980px; margin: 0 auto; display: block; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); background: #fff; }
.cert-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 20px 0; }
.lockbox { max-width: 620px; margin: 30px auto; padding: 32px; text-align: center; }
.lockbox .ic { width: 64px; height: 64px; font-size: 30px; margin: 0 auto 12px; background: var(--line2); color: var(--ink); }
.empty { text-align: center; color: var(--mut); padding: 40px 0; }

/* ===== Pembayaran & akses ===== */
.paybanner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: var(--o-soft); border: 1px solid color-mix(in srgb, var(--o) 35%, transparent); margin: 6px 0 20px; }
.paybanner.wait { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.paybanner.trial { background: var(--g-soft); border-color: color-mix(in srgb, var(--g) 30%, transparent); }
.paybanner > div { flex: 1; min-width: 220px; }
.lcard.locked { opacity: .62; }
.lcard.locked:hover { opacity: .9; }
.toc a.locked { color: var(--mut); }
.toc a.locked i { border: 0; }
.pay { padding-block: 28px; }
.pay-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
@media (max-width: 860px) { .pay-grid { grid-template-columns: minmax(0, 1fr); } }
.pay-amt { padding: 24px; position: sticky; top: 80px; }
@media (max-width: 860px) { .pay-amt { position: static; } }
.pay-amt .amt, .price .amt { font-family: var(--mono); font-size: clamp(30px, 5vw, 42px); font-weight: 800; color: var(--ink); margin: 6px 0 12px; letter-spacing: -.02em; }
.pay-amt .amt .u { color: var(--o); background: var(--o-soft); border-radius: 8px; padding: 0 4px; }
.pay-amt p { margin: 12px 0 0; font-size: 14.5px; }
.pay-methods { display: grid; gap: 14px; }
.pm { padding: 20px; }
.pm h3 { margin: 0 0 6px; font-size: 17px; }
.pm p { font-size: 14.5px; }
.bank { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line2); }
.bank .no { font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: .03em; }
.bank small { color: var(--mut); }
.qris { display: block; width: min(280px, 100%); border-radius: 12px; border: 1px solid var(--line); background: #fff; margin-top: 6px; }
.pay-confirm { padding: 22px; }
.pay-confirm h3 { margin-top: 0; }
.grid-cf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 14px; }
@media (max-width: 640px) { .grid-cf { grid-template-columns: minmax(0, 1fr); } }
.field select { font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-height: 46px; }
.field input[type=file] { padding: 9px; }
.price-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; margin-bottom: 30px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price { padding: 24px; }
.price ul { padding-left: 20px; color: var(--mut); margin: 0 0 18px; }
.price li { margin-bottom: 6px; }
.price .cert-prev { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
