:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --ink: #172a28;
  --muted: #546764;
  --line: #dce5e2;
  --accent: #0f6b5c;
  --accent-dark: #0a4d42;
  --accent-soft: #e6f2ef;
  --danger: #a8322a;
  --danger-soft: #fdecea;
  --warn: #7a5200;
  --warn-soft: #fff4d6;
  --ok: #166b45;
  --ok-soft: #e5f4ec;
  --sidebar: #123c37;
  --sidebar-soft: #0b2f2b;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar-width: 248px;
  --sidebar-width-collapsed: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
button, a, select, input[type="checkbox"], label[for] { cursor: pointer; }
button:disabled, .disabled { cursor: not-allowed !important; opacity: .6; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 8px; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; background: var(--bg); padding: 2px 5px; border-radius: 5px; }
small { color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--sidebar); color: #fff; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus, .skip-link:focus-visible { top: 12px; }
.sprite { display: none; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-width); flex: 0 0 var(--sidebar-width);
  background: var(--sidebar); color: #eef5f3;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; background: #e6f2ef; color: var(--accent-dark);
  display: grid; place-items: center; font-weight: 800; letter-spacing: .5px;
}
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #ffffff; padding: 3px; }
.brand-logo-lg { width: 72px; height: 72px; border-radius: 14px; padding: 6px; }
.brand-mark-lg { width: 72px; height: 72px; font-size: 24px; border-radius: 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { color: #b8ccc8; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px 24px; }
.nav-label { display: block; padding: 14px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9fbdb7; }
.nav-link {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px;
  border-radius: var(--radius-sm); color: #eef5f3; text-decoration: none; font-weight: 500;
}
.nav-link:hover { background: var(--sidebar-soft); }
.nav-link.active { background: var(--accent); color: #fff; }
.nav-ico { display: grid; place-items: center; width: 20px; }
.nav-button { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; }
.sidebar-foot { padding: 12px 10px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(9,26,24,.5); z-index: 40; }
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* Banner dan topbar menempel bersama sebagai satu header di area konten. */
.app-header { position: sticky; top: 0; z-index: 30; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-heading { flex: 1; min-width: 0; }
.btn-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px;
  margin-top: 4px; padding: 3px 8px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--muted);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-back:hover { background: var(--bg); color: var(--ink); }
.btn-back .icon { width: 14px; height: 14px; }
.crumb { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.account-chip { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.menu-button { display: inline-grid; }
.content { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px; }
.footer { padding: 16px 24px 24px; color: var(--muted); font-size: 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.card-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.card-head p { color: var(--muted); margin: 4px 0 0; }
.card-body { padding: 20px; min-width: 0; }
.card-narrow { max-width: 720px; }
.card-stack { display: flex; flex-direction: column; gap: 18px; }
.identity-action-panel { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfc; }
.identity-action-panel h3 { margin-bottom: 4px; }
.identity-action-panel p { margin-bottom: 10px; }
.center-stack { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 > .card { margin-bottom: 18px; min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat span { display: block; color: var(--muted); }
.stat strong { display: block; font-size: 28px; line-height: 1.2; margin-top: 4px; }
.stat .icon { position: absolute; right: 16px; top: 16px; color: var(--accent); opacity: .7; width: 22px; height: 22px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar .muted, .muted { color: var(--muted); }
.filter-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.filter-form input, .filter-form select { width: 180px; min-width: 0; }
.filter-form .btn { width: auto; }
@media (min-width: 701px) {
  .filter-form { flex-wrap: nowrap; }
  .filter-form > input, .filter-form .input-icon { width: 240px; }
  .filter-form .input-icon input { width: 100%; }
  .filter-form select { width: 180px; }
}
.input-icon { position: relative; display: inline-flex; align-items: center; }
.input-icon .icon { position: absolute; left: 10px; color: var(--muted); }
.input-icon input { padding-left: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; text-decoration: none; background: var(--surface); color: var(--ink);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8c2922; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.btn-xs { min-height: 30px; padding: 4px 8px; font-size: 12px; }
.icon-button {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--muted);
  text-decoration: none; font-size: 12px;
}
.icon-button:hover { background: var(--bg); color: var(--ink); }
.icon-button.danger:hover, .icon-button.danger { color: var(--danger); }
.inline { display: inline-flex; }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select, textarea {
  width: 100%; min-height: 42px; padding: 9px 11px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
textarea { min-height: 80px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label, label { font-weight: 600; }
.field small { font-weight: 400; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.field-label-row label { margin: 0; }
.field-label-row .link { font-weight: 500; }
.password-wrap { position: relative; display: flex; align-items: center; }
.password-wrap > input { padding-right: 48px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.form-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox input { width: 18px; height: 18px; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.scope-target { display: none; }
.scope-target.visible { display: flex; }

.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; width: 100%; contain: inline-size; scrollbar-width: thin; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: var(--bg); border-radius: 999px; }
.table-scroll::-webkit-scrollbar-thumb { background: #8fb5ad; border-radius: 999px; }
.table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #f7f9f8; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfc; }
.table .num { text-align: right; }
.table .actions { white-space: nowrap; }
.table-compact { font-size: 12px; min-width: 900px; }
.row-error { background: var(--danger-soft); }
.person { display: flex; align-items: center; gap: 8px; }

/* Kolom pertama melekat saat tabel di-scroll ke samping. */
.table-scroll .table th:first-child,
.table-scroll .table td:first-child {
  position: sticky; left: 0;
  z-index: 2; background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
  min-width: 150px; max-width: min(60vw, 260px);
}
.table-scroll .table th:first-child { z-index: 3; background: #f7f9f8; }
.table-scroll .table tbody tr:hover td:first-child { background: #fbfcfc; }
.table-scroll .table tbody tr.row-error td:first-child { background: var(--danger-soft); }
.table td:first-child .cell-text,
.table td:first-child .person > a,
.table td:first-child > a:only-child {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.table td:first-child .person { align-items: flex-start; }
.table td:first-child .avatar { flex: 0 0 auto; }
.table-hint { display: none; color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.page-btn {
  display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); text-decoration: none; font-size: 13px;
}
.page-btn:hover { background: var(--bg); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn.disabled { opacity: .45; pointer-events: none; }
.page-ellipsis { padding: 0 2px; color: var(--muted); }
.page-info { margin-left: auto; color: var(--muted); font-size: 12px; }

.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-lg { width: 88px; height: 88px; font-size: 32px; }
.avatar-xl { width: 112px; height: 112px; font-size: 42px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-off { background: var(--danger-soft); color: var(--danger); }
.badge-neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge-impersonation { background: var(--warn-soft); color: var(--warn); border: 1px solid #ecd99c; white-space: nowrap; }
.work-type { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.work-type-satminkal { color: var(--accent-dark); }
.work-type-non { color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tab { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 600; }
.tab:hover { background: var(--bg); color: var(--ink); }
.tab.active { background: var(--accent-soft); color: var(--accent-dark); }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }

.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flash { display: flex; align-items: flex-start; gap: 8px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-bottom: 14px; }
.flash .icon { margin-top: 2px; }
.flash-success { background: var(--ok-soft); color: var(--ok); border-color: #bfe2d0; }
.flash-danger { background: var(--danger-soft); color: var(--danger); border-color: #f3c9c5; }
.flash-warning { background: var(--warn-soft); color: var(--warn); border-color: #ecd99c; }
.flash-info { background: var(--accent-soft); color: var(--accent-dark); border-color: #bcded6; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 16px; color: var(--muted); }
.empty-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); color: var(--accent); }
.empty-mark .icon { width: 24px; height: 24px; }
.empty p { max-width: 420px; }
.detail-list { margin: 0; display: flex; flex-direction: column; gap: 0; }
.detail-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.activity-list, .error-list, .template-list, .bullet-list { margin: 0; padding: 0; list-style: none; }
.activity-list li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line); }
.activity-list span { color: var(--muted); font-size: 12px; }
.error-list li, .bullet-list li { padding: 6px 0 6px 16px; position: relative; }
.bullet-list li::before, .error-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.template-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.subhead { margin: 18px 0 8px; }

.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-head p { color: var(--muted); margin: 4px 0 8px; }
.mini-grid, .card-grid, .app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mini-card { display: flex; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.mini-card .badge { align-self: flex-start; }
.app-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.app-grid-compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 14px; }
.app-grid-compact .mini-card { align-items: flex-start; }
.institution-card h2 { margin: 10px 0; }
.app-card { margin-bottom: 0; }
.app-card-head { display: flex; gap: 12px; align-items: flex-start; }
.app-card-head h2 { margin-bottom: 4px; }
.app-card-head p { color: var(--muted); font-size: 12px; }
.app-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; font-weight: 800; font-size: 13px; background: var(--accent-soft); color: var(--accent-dark); overflow: hidden; }
.app-icon img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.app-icon:has(img) .app-icon-text { display: none; }
.app-icon-text.line-through { text-decoration: line-through; }
.app-blue { background: #e7eefb; color: #1c4f9c; }
.app-amber { background: var(--warn-soft); color: var(--warn); }
.app-violet { background: #efe9f8; color: #5b3a8e; }
.app-slate { background: #e8ecee; color: #3b4b54; }
.app-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.link { font-size: 12px; overflow-wrap: anywhere; }
.cred-list { display: flex; flex-direction: column; gap: 10px; }
.cred-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: #fbfcfc; }
.cred-institution { font-weight: 700; margin-bottom: 8px; }
.cred-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 0; }
.cred-label { color: var(--muted); font-size: 12px; min-width: 120px; }
.copy-text, .secret-value { flex: 1; min-width: 90px; overflow-wrap: anywhere; }
.cred-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.app-card-actions { margin-top: 14px; }

.dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 18px 44px rgba(12,40,36,.18); }
.dialog::backdrop { background: rgba(9,26,24,.5); }
.dialog h2 { margin-bottom: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: 0 12px 30px rgba(0,0,0,.2); max-width: min(340px, calc(100vw - 40px)); }

.auth-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.auth-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand small { color: var(--muted); }
.auth-title { font-size: 20px; margin-bottom: 6px; }
.auth-subtitle, .auth-note { color: var(--muted); }
.auth-note { margin: 16px 0 0; font-size: 12px; text-align: center; }
.auth-foot { color: var(--muted); font-size: 12px; margin: 18px 0 0; text-align: center; }
.page-intro { margin-bottom: 16px; }
.flow-guide { background: var(--accent-soft); border: 1px solid #cfe3de; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }
.flow-guide h2, .flow-guide h3 { margin-bottom: 8px; }
.flow-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.flow-steps li::marker { color: var(--accent); font-weight: 700; }
.phase-help { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 10px 12px; margin: 10px 0 4px; color: var(--ink); }
.phase-help strong { color: var(--accent-dark); }

/* Komponen pilihan yang dapat dicari */
.search-select { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.search-select .search-select-input {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom-color: transparent;
  min-height: 36px;
}
.search-select select { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.search-select-empty { margin: 0; color: var(--danger); font-size: 12px; }
.search-select-empty[hidden] { display: none; }
.form-hint { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.form-required-note { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.required-mark { color: var(--danger); font-weight: 700; }
.field-error { border-color: var(--danger) !important; }

/* Halaman awal publik */
.btn-lg { min-height: 48px; padding: 11px 20px; font-size: 15px; }
.public-body { min-height: 100vh; display: flex; flex-direction: column; }
.public-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.public-header-inner, .public-hero, .public-footer span {
  max-width: 1120px; margin: 0 auto;
}
.public-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
}
.public-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.public-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.public-brand-text strong { font-size: 15px; overflow-wrap: anywhere; }
.public-brand-text small { color: var(--muted); }
.public-login { white-space: nowrap; }
.public-actions .btn, .public-login { touch-action: manipulation; }
.public-main { flex: 1; }
.public-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px;
  align-items: start; padding: 56px 24px 64px;
}
.public-copy h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin-bottom: 14px; text-wrap: balance; }
.public-lead { font-size: 18px; color: var(--ink); margin-bottom: 12px; max-width: 60ch; }
.public-desc { color: var(--muted); max-width: 64ch; }
.public-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.public-support { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.public-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.public-panel-mark { display: grid; place-items: center; margin-bottom: 18px; }
.public-panel h2 { font-size: 16px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.public-list { list-style: none; margin: 0; padding: 0; }
.public-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.public-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.public-list strong, .public-list span { display: block; }
.public-list span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.public-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.public-footer span { display: block; padding: 16px 24px; }
.auth-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; margin: 16px 0 0; font-size: 13px;
}

/* Sidebar desktop dapat diperkecil; mobile memakai panel geser seperti sebelumnya. */
@media (min-width: 901px) {
  .sidebar { transition: width .18s ease, flex-basis .18s ease; }
  .app-shell.sidebar-collapsed .sidebar {
    width: var(--sidebar-width-collapsed); flex-basis: var(--sidebar-width-collapsed);
  }
  .app-shell.sidebar-collapsed .brand { justify-content: center; padding: 20px 8px; }
  .app-shell.sidebar-collapsed .brand-text,
  .app-shell.sidebar-collapsed .nav-label,
  .app-shell.sidebar-collapsed .nav-text { display: none; }
  .app-shell.sidebar-collapsed .nav-link { justify-content: center; padding: 8px; }
  .app-shell.sidebar-collapsed .nav-link[title] { position: relative; }
  .app-shell.sidebar-collapsed .nav-link[title]:hover::after,
  .app-shell.sidebar-collapsed .nav-link[title]:focus-visible::after {
    content: attr(title); position: absolute; left: calc(100% + 8px); top: 50%;
    transform: translateY(-50%); white-space: nowrap; z-index: 80;
    padding: 6px 10px; border-radius: var(--radius-sm); background: var(--ink);
    color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.16);
  }
}

/* Banner impersonation: selalu terlihat di atas dan mudah diketuk */
.impersonation-banner {
  position: sticky; top: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 12px; margin: 0; padding: 10px 24px;
  background: var(--warn-soft); color: var(--warn);
  border: 0; border-bottom: 1px solid #ecd99c; border-radius: 0;
  box-shadow: 0 6px 18px rgba(122, 82, 0, .08);
}
.impersonation-banner .icon { flex: 0 0 auto; }
.impersonation-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.impersonation-copy > span { font-weight: 600; overflow-wrap: anywhere; }
.impersonation-copy small { color: var(--warn); }
.impersonation-banner form { display: flex; align-items: center; gap: 8px; margin: 0; flex: 0 0 auto; }
.impersonation-banner button, .impersonation-banner .btn {
  min-height: 40px; padding: 8px 14px; border: 1px solid var(--warn);
  border-radius: var(--radius-sm); background: var(--warn); color: #fff;
  font-weight: 700; white-space: nowrap;
}
.impersonation-banner button:hover, .impersonation-banner .btn:hover { background: #5e4100; }
.sidebar-impersonation { display: block; color: #b8ccc8; padding: 0 10px 8px; }

@media (max-width: 900px) {
  .public-hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 44px; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; transform: translateX(-100%); transition: transform .18s ease; }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: inline-grid; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .content { padding: 18px 14px; }
  .topbar { padding: 10px 14px; }
  .impersonation-banner { padding: 10px 14px; }
  .account-name { display: none; }
  .btn, .icon-button { min-height: 44px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select, textarea { min-height: 44px; }
  .icon-button { width: 44px; height: 44px; }
  .btn-sm, .btn-xs { min-height: 44px; }
  .detail-list > div { grid-template-columns: 1fr; gap: 2px; }
  .cred-label { min-width: 100%; }
}
@media (max-width: 700px) {
  .table-hint { display: block; }
  .public-header-inner { padding: 12px 16px; }
  .public-hero { padding: 28px 16px 36px; }
  .public-lead { font-size: 16px; }
  .public-actions .btn { width: 100%; }
  .public-panel { padding: 20px; }
  .search-select .search-select-input, .search-select select { min-height: 48px; }
  .impersonation-banner .icon { display: none; }
  .impersonation-copy { width: 100%; flex-basis: 100%; }
  .impersonation-banner form { width: 100%; }
  .impersonation-banner button, .impersonation-banner .btn { width: 100%; min-height: 44px; }
  .badge-impersonation { display: none; }
  .toolbar { display: block; }
  .toolbar > .btn { width: 100%; margin-top: 10px; }
  .filter-form { display: grid; grid-template-columns: 1fr; flex-wrap: wrap; }
  .filter-form input, .filter-form select, .filter-form .input-icon, .filter-form .btn { width: 100%; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 720px; }
  .table-compact { min-width: 1000px; }
  .page-info { width: 100%; margin-left: 0; }
  .page-btn { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.card-wide { max-width: 1100px; }
.seo-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.seo-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.seo-asset { display: grid; grid-template-columns: minmax(180px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.seo-asset-preview { background: var(--surface-2, #f4f6f5); border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; min-height: 150px; padding: 12px; }
.seo-asset-preview img { max-width: 100%; height: auto; border-radius: 6px; }
.seo-favicon-preview { min-height: 80px; }
.seo-placeholder { color: var(--muted); font-size: 13px; }
.social-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.social-preview { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--surface-2, #f4f6f5); }
.social-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.social-card { display: grid; gap: 6px; margin-top: 8px; }
.social-card img { width: 100%; max-height: 150px; object-fit: cover; border-radius: 6px; }
.social-card strong { font-size: 14px; line-height: 1.3; }
.social-card small { color: var(--muted); line-height: 1.4; }
@media (max-width: 760px) {
  .seo-asset, .social-previews { grid-template-columns: 1fr; }
}
