/* Misi 4: literal workspace mockup styles. Keep this block as the visual source of truth. */
:root {
  --topbar-h: 65px;
  --navy: #132238; --ink: #172033; --muted: #657187; --faint: #a3adbd;
  --line: #e1e7f0; --hair: #edf1f6; --soft: #f3f6fb; --tint: #f4f7fe; --canvas: #f5f7fb; --surface: #fff;
  --blue: #003399; --blue-soft: #e9efff; --yellow: #ffd45c;
  --green: #16845b; --green-soft: #e8f7ef; --amber: #b86a00; --amber-soft: #fff3d9; --amber-line: #f0b54a;
  --red: #bb3e4c; --red-soft: #fff0f1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b9c9f5; outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Shell ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1240px; margin: 0 auto; min-height: 64px; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.logo { border: 0; background: none; padding: 0; font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; color: var(--blue); font-style: italic; text-decoration: none; }
.logo span { color: #f5b700; }
.who-box { display: flex; align-items: center; gap: .6rem; }
.chip-user { display: flex; align-items: center; gap: .5rem; padding: .25rem .8rem .25rem .25rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; }
.chip-user i { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: grid; place-items: center; overflow: hidden; font-style: normal; font-size: .78rem; font-weight: 600; }
.chip-user i img { width: 100%; height: 100%; object-fit: cover; }
.out { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); display: grid; place-items: center; }
.out svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shell { max-width: 1240px; margin: 0 auto; padding: 2rem 1.5rem 4rem; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2.5rem; }
.side { display: grid; gap: .15rem; align-content: start; align-self: start; position: sticky; top: calc(var(--topbar-h) + 2rem); max-height: calc(100vh - var(--topbar-h) - 4rem); overflow-y: auto; }
.side nav { display: grid; gap: .15rem; }
.side button { text-align: left; border: 0; background: none; padding: .6rem .8rem; border-radius: 9px; color: #738095; font-weight: 600; font-size: .9rem; }
.side-icon { display: none; }
.side a { display: block; text-align: left; border: 0; background: none; padding: .6rem .8rem; border-radius: 9px; color: #738095; font-weight: 600; font-size: .9rem; text-decoration: none; }
.side a:hover { color: var(--navy); }
.side a[aria-current="page"] { background: var(--navy); color: #fff; }
.side button:hover { color: var(--navy); }
.side button[aria-current="page"] { background: var(--navy); color: #fff; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: .5rem 0; }
.page { max-width: 1040px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
/* Judul tugas memakai irama yang sama dengan judul halaman staff */
.task h1 { margin-bottom: 1.1rem; }
@media (max-width: 860px) { .shell { grid-template-columns: 1fr; gap: 1rem; } .side { position: static; display: flex; overflow-x: auto; } .side nav { display: flex; overflow-x: auto; } .side hr { display: none; } }
@media (max-width: 480px) { .chip-user > span { display: none; } .chip-user { padding-right: .25rem; } .page { padding: 1.5rem 1rem 3rem; } }

/* ---------- Common ---------- */
h1 { margin: 0; font-size: clamp(1.45rem, 5.2vw, 2rem); letter-spacing: -.03em; color: var(--navy); line-height: 1.18; text-wrap: balance; }
h2 { margin: 0; font-size: 1.1rem; color: var(--navy); letter-spacing: -.01em; }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.head-title { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.back { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: grid; place-items: center; flex: none; }
.back svg { width: 16px; height: 16px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { background: var(--soft); }
.sub { margin: .25rem 0 0; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.pad { padding: 1.2rem 1.3rem; }
.btn { padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; font-size: .88rem; color: var(--navy); }
.btn:hover { background: var(--soft); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; padding: .7rem 1.2rem; font-size: .95rem; }
.btn-primary:hover { background: #002b82; }
.btn-small { padding: .35rem .75rem; font-size: .82rem; }
.btn-danger { color: var(--red); }
.link { border: 0; background: none; padding: 0; color: var(--muted); font-weight: 600; font-size: .88rem; }
.link:hover { color: var(--navy); }
.seg { display: inline-flex; flex-wrap: wrap; gap: .2rem; padding: .25rem; background: #e7ebf2; border-radius: 11px; }
.seg button { border: 0; background: none; padding: .4rem .85rem; border-radius: 8px; color: var(--muted); font-size: .86rem; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--navy); font-weight: 600; box-shadow: 0 1px 3px rgb(19 34 56 / .1); }
.seg a { display: inline-block; padding: .4rem .85rem; border-radius: 8px; color: var(--muted); font-size: .86rem; font-weight: 500; text-decoration: none; }
.seg a[aria-current="page"] { background: var(--surface); color: var(--navy); font-weight: 600; box-shadow: 0 1px 3px rgb(19 34 56 / .1); }
.seg small { margin-left: .35rem; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-grey { background: #f0f3f7; color: #647187; }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0 .8rem; }
.muted { color: var(--muted); font-size: .84rem; }
.chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); padding: .7rem 1.1rem; border-radius: 12px; background: var(--navy); color: #fff; font-size: .88rem; box-shadow: 0 12px 30px -12px rgb(19 34 56 / .5); z-index: 50; }
.toast-copy { margin: 0; }
.toast-close { color: #fff; }
label.field { display: grid; gap: .35rem; font-size: .86rem; font-weight: 600; color: var(--navy); }
.input, textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 400; }
textarea { min-height: 90px; resize: vertical; }
.hint { font-size: .8rem; font-weight: 400; color: var(--muted); }
.row-actions { display: flex; gap: .5rem; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.prose p { margin: 0 0 .75rem; max-width: 60ch; }

/* ---------- Login + privacy ---------- */
.auth { max-width: 440px; margin: 4rem auto; padding: 2.4rem 2rem; text-align: center; }
.auth-id { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.auth-id .logo { font-size: 1.6rem; }
.auth h1 { margin-top: 1.2rem; font-size: 1.6rem; }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; margin-top: 1.4rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; color: var(--ink); }
.gbtn svg { width: 20px; height: 20px; }
.demo { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.demo p { margin: 0 0 .6rem; font-size: .78rem; color: var(--faint); }
.demo .row-actions { justify-content: center; }
.auth-foot { margin-top: 1.4rem; font-size: .82rem; }
.auth-foot button { border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.prose-page { max-width: 720px; }
.prose-page h2 { margin: 1.6rem 0 .5rem; font-size: 1.05rem; }
.prose-page p, .prose-page li { font-size: .95rem; }
.access { max-width: 560px; margin: 3rem auto; }
.access p { max-width: 60ch; }
.access .btn { display: inline-block; margin-top: .35rem; text-decoration: none; }
.flags { display: inline-flex; gap: .2rem; padding: .25rem; background: #e7ebf2; border-radius: 11px; }
.flags button { border: 0; background: none; padding: .4rem .6rem; border-radius: 8px; display: grid; place-items: center; }
.flags button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgb(19 34 56 / .1); }
.flag { display: block; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(19 34 56 / .15); opacity: .55; }
.flags button[aria-pressed="true"] .flag { opacity: 1; }

/* ---------- Student ---------- */
.s-list { overflow: hidden; }
.s-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1rem 1.2rem; border: 0; border-top: 1px solid var(--hair); background: none; text-align: left; }
.s-row:first-of-type { border-top: 0; }
.s-row:hover { background: #fafcff; }
.s-row:hover .chev { stroke: var(--navy); transform: translateX(2px); }
.s-row small { display: block; color: var(--muted); font-size: .82rem; }
.s-row b { display: block; color: var(--navy); font-size: 1rem; }
.s-state { display: flex; align-items: center; gap: .7rem; }
.s-state .score { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.class-name { padding: 1rem 1.2rem; border-bottom: 1px solid var(--hair); }
.grid2 { display: grid; gap: 2rem; }
@media (min-width: 900px) { .grid2 { grid-template-columns: minmax(0, 1fr) 400px; gap: 4rem; align-items: start; } .grid2 .sticky { position: sticky; top: 2rem; } }
.task p { margin: 0 0 .75rem; max-width: 60ch; }
.phrases-title { margin: 2rem 0 .75rem; font-size: 1.05rem; color: var(--navy); }
.phrases { margin: 0; padding: .4rem 1.1rem; list-style: none; }
.phrases li { padding: .5rem 0; font-weight: 500; color: var(--navy); }
.phrases li + li { border-top: 1px solid var(--hair); }
.brief summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--navy); }
.brief summary::-webkit-details-marker { display: none; }
.brief summary small { color: var(--muted); font-weight: 500; }
.brief summary .chev { transform: rotate(90deg); }
.brief[open] summary .chev { transform: rotate(-90deg); }
.brief-body { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); padding: 0 1.2rem 1.2rem; border-top: 1px solid var(--hair); }
.brief-body p { margin: .8rem 0 0; font-size: .92rem; }
.phrases-plain { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .2rem; font-size: .88rem; }
.phrases-plain li { padding: .35rem .6rem; border-radius: 8px; background: var(--soft); color: var(--navy); }
@media (max-width: 760px) { .brief-body { grid-template-columns: 1fr; } }

/* Recorder panel: copied from workspace.html; the recorder-states mockup adds the failure/file rules below. */
.panel { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 1px 2px rgb(19 34 56 / .04), 0 18px 40px -22px rgb(19 34 56 / .28); }
.view { animation: fade .3s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.stage { padding: 1.4rem 1.4rem 1.2rem; background: linear-gradient(180deg, var(--tint), #fbfcff); border-bottom: 1px solid #e9eef7; }
.stage.rec { padding-bottom: 3.3rem; text-align: center; }
.stage.warn { background: linear-gradient(180deg, #fff8ea, #fffdf8); border-bottom-color: #f6ead0; }
.body { padding: 1.3rem 1.4rem 1.4rem; }
.body.rec { padding-top: 0; text-align: center; }
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.top .len { font-variant-numeric: tabular-nums; color: var(--navy); }
.panel h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.015em; color: var(--navy); }
.panel .sub { font-size: .9rem; }
.bigtime { margin: .1rem 0 1.1rem; font-size: 2.9rem; font-weight: 650; letter-spacing: -.045em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.wave { position: relative; display: flex; align-items: center; gap: 3px; height: 56px; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: #cdd6e4; transition: background .25s, transform .25s; }
.wave.ghost i { background: #d9e1ed; animation: idle 2.6s ease-in-out infinite; }
@keyframes idle { 50% { transform: scaleY(.45); } }
.wave.live { justify-content: flex-end; overflow: hidden; }
.wave.live i { flex: none; width: 3px; background: var(--navy); }
.wave.done i, .wave.upload i.on { background: var(--navy); }
.wave.scan i { background: #9fb2d8; }
.wave.quiet i { background: var(--amber-line); }
.threshold { position: absolute; left: 0; right: 0; border-top: 1.5px dashed #d9a441; }
.threshold span { position: absolute; right: 0; top: -1.35rem; font-size: .72rem; font-weight: 600; color: var(--amber); }
.tl { position: relative; height: 6px; margin-top: 1.1rem; border-radius: 99px; background: #e3e9f3; }
.tl .zone { position: absolute; left: 50%; right: 0; top: 0; bottom: 0; border-radius: 0 99px 99px 0; background: #c9eadb; }
.tl .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: var(--navy); transition: width .1s linear; }
.tl .fill.ok { background: var(--green); }
.tl-labels { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: .35rem; font-size: .72rem; font-weight: 500; color: var(--faint); }
.tl-labels span:nth-child(2) { text-align: center; } .tl-labels span:last-child { text-align: right; }
.dock { position: relative; margin-top: -42px; }
.mic { width: 84px; height: 84px; margin: 0 auto; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--navy); box-shadow: 0 0 0 6px var(--surface), 0 14px 28px -10px rgb(245 183 0 / .75); }
.mic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mic.stop { background: var(--navy); color: #fff; box-shadow: 0 0 0 6px var(--surface), 0 14px 28px -10px rgb(19 34 56 / .55); }
.mic .sq { width: 24px; height: 24px; border-radius: 6px; background: currentColor; }
.mic-label { margin: .8rem 0 0; font-size: .9rem; font-weight: 600; color: var(--navy); }
.phint { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); }
.phint.good { color: var(--green); font-weight: 500; }
.phint.warn { color: var(--amber); }
.stepper { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: .8rem; font-weight: 600; color: var(--faint); }
.stepper span { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.stepper .ln { flex: 1; height: 2px; min-width: 12px; border-radius: 2px; background: var(--line); }
.stepper .done { color: var(--green); } .stepper .ln.done { background: var(--green); }
.stepper .now { color: var(--blue); }
.stepper svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: breathe 1.3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.5); opacity: .45; } }
.modes { display: grid; gap: .45rem; margin: 0 0 1rem; padding: 0; border: 0; }
.mode { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 14px; text-align: left; background: var(--surface); width: 100%; }
.mode.on { border-color: var(--blue); background: #f5f8ff; }
.mode:disabled { opacity: .5; cursor: not-allowed; }
.mode .r { flex: none; width: 17px; height: 17px; margin-top: .15rem; border-radius: 50%; border: 2px solid #b8c3d6; }
.mode.on .r { border: 5px solid var(--blue); }
.mode b { display: block; font-size: .92rem; color: var(--navy); }
.mode small { display: block; font-size: .82rem; color: var(--muted); }
.lenline { margin: 0 0 1rem; font-size: .88rem; color: var(--green); font-weight: 500; }
.actions { display: grid; gap: .45rem; margin-top: 1.1rem; }
.primary { padding: .9rem 1rem; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 8px 18px -10px rgb(0 51 153 / .7); transition: transform .15s, filter .15s; }
.primary:hover { filter: brightness(1.1); } .primary:active { transform: scale(.98); }
.quiet { padding: .6rem; border: 0; border-radius: 12px; background: none; color: var(--muted); font-weight: 500; }
.quiet:hover { background: var(--soft); color: var(--navy); }
.upload { display: flex; align-items: center; gap: .45rem; width: fit-content; margin: .9rem auto 0; padding: .55rem .9rem; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 500; font-size: .9rem; }
.upload:hover { background: #eaeef5; color: var(--navy); }
.upload svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.score-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.bigscore { display: flex; align-items: baseline; gap: .35rem; }
.bigscore b { font-size: 3rem; line-height: .9; font-weight: 700; letter-spacing: -.045em; color: var(--navy); font-variant-numeric: tabular-nums; }
.bigscore span { color: var(--muted); font-weight: 500; }
.stage .score { display: flex; align-items: baseline; gap: .35rem; }
.stage .crit { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.stage .crit li { display: grid; grid-template-columns: 7.2rem 1fr 2.6rem; align-items: center; gap: .55rem; padding: 0; border: 0; color: var(--muted); font-size: .74rem; }
.stage .crit .t { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #e9eef5; }
.stage .crit .t i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transform-origin: left; animation: grow .8s cubic-bezier(.2,.8,.2,1) both; }
.stage .crit li b { color: var(--navy); font-size: .74rem; font-variant-numeric: tabular-nums; text-align: right; }
.stage .score b { font-size: 3rem; line-height: .9; font-weight: 700; letter-spacing: -.045em; color: var(--navy); font-variant-numeric: tabular-nums; }
.stage .score span { color: var(--muted); font-weight: 500; }
.delta { padding: .25rem .6rem; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.mini { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.mini li { display: grid; grid-template-columns: 7.2rem 1fr 2.6rem; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); }
.mini .t { height: 6px; border-radius: 99px; background: #e8edf5; overflow: hidden; }
.mini .t i { display: block; height: 100%; border-radius: inherit; background: var(--navy); }
.mini li b { text-align: right; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- Student feedback ---------- */
.fb-wrap { margin-top: 3.5rem; }
.fb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.fb-head h2 { font-size: 1.4rem; }
.fb-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.summary { display: grid; overflow: hidden; }
@media (min-width: 860px) { .summary { grid-template-columns: 320px 1fr; } }
.hero { padding: 1.6rem; background: linear-gradient(180deg, var(--tint), #fbfcff); border-bottom: 1px solid #e9eef7; }
@media (min-width: 860px) { .hero { border-bottom: 0; border-right: 1px solid #e9eef7; } }
.hero .kind { font-size: .82rem; font-weight: 600; color: var(--muted); }
.hero .bigscore { margin-top: .6rem; }
.hero .bigscore b { font-size: 4rem; }
.hero .delta, .hero .base { display: inline-block; margin-top: .9rem; }
.base { padding: .25rem .6rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: .78rem; font-weight: 600; }
.lead { margin: 1rem 0 0; font-size: 1rem; line-height: 1.55; color: var(--navy); font-weight: 500; }
.from { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); }
.skills { padding: 1.3rem 1.5rem 1.4rem; }
.skill { display: block; width: 100%; padding: .7rem 0; border: 0; border-top: 1px solid var(--hair); background: none; text-align: left; }
.skill:first-of-type { border-top: 0; }
.skill-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: .75rem; }
.skill-name { font-size: .92rem; font-weight: 500; color: var(--navy); }
.skill-val { font-size: .88rem; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.skill-val small { color: var(--navy); font-weight: 400; font-size: .8rem; }
.skill-val .up { margin-left: .4rem; color: var(--green); }
.skill[aria-expanded="true"] .chev { transform: rotate(90deg); }
.track { display: block; height: 6px; margin-top: .45rem; border-radius: 99px; background: #edf1f6; overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: var(--navy); }
.why { display: block; margin: .6rem 0 .1rem; padding: .7rem .85rem; border-radius: 12px; background: var(--soft); font-size: .88rem; color: var(--ink); line-height: 1.5; }
.tap { margin: .6rem 0 0; font-size: .78rem; color: var(--faint); }
.cols { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; align-items: start; } .cols .aside { position: sticky; top: 1.5rem; } }
.block { margin-bottom: 2rem; }
.block h2 { margin-bottom: .8rem; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; }
.list svg { width: 18px; height: 18px; margin-top: .2rem; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fixes { display: grid; gap: .7rem; }
@media (min-width: 560px) { .fixes { grid-template-columns: 1fr 1fr; } }
.fix { padding: 1rem 1.05rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.fix-word { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.fix dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; margin: .55rem 0 0; font-size: .88rem; }
.fix dt { color: var(--faint); }
.fix dd { margin: 0; }
.fix dd.said { color: var(--amber); text-decoration: line-through; text-decoration-color: rgb(184 106 0 / .4); }
.fix dd.try { color: var(--green); font-weight: 600; }
.fix p { margin: .55rem 0 0; font-size: .86rem; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.steps li { counter-increment: n; display: grid; grid-template-columns: 26px 1fr; gap: .75rem; padding: .9rem 1.05rem; }
.steps li + li { border-top: 1px solid var(--hair); }
.steps li::before { content: counter(n); width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: .82rem; font-weight: 700; display: grid; place-items: center; }
.steps small { display: block; margin-top: .1rem; font-size: .82rem; color: var(--muted); }
.mentor-note p { margin: 0; }
.mentor-note span { display: block; margin-top: .6rem; font-size: .84rem; font-weight: 600; color: var(--navy); }

/* ---------- Staff ---------- */
.hero-rule { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.stat-card { padding: 1.2rem 1.3rem; }
.stat-card span { display: block; font-size: .86rem; font-weight: 600; }
.stat-card b, .stat-card strong { display: block; margin: .4rem 0 .2rem; font-size: 2.4rem; line-height: 1; color: var(--navy); letter-spacing: -.03em; }
.stat-card small { color: var(--muted); font-size: .85rem; }
.tbl { overflow: hidden; }
.tbl .row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: center; gap: 1rem; padding: .85rem 1.2rem; border-top: 1px solid var(--hair); }
.tbl .row > :last-child { justify-self: center; text-align: center; }
.tbl .row:first-child { border-top: 0; }
.tbl .th { padding-top: .6rem; padding-bottom: .6rem; background: #fafbfd; font-size: .76rem; font-weight: 600; color: var(--muted); }
.class-link { border: 0; background: none; padding: 0; font-weight: 700; color: var(--blue); font-size: .98rem; text-align: left; }
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1.4rem; overflow: hidden; }
.kpi-strip div { padding: 1rem 1.2rem; border-left: 1px solid var(--line); }
.kpi-strip div:first-child { border-left: 0; }
.kpi-strip span { display: block; font-size: .84rem; color: var(--muted); }
.kpi-strip b { display: block; margin-top: .2rem; font-size: 1.8rem; line-height: 1.1; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-strip b small { font-size: .95rem; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.kpi-strip .warn b { color: var(--amber); }
.two { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.two > section { padding: 1.3rem 1.4rem; }
.two > section + section { border-left: 1px solid var(--line); }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } .two > section + section { border-left: 0; border-top: 1px solid var(--line); } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--hair); }
.icon-del { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; display: grid; place-items: center; }
.icon-del svg { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-del:hover { background: var(--red-soft); }
.weeks { list-style: none; margin: 0; padding: 0; }
.week { display: grid; grid-template-columns: 64px minmax(0, 1fr) 128px; align-items: center; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--hair); }
.week:first-child { border-top: 0; }
.week .wk { font-size: .8rem; font-weight: 600; color: var(--muted); }
.week-open { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.week-open b { display: block; color: var(--navy); font-size: .95rem; }
.week-open small { display: block; color: var(--muted); font-size: .8rem; }
.week-open:hover .chev { stroke: var(--navy); transform: translateX(2px); }
.week-empty { color: var(--faint); font-size: .9rem; }
.week .right { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: .6rem; justify-items: center; }
.week .right svg, .week .chev-slot { width: 16px; height: 16px; }
.subs { overflow: hidden; }
.sub-row { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(170px, 1.3fr) 96px 132px 104px 20px; align-items: center; gap: 1rem; padding: .85rem 1.2rem; border-top: 1px solid var(--hair); }
.sub-row.nt { grid-template-columns: minmax(200px, 1.6fr) 110px 150px 120px 20px; }
.sub-row:first-child { border-top: 0; }
.sub-row.th { padding-top: .6rem; padding-bottom: .6rem; background: #fafbfd; font-size: .76rem; font-weight: 600; color: var(--muted); }
.sub-row.click { cursor: pointer; }
.sub-row.click:hover { background: #fafcff; }
.sub-row.click:hover .chev { stroke: var(--navy); transform: translateX(2px); }
.who b { display: block; color: var(--navy); font-weight: 600; font-size: .92rem; }
.who small { color: var(--muted); font-size: .8rem; }
.task b { display: block; color: var(--ink); font-weight: 500; font-size: .9rem; }
.task small { color: var(--muted); font-size: .8rem; }
.score { font-weight: 700; color: var(--navy); font-size: .95rem; font-variant-numeric: tabular-nums; }
.score small { color: var(--faint); font-weight: 500; font-size: .76rem; }
.up { margin-left: .3rem; color: var(--green); font-weight: 600; font-size: .8rem; }
.none { color: var(--faint); }
.time { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.col-label { display: none; }
@media (min-width: 901px) { .cell-extra { display: contents; } }
/* Kolom status dan waktu dipusatkan agar pil dan teks biasa selalu sejajar */
@media (min-width: 901px) {
  .sub-row > .who, .sub-row > .task, .sub-row.th > span:nth-child(1), .sub-row.th > span:nth-child(2) { justify-self: start; text-align: left; }
  .sub-row.nt.th > span:nth-child(2) { justify-self: center; text-align: center; }
  .sub-row > div:not(.who):not(.task), .sub-row > .time, .cell-extra > span,
  .sub-row.th > span:nth-child(n+3) { justify-self: center; text-align: center; }
}
@media (max-width: 900px) { .sub-row, .sub-row.nt { grid-template-columns: 1fr auto; gap: .35rem .8rem; } .sub-row.th { display: none; } .cell-extra { grid-column: 1 / -1; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; } .col-label { display: inline; color: var(--faint); font-size: .76rem; margin-right: .25rem; } }
.table-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--hair); }
.search { display: flex; align-items: center; gap: .5rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 10px; min-width: 220px; background: var(--surface); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2; }
.search input { border: 0; outline: 0; width: 100%; font-size: .88rem; background: none; }
.tabs-row { margin-bottom: 1rem; }
.assign-info { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .assign-info { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.assign-info h3 { margin: 0 0 .5rem; font-size: .88rem; color: var(--navy); }
.assign-info p { margin: 0 0 .6rem; }
.numbered { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.detail { display: grid; gap: 1.25rem; }
@media (min-width: 1100px) { .detail { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .detail .right { position: sticky; top: 1.5rem; } }
.stack { display: grid; gap: 1.25rem; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .6rem; }
.metric { padding: .75rem .85rem; background: var(--soft); border-radius: 12px; }
.metric span { display: block; font-size: .76rem; color: var(--muted); }
.metric b { display: block; margin-top: .15rem; font-size: 1.15rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.metric small { font-size: .74rem; color: var(--faint); }
.words { margin: .9rem 0 0; display: grid; gap: .45rem; }
.word { display: grid; grid-template-columns: 110px 1fr auto; gap: .8rem; align-items: center; font-size: .86rem; }
.word b { color: var(--navy); }
.word .t { height: 6px; border-radius: 99px; background: #edf1f6; overflow: hidden; }
.word .t i { display: block; height: 100%; background: var(--amber-line); border-radius: inherit; }
.word em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8rem; }
.fbs h3 { margin: 1rem 0 .4rem; font-size: .88rem; color: var(--navy); }
.fbs h3:first-child { margin-top: 0; }
.fbs ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .9rem; }
.source { margin: .7rem 0 0; font-size: .82rem; color: var(--muted); }
.source.adjusted { color: var(--blue); font-weight: 500; }
.crit { list-style: none; margin: 1rem 0 0; padding: 0; }
.crit li { padding: .7rem 0; border-top: 1px solid var(--hair); }
.crit-row { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; font-size: .9rem; }
.crit-row b { font-variant-numeric: tabular-nums; color: var(--navy); }
.crit-row b small { color: var(--navy); font-weight: 400; font-size: .78rem; }
.crit p { margin: .35rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.crit input { width: 64px; padding: .3rem .45rem; border: 1px solid var(--line); border-radius: 8px; text-align: right; font-weight: 600; }
.crit input[aria-invalid="true"] { border-color: var(--red); background: var(--red-soft); }
.edit-bar { display: grid; gap: .6rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--hair); }
.error { margin: 0; font-size: .82rem; color: var(--red); }
.saved { font-size: .82rem; color: var(--green); font-weight: 500; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .84rem; }
.history li { display: flex; justify-content: space-between; gap: .8rem; }
.history b { color: var(--navy); }
.form-card { max-width: 760px; padding: 1.5rem 1.6rem; display: grid; gap: 1.2rem; }
.form-card fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; }
.form-card legend { padding: 0; margin-bottom: .4rem; font-size: 1rem; font-weight: 700; color: var(--navy); }
.weeks-pick { display: flex; gap: .4rem; }
.weeks-pick button { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 700; color: var(--navy); }
.weeks-pick button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.weeks-pick button:disabled { opacity: .4; cursor: not-allowed; }
.fixed-note { padding: .8rem .9rem; border-radius: 12px; background: var(--soft); font-size: .86rem; color: var(--muted); }
.backdrop { position: fixed; inset: 0; background: rgb(19 34 56 / .35); display: grid; place-items: center; padding: 1rem; z-index: 40; }
.dialog { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 1.4rem 1.5rem; background: var(--surface); border-radius: 18px; box-shadow: 0 24px 60px -20px rgb(19 34 56 / .45); display: grid; gap: 1rem; }
dialog.dialog { display: none; margin: auto; border: 0; }
dialog.dialog[open] { display: grid; }
dialog.dialog::backdrop { background: rgb(19 34 56 / .38); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; }
.x { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; font-size: 1.3rem; color: var(--muted); }
.x:hover { background: var(--soft); }
.drop { padding: 1.4rem; border: 1.5px dashed #c9d4e6; border-radius: 14px; text-align: center; color: var(--muted); }
.drop code { background: var(--soft); padding: .1rem .35rem; border-radius: 6px; font-size: .84rem; color: var(--navy); }
.prev-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--hair); font-size: .88rem; }
.drop { display: block; cursor: pointer; }
.drop > * { display: block; margin: .25rem auto; }
.drop input { position: absolute; opacity: 0; pointer-events: none; }
.settings { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dl { display: grid; gap: .6rem; margin: .8rem 0 0; }
.dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; color: var(--navy); }
.file { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; padding: .55rem .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.file svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file b { display: block; font-size: .86rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { font-size: .76rem; color: var(--muted); }
.file div { min-width: 0; }
.mic-symbol { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mic .sq { display: none; }
.mic.stop .mic-symbol, .mic.is-recording .mic-symbol { display: none; }
.mic.stop .sq, .mic.is-recording .sq { display: block; }
.pbars { flex: 1; width: 100%; height: 34px; min-width: 0; cursor: pointer; }
.mode { position: relative; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode.is-disabled { opacity: .5; cursor: not-allowed; }
.mode.on .r { border: 5px solid var(--blue); }
.view[hidden] { display: none !important; }
.status-wave { min-height: 56px; }
.media { width: 100%; border-radius: 14px; background: #0e1726; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; }

/* Gerak minimal: diperlambat dan ditenangkan, tidak dimatikan, agar tetap terlihat sedang berjalan */
@media (prefers-reduced-motion: reduce) {
  .wave.ghost i { animation-duration: 5s; }
  .pulse { animation-duration: 2.6s; }
  .view { animation: none; }
}

/* Tautan yang memakai komponen mockup tidak boleh bergaris bawah */
.s-row, .sub-row, .class-link, .week-open, .btn, .link, .back, .chev, .logo { text-decoration: none; }
.s-row, .sub-row, .class-link, .week-open { color: inherit; }
.logo-img { display: block; width: auto; height: 25px; }

/* Bar kriteria tumbuh dari kiri, sesuai mockup */
@keyframes grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .stage .crit .t i { animation-duration: 1.4s; } }

/* Halaman masuk: kembali ke rancangan sebelumnya, memakai berkas logo asli */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: min(100%, 470px); margin: 0; padding: 0; overflow: hidden; border: 1px solid #dfe2e7; border-radius: 14px; background: #f5f6f8; box-shadow: 0 18px 44px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04); }
.auth-content { width: 100%; padding: 3rem 2.5rem; text-align: center; }
.auth-identity { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin: 0 auto 1.75rem; }
.auth-program { display: inline-flex; align-items: center; gap: .45rem; color: var(--blue); font-size: 1.2rem; font-weight: 650; letter-spacing: -.025em; }

.auth-logo { display: block; width: min(100%, 200px); height: auto; margin: 0 auto; }
.auth-content h1 { margin: 0; color: #0f172a; font-size: clamp(1.7rem, 3.4vw, 2.05rem); font-weight: 700; letter-spacing: -.05em; }
.auth-description { margin: .6rem 0 0; color: #64748b; font-size: .95rem; line-height: 1.6; }
.auth-card .google-button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; min-height: 48px; margin: 1.75rem 0 0; padding: .75rem 1.5rem; border: 1px solid #d2d6dc; border-radius: 8px; background: #e8eaed; color: #1f2937; font: inherit; font-weight: 500; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
.auth-card .google-button:hover:not(:disabled) { background: #dfe2e7; border-color: #c4cad3; box-shadow: 0 2px 5px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .55); }
.auth-card .google-button:focus-visible { outline: 3px solid #c9d9ff; outline-offset: 2px; }
.auth-card .google-button:disabled { cursor: wait; opacity: .72; }
.auth-card .google-button .google-mark { position: static; display: block; width: 1.25rem; height: 1.25rem; }
.google-button-fallback { cursor: not-allowed; }
.google-mark { display: block; width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }
.auth-card .form-error { text-align: left; }
.form-error { color: var(--red); font-size: .88rem; margin-top: .8rem; }
.auth-privacy { margin: 1.25rem 0 0; color: #94a3b8; font-size: .8rem; }
.auth-privacy a { color: inherit; }
/* Legenda warna transkrip, sesuai mockup stLearner */
.key { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--hair); font-size: .76rem; color: var(--muted); }
.key span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .35rem; border-radius: 3px; vertical-align: -1px; }
.key .k1::before { background: var(--amber-soft); border-bottom: 2px solid var(--amber-line); }
.key .k2::before { background: var(--blue); }

/* Halaman assignment: rancangan sebelum port, dipulihkan dari riwayat */
.staff-hero-row > .button { flex: 0 0 auto; min-width: 142px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem .9rem; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: .35rem; color: var(--navy); font-size: .84rem; font-weight: 700; }
.form-field .input { margin-top: 0; }
.field-error { margin-top: .35rem; color: var(--red); font-size: .76rem; }
.field-error ul { margin: 0; padding-left: 1rem; }
.class-dialog { width: min(100% - 2rem, 460px); max-width: 460px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
.class-dialog::backdrop { background: rgba(19, 34, 56, .38); }
.class-dialog-panel { overflow: hidden; border: 1px solid #e0e6ef; border-radius: 16px; background: var(--surface); }
.class-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.4rem 0; }
.class-dialog-header h2 { margin-bottom: 0; font-size: 1.2rem; }
.dialog-close { display: inline-grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; margin: -.3rem -.35rem 0 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.55rem; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--canvas); color: var(--navy); }
.dialog-close:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 1px; }
.class-dialog-form { padding: 1rem 1.4rem 1.4rem; }
.class-dialog-help { margin: 0 0 1rem; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.class-dialog-actions { display: flex; justify-content: flex-end; gap: .55rem; margin-top: 1.4rem; }
.import-dialog .class-dialog-panel { border-radius: 16px; }
.import-dialog .class-dialog-header { padding: 1.45rem 1.5rem 0; }
.import-dialog .class-dialog-header > div { min-width: 0; }
.import-dialog .class-dialog-header h2 { font-size: 1.2rem; }
.import-dialog .class-dialog-form { padding: 1.25rem 1.5rem 1.5rem; }
.import-dialog .class-dialog-actions { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.import-dialog .class-dialog-actions .button { min-height: 38px; padding: .5rem .8rem; border-radius: 7px; font-size: .84rem; }
.import-preview-actions .button { white-space: nowrap; }
.staff-empty .button { width: 100%; margin-left: 0; }
.class-dialog-header, .class-dialog-form { padding-inline: 1.1rem; }
.import-dialog .class-dialog-header, .import-dialog .class-dialog-form { padding-inline: 1.1rem; }
.import-preview-actions, .import-preview-actions form, .import-preview-actions .button { width: 100%; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); padding: .62rem 1rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.button:hover { background: #f8faff; text-decoration: none; }
.button-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-hover); }
.button-small { padding: .35rem .65rem; font-size: .84rem; }
.button-danger-primary { border-color: var(--red); background: var(--red); color: #fff; }
.button-danger-primary:hover { border-color: #a52f3e; background: #a52f3e; color: #fff; }
.button-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.button-quiet:hover { border-color: transparent; background: transparent; color: var(--navy); text-decoration: underline; }
.recording-preview-actions .button { min-height: 40px; padding: .55rem .75rem; font-size: .8rem; }
.button-secondary { border-color: var(--navy); background: var(--navy); color: #fff; }
.button-secondary:hover { border-color: var(--navy-soft); background: var(--navy-soft); color: #fff; }
.button:disabled, .record-button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.button-danger-icon { width: 2rem; min-width: 2rem; min-height: 2rem; padding: .35rem; border-color: transparent; background: transparent; color: var(--red); }
.button-danger-icon svg { width: 1rem; height: 1rem; }
.button-danger-icon:hover { border-color: var(--red-soft); background: var(--red-soft); color: #a52f3e; }
.plan-row-empty .button { flex: 0 0 auto; }
.textarea, .input { width: 100%; border: 1px solid #c8d2e1; border-radius: 7px; padding: .65rem .7rem; color: var(--ink); font: inherit; margin-top: .35rem; background: #fff; }
.textarea:focus, .input:focus { border-color: var(--blue); outline: 3px solid var(--blue-soft); }
.class-detail-header-row > .button { flex: 0 0 auto; }
.class-detail-empty .button { margin-top: .85rem; }
.assignment-authoring-form { display: grid; gap: .9rem; margin-top: 1.15rem; }
.authoring-section { min-width: 0; margin: 0; padding: 1.2rem 1.25rem 1.3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.authoring-section legend { padding: 0 .35rem; color: var(--navy); font-size: 1.05rem; font-weight: 750; }
.authoring-section h2 { margin-bottom: .3rem; font-size: 1.05rem; }
.assignment-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .35rem; }
.assignment-form-main-actions { display: flex; justify-content: flex-end; gap: .55rem; }
.class-detail-header-row .heading-actions .button { width: 100%; }
.assignment-form-actions .button { width: 100%; }
.page-heading .button { align-self: flex-start; }
.heading-actions .button, .heading-actions form { flex: 1 1 140px; }
.heading-actions form .button { width: 100%; }
.setup-panel .button { flex: 1 1 140px; }
.form-actions .button { width: 100%; }
.assignment-page {
  width: min(100%, 820px);
}
.assignment-page-header {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.assignment-page-header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.45rem);
  letter-spacing: -.045em;
}
.assignment-week-field {
  width: fit-content;
  max-width: 100%;
}
.assignment-week-options {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 2.75rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}
.assignment-week-field .assignment-week-option {
  position: relative;
  display: grid;
  margin: 0;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}
.assignment-week-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: .42;
}
.assignment-week-option:has(input:disabled) span {
  background: transparent;
  color: var(--muted);
}
.assignment-week-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.assignment-week-option span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: inherit;
}
.assignment-week-option:has(input:checked) span {
  background: var(--navy);
  color: #fff;
}
.assignment-week-option:has(input:focus-visible) span {
  outline: 3px solid var(--blue-soft);
  outline-offset: 1px;
}
.staff-adjustment .input, .staff-mentor-note-card .textarea, .staff-adjustment .textarea { margin-top: 0; }
.staff-adjustment .button, .staff-mentor-note-card .button { width: 100%; }

/* Umpan balik hover untuk setiap baris dan tautan yang bisa diklik */
.tbl .row:has(.class-link):hover { background: #fafcff; }
.class-link:hover { color: var(--blue); }
.week-open:hover { background: #fafcff; }
.week-open:hover b { color: var(--blue); }
.s-row:hover { background: #fafcff; }
.s-row:hover .chev { stroke: var(--navy); transform: translateX(2px); }
.sub-row.click:active { background: #f5f8ff; }
.chev { transition: transform 150ms ease, stroke 150ms ease; }
.btn:hover { border-color: #c4cede; background: #fafcff; }
.btn-primary:hover { filter: brightness(1.08); background: var(--blue); }
.icon-del:hover { background: var(--red-soft); color: var(--red); }
.seg a:hover { color: var(--navy); }

/* Titik berdenyut hanya pada langkah yang sedang berjalan */
.stepper span:not(.now) .pulse { animation: none; background: var(--line); }
.stepper .done .pulse { display: none; }
/* Equalizer: setiap batang naik-turun, dengan jeda bertingkat sehingga
   gerakannya bergulir menyusuri gelombang. Murni CSS, tidak ada penggerak
   JavaScript yang bisa gagal start atau ter-restart oleh polling status. */
.wave.scan i {
  max-width: 9px; border-radius: 3px; transform-origin: center;
  background: var(--blue);
  animation: equalize 1100ms ease-in-out infinite;
}
@keyframes equalize {
  0%, 100% { transform: scaleY(.35); opacity: .3; }
  50%      { transform: scaleY(1);   opacity: .9; }
}
/* Gerak minimal: tempo tetap seperti yang disetujui, ayunannya yang ditenangkan. */
@media (prefers-reduced-motion: reduce) {
  @keyframes equalize { 0%, 100% { transform: scaleY(.62); opacity: .4; } 50% { transform: scaleY(1); opacity: .75; } }
}

/* Kartu kelas siswa: judul sejajar dengan isi barisnya, seperti tabel staff */
.s-class { padding: 0; }
.s-class .section-head { margin: 0; padding: 1.1rem 1.2rem .35rem; }
.s-class .section-head h2 { font-size: 1rem; }
.s-class .section-head .muted { font-size: .82rem; }
.s-row small { margin-bottom: .1rem; }

/* ---------- Responsif: halaman siswa ---------- */
@media (max-width: 560px) {
  .logo-img { height: 21px; }
  .topbar-inner { min-height: 56px; padding: 0 1rem; }
  .page { padding: 1.25rem 1rem 3rem; }
  .task h1 { margin-bottom: .8rem; }
  .task p { font-size: .95rem; }
  .phrases-title { margin-top: 1.5rem; font-size: 1rem; }
  .phrases { padding: .2rem .9rem; }
  .phrases li { padding: .6rem 0; }
  /* Judul boleh menyusut, status tidak boleh terjepit */
  .s-row { gap: .75rem; padding: .9rem 1rem; }
  .s-row > span:first-child { min-width: 0; }
  .s-row b { font-size: .95rem; }
  .s-class .section-head { padding: .9rem 1rem .3rem; }
  .s-state { gap: .5rem; }
  /* Kartu rekam mengisi lebar penuh dengan jarak tepi yang wajar */
  .stage, .body { padding-left: 1.1rem; padding-right: 1.1rem; }
  .bigtime { font-size: 2.4rem; }
}

/* ---------- Responsif: halaman staff ---------- */
@media (max-width: 640px) {
  .shell { padding: 1.25rem 1rem 3rem; gap: .9rem; }
  /* Navigasi jadi bilah bawah: empat tujuan selalu terlihat dan terjangkau
     jempol, dan konten mendapat seluruh ruang atas. */
  .side {
    position: fixed; inset: auto 0 0 0; z-index: 40; display: block;
    max-height: none; overflow: visible; padding: .3rem .4rem;
    padding-bottom: calc(.3rem + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px -14px rgb(19 34 56 / .5);
  }
  .side nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: visible; }
  .side hr { display: none; }
  .side-icon { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .side a {
    display: grid; justify-items: center; align-content: center; gap: .18rem;
    padding: .45rem .2rem; border-radius: 10px; font-size: .68rem; font-weight: 600;
    line-height: 1.2; text-align: center;
  }
  .side a span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .side a[aria-current="page"] { background: none; color: var(--blue); }
  .side a[aria-current="page"] .side-icon { stroke-width: 2.1; }
  /* Ruang supaya konten terakhir tidak tertutup bilah */
  .shell { padding-bottom: 5.25rem; }
  .head { gap: .6rem; margin-bottom: 1rem; }
  /* Aksi utama melebar penuh; tombol selebar teks terlihat seperti blok nyasar */
  .head > .btn, .head > form > .btn { width: 100%; justify-content: center; text-align: center; }
  .head > .btn-primary { padding: .8rem 1rem; }
  /* Label kolom muncul karena kepala tabel disembunyikan di ponsel */
  .sub-row .col-label { display: block; margin: 0 0 .1rem; color: var(--faint); font-size: .7rem; font-weight: 600; }
  .sub-row > .time { display: flex; align-items: baseline; gap: .4rem; }
  .sub-row > .time .col-label { margin: 0; }

  /* Dua kolom dengan ukuran huruf wajar; tiga kolom di layar ponsel memaksa
     label mengecil sampai sulit dibaca. Kartu ganjil terakhir mengisi penuh. */
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .stat-cards > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat-card { padding: .95rem 1rem; }
  .stat-card span { font-size: .82rem; }
  .stat-card b, .stat-card strong { margin: .35rem 0 .15rem; font-size: 1.75rem; }
  .stat-card small { font-size: .78rem; }

  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-strip div { padding: .8rem .9rem; }
  .kpi-strip div:nth-child(odd) { border-left: 0; }
  .kpi-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpi-strip b { font-size: 1.45rem; }
  /* Jumlah ganjil: yang terakhir mengisi penuh agar tidak menggantung setengah */
  .kpi-strip div:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Baris submission ditumpuk: identitas di atas, status di bawahnya */
  .sub-row, .sub-row.nt { grid-template-columns: 1fr auto; row-gap: .45rem; padding: .85rem 1rem; }
  .sub-row > .who, .sub-row > .task { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .sub-row > div:not(.who):not(.task), .sub-row > .time { justify-self: start; text-align: left; }
  .sub-row > .time { grid-column: 1 / -1; font-size: .78rem; }
  .sub-row .chev { grid-row: 1; grid-column: 2; }

  .tbl .row { grid-template-columns: minmax(0, 1fr) auto; padding: .85rem 1rem; }
  .weeks .week { grid-template-columns: 52px minmax(0, 1fr) auto; gap: .6rem; }
  .week .right { grid-template-columns: minmax(0, 1fr) 14px; }
}
