/* =============================================================
   Area Klien Kreasiku Automation
   Mengikuti token merek situs utama (styles.css): hijau Kreasiku,
   aksen lime, huruf Inter. Mode kerja: tenang, rapi, mudah dipindai.
   ============================================================= */
:root {
  --green: #19B85A;
  --green-600: #149a4b;
  --green-700: #0f7d3d;
  --green-dark: #0A5D35;
  --green-deep: #072d1b;
  --green-pale: #E8F8ED;
  --lime: #E9FF65;
  --ink: #101713;
  --ink-2: #2a3a31;
  --muted: #56645b;
  --surface: #F4F8F5;
  --white: #fff;
  --line: #DCE7E0;
  --line-soft: #E8EFEA;
  --danger: #b4232c;
  --danger-pale: #fdecec;
  --warn-pale: #fff8dc;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --sh-sm: 0 1px 2px rgba(10,93,53,.06), 0 2px 6px rgba(10,93,53,.05);
  --sh: 0 12px 30px -14px rgba(10,93,53,.22);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: "Inter", Arial, system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
::selection { background: var(--lime); color: var(--ink); }
a { color: var(--green-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 2px; border-radius: 6px; }
html { scrollbar-color: #b9cfc1 transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 200; }
.skip:focus { top: 12px; }
.break { overflow-wrap: anywhere; }
.tnum, .num { font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-style: italic; }
.hint { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }
.mt { margin-top: 1.25rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.main { padding-top: 28px; padding-bottom: 56px; min-height: calc(100vh - 140px); }

/* ---------- Merek ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.brand .bn { font-size: 1.02rem; line-height: 1; }
.brand .bn small { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .22em; color: var(--green); margin-top: 4px; }
.brand-light, .topbar .brand { color: #fff; }
.brand-light .bn small, .topbar .brand .bn small { color: var(--lime); }

/* ---------- Bilah atas ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--green-dark); color: #dff3e7; box-shadow: 0 6px 20px -16px rgba(0,0,0,.6); }
.topbar-in { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.topnav { display: flex; gap: .25rem; margin-left: 1rem; }
.topnav a { color: #c4e6d2; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .8rem; border-radius: 8px; transition: background-color .15s, color .15s; }
.topnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topnav a.on { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 -2px 0 var(--lime); }
.who { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.who form { margin: 0; }
.who-name { text-align: right; font-weight: 650; font-size: .92rem; color: #fff; line-height: 1.25; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-name small { display: block; font-weight: 500; font-size: .78rem; color: #a9d4ba; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16); cursor: pointer; transition: background-color .15s, transform .12s var(--ease-out); }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.icon-btn:active { transform: scale(.96); }
.icon-btn .ic { width: 19px; height: 19px; }

/* ---------- Ikon ---------- */
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1; cursor: pointer; text-decoration: none;
  padding: .85rem 1.3rem; border-radius: 12px; border: 1.5px solid transparent; white-space: nowrap;
  transition: background-color .16s, border-color .16s, color .16s, box-shadow .2s, transform .14s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -12px rgba(25,184,90,.7); }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-dark { background: var(--green-dark); color: #fff; }
.btn-dark:hover { background: #084a2a; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn-danger { background: #fff; color: var(--danger); border-color: #efc3c6; }
.btn-danger:hover { background: var(--danger-pale); color: var(--danger); border-color: var(--danger); }
.btn-sm { padding: .6rem .95rem; font-size: .9rem; border-radius: 10px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Pesan ---------- */
.flash { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--r); margin: 0 0 1.25rem; font-size: .95rem; border: 1px solid; }
.flash .ic { margin-top: 2px; }
.flash-success { background: var(--green-pale); border-color: #b8e6c9; color: #0c4f2d; }
.flash-info { background: #eef5f1; border-color: var(--line); color: var(--ink-2); }
.flash-error { background: var(--danger-pale); border-color: #f2c2c5; color: #7d1219; }

/* ---------- Kepala halaman ---------- */
.crumb { margin: 0 0 .9rem; font-size: .92rem; }
.crumb a { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.crumb a:hover { color: var(--green-dark); }
.crumb .ic { width: 16px; height: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.75rem; }
.page-head h1 { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.page-head .lead { color: var(--muted); font-size: 1.04rem; max-width: 68ch; margin: 0; }
.page-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; flex: none; text-align: right; }
.ver-badge { font-weight: 800; font-size: .95rem; color: var(--green-dark); background: var(--green-pale); padding: .35rem .7rem; border-radius: 8px; }
.ver-badge.ver-new { color: var(--muted); background: #fff; border: 1px dashed var(--line); }
.ver-meta { font-size: .84rem; color: var(--muted); line-height: 1.4; margin-bottom: .3rem; }

/* ---------- Pil status ---------- */
.pill { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: .22rem .55rem; border-radius: 999px; vertical-align: middle; white-space: nowrap; line-height: 1.2; }
.pill-on { background: var(--green-pale); color: var(--green-700); }
.pill-off { background: #eef1ef; color: #4d5a52; }
.pill-demo { background: #fff6c2; color: #6b5a00; }

/* ---------- Panel ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); margin-bottom: 20px; }
.panel > h2 { margin-bottom: .9rem; }
.panel > p:last-child { margin-bottom: 0; }
.panel > .hint { margin: -.4rem 0 1.25rem; }
form.stack:has(> .switch-row) { gap: 0; }
form.stack:has(> .switch-row) > div { margin-top: 1rem; }
.panel-flush { padding: 0; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-2 .panel { margin-bottom: 0; }
.stack { display: grid; gap: 1rem; }
.stack form { margin: 0; }

/* ---------- Daftar layanan (dasbor) ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; }
.svc { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; padding: 26px 28px; }
.svc + .svc { border-top: 1px solid var(--line-soft); }
.svc-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--green-pale); color: var(--green-dark); }
.svc-ic .ic { width: 26px; height: 26px; }
.svc h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-size: 1.18rem; margin-bottom: .3rem; }
.svc p { margin: 0; color: var(--muted); max-width: 62ch; }
.svc .svc-meta { margin-top: .55rem; font-size: .9rem; color: var(--ink-2); }
.svc-act { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.svc.is-on:first-child { background: linear-gradient(180deg, #fbfefc, #fff); }
.svc.is-locked { background: #fafbfa; }
.svc.is-locked .svc-ic { background: #eef1ef; color: #6b786f; }
.svc.is-locked h2 { color: var(--ink-2); }

.locked-panel, .empty-state { text-align: center; padding: 40px 24px; }
.locked-panel .svc-ic, .empty-state .svc-ic { margin: 0 auto 1rem; }
.locked-panel p, .empty-state p { max-width: 52ch; margin: 0 auto 1.25rem; color: var(--muted); }

/* ---------- Formulir ---------- */
.field { display: grid; gap: .4rem; min-width: 0; }
.field > span, .checks legend { font-weight: 650; font-size: .9rem; color: var(--ink-2); }
.field small { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .85rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 3.2em; field-sizing: content; max-height: 26em; }
select { appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356645b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; cursor: pointer; }
input::placeholder, textarea::placeholder { color: #7d8a82; }
input:hover, select:hover, textarea:hover { border-color: #c3d6ca; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3.5px rgba(25,184,90,.18); }
input, textarea { caret-color: var(--green-dark); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.span-2 { grid-column: 1 / -1; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.checks legend { margin-bottom: .5rem; padding: 0; }
.chk { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }

.pw { position: relative; display: block; }
.pw input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { color: var(--green-dark); background: var(--green-pale); }
.pw-toggle.on { color: var(--green-dark); }

/* Sakelar layanan (admin) */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.switch-row:first-of-type { padding-top: 0; }
.switch-row span { display: grid; gap: .15rem; }
.switch-row small { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.switch { appearance: none; -webkit-appearance: none; width: 46px !important; height: 26px !important; border-radius: 999px; background: #cfdcd4; position: relative; flex: none; cursor: pointer; transition: background-color .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .22s var(--ease-out); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }

.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sec-row + .sec-row { padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.sec-row .hint { margin: .15rem 0 0; }

/* ---------- Halaman masuk ---------- */
.page-login { background: #fff; }
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.login-side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 40px 56px; color: #dff3e7;
  background: radial-gradient(110% 80% at 15% 0%, #0d7040 0%, #0A5D35 42%, #072d1b 100%);
}
.login-side::after { content: ""; position: absolute; right: -140px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(233,255,101,.18), transparent 65%); pointer-events: none; }
.login-pitch { max-width: 30rem; position: relative; z-index: 1; }
.login-pitch h2 { color: #fff; font-size: clamp(1.9rem, 2.8vw, 2.6rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.login-pitch p { color: #c4e6d2; font-size: 1.05rem; line-height: 1.6; margin: 0; }
.login-points { list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: .7rem; position: relative; z-index: 1; }
.login-points li { display: flex; gap: .65rem; align-items: center; font-size: .95rem; color: #d4ecdd; }
.login-points .ic { color: var(--lime); }
.login-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.login-mobile-brand { display: none; }
.login-box { width: 100%; max-width: 400px; }
.login-box h1 { font-size: 1.85rem; margin-bottom: .4rem; }
.login-box .sub { color: var(--muted); margin-bottom: 1.6rem; }
.login-box .btn { margin-top: .4rem; padding: 1rem; }
.login-help { margin: 1.25rem 0 0; font-size: .92rem; color: var(--muted); }
.login-foot { margin: 2.5rem 0 0; font-size: .9rem; }
.login-foot a { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); text-decoration: none; }
.login-foot a:hover { color: var(--green-dark); }
.login-foot .ic { width: 16px; height: 16px; }

/* ---------- Knowledge base ---------- */
.kb-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.kb-nav { position: sticky; top: 88px; display: grid; gap: 2px; }
.kb-nav a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background-color .15s, color .15s; }
.kb-nav a:hover { color: var(--ink); background: #e9f1ec; }
.kb-nav a.on { color: var(--green-dark); background: var(--green-pale); }
.kb-form { min-width: 0; }
.fsec { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px 28px; margin-bottom: 20px; box-shadow: var(--sh-sm); scroll-margin-top: 88px; }
.fsec > header { margin-bottom: 1.35rem; }
.fsec > header h2 { font-size: 1.22rem; margin-bottom: .3rem; }
.fsec > header p { color: var(--muted); margin: 0; max-width: 68ch; font-size: .95rem; }
.fsec > .field + .field { margin-top: 1rem; }
.subhead { margin: 1.5rem 0 .75rem; font-size: .98rem; }

.rows { display: grid; gap: 12px; margin-bottom: 14px; }
.row { position: relative; display: grid; gap: .85rem 1rem; padding: 16px 56px 16px 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); }
.row-produk { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.row-faq { grid-template-columns: 1fr; }
.row-ptg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row.is-new { animation: rowIn .28s var(--ease-out); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-4px) scale(.99); } }
.row-del { position: absolute; top: 12px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: #6b786f; border-radius: 9px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.row-del:hover { background: var(--danger-pale); color: var(--danger); border-color: #f2c2c5; }

.files { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 8px; }
.files li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem .7rem; padding: .7rem .9rem; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.files li .ic { color: var(--green-dark); }
.files li a { font-weight: 650; overflow-wrap: anywhere; }
.files li small { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.files-edit li { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.chk-del { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.drop { position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center; padding: 28px 20px; border: 1.5px dashed #b9cfc1; border-radius: var(--r); background: #fbfdfc; color: var(--muted); cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--green); background: var(--green-pale); }
.drop .ic { width: 28px; height: 28px; color: var(--green-dark); }
.drop-t { color: var(--ink-2); }
.drop-t strong { color: var(--green-700); }
.drop-list { font-size: .85rem; overflow-wrap: anywhere; }
.drop-list.has-err { color: var(--danger); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.savebar {
  position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: flex-end; gap: 1rem;
  background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; box-shadow: 0 18px 40px -18px rgba(10,93,53,.45);
}
.savebar-note { flex: 1; }
.savebar-note > span { font-size: .82rem; }
.savebar-note input { padding: .6rem .8rem; }
.savebar .btn { flex: none; }

/* ---------- Baca-saja ---------- */
.ro { display: grid; gap: 20px; }
.ro-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 28px; box-shadow: var(--sh-sm); }
.ro-sec h2 { display: flex; align-items: center; gap: .5rem; }
.count { font-size: .78rem; font-weight: 700; color: var(--green-700); background: var(--green-pale); padding: .15rem .5rem; border-radius: 999px; }
.dl { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: .65rem 1.25rem; margin: 0 0 1rem; }
.dl:last-child { margin-bottom: 0; }
.dl dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.dl dd { margin: 0; max-width: 72ch; }
.faq-ro { margin: 0; padding-left: 1.3rem; display: grid; gap: .9rem; }
.faq-ro li::marker { color: var(--green); font-weight: 700; }
.faq-ro p { margin: .25rem 0 0; color: var(--ink-2); max-width: 72ch; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th { text-align: left; font-size: .8rem; font-weight: 700; color: var(--muted); padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: #fafcfb; white-space: nowrap; }
.tbl td { padding: .9rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; white-space: nowrap; }
.ro-sec .tbl th:first-child, .ro-sec .tbl td:first-child { padding-left: 0; }
.ro-sec .tbl th { background: transparent; }
.tbl-clients td { vertical-align: middle; }
.tbl-clients tr.is-off td { background: #fafbfa; }
.tbl-clients tbody tr { transition: background-color .15s; }
.tbl-clients tbody tr:hover td { background: #f7fbf8; }
.tbl-clients .act { text-align: right; }
.cl-name { font-weight: 750; color: var(--ink); text-decoration: none; margin-right: .35rem; }
.cl-name:hover { color: var(--green-700); text-decoration: underline; }
.cl-sub { display: block; font-size: .84rem; color: var(--muted); margin-top: .15rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font-size: .78rem; font-weight: 650; color: var(--green-dark); background: var(--green-pale); padding: .2rem .55rem; border-radius: 6px; white-space: nowrap; }

/* ---------- Riwayat ---------- */
.timeline { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.timeline li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding: 18px 24px; }
.timeline li + li { border-top: 1px solid var(--line-soft); }
.timeline li.is-current { background: linear-gradient(90deg, var(--green-pale), #fff 60%); }
.tl-ver { display: grid; justify-items: center; line-height: 1; padding: .55rem 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); }
.is-current .tl-ver { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.tl-ver span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.is-current .tl-ver span { color: var(--lime); }
.tl-ver b { font-size: 1.5rem; font-weight: 800; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.tl-title { font-weight: 650; margin: 0 0 .2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tl-meta { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- Sandi sekali tampil ---------- */
.reveal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: var(--warn-pale); border: 1px solid #efe1a0; border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 20px; }
.reveal > .ic { width: 24px; height: 24px; color: #7a6400; }
.reveal p { margin: .35rem 0 0; font-size: .88rem; color: #5c4c00; }
.reveal-pw { display: inline-block; margin-top: .4rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.05rem; background: #fff; border: 1px solid #efe1a0; padding: .35rem .6rem; border-radius: 8px; overflow-wrap: anywhere; user-select: all; }

/* ---------- Kaki ---------- */
.foot { position: relative; display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; font-size: .86rem; color: var(--muted); }
.foot::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--green-dark); }

/* =============================================================
   Layar sedang dan kecil
   ============================================================= */
@media (max-width: 980px) {
  .kb-layout { grid-template-columns: 1fr; gap: 16px; }
  .kb-nav { top: 64px; z-index: 30; display: flex; gap: 6px; overflow-x: auto; margin: 0 -24px; padding: 10px 24px; background: rgba(244,248,245,.96); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .kb-nav::-webkit-scrollbar { display: none; }
  .kb-nav a { white-space: nowrap; background: #fff; border: 1px solid var(--line); padding: .45rem .8rem; font-size: .86rem; }
  .row-ptg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .fsec, .ro-sec { scroll-margin-top: 130px; }
  html { scroll-padding-top: 130px; }
}

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-main { justify-content: flex-start; padding-top: 28px; }
  .login-mobile-brand { display: inline-flex; align-self: flex-start; margin-bottom: 40px; }
  .login-foot { margin-top: 2rem; }
  .who-name { display: none; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .main { padding: 20px 16px 48px; }
  .topbar-in { gap: .5rem; height: 58px; }
  .topnav { margin-left: .25rem; gap: 0; }
  .topnav a { padding: .45rem .6rem; font-size: .9rem; }
  .topbar .brand .bn { display: none; }
  .foot::before { left: 16px; right: 16px; }
  .kb-nav { top: 58px; margin: 0 -16px; padding: 10px 16px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
  .page-head-side { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
  .ver-meta { margin: 0; }
  .ver-meta br { display: none; }
  .svc { grid-template-columns: auto minmax(0, 1fr); padding: 20px 18px; gap: 1rem; align-items: start; }
  .svc-ic { width: 44px; height: 44px; border-radius: 12px; }
  .svc-ic .ic { width: 22px; height: 22px; }
  .svc-act { grid-column: 1 / -1; justify-content: stretch; }
  .svc-act .btn { flex: 1 1 auto; }
  .panel, .fsec, .ro-sec { padding: 18px; border-radius: 16px; }
  .panel.panel-flush { padding: 0; }
  .fgrid, .row-produk, .row-ptg { grid-template-columns: 1fr; }
  .row { padding: 14px 14px 14px 14px; padding-top: 52px; }
  .row-del { top: 8px; right: 8px; }
  .files li, .files-edit li { grid-template-columns: auto minmax(0, 1fr); }
  .files li small, .files li .chk-del { grid-column: 2; }
  .savebar { align-items: center; bottom: 10px; padding: 10px; gap: .6rem; }
  .savebar-note > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .savebar .btn { padding: .75rem 1rem; }
  .save-long { display: none; }
  .dl { grid-template-columns: 1fr; gap: .15rem; }
  .dl dd { margin-bottom: .65rem; }
  .timeline li { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; gap: .9rem; }
  .tl-act { grid-column: 2; }
  .reveal { grid-template-columns: auto minmax(0, 1fr); }
  .reveal .btn { grid-column: 1 / -1; }
  .sec-row { flex-direction: column; align-items: flex-start; }
  /* tabel jadi tumpukan baris */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { padding: .2rem 0; border: 0; text-align: left !important; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; font-size: .74rem; font-weight: 700; color: var(--muted); margin-top: .35rem; }
  .tbl td:first-child[data-l]::before { display: none; }
  .tbl-clients .act { padding-top: .6rem; }
  .ro-sec .tbl tr { padding: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
