/* =========================================================
   TTX Cyber Crisis: tema teal & emas (terinspirasi palet bank syariah)
   ========================================================= */
:root {
  --t900: #053c3a; --t800: #06504d; --t700: #007770; --t500: #00a199; --t200: #a9e3df; --t100: #d8f3f1; --t50: #f0faf9;
  --gold: #f6a21e; --gold-d: #9a5f00; --gold-bg: #fff3da;
  --ink: #10292b; --muted: #587073; --paper: #eef5f5; --panel: #ffffff; --line: #d3e2e2;
  --red: #c8372d; --green: #0b7a52; --blue: #0b6fb8; --amber: #9a5f00;
  --good-bg: #e1f5ec; --bad-bg: #fbe7e4; --miss-bg: #fff3da;
  --radius: 14px; --shadow: 0 1px 2px rgba(5, 60, 58, .06), 0 10px 28px rgba(5, 60, 58, .08);
  --font: "Plus Jakarta Sans", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e3f1f0; --muted: #93b0ae; --paper: #07191a; --panel: #0d2626; --line: #1d3e3d;
    --t50: #0f2f2e; --t100: #14403e; --t700: #2bc2b8; --good-bg: #10382b; --bad-bg: #3b1f1d; --miss-bg: #3a2b0c;
    --gold-bg: #3a2b0c; --gold-d: #f6b84a; --red: #ff8d83; --green: #6fd0a2; --shadow: 0 10px 28px rgba(0, 0, 0, .35); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
p { margin: 0 0 .75rem; }
a { color: var(--t700); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); font-size: .88rem; }
.eyebrow { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--t700); margin-bottom: .45rem; }
.lead { font-size: 1.05rem; }

/* buttons & inputs */
.btn { font: inherit; font-weight: 700; padding: .6rem 1.1rem; border-radius: 10px; border: 1.5px solid var(--t700); background: transparent; color: var(--t700); cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s; }
.btn:hover { background: var(--t50); }
.btn.primary { background: linear-gradient(135deg, #007770, #00a199); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(0, 119, 112, .28); }
.btn.primary:hover { transform: translateY(-1px); background: linear-gradient(135deg, #00867e, #00b3aa); }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.lg { padding: .85rem 1.5rem; font-size: 1.02rem; } .btn.sm { padding: .4rem .8rem; font-size: .85rem; } .btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
input, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1.5px solid var(--line); border-radius: 10px; padding: .65rem .8rem; width: 100%; transition: border-color .12s, box-shadow .12s; }
input:focus, textarea:focus { outline: none; border-color: var(--t500); box-shadow: 0 0 0 4px rgba(0, 161, 153, .18); }
textarea { resize: vertical; min-height: 7rem; }
.field { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 1rem; } .field input { margin-top: .35rem; font-weight: 400; }
.form-error { color: var(--red); font-weight: 700; background: var(--bad-bg); padding: .5rem .8rem; border-radius: 8px; }
.tablewrap { overflow-x: auto; margin: .6rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* ---------- auth ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-hero { position: relative; color: #e6f6f5; padding: 2.5rem clamp(1.5rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background: radial-gradient(900px 500px at 90% -10%, rgba(246, 162, 30, .22), transparent 60%), linear-gradient(160deg, #053c3a, #06504d 60%, #007770); overflow: hidden; }
.auth-hero::before, .side::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 4l7 16 16-7-7 16 16 7-16 7 7 16-16-7-7 16-7-16-16 7 7-16-16-7 16-7-7-16 16 7z' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E"); }
.auth-hero > * { position: relative; }
.brand { display: flex; gap: .8rem; align-items: center; } .brand b { display: block; font-size: 1.05rem; letter-spacing: -.01em; } .brand small { color: #a7d6d3; }
.mark { width: 2.7rem; height: 2.7rem; flex: none; }
.hero-copy h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 1rem 0; max-width: 18ch; color: #fff; }
.hero-copy p { color: #bfe3e0; max-width: 46ch; font-size: 1.05rem; }
.exercise-tag { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: #ffd48a; border: 1.5px solid rgba(246, 162, 30, .6); padding: .2rem .75rem; border-radius: 99px; background: rgba(246, 162, 30, .1); }
.how { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.how li { counter-increment: s; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: .8rem .9rem; }
.how li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--gold); color: #3b2500; font-weight: 800; font-size: .8rem; margin-bottom: .35rem; }
.how b { display: block; } .how span { color: #a7d6d3; font-size: .86rem; }
.auth-panel { display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.6rem; font-weight: 800; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--t50); border-radius: 12px; padding: .25rem; margin-bottom: 1.4rem; }
.seg > * { text-align: center; padding: .5rem; border-radius: 9px; font-weight: 700; text-decoration: none; color: var(--muted); }
.seg .on { background: var(--panel); color: var(--t700); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: -.4rem 0 1rem; } .chips small { color: var(--muted); }
.chip-btn { font: inherit; font-size: .82rem; font-weight: 700; border: 1.5px solid var(--t200); background: var(--t50); color: var(--t700); border-radius: 99px; padding: .15rem .75rem; cursor: pointer; }
.roles { border: 0; padding: 0; margin: 0 0 1.25rem; } .roles legend { font-weight: 700; font-size: .9rem; margin-bottom: .5rem; padding: 0; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role span { display: flex; gap: .55rem; align-items: center; padding: .55rem .65rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .84rem; font-weight: 600; line-height: 1.25; transition: all .12s; height: 100%; }
.role i { font-style: normal; flex: none; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 8px; background: var(--t100); color: var(--t700); font-weight: 800; font-size: .72rem; }
.role span:hover { border-color: var(--t500); }
.role input:checked + span { border-color: var(--t500); background: var(--t50); box-shadow: 0 0 0 3px rgba(0, 161, 153, .2); }
.role input:checked + span i { background: var(--t700); color: #fff; }
.role input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 296px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem 1.1rem; color: #d6efed;
  background: linear-gradient(185deg, #053c3a, #06504d); }
.side > * { position: relative; }
.side a { color: #bfe6e3; }
.usercard { display: flex; gap: .75rem; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: .7rem; }
.usercard b { display: block; color: #fff; } .usercard small { display: block; color: #a7d6d3; font-size: .8rem; line-height: 1.3; }
.avatar-l { width: 2.7rem; height: 2.7rem; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 800; color: #3b2500; background: linear-gradient(135deg, #f6a21e, #ffd27d); }
.side-label { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7fbfbb; margin: 0 .3rem .5rem; }
.missions { display: flex; flex-direction: column; gap: .4rem; }
.mission { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; font: inherit; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: .6rem .65rem; cursor: pointer; }
button.mission:hover { background: rgba(255, 255, 255, .07); }
.mission.on { background: rgba(255, 255, 255, .13); border-color: rgba(246, 162, 30, .55); }
.mission.locked { opacity: .45; border: 1px dashed rgba(255, 255, 255, .25); }
.m-badge { flex: none; min-width: 3rem; text-align: center; padding: .15rem .4rem; border-radius: 8px; font-weight: 800; font-size: .85rem; background: rgba(255, 255, 255, .12); color: #fff; font-variant-numeric: tabular-nums; }
.mission.on .m-badge { background: var(--gold); color: #3b2500; }
.m-text { flex: 1; min-width: 0; } .m-text b { display: block; font-size: .88rem; line-height: 1.25; color: #fff; } .m-text small { color: #8fcac6; font-size: .76rem; }
.m-state { flex: none; width: .65rem; height: .65rem; border-radius: 50%; } .m-state.pulse { background: var(--gold); animation: pulse 1.8s infinite; }
.m-state.ok { width: auto; height: auto; color: #5ee0a8; font-weight: 800; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(246, 162, 30, .6); } 70% { box-shadow: 0 0 0 8px rgba(246, 162, 30, 0); } 100% { box-shadow: 0 0 0 0 rgba(246, 162, 30, 0); } }
.side-stats { display: grid; gap: .8rem; margin-top: auto; }
.prog-top { display: flex; justify-content: space-between; font-size: .8rem; color: #a7d6d3; margin-bottom: .35rem; } .prog-top b { color: #fff; }
.meter { height: .5rem; border-radius: 99px; background: rgba(0, 0, 0, .12); overflow: hidden; } .side .meter { background: rgba(255, 255, 255, .15); }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--t500), var(--gold)); transition: width .4s; }
.score { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 .6rem; background: rgba(246, 162, 30, .12); border: 1px solid rgba(246, 162, 30, .35); border-radius: 12px; padding: .6rem .8rem; }
.score span { grid-column: 1 / -1; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffd48a; }
.score b { font-size: 1.6rem; color: #fff; line-height: 1.1; } .score small { color: #a7d6d3; }
.side-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .82rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: .9rem; }
.side-foot.col { flex-direction: column; align-items: stretch; margin-top: auto; } .sidelink { text-decoration: none; font-weight: 700; padding: .45rem 0; }
.side-foot .btn.ghost { border-color: rgba(255, 255, 255, .25); } .side-foot .danger { color: #ffb4a8; border-color: rgba(255, 180, 168, .5); }
#save-state.ok { color: #5ee0a8; } #save-state.err { color: #ffb4a8; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.stat-grid div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: .55rem .75rem; }
.stat-grid b { display: block; font-size: 1.4rem; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; } .stat-grid span { font-size: .75rem; color: #a7d6d3; }
.navbtn { display: flex; align-items: center; gap: .7rem; width: 100%; font: inherit; font-weight: 700; color: #d6efed; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: .6rem .7rem; margin-bottom: .3rem; cursor: pointer; text-align: left; }
.navbtn i { font-style: normal; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: .8rem; }
.navbtn:hover { background: rgba(255, 255, 255, .07); } .navbtn.on { background: rgba(255, 255, 255, .13); border-color: rgba(246, 162, 30, .55); } .navbtn.on i { background: var(--gold); color: #3b2500; }

.mainwrap { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .8rem; padding: .7rem 1.5rem; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.crumb { flex: 1; color: var(--muted); font-weight: 600; } .crumb span { margin: 0 .25rem; opacity: .5; } .crumb b { color: var(--ink); }
.menu-btn { display: none; font-size: 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .3rem .7rem; color: var(--ink); cursor: pointer; }
.live { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; color: var(--green); background: var(--good-bg); padding: .2rem .7rem; border-radius: 99px; }
.live i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; } .live.off { color: var(--red); background: var(--bad-bg); }
.content { width: 100%; max-width: 1040px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }

/* inject header, tabs */
.inj-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.stamp { font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; padding: .15rem .8rem; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #007770, #00a199); box-shadow: 0 6px 14px rgba(0, 119, 112, .25); }
.stamp.sm { font-size: .85rem; padding: .05rem .55rem; border-radius: 8px; box-shadow: none; }
.ih-text { flex: 1 1 16rem; min-width: 0; } .ih-text h1, .ih-text h3 { margin: 0; } .ih-text h1 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; }
.sub, .ih-text small { color: var(--muted); font-size: .86rem; margin: 0; display: block; }
.tag { font-size: .76rem; font-weight: 800; padding: .2rem .75rem; border-radius: 99px; background: var(--gold-bg); color: var(--gold-d); border: 1px solid rgba(246, 162, 30, .5); }
.tag.done { background: var(--good-bg); color: var(--green); border-color: rgba(11, 122, 82, .4); }
.tabs { display: flex; gap: .3rem; overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .3rem; margin-bottom: 1.1rem; box-shadow: var(--shadow); }
.tab { flex: 1 0 auto; font: inherit; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 10px; padding: .55rem 1rem; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); background: var(--t50); } .tab.on { background: var(--t700); color: #fff; }
.tab .ok { font-style: normal; margin-left: .4rem; color: #5ee0a8; } .tab:not(.on) .ok { color: var(--green); }
.panel { display: flex; flex-direction: column; gap: 1rem; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.quest { background: linear-gradient(135deg, var(--t50), var(--panel)); border-left: 5px solid var(--gold); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.steps li { counter-increment: s; } .steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--t700); color: #fff; font-weight: 800; font-size: .8rem; margin-bottom: .35rem; }
.steps b { display: block; } .steps span { color: var(--muted); font-size: .88rem; }
.tip { color: var(--muted); font-size: .88rem; }
.pager { display: flex; justify-content: space-between; margin-top: 1.25rem; }

/* checklist cards */
.check-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .6rem; } .check-head h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.hint { color: var(--muted); font-size: .88rem; margin: 0; }
.count { flex: none; font-size: .78rem; font-weight: 800; color: var(--t700); background: var(--t100); padding: .2rem .7rem; border-radius: 99px; }
.opt { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem .75rem; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: .45rem; cursor: pointer; transition: all .12s; }
.opt:hover { border-color: var(--t500); background: var(--t50); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .12rem; border: 2px solid var(--muted); border-radius: 6px; display: grid; place-items: center; transition: all .12s; }
.opt input:checked + .box { background: var(--t700); border-color: var(--t700); } .opt input:checked + .box::after { content: "✓"; color: #fff; font-size: .8rem; font-weight: 800; line-height: 1; }
.opt:has(input:checked) { border-color: var(--t500); background: var(--t50); }
.opt input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt:has(input:disabled) { cursor: default; }
.optText { flex: 1; min-width: 0; } .why { display: block; font-style: normal; color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.pts { flex: none; font-weight: 800; font-size: .85rem; padding: .05rem .5rem; border-radius: 8px; background: var(--line); color: var(--muted); } .pts.p { background: var(--good-bg); color: var(--green); } .pts.n { background: var(--bad-bg); color: var(--red); }
.opt.good { border-color: var(--green); background: var(--good-bg); } .opt.bad { border-color: var(--red); background: var(--bad-bg); }
.opt.missed { border-color: var(--gold); border-style: dashed; background: var(--miss-bg); } .opt.dim { opacity: .55; }
.opt.good input:checked + .box { background: var(--green); border-color: var(--green); } .opt.bad input:checked + .box { background: var(--red); border-color: var(--red); }

/* discussion */
.q label { display: block; margin-bottom: .6rem; } .qtext { display: block; font-weight: 700; font-size: 1.05rem; }
.cc { display: block; text-align: right; color: var(--muted); font-size: .8rem; margin-top: .3rem; }

/* debrief */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); }
.tile span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .tile b { display: block; font-size: 2rem; line-height: 1.15; } .tile small { color: var(--muted); }
.tile.gold { background: var(--gold-bg); border-color: rgba(246, 162, 30, .5); } .tile.gold b { color: var(--gold-d); }
.notes { margin: 0; padding-left: 1.2rem; } .notes li { margin-bottom: .45rem; }

/* waiting, toast */
.waiting { text-align: center; padding: 5rem 1rem; max-width: 460px; margin: 0 auto; } .waiting p { color: var(--muted); }
.radar { position: relative; width: 6rem; height: 6rem; margin: 0 auto 1.5rem; }
.radar i { position: absolute; inset: 0; border: 2px solid var(--t500); border-radius: 50%; opacity: 0; animation: ping 3s infinite; } .radar i:nth-child(2) { animation-delay: 1s; } .radar i:nth-child(3) { animation-delay: 2s; }
.radar::after { content: ""; position: absolute; inset: 2.3rem; border-radius: 50%; background: var(--gold); }
@keyframes ping { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.2); opacity: 0; } }
.toasts { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; display: flex; flex-direction: column; gap: .6rem; max-width: min(380px, calc(100vw - 2.5rem)); }
.toast { background: #053c3a; color: #fff; padding: .8rem 1rem; border-radius: 12px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); border-left: 5px solid var(--t500); animation: rise .3s ease; transition: opacity .5s; }
.toast.alert { border-left-color: var(--gold); } .toast.ok { border-left-color: #5ee0a8; } .toast.out { opacity: 0; }
.empty { padding: 2.5rem; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- facilitator ---------- */
.ctl-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; background: linear-gradient(135deg, var(--t50), var(--panel)); border-left: 5px solid var(--gold); }
.ctl-hero h2 { font-size: 1.5rem; margin: 0 0 .2rem; } .ctl-hero p { margin: 0; color: var(--muted); } .btnrow { display: flex; flex-wrap: wrap; gap: .5rem; }
.step { margin-bottom: 1rem; } .step.lock { opacity: .6; } .step header { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
details summary { cursor: pointer; font-weight: 700; color: var(--t700); padding-top: .8rem; }
.keybox { padding-top: .5rem; } .keyhead { font-weight: 800; margin: 1rem 0 .3rem; font-size: .9rem; }
.keylist { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.keylist li { display: flex; gap: .6rem; padding: .35rem .6rem; border-radius: 8px; margin-bottom: .2rem; } .keylist li small { display: block; color: var(--muted); }
.keylist .good { background: var(--good-bg); } .keylist .bad { background: var(--bad-bg); } .keylist b { flex: none; min-width: 1.6rem; }
.rank { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .9rem .6rem; border-top: 1px solid var(--line); }
.pos { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--t100); color: var(--t700); }
.r1 .pos { background: linear-gradient(135deg, #f6a21e, #ffd27d); color: #3b2500; } .r2 .pos { background: #dfe6e6; color: #354; } .r3 .pos { background: #f0d3b8; color: #5a3411; }
.rk-main { flex: 1 1 14rem; min-width: 0; } .rk-main small { display: block; color: var(--muted); } .rk-main .meter { background: var(--line); margin-top: .4rem; }
.rk-chips { display: flex; gap: .4rem; flex-wrap: wrap; } .chipx { text-align: center; background: var(--t50); border: 1px solid var(--line); border-radius: 10px; padding: .1rem .6rem; font-weight: 800; } .chipx small { display: block; font-weight: 600; font-size: .68rem; color: var(--muted); }
.rk-score { text-align: right; } .rk-score b { font-size: 1.7rem; } .rk-score small { color: var(--muted); }
.team-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.team-list { position: sticky; top: 4.5rem; display: flex; flex-direction: column; gap: .5rem; }
.team-pick { text-align: left; font: inherit; background: var(--panel); border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .85rem; cursor: pointer; color: var(--ink); } .team-pick small { display: block; color: var(--muted); } .team-pick .meter { background: var(--line); margin-top: .4rem; }
.team-pick.on { border-color: var(--t500); background: var(--t50); box-shadow: 0 0 0 3px rgba(0, 161, 153, .18); }
.team-detail { display: flex; flex-direction: column; gap: 1rem; min-width: 0; } .team-head h2 { margin: 0; }
.gradebox { margin: .8rem 0 1.2rem; } .gradebox .qtext { font-size: .95rem; }
blockquote { margin: .3rem 0 .6rem; padding: .6rem .9rem; border-left: 4px solid var(--t500); background: var(--t50); border-radius: 0 10px 10px 0; white-space: pre-wrap; }
.gradeline { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; } .gradeline label { font-size: .82rem; font-weight: 700; } .gradeline label:first-child { width: 7rem; } .gradeline input { margin-top: .25rem; font-weight: 400; } .grow { flex: 1 1 14rem; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; } .auth-hero { padding: 1.5rem; } .how, .hero-copy p { display: none; } .hero-copy h1 { font-size: 1.7rem; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform .25s; box-shadow: 10px 0 30px rgba(0, 0, 0, .35); }
  .side.open { transform: none; } .menu-btn { display: block; }
  .topbar { padding: .6rem 1rem; } .content { padding: 1rem 1rem 3rem; }
  .grid2, .steps, .tiles { grid-template-columns: 1fr; } .team-layout { grid-template-columns: 1fr; } .team-list { position: static; flex-direction: row; overflow-x: auto; } .team-pick { min-width: 11rem; }
  .role-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }


/* evidence: realistic dark skins (selalu gelap, tidak mengikuti tema halaman) */
.evidence { margin: 1.5rem 0; }
.evidence figcaption { font-weight: 700; font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.frame { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid #000; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); font-size: .88rem; line-height: 1.45; color: #d7dbe2; background: #0d1117; }
.frame::after { content: "FOR EXERCISE ONLY"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 3.2rem; letter-spacing: .1em; color: rgba(255, 255, 255, .05); transform: rotate(-20deg); pointer-events: none; white-space: nowrap; }
.frame p { max-width: none; }
.frame h4, .frame h5 { color: inherit; }
.frame table { font-size: .82rem; }
.frame th, .frame td { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.frame .tablewrap { position: relative; z-index: 1; }
.dots { display: flex; gap: .35rem; } .dots i { width: .7rem; height: .7rem; border-radius: 50%; background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.wchrome { display: flex; align-items: center; gap: .6rem; background: #1b1d22; padding: .4rem .7rem; border-bottom: 1px solid #000; font-size: .76rem; color: #9aa0ab; }
.wtab { background: #2a2d34; padding: .15rem .7rem; border-radius: 5px 5px 0 0; white-space: nowrap; }
.wurl { flex: 1; min-width: 0; background: #101216; border-radius: 12px; padding: .1rem .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-disc { position: relative; z-index: 1; text-align: center; font-size: .74rem; color: #8b94a3; padding: .6rem 1rem; border-top: 1px solid rgba(255, 255, 255, .08); }

/* forum dark web */
.forum { background: #14090b; color: #e5d6d6; }
.f-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem 1rem; background: linear-gradient(#5b1218, #3b0c10); border-bottom: 2px solid #8a1c24; }
.f-logo b { font-size: 1.15rem; color: #fff; }
.f-auth span { display: inline-block; padding: .2rem .7rem; border: 1px solid #a33; margin-left: .4rem; border-radius: 4px; font-size: .8rem; }
.f-auth .reg { background: #b3262e; color: #fff; border-color: #b3262e; }
.f-nav { display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem 1rem; background: #1d0d10; }
.f-nav span { padding: .2rem .7rem; background: #2a1316; border-radius: 4px; color: #cbb; font-size: .8rem; }
.f-nav .here { color: #fff; border: 1px solid #6b1b22; }
.f-post { position: relative; z-index: 1; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); margin: 1rem; border: 1px solid #3a1a1e; background: #1a0e10; }
.f-user { padding: 1rem .7rem; display: flex; flex-direction: column; align-items: center; gap: .25rem; background: #160a0c; border-right: 1px solid #3a1a1e; }
.avatar { width: 5rem; height: 5rem; image-rendering: pixelated; border-radius: 4px; }
.uname { color: #f2c230; } .f-user small { color: #cbb; }
.rep { display: flex; justify-content: space-between; width: 100%; margin-top: .6rem; background: #241015; padding: .15rem .45rem; font-size: .78rem; } .rep b { color: #4ade80; }
.f-main { padding: 1rem 1.2rem; min-width: 0; } .f-main h4 { font-size: 1.15rem; color: #fff; } .f-main p { color: #d9c9cb; font-size: .85rem; }
.f-date { text-align: right; color: #9a8588; font-size: .76rem; }
.ftable th { color: #e8d3d6; background: #2b1115; text-align: left; }
.ftable tbody tr:nth-child(odd) td { background: #2a1013; }
.ftable .on { color: #7ddf9f; } .ftable .off { color: #ff9a90; }

/* email (gaya Outlook dark) */
.mailapp { background: #1f1f1f; }
.m-top { display: flex; gap: 1rem; align-items: center; padding: .45rem .8rem; background: #141414; }
.m-search { flex: 0 1 18rem; background: #2a2a2a; color: #888; border-radius: 4px; padding: .1rem .7rem; font-size: .78rem; }
.m-tool { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: .45rem .8rem; background: #292929; border-bottom: 1px solid #111; color: #bbb; font-size: .78rem; }
.m-body { display: grid; grid-template-columns: 10rem minmax(0, 1fr); }
.m-folders { background: #1b1b1b; padding: .6rem .4rem; border-right: 1px solid #111; font-size: .82rem; }
.m-folders small { display: block; color: #888; padding: 0 .6rem .3rem; }
.m-folders div { padding: .25rem .6rem; border-radius: 4px; color: #bbb; } .m-folders .sel { background: #333; color: #fff; }
.m-msg { position: relative; z-index: 1; padding: .8rem 1rem; background: #242424; }
.m-banner { text-align: center; color: #fff; padding: .5rem .8rem; border-radius: 6px; background: linear-gradient(#d4504a, #b3262e); font-size: .85rem; }
.m-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid #3a3a3a; }
.m-head dl { display: grid; grid-template-columns: 4.5rem 1fr; gap: .15rem .6rem; margin: 0; font-size: .85rem; min-width: 0; }
.m-head dt { color: #8d8d8d; font-size: .72rem; padding-top: .15rem; } .m-head dd { margin: 0; color: #eee; word-break: break-word; }
.m-btns { display: flex; gap: .4rem; flex: none; } .m-btns span { border: 1px solid #444; border-radius: 4px; padding: .1rem .6rem; color: #ccc; font-size: .78rem; }
.urgent { background: #6f1d12; color: #ffb4a5; border: 1px solid #b3402e; padding: 0 .4rem; font-size: .68rem; font-weight: 700; margin-left: .5rem; }
.m-text { padding: .7rem 0; color: #e8e8e8; }
.fakelink { color: #6ea2ff; text-decoration: underline; word-break: break-all; }

/* dashboard SOC */
.soc-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); }
.soc-rail { background: #0a0d12; border-right: 1px solid #1c2430; display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: .8rem 0; }
.soc-rail i { width: 1.05rem; height: 1.05rem; border: 2px solid #4a5668; border-radius: 4px; } .soc-rail i:first-child { border-color: #e0443a; background: rgba(224, 68, 58, .25); }
.soc-main { padding: .9rem 1rem 0; min-width: 0; }
.soc-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.soc-title h4 { font-size: 1.2rem; font-weight: 800; color: #fff; } .soc-id { color: #cfd6e0; font-weight: 700; font-size: .85rem; }
.pills { display: flex; flex-wrap: wrap; gap: .35rem .8rem; align-items: center; font-size: .76rem; color: #9aa6b6; margin: .4rem 0 .7rem; }
.pill { border: 1px solid #5a6676; border-radius: 99px; padding: .05rem .65rem; } .pill.fill { border-color: #8a2a26; background: #3a1514; color: #ff9a90; }
.sev { color: #ff9a4d; font-weight: 700; } .soc-sub { color: #fff; font-weight: 600; }
.x-banner { border: 1px solid #8a2a26; background: #3a1514; color: #ffb4a8; text-align: center; font-weight: 700; padding: .35rem; border-radius: 6px; margin-bottom: .8rem; font-size: .82rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: .75rem; }
.twocol { display: grid; grid-template-columns: 1.5fr 1fr; gap: .75rem; }
.col { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.frame .card { box-shadow: none; background: #151b24; border: 1px solid #232d3a; border-radius: 8px; padding: .7rem .85rem; min-width: 0; }
.frame .card h5 { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #f2f5fa; margin-bottom: .45rem; }
.frame .card p { font-size: .82rem; color: #c5ccd7; margin: 0; }
.frame .card ul, .frame .card ol { margin: 0; padding-left: 1.1rem; font-size: .82rem; color: #c5ccd7; } .frame .card li { margin-bottom: .25rem; }
.kv { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); gap: .2rem .5rem; margin: 0; font-size: .8rem; } .kv dt { color: #8d99aa; } .kv dd { margin: 0; color: #e6ebf2; font-weight: 600; word-break: break-word; }
.st-red { background: #4a1816; color: #ff9a90; border: 1px solid #8a2a26; border-radius: 99px; padding: 0 .55rem; font-size: .74rem; }
.badge { border-radius: 99px; padding: 0 .55rem; font-size: .72rem; } .badge.amber { background: #5a3a08; color: #ffc766; } .badge.grey { background: #2a313c; color: #b6c0cd; }
.tl { list-style: none; padding: 0 0 0 .9rem; margin: 0; border-left: 2px solid #2a3442; }
.frame .card .tl li { position: relative; padding-left: .7rem; }
.tl li::before { content: ""; position: absolute; left: -1.28rem; top: .4rem; width: .5rem; height: .5rem; border-radius: 50%; background: #e0443a; }
.tl b { color: #fff; margin-right: .5rem; }
@media (max-width: 760px) {
  .twocol, .pair { grid-template-columns: 1fr; } .f-post { grid-template-columns: 1fr; margin: .6rem; }
  .f-user { flex-direction: row; border-right: 0; border-bottom: 1px solid #3a1a1e; } .m-body { grid-template-columns: 1fr; } .m-folders { display: none; }
  .frame::after { font-size: 1.6rem; }
}

