/* Tes Karier Matematika · UPA BK Unmul — gaya mengikuti upa-bk.unmul.ac.id */
:root {
  --ink: #1b2540;
  --ink-2: #3c4864;
  --muted: #6b7690;
  --line: #e6e9f0;
  --bg: #f6f8fb;
  --card: #fff;
  --teal: #0f8a86;
  --teal-d: #0b6c69;
  --teal-50: #e8f6f5;
  --gold: #e8b62f;
  --gold-d: #c9971a;
  --gold-50: #fdf6e3;
  --green: #1f9d55;
  --red: #d64545;
  --red-50: #fdecec;
  --blue: #2f80ed;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 6px 24px rgba(20, 30, 60, .06);
}
* { 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", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15.5px; }
a { color: var(--teal-d); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3, .h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
code { background: #f1f3f8; padding: .1em .35em; border-radius: 6px; font-size: .9em; }
code.big { font-size: 1.15rem; padding: .2em .5em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.block { display: block; }
.center { text-align: center; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ok { color: var(--green); }
.bad { color: var(--red); }
.eyebrow { color: var(--teal); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .35rem; }
.eyebrow a { text-decoration: none; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; padding: 12px 16px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.topbar__inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 10px 16px; border-bottom: 2px solid var(--gold); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: .95rem; }
.brand__text small { font-size: .72rem; color: var(--muted); }
.topbar__tag { background: var(--teal-50); color: var(--teal-d); font-weight: 700; font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav > a, .topnav .linkbtn { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; padding: .45rem .7rem; border-radius: 10px; }
.topnav > a:hover { background: var(--bg); }
.topnav > a.is-active { color: var(--teal-d); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.topnav form { margin: 0; }
.topnav__who { font-size: .88rem; color: var(--muted); margin-right: .25rem; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px 4px 4px; font-weight: 600; font-size: .9rem; }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { width: 28px; height: 28px; border-radius: 8px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); min-width: 220px; padding: 8px; display: flex; flex-direction: column; }
.usermenu__panel a, .usermenu__panel .linkbtn { padding: .5rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); text-align: left; width: 100%; }
.usermenu__panel a:hover, .usermenu__panel .linkbtn:hover { background: var(--bg); }
.usermenu__id { padding: .4rem .6rem .6rem; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-weight: 700; font-size: .9rem; }
.usermenu__id small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- layout ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 28px 16px 48px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 8px 16px 40px; color: var(--muted); font-size: .85rem; text-align: center; }
.foot__muted { font-size: .78rem; }
.section { margin: 28px 0; }
.pagehead { margin: 4px 0 20px; }
.pagehead--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; border: 1px solid rgba(230, 233, 240, .6); }
.card.narrow { max-width: 460px; margin: 24px auto; }
.card.soft { background: linear-gradient(135deg, #fff, var(--teal-50)); }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2--top { align-items: start; gap: 18px; }
.grid2--top > .card { margin-bottom: 0; }
.grid2--top { margin-bottom: 18px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; color: #fff; background: var(--teal); padding: .7rem 1.2rem; border-radius: 12px; transition: background .15s, transform .05s; }
.btn:hover { background: var(--teal-d); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: linear-gradient(135deg, #f1c84b, var(--gold)); color: #2b2104; }
.btn--gold:hover { background: var(--gold-d); color: #2b2104; }
.btn--ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--bg); }
.btn--danger { background: var(--red); }
.btn--sm { padding: .45rem .85rem; font-size: .88rem; border-radius: 10px; }
.btn--block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-d); cursor: pointer; font-weight: 600; }
.iconbtn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: .4rem; border-radius: 8px; }
.iconbtn:hover { background: var(--red-50); color: var(--red); }
.danger-text { color: var(--red) !important; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }
.form.inline .field { flex: 1 1 180px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
input:not([type=checkbox]):not([type=radio]), select { font: inherit; font-size: .95rem; padding: .62rem .75rem; border: 1px solid #d8dde8; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
input:focus, select:focus { outline: 2px solid rgba(15, 138, 134, .35); border-color: var(--teal); }
input:disabled { background: #f2f4f8; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check input { margin-top: .25rem; accent-color: var(--teal); width: 16px; height: 16px; flex: none; }
.check--sm { font-size: .82rem; align-items: center; white-space: nowrap; }
.check--sm input { margin-top: 0; }
.hint { font-size: .84rem; color: var(--muted); margin-top: .5rem; }
.w4 { width: 4.5rem !important; }
.w10 { width: 10rem !important; }

/* ---------- alerts / pills ---------- */
.alert { border-radius: 12px; padding: .8rem 1rem; margin-bottom: 16px; font-size: .93rem; border: 1px solid; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert--success { background: #eaf7ef; border-color: #bfe5cc; color: #17663a; }
.alert--error { background: var(--red-50); border-color: #f5c6c6; color: #9b2c2c; }
.alert--info { background: #eef5ff; border-color: #cfe0fb; color: #1e4f99; }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #eef0f5; color: var(--ink-2); white-space: nowrap; }
.pill--ok { background: #e3f5ea; color: #17663a; }
.pill--low { background: var(--red-50); color: #a33; }
.pill--hi { background: #e9f1fe; color: #2459a8; }
.tag { display: inline-grid; place-items: center; min-width: 2.2rem; padding: .1rem .45rem; border-radius: 8px; background: var(--teal); color: #fff; font-size: .78rem; font-weight: 800; margin-right: .35rem; }
.tag--soft { background: var(--teal-50); color: var(--teal-d); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-weight: 600; font-size: .9rem; }
.checklist { padding: 0; list-style: none; margin: .5rem 0 1rem; }
.checklist li { padding-left: 1.6rem; position: relative; margin: .35rem 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; padding: 18px 0 8px; }
.hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 40rem; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; margin: 0; }
.crit { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.crit li { display: flex; gap: 12px; align-items: flex-start; }
.crit b { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--teal-50); color: var(--teal-d); display: grid; place-items: center; font-size: .9rem; }
.crit span { font-weight: 600; display: flex; flex-direction: column; }
.crit small { font-weight: 400; color: var(--muted); }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps3 .card { margin: 0; }
.stepnum { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--gold-50); color: var(--gold-d); font-weight: 800; margin-bottom: .6rem; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; padding-top: 10px; }
.auth__aside { padding-top: 18px; }
.auth__card { margin: 0; }

/* ---------- dashboard mahasiswa ---------- */
.progress-steps { list-style: none; padding: 0; display: flex; gap: 10px; margin: 0 0 18px; flex-wrap: wrap; }
.progress-steps li { flex: 1 1 160px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); }
.progress-steps li span { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: #eef0f5; font-size: .85rem; }
.progress-steps li.is-done { color: var(--ink); }
.progress-steps li.is-done span { background: var(--teal); color: #fff; }
.progress-steps li.is-current { border-color: var(--gold); color: var(--ink); }
.progress-steps li.is-current span { background: var(--gold); color: #2b2104; }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.toplist { list-style: none; padding: 0; margin: 0 0 .5rem; }
.toplist li { display: flex; align-items: center; gap: 12px; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.toplist li:last-child { border: 0; }
.toplist .muted { margin-left: auto; font-size: .88rem; }
.medal { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: #9aa3b5; }
.medal.m1 { background: linear-gradient(135deg, #f3cf5a, #d9a514); color: #3a2a00; }
.medal.m2 { background: linear-gradient(135deg, #cfd6e2, #9aa6ba); }
.medal.m3 { background: linear-gradient(135deg, #e3a877, #b9733f); }

/* ---------- kuesioner ---------- */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.stepper button { font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .4rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); }
.stepper button b { width: 1.7rem; height: 1.7rem; border-radius: 8px; display: grid; place-items: center; background: #eef0f5; font-size: .85rem; }
.stepper button span { font-size: .78rem; font-weight: 600; }
.stepper button.is-active { border-color: var(--teal); color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 138, 134, .12); }
.stepper button.is-active b { background: var(--teal); color: #fff; }
.stepper button.is-done b { background: var(--teal-50); color: var(--teal-d); }
.stepper button.has-error b { background: var(--red); color: #fff; }
.qprogress { height: 6px; background: #e9edf3; border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.qprogress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width .25s; }
.qstep { border: 0; }
.qstep legend { font-size: 1.2rem; font-weight: 800; padding: 0; margin-bottom: .5rem; float: left; width: 100%; }
.qstep legend + * { clear: both; }
.grades { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.grade-row { display: grid; grid-template-columns: 1fr 9rem auto; gap: 12px; align-items: center; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 12px; }
.grade-row label:first-child { font-weight: 600; }
.grade-row.is-off { background: #fafbfc; }
.grade-row.is-off label:first-child { color: var(--muted); }
.qitem { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qitem:last-child { border: 0; }
.qitem > p { display: flex; gap: 10px; margin-bottom: .6rem; }
.qno { flex: none; min-width: 2rem; height: 2rem; padding: 0 .3rem; border-radius: 10px; background: var(--teal-50); color: var(--teal-d); display: grid; place-items: center; font-weight: 800; font-size: .82rem; }
.qitem.is-missing { background: linear-gradient(90deg, var(--red-50), transparent 70%); border-radius: 10px; padding-left: 8px; }
.likert { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 520px; margin-left: 2.6rem; }
.likert input { position: absolute; opacity: 0; pointer-events: none; }
.likert label { text-align: center; padding: .55rem 0; border: 1px solid #d8dde8; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--ink-2); background: #fff; transition: all .12s; user-select: none; }
.likert label:hover { border-color: var(--teal); }
.likert input:checked + label { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 2px 8px rgba(15, 138, 134, .3); }
.likert input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.likert__ends { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.certcat { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 14px; }
.certcat h3 { font-size: 1rem; }
.certrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--line); }
.certrow:first-of-type { border-top: 0; }
.certrow__no { flex: none; width: 1.6rem; height: 1.6rem; margin-top: .45rem; border-radius: 50%; background: #eef0f5; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); }
.certrow__fields { flex: 1; display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 8px; }
.certrow__fields > :first-child { grid-column: 1 / -1; }
.qnav { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; background: rgba(246, 248, 251, .95); backdrop-filter: blur(6px); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 4px; }
.qnav [data-next], .qnav [data-submit] { margin-left: auto; }
.qnav__status { font-size: .85rem; color: var(--muted); }

/* ---------- hasil ---------- */
.podium { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; margin-bottom: 18px; align-items: start; }
.podium__item { margin: 0; position: relative; }
.podium__item.p1 { border: 2px solid var(--gold); background: linear-gradient(180deg, var(--gold-50), #fff 45%); }
.podium__item .medal { margin-bottom: .6rem; }
.podium__item h2 { font-size: 1.15rem; }
.podium__item.p1 h2 { font-size: 1.35rem; }
.score { font-size: .95rem; margin: .3rem 0 .6rem; }
.score strong { font-size: 1.25rem; color: var(--teal-d); }
.gaps { width: 100%; border-collapse: collapse; font-size: .84rem; }
.gaps th { text-align: left; font-weight: 600; color: var(--ink-2); padding: .25rem 0; }
.gaps td { padding: .25rem .2rem; }
.narrative { border-left: 4px solid var(--teal); }
.narrative__text { font-size: 1rem; color: var(--ink-2); margin: 0; }
.bar { margin: 12px 0; }
.bar__label { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 4px; }
.bar__track { height: 10px; background: #edf0f5; border-radius: 99px; overflow: hidden; }
.bar__track span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #3cc1b9); border-radius: 99px; }
.ranklist { list-style: none; padding: 0; margin: 0; }
.ranklist li { display: grid; grid-template-columns: 1.6rem 1fr 30% 3.2rem; gap: 10px; align-items: center; padding: .38rem 0; font-size: .9rem; }
.ranklist__n { color: var(--muted); font-weight: 700; text-align: center; }
.ranklist li.is-top .ranklist__n { color: var(--gold-d); }
.ranklist li.is-top .ranklist__name { font-weight: 700; }
.ranklist__bar { height: 8px; background: #edf0f5; border-radius: 99px; overflow: hidden; }
.ranklist__bar span { display: block; height: 100%; background: #9fb4cf; border-radius: 99px; }
.ranklist li.is-top .ranklist__bar span { background: var(--gold); }
.more summary { cursor: pointer; font-weight: 600; color: var(--teal-d); margin-top: 8px; }
.mini { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 6px; }
.mini th { text-align: left; font-weight: 500; padding: .25rem 0; }
.chat__log { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; margin-bottom: 10px; }
.chat__log:empty { display: none; }
.msg { padding: .6rem .85rem; border-radius: 12px; max-width: 85%; font-size: .93rem; white-space: pre-wrap; }
.msg--user { align-self: flex-end; background: var(--teal); color: #fff; }
.msg--bot { align-self: flex-start; background: #f1f4f8; }
.chat__form { display: flex; gap: 8px; }

/* ---------- admin ---------- */
.admin-shell { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: 210px 1fr; gap: 22px; padding: 22px 16px 48px; }
.sidenav { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.sidenav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: .55rem .7rem; border-radius: 10px; }
.sidenav a:hover { background: var(--bg); }
.sidenav a.is-active { background: var(--teal-50); color: var(--teal-d); }
.sidenav__head { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .8rem .7rem .2rem; font-weight: 700; }
.admin-main { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat strong { font-size: 1.7rem; font-weight: 800; }
.stat small { color: var(--muted); }
.stat--ok strong { color: var(--green); }
.stat--bad strong { color: var(--red); }
.weights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 6px 0 12px; }
.weights div { background: var(--bg); border-radius: 12px; padding: 10px 12px; position: relative; overflow: hidden; }
.weights span { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.weights strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.weights i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--teal); }
.hbar { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 2rem; gap: 10px; align-items: center; font-size: .88rem; padding: .3rem 0; }
.hbar i { display: block; height: 10px; border-radius: 99px; background: var(--gold); min-width: 4px; }
.hbar b { text-align: right; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.table td { padding: .5rem; border-bottom: 1px solid #f0f2f6; vertical-align: middle; }
.table tr.is-muted td { opacity: .55; }
.table.compact td, .table.compact th { padding: .32rem .45rem; }
.table tr.total td { font-weight: 600; background: #fafbfd; }
.table td.indent { padding-left: 1.3rem; }
.table tr.is-top td { background: var(--gold-50); }
.matrix td.alt { background: #f4fbfa; }
.matrix tfoot th { font-size: .8rem; text-transform: none; letter-spacing: 0; }
.tablewrap { overflow-x: auto; }
.table.edit input:not([type=checkbox]) { padding: .4rem .5rem; font-size: .88rem; }
.reqgrid input { width: 4.2rem !important; text-align: center; padding: .35rem !important; }
.pairs select { max-width: 460px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px; }
.filters input, .filters select { width: auto; flex: 1 1 160px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a { padding: .35rem .7rem; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.pager a.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions form { margin: 0; }
.sect { font-size: 1.05rem; margin: 26px 0 12px; color: var(--teal-d); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--ink-2); }
.rater.is-muted { opacity: .7; }
.rater__id { flex: 1; }
.rater__status { display: flex; gap: 6px; }
.rater summary, details.card > summary { cursor: pointer; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.exports { display: flex; gap: 8px; flex-wrap: wrap; }
details.danger summary { color: var(--red); font-weight: 600; }

/* ---------- responsif ---------- */
@media (max-width: 900px) {
  .hero, .auth, .grid2, .podium, .steps3 { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidenav { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidenav__head { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .weights { grid-template-columns: repeat(3, 1fr); }
  .topbar__tag { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand__text, .usermenu__name, .topnav__who { display: none; }
  .topbar__inner { padding: 8px 10px; gap: 8px; }
  .topnav > a { padding: .4rem .45rem; font-size: .85rem; }
  .card { padding: 16px; }
  .stepper span { display: none; }
  .grade-row { grid-template-columns: 1fr 6.5rem; }
  .grade-row .check--sm { grid-column: 1 / -1; }
  .likert { margin-left: 0; }
  .certrow__fields { grid-template-columns: 1fr; }
  .ranklist li { grid-template-columns: 1.4rem 1fr 3rem; }
  .ranklist__bar { display: none; }
}

/* ---------- cetak ---------- */
@media print {
  body { background: #fff; font-size: 12px; }
  .topbar, .foot, .noprint, .qnav, .usermenu, .chat { display: none !important; }
  .page { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .grid2, .podium { grid-template-columns: 1fr 1fr; }
  .podium { grid-template-columns: repeat(3, 1fr); }
}
