/* 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;
  --k1: #22a861; --k2: #2f6fe4; --k3: #f0a23b; --k4: #e5484d;
  --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: #000000; --surface: #0f0f0f; --surface-2: #141414; --surface-3: #1c1c1c; --sidebar: #070707;
  --border: #232323; --border-2: #303030;
  --text: #f2f2f2; --text-2: #a3a3a3; --text-3: #737373;
  --accent: #3fcf72; --accent-fg: #052410; --accent-soft: rgba(63, 207, 114, .12); --accent-line: rgba(63, 207, 114, .32);
  --k1: #3ecf82; --k2: #5b8cff; --k3: #f5b04f; --k4: #ff6369;
  --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], input[type=datetime-local], 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 ── */
.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; }
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); }
.ig-suffix { display: flex; align-items: center; padding: 0 10px; max-width: 60%; background: var(--surface-2); color: var(--text-3); border-left: 1px solid var(--border); font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-text span.wrap { white-space: normal; color: var(--danger); }

/* ── workspace tenant: sidebar bergrup, menu atas, dashboard ala aplikasi bisnis ── */
.sb-head { display: flex; align-items: center; gap: 2px; padding-right: 8px; }
.sb-head .sb-brand { flex: 1; min-width: 0; }
.sb-collapse { flex: none; }
.sb-sep { border: 0; border-top: 1px solid var(--border); margin: 10px 6px; }
button.sb-link { width: 100%; background: none; font: inherit; cursor: pointer; text-align: left; }
.sb-ghead .chev { margin-left: auto; width: 15px; height: 15px; transition: transform .15s; }
.sb-group.open > .sb-ghead .chev { transform: rotate(180deg); }
.sb-group.has-on > .sb-ghead { color: var(--text); }
.sb-group.has-on > .sb-ghead > .ic:first-child { color: var(--accent); }
.sb-sub { display: none; margin: 2px 0 6px 18px; padding-left: 8px; border-left: 1px solid var(--border); gap: 1px; }
.sb-group.open > .sb-sub { display: grid; }
.sb-sub .sb-link { height: 32px; font-size: 13px; }
.sb-sub .sb-link .ic { width: 16px; height: 16px; }

@media (min-width: 901px) {
  .shell.sb-mini:not(.launcher) { grid-template-columns: 68px minmax(0, 1fr); }
  .sb-mini .sb-head { flex-direction: column; gap: 6px; padding: 12px 0 6px; }
  .sb-mini .sb-brand { padding: 0; flex: none; }
  .sb-mini .sb-brand > div, .sb-mini .sb-link > span:not(.ic), .sb-mini .sb-label, .sb-mini .sb-tenant > div,
  .sb-mini .sb-back, .sb-mini .chev, .sb-mini .sb-link.soon { display: none; }
  /* Grup yang terbuka tetap menampilkan sub-menunya sebagai ikon (judul lewat tooltip). */
  .sb-mini .sb-sub { margin: 2px 0 6px; padding: 4px 0; border-left: 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
  .sb-mini .sb-nav { padding: 4px 10px 12px; }
  .sb-mini .sb-link { justify-content: center; padding: 0; }
  .sb-mini .sb-tenant { justify-content: center; padding: 6px 0; border-color: transparent; background: none; }
  .sb-mini .sb-collapse .ic { transform: rotate(180deg); }
  .sb-mini .sb-sep { margin: 8px 2px; }
}
@media (max-width: 900px) { .sb-collapse { display: none; } }

.topbar { height: 60px; gap: 6px; }
.top-actions { margin-left: auto; }
.quick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.quick a { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.quick a:hover { color: var(--text); background: var(--surface-3); }
.quick a.on { color: var(--accent); background: var(--accent-soft); }
.quick a.ext { color: var(--text-3); }
.quick a.ext .ic { width: 13px; height: 13px; }
.bell { position: relative; width: 38px; height: 38px; color: var(--text-2); }
.bell .ic { width: 20px; height: 20px; }
.bell i { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font: 600 10.5px/17px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.who { position: relative; flex: none; }
.who-btn { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text); }
.who-btn:hover { background: var(--surface-3); }
.who-btn .av { width: 34px; height: 34px; font-size: 12px; background: var(--accent-soft); color: var(--accent); }
.who-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; max-width: 200px; }
.who-text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-text span { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-btn > .ic { width: 15px; height: 15px; color: var(--text-3); }
.plan-badge { font: 700 11px/1 var(--font); letter-spacing: .07em; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.who .menu { left: auto; right: 0; top: calc(100% + 6px); bottom: auto; width: 260px; }
@media (max-width: 1100px) { .quick a.ext { display: none; } }
@media (max-width: 900px) { .quick { display: none; } }
@media (max-width: 640px) { .who-text { display: none; } .topbar { height: 56px; } }

/* Kepala halaman workspace: judul + garis aksen */
.ws-head { margin-bottom: 22px; }
.ws-title { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.ws-title .grow { flex: 1; min-width: 240px; }
.ws-title h1 { margin: 0; font-size: 22px; font-weight: 700; }
.ws-title p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; max-width: 760px; }
.ws-rule { position: relative; height: 1px; background: var(--border); margin-top: 16px; }
.ws-rule i { position: absolute; left: 0; top: -2px; width: 48px; height: 5px; border-radius: 5px; background: var(--k2); }

/* Kartu KPI: angka besar rata kanan + bilah warna + perbandingan bulan lalu */
.kgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kcard { --kc: var(--k1); display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); color: inherit; transition: border-color .15s, box-shadow .15s; }
a.kcard:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
a.kcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kcard.c2 { --kc: var(--k2); } .kcard.c3 { --kc: var(--k3); } .kcard.c4 { --kc: var(--k4); }
.kc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.kc-top .ic { width: 16px; height: 16px; color: var(--text-3); }
a.kcard:hover .kc-top .ic { color: var(--text); }
.kc-val { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-val em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.kc-bar { height: 8px; border-radius: 999px; background: var(--kc); overflow: hidden; }
.kc-bar i { display: block; height: 100%; border-radius: inherit; }
.kc-bar.meter { background: color-mix(in srgb, var(--kc) 20%, transparent); }
.kc-bar.meter i { background: var(--kc); }
.kc-foot { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-foot.up::before { content: '↑ '; color: var(--k1); font-weight: 600; }
.kc-foot.down::before { content: '↓ '; color: var(--k4); font-weight: 600; }
@media (max-width: 1100px) { .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kgrid { grid-template-columns: 1fr; } }

.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.dgrid.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dgrid.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .dgrid, .dgrid.even { grid-template-columns: minmax(0, 1fr); } }
.ph-actions { position: relative; display: flex; align-items: center; gap: 2px; margin: -4px -6px 0 0; }
.dd-menu { left: auto; right: 0; top: calc(100% + 4px); bottom: auto; width: 150px; }
.dd-menu button.on { color: var(--accent); font-weight: 600; }
.dd-menu button.on .ic { color: var(--accent); }
.chart-empty { padding: 72px 24px; line-height: 1.7; }
.res-val.small { font-size: 12.5px; font-weight: 500; color: var(--text-3); }

.donut-box { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 28px; padding: 22px 20px; }
.donut { position: relative; width: 172px; height: 172px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 18; }
.donut .track { stroke: var(--surface-3); }
.donut .seg { transition: opacity .12s; }
.donut .seg:hover { opacity: .85; }
.donut .c1 { stroke: var(--k1); } .donut .c2 { stroke: var(--k2); } .donut .c3 { stroke: var(--k3); } .donut .c4 { stroke: var(--k4); }
.donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-mid b { font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.donut-mid span { font-size: 12px; color: var(--text-3); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 190px; flex: 1; max-width: 260px; }
.legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 40px; align-items: center; gap: 10px; font-size: 13.5px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; }
.legend i.c1 { background: var(--k1); } .legend i.c2 { background: var(--k2); } .legend i.c3 { background: var(--k3); } .legend i.c4 { background: var(--k4); }
.legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
.legend em { font-style: normal; color: var(--text-3); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }

/* Filter berbentuk pil (katalog plugin) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip em { font-style: normal; font-size: 11.5px; color: var(--text-3); background: var(--surface-3); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip.on em { background: var(--surface); color: var(--accent); }

/* Katalog plugin */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
button.lt { width: 100%; padding: 0; font: inherit; text-align: left; cursor: pointer; }
button.lt:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
button.lt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.lt:hover .lt-open .ic { transform: translateX(2px); }
.plug-name { flex: 1; min-width: 0; }
.plug-name b { display: block; font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plug-name span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt.plug .lt-icon { border-color: transparent; }
.lt-meta.err { color: var(--danger); }
.plug-head { display: flex; align-items: center; gap: 12px; }
.plug-head > div { flex: 1; min-width: 0; }
.plug-head b { display: block; font-size: 16px; font-weight: 650; }
.plug-head span { font-size: 12.5px; color: var(--text-3); }
.plug-head a { color: var(--info); }
.plug-head .lt-icon { border-color: transparent; }
.callout > .spinner { width: 16px; height: 16px; margin-top: 2px; }

/* Matriks hak akses */
.pm { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pm-table td { padding: 8px 14px; border-bottom: 1px solid var(--border); }
.pm-table tr:last-child td { border-bottom: 0; }
.pm-table tr:not(.pm-group):hover td { background: var(--surface-2); }
.pm-group td { background: var(--surface-2); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.pm-c { width: 80px; text-align: center; }
.pm-gl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); }
.pm-gl b { font-weight: 600; }
.pm input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; vertical-align: middle; }
.pm input:disabled { cursor: not-allowed; opacity: .55; }

/* Mode lihat saja: tombol pengubah disembunyikan (server tetap menolak bila dipaksa). */
body.ro [data-w] { display: none !important; }

/* ── langganan & tagihan ── */
.plan-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.callout.warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); }
.callout.warn > .ic { color: var(--warn); }
.callout.info { border-color: color-mix(in srgb, var(--info) 30%, transparent); background: var(--info-soft); }
.callout.info > .ic { color: var(--info); }
.sub-banner { align-items: center; margin-bottom: 16px; }
.sub-banner .grow { flex: 1; min-width: 0; }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row input { flex: 1; min-width: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border-2); border-radius: 9px; background: var(--surface); }
.seg button { border: 0; background: transparent; border-radius: 6px; padding: 5px 12px; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--text); color: var(--bg); }
.seg-save { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.seg button.on .seg-save { background: var(--accent); color: var(--accent-fg); }
.bill-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bill-plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.bill-plan.hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-md); }
.bill-plan.current { border-color: var(--text-3); }
.bp-tag { position: absolute; top: -10px; left: 16px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--text); color: var(--bg); }
.bp-tag.hot { background: var(--accent); color: var(--accent-fg); }
.bp-head b { display: block; font-size: 16px; font-weight: 650; }
.bp-head span { font-size: 12.5px; color: var(--text-3); }
.bp-price { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; }
.bp-price b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bp-price span, .bp-sub { font-size: 12.5px; color: var(--text-3); }
.bp-quota { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface-3); font-size: 13px; color: var(--text-2); }
.bp-quota b { color: var(--text); font-variant-numeric: tabular-nums; }
.bill-plan ul { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 7px; font-size: 13px; color: var(--text-2); }
.bill-plan li { display: flex; gap: 8px; align-items: flex-start; }
.bill-plan li .ic { width: 15px; height: 15px; color: var(--accent); margin-top: 2px; }
.bill-plan .btn, .bill-plan .btn-primary { margin-top: auto; }
@media (max-width: 1000px) { .bill-plans { grid-template-columns: 1fr; } }
.bill-custom { position: relative; margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 22px 20px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.bill-custom.current { border-color: var(--text-3); }
.bc-main { display: grid; gap: 14px; align-content: start; }
.bc-sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.bc-row { display: grid; gap: 6px; }
.bc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.bc-head b { display: block; font-size: 13.5px; font-weight: 600; }
.bc-head span { font-size: 12px; color: var(--text-3); }
.bc-head input { width: 96px; text-align: right; font-variant-numeric: tabular-nums; padding: 6px 8px; }
.bc-row input[type=range] { width: 100%; accent-color: var(--accent); margin: 0; cursor: pointer; }
.bc-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.bc-sum { display: flex; flex-direction: column; gap: 4px; padding-left: 24px; border-left: 1px solid var(--border); }
.bc-sum .bp-price { margin-top: 0; }
.bc-lines { margin: 12px 0 16px; display: grid; border-top: 1px solid var(--border); }
.bc-lines > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.bc-lines dt { color: var(--text-2); }
.bc-lines dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-sum .btn-primary { margin-top: auto; }
@media (max-width: 1000px) {
  .bill-custom { grid-template-columns: 1fr; }
  .bc-sum { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
}
@media (max-width: 640px) { .bc-sliders { grid-template-columns: 1fr; } }

.modal-body.pay { padding: 20px 22px; }
.pay-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.pay-qr { position: relative; display: grid; justify-items: center; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.qr svg { width: 250px; height: 250px; max-width: 100%; }
.qris-mark { font-weight: 800; letter-spacing: .14em; font-size: 13px; color: #111; }
.pay-info { display: grid; gap: 10px; }
.pay-info > small { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.pay-amt { display: flex; align-items: center; gap: 6px; }
.pay-amt b { font-size: 30px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-info p { margin: 0; }
.pay-steps { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.pay-wait { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--surface-3); margin-top: 4px; }
.pay-wait b { display: block; font-size: 13.5px; }
.pay-wait span { font-size: 12.5px; color: var(--text-3); }
.pay-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-2); }
.pay-done { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 24px 8px; }
.pay-done h3 { margin: 6px 0 0; font-size: 20px; }
.pay-done p { margin: 0; }
.pay-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pay-check .ic { width: 28px; height: 28px; }
.pay-check.off { background: var(--surface-3); color: var(--text-3); }
@media (max-width: 720px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-qr { justify-self: center; width: 100%; max-width: 300px; }
  .modal-foot { flex-wrap: wrap; }
}

.plan-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pe-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pe-head h2 { margin: 0; font-size: 15px; font-weight: 650; }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 14px 0; margin-top: 8px; background: linear-gradient(transparent, var(--bg) 35%); }
@media (max-width: 1100px) { .plan-edit { grid-template-columns: 1fr; } }

/* ── basis knowledge ── */
.kb-bases { margin-bottom: 14px; }
.kb-bases-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.kb-bases-head > div { flex: 1; min-width: 0; }
.kb-bases-head a { color: var(--accent); }
.kb-base-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.kb-base { position: relative; display: grid; gap: 4px; text-align: left; padding: 10px 34px 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; transition: border-color .12s, box-shadow .12s; }
.kb-base:hover { border-color: var(--border-2); }
.kb-base.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.kbb-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbb-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.kbb-sub .badge { font-size: 11px; padding: 0 7px; }
.kbb-edit { position: absolute; top: 8px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--text-3); }
.kbb-edit:hover { background: var(--surface-3); color: var(--text); }
.kbb-edit .ic { width: 14px; height: 14px; }
.bp-caps { margin: 10px 0 0; display: grid; gap: 0; border-block: 1px solid var(--border); }
.bp-caps > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; }
.bp-caps > div + div { border-top: 1px dashed var(--border); }
.bp-caps dt { color: var(--text-3); }
.bp-caps dd { margin: 0; color: var(--text-2); text-align: right; }
.bp-caps b { color: var(--text); font-variant-numeric: tabular-nums; }

.file-fill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed var(--border-2); border-radius: 10px; background: var(--surface-2); }
.file-fill .hint { flex: 1; min-width: 0; }

/* ── sidebar sederhana & tab Atur AI ── */
.seg a { border-radius: 6px; padding: 5px 12px; font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.seg a.on { background: var(--text); color: var(--bg); }
.page-seg { align-self: flex-start; justify-self: start; width: max-content; }

/* ── submenu basis knowledge di bawah "Pengetahuan" ── */
.sb-kb { display: grid; gap: 1px; margin: 1px 0 4px 21px; padding-left: 10px; border-left: 1px solid var(--border); }
.sb-kb:empty { display: none; }
.sb-kb-item { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 6px; font-size: 13px; color: var(--text-2); text-decoration: none; min-width: 0; }
.sb-kb-item:hover { background: var(--surface-3); color: var(--text); }
.sb-kb-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sb-kb-item > i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.sb-kb-item.off > i { background: var(--text-3); }
.sb-kb-item.off .nm { color: var(--text-3); }
.sb-kb-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-kb-item .n { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sb-kb-item.add { color: var(--text-3); }
.sb-kb-item.add .ic { width: 13px; height: 13px; }
.sb-mini .sb-kb { display: none; }

/* tombol tema terang/gelap */
.theme-toggle .i-sun, [data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: inline-flex; }

/* ── launcher tenant: "Pilih layanan" ── */
.tl .launch-bar { min-height: 48px; }
.tl-org { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tl-org .av { width: 36px; height: 36px; font-size: 12.5px; border-radius: 9px; letter-spacing: .03em; }
.tl-org .av.has-logo { background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.tl-org .av.has-logo img { width: 78%; height: 78%; object-fit: contain; }
.tl-org b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.tl-org > div > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.tl-org .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tl-org .dot.err { background: var(--danger); }
.tl-bar-r { display: flex; align-items: center; gap: 8px; }
.tl-hero { width: 100%; text-align: left; margin: 52px 0 8px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.tl-date { font-size: 12.5px; color: var(--text-3); }
.tl-hero h1 { margin: 6px 0 0; font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.tl-hero > p { margin: 10px 0 0; color: var(--text-2); font-size: 15.5px; max-width: 560px; }
.tl-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tl-big { height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 9px; }
.tl-big .ic { width: 17px; height: 17px; }
.tl-banner { width: 100%; margin-top: 20px; }
.tl-banner .sub-banner { margin: 0; }
.tl .lsec { margin-top: 36px; }
.tl-grid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lt-icon.tl-on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.tl-acct { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tl-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; min-width: 0; border-top: 1px solid var(--border); transition: background .12s; }
.tl-row:nth-child(-n+2) { border-top: 0; }
.tl-row:nth-child(even) { border-left: 1px solid var(--border); }
.tl-row:hover { background: var(--surface-2); }
.tl-row > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tl-row b { font-size: 13.5px; font-weight: 600; }
.tl-val { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tl-row > .ic { width: 15px; height: 15px; color: var(--text-3); flex: none; transition: transform .15s; }
.tl-row:hover > .ic { transform: translateX(2px); color: var(--text); }
.tl-row-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--surface-3); color: var(--text-2); }
.tl-row-ic .ic { width: 16px; height: 16px; }
.tl-off { cursor: default; background: transparent; border-style: dashed; box-shadow: none; }
.tl-off b { color: var(--text-2); }
.tl-off p { color: var(--text-3); }
.tl-off .lt-state { color: var(--text-3); background: transparent; border: 1px solid var(--border); }
.lt-icon.tl-soon-ic { background: transparent; color: var(--text-3); border: 1px dashed var(--border-2); }
.lt-icon.tl-soon-ic .ic, .lt-icon.tl-soon-ic img { opacity: .8; }
@media (max-width: 760px) {
  .tl-hero { margin-top: 28px; padding-bottom: 24px; }
  .tl-hero h1 { font-size: 26px; }
  .tl-grid, .tl-acct { grid-template-columns: 1fr; }
  .tl-row:nth-child(2) { border-top: 1px solid var(--border); }
  .tl-row:nth-child(even) { border-left: 0; }
  .tl-cta .btn, .tl-cta .btn-primary { flex: 1 1 100%; }
  .tl-org > div span { display: none; }
}

/* ── halaman masuk ── */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; background: var(--bg); }
.login[hidden] { display: none; }
.login-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px 56px; background: #0a0a0b; color: #f4f4f5; border-right: 1px solid var(--border); overflow: hidden; }
.la-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.la-brand b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.login-aside .mark { width: 32px; height: 32px; border-radius: 8px; background: #f4f4f5; color: #0a0a0b; }
.login-aside .mark.has-logo { background: none; }
.la-body { max-width: 520px; }
.la-body h2 { color: #fafafa; margin: 0 0 32px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.la-demo { margin: 0 0 32px; padding: 18px 18px 14px; border: 1px solid #26262a; border-radius: 14px; background: #121214; }
.la-demo figcaption { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8b8b93; margin-bottom: 12px; }
.la-q { margin: 0 0 10px auto; width: fit-content; max-width: 88%; padding: 9px 13px; border-radius: 14px; background: #232327; font-size: 14px; line-height: 1.45; }
.la-a { margin: 0; font-size: 14px; line-height: 1.55; color: #d4d4d8; }
.la-a b { color: #fff; font-weight: 600; }
.la-src { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #26262a; font-size: 12.5px; font-weight: 500; color: #e4e4e7; }
.la-src .ic { width: 15px; height: 15px; color: #8b8b93; }
.la-src em { font-style: normal; color: #8b8b93; font-weight: 400; }
.la-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid #26262a; }
.la-facts li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #26262a; font-size: 13.5px; }
.la-facts b { font-weight: 600; color: #fafafa; }
.la-facts span { color: #a1a1aa; line-height: 1.45; }
.la-foot { margin: 0; font-size: 12px; color: #71717a; }

.login-main { display: flex; flex-direction: column; min-width: 0; padding: 24px 32px; }
.login-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.login-mbrand { display: none; margin-right: auto; }
.login-card { width: 100%; max-width: 380px; margin: auto; padding: 32px 0; display: grid; gap: 16px; }
.login-card h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.login-card #login-sub { margin: 6px 0 8px; font-size: 14px; }
.login-card label { gap: 6px; }
.login-card input { height: 42px; font-size: 14.5px; }
.login-pw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.login-caps { font-size: 11.5px; font-weight: 500; color: var(--warn); }
.login-pw { position: relative; display: block; }
.login-pw input { width: 100%; padding-right: 44px; }
.login-eye { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--text-3); cursor: pointer; }
.login-eye:hover { color: var(--text); background: var(--surface-3); }
.login-eye[aria-pressed="true"] { color: var(--text); }
.login-eye .ic { width: 17px; height: 17px; }
.login-submit { height: 44px; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.login-submit .ic { width: 17px; height: 17px; transition: transform .15s; }
.login-submit:hover:not(:disabled) .ic { transform: translateX(2px); }
.login-foot { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 6px; font-size: 13px; color: var(--text-3); }
.login-foot p { margin: 0; }
.login-foot b { color: var(--text-2); font-weight: 600; }
.login-foot a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2); }
.login-foot a:hover { text-decoration-color: currentColor; }
.login-main .mark.has-logo, .login-aside .mark.has-logo { width: auto; min-width: 32px; max-width: 180px; height: 32px; border-radius: 0; }
.login-main .mark.has-logo img, .login-aside .mark.has-logo img { width: auto; max-width: 180px; }
@media (max-width: 1100px) { .la-facts li { grid-template-columns: 1fr; gap: 2px; } .login-aside { padding: 36px 40px; } }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-mbrand { display: flex; }
  .login-main { padding: 16px; }
  .login-card { padding: 24px 0 40px; }
}

/* WhatsApp AI */
.wa-status { display: grid; gap: 12px; align-content: start; }
.wa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wa-head h2 { margin: 0; }
.wa-me { display: flex; align-items: center; gap: 12px; }
.wa-me b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.wa-qr { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.wa-qr img { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 8px; border: 1px solid var(--border); }
.wa-qr ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--text-2); max-width: 300px; }
.wa-link { display: grid; gap: 10px; max-width: 360px; }

/* Rincian biaya pindah paket (upgrade = selisih sisa masa) */
.bp-quote { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.bp-quote.up { padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent-line); }
.bc-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.bc-incl { font-style: normal; color: var(--accent); font-size: 12px; }
@media (max-width: 640px) { .bc-feats { grid-template-columns: 1fr; } }

.bell.urgent { color: var(--warn, #d97706); }

/* ── editor Markdown dokumen knowledge ── */
.mde-field { display: grid; gap: 6px; }
.mde-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.mde { border: 1px solid var(--border-2); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.mde:focus-within { border-color: var(--text-3); }
.mde-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mde-tools { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.mde-bar.preview .mde-tools { visibility: hidden; }
.mde-btn { height: 28px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.mde-btn:hover { background: var(--surface-3); color: var(--text); }
.mde-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; }
.mde-tools .btn-sm { height: 28px; margin-left: 2px; }
.mde-tabs { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--surface-3); }
.mde-tab { height: 26px; padding: 0 12px; border: 0; border-radius: 5px; background: none; color: var(--text-3); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.mde-tab.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.mde-ta { display: block; width: 100%; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: none; min-height: 300px; font-family: var(--mono); font-size: 13px; line-height: 1.6; padding: 12px 14px; background: var(--surface); }
.mde-prev { min-height: 300px; max-height: 520px; overflow: auto; padding: 14px 16px; font-size: 14px; line-height: 1.6; }
.mde-prev h2 { font-size: 15px; margin: 14px 0 6px; } .mde-prev h2:first-child { margin-top: 0; }

/* ── daftar dokumen knowledge ── */
.kb-toolbar { flex-wrap: wrap; }
.kb-toolbar .search { flex: 1 1 240px; min-width: 200px; }
.kb-toolbar select { width: auto; min-width: 170px; }
.kb-list.drop { outline: 2px dashed var(--accent); outline-offset: 3px; }
.kb-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.kb-table th.sortable.on { color: var(--text); }
.sort-ic { margin-left: 4px; color: var(--text-3); font-size: 11px; }
.kb-table .num-col { width: 44px; }
.kb-table .act-col { width: 1%; text-align: right; }
.kb-table td { vertical-align: middle; }
.kb-cat { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.kb-file { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; color: var(--info); text-decoration: none; }
.kb-file:hover .kb-file-name { text-decoration: underline; }
.kb-file .ic { width: 15px; height: 15px; flex: none; }
.kb-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kb-file-size { flex: none; font-size: 11.5px; color: var(--text-3); }
.kb-file-lg { max-width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.kb-state { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.kb-acts { display: inline-flex; gap: 2px; }
.kb-act { width: 30px; height: 30px; color: var(--text-3); }
.kb-act:hover { color: var(--text); }
.kb-act.danger:hover { color: var(--danger); }
.kb-act .ic { width: 16px; height: 16px; }
.kb-act.spin .ic { animation: spin 1s linear infinite; }
.nowrap { white-space: nowrap; }
.kb-up { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); display: grid; gap: 8px; }
.kb-up-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.kb-up-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-size: 13px; }
.kb-up-row .ic { width: 15px; height: 15px; color: var(--text-3); }
.kb-up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-up-st { font-size: 12.5px; color: var(--text-3); }
.kb-up-st.ok { color: var(--accent); }
.kb-up-st.err { color: var(--danger); }
.kb-up .btn-sm { justify-self: start; }
.kb-view-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; }
.kb-view-meta em { font-style: normal; color: var(--text-3); }
.kb-view-body { max-height: 60vh; overflow: auto; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.kb-cat-list { display: grid; gap: 8px; }
.kb-cat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; }
@media (max-width: 760px) { .kb-cat-row { grid-template-columns: 1fr auto; } }

/* Konfirmasi bertumpuk di atas dialog yang terbuka. */
.modal-wrap.confirm-layer { z-index: 80; padding-top: 18vh; }
.modal.confirm { max-width: 440px; }

/* ── tampilan hasil ekstraksi dokumen ── */
.modal.wide.kd { max-width: 1180px; }
.kd .modal-body { display: grid; gap: 14px; }
.kd-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -6px; font-size: 13px; color: var(--text-3); }
.kd-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.kd-actions-l { display: flex; flex-wrap: wrap; gap: 8px; }
.kd-actions-l a.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.kd-tags { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.kd-tags-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.kd-tags-label b { color: var(--text-2); font-weight: 600; }
.kd-tags-label .ic { width: 15px; height: 15px; }
.kd-tags-row { display: flex; gap: 10px; align-items: stretch; }
.kd-chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; min-height: 42px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); cursor: text; }
.kd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 13px; font-weight: 500; }
.kd-chip button { width: 20px; height: 20px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--text-3); cursor: pointer; }
.kd-chip button:hover { background: var(--surface-3); color: var(--text); }
.kd-chip .ic { width: 12px; height: 12px; }
.kd-tag-in { flex: 1; min-width: 140px; border: 0 !important; box-shadow: none !important; background: none !important; padding: 4px !important; height: auto !important; outline: none; }
.kd-pages { display: grid; gap: 14px; }
.kd-page { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.kd-page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 13.5px; }
.kd-page-body { display: grid; grid-template-columns: minmax(220px, 34%) 1fr; gap: 14px; padding: 14px; }
.kd-img { display: block; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; align-self: start; }
.kd-img img { display: block; width: 100%; height: auto; }
.kd-img.empty { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 220px; padding: 16px; background: var(--surface-2); color: var(--text-3); font-size: 12.5px; text-align: center; }
.kd-img.empty .ic { width: 22px; height: 22px; }
.kd-text-wrap { display: grid; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.kd-text { min-height: 380px; font-family: var(--mono); font-size: 13px; line-height: 1.6; resize: vertical; }
.kd .modal-foot { align-items: center; }
.kd-foot-l { font-size: 12.5px; color: var(--text-3); margin-right: auto; }
.kd-foot-r { font-size: 12.5px; color: var(--text-3); }
@media (max-width: 860px) { .kd-page-body { grid-template-columns: 1fr; } .kd-foot-r { display: none; } }

/* ── pengumuman (broadcast super admin) ── */
.ann-stack { display: grid; gap: 10px; }
.ann-stack:not(:empty) { margin-bottom: 16px; }
.tl .ann-stack { width: 100%; }
.tl .ann-stack:not(:empty) { margin: 20px 0 0; }
.ann-banner { align-items: flex-start; }
.ann-banner .grow { flex: 1; min-width: 0; }
.ann-banner .ann-body { margin-top: 2px; color: var(--text-2); }
.ann-banner .ann-body p { margin: 0 0 4px; }
.ann-act { display: flex; align-items: center; gap: 6px; flex: none; margin: -3px -6px -3px 0; }
.ann-more { justify-self: start; border: 0; background: none; padding: 0 2px; font-size: 12.5px; color: var(--text-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ann-more:hover { color: var(--text); }
.ann-item { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ann-item:first-child { padding-top: 0; }
.ann-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ann-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ann-item-head .muted { margin-left: auto; }
.ann-item.unread .ann-item-head b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 2px; }
.menu .menu-n { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-fg, #fff); }
.bc-plans { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.bc-plans .check { align-items: center; }
.bc-tenants { display: grid; gap: 2px; max-height: 220px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: var(--surface); }
.bc-tenants .check { padding: 6px 8px; border-radius: 6px; }
.bc-tenants .check:hover { background: var(--surface-2); }
.bc-tenants .search { max-width: none; }
.bc-preview { padding: 12px; border: 1px dashed var(--border-2); border-radius: 10px; background: var(--surface-2); }
.bc-preview .ann-act .icon-btn { pointer-events: none; }
.bc-recipients { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
@media (max-width: 640px) {
  .ann-banner { flex-wrap: wrap; }
  .ann-act { margin: 0; width: 100%; justify-content: flex-end; }
}
