/* Dashboard — netral, padat informasi, satu warna aksen. Tanpa gradien/emoji/kaca:
   hierarki dibangun dari tipografi, jarak, dan garis tipis. Terang & gelap. */
:root {
  --bg: #f6f6f7; --surface: #ffffff; --surface-2: #fafafb; --surface-3: #f1f1f3; --sidebar: #fbfbfc;
  --border: #e7e7ea; --border-2: #d7d7dc;
  --text: #17171a; --text-2: #5c5c64; --text-3: #8f8f97;
  --accent: #0a8f34; --accent-fg: #ffffff; --accent-soft: #e9f6ed; --accent-line: #b9e1c5;
  --danger: #d92d20; --danger-soft: #fdeceb; --warn: #b54708; --warn-soft: #fef3e5; --info: #175cd3; --info-soft: #ebf2fe;
  --shadow-sm: 0 1px 2px rgba(16, 16, 20, .05);
  --shadow-md: 0 1px 3px rgba(16, 16, 20, .06), 0 6px 16px -6px rgba(16, 16, 20, .12);
  --shadow-lg: 0 24px 56px -12px rgba(16, 16, 20, .28), 0 0 0 1px rgba(16, 16, 20, .06);
  --r-sm: 6px; --r: 8px; --r-lg: 12px;
  --font: Inter, 'Segoe UI Variable Text', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e0e10; --surface: #161618; --surface-2: #19191c; --surface-3: #222226; --sidebar: #121214;
  --border: #26262b; --border-2: #34343b;
  --text: #ededef; --text-2: #a3a3ab; --text-3: #6f6f78;
  --accent: #3fcf72; --accent-fg: #052410; --accent-soft: rgba(63, 207, 114, .12); --accent-line: rgba(63, 207, 114, .32);
  --danger: #ff6b5e; --danger-soft: rgba(255, 107, 94, .12); --warn: #f5a524; --warn-soft: rgba(245, 165, 36, .12); --info: #78aefe; --info-soft: rgba(120, 174, 254, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 20px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 56px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
h1, h2, h3 { color: var(--text); letter-spacing: -.012em; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.num-tab, .stat b, td.num { font-variant-numeric: tabular-nums; }
.ic { display: inline-flex; flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-2); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-view { display: grid; place-items: center; padding: 80px 0; }

/* ── tombol ── */
.btn, .btn-primary, .btn-danger, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 7px; font-size: 13.5px; font-weight: 500; cursor: pointer; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); white-space: nowrap; text-decoration: none; box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s, color .12s; }
.btn .ic, .btn-primary .ic, .btn-ghost .ic, .btn-danger .ic { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-3); }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(.94); }
.btn-danger { color: var(--danger); border-color: transparent; background: transparent; box-shadow: none; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
button:disabled { opacity: .5; cursor: default; }
.block { width: 100%; }
.icon-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 7px; color: var(--text-3); cursor: pointer; font-size: 14px; }
.icon-btn .ic { width: 17px; height: 17px; }
.icon-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }

/* ── form ── */
label { display: grid; gap: 6px; align-content: start; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--border-2); border-radius: 7px; background: var(--surface); padding: 0 11px; height: 36px; font-size: 14px; color: var(--text); outline: none; transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.55; }
select { padding-right: 28px; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=color] { width: 40px; height: 36px; padding: 3px; border: 1px solid var(--border-2); border-radius: 7px; background: var(--surface); flex: none; }
input[type=file] { font-size: 13px; color: var(--text-2); }
.form-error { color: var(--danger); font-size: 13px; margin: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text); font-weight: 500; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check small { display: block; color: var(--text-2); font-weight: 400; font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.hint { font-size: 12px; color: var(--text-3); font-weight: 400; line-height: 1.45; }

/* ── masuk ── */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; display: grid; gap: 14px; }
.login-card .mark { width: 40px; height: 40px; margin-bottom: 6px; }
.login-card h1 { margin: 0; font-size: 22px; font-weight: 650; }
.login-card p { margin: 0 0 4px; }
.login-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-md); display: grid; gap: 14px; }
.login-foot { font-size: 12.5px; color: var(--text-3); text-align: center; }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--text); color: var(--bg); display: grid; place-items: center; flex: none; }
.mark .ic { width: 60%; height: 60%; }

/* ── shell ── */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--border); z-index: 40; }
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; min-width: 0; }
.sb-brand b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-brand > div > span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-brand > div { min-width: 0; }
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.sb-label { padding: 16px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.sb-link { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 7px; color: var(--text-2); font-size: 13.5px; font-weight: 500; border: 1px solid transparent; }
.sb-link .ic { width: 17px; height: 17px; color: var(--text-3); }
.sb-link:hover { background: var(--surface-3); color: var(--text); }
.sb-link.on { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.sb-link.on .ic { color: var(--accent); }
.sb-link .end { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sb-link .pill { margin-left: auto; font-size: 11px; font-weight: 600; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.sb-link.soon { cursor: default; color: var(--text-3); }
.sb-link.soon:hover { background: none; color: var(--text-3); }
.sb-link.soon .end { font-size: 10.5px; letter-spacing: .02em; }
.sb-back { display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px; font-size: 12.5px; color: var(--text-3); }
.sb-back:hover { color: var(--text); }
.sb-back .ic { width: 15px; height: 15px; }
.sb-tenant { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.sb-tenant b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-tenant > div > span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.sb-tenant > div { min-width: 0; }
.sb-foot { position: relative; border-top: 1px solid var(--border); padding: 10px; }
.sb-user { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; }
.sb-user:hover { background: var(--surface-3); }
.sb-user b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user > div > span { display: block; font-size: 12px; color: var(--text-3); }
.sb-user > div { min-width: 0; flex: 1; }
.sb-user > .ic { width: 16px; height: 16px; color: var(--text-3); }
.av { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 12px; background: var(--surface-3); color: var(--text-2); flex: none; letter-spacing: .02em; }
.av.round { border-radius: 50%; }
.av.lg { width: 36px; height: 36px; font-size: 13px; }
.menu { position: absolute; left: 10px; right: 10px; bottom: calc(100% - 4px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 5px; z-index: 50; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.menu button .ic, .menu a .ic { width: 16px; height: 16px; color: var(--text-3); }
.menu button:hover, .menu a:hover { background: var(--surface-3); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 0; }
.menu-who { padding: 8px 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.menu-who b { display: block; color: var(--text); font-size: 13.5px; }
.role { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; background: var(--surface-3); color: var(--text-2); }
.role.super { background: var(--info-soft); color: var(--info); }
.role.admin { background: var(--accent-soft); color: var(--accent); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 32px; background: var(--bg); border-bottom: 1px solid var(--border); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.crumbs a:hover { color: var(--text); }
.crumbs .ic { width: 14px; height: 14px; color: var(--border-2); }
.crumbs b { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
#sb-open { display: none; }
.sb-scrim { display: none; }
.view { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 32px 72px; }

/* ── kepala halaman & panel ── */
.page-head { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 650; }
.page-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; max-width: 720px; }
.page-head .grow { flex: 1; min-width: 240px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 10px; }
.section-title h2 { margin: 0; font-size: 15px; font-weight: 600; }
.section-title a { font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.section-title a:hover { color: var(--text); }
.section-title a .ic { width: 14px; height: 14px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.panel-pad { padding: 18px 20px; }
.panel h2 { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.panel h2 + p { margin: 0 0 16px; color: var(--text-2); font-size: 13px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.span2 { grid-column: span 2; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* ── statistik ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.stat small { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.stat small .ic { width: 15px; height: 15px; color: var(--text-3); }
.stat b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-top: 8px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b.sm { font-size: 17px; letter-spacing: -.01em; padding-top: 6px; }
.stat > span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.meter.warn i { background: var(--warn); } .meter.err i { background: var(--danger); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; margin-top: 14px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars i { width: 100%; max-width: 22px; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .9; }
.bars div:hover i { opacity: 1; filter: brightness(1.1); }
.bars span { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; }
.dot.on { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dot.err { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.dot.warn { background: var(--warn); }

/* ── beranda ── */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.home-head h1 { margin: 0; font-size: 22px; font-weight: 650; }
.home-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.hero-main { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.hero-top { display: flex; align-items: center; gap: 12px; }
.tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.tile .ic { width: 20px; height: 20px; }
.tile.accent { background: var(--accent-soft); color: var(--accent); }
.hero-top h2 { margin: 0; font-size: 17px; font-weight: 650; }
.hero-top .meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.hero-main > p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.6; max-width: 560px; }
.features { display: flex; flex-wrap: wrap; gap: 6px; }
.features span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; background: var(--surface-2); }
.features .ic { width: 13px; height: 13px; color: var(--accent); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.hero-metrics { display: grid; grid-template-rows: repeat(3, 1fr); border-left: 1px solid var(--border); background: var(--surface-2); }
.hero-metrics > div { padding: 14px 22px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-metrics > div + div { border-top: 1px solid var(--border); }
.hero-metrics small { font-size: 12px; color: var(--text-2); font-weight: 500; }
.hero-metrics b { font-size: 20px; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-metrics b span { font-size: 13px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.hero-metrics .meter { margin: 6px 0 0; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-metrics { border-left: 0; border-top: 1px solid var(--border); grid-template-rows: none; grid-template-columns: repeat(3, 1fr); } .hero-metrics > div + div { border-top: 0; border-left: 1px solid var(--border); } .hero-metrics > div { padding: 12px 14px; } }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.soon-card { display: flex; gap: 12px; padding: 14px; border: 1px dashed var(--border-2); border-radius: 10px; min-width: 0; }
.soon-card .tile { width: 34px; height: 34px; border-radius: 8px; color: var(--text-3); }
.soon-card .tile .ic { width: 17px; height: 17px; }
.soon-card b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.soon-card b em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.soon-card p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.soon-card.hidden-cat { opacity: .6; }
.soon-card > div { min-width: 0; }
.tenant-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tenant-cell > div { min-width: 0; }

/* ── tabel ── */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { flex: 1; min-width: 200px; max-width: 360px; padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8f97' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 15px; background-position: 11px center; }
.toolbar select { width: auto; min-width: 150px; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
table.t thead tr:first-child th:first-child { border-top-left-radius: var(--r-lg); }
table.t thead tr:first-child th:last-child { border-top-right-radius: var(--r-lg); }
table.t td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--surface-2); }
table.t td.num, table.t th.num { text-align: right; }
.cell-title { font-weight: 500; color: var(--text); }
.cell-sub { color: var(--text-3); font-size: 12.5px; margin-top: 2px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty-state { padding: 48px 20px; text-align: center; color: var(--text-2); display: grid; justify-items: center; gap: 4px; }
.empty-state .tile { margin-bottom: 8px; }
.empty-state b { color: var(--text); font-size: 15px; font-weight: 600; }
.empty-state > div { max-width: 420px; font-size: 13.5px; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; }

/* ── lencana ── */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; border-radius: 999px; padding: 2px 9px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; line-height: 1.5; }
.badge.on { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--danger-soft); color: var(--danger); }
.badge.blue { background: var(--info-soft); color: var(--info); }
.badge.outline { background: transparent; border: 1px solid var(--border-2); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── modal ── */
.modal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(10, 10, 12, .5); display: flex; align-items: flex-start; justify-content: center; padding: 7vh 16px; overflow-y: auto; animation: fade .12s; }
.modal { width: 100%; max-width: 620px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop .16s ease-out; }
.modal.wide { max-width: 880px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 15.5px; font-weight: 600; flex: 1; }
.modal-body { padding: 20px; display: grid; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 14px 14px; }
.modal-foot .left { margin-right: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.99); } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 9px; font-size: 13.5px; z-index: 90; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); animation: fade .12s; }
.toast.err { background: var(--danger); color: #fff; }

/* ── kode & key ── */
.codebox { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; }
.codebox pre { margin: 0; padding: 12px 14px; padding-right: 76px; overflow-x: auto; white-space: pre; line-height: 1.6; color: var(--text); }
.codebox .copy { position: absolute; top: 7px; right: 7px; height: 28px; font-size: 12.5px; }
.keybox { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.keybox code { font-size: 13px; word-break: break-all; color: var(--text); background: var(--surface); padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); }

/* ── percakapan ── */
.conv { display: grid; gap: 14px; }
.conv .q { justify-self: end; max-width: 80%; background: var(--surface-3); border-radius: 14px 14px 4px 14px; padding: 9px 13px; white-space: pre-wrap; line-height: 1.5; }
.conv .a { max-width: 92%; line-height: 1.6; }
.conv .meta { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.conv .a.err { color: var(--danger); }
.md p { margin: 0 0 8px; } .md ul, .md ol { margin: 0 0 8px; padding-left: 22px; } .md h2, .md h3, .md h4 { font-size: 14.5px; margin: 10px 0 6px; }
.md > :last-child { margin-bottom: 0; }
.md-table { overflow-x: auto; margin: 6px 0 10px; border: 1px solid var(--border); border-radius: 8px; }
.md-table table { border-collapse: collapse; font-size: 13px; } .md-table th, .md-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.md-table th { background: var(--surface-2); }
.md a { color: var(--info); text-decoration: underline; text-underline-offset: 2px; }
.md code { background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }
.src-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.src-chips span { font-size: 11.5px; background: var(--surface-3); border-radius: 5px; padding: 2px 7px; color: var(--text-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--text-3); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.sugg-list { display: grid; gap: 6px; }
.sugg-list .it { display: flex; gap: 4px; align-items: center; }
.sugg-list .it input { flex: 1; }
.preview-frame { width: 100%; height: 640px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.steps { display: grid; gap: 2px; }
.steps a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 8px; font-size: 13.5px; }
.steps a:hover { background: var(--surface-2); }
.steps a .chk { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-2); display: grid; place-items: center; flex: none; color: transparent; }
.steps a.done { color: var(--text-3); }
.steps a.done .chk { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.steps a .chk .ic { width: 12px; height: 12px; }
.steps a > .ic { margin-left: auto; width: 15px; height: 15px; color: var(--text-3); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ── layar sempit: sidebar melayang ── */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(288px, 86vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: none; }
  .shell.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sb-scrim { display: block; position: fixed; inset: 0; background: rgba(10, 10, 12, .45); z-index: 35; }
  #sb-open { display: inline-grid; margin-left: -6px; }
  .topbar { padding: 0 16px; }
  .view { padding: 20px 16px 56px; }
}

/* ── logo merek & kategori ── */
.mark { font: 700 15px/1 var(--font); overflow: hidden; }
.mark.has-logo { background: none; }
.mark.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.mark.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
.mark.lg.has-logo { width: auto; min-width: 52px; max-width: 260px; border-radius: 0; }
.mark.lg.has-logo img { width: auto; max-width: 260px; }
.cat-logo { width: 17px; height: 17px; object-fit: contain; border-radius: 4px; flex: none; }
.tile .cat-logo { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

/* ── beranda: launcher di tengah ── */
.shell.launcher { grid-template-columns: minmax(0, 1fr); }
.shell.launcher .sidebar, .shell.launcher .topbar, .shell.launcher .sb-scrim { display: none !important; }
.shell.launcher .view { max-width: 1080px; padding: 20px 32px 32px; }
.launch { display: flex; flex-direction: column; align-items: center; min-height: calc(100dvh - 52px); }
.launch-bar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.launch-date { font-size: 12.5px; color: var(--text-3); }
.lu { position: relative; }
.lu-chip { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; cursor: pointer; box-shadow: var(--shadow-sm); color: var(--text); text-align: left; transition: border-color .12s, background .12s; }
.lu-chip:hover { border-color: var(--border-2); }
.lu-chip .av { width: 28px; height: 28px; font-size: 11px; background: var(--accent-soft); color: var(--accent); }
.lu-chip > .ic { width: 14px; height: 14px; color: var(--text-3); }
.lu-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lu-name { font-size: 13px; font-weight: 600; }
.lu-role { font-size: 11.5px; color: var(--text-3); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu .menu { left: auto; right: 0; top: calc(100% + 6px); bottom: auto; width: 260px; }

.launch-hero { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; margin: 40px 0 8px; }
.launch-hero .mark.lg { margin-bottom: 18px; }
.launch-hero h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.launch-hero > p { margin: 8px 0 0; max-width: 560px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.launch-search { position: relative; width: 100%; max-width: 480px; margin: 26px auto 0; }
.launch-search .search { height: 44px; border-radius: 11px; padding-left: 40px; padding-right: 44px; font-size: 14.5px; box-shadow: var(--shadow-sm);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8f97' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center / 16px; }
.launch-search kbd { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--mono); color: var(--text-3); border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: var(--surface-2); pointer-events: none; }
.launch-search .search:focus + kbd { display: none; }

.lsec { width: 100%; display: flex; align-items: baseline; gap: 10px; margin: 44px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.lsec > span { font-size: 15px; font-weight: 600; color: var(--text); }
.lsec em { font-style: normal; font-size: 12.5px; color: var(--text-3); }
.lsec a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.lsec a:hover { color: var(--text); }
.lsec a .ic { width: 14px; height: 14px; }

.lgrid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lt { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); color: inherit; transition: border-color .15s, box-shadow .15s; min-width: 0; }
a.lt:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
a.lt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lt-top { display: flex; align-items: center; gap: 12px; padding: 18px 18px 0; min-width: 0; }
.lt-top b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); flex: none; overflow: hidden; }
.lt-icon .ic { width: 20px; height: 20px; }
.lt-icon .cat-logo { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.lt-icon.logo { background: var(--surface); }
.lt-state { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--text-3); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.lt-state.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.lt-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lt > p { margin: 12px 18px 16px; font-size: 13px; line-height: 1.55; color: var(--text-2); flex: 1; }
.lt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 12px 12px; min-height: 42px; }
.lt-meta { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-meta.muted-meta { color: var(--text-3); }
.lt-open { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); flex: none; }
.lt-open .ic { width: 14px; height: 14px; transition: transform .15s; }
a.lt:hover .lt-open .ic { transform: translateX(2px); }
.lt-skel { display: block; width: 150px; height: 9px; border-radius: 5px; background: var(--surface-3); animation: skel 1.2s ease-in-out infinite; }
@keyframes skel { 50% { opacity: .5; } }
.lt.soon { box-shadow: none; }
.lt.soon .lt-icon { color: var(--text-3); }
.lt.soon .lt-top b { color: var(--text-2); }
.lt.soon > p { color: var(--text-3); }
.lt.soon .lt-foot { background: transparent; }
.lt.hidden-cat { opacity: .55; }
.lnone { display: grid; justify-items: center; gap: 4px; padding: 48px 0 8px; color: var(--text-2); font-size: 13.5px; }
.lnone b { color: var(--text); font-size: 15px; }
.lnone .tile { margin-bottom: 8px; }
.launch-foot { margin-top: auto; padding-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12.5px; color: var(--text-3); }
.launch-foot a:hover { color: var(--text); }
.brand-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 22px 16px; border: 1px dashed var(--border-2); border-radius: 12px; background: var(--surface-2); }
.logo-prev { width: 36px; height: 36px; border-radius: 9px; }
.logo-prev .ic { width: 18px; height: 18px; }
@media (max-width: 960px) { .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .shell.launcher .view { padding: 14px 16px 24px; }
  .launch-date { display: none; }
  .launch-bar { justify-content: flex-end; }
  .launch-hero { margin-top: 24px; }
  .launch-hero h1 { font-size: 23px; }
  .lgrid { grid-template-columns: 1fr; }
}

/* ── panel berkepala, KPI, grafik, daftar sumber daya ── */
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0; font-size: 14.5px; font-weight: 600; }
.panel-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); }
.ph-figure { text-align: right; }
.ph-figure b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ph-figure span { font-size: 12px; color: var(--text-3); }
.panel-empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.kpi { padding: 18px 20px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi small { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { display: block; margin-top: 8px; font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi b em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.kpi .meter { margin: 10px 0 0; }
.kpi > span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } .kpi + .kpi { border-left: 0; border-top: 1px solid var(--border); } }
.split.wide-left { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .split.wide-left { grid-template-columns: 1fr; } }
.chart { position: relative; padding: 18px 20px 14px 56px; }
.chart-grid { position: absolute; left: 20px; right: 20px; top: 18px; height: 190px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid span { position: relative; font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 0; }
.chart-grid span::after { content: ''; position: absolute; left: 36px; right: 0; top: 0; border-top: 1px dashed var(--border); }
.chart-bars { position: relative; height: 190px; display: flex; align-items: flex-end; gap: 6px; }
.cb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; position: relative; }
.cb i { width: 100%; max-width: 26px; background: var(--accent); opacity: .8; border-radius: 4px 4px 1px 1px; transition: opacity .12s; }
.cb:hover i { opacity: 1; }
.cb span { position: absolute; bottom: -20px; font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chart { padding-bottom: 34px; }
.res-list { padding: 6px; }
.res-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: inherit; }
a.res-row:hover { background: var(--surface-2); }
.res-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.res-ic .ic { width: 16px; height: 16px; }
.res-row.warn .res-ic { background: var(--warn-soft); color: var(--warn); }
.res-text { flex: 1; min-width: 0; }
.res-text b { display: block; font-size: 13.5px; font-weight: 600; }
.res-text span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-val { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.res-row > .ic { width: 15px; height: 15px; color: var(--text-3); }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; line-height: 1.5; }
.callout > .ic { width: 18px; height: 18px; margin-top: 1px; }
.callout.err { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: var(--danger-soft); }
.callout.err > .ic { color: var(--danger); }
.inline-status { display: inline-flex; align-items: center; gap: 6px; }
.inline-status .dot.on { box-shadow: none; }
table.t.flush th:first-child, table.t.flush td:first-child { padding-left: 20px; }
table.t.flush th:last-child, table.t.flush td:last-child { padding-right: 20px; }
table.t.flush thead tr:first-child th { border-radius: 0; }
table.t td.strong { font-weight: 600; }
.login-card .mark.has-logo { width: auto; min-width: 40px; max-width: 220px; height: 44px; border-radius: 0; }
.login-card .mark.has-logo img { width: auto; max-width: 220px; }
select { -webkit-appearance: none; appearance: none; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8f97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 15px; padding-right: 32px; }

/* ── formulir berbagian ── */
.modal-body.form-modal { gap: 0; padding: 0; }
.form-section { display: grid; gap: 14px; padding: 20px 22px; }
.form-section + .form-section { border-top: 1px solid var(--border); }
.fs-head h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.fs-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.req { color: var(--danger); font-weight: 600; }
.foot-note { font-size: 12px; color: var(--text-3); align-self: center; }
input.invalid, .input-group.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px var(--danger-soft) !important; }
.input-group { display: flex; align-items: stretch; width: 100%; height: 36px; border: 1px solid var(--border-2); border-radius: 7px; background: var(--surface); overflow: hidden; transition: border-color .12s, box-shadow .12s; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group input { flex: 1; min-width: 0; height: 100%; border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent; }
.ig-prefix { display: flex; align-items: center; padding: 0 10px; max-width: 58%; background: var(--surface-2); color: var(--text-3); border-right: 1px solid var(--border); font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-btn { flex: none; width: 34px; display: grid; place-items: center; border: 0; border-left: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); cursor: pointer; }
.ig-btn:hover { color: var(--text); background: var(--surface-3); }
.ig-btn .ic { width: 15px; height: 15px; }
.mono-input { font-family: var(--mono); font-size: 13px !important; letter-spacing: .02em; }
.plan-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); cursor: pointer; color: var(--text-2); transition: border-color .12s, background .12s, box-shadow .12s; }
.plan-card:hover { border-color: var(--text-3); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.pc-top { display: flex; align-items: center; justify-content: space-between; }
.pc-top b { font-size: 14px; font-weight: 600; color: var(--text); }
.pc-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-2); background: var(--surface); flex: none; }
.pc-q { font-size: 13px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.pc-n { font-size: 12px; color: var(--text-3); font-weight: 400; line-height: 1.4; }
.plan-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan-card:has(input:checked) .pc-dot { border: 5px solid var(--accent); }
.plan-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) { .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.callout.ok { border-color: var(--accent-line); background: var(--accent-soft); }
.callout.ok > .ic { color: var(--accent); }
dl.cred { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 13.5px; }
dl.cred dt { padding: 10px 14px; color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--border); }
dl.cred dd { margin: 0; padding: 6px 8px 6px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); min-width: 0; }
dl.cred dd .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
dl.cred dt:nth-last-of-type(1), dl.cred dd:last-child { border-bottom: 0; }
/* Saat modal terbuka, notifikasi tampil di atas supaya tidak menutupi tombol modal. */
.modal-wrap:not([hidden]) ~ .toast { bottom: auto; top: 20px; }

/* ── profil tenant & panel berkepala ── */
.panel-body { padding: 18px 20px; display: grid; gap: 14px; }
.panel-body.flush { padding: 6px; gap: 0; }
.panel-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.panel-head .btn-sm { margin-top: 2px; }
button.res-row { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.res-row:hover { background: var(--surface-2); }
.res-row .av { width: 32px; height: 32px; font-size: 11.5px; }
.res-row .badge, .res-row .role { flex: none; }
.res-note { padding: 12px; font-size: 12.5px; color: var(--text-3); }
.tenant-title { display: flex; align-items: center; gap: 14px; }
.tenant-title > div { min-width: 0; }
.tenant-title h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av.xl { width: 48px; height: 48px; border-radius: 12px; font-size: 16px; }
.danger-zone { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.dz-text b { display: block; font-size: 14px; color: var(--text); }
.dz-text span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.row-go { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.row-go .ic { width: 14px; height: 14px; }
td:has(> .row-go) { text-align: right; }
.lsec-links { margin-left: auto; display: inline-flex; gap: 18px; }
.lsec-links a { margin-left: 0 !important; }
.kpi .kpi-text { font-size: 17px; letter-spacing: -.01em; }
@media (max-width: 640px) { .danger-zone { flex-direction: column; align-items: flex-start; } .tenant-title h1 { white-space: normal; } }
.split > * { min-width: 0; }
.stack { grid-template-columns: minmax(0, 1fr); }
