/* ============ Learning Journey – Stylesheet ============ */
:root {
  --primary: #000000;
  --on-primary: #ffffff;
  --accent: #ffffff;
  --on-accent: #000000;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --border: #e4e4e4;
  --success: #15803d;
  --success-bg: #e8f6ee;
  --danger: #b91c1c;
  --danger-bg: #fdecec;
  --warning: #a16207;
  --warning-bg: #fdf6e3;
  --info: #111111;
  --info-bg: #f0f0f0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --sidebar: 250px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.55;
}
a { color: var(--text); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.1rem; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.print-only { display: none; }
.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .5rem; }
.setup-steps li { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; }
.setup-steps .step-no { width: 26px; height: 26px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; background: #eef1f6; color: var(--muted); }
.setup-steps li.done { background: #f2f2f2; border-color: #d6d6d6; }
.setup-steps li.done .step-no { background: var(--primary); color: var(--on-primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.05rem; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  background: #ececec; color: var(--text); text-decoration: none !important;
  transition: filter .15s, background .15s; min-height: 40px;
}
.btn:hover { filter: brightness(.96); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-outline { background: #fff; border-color: #cfcfcf; color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: .35rem .7rem; font-size: .82rem; min-height: 32px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--danger); cursor: pointer; font: inherit; }

/* ---------- Alerts / badges ---------- */
.alert { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #c4e8d3; }
.alert-danger { background: var(--danger-bg); color: var(--danger); border-color: #f5c6c6; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #f1e1b0; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #c9dafc; }
.badge {
  display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem;
  font-weight: 600; background: #ececec; color: #444; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--primary); color: var(--on-primary); }

/* ---------- Cards / grid ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.25rem;
}
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.card-header h2, .card-header h3 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: .82rem; }
.stat .value { font-size: 1.65rem; font-weight: 700; margin-top: .2rem; }
.stat .sub { font-size: .8rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.form label > input, .form label > select, .form label > textarea { margin-top: .35rem; }
input[type=text], input[type=password], input[type=url], input[type=email], input[type=search], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], input[type=number], input[type=color], input:not([type]), select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid #cfcfcf; border-radius: 8px;
  font: inherit; font-weight: 400; background: #fff; color: var(--text); min-height: 42px;
}
input[type=color] { padding: .2rem; height: 42px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(0,0,0,.18); border-color: var(--text); }
.check { display: flex !important; align-items: flex-start; gap: .55rem; font-weight: 500 !important; cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.help { font-weight: 400; color: var(--muted); font-size: .82rem; display: block; margin-top: .25rem; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.row-item { display: grid; grid-template-columns: 1fr 200px auto; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.row-item.course-row { grid-template-columns: 1fr auto; }

/* Activity choices */
.activity-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; }
.activity-option { border: 1px solid var(--border); border-radius: 10px; padding: .8rem .9rem; background: #fafbfd; }
.activity-option .check { margin: 0; }
.activity-option .help { margin-left: 1.7rem; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .9rem; }
th { background: #f7f7f7; font-weight: 600; color: #374151; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.center, th.center { text-align: center; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .65rem .9rem; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--text); }

/* ---------- Admin layout ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); background: var(--primary); color: var(--on-primary); position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; z-index: 40; transition: transform .2s;
}
.sidebar .brand { padding: 1.3rem 1.2rem 1.1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.14); }
.sidebar .brand .brand-sep { display: none; }
.sidebar .brand .brand-name { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.sidebar .brand img { height: 30px; width: auto; display: block; }
.brand-sep { width: 1px; align-self: stretch; background: currentColor; opacity: .35; }
.brand-name { line-height: 1.15; }
.sidebar nav { padding: .75rem .6rem; flex: 1; overflow-y: auto; }
.sidebar nav a {
  display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border-radius: 8px;
  color: rgba(255,255,255,.85); font-weight: 500; text-decoration: none; margin-bottom: 2px;
}
.sidebar nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar nav a.active { background: rgba(255,255,255,.18); color: #fff; }
.sidebar nav .nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; padding: .9rem .8rem .3rem; }
.sidebar .ico { width: 18px; height: 18px; flex: none; }
.sidebar .user { padding: .9rem 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.sidebar .user a { color: #fff; opacity: .85; }
.main { flex: 1; margin-left: var(--sidebar); min-width: 0; }
.topbar { display: none; }
.content { padding: 1.5rem 1.75rem 3rem; max-width: 1280px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }
.overlay { display: none; }

/* ---------- Public layout ---------- */
.public-header { background: var(--primary); color: var(--on-primary); }
.public-header .inner { max-width: 960px; margin: 0 auto; padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.public-header .brand { display: flex; align-items: center; gap: .75rem; color: var(--on-primary); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.public-header .brand img { height: 28px; width: auto; display: block; }
.public-header .who { font-size: .85rem; opacity: .9; text-align: right; }
.public-header .banner-right { display: flex; align-items: center; gap: .75rem; }
.public-header .brand { min-width: 0; } .public-header .banner-right { flex: 0 0 auto; }
@media (max-width: 560px) { .lj-banner .lj-install span { display: none; } .lj-banner .lj-install { padding: .4rem; } }
.public-header .who a { color: var(--on-primary); text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.container.narrow { max-width: 760px; }
.hero { background: var(--primary); color: var(--on-primary); border-top: 1px solid rgba(255,255,255,.12); padding: 2.5rem 1rem; }
.hero .inner { max-width: 960px; margin: 0 auto; }
.hero h1 { font-size: 1.9rem; margin-bottom: .5rem; }
.hero p { opacity: .9; max-width: 640px; margin: 0; }
.code-form { display: flex; gap: .5rem; margin-top: 1.25rem; max-width: 460px; }
.code-form input { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.public-footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 1.5rem 1rem 2rem; }
.training-head { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.training-head h1 { font-size: 1.3rem; margin-bottom: .3rem; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; color: var(--muted); font-size: .88rem; }
.meta span { display: inline-flex; align-items: center; gap: .4rem; }
.meta svg { width: 15px; height: 15px; flex: none; color: var(--text); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.menu-card {
  display: flex; flex-direction: column; gap: .4rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; position: relative;
}
.menu-card .num { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.menu-card h3 { margin: .3rem 0 0; }
.menu-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.menu-card .status { margin-top: auto; padding-top: .4rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.menu-card.disabled { opacity: .6; }
.menu-card:not(.disabled):hover { border-color: var(--text); }
.course-links { display: flex; flex-direction: column; gap: .4rem; margin-top: .4rem; }
.course-links .cl { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem .6rem; background: #f8f9fc; border-radius: 8px; font-size: .88rem; }

/* Questions (participant) */
.question { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .9rem; }
.question .q-text { font-weight: 600; margin-bottom: .7rem; display: flex; gap: .5rem; }
.question .q-no { color: var(--text); flex: none; }
.option { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: .45rem; cursor: pointer; }
.option:hover { background: #f8f9fc; }
.option input { margin-top: .2rem; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.option:has(input:checked) { border-color: var(--text); background: #f2f2f2; }
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.scale label { border: 1px solid var(--border); border-radius: 8px; padding: .55rem .3rem; text-align: center; cursor: pointer; font-size: .8rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.scale label strong { font-size: 1.1rem; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label:has(input:checked) { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.section-title { margin: 1.5rem 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--text); display: inline-block; }
.day-list { display: flex; flex-direction: column; gap: .55rem; }
.day { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.day.today { border-color: var(--text); }
.score-big { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; }

/* Admin question editor */
.q-editor { border: 1px solid var(--border); border-radius: 10px; padding: .9rem; margin-bottom: .8rem; background: #fcfcfe; }
.q-editor .q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-weight: 700; }
.q-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .5rem; }
.q-opt { display: flex; align-items: center; gap: .45rem; }
.q-opt .letter { font-weight: 700; width: 18px; flex: none; }
.q-opt input[type=radio] { width: 20px; height: 20px; flex: none; accent-color: var(--success); cursor: pointer; }
.q-opt { padding: .15rem .3rem; border-radius: 8px; }
.q-opt:has(input[type=radio]:checked) { background: var(--success-bg); }
.q-opt:has(input[type=radio]:checked) .letter::after { content: ' ✓'; color: var(--success); }
.q-opt .letter { width: 30px; }
.q-shuffle { margin: .6rem 0 0 !important; font-size: .85rem; }
.course-block > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: .3rem 0; list-style: none; display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.course-block > summary::-webkit-details-marker { display: none; }
.course-block > summary::after { content: "▾"; color: var(--muted); }
.course-block:not([open]) > summary::after { content: "▸"; }
.eval-row { display: grid; grid-template-columns: 1fr 150px auto auto auto; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.eval-row.asmt-row { grid-template-columns: 200px 1fr 110px auto auto auto; }
.eval-row.asmt-row.fixed { grid-template-columns: 140px 1fr auto; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin: .3rem 0 .6rem; }
.likert { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: .4rem; margin-top: .5rem; }
.likert label { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .5rem .25rem; border: 1px solid var(--border); border-radius: 10px; font-size: .78rem; text-align: center; cursor: pointer; line-height: 1.2; }
.likert label:has(input:checked) { border-color: var(--primary); background: var(--primary); color: var(--on-primary, #fff); }
.likert input { margin: 0; }
.dim-bar { height: 10px; border-radius: 6px; background: var(--border); overflow: hidden; }
.dim-bar > span { display: block; height: 100%; background: var(--primary); }
.bar { height: 8px; background: #e6e6e6; border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: var(--text); border-radius: 99px; }
.link-box { display: flex; gap: .5rem; }
.link-box input { font-family: monospace; }
.qr { background: #fff; padding: .6rem; border: 1px solid var(--border); border-radius: 10px; display: inline-block; }
.toggle-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.toggle-item { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 10px; }
.essay-answer { background: #f8f9fc; border-radius: 8px; padding: .7rem .85rem; white-space: pre-wrap; margin: .4rem 0 .6rem; }
.inline-form { display: inline; }

/* Auth */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--primary); }
.auth-card { background: #fff; border-radius: 16px; padding: 2rem 1.75rem; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.auth-card.wide { max-width: 680px; }
.auth-card .logo { text-align: center; margin-bottom: 1rem; }
.auth-card .logo img { height: 72px; width: auto; }
.auth-card h1 { text-align: center; font-size: 1.35rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; }
  .main { margin-left: 0; }
  .topbar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--primary); color: var(--on-primary); position: sticky; top: 0; z-index: 20; }
  .topbar button { background: none; border: 0; color: var(--on-primary); padding: .25rem; cursor: pointer; display: flex; }
  .topbar .title { font-weight: 700; font-size: .92rem; padding-left: .7rem; border-left: 1px solid rgba(255,255,255,.35); }
  .topbar .topbar-logo { height: 22px; width: auto; }
  .content { padding: 1.1rem 1rem 3rem; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  body.has-participant .public-header .brand-sep, body.has-participant .public-header .brand-name { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.35rem; }
  .grid-2, .grid-3, .q-options { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 1fr; gap: .4rem; padding: .7rem; border: 1px solid var(--border); border-radius: 10px; }
  .row-item.course-row { grid-template-columns: 1fr auto; padding: 0; border: 0; }
  .eval-row { grid-template-columns: 1fr 1fr; padding: .7rem; border: 1px solid var(--border); border-radius: 10px; }
  .eval-row > :first-child { grid-column: 1 / -1; }
  .eval-row.asmt-row { grid-template-columns: 1fr 1fr 1fr; }
  .eval-row.asmt-row > [name="it_dim[]"], .eval-row.asmt-row > input[name="it_text[]"] { grid-column: 1 / -1; }
  .eval-row.asmt-row.fixed { grid-template-columns: 1fr; }
  .sl-dim-row { grid-template-columns: 80px 1fr !important; } .sl-dim-row > label:last-child { grid-column: 1 / -1; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .likert label { font-size: .7rem; padding: .45rem .1rem; }
  .card { padding: 1rem; border-radius: 10px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .stat .value { font-size: 1.35rem; }
  .hero { padding: 1.75rem 1rem; }
  .hero h1 { font-size: 1.45rem; }
  .code-form { flex-direction: column; }
  .page-head > .btn-group { width: 100%; }
  .scale label { font-size: .68rem; padding: .5rem .15rem; }
  .public-header .who { font-size: .78rem; }
  .public-header .brand img { height: 22px; }
  .public-header .brand { font-size: .82rem; gap: .5rem; }
  .public-header .brand-name { max-width: 6.5rem; }
  .public-header .inner { padding: .75rem 1rem; }
  .day { flex-direction: column; align-items: flex-start; }
  .link-box { flex-direction: column; }
  th, td { padding: .5rem .55rem; font-size: .84rem; }
}
@media print {
  .sidebar, .topbar, .no-print, .btn { display: none !important; }
  .main { margin: 0; }
  .print-only { display: inline; }
}

/* ---------- Dashboard peserta ---------- */
.progress-row { display: flex; align-items: center; gap: .75rem; }
.progress-row .bar.big { flex: 1; height: 12px; }
.timeline { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.tl-item { display: grid; grid-template-columns: 34px 1fr auto; gap: .75rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .75rem .9rem; }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; background: #ececec; color: #555; }
.tl-done .tl-dot { background: var(--primary); color: var(--on-primary); }
.tl-can { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.tl-can .tl-dot { background: var(--accent); color: var(--on-accent); border: 2px solid var(--text); }
.tl-missed, .tl-unscheduled { opacity: .7; }
.tl-title { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tl-lock { color: var(--warning); margin-top: .15rem; }
.rank-card { display: flex; align-items: center; gap: 1rem; background: var(--primary); color: var(--on-primary); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .75rem; }
.rank-no { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.lb-table tr.me td { background: #f2f2f2; font-weight: 600; }
@media (max-width: 640px) {
  .tl-item { grid-template-columns: 30px 1fr; }
  .tl-action { grid-column: 2; }
  .tl-action:empty { display: none; }
}

/* ---------- Presentation Panel ---------- */
.scale.scale-5 { grid-template-columns: repeat(5, 1fr); }
.qr-sm img { width: 72px; height: 72px; }
@media (max-width: 640px) { .scale.scale-5 label { font-size: .62rem; } }
.pp-head .pp-title { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.pp-head th { width: 1%; white-space: nowrap; }
.pp-guide summary { cursor: pointer; }
.pp-opt { align-items: flex-start; }
.pp-opt .pp-ind { display: block; font-weight: 400; color: var(--muted); font-size: .86rem; margin-top: .2rem; line-height: 1.45; }
.pp-opt:has(input:checked) .pp-ind { color: var(--text); }
.pp-recap td, .pp-recap th { font-size: .86rem; }

/* ---------- Matriks assign panelist ---------- */
.matrix-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.matrix-wrap { max-height: 70vh; overflow: auto; position: relative; }
.assign-matrix { border-collapse: separate; border-spacing: 0; }
.assign-matrix thead th { position: sticky; top: 0; z-index: 3; background: #f7f7f7; box-shadow: inset 0 -1px 0 var(--border); vertical-align: bottom; min-width: 110px; white-space: normal; }
.assign-matrix th:first-child, .assign-matrix td:first-child { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: inset -1px 0 0 var(--border); min-width: 170px; }
.assign-matrix thead th:first-child { z-index: 4; background: #f7f7f7; }
.assign-matrix .mx-name { display: block; font-weight: 700; color: var(--text); }
.assign-matrix .mx-actions { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); margin-top: .2rem; white-space: nowrap; }
.assign-matrix .mx-actions .link-btn { color: var(--muted); text-decoration: underline; font-size: .75rem; }
.assign-matrix .mx-actions .link-btn:hover { color: var(--text); }
.assign-matrix .mx-box { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.assign-matrix tbody tr:hover td { background: #fafafa; }
.assign-matrix tbody tr.mx-empty td:first-child strong { color: var(--danger); }
@media (max-width: 640px) { .matrix-wrap { max-height: 65vh; } .assign-matrix th:first-child, .assign-matrix td:first-child { min-width: 130px; } }
.sub-opts { margin: .55rem 0 0 1.7rem; padding: .55rem .7rem; border-left: 2px solid var(--border); display: grid; gap: .35rem; }
.sub-opts .check { margin: 0 !important; font-size: .88rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
.slot-btn { width: 100%; }
@media (min-width: 961px) {
  .tabs { flex-wrap: wrap; overflow: visible; row-gap: .1rem; }
}
