:root {
  --bg: #FAF8F6;
  --surface: #FFFFFF;
  --surface-2: #F5ECE4;
  --border: #EBE5E5;
  --text: #1C1917;
  --ink: #251C18;
  --muted: #6C6460;
  --primary: #9E1B32;
  --primary-2: #7A1426;
  --primary-soft: #FBF1F3;
  --accent: #B8263F;
  --grad: linear-gradient(135deg, #9E1B32, #B8263F);
  --grad-text: linear-gradient(90deg, #7A1426, #B8263F);
  --ok: #157f4b;      --ok-bg: #e5f5ec;
  --warn: #a35f00;    --warn-bg: #fdf1dc;
  --bad: #b42318;     --bad-bg: #fde8e6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(37, 28, 24, .04), 0 8px 24px rgba(37, 28, 24, .06);
  --serif: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.65 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 2px; }
.muted { color: var(--muted); }
.link { color: var(--primary-2); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* shell: topbar + sidebar */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.sidenav { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 14px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A817C; padding: 0 12px 8px; }
.nav-item { white-space: nowrap; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #3F3632; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; min-height: 44px; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-2); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--text); place-items: center; margin-right: 8px; }
.page { padding: 32px 32px 56px; max-width: 1180px; }
.page-head h1 { font-family: var(--serif); font-size: 32px; line-height: 1.15; margin: 10px 0 6px; }
.page-head p { margin: 0 0 22px; color: var(--muted); max-width: 640px; }

/* top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 24px; }
.topbar-in .brand { margin-right: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.user { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--muted); }
#who { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* layout */
.layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; padding: 32px 32px 56px; align-items: start; max-width: 1240px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-2); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.intro h1 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.2; margin: 14px 0 8px; letter-spacing: -.01em; }
.intro h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro p { margin: 0 0 20px; color: var(--muted); }

/* form */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .label { font-weight: 600; font-size: 14px; }
.opt { font-weight: 500; color: var(--muted); font-size: 12px; background: var(--surface-2); padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
input:not([type=radio]):not([type=checkbox]), textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; }
input::placeholder, textarea::placeholder { color: #A39A95; }
input:not([type=radio]):not([type=checkbox]):focus, textarea:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 4px #9E1B321f; }
.invalid { border-color: var(--bad) !important; }

.examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hint { font-size: 12px; color: var(--muted); }
.ex { font-size: 12px; font-weight: 600; color: var(--primary-2); background: var(--primary-soft); border: 0; border-radius: 999px; padding: 6px 12px; min-height: 30px; transition: background .15s; }
.ex:hover { background: #F5DDE2; }

.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); padding: 9px 6px; border-radius: 9px; transition: background .15s, color .15s, box-shadow .15s; }
.seg input:checked + span { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(37, 28, 24, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--primary-2); outline-offset: 1px; }

.form-err { margin: -6px 0 0; color: var(--bad); font-size: 14px; font-weight: 600; }
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 14px 18px; min-height: 50px;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 16px;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--primary-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled, .btn-more:disabled { opacity: .6; cursor: progress; }

/* results */
.results { min-width: 0; }
.empty { background: var(--surface); border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 40px 32px; text-align: center; }
.empty-art { width: 60px; height: 60px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-2); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h2 { font-size: 20px; margin: 0 0 18px; }
.how { list-style: none; padding: 0; margin: 0 auto; max-width: 440px; text-align: left; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.how li { counter-increment: s; position: relative; padding-left: 40px; color: var(--muted); font-size: 15px; }
.how li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--primary); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.how b { color: var(--text); }

.loading { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #A39A95; transition: color .2s; }
.steps li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.steps li.active { color: var(--primary); }
.steps li.active::before { border-color: var(--primary-soft); border-top-color: var(--primary-2); animation: spin .8s linear infinite; }
.steps li.done { color: var(--ok); }
.steps li.done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--ok); }
.wait { margin: 16px 0; color: var(--muted); font-size: 14px; }
.skeleton { height: 120px; border-radius: 12px; margin-top: 12px; background: linear-gradient(90deg, var(--surface-2) 25%, #EFE6DF 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

.alert { background: var(--bad-bg); color: var(--bad); border-radius: 12px; padding: 14px 16px; font-weight: 600; margin-bottom: 16px; }

.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.res-head h2 { margin: 0; font-size: 22px; }
.res-head p { margin: 2px 0 0; font-size: 14px; }
.btn-ghost { border: 1.5px solid var(--border); background: var(--surface); color: var(--text); border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 14px; min-height: 40px; transition: border-color .15s; }
.btn-ghost:hover { border-color: var(--primary-2); color: var(--primary-2); }

.cards { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; animation: rise .35s ease-out both; }
.card:nth-child(2) { animation-delay: .05s; } .card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4) { animation-delay: .15s; } .card:nth-child(5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card-body { padding: 22px 22px 18px; }
.card-top { display: flex; gap: 14px; align-items: flex-start; }
.num { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.card h3 { font-family: var(--serif); font-size: 17px; line-height: 1.5; margin: 0; font-weight: 600; color: var(--ink); }
.copy { flex: none; margin-left: auto; width: 40px; height: 40px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); display: grid; place-items: center; transition: color .15s, border-color .15s; }
.copy:hover { color: var(--primary-2); border-color: var(--primary-2); }
.copy.ok { color: var(--ok); border-color: var(--ok); }
.reason { margin: 12px 0 0 48px; color: #57504C; font-size: 14.5px; line-height: 1.7; max-width: 70ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0 48px; }
.chip { font-size: 13px; font-weight: 600; color: var(--primary); background: var(--surface-2); border-radius: 8px; padding: 4px 10px; }

.novelty { margin: 16px 0 0 48px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; }
.novelty .ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-top: 1px; }
.novelty b { display: block; font-size: 14px; }
.novelty span { font-size: 14px; }
.n-baru { background: var(--ok-bg); color: var(--ok); } .n-baru .ico { background: var(--ok); }
.n-sebagian { background: var(--warn-bg); color: var(--warn); } .n-sebagian .ico { background: var(--warn); }
.n-mirip { background: var(--bad-bg); color: var(--bad); } .n-mirip .ico { background: var(--bad); }
.n-gagal { background: var(--surface-2); color: var(--muted); } .n-gagal .ico { background: var(--muted); }
.novelty span { color: var(--text); opacity: .8; }
.novelty > div { flex: 1; }
.retry { flex: none; align-self: center; border: 1.5px solid currentColor; background: var(--surface); color: var(--primary); border-radius: 10px; padding: 6px 14px; min-height: 36px; font-weight: 700; font-size: 13px; transition: background .15s; }
.retry:hover { background: var(--primary-soft); }
.retry:disabled { opacity: .6; cursor: progress; }

.card-actions { margin: 16px 0 0 48px; display: flex; gap: 8px; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--primary); color: #fff; border-radius: 10px; padding: 10px 16px; min-height: 42px; font-weight: 600; font-size: 14px; transition: background .15s; }
.btn-outline:hover { background: var(--primary-2); }
.btn-outline[aria-expanded="true"] { background: var(--primary-soft); color: var(--primary); }
.btn-outline:disabled { opacity: .7; cursor: progress; }

.outline { border-top: 1px solid var(--border); padding: 20px 22px 22px; }
.ol-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.ol-head b { display: block; font-size: 16px; }
.ol-head span { font-size: 13px; color: var(--muted); }
.ol-copy { white-space: nowrap; flex: none; }
.ol-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.ol-bab { margin-top: 16px; }
.ol-bab h4 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--primary); letter-spacing: .02em; padding-bottom: 6px; border-bottom: 2px solid var(--primary-soft); }
.ol-sub { margin: 10px 0 0; }
.ol-sub h5 { margin: 0; font-size: 14px; font-weight: 700; }
.ol-sub ul { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.ol-sub li { margin: 3px 0; }
.ol-wait { margin: 0; color: var(--muted); font-size: 14px; }
.ol-err { margin: 0; color: var(--bad); font-weight: 600; font-size: 14px; }

.refs { border-top: 1px solid var(--border); background: #FCFAF8; }
.refs summary { list-style: none; cursor: pointer; padding: 14px 22px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--primary); }
.refs summary::-webkit-details-marker { display: none; }
.refs summary .chev { margin-left: auto; transition: transform .2s; }
.refs[open] summary .chev { transform: rotate(180deg); }
.refs summary .count { background: var(--primary-soft); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.refs ul { list-style: none; margin: 0; padding: 0 22px 10px; }
.refs li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); }
.refs li:first-child { border-top: 0; padding-top: 0; }
.ref-main { flex: 1; min-width: 0; }
.ref-t { font-weight: 600; font-size: 14px; line-height: 1.45; }
.ref-m { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ref-open { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--primary-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; min-height: 32px; }
.ref-open:hover { background: var(--primary-soft); }

.btn-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; min-height: 50px; border: 1.5px solid var(--primary); background: var(--surface); color: var(--primary); border-radius: 12px; font-weight: 600; transition: background .15s; }
.btn-more:hover { background: var(--primary-soft); }
.foot { margin: 22px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.card-actions { flex-wrap: wrap; }
.btn-cover { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); border-radius: 10px; padding: 9px 16px; min-height: 42px; font-weight: 600; font-size: 14px; transition: border-color .15s, color .15s; }
.btn-cover:hover { border-color: var(--primary-2); color: var(--primary-2); }

/* dialog sampul */
.dlg { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 64px rgba(37, 28, 24, .3); color: var(--text); background: var(--surface); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(37, 28, 24, .45); }
.dlg-head { display: flex; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--border); }
.dlg-head h2 { margin: 0; font-size: 20px; }
.dlg-head p { margin: 2px 0 0; font-size: 14px; }
.dlg-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.dlg-x:hover { color: var(--text); }
.dlg-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 24px; overflow: auto; min-height: 0; }
.sf { display: flex; flex-direction: column; gap: 14px; }
.sf select { font: inherit; font-size: 15px; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); color: var(--text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.file-btn { position: relative; cursor: pointer; display: inline-flex; align-items: center; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--primary-2); outline-offset: 2px; }
.link-btn { border: 0; background: none; color: var(--bad); font-weight: 600; padding: 6px; }
.preview { position: sticky; top: 0; align-self: start; container-type: inline-size; width: 100%; max-width: calc((100vh - 250px) * .707); justify-self: center; }
.preview-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.cover-page { width: 100%; box-sizing: border-box; aspect-ratio: 210 / 297; background: #fff; box-shadow: 0 0 0 1px var(--border), 0 6px 20px rgba(37, 28, 24, .1); overflow: hidden; }
.cover-page { --u: calc(100cqw / 210); padding: calc(var(--u) * 40) calc(var(--u) * 30) calc(var(--u) * 30) calc(var(--u) * 40); font-family: "Times New Roman", Times, serif; font-size: calc(var(--u) * 4.23); line-height: 1.15; color: #000; text-align: center; }
.cover-page p { margin: 0; overflow-wrap: anywhere; }
.cover-page img { display: inline-block; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--border); }
.dlg-foot .btn-primary { min-height: 44px; padding: 10px 18px; font-size: 15px; }


/* ---- komponen bersama halaman PPT & Sidang ---- */
.step { display: flex; align-items: center; gap: 8px; }
.step i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.sel { font: inherit; font-size: 15px; width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); color: var(--text); }
.hint-sm { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.hint-sm.err { color: var(--bad); font-weight: 600; }
.bahan-seg { margin-bottom: 12px; }
.bahan-pane { display: flex; flex-direction: column; gap: 6px; }
.bahan-empty { display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--muted); }
.bahan-empty b { color: var(--text); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 1.5px dashed #D9CFCB; border-radius: 14px; padding: 20px 14px; cursor: pointer; font-size: 14px; color: var(--muted); transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-within { border-color: var(--primary-2); background: var(--primary-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { color: var(--text); }
.drop-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-2); display: grid; place-items: center; }
.btn-sm { min-height: 42px; padding: 10px 16px; font-size: 15px; }
.more { border-top: 1px solid var(--border); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.more .sf { margin-top: 12px; }
code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: .9em; }

.swatches { display: flex; gap: 8px; }
.swatches label { flex: 1; position: relative; }
.swatches input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.swatches span { display: flex; align-items: center; gap: 8px; justify-content: center; border: 1.5px solid var(--border); border-radius: 12px; padding: 9px; font-size: 14px; font-weight: 600; }
.swatches span::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--c) 60%, var(--a) 60%); }
.swatches input:checked + span { border-color: var(--primary-2); box-shadow: 0 0 0 3px #9E1B321f; }
.swatches input:focus-visible + span { outline: 3px solid var(--primary-2); outline-offset: 2px; }

/* deck */
.deck { display: flex; flex-direction: column; gap: 18px; }
.deck { --m: #24306b; --a: #f29a1f; }
.deck[data-tema="hijau"] { --m: #0f5132; --a: #e0a526; }
.deck[data-tema="marun"] { --m: #7a1e2c; --a: #d9a441; }
.slide-tools { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 13px; }
.slide-no { font-weight: 700; color: var(--muted); margin-right: auto; }
.slide-tools button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.slide-tools button:hover { background: var(--surface-2); color: var(--text); }
.slide-tools button[data-act="del"]:hover { color: var(--bad); background: var(--bad-bg); }
.slide { container-type: inline-size; aspect-ratio: 16 / 9; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--border), var(--shadow); border-left: 2.2cqw solid var(--m); padding: 4.5cqw 5cqw; overflow: hidden; font-family: Calibri, "Segoe UI", sans-serif; }
.s-title { margin: 0; color: var(--m); font-size: 4.4cqw; line-height: 1.2; font-weight: 700; outline: none; }
.s-title::after { content: ""; display: block; width: 9cqw; height: .55cqw; background: var(--a); margin-top: 1.4cqw; }
.s-points { margin: 2.6cqw 0 0; padding-left: 3cqw; font-size: 2.7cqw; line-height: 1.45; color: #1C1917; }
.s-points li { margin-bottom: 1cqw; outline: none; }
.s-points li::marker { color: var(--m); }
[contenteditable]:hover { background: var(--primary-soft); border-radius: 4px; }
[contenteditable]:focus { background: #F8E6EA; border-radius: 4px; box-shadow: 0 0 0 2px #9E1B3244; }
mark { background: #fff1c7; color: inherit; border-radius: 3px; padding: 0 2px; }
.is-title .slide { background: var(--m); border-left: 0; border-bottom: 1.4cqw solid var(--a); display: flex; flex-direction: column; justify-content: center; }
.t-kind { color: var(--a); font-weight: 700; letter-spacing: .2em; font-size: 1.8cqw; }
.t-title { color: #fff; font-size: 4.2cqw; line-height: 1.2; margin: 1.5cqw 0 3cqw; outline: none; }
.t-title:hover, .t-title:focus { background: rgba(255,255,255,.08); }
.t-meta { color: #d9ddeb; font-size: 1.9cqw; }
.s-notes { margin-top: 8px; }
.s-notes summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--primary); padding: 6px 0; }
.s-notes textarea { font-size: 14px; min-height: 70px; }

/* sidang: setup */
.setup { max-width: 920px; margin: 0 auto; }
.setup-head h1 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; margin: 12px 0 8px; }
.setup-head h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.setup-head p { margin: 0; color: var(--muted); max-width: 680px; }
.flow { list-style: none; padding: 0; margin: 16px 0 20px; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: f; }
.flow li { counter-increment: f; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; color: var(--muted); }
.flow li::before { content: counter(f); width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.flow b { color: var(--text); }
.setup-form { gap: 26px; padding: 26px; }
.q { display: flex; flex-direction: column; gap: 10px; }
.q h2.step { font-size: 16px; margin: 0; flex-wrap: wrap; }
.q h2 .sub { font-weight: 500; font-size: 13px; color: var(--muted); }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt-card { position: relative; display: block; }
.opt-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.opt-card input:disabled { cursor: not-allowed; }
.opt-card > span { display: flex; flex-direction: column; gap: 4px; height: 100%; border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, background .15s, box-shadow .15s; }
.opt-card b { font-size: 15px; }
.opt-card small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.opt-card em { font-style: normal; font-size: 12px; color: #8A817C; }
.opt-card input:checked + span { border-color: var(--primary-2); background: var(--primary-soft); box-shadow: 0 0 0 3px #9E1B321a; }
.opt-card input:checked + span b { color: var(--primary-2); }
.opt-card input:focus-visible + span { outline: 3px solid var(--primary-2); outline-offset: 2px; }
.opt-card input:disabled + span { opacity: .5; }
.opt-card.hot input:checked + span { border-color: var(--bad); background: var(--bad-bg); box-shadow: 0 0 0 3px #b423181a; }
.opt-card.hot input:checked + span b { color: var(--bad); }
.dosen .opt-card > span { flex-direction: row; align-items: center; gap: 14px; }
.dosen .opt-card > span > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-card input[type=checkbox] + span::after { content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #D9CFCB; background: #fff; }
.opt-card input[type=checkbox]:checked + span::after { background: var(--primary-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--primary-2); }
.av { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 15px; color: #fff; background: var(--primary); }
.av.sm { width: 22px; height: 22px; font-size: 9px; display: inline-grid; vertical-align: middle; margin-right: 6px; }
.av[data-d="ratna"] { background: linear-gradient(135deg, #6d5bd0, #3446a3); }
.av[data-d="hendra"] { background: linear-gradient(135deg, #0f8a6c, #0f5132); }
.av[data-d="maya"] { background: linear-gradient(135deg, #d0567a, #8f2c4d); }
.av[data-d="bambang"] { background: linear-gradient(135deg, #d98a00, #8a4b00); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipset label { position: relative; }
.chipset input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chipset span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; color: #3F3632; transition: all .15s; }
.chipset input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chipset input:focus-visible + span { outline: 3px solid var(--primary-2); outline-offset: 2px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3 > div { display: flex; flex-direction: column; gap: 10px; }
.center { text-align: center; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 10px 12px; font-weight: 500; }
.consent input { margin-top: 2px; accent-color: var(--warn); }

/* sidang: sesi */
.live { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; min-height: calc(100vh - 140px); }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.panel-row { display: flex; gap: 14px; flex-wrap: wrap; }
.pm { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; transition: background .2s; }
.pm .av { width: 40px; height: 40px; font-size: 13px; transition: box-shadow .2s; }
.pm b { display: block; font-size: 14px; }
.pm small { font-size: 12px; color: var(--muted); }
.pm.speaking { background: var(--primary-soft); }
.pm.speaking .av { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary-2); animation: pulse 1.2s infinite; }
.pill.low { background: var(--bad-bg); color: var(--bad); }
.qa-by { display: block; font-weight: 600; font-size: 12px; color: var(--muted); margin-top: 2px; }
.live-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; }
.danger { color: var(--bad); }
.danger:hover { border-color: var(--bad); color: var(--bad); }
.chat { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: 15px; animation: rise .3s ease-out both; }
.msg p { margin: 2px 0 0; }
.msg .who { font-size: 12px; font-weight: 700; color: var(--muted); }
.msg.penguji { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.msg.mahasiswa { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.mahasiswa .who { color: #F5D5DB; }
.chat-note { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.answer { position: sticky; bottom: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: 0 -4px 24px rgba(37, 28, 24, .08), var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.status-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.status-row #statusText { margin-right: auto; }
.link-btn.plain { color: var(--primary-2); }
.orb { width: 12px; height: 12px; border-radius: 50%; background: #A39A95; flex: none; }
.orb.speak { background: var(--primary-2); animation: pulse 1s infinite; }
.orb.listen { background: var(--bad); animation: pulse 1.2s infinite; }
.orb.think { background: var(--warn); animation: pulse .8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 70% { box-shadow: 0 0 0 8px transparent; opacity: .7; } 100% { opacity: 1; } }
.answer textarea { min-height: 80px; }
.answer-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.btn-mic { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); border-radius: 10px; padding: 9px 14px; min-height: 42px; font-weight: 700; font-size: 14px; }
.btn-mic.on { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }

/* sidang: laporan */
.report { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.rep-head { display: flex; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.rep-head h1 { font-family: var(--serif); font-size: 32px; margin: 8px 0 4px; }
.rep-head p { margin: 0; color: var(--muted); }
.score { --c: var(--primary-2); flex: none; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.score::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.score b, .score span { position: relative; line-height: 1; }
.score b { font-size: 36px; }
.score span { font-size: 13px; color: var(--muted); }
.score.ok { --c: var(--ok); } .score.warn { --c: var(--warn); } .score.bad { --c: var(--bad); }
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report .panel h2 { font-size: 17px; margin: 0; }
.aspect-top { display: flex; justify-content: space-between; font-size: 14px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); margin: 6px 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary-2); border-radius: 99px; }
.aspect p { margin: 0; font-size: 13px; color: var(--muted); }
.ticks { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { position: absolute; left: 0; font-weight: 700; }
.ticks.ok li::before { content: "✓"; color: var(--ok); }
.ticks.bad li::before { content: "!"; color: var(--bad); left: 5px; }
.qa { border-top: 1px solid var(--border); padding-top: 12px; }
.qa summary { cursor: pointer; font-weight: 700; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.qa summary .num { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
.qa p { font-size: 14px; margin: 8px 0 0 36px; }
.qa .better { background: var(--ok-bg); border-radius: 10px; padding: 10px 12px; }
.transcript summary { cursor: pointer; font-weight: 700; }
.transcript p { font-size: 14px; margin: 8px 0 0; }
.rep-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 760px) {
  .rep-head { flex-direction: column; text-align: center; }
  .rep-grid { grid-template-columns: 1fr; }
  .cards2, .cards3, .grid3 { grid-template-columns: 1fr; }
  .setup-form { padding: 18px; }
  .setup-head h1 { font-size: 28px; }
  .msg { max-width: 92%; }
}
@media print {
  .topbar, .sidenav, .rep-actions { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .panel, .rep-head { box-shadow: none; }
}

/* parafrase */
.pf { max-width: 1180px; display: flex; flex-direction: column; gap: 18px; }
.pf .setup-head { max-width: 760px; }
.pf-input { gap: 16px; }
.pf-tabs { max-width: 560px; }
.pf-pane { display: flex; flex-direction: column; gap: 8px; }
.pf-pane textarea { min-height: 200px; line-height: 1.6; }
.pf-count { font-size: 13px; color: var(--muted); text-align: right; }
.drop-file { font-style: normal; font-size: 13px; font-weight: 700; color: var(--primary-2); }
.drop.has-file { border-style: solid; border-color: var(--primary-2); background: var(--primary-soft); }
.pf-input .btn-primary { align-self: flex-start; min-width: 240px; }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.legend { display: flex; gap: 12px; align-items: center; font-size: 13px; margin-bottom: 10px; flex-wrap: wrap; }
.legend .rm, .legend .add { padding: 1px 8px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pane-c { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.pane-c.res { border-color: #E9C7CE; }
.pane-h { padding: 12px 18px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.pane-c.res .pane-h { color: var(--primary-2); }
.pane-b { padding: 6px 18px 16px; font-size: 15px; line-height: 1.7; outline: none; max-height: 70vh; overflow: auto; }
.pane-b p { margin: 10px 0; }
.rm { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; border-radius: 4px; }
.add { background: var(--ok-bg); color: var(--ok); border-radius: 4px; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } .pf-input .btn-primary { width: 100%; } }

/* grup diskusi */
.nav-badge { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 2px 8px; }
.chat-page .shell { height: calc(100vh - 60px); min-height: 0; }
.dk { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 60px); min-height: 0; background: var(--surface); }
.dk-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.dk-list-head { padding: 18px 18px 10px; }
.dk-list-head h1 { margin: 0; font-size: 19px; }
.dk-list-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.dk-tabs { display: flex; border-bottom: 1px solid var(--border); }
.dk-tabs button { flex: 1; border: 0; background: none; padding: 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.dk-tabs button[aria-selected="true"] { color: var(--primary-2); border-bottom-color: var(--primary-2); }
.dk-search { padding: 10px 12px; }
.dk-search input { padding: 9px 12px; font-size: 14px; background: var(--surface-2); border-color: transparent; }
.rooms { list-style: none; margin: 0; padding: 0 0 12px; overflow: auto; flex: 1; }
.room { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; border: 0; background: none; padding: 12px 16px; border-bottom: 1px solid var(--border-soft, #F3EEEB); }
.room:hover { background: var(--surface-2); }
.room.active { background: var(--primary-soft); }
.room-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.room-top, .room-bot { display: flex; align-items: center; gap: 8px; }
.room-top b { flex: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-top small { font-size: 12px; color: var(--muted); }
.room-bot span { flex: 1; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
.rooms-empty { padding: 20px; color: var(--muted); font-size: 14px; }
.ravatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: var(--primary); }
.ravatar.ai[data-a="owl"] { background: var(--grad); }
.ravatar.ai[data-a="kuri"] { background: linear-gradient(135deg, #f29a1f, #d0567a); }
.dk-chat { display: flex; flex-direction: column; min-height: 0; background: #F7F1EC; }
.dk-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--border); }
.dk-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dk-head-t b { font-size: 16px; }
.dk-head-t span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-back { display: none; border: 0; background: var(--surface-2); width: 38px; height: 38px; border-radius: 10px; place-items: center; }
.dk-prof { flex: none; }
.dk-msgs { flex: 1; overflow: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.m { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; }
.m .ravatar { width: 34px; height: 34px; font-size: 12px; }
.m.mine { align-self: flex-end; }
.m-bub { background: var(--surface); border-radius: 14px; padding: 9px 13px 6px; box-shadow: 0 1px 2px rgba(37, 28, 24,.08); min-width: 0; }
.m.mine .m-bub { background: #F8E6EA; }
.m.ai .m-bub { border: 1px solid #EBE5E5; }
.m-who { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 13px; margin-bottom: 2px; }
.m-who b { color: var(--primary-2); }
.m.ai .m-who b { color: var(--accent); }
.m-who span { font-size: 11px; color: var(--muted); }
.ai-tag { font-size: 10px !important; font-weight: 700; color: var(--primary-2) !important; background: var(--primary-soft); border-radius: 4px; padding: 0 5px; }
.m-quote { border-left: 3px solid #22c55e; background: rgba(37, 28, 24,.04); border-radius: 6px; padding: 5px 9px; margin: 4px 0 6px; font-size: 12px; display: flex; flex-direction: column; }
.m-quote b { color: #15803d; }
.m-quote span { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-text { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.m-text a { color: var(--primary-2); font-weight: 700; text-decoration: none; }
.m-text a:hover { text-decoration: underline; }
.mention { color: var(--accent); }
.m-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 2px; }
.m-foot time { font-size: 11px; color: var(--muted); }
.m-reply { border: 0; background: none; padding: 2px 0; font-size: 11px; font-weight: 700; color: var(--primary-2); opacity: 0; transition: opacity .15s; }
.m:hover .m-reply, .m-reply:focus-visible { opacity: 1; }
.dk-typing { padding: 4px 24px 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.dk-compose { background: var(--surface); border-top: 1px solid var(--border); padding: 10px 16px 8px; }
.reply-bar { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-left: 3px solid var(--primary-2); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; font-size: 13px; }
.reply-bar div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reply-bar span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar button { border: 0; background: none; font-size: 20px; color: var(--muted); width: 32px; height: 32px; }
.compose-row { display: flex; gap: 10px; align-items: flex-end; }
.compose-row textarea { resize: none; min-height: 46px; max-height: 160px; border-radius: 14px; }
.btn-send { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.btn-send:hover { background: var(--primary-2); }
.btn-send:disabled { opacity: .6; }
.dk-compose .hint-sm { margin: 6px 2px 0; font-size: 12px; }
.dlg-sm { width: min(440px, calc(100vw - 32px)); }
.dlg-pad { padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1200px) {
  .dk { grid-template-columns: 280px minmax(0, 1fr); }
  .dk-prof { display: none; }
}
@media (max-width: 900px) {
  .dk { grid-template-columns: minmax(0, 1fr); }
  .dk-chat { display: none; }
  body.in-chat .dk-list { display: none; }
  body.in-chat .dk-chat { display: flex; }
  .dk-back { display: grid; }
  .m { max-width: 92%; }
  .dk-prof { display: none; }
  .m-reply { opacity: 1; }
}

/* tulis & sitasi */
.tl-list { max-width: 980px; }
.tl-list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.tl-list-head h1 { font-family: var(--serif); font-size: 32px; margin: 10px 0 6px; }
.tl-list-head p { margin: 0; max-width: 620px; }
.docs { display: flex; flex-direction: column; gap: 8px; }
.doc-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; transition: border-color .15s; }
.doc-row:hover { border-color: var(--primary-2); }
.doc-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-2); display: grid; place-items: center; flex: none; }
.doc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-t small { color: var(--muted); font-size: 13px; }
.doc-del { font-size: 13px; font-weight: 700; color: var(--bad); padding: 6px 10px; border-radius: 8px; }
.doc-del:hover { background: var(--bad-bg); }
.tl { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; padding: 20px 24px 40px; align-items: start; }
.tl-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tl-top { display: flex; align-items: center; gap: 10px; }
.tl-title { flex: 1; font: 700 18px/1.3 var(--serif) !important; border-color: transparent !important; background: transparent !important; padding: 6px 8px !important; }
.tl-title:hover, .tl-title:focus { background: var(--surface) !important; border-color: var(--border) !important; }
.tl-save { font-size: 13px; white-space: nowrap; }
.tl-toolbar { position: sticky; top: 60px; z-index: 3; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 6px; }
.tl-toolbar button { min-width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 15px; }
.tl-toolbar button:hover:not(:disabled) { background: var(--surface-2); }
.tl-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.tl-toolbar .tl-cite { background: var(--primary); color: #fff; padding: 0 14px; font-weight: 700; font-size: 14px; }
.tl-toolbar .tl-cite:hover:not(:disabled) { background: var(--primary-2); }
.tl-toolbar .tl-cite:disabled { opacity: .45; cursor: not-allowed; }
.tl-toolbar .tl-plain { padding: 0 12px; font-weight: 600; font-size: 14px; }
.tl-paper { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 48px 56px; min-height: 60vh; }
.tl-editor { outline: none; font: 16px/1.85 "Times New Roman", Times, serif; color: #1C1917; min-height: 40vh; }
.tl-editor:empty::before { content: attr(data-ph); color: #A39A95; }
.tl-editor p { margin: 0 0 12px; text-align: justify; }
.tl-editor h2 { font: 700 18px/1.4 "Times New Roman", serif; margin: 20px 0 10px; }
.cite { background: var(--primary-soft); color: var(--primary-2); border-radius: 4px; padding: 0 2px; cursor: pointer; white-space: nowrap; }
.cite:hover { background: #fde8e6; color: var(--bad); }
.tl-refs { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; }
.tl-refs h3 { text-align: center; font: 700 16px "Times New Roman", serif; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
.ref-list { list-style: none; margin: 0; padding: 0; font: 15px/1.7 "Times New Roman", serif; }
.ref-list li { padding-left: 36px; text-indent: -36px; margin-bottom: 8px; overflow-wrap: anywhere; }
.tl-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 92px); overflow: auto; }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.tl-card h2 { font-size: 16px; margin: 0 0 10px; }
.tl-card.none p { margin: 6px 0 0; font-size: 14px; }
.tl-claim { background: var(--primary-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.tl-claim span { font-size: 12px; font-weight: 700; color: var(--primary-2); text-transform: uppercase; letter-spacing: .05em; }
.tl-claim p { margin: 2px 0 0; }
#cands { display: flex; flex-direction: column; gap: 10px; }
.cand { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.cand-top { display: flex; justify-content: space-between; font-size: 12px; }
.fit { font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.fit-3 { background: var(--ok-bg); color: var(--ok); }
.fit-2 { background: var(--warn-bg); color: var(--warn); }
.cand h4 { margin: 8px 0 4px; font-size: 14px; line-height: 1.4; }
.cand-meta { margin: 0; font-size: 12px; color: var(--muted); }
.cand-why { margin: 8px 0; font-size: 13px; }
.cand details summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--primary); }
.cand details p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.cand-act { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cand-act a { font-size: 13px; font-weight: 700; color: var(--primary-2); text-decoration: none; }
.btn-xs { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.lib { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.lib li { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.lib li span { flex: 1; }
.tag-used { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); background: var(--ok-bg); border-radius: 6px; padding: 1px 6px; flex: none; }
.float-cite { position: absolute; z-index: 30; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 14px; box-shadow: 0 6px 20px rgba(37, 28, 24,.25); }
@media (max-width: 1100px) { .tl { grid-template-columns: 1fr; } .tl-side { position: static; max-height: none; } }
@media (max-width: 640px) { .tl { padding: 12px; } .tl-paper { padding: 22px 18px; } .tl-list-head { flex-direction: column; } }

/* proyek penelitian */
.pj-list { max-width: 980px; }
.pj-new { gap: 12px; margin-bottom: 24px; }
.pj-new .btn-primary { align-self: flex-start; }
.pj-h { font-size: 18px; margin: 0 0 10px; }
a.doc-row { text-decoration: none; color: inherit; }
body.focus .shell { grid-template-columns: minmax(0, 1fr); }
body.focus .sidenav { display: none; }
.pj { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.pj:has(.pj-side:not([hidden])) { grid-template-columns: 260px minmax(0, 1fr) 360px; }
.pj-nav { background: #F5ECE4; border-right: 1px solid var(--border); padding: 16px 12px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.pj-back { font-size: 13px; font-weight: 700; color: var(--primary-2); text-decoration: none; padding: 0 6px; }
.pj-title { padding: 0 6px; display: flex; flex-direction: column; gap: 2px; }
.pj-title b { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pj-title small { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .05em; }
.pj-progress { background: #fff; border-radius: 12px; padding: 12px 14px; }
.pj-progress b { font-size: 14px; }
.pj-progress .bar i { background: var(--ok); }
.sec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sec { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: none; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; color: #3F3632; min-height: 42px; }
.sec span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec:hover { background: rgba(255,255,255,.6); }
.sec.active { background: var(--primary); color: #fff; }
.sec em { font-style: normal; font-size: 12px; color: var(--muted); }
.sec.active em { color: #E9C7CE; }
.sec .ok { font-style: normal; color: var(--ok); font-weight: 700; }
.sec.active .ok { color: #9ff0c1; }
.sec-sep { height: 1px; background: #E2D7D2; margin: 8px 6px; }
body.generating .sec:not(.active) { opacity: .5; pointer-events: none; }
.pj-main { min-width: 0; padding: 16px 28px 40px; display: flex; flex-direction: column; gap: 12px; }
.pj-top .tl-toolbar { top: 68px; }
.tl-toolbar .pj-dl { margin-left: auto; color: #fff; background: var(--primary); padding: 0 14px; font-weight: 700; font-size: 14px; }
.tl-toolbar .pj-dl:hover { background: var(--primary-2); }
.pj-paper { max-width: 860px; width: 100%; margin: 0 auto; padding: 48px 64px; }
.pj-sec-title { text-align: center; font: 700 18px "Times New Roman", serif; letter-spacing: .02em; margin: 0 0 22px; }
.tl-editor h3 { font: 700 16px/1.4 "Times New Roman", serif; margin: 22px 0 8px; }
.pj-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.pj-empty-act { display: flex; gap: 10px; justify-content: center; margin: 14px 0; flex-wrap: wrap; }
.gen-bar { display: flex; align-items: center; gap: 10px; background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.gen-bar #genText { flex: 1; }
.ph { background: #fff1c7; color: #8a5a00; border-radius: 3px; padding: 0 2px; }
.pj-foot { text-align: center; }
.pool { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.pool li b { display: block; }
.pool small { display: block; color: var(--muted); }
.pool a { font-size: 12px; color: var(--primary-2); font-weight: 700; text-decoration: none; }
.pj-side { position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; background: var(--surface); border-left: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pj-side-head { display: flex; justify-content: space-between; align-items: center; }
.pj-side-head button { border: 0; background: var(--surface-2); border-radius: 8px; width: 32px; height: 32px; font-size: 18px; }
@media (max-width: 1100px) {
  .pj, .pj:has(.pj-side:not([hidden])) { grid-template-columns: 220px minmax(0, 1fr); }
  .pj-side { position: fixed; right: 0; top: 60px; width: min(380px, 100vw); z-index: 25; box-shadow: -10px 0 30px rgba(37, 28, 24,.15); }
  .pj-paper { padding: 32px 28px; }
}
@media (max-width: 760px) {
  .pj, .pj:has(.pj-side:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .pj-nav { position: static; height: auto; }
  .sec-list { flex-direction: row; overflow-x: auto; }
  .sec { white-space: nowrap; width: auto; }
  .sec span { overflow: visible; }
  .pj-main { padding: 12px; }
  .pj-paper { padding: 22px 16px; }
}

/* pertanyaan sidang */
.pq-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.pq-tabs button { flex: none; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 13px; color: var(--muted); min-height: 36px; }
.pq-tabs button em { font-style: normal; font-size: 11px; background: var(--surface-2); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.pq-tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pq-tabs button[aria-selected="true"] em { background: rgba(255,255,255,.2); }
.pq-list { display: flex; flex-direction: column; gap: 28px; }
.pq-sec { display: flex; flex-direction: column; gap: 12px; }
.pq-sec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 600; color: var(--primary); letter-spacing: .01em; }
.pq-sec h2 em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); }
.pq { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, background .15s; }
.pq.siap { border-color: #c7e6d3; background: #fbfdfb; }
.pq-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pq-no { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.lvl { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 9px; }
.lvl-mudah { background: var(--ok-bg); color: var(--ok); }
.lvl-sedang { background: var(--warn-bg); color: var(--warn); }
.lvl-sulit { background: var(--bad-bg); color: var(--bad); }
.pq-check { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px 4px 8px; min-height: 30px; }
.pq-check input { accent-color: var(--ok); width: 15px; height: 15px; margin: 0; }
.pq.siap .pq-check { color: var(--ok); border-color: #c7e6d3; background: var(--ok-bg); }
.pq-q { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--ink); max-width: 68ch; }
.pq-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8A817C; margin-bottom: 3px; }
.pq-why p, .pq-tips p, .pq-prep p, .pq-ans p { margin: 0; font-size: 14px; line-height: 1.7; max-width: 70ch; }
.pq-why p { color: #57504C; }
.pq-prep { border-left: 3px solid #e0a23a; background: #fffaf0; border-radius: 0 10px 10px 0; padding: 8px 12px; }
.pq-prep .pq-label { color: var(--warn); }
.pq-prep p { color: #5c4313; }
.pq-more { border-top: 1px dashed var(--border); padding-top: 10px; }
.pq-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary); min-height: 32px; }
.pq-more summary::-webkit-details-marker { display: none; }
.pq-more summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.pq-more[open] summary::before { transform: rotate(45deg); }
.pq-more .when-open, .pq-more[open] .when-closed { display: none; }
.pq-more[open] .when-open { display: inline; }
.pq-tips { margin-top: 10px; }
.pq-tips p { color: #3F3632; }
.pq-ans { margin: 12px 0 2px; padding: 12px 16px; background: #FCFAF8; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; }
.pq-ans .pq-label { color: var(--primary); }
.pq-ans p { font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.pq-legend { font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; color: #8A817C; margin-left: 6px; }
.chk { background: #fff3c4; border-bottom: 2px solid #e0a23a; border-radius: 2px; cursor: help; padding: 0 1px; }
.pq-extra { margin-top: 10px; border: 1px dashed #d8c9a6; background: #fffdf7; border-radius: 10px; padding: 8px 12px; }
.pq-extra .pq-label { color: var(--warn); }
.pq-extra p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #5c4313; }
.pq-verif { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-size: 13px; background: var(--ok-bg); color: var(--ok); }
.pq-verif:has(b) { background: var(--warn-bg); color: #5c4313; }
.pq-verif b { color: var(--warn); }
.pq-cta { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; padding: 16px 18px; border-radius: var(--radius); background: var(--grad); color: #fff; text-decoration: none; }
.pq-cta span { font-size: 14px; opacity: .9; }
@media (max-width: 560px) { .pq { padding: 16px; } .pq-check { margin-left: 0; } .pq-q { font-size: 15px; } }

/* maskot Owl */
.mascot { display: block; width: 150px; height: auto; margin: 0 auto 12px; }
.empty .mascot { width: 170px; animation: owl-float 4s ease-in-out infinite; }
.mascot-sm { width: 104px; margin-bottom: 8px; }
.loading .mascot { animation: owl-bob 1.6s ease-in-out infinite; }
.mascot-xs { width: 64px; height: auto; flex: none; }
.mascot-login { width: 116px; margin: -6px auto 0; }
@keyframes owl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes owl-bob { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.has-art { position: relative; padding-right: 170px; }
.head-art { position: absolute; right: 0; top: -8px; width: 150px; height: auto; }
.tl-list-head.has-art { padding-right: 160px; }
.tl-list-head.has-art .head-art { top: -18px; width: 140px; }
.gen-art { width: 40px; height: auto; flex: none; margin: -6px 0; }
.dk-list-head { position: relative; padding-right: 72px; }
.dk-art { position: absolute; right: 14px; top: 10px; width: 54px; height: auto; }
.ravatar.ai.owl { background: #FBF1F3; overflow: hidden; border: 1px solid #F0D9DE; }
.ravatar.ai.owl img { width: 170%; height: auto; margin-top: 18%; }
.chat-hello { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; padding: 10px 0 4px; }
.chat-hello img { width: 110px; height: auto; }
.rep-art { width: 120px; height: auto; flex: none; }
.pq-done { display: flex; align-items: center; gap: 14px; background: var(--ok-bg); border: 1px solid #c7e6d3; border-radius: 14px; padding: 10px 16px; margin-bottom: 14px; }
.pq-done b { display: block; color: var(--ok); }
.pq-done span { font-size: 13px; color: #3F3632; }
#sideIdle .mascot { margin-bottom: 4px; }
@media (max-width: 760px) {
  .has-art, .tl-list-head.has-art { padding-right: 0; }
  .head-art { position: static; display: block; width: 110px; margin: 0 0 6px auto; }
  .tl-list-head.has-art .head-art { width: 110px; }
  .rep-art { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { .empty .mascot, .loading .mascot { animation: none; } }

/* login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .panel { width: 100%; max-width: 400px; }
.auth h1 { font-family: var(--serif); font-size: 30px; margin: 4px 0 0; line-height: 1.2; }
.auth p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .dlg-body { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; max-width: 260px; margin: 0 auto; width: 100%; }
  .dlg-foot { flex-direction: column-reverse; }
  .dlg-foot button { width: 100%; justify-content: center; }
}
@media (max-width: 1180px) {
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: fixed; top: 60px; left: 0; bottom: 0; width: 260px; height: auto; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 10px 40px rgba(37, 28, 24,.2); }
  body.nav-open .sidenav { transform: none; }
  .nav-toggle { display: grid; }
  .page, .layout { padding: 20px 16px 48px; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .topbar-in { padding: 0 12px; }
  .intro h1 { font-size: 28px; }
  .panel { padding: 18px; }
  #who { display: none; }
  .card-body { padding: 18px 16px 16px; }
  .card h3 { font-size: 19px; }
  .reason, .chips, .novelty, .card-actions { margin-left: 0; }
  .outline { padding: 18px 16px; }
  .ol-head { flex-direction: column; }
  .refs summary { padding: 14px 16px; }
  .refs ul { padding: 0 16px 8px; }
  .refs li { flex-direction: column; gap: 4px; }
  .ref-open { padding-left: 0; }
  .empty { padding: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
