/* Content Seruma — v5: dasar putih, aksen hitam, kaca ala Apple
   Skala --c0 (paling terang) → --c6 (paling gelap). Warna hanya dipakai untuk tag & status. */
@font-face {
  font-family: Geist;
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --c0: #FFFFFF;
  --c1: #F4F4F6;
  --c2: #E7E7EB;
  --c3: #A3A3AD;
  --c4: #74747E;
  --c5: #3C3C43;
  --c6: #0E0E10;
  --espresso: var(--c0);
  --bark: var(--c2);
  --taupe: var(--c3);
  --stone: var(--c5);
  --cream: var(--c6);
  --gold: var(--c6);          /* aksen = hitam */
  --bg: #F5F5F7;
  --ink: var(--c6);
  --ink-2: var(--c5);
  --muted: var(--c4);
  --line: rgb(14 14 16 / .07);
  --line-2: rgb(14 14 16 / .11);
  --glass: rgb(255 255 255 / .72);
  --glass-2: rgb(14 14 16 / .05);
  --field: rgb(255 255 255 / .85);
  --radius: 18px;
  --blur: blur(18px) saturate(120%);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.5 Geist, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 620px at 85% -10%, rgb(226 228 236 / .9), transparent 70%),
    radial-gradient(720px 520px at -6% 108%, rgb(232 232 238 / .9), transparent 70%),
    #F5F5F7;
  background-attachment: fixed;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); }
small { display: block; color: var(--muted); font-size: 12.5px; }
code { background: rgb(14 14 16 / .1); padding: 0 5px; border-radius: 5px; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 13px; margin: 0; }
.error { color: #E9A49C; min-height: 1.2em; margin: 0; }
.grow { flex: 1; }
.pad { padding: 18px; }
::selection { background: rgb(14 14 16 / .35); }

/* Glass */
.glass {
  background: rgb(255 255 255 / .72);
  border: 1px solid rgb(255 255 255 / .9);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 1px 2px rgb(14 14 16 / .04), 0 10px 30px rgb(14 14 16 / .06);
}

/* Tombol */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 12px; padding: 9px 15px; cursor: pointer; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--gold); color: var(--espresso); }
.btn.primary:hover { background: #2C2C32; }
.btn.ghost { background: var(--glass); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--glass-2); }
.btn.success { background: #3F6F54; color: #E8F1EC; }
.btn.danger { background: #984F49; color: #FCE9E7; }
.btn.danger.ghost { background: transparent; color: #E9A49C; border-color: rgb(233 164 156 / .32); }
.btn.block { width: 100%; justify-content: center; padding: 12px; }
.btn:disabled { opacity: .55; cursor: wait; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--glass); cursor: pointer; text-decoration: none; color: var(--ink); font-size: 18px; flex: none; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--glass-2); }

/* Form */
label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
input, select, textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 11px; background: var(--field); font-size: 14px; font-weight: 400; color: var(--ink); }
select option { background: var(--c1); color: var(--c6); }
input::placeholder, textarea::placeholder { color: var(--c3); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgb(14 14 16 / .45); border-color: var(--gold); }
input:disabled, select:disabled, textarea:disabled { opacity: .8; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
input[type=color] { padding: 2px; height: 36px; width: 56px; }
input[type=month], input[type=datetime-local] { color-scheme: light; }

/* Login */
.login { flex: 1; min-height: calc(100vh - 28px); display: grid; place-items: center; padding: 16px; }

/* Kerangka: rail ikon · panel · konten */
#app { display: flex; min-height: 100vh; gap: 14px; padding: 14px; }
.pill { position: absolute; top: -4px; right: -4px; background: var(--gold); color: var(--espresso); border-radius: 999px; font-size: 10.5px; font-weight: 600; padding: 1px 6px; min-width: 18px; text-align: center; }

.panel { width: 260px; flex: none; padding: 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 14px; height: calc(100vh - 28px); overflow-y: auto; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, var(--c5), var(--c3)); color: var(--c0); font-weight: 600; flex: none; }
.panel-sec { display: grid; gap: 9px; padding-top: 14px; border-top: 1px solid var(--line); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); font-weight: 500; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 7px 4px; border-radius: 9px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--glass-2); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px 14px; }
.top h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.2px; }
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; }
main > * { min-width: 0; }

/* Statistik glass */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; display: grid; gap: 2px; }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 500; }
.stat b { font-size: 30px; line-height: 1.2; font-weight: 500; color: var(--cream); }
.stat b.warn { color: var(--gold); }

/* Papan mingguan */
.board { padding: 16px; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.week-nav { display: flex; align-items: center; gap: 10px; }
.week-nav h3 { margin: 0; font-size: 17px; font-weight: 500; min-width: 170px; text-align: center; }
.week-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(138px, 1fr)); gap: 8px; }
.wcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0 2px; border-left: 1px solid var(--line); padding-left: 10px; }
.wcol:first-child { border-left: 0; padding-left: 2px; }
.whead { display: flex; flex-direction: column; align-items: center; padding: 4px 0 8px; }
.whead b { font-size: 26px; font-weight: 400; line-height: 1.1; }
.whead span { font-size: 13px; color: var(--muted); }
.wcol.today .whead b, .wcol.today .whead span { color: var(--gold); }
.wcards { display: flex; flex-direction: column; gap: 10px; }
.slot-add { display: grid; place-items: center; height: 40px; border-radius: 13px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--muted); cursor: pointer; opacity: .55; transition: .15s; }
.slot-add svg { width: 16px; height: 16px; }
.slot-add:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }

/* Kartu konten */
.pcard { display: flex; flex-direction: column; text-align: left; padding: 7px; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; transition: transform .15s, border-color .15s; min-width: 0; }
.pcard:hover { border-color: rgb(14 14 16 / .5); transform: translateY(-2px); }
.pcard-media { position: relative; aspect-ratio: 4 / 5; border-radius: 13px; background: var(--c1) center / cover no-repeat; overflow: hidden; }
.pcard-media.empty { background: linear-gradient(150deg, #F1F1F4, #E3E3E8); display: grid; place-items: center; }
.pcard-ph { display: grid; justify-items: center; gap: 6px; color: rgb(14 14 16 / .55); margin-bottom: 40px; }
.pcard-ph svg { width: 30px; height: 30px; }
.pcard-ph small { color: rgb(14 14 16 / .55); }
.pcard-time { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 9px; background: rgb(14 14 16 / .6); backdrop-filter: blur(8px); font-size: 12px; font-weight: 500; }
.aud { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 12px; background: rgb(14 14 16 / .82); color: var(--espresso); backdrop-filter: blur(10px); }
.aud > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; color: #fff; }
.aud > i svg { width: 17px; height: 17px; }
.aud-inv > i { background: #8E5835; }
.aud-sewa > i { background: #3B6591; }
.aud-umum > i { background: var(--taupe); }
.aud b { display: block; font-size: 12.5px; letter-spacing: .6px; font-weight: 600; line-height: 1.2; }
.aud small { color: var(--c2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aud > span { min-width: 0; }
.pcard-body { padding: 10px 6px 4px; display: grid; gap: 9px; }
.pcard-body h4 { margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Tag penanda */
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap; color: color-mix(in srgb, var(--c) 9%, #FFFFFF); background: var(--c); }
.tag i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: color-mix(in srgb, var(--c) 30%, #FFFFFF); }
.tag .tlogo { width: 16px; height: 16px; margin-left: -4px; border-radius: 4px; background: var(--c6); padding: 1.5px; object-fit: contain; flex: none; }

/* Kartu umum & daftar */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 16px; font-weight: 500; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li b { font-weight: 500; }
.list li.unread b { font-weight: 600; color: var(--cream); }
.list li .dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; flex: none; }
.list li.unread .dot { background: var(--gold); }
.row-click { cursor: pointer; }
.row-click:hover { background: rgb(14 14 16 / .04); }
.empty { color: var(--muted); padding: 22px 18px; margin: 0; text-align: center; }
.hint { margin: 0; padding: 11px 15px; background: rgb(255 255 255 / .7); border: 1px solid var(--line-2); border-radius: 14px; color: var(--cream); font-size: 14px; }

/* Toolbar & tabel */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; }
.toolbar #f-search { min-width: 220px; }
.toolbar .month { margin: 0 6px; font-size: 17px; font-weight: 500; min-width: 150px; text-align: center; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td b { font-weight: 500; }
.table tr:last-child td { border-bottom: 0; }
.table .clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-table td { vertical-align: middle; }
.form-table input[name=name] { min-width: 170px; }
.at { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 11px; padding-left: 9px; background: var(--field); }
.at span { color: var(--muted); }
.at input { border: 0; min-width: 140px; background: transparent; }

/* Kalender bulan */
.cal { padding: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-grid.head div { text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); padding: 2px 0 8px; }
.day { min-height: 116px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: rgb(14 14 16 / .03); min-width: 0; }
.day.blank { background: transparent; border-style: dashed; opacity: .45; }
.day.today { border-color: rgb(14 14 16 / .6); background: rgb(14 14 16 / .07); }
.day-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.day.today .day-head span { color: var(--gold); font-weight: 600; }
.day .add { width: 22px; height: 22px; border: 0; background: transparent; color: var(--muted); border-radius: 7px; cursor: pointer; display: grid; place-items: center; opacity: 0; }
.day:hover .add, .day .add:focus { opacity: 1; }
.day .add:hover { background: var(--glass-2); color: var(--gold); }
.day .add svg { width: 15px; height: 15px; }
.ev { text-align: left; border: 0; border-left: 3px solid var(--taupe); background: rgb(14 14 16 / .07); border-radius: 8px; padding: 4px 7px; cursor: pointer; display: grid; min-width: 0; color: var(--ink); }
.ev-inv { border-left-color: #8E5835; }
.ev-sewa { border-left-color: #3B6591; }
.ev:hover { background: rgb(14 14 16 / .13); }
.ev-meta { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); }
.ev-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.ev-title { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-legend { padding: 12px 4px 2px; }
.aud-legend i { border-radius: 2px; width: 10px; height: 10px; }
.l-inv i { background: #8E5835; }
.l-sewa i { background: #3B6591; }

/* Review */
.review { padding: 18px; display: grid; gap: 11px; }
.review h3, .review p { margin: 0; }
.review h3 { font-weight: 500; }
.review-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-head .tags { align-items: flex-start; align-self: flex-start; }
.review-head b { font-weight: 500; }
.slides { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.caption { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; }
.caption span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
pre { white-space: pre-wrap; font: inherit; margin: 4px 0 0; }
.media { display: flex; gap: 8px; overflow-x: auto; }
.media img { height: 200px; border-radius: 12px; border: 1px solid var(--line); display: block; }
.assets { display: flex; gap: 12px; flex-wrap: wrap; }
.review-actions { display: grid; gap: 8px; }
.row-gap { display: flex; gap: 8px; justify-content: flex-end; }
.warn-box { background: rgb(137 106 44 / .18); border: 1px solid rgb(137 106 44 / .45); color: #F2DFA8; border-radius: 12px; padding: 9px 13px; }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgb(10 10 12 / .62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: rgb(255 255 255 / .94); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line-2); border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgb(14 14 16 / .18); }
.modal.wide { width: min(880px, 100%); }
.post-form { display: flex; flex-direction: column; min-height: 0; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 500; }
.modal-head .close { margin-left: auto; }
.modal-body { padding: 18px 20px; overflow-y: auto; display: grid; gap: 13px; }
.modal-foot { display: flex; gap: 8px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.assets-box { border: 1px solid var(--line-2); border-radius: 14px; padding: 11px 13px 13px; display: grid; gap: 9px; margin: 0; }
.assets-box legend { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0 5px; }
.assets-box legend small { display: inline; }
.assets-box > .btn { justify-self: start; }
#assets { display: grid; gap: 8px; }
.asset-row { display: grid; grid-template-columns: 150px 1fr 200px auto auto; gap: 6px; align-items: center; }
.media-list { display: flex; gap: 8px; flex-wrap: wrap; }
.media-list:empty { display: none; }
.mthumb { position: relative; width: 96px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--c1); }
.mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mthumb:first-child { outline: 2px solid var(--gold); outline-offset: 1px; }
.mthumb-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 7px; border: 0; background: rgb(14 14 16 / .7); color: var(--cream); cursor: pointer; line-height: 1; }
.assets-box:disabled .mthumb-x { display: none; }
.media-add { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.media-add input { flex: 1; min-width: 200px; }
.file-btn { cursor: pointer; }
.history { background: var(--field); border-radius: 12px; padding: 11px 13px; font-size: 14px; }
.history p { margin: 7px 0 0; }
label small { display: inline; }

/* Toast */
#toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); background: #2A2A30; border: 1px solid var(--line-2); color: var(--cream); padding: 11px 17px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: min(560px, calc(100vw - 32px)); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #5C2F2B; border-color: rgb(233 164 156 / .4); }

/* HP */
@media (max-width: 700px) {
  #app { flex-direction: column; flex-wrap: nowrap; padding: 10px; gap: 10px; }
  body { background-attachment: scroll; }
  .panel { flex-direction: column; flex: none; gap: 12px; padding: 12px; }
  .panel-sec { min-width: 0; width: 100%; }
  .panel-sec ~ .panel-sec { display: none; } /* di HP cukup tombol + filter */
  .top h2 { font-size: 20px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .asset-row { grid-template-columns: 1fr auto; }
  .asset-row select, .asset-row input { grid-column: 1 / -1; }
  .week { grid-template-columns: repeat(7, 220px); min-width: 0; }
  .cal-grid { gap: 3px; }
  .day { min-height: 74px; padding: 4px; }
  .ev-meta { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Kartu sempit (7 kolom di layar laptop): ringkas label audiens & tag */
.pcard { container-type: inline-size; }
@container (max-width: 175px) {
  .aud { gap: 6px; padding: 5px 6px 5px 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 10px; }
  .aud > i { width: 24px; height: 24px; border-radius: 7px; }
  .aud > i svg { width: 14px; height: 14px; }
  .aud b { font-size: 10.5px; letter-spacing: .3px; }
  .aud small { font-size: 10px; }
  .pcard-ph { margin-bottom: 34px; }
  .pcard-ph small { display: none; }
  .pcard-body h4 { font-size: 13.5px; }
}
.pcard-body, .pcard-body > * { min-width: 0; }
.pcard .tags > .tag { flex: 0 1 auto; min-width: 0; }
@container (max-width: 175px) { .aud b { letter-spacing: 0; font-size: 10px; } }

/* ---------- v2: dropdown tag (gaya menu Notion) ---------- */
.field { display: grid; gap: 5px; align-content: start; }
.flabel { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tsel { position: relative; min-width: 0; }
.tsel-btn { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); cursor: pointer; text-align: left; }
.tsel-btn:hover { border-color: rgb(14 14 16 / .24); }
.tsel-btn:focus-visible, .tsel.open .tsel-btn { outline: 2px solid rgb(14 14 16 / .22); border-color: rgb(14 14 16 / .35); }
.tsel-btn:disabled { cursor: default; opacity: .85; }
.tsel-btn:disabled .tsel-chev { display: none; }
.tsel-val { flex: 1; min-width: 0; display: flex; overflow: hidden; }
.tsel-val .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tsel-plain { font-size: 14px; color: var(--ink); white-space: nowrap; }
.tsel-chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--c4); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.tsel.open .tsel-chev { transform: rotate(180deg); }
.tsel-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%; max-height: 300px; overflow-y: auto; padding: 6px; border-radius: 12px; background: #252529; border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgb(0 0 0 / .45); display: grid; gap: 1px; }
.tsel-menu[hidden] { display: none; }
.tsel.up .tsel-menu { top: auto; bottom: calc(100% + 6px); }
.tsel-group { padding: 8px 8px 4px; font-size: 12px; color: var(--c4); }
.tsel-opt { display: flex; align-items: center; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; color: var(--ink); }
.tsel-opt:hover, .tsel-opt:focus-visible { background: rgb(14 14 16 / .08); outline: none; }
.tsel-opt.on { background: rgb(14 14 16 / .11); }
.panel .tsel-btn { min-height: 42px; }

/* Filter audiens berupa tag */
.seg button { display: grid; place-items: center; padding: 6px 4px; }
.seg button .tag { opacity: .55; transition: opacity .15s; }
.seg button.on .tag, .seg button:hover .tag { opacity: 1; }
.seg button .tsel-plain { font-size: 12.5px; color: var(--c4); }
.seg button.on .tsel-plain { color: var(--c6); }

/* Login: tombol mata */
.pw { position: relative; display: block; }
.pw input { padding-right: 44px; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--c4); cursor: pointer; }
.pw-eye:hover { color: var(--c6); background: var(--glass); }
.pw-eye svg { width: 18px; height: 18px; }

/* Aksen putih: tombol utama teks gelap, rail aktif, hari ini */
.btn.primary { color: var(--c0); }
.pill { background: #984F49; color: #FCE9E7; }
.wcol.today .whead b, .wcol.today .whead span, .day.today .day-head span { color: var(--c6); }
.wcol.today .whead b { font-weight: 600; }
.day.today { border-color: rgb(14 14 16 / .35); background: rgb(14 14 16 / .06); }

/* Project & Akun: logo di samping nama */
.pname { display: flex; align-items: center; gap: 10px; }
.plogo { width: 30px; height: 30px; border-radius: 8px; background: var(--c6); padding: 3px; object-fit: contain; flex: none; }
/* logo project langsung di atas warna tag, sejajar dengan teks */
.tag .tlogo { width: 16px; height: 16px; margin: 0 0 0 -3px; padding: 0; background: none; border-radius: 0; object-fit: contain; align-self: center; }
.plogo { background: none; border: 0; padding: 0; }
.tag .tl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pcard .tag { max-width: 100%; }
.tsel-sep { border: 0; border-top: 1px solid var(--line-2); margin: 5px 4px; }

/* Generate Bulan Depan */
.btn svg { width: 17px; height: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > .tag, .chip-plain { opacity: .38; transition: opacity .15s; }
.chip input:checked + * { opacity: 1; }
.chip input:focus-visible + * { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip-plain { display: inline-block; min-width: 42px; text-align: center; padding: 5px 10px; border-radius: 8px; background: var(--c2); color: var(--c6); font-size: 12.5px; }
label.check { display: flex; align-items: center; gap: 9px; align-self: end; padding-bottom: 8px; }
input[type=range] { accent-color: var(--c5); width: 100%; }
.gen-done { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: rgb(63 111 84 / .16); border: 1px solid rgb(63 111 84 / .45); }
.gen-done ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.gen-err { padding: 12px 14px; border-radius: 12px; background: rgb(152 79 73 / .18); border: 1px solid rgb(152 79 73 / .5); }

/* ---------- v3 ---------- */
/* Tooltip saat hover (rail & panel yang diperkecil) */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  padding: 5px 10px; border-radius: 8px; background: #2C2C32; border: 1px solid var(--line-2); color: var(--c6);
  font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; pointer-events: none; z-index: 80;
  box-shadow: 0 8px 22px rgb(0 0 0 / .4);
}
.files [data-tip]:hover::after { left: auto; right: calc(100% + 8px); }

/* Panel: link Notifikasi & Project di bawah profil + mode diperkecil */
.panel-links { display: grid; gap: 4px; margin-top: -6px; }
.plink { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: 14px; position: relative; }
.plink svg { width: 19px; height: 19px; flex: none; }
.plink:hover { background: var(--glass-2); color: var(--c6); }
.plink.on { background: rgb(14 14 16 / .12); color: var(--c6); }
.plink span { flex: 1; }
.plink .pill { position: static; }

/* Dashboard: gambar kartu dari visual / Google Drive */
.pcard-media { display: block; }
.pcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-media:not(.empty) .pcard-ph { display: none; }
.pcard-media.empty { display: grid; }

/* Kalender: logo project + warna kartu = status */
.ev { background: color-mix(in srgb, var(--c) 72%, #18181B); color: #fff; }
.ev:hover { background: color-mix(in srgb, var(--c) 92%, #18181B); }
.ev-meta { color: rgb(255 255 255 / .82); min-width: 0; }
.ev-logo { width: 14px; height: 14px; object-fit: contain; flex: none; }
.ev-st { margin-left: auto; font-weight: 500; font-size: 10.5px; opacity: .85; white-space: nowrap; }
.aud-legend { flex-wrap: wrap; }
.aud-legend span:not(.l-inv):not(.l-sewa) i { border-radius: 3px; }
@container (max-width: 150px) { .ev-st { display: none; } }
.day { container-type: inline-size; }

/* Review: lebih sederhana untuk Manager */
.review { padding: 0; gap: 0; overflow: hidden; }
.rv-head { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.rv-when { flex: none; width: 128px; display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); text-align: center; }
.rv-when b { font-weight: 500; font-size: 14px; }
.rv-when span { font-size: 13px; color: var(--muted); }
.rv-title { display: grid; gap: 6px; min-width: 0; }
.rv-title h3 { font-size: 19px; line-height: 1.3; }
.rv-body { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 18px; padding: 16px 18px; }
.rv-preview { display: grid; gap: 10px; align-content: start; }
.rv-img img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.rv-frame { width: 100%; aspect-ratio: 4 / 5; border: 1px solid var(--line-2); border-radius: 12px; background: var(--c1); }
.rv-frame.folder { aspect-ratio: auto; height: 300px; background: #fff; }
.rv-empty { display: grid; place-items: center; gap: 8px; aspect-ratio: 4 / 5; border-radius: 12px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 13px; text-align: center; padding: 16px; }
.rv-empty svg { width: 30px; height: 30px; }
.rv-links { display: flex; gap: 6px 14px; flex-wrap: wrap; margin: 0; font-size: 13.5px; }
.rv-links a { display: inline-flex; align-items: center; gap: 5px; }
.rv-links svg { width: 14px; height: 14px; }
.rv-text { display: grid; gap: 12px; align-content: start; min-width: 0; }
.rv-block { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.rv-block > span, .rv-block summary { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.rv-block summary { cursor: pointer; }
.rv-block p { margin: 4px 0 0; font-size: 15px; }
.rv-block pre { font-size: 14.5px; line-height: 1.6; max-height: 360px; overflow-y: auto; }
.rv-actions { display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); background: rgb(14 14 16 / .025); }
.rv-actions textarea { flex: 1; min-height: 40px; }
.review .warn-box { margin: 12px 18px 16px; }

/* Log Task */
.log-top { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 14px; align-items: start; }
.log-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
.ltab { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13.5px; }
.ltab img { width: 18px; height: 18px; object-fit: contain; }
.ltab:hover { color: var(--c6); background: var(--glass); }
.ltab.on { background: rgb(14 14 16 / .12); color: var(--c6); }
.asset-card { padding: 12px 14px; display: grid; gap: 6px; }
.asset-head { display: flex; align-items: center; justify-content: space-between; }
.asset-card a { display: flex; align-items: center; gap: 9px; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 3px 0; }
.asset-card a:hover { color: var(--c6); text-decoration: underline; }
.asset-card a svg { width: 17px; height: 17px; flex: none; }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.log-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13.5px; color: var(--muted); padding: 0 4px; }
.log-sum b { color: var(--c6); font-weight: 500; }
#log-body { display: grid; gap: 14px; }
.log-table td { vertical-align: middle; }
.nowrap { white-space: nowrap; }
.files { white-space: nowrap; }
.files a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink-2); }
.files a:hover { background: var(--glass-2); color: var(--c6); }
.files svg { width: 17px; height: 17px; }
.file-row { grid-template-columns: 1fr 200px auto auto; }
input[type=date] { color-scheme: light; }

@media (max-width: 1100px) {
  .rv-body { grid-template-columns: 1fr; }
  .log-top { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  [data-tip]:hover::after { display: none; }
  .rv-head { flex-direction: column; }
  .rv-actions { flex-wrap: wrap; }
  .rv-actions textarea { flex-basis: 100%; }
  .file-row { grid-template-columns: 1fr auto; }
}
.panel { z-index: 25; }

/* ---------- v4 ---------- */
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }

/* Dashboard: muat satu layar laptop, kolom hari scroll sendiri */
.board.fit { display: flex; flex-direction: column; height: calc(100vh - 104px); min-height: 440px; padding: 14px; }
.board.fit .board-head { margin-bottom: 10px; }
.board.fit .week-scroll { flex: 1; min-height: 0; overflow: auto hidden; }
.board.fit .week { height: 100%; }
.board.fit .wcol { min-height: 0; }
.board.fit .whead { padding: 0 0 6px; flex-direction: row; gap: 6px; justify-content: center; align-items: baseline; }
.board.fit .whead b { font-size: 20px; }
.board.fit .wcards { flex: 1; min-height: 0; overflow-y: auto; padding: 0 2px 6px; scrollbar-width: thin; }

/* Kartu konten ringkas */
.pcard-ph svg { width: 22px; height: 22px; }
.pcard-ph { margin: 0; }
.aud-pill { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .4px; color: #fff; }
.aud-pill.aud-inv { background: #8E5835; }
.aud-pill.aud-sewa { background: #3B6591; }
.aud-pill.aud-umum { background: var(--c3); }
.pcard-body { padding: 8px 4px 3px; gap: 7px; }
.pcard-body h4 { font-size: 13.5px; }
.pcard-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.pcard-meta .ev-logo { width: 15px; height: 15px; }
.pcard-meta .tag { margin-left: auto; font-size: 11px; padding: 1px 6px; }
.slot-add { height: 32px; flex: none; }

/* Calendar: thumbnail kecil di kartu */
.ev { grid-template-columns: 34px minmax(0, 1fr); gap: 7px; align-items: center; padding: 4px 6px 4px 4px; }
.ev-img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; display: grid; place-items: center; background: rgb(0 0 0 / .25); }
.ev-img.ph svg { width: 15px; height: 15px; opacity: .6; }
.ev-main { display: grid; min-width: 0; gap: 1px; }
.ev-meta i { display: none; }

/* Form konten gaya Notion */
.nform .modal-body { gap: 16px; padding: 18px 24px; }
.ntitle { font-size: 24px; font-weight: 600; border: 0; background: transparent; padding: 4px 0; border-radius: 0; border-bottom: 1px solid transparent; }
.ntitle:focus { outline: 0; border-bottom-color: var(--line-2); }
.ntitle-ro { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.3; }
.props { display: grid; gap: 2px; }
.prop { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 40px; padding: 2px 0; }
.pl { font-size: 13.5px; color: var(--muted); }
.pv { min-width: 0; }
.pv > input, .pv > select { max-width: 340px; }
.pv .tsel { max-width: 340px; }
.pv .tsel-btn { border-color: transparent; background: transparent; padding-left: 4px; }
.pv .tsel-btn:hover { background: var(--glass); }
.linkf { display: flex; gap: 6px; align-items: center; max-width: 520px; }
.lnk { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: var(--ink); text-decoration: none; padding: 4px 8px; border-radius: 8px; background: var(--glass); border: 1px solid var(--line); }
.lnk:hover { background: var(--glass-2); border-color: var(--line-2); }
.lnk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnk svg { width: 14px; height: 14px; flex: none; }
.more summary { cursor: pointer; font-size: 13.5px; color: var(--muted); }
.more[open] { display: grid; gap: 8px; }
.nsec { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.nsec h4 { margin: 0; font-size: 17px; font-weight: 600; }
.nsec h4 .muted { font-weight: 400; font-size: 14px; }
.sec-head { display: flex; align-items: center; gap: 10px; }
.sec-head h4, .sec-head > span { margin-right: auto; }
.bsec { display: grid; gap: 6px; }
.bsec h5 { margin: 0; font-size: 14px; font-weight: 600; color: var(--c6); }
.bsec ol, .bsec ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; line-height: 1.55; }
.bsec ul ul { margin-top: 4px; }
.blist { list-style: decimal; }
.blist li { padding-left: 2px; }
.blist li > * { vertical-align: middle; }
.blist input { width: calc(100% - 38px); padding: 6px 9px; }
.blist .icon-btn { margin-left: 4px; }
textarea.auto { resize: none; overflow: hidden; line-height: 1.55; }
textarea.cap { min-height: 140px; font-size: 14.5px; }
.cap-ro { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; line-height: 1.6; }
.scene-ed { display: grid; gap: 6px; }
.sc-head, .sc-row { display: grid; grid-template-columns: 110px 1fr 1.4fr 30px; gap: 6px; align-items: start; }
.sc-head span { font-size: 12px; color: var(--muted); padding: 0 4px; }
.sc-row textarea { padding: 7px 9px; font-size: 13.5px; }
.scene-view { overflow-x: auto; }
.scene-view table { width: 100%; border-collapse: collapse; font-size: 14px; }
.scene-view th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border: 1px solid var(--line-2); background: rgb(14 14 16 / .04); }
.scene-view td { padding: 9px 10px; border: 1px solid var(--line-2); vertical-align: top; line-height: 1.5; }
.scene-view td:first-child { white-space: nowrap; color: var(--ink-2); }

/* Chat revisi */
.thread { display: grid; gap: 10px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.msg.mgr .avatar { background: linear-gradient(140deg, #B9A8D6, #6E5482); color: #fff; }
.bubble { flex: 1; min-width: 0; background: var(--field); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.msg-head b { font-weight: 500; }
.msg-head small { display: inline; }
.bubble p { margin: 4px 0 0; white-space: pre-wrap; line-height: 1.5; }
.rv-chat { padding: 14px 18px 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: rgb(14 14 16 / .025); }
.rv-chat h4 { margin: 0; font-size: 14px; font-weight: 600; }
.composer { display: grid; gap: 8px; }
.composer textarea { min-height: 44px; }
.rv-head .btn { margin-left: auto; }
.rv-when { width: auto; min-width: 110px; }
.rv-links .lnk { font-size: 13px; }
.rv-block summary { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.rv-block details[open] summary, .rv-block[open] summary { margin-bottom: 8px; }
.rv-block .bsec + .bsec { margin-top: 10px; }
.rv-cap .sec-head span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }

@media (max-width: 1100px) {
  .board.fit { height: auto; min-height: 0; }
  .board.fit .wcards { overflow: visible; }
}
@media (max-width: 700px) {
  .board.fit .week { grid-template-columns: repeat(7, 200px); }
  .nform .modal-body { padding: 14px; }
  .ntitle, .ntitle-ro { font-size: 20px; }
  .prop { grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
  .sc-head { display: none; }
  .sc-row { grid-template-columns: 1fr 30px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
  .sc-row textarea { grid-column: 1; }
  .sc-row .icon-btn { grid-column: 2; grid-row: 1; }
  .scene-view thead { display: none; }
  .scene-view tr { display: grid; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 8px; padding: 6px 10px; }
  .scene-view td { border: 0; padding: 3px 0; white-space: normal !important; }
  .scene-view td::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); }
  .modal { max-height: 100vh; border-radius: 16px; }
  .overlay { padding: 6px; }
  .rv-head .btn { margin-left: 0; }
  .ev { grid-template-columns: 1fr; padding: 3px 4px; }
  .ev-img { display: none; }
}
.linkf .open[hidden] { display: none; }
.bsec > .btn, .nsec > .btn, .more > .btn { justify-self: start; }
.board.fit .week { grid-template-columns: repeat(7, minmax(112px, 1fr)); gap: 6px; }
.board.fit .wcol { padding-left: 6px; }
.pcard-meta { flex-wrap: wrap; row-gap: 4px; }
.pcard-meta .tag { margin-left: 0; }
@media (max-width: 700px) { .board.fit .week { grid-template-columns: repeat(7, 190px); } }
.rv-body { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); }
.rv-empty { aspect-ratio: 1; }
@media (max-width: 1100px) { .rv-body { grid-template-columns: 1fr; } .rv-preview { max-width: 360px; } }

/* ---------- v4.1: Asset di sidebar ---------- */
.log-top { grid-template-columns: 1fr; }
.panel-links .eyebrow { padding: 6px 10px 0; }
button.plink { background: none; border: 0; width: 100%; font: inherit; text-align: left; cursor: pointer; }
.alist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.alist li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line, rgb(255 255 255 / .08)); }
.alist li b { font-weight: 500; overflow-wrap: anywhere; }
.alist li small { color: var(--ink-3, var(--ink-2)); margin-left: auto; text-align: right; }
.alist li a { display: flex; align-items: center; gap: 9px; color: var(--ink-1, inherit); text-decoration: none; }
.alist li a:hover { color: var(--c6); text-decoration: underline; }
.alist li a svg { width: 17px; height: 17px; flex: none; }
.alist li .icon-btn { flex: none; }
.alist li b + .icon-btn { margin-left: auto; }

/* ---------- v4.2: label HP + thumbnail Story ---------- */
.sl { display: none; font-style: normal; }
.pcard-media.story { background: linear-gradient(160deg, #6E5482, #3c2f49); }
.pcard-media.story .pcard-ph { flex-direction: column; gap: 6px; opacity: 1; color: rgb(255 255 255 / .9); }
.pcard-media.story .pcard-ph svg { width: 34px; height: 34px; }
.pcard-media.story .pcard-ph b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ev-img.ph.story { background: #6E5482; color: #f2f2f5; }
.ev-img.ph.story svg { opacity: .9; }
@media (max-width: 700px) {
  .sl { display: block; font-size: 10px; line-height: 1; margin-top: 3px; color: var(--ink-2); white-space: nowrap; }
}

/* ---------- v4.3: perbaikan tumpukan ---------- */
/* Kotak kaca (backdrop-filter) membuat lapisan sendiri, jadi menu dropdown di dalamnya
   tertutup kotak berikutnya. Angkat kotak yang sedang membuka dropdown. */
.glass:has(.tsel.open) { position: relative; z-index: 45; }
/* Kolom preview Review tidak boleh melebar melewati jatahnya (link Drive panjang / iframe video) */
.rv-preview, .rv-links { min-width: 0; }
.rv-preview > * { max-width: 100%; }
.rv-links .lnk { max-width: 100%; min-width: 0; }

/* ---------- v4.4: rail berlabel + logo lengkap + drag & drop ---------- */
@media (max-width: 700px) {
}
[data-drag] { cursor: grab; }
[data-drag].dragging { opacity: .45; cursor: grabbing; }
.drop-on { outline: 2px dashed rgb(14 14 16 / .45); outline-offset: -2px; background: rgb(14 14 16 / .07) !important; border-radius: 12px; }
@media (min-width: 701px) and (max-width: 1400px) { .board.fit .week { grid-template-columns: repeat(7, minmax(94px, 1fr)); } }

/* ---------- v4.5: panel di kanan ---------- */

/* ---------- v4.6: Siap upload + pencarian ---------- */
.rv-sec { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 17px; font-weight: 600; }
.rv-sec .pill { position: static; }
.rv-missing { margin: 4px 0 0; font-size: 13px; color: #d9a35b; }
#g-search { width: 100%; }

/* ---------- v6: gaya gambar 3 — permukaan putih bersih, sidebar hitam lembut, warna pastel ---------- */
:root {
  --ink: #1F2022; --ink-2: #4A4C50; --muted: #8B8D91;
  --paper: #F4F4F2; --surface: #FFFFFF; --hair: #E8E8E4;
  --night: #26282A; --night-2: #303234; --night-ink: #EDEDEA; --night-muted: #9C9EA2;
  --line: #ECECE8; --line-2: #E2E2DD;
  --glass: rgb(255 255 255 / .7); --glass-2: #F2F2EF; --field: #FFFFFF;
  --radius: 18px;
}
body { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1, h2, h3, h4 { letter-spacing: -.02em; }
.glass { background: var(--surface); border: 1px solid var(--hair); box-shadow: 0 1px 2px rgb(31 32 34 / .03); backdrop-filter: none; -webkit-backdrop-filter: none; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.btn, .icon-btn { border-radius: 999px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #3A3C3F; }
.btn.ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--glass-2); }
.icon-btn { background: var(--surface); border-color: var(--line-2); }
input, select, textarea, .tsel-btn { border-radius: 12px; border-color: var(--line-2); background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(31 32 34 / .08); border-color: var(--ink); }
.pill { background: var(--ink); color: #fff; }
.avatar { background: #DDD6F3; color: #3F3466; border-radius: 999px; font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Warna pastel: setiap tag/status punya satu warna kunci (--c), ditampilkan sebagai latar lembut + teks gelap senada */
.tag { background: color-mix(in srgb, var(--c) 18%, #fff); color: color-mix(in srgb, var(--c) 55%, #1F2022); border-radius: 999px; padding: 2px 9px; }
.tag i { background: var(--c); }
.ev { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--ink); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--c) 70%, #fff); border-radius: 8px; }
.ev:hover { background: color-mix(in srgb, var(--c) 22%, #fff); }
.legend i, .aud-legend i { background: var(--c); }
.aud { background: rgb(255 255 255 / .82); color: var(--ink); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border: 1px solid rgb(255 255 255 / .9); }
.aud small { color: var(--muted); }
.aud-inv > i, .l-inv i, .aud-pill.aud-inv { background: #F5DDC9; color: #8A5427; }
.aud-sewa > i, .l-sewa i, .aud-pill.aud-sewa { background: #D4E4F4; color: #2F5F8C; }
.aud-umum > i, .aud-pill.aud-umum { background: #ECECE8; color: var(--ink-2); }
.pcard { background: var(--surface); border-color: var(--hair); }
.pcard:hover { border-color: #CFCFC9; box-shadow: 0 6px 18px rgb(31 32 34 / .06); }
.pcard-media.empty { background: #F1F1EE; }
.pcard-ph, .pcard-ph small { color: #B4B5B8; }
.pcard-media.story { background: #DDD6F3; }
.pcard-media.story .pcard-ph { color: #5B4E8C; }
.day { background: var(--surface); border-color: var(--hair); }
.day.today { border-color: var(--ink); background: var(--surface); }
.hint, .rv-chat, .rv-actions { background: #FAFAF8; }
.modal { background: var(--surface); backdrop-filter: none; }
#toast { background: var(--ink); color: #fff; border: 0; }
.table th { color: var(--muted); font-weight: 500; }

/* Login: foto penuh di latar, kartu kaca berbingkai; kiri jendela foto, kanan panel hitam lembut */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #1d2a3a url("img/login-hero.jpg") center / cover fixed; }
.login-split { width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; padding: 10px; border-radius: 28px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 30px 80px rgb(10 20 35 / .35); }
.login-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 40px 22px; border-radius: 20px; background: var(--night); color: var(--night-ink); }
.login-brand { font-size: 14px; font-weight: 500; color: var(--night-muted); }
.login-head { margin: auto 0 18px; padding-top: 40px; text-align: center; }
.login-head h1 { margin: 0; font-size: 46px; line-height: 1.05; font-weight: 600; letter-spacing: -.035em; color: #fff; }
.login-head p { margin: 12px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--night-muted); }
.login-card label { color: var(--night-muted); font-weight: 500; }
.login-card input { background: var(--night-2); border-color: rgb(255 255 255 / .08); color: #fff; padding: 12px 16px; border-radius: 999px; }
.login-card input::placeholder { color: #7C7F84; }
.login-card input:focus { border-color: rgb(255 255 255 / .5); outline-color: rgb(255 255 255 / .1); }
.login-card .pw-eye { color: var(--night-muted); }
.login-card .error { color: #F2B8B0; }
.login-card .btn.primary { background: #fff; color: var(--ink); padding: 13px; margin-top: 2px; }
.login-card .btn.primary:hover { background: #E9E9E6; }
.login-foot { margin-top: auto; padding-top: 34px; text-align: center; font-size: 12px; color: #6F7276; letter-spacing: .02em; }
@media (max-width: 760px) {
  .login { padding: 14px; align-items: end; background-attachment: scroll; }
  .login-split { grid-template-columns: 1fr; padding: 8px; }
  .login-card { padding: 20px 20px 16px; }
  .login-head { padding-top: 8px; margin: 6px 0 10px; }
  .login-head h1 { font-size: 36px; }
  .login-foot { padding-top: 14px; }
}

/* Sidebar kiri hitam lembut: logo · Workspace · menu (garis kecil penanda) · profil + keluar */
#app { gap: 12px; padding: 12px; }
.rail { width: 232px; flex: none; position: sticky; top: 12px; height: calc(100vh - 24px); display: flex; flex-direction: column; gap: 2px; padding: 20px 12px 12px; z-index: 30; background: var(--night); border: 0; border-radius: 20px; color: var(--night-ink); box-shadow: none; }
.rail-logo { display: block; padding: 2px 12px 18px; }
.rail-logo .logo-full { width: 128px; height: auto; display: block; }
.rail-logo .logo-mark { display: none; }
.rail-eyebrow { padding: 8px 12px 6px; color: var(--night-muted); }
.rail nav { display: grid; gap: 2px; }
.rail-btn { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--night-muted); text-decoration: none; font-size: 14px; font-weight: 450; background: none; border: 0; }
.rail-btn svg { width: 18px; height: 18px; flex: none; stroke-width: 1.6; }
.rail-btn:hover { color: var(--night-ink); background: rgb(255 255 255 / .04); }
.rail-btn.on { color: #fff; background: rgb(255 255 255 / .08); font-weight: 500; }
.rail-btn.on::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #CDEBDD; }
.rail-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--night-2); }
.rail-user .pu-text { flex: 1; min-width: 0; }
.rail-user b { display: block; font-size: 14px; font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-user small { font-size: 12px; color: var(--night-muted); }
.rail-user .icon-btn { background: transparent; border-color: rgb(255 255 255 / .1); color: var(--night-ink); }
.rail-user .icon-btn:hover { background: rgb(255 255 255 / .08); }

/* Panel kanan: cari · notifikasi · project · asset · filter · status */
.panel { order: 3; width: 264px; flex: none; gap: 14px; z-index: 25; position: sticky; top: 12px; height: calc(100vh - 24px); overflow-y: auto; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input, .seg { border-radius: 999px; background: rgb(244 244 242 / .7); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgb(255 255 255 / .8); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
.search input { padding: 10px 14px 10px 38px; }
.panel-links { display: grid; gap: 2px; margin: 0; }
.plink { color: var(--ink-2); font-weight: 450; border-radius: 10px; }
.plink svg { stroke-width: 1.6; }
.plink:hover { background: var(--glass-2); color: var(--ink); }
.plink.on { background: var(--glass-2); color: var(--ink); font-weight: 500; }
.plink .pill { margin-left: auto; }
.panel-links .eyebrow { padding: 6px 10px 2px; }
.panel-sec { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 14px; }
.panel .tsel-btn { border-radius: 999px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; }
.seg button { border: 0; border-radius: 999px; padding: 7px 4px; font-size: 13px; color: var(--ink-2); background: transparent; cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; box-shadow: 0 2px 8px rgb(31 32 34 / .18); }

/* Konten + tombol melayang (kaca) */
.content { position: relative; padding-bottom: 84px; }
.top h2 { font-weight: 600; font-size: 26px; letter-spacing: -.03em; }
.fab { position: fixed; bottom: 18px; left: calc(50% + (232px - 264px) / 2); transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; z-index: 40; background: rgb(255 255 255 / .62); border: 1px solid rgb(255 255 255 / .9); box-shadow: 0 10px 30px rgb(31 32 34 / .12), inset 0 1px 0 #fff; backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
.fab .btn { padding: 10px 18px; }
.fab .btn.ghost { background: transparent; border-color: transparent; }
.fab .btn.ghost:hover { background: rgb(31 32 34 / .05); }
.drop-on { outline: 2px dashed rgb(31 32 34 / .3); background: #FAFAF8 !important; }

/* Tablet */
@media (max-width: 1100px) {
  .rail { width: 204px; }
  .fab { left: calc(50% + 204px / 2); }
}
/* HP: menu halaman jadi bar kaca melayang di bawah (seperti Instagram), bisa digeser */
@media (max-width: 700px) {
  #app { padding: 10px; gap: 10px; padding-bottom: 96px; }
  .rail { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 8px 8px 8px 12px; border-radius: 16px; }
  .rail-logo { padding: 0; margin-right: auto; }
  .rail-logo .logo-full { width: 104px; }
  .rail-eyebrow, .rail-user, .rail-btn .rl { display: none; }
  .rail nav { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 4px; padding: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 999px; background: rgb(255 255 255 / .62); border: 1px solid rgb(255 255 255 / .9); box-shadow: 0 10px 30px rgb(31 32 34 / .16), inset 0 1px 0 #fff; backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); }
  .rail nav::-webkit-scrollbar { display: none; }
  .rail-btn { flex: 1 0 64px; scroll-snap-align: center; height: 52px; flex-direction: column; justify-content: center; gap: 2px; padding: 0; border-radius: 999px; color: var(--muted); }
  .rail-btn:hover { background: none; color: var(--ink); }
  .rail-btn.on { background: var(--ink); color: #fff; }
  .rail-btn.on::before { display: none; }
  .rail-btn .sl { color: inherit; }
  .rail-btn.on .sl { color: #fff; }
  .fab { bottom: 82px; left: 50%; max-width: calc(100vw - 24px); }
  .fab .btn { padding: 9px 14px; font-size: 13.5px; }
  #toast { bottom: 140px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
#app:has(.login) { padding: 0; }
.search svg { z-index: 1; }
@media (max-width: 700px) {
  #app:has(.login) { padding: 0; }
}
.ev { box-shadow: none; border-left-color: #CFCFC9; }
.ev-inv { border-left-color: #E8B48A; }
.ev-sewa { border-left-color: #8DB8E2; }
.ev-meta { color: color-mix(in srgb, var(--c) 45%, #4A4C50); }
.ev-img { background: rgb(255 255 255 / .75); color: var(--muted); }
.ev-img.ph.story { background: #DDD6F3; color: #5B4E8C; }
.btn.success { background: #CDEBDD; color: #1F5A3F; }
.btn.success:hover { background: #BCE3D0; }
.btn.danger { background: #F5D6D2; color: #8A3329; }
.btn.danger:hover { background: #F0C6C0; }
.btn.danger.ghost { background: transparent; color: #B4483C; border-color: #F0C6C0; }
/* Login v6.1: foto hanya latar, satu panel hitam di tengah */
.login { background-attachment: scroll; }
.login::before { content: ""; position: fixed; inset: 0; background: linear-gradient(180deg, rgb(8 14 24 / .25), rgb(8 14 24 / .45)); pointer-events: none; }
.login-split { position: relative; width: min(440px, 100%); grid-template-columns: 1fr; }
.login-card { min-height: 560px; }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-top img { width: 112px; height: auto; display: block; }
@media (max-width: 760px) {
  .login { align-items: center; }
  .login-card { min-height: 0; }
  .login-top img { width: 96px; }
  .login-head { padding-top: 36px; margin: 0 0 16px; }
  .login-foot { padding-top: 24px; }
}

/* Log Task mudah dibaca */
.log-table .task-col { min-width: 240px; }
.log-table td { padding-top: 12px; padding-bottom: 12px; }
.nofile { font-size: 12px; color: #B4483C; background: #F5D6D2; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.log-table { table-layout: fixed; width: 100%; min-width: 760px; }
.log-table th:nth-child(1) { width: 44px; } .log-table th:nth-child(2) { width: 120px; } .log-table th:nth-child(4) { width: 190px; }
.log-table th:nth-child(5) { width: 110px; } .log-table th:nth-child(6) { width: 84px; } .log-table th:nth-child(7) { width: 96px; }

/* ---------- v7 ---------- */
/* Tooltip: teks terang di atas hitam lembut (v6 sempat membuat teks gelap di latar gelap) */
[data-tip]:hover::after, [data-tip]:focus-visible::after { background: var(--night); border: 0; color: #fff; box-shadow: 0 6px 18px rgb(31 32 34 / .18); }
:root { --muted: #6E7075; } /* 4.9:1 di atas putih, terbaca Manager */

/* Menu dropdown: latar terang (sisa tema gelap v3 membuat opsi teks tidak terlihat) */
.tsel-menu { background: var(--surface); border-color: var(--hair); box-shadow: 0 12px 32px rgb(31 32 34 / .14); }
.tsel-opt { min-height: 36px; }
.tsel-opt:hover, .tsel-opt:focus-visible { background: var(--glass-2); }
.tsel-opt.on { background: #EAEAE6; }
.tsel-group { color: var(--muted); }
/* Dropdown terbuka di panel: panel tetap di tempatnya (aturan v4.3 mengubahnya jadi relative) */
.panel.glass:has(.tsel.open) { position: sticky; z-index: 45; }
@media (max-width: 1100px) { .panel.glass:has(.tsel.open) { position: fixed; z-index: 70; } }

/* Kartu angka pastel: dipakai Laporan Alpha & Dashboard */
.k-lav { background: #EEEAF8; color: #3F3466; }
.k-sky { background: #E4EEF8; color: #24507A; }
.k-mint { background: #E3F2EA; color: #1F5A3F; }
.k-peach { background: #FBEADC; color: #7A4720; }
.k-rose { background: #F8E3E0; color: #8A3329; }

/* Panel kanan */
.panel-head { display: flex; align-items: center; gap: 8px; }
.panel-head .search { flex: 1; min-width: 0; }
.panel-toggle { width: 40px; height: 40px; }
.panel-mini, .drawer-close, .drawer-logout, .panel-open, .scrim { display: none; }
.panel [data-tip]:hover::after, .panel [data-tip]:focus-visible::after { display: none; }
.panel-status { margin-top: auto; display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #FAFAF8; border: 1px solid var(--line); }
.panel-status ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; }
.panel-status li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.panel-status li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
@media (min-width: 1101px) {
  .panel { transition: width .25s cubic-bezier(.16, 1, .3, 1); }
  .panel.min { width: 68px; padding: 12px 10px; align-items: center; overflow: visible; }
  .panel.min .panel-head { flex-direction: column-reverse; }
  .panel.min :is(.search, .plink span, .eyebrow, .panel-sec, .panel-status li span) { display: none; }
  .panel.min .panel-mini { display: inline-grid; width: 44px; height: 44px; }
  .panel.min .plink { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .panel.min .plink .pill { position: absolute; top: 2px; right: 2px; }
  .panel.min .panel-links { justify-items: center; }
  .panel.min .panel-status { padding: 10px 0; background: none; border: 0; }
  .panel.min .panel-status ul { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .panel.min .panel-status li { padding: 4px; }
  .panel.min [data-tip]:hover::after, .panel.min [data-tip]:focus-visible::after,
  .panel .panel-toggle:hover::after, .panel .panel-toggle:focus-visible::after { display: block; left: auto; right: calc(100% + 10px); }
  #app.panel-min .fab { left: calc(50% + (232px - 68px) / 2); }
}
@media (max-width: 1100px) { .panel-toggle { display: none; } }

/* Tablet & HP: panel kanan jadi drawer dari kanan. HP: logo kiri, tombol panel kanan di bar atas */
@media (min-width: 701px) and (max-width: 1100px) {
  .panel-open { position: fixed !important; top: 20px; right: 20px; z-index: 60; background: var(--surface) !important; border-color: var(--line-2) !important; color: var(--ink) !important; }
  .top { padding-right: 56px; }
}
@media (max-width: 700px) {
  .rail-logo { display: flex; align-items: center; min-height: 32px; }
}
@media (max-width: 1100px) {
  .panel-open { display: inline-grid; position: relative; width: 44px; height: 44px; border-radius: 999px; background: var(--night-2); border-color: rgb(255 255 255 / .1); color: var(--night-ink); }
  .panel-open .pill { position: absolute; top: -3px; right: -3px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgb(20 20 22 / .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(320px, 86vw); height: 100dvh; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; padding: 16px; border-radius: 20px 0 0 20px; overflow-y: auto; transform: translateX(105%); visibility: hidden; transition: transform .3s cubic-bezier(.16, 1, .3, 1), visibility 0s .3s; box-shadow: -12px 0 40px rgb(31 32 34 / .16); }
  body.drawer-open { overflow: hidden; }
  body.drawer-open .panel { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
  body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
  .drawer-close { display: inline-grid; width: 44px; height: 44px; }
  .panel .plink { min-height: 44px; }
  .drawer-logout { display: flex; color: #B4483C; }
  .panel-status { margin-top: 0; }
}

/* Dashboard: ringkasan minggu ini + papan mengisi sisa layar */
.wsums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wsum { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; text-decoration: none; min-width: 0; transition: transform .15s, box-shadow .15s; }
.wsum span { font-size: 13px; font-weight: 500; }
.wsum b { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wsum small { color: inherit; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.wsum:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(31 32 34 / .08); }
@media (min-width: 1101px) {
  main:has(> .wsums) { height: calc(100vh - 104px); grid-template-rows: auto minmax(0, 1fr); }
  main:has(> .wsums) .board.fit { height: auto; min-height: 360px; }
}
@media (max-width: 1100px) { .wsums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Kartu konten: gambar penuh selebar kartu */
.pcard { padding: 0; border-radius: 14px; overflow: hidden; }
.pcard-media { aspect-ratio: 4 / 3; border-radius: 0; }
.pcard-media:not(.empty)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 20 22 / .38), transparent 46%); pointer-events: none; }
.aud-pill { z-index: 1; left: 8px; bottom: 8px; }
.pcard-body { padding: 9px 10px 10px; }

/* Laporan Alpha */
.al { display: grid; gap: 14px; }
.al h3, .al h4 { margin: 0; }
.al-card { padding: 18px 20px; display: grid; gap: 12px; align-content: start; min-width: 0; border-radius: 16px; }
.al-card h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.al-card h3 svg { width: 18px; height: 18px; }
.al-card h3 small { display: inline; font-weight: 400; font-size: 13px; }
.al-card h4 { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.al-grid { display: grid; gap: 14px; }
.al-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.al-grid.wide { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }

.al-hero { display: grid; gap: 18px; padding: 24px; border-radius: 16px; background: var(--night); color: var(--night-ink); }
.al-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.al-hero h3 { font-size: 32px; font-weight: 600; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.al-hero p { margin: 8px 0 0; max-width: 68ch; font-size: 15px; color: #D6D7D3; text-wrap: pretty; }
.al-hero small { color: var(--night-muted); font-size: 12.5px; }
.al-hero-foot { display: grid; gap: 10px; }
.al-hero-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--night-2); white-space: pre-wrap; }
.al-hero textarea { width: 100%; resize: vertical; padding: 11px 14px; border-radius: 12px; background: var(--night-2); border: 1px solid rgb(255 255 255 / .1); color: #fff; }
.al-hero textarea::placeholder { color: #8E9095; }
.al-hero textarea:focus { border-color: #CDEBDD; outline: 3px solid rgb(205 235 221 / .15); }
.al-status { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.al-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.al-status.wait { background: #F5E3B8; color: #6B4E0E; }
.al-status.ok { background: #CDEBDD; color: #1F5A3F; }
.al-status.bad { background: #F5D6D2; color: #8A3329; }
.al-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.al-ok { background: #CDEBDD; color: #1F5A3F; border-color: transparent; font-weight: 600; }
.btn.al-ok:hover { background: #BCE3D0; }
.btn.al-ok svg { width: 16px; height: 16px; }
.btn.al-ghost { background: transparent; border: 1px solid rgb(255 255 255 / .2); color: var(--night-ink); }
.btn.al-ghost:hover { background: rgb(255 255 255 / .08); }
.al-float { position: fixed; z-index: 45; bottom: 18px; left: calc(50% + (232px - 264px) / 2); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 999px; background: rgb(38 40 42 / .92); color: #fff; box-shadow: 0 12px 32px rgb(31 32 34 / .24); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); white-space: nowrap; }
.al-float > span { font-size: 13px; font-weight: 600; margin-right: 6px; }
.al-float[hidden] { display: none; }
#app.panel-min .al-float { left: calc(50% + (232px - 68px) / 2); }

.al-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.al-kpi { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border-radius: 16px; min-width: 0; }
.al-kpi > span { font-size: 13px; font-weight: 500; }
.al-kpi b { font-size: 40px; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.al-kpi small { color: inherit; font-size: 12.5px; }
.al-delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.al-delta svg { width: 15px; height: 15px; flex: none; }
.al-delta.down svg { color: #B4483C; }

.al-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; width: 100%; padding: 10px; margin: 0 -10px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.al-item:hover { background: #FAFAF8; }
.al-item + .al-item { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.al-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #F1F1EE; color: #B4B5B8; }
.al-thumb img { width: 100%; height: 100%; object-fit: cover; }
.al-item-main { display: grid; gap: 6px; min-width: 0; }
.al-item-main > b { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.al-item-meta .tag { font-size: 11px; padding: 1px 7px; }
.al-cp { padding: 1px 8px; border-radius: 999px; background: #F5E3B8; color: #6B4E0E; font-weight: 500; }
.al-mbars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.al-mb { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 6px; font-size: 11.5px; color: var(--muted); }
.al-mb b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.al-mb-t { grid-column: 1 / -1; grid-row: 2; height: 5px; border-radius: 99px; background: #EFEFEB; overflow: hidden; }
.al-mb-t i { display: block; height: 100%; width: calc(var(--w) * 100%); min-width: 2px; border-radius: inherit; background: var(--bar, #8B8D91); transform-origin: left; animation: alGrowX .8s cubic-bezier(.16, 1, .3, 1) .25s both; }
.al-card.best .al-mb-t i { --bar: #4FB28A; }
.al-card.worst .al-mb-t i { --bar: #E07A6E; }
.al-card.best h3 svg { color: #2F7A55; }
.al-card.worst h3 svg { color: #B4483C; }
.al-alpha-note summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.al-alpha-note ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }

.al-chart-scroll { overflow-x: auto; padding-top: 34px; margin-top: -26px; scrollbar-width: thin; }
.al-chart { display: flex; align-items: flex-end; gap: 4px; height: 210px; min-width: max(100%, calc(var(--n, 15) * 30px)); }
.al-col { flex: 1 1 0; min-width: 24px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; }
.al-col-v { font-size: 11px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.al-col-bar { width: 100%; max-width: 30px; height: calc(var(--h) * 150px); min-height: 3px; border-radius: 7px 7px 3px 3px; background: #DCDCD7; transform-origin: bottom; animation: alGrowY .8s cubic-bezier(.16, 1, .3, 1) .2s both; }
.al-col { position: relative; padding-bottom: 16px; }
.al-col.m-start::before { content: attr(data-m); position: absolute; left: 0; bottom: 0; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.al-col.m-start { border-left: 1px dashed var(--line-2); }
.al-col.good .al-col-bar { background: #8FD0B0; }
.al-col.bad .al-col-bar { background: #EFA79D; }
.al-col:hover .al-col-bar { filter: brightness(.94); }
.al-col-d { font-size: 10px; letter-spacing: -.01em; color: var(--muted); white-space: nowrap; }
.al [data-tip]:hover::after, .al [data-tip]:focus-visible::after { left: 50%; top: auto; bottom: calc(100% + 8px); transform: translateX(-50%); max-width: 240px; white-space: normal; width: max-content; }
.al-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.al-legend span { display: inline-flex; align-items: center; gap: 6px; }
.al-legend i { width: 10px; height: 10px; border-radius: 3px; background: #DCDCD7; }
.al-legend .good i { background: #8FD0B0; }
.al-legend .bad i { background: #EFA79D; }
.al-legend .prev i { background: #D9D9D4; }
.al-legend .cur i { background: var(--night); }

.al-cmp { display: grid; gap: 12px; }
.al-cmp-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.al-cmp-bars { display: grid; gap: 4px; padding-right: 52px; }
.al-hbar { position: relative; height: 16px; width: calc(var(--w) * 100%); min-width: 3px; border-radius: 5px; background: #D9D9D4; transform-origin: left; animation: alGrowX .8s cubic-bezier(.16, 1, .3, 1) .2s both; }
.al-hbar.cur { background: var(--night); }
.al-hbar b { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.al-quote { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FAFAF8; font-size: 13px; color: var(--ink-2); }

.al-donuts { display: grid; gap: 18px; }
.al-donut-wrap { display: flex; align-items: center; gap: 18px; }
.al-donut { position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%; background: var(--g); animation: alSpin .9s cubic-bezier(.16, 1, .3, 1) .2s both; }
.al-donut span { position: absolute; inset: 18px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; font-size: 11.5px; color: var(--muted); }
.al-donut b { font-size: 24px; line-height: 1; font-weight: 600; color: var(--ink); }
.al-donut-wrap h4 { margin-bottom: 8px; font-size: 14px; color: var(--ink); }
.al-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.al-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; background: color-mix(in srgb, var(--c) 20%, #fff); color: color-mix(in srgb, var(--c) 40%, #1F2022); }
.al-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.al-chip.t { --c: #26282A; padding: 8px 12px; border-radius: 12px; background: #F4F4F2; color: var(--ink); font-size: 13.5px; align-items: flex-start; }
.al-chip.t i { margin-top: 6px; background: #4FB28A; }
.al-projs { list-style: none; margin: 0; padding: 0; display: grid; }
.al-proj { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.al-logos { display: flex; flex: none; color: var(--muted); }
.al-logos img { width: 30px; height: 30px; border-radius: 9px; object-fit: contain; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--hair); }
.al-logos img + img { margin-left: -8px; }

.al-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.al-cal-h { font-size: 11.5px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.al-cal-d { min-height: 50px; padding: 6px; border-radius: 10px; background: #FAFAF8; }
.al-cal-d.has { background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.al-cal-d em { font-style: normal; font-size: 12px; color: var(--muted); }
.al-cal-d.has em { color: var(--ink); font-weight: 600; }
.al-dots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; }
.al-dot { position: relative; width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; background: var(--c); cursor: pointer; }
.al-dot::before { content: ""; position: absolute; inset: -5px; }
.al-dot:hover, .al-dot:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, #fff); }
.al-ilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.al-ilist li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.al-ilist li > span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #F4F4F2; color: var(--ink-2); }
.al-ilist svg { width: 16px; height: 16px; }

.al-sec-find h3 { margin: 6px 0 12px; font-size: 18px; font-weight: 600; }
.al-finds { list-style: none; margin: 0; padding: 0; display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.al-find { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-content: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); }
.al-find-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.al-find-ic svg { width: 19px; height: 19px; }
.k-harga .al-find-ic { background: #FBEADC; color: #7A4720; }
.k-skema .al-find-ic { background: #EEEAF8; color: #3F3466; }
.k-data .al-find-ic { background: #E4EEF8; color: #24507A; }
.k-komp .al-find-ic { background: #F8E3E0; color: #8A3329; }
.k-lain .al-find-ic { background: #E3F2EA; color: #1F5A3F; }
.al-find-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.al-find-h b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--night); color: #fff; font-size: 11px; }
.al-find p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.al-find .clamp:not(.open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.al-more { margin-top: 6px; padding: 4px 0; border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.al-in { animation: alIn .55s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes alIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes alGrowY { from { transform: scaleY(0); } }
@keyframes alGrowX { from { transform: scaleX(0); } }
@keyframes alSpin { from { transform: rotate(-90deg) scale(.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .al-in, .al-col-bar, .al-hbar, .al-mb-t i, .al-donut { animation: none !important; }
  .panel, .scrim { transition: none !important; }
}

@media (max-width: 1100px) {
  .al-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-grid.wide, .al-grid.two { grid-template-columns: minmax(0, 1fr); }
  .al-float { left: calc(50% + 204px / 2); }
}
@media (max-width: 700px) {
  .al-hero { padding: 20px 18px; }
  .al-hero-top { flex-direction: column; gap: 12px; }
  .al-hero h3 { font-size: 28px; }
  .al-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .al-kpis { gap: 8px; }
  .al-kpi { padding: 14px; }
  .al-kpi b { font-size: 30px; }
  .al-kpi small { font-size: 12px; }
  .al-card { padding: 16px; }
  .al-mbars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-float { bottom: 84px; left: 12px; right: 12px; transform: none; justify-content: center; padding: 6px; }
  .al-float > span { display: none; }
  .al-float .btn { padding: 9px 12px; font-size: 13px; min-height: 40px; }
  .al-donut-wrap { gap: 14px; }
  .al-donut { width: 96px; height: 96px; }
  .al-finds { grid-template-columns: minmax(0, 1fr); }
  .wsums { gap: 8px; }
  .wsum { padding: 10px 14px; grid-template-columns: 1fr auto; align-items: center; }
  .wsum b { font-size: 24px; grid-row: 1; grid-column: 2; }
  .wsum small { display: none; }
}
@media (max-width: 640px) { .al-sec dl { grid-template-columns: 1fr; gap: 2px; } .al-sec dd { margin-bottom: 8px; } }

/* ---------- v8: dashboard lega, menu profil, overlay hidup, pin revisi, motion ---------- */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }

/* Ringkasan minggu ini: bar tipis satu baris */
.wsums { gap: 8px; }
.wsum { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; }
.wsum span { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsum b { font-size: 20px; line-height: 1; }
a.wsum:hover { transform: translateY(-2px); }
@media (min-width: 1101px) {
  main:has(> .wsums) { grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; }
}

/* Kartu konten: preview lebih besar (4:5 seperti feed IG) */
.pcard-media { aspect-ratio: 4 / 5; }
.board.fit { padding: 12px 12px 8px; }
.board.fit .week, .board.fit .week { grid-template-columns: repeat(7, minmax(118px, 1fr)); }
@media (min-width: 701px) and (max-width: 1400px) { .board.fit .week { grid-template-columns: repeat(7, minmax(118px, 1fr)); } }
.pcard { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgb(31 32 34 / .10); }
.pcard-img { transition: transform .5s var(--ease); }
.pcard:hover .pcard-img { transform: scale(1.04); }
.wcards > .pcard { animation: alIn .5s var(--ease) both; }
.wcards > .pcard:nth-child(2) { animation-delay: 60ms; } .wcards > .pcard:nth-child(3) { animation-delay: 120ms; } .wcards > .pcard:nth-child(n+4) { animation-delay: 180ms; }
.wcol.today { background: linear-gradient(to bottom, #FAFAF8, transparent 160px); border-radius: 12px; }
.wcol.today .whead b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; vertical-align: middle; border-radius: 50%; background: #4FB28A; animation: pulse 2s infinite; }

/* Strip performa (data Alpha) */
.dmini { padding: 10px 14px; border-radius: 14px; display: grid; gap: 6px; }
.dm-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dm-head b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.dm-head b svg { width: 15px; height: 15px; color: #2F7A55; }
.dm-head small { font-size: 12px; }
.dm-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 3px 8px; border-radius: 999px; }
.dm-more:hover { background: var(--glass-2); }
.dm-more svg { width: 14px; height: 14px; transition: transform .2s; }
.dm-more:hover svg { transform: translateX(2px); }
.dm-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.dm-bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.dm-bar { flex: 1 1 0; max-width: 26px; height: 100%; padding: 0; border: 0; background: none; display: flex; align-items: flex-end; cursor: pointer; }
.dm-bar i { display: block; width: 100%; height: max(3px, calc(var(--h) * 100%)); border-radius: 5px 5px 2px 2px; background: #DCDCD7; transform-origin: bottom; animation: alGrowY .7s var(--ease) both; animation-delay: calc(var(--i) * 25ms + .15s); transition: filter .15s; }
.dm-bar.good i { background: #8FD0B0; } .dm-bar.bad i { background: #EFA79D; }
.dm-bar:hover i { filter: brightness(.9); }
.dmini [data-tip]:hover::after { left: 50%; top: auto; bottom: calc(100% + 6px); transform: translateX(-50%); }
.dm-stats { display: flex; gap: 6px; }
.dm-stat { display: grid; gap: 1px; min-width: 76px; padding: 6px 10px; border-radius: 10px; background: #FAFAF8; border: 1px solid var(--line); }
.dm-stat span { font-size: 11px; color: var(--muted); }
.dm-stat b { font-size: 16px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dm-stat small { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; }
.dm-stat small svg { width: 12px; height: 12px; }
.dm-stat small.up { color: #2F7A55; } .dm-stat small.down { color: #B4483C; }
@media (max-width: 1100px) { .dm-body { grid-template-columns: 1fr; } .dm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); } .dm-stat { min-width: 0; } }
@media (max-width: 700px) { .dm-head small { display: none; } .dm-stat { padding: 6px 8px; } }

/* Menu profil (kiri bawah) */
.pwrap { position: relative; margin-top: auto; }
.rail-user { width: 100%; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; transition: background .2s; }
.rail-user:hover, .rail-user[aria-expanded=true] { background: #3A3C3F; }
.rail-user .avatar { position: relative; }
.rail-user .unread-dot { position: absolute; top: -2px; right: -2px; min-width: 10px; height: 10px; padding: 0; font-size: 0; border: 2px solid var(--night-2); background: #E07A6E; }
.pu-chev { display: grid; place-items: center; color: var(--night-muted); transition: transform .25s var(--ease); }
.pu-chev svg { width: 16px; height: 16px; }
.rail-user[aria-expanded=true] .pu-chev { transform: rotate(180deg); }
.pmenu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 60; display: grid; gap: 1px; padding: 6px; border-radius: 16px; background: #2F3133; border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 18px 40px rgb(0 0 0 / .35); transform-origin: bottom left; animation: menuIn .22s var(--ease) both; }
.pmenu[hidden] { display: none; }
.pmenu-who { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; border-bottom: 1px solid rgb(255 255 255 / .08); margin-bottom: 4px; }
.pmenu-who b { display: block; color: #fff; font-size: 14px; font-weight: 500; }
.pmenu-who small { color: var(--night-muted); font-size: 12px; }
.pmenu-h { display: flex; align-items: center; gap: 8px; padding: 6px 10px 4px; font-size: 11.5px; font-weight: 500; color: var(--night-muted); }
.pmenu-h svg { width: 14px; height: 14px; }
.pmenu button, .pmenu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--night-ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s, padding .2s var(--ease); }
.pmenu button:hover, .pmenu a:hover, .pmenu button:focus-visible, .pmenu a:focus-visible { background: rgb(255 255 255 / .08); padding-left: 13px; outline: none; }
.pmenu svg { width: 17px; height: 17px; flex: none; stroke-width: 1.6; }
.pmenu span { flex: 1; }
.pmenu a > svg:last-child { width: 14px; height: 14px; color: var(--night-muted); }
.pmenu .pill { position: static; background: #E07A6E; color: #fff; }
.pmenu hr { border: 0; border-top: 1px solid rgb(255 255 255 / .08); margin: 4px 6px; }
.pmenu-out { color: #F2B8B0 !important; }
@media (max-width: 700px) {
  .pwrap { margin: 0 0 0 6px; order: 3; }
  .rail-user { display: flex !important; width: auto; padding: 0; background: none !important; }
  .rail-user :is(.pu-text, .pu-chev) { display: none; }
  .rail-user .avatar { width: 44px; height: 44px; }
  .pmenu { position: fixed; left: auto; right: 10px; bottom: auto; top: 70px; width: min(290px, calc(100vw - 20px)); transform-origin: top right; }
}

/* Overlay (Notifikasi, Project & Akun, Asset) */
.overlay { animation: fadeIn .2s ease both; }
.modal { animation: pop .32s var(--ease) both; }
.ov-body { gap: 8px; }
.ov-in { animation: alIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.ov-h { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 2px 0; }
.ov-empty { display: grid; justify-items: center; gap: 8px; padding: 30px 10px; color: var(--muted); }
.ov-empty svg { width: 34px; height: 34px; padding: 14px; box-sizing: content-box; border-radius: 50%; background: #F4F4F2; animation: float 3s ease-in-out infinite; }
.ov-empty p { margin: 0; }
.nlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nitem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 1px solid transparent; border-radius: 14px; background: none; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .2s var(--ease); }
.nitem:hover { background: #FAFAF8; border-color: var(--line); transform: translateX(2px); }
.nitem b { display: block; font-weight: 450; line-height: 1.4; }
.nitem.unread b { font-weight: 600; }
.nitem small { font-size: 12px; }
.nic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.nic svg { width: 18px; height: 18px; }
.ndot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #E07A6E; animation: pulse 2s infinite; }
.alist li { gap: 12px; padding: 9px 4px; border-radius: 12px; transition: background .15s; }
.alist li:hover { background: #FAFAF8; }
.alist li a { flex: 1; min-width: 0; text-decoration: none !important; }
.alist li a b { display: block; font-weight: 500; }
.alist li a small { margin: 0; text-align: left; }
.alist li a > svg:last-child { width: 15px; height: 15px; color: var(--muted); transition: transform .2s; }
.alist li a:hover > svg:last-child { transform: translate(2px, -2px); color: var(--ink); }
.alist .nic { width: 34px; height: 34px; border-radius: 10px; }
.alist .nic svg { width: 16px; height: 16px; }
.cp svg { width: 15px; height: 15px; transition: transform .25s var(--ease), opacity .2s; }
.cp svg:last-child { position: absolute; opacity: 0; transform: scale(.4); color: #2F7A55; }
.cp.done svg:first-child { opacity: 0; transform: scale(.4); }
.cp.done svg:last-child { opacity: 1; transform: none; }
.cp.done { background: #E3F2EA; border-color: #CDEBDD; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pj-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 16px; border: 1px solid var(--hair); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 12%, #fff), #fff 60%); transition: transform .25s var(--ease), box-shadow .25s; }
.pj-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(31 32 34 / .08); }
.pj-card.off { filter: grayscale(.8); opacity: .75; }
.pj-top { display: flex; align-items: center; gap: 10px; }
.pj-top b, .pj-top input { flex: 1; min-width: 0; font-weight: 600; }
.pj-top input { padding: 6px 9px; }
.pj-logo { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.pj-logo img { width: 30px; height: 30px; object-fit: contain; }
.pj-logo svg { width: 20px; height: 20px; color: var(--muted); }
.pj-main { margin-top: -4px; font-size: 12px; }
.pj-h { display: grid; gap: 6px; }
.pj-h .at { padding-left: 10px; gap: 4px; }
.pj-h .at svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.pj-h .at input { min-width: 0; padding: 7px 8px 7px 0; }
.pj-card > .btn { justify-self: end; }
.hchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .2s var(--ease); }
a.hchip:hover { border-color: var(--ink); transform: translateX(2px); }
.hchip svg { width: 15px; height: 15px; }
.hchip.off { color: var(--muted); border-style: dashed; }
.switch { position: relative; display: inline-block; width: 40px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #D9D9D4; transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .25s var(--ease); }
.switch input:checked + i { background: #4FB28A; }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.pj-card .switch[data-tip]:hover::after { left: auto; right: 0; top: auto; bottom: calc(100% + 6px); transform: none; }

/* Review: titik revisi di gambar + lampiran */
.rv-pinhint { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
.rv-pinhint svg { width: 14px; height: 14px; color: #E07A6E; }
.pinbox { position: relative; display: block; cursor: crosshair; border-radius: 12px; }
.pinbox img { pointer-events: none; user-select: none; }
.pin { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #E07A6E; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 4px 10px rgb(0 0 0 / .25), 0 0 0 2px #fff; cursor: default; animation: pinDrop .45s var(--ease) both; }
.pin.new { background: var(--ink); }
.pin.flash { animation: pinFlash .9s var(--ease); }
.pinbox .pin[data-tip]:hover::after { left: calc(100% + 8px); max-width: 220px; white-space: normal; width: max-content; font-weight: 500; }
.rv-zoom { position: absolute; top: 8px; right: 8px; z-index: 3; opacity: 0; transition: opacity .2s; background: rgb(255 255 255 / .9); }
.pinbox:hover .rv-zoom, .rv-zoom:focus-visible { opacity: 1; }
.pin-no { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #E07A6E; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .2s var(--ease); }
.pin-no:hover { transform: scale(1.15); }
.msg-img { display: block; margin-top: 8px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.msg-img img { display: block; max-width: min(260px, 100%); max-height: 200px; border-radius: 10px; border: 1px solid var(--line); transition: transform .25s var(--ease); }
.msg-img:hover img { transform: scale(1.02); }
.msg { animation: alIn .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.cm-extra { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-extra:not(:has(> :not([hidden]))) { display: none; }
.cm-pin { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 999px; background: #F8E3E0; color: #8A3329; font-size: 12.5px; cursor: pointer; animation: menuIn .25s var(--ease) both; }
.cm-pin[hidden], .cm-att[hidden] { display: none; }
.cm-pin svg { width: 14px; height: 14px; }
.cm-att { display: inline-flex; align-items: center; gap: 8px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; animation: menuIn .25s var(--ease) both; }
.cm-att img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.cm-att span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-file-btn { cursor: pointer; }
.composer .row-gap { flex-wrap: wrap; }
.cm-file-btn[data-tip]:hover::after { left: 0; top: auto; bottom: calc(100% + 6px); transform: none; }

/* Motion umum */
main > * { animation: alIn .45s var(--ease) both; }
main > :nth-child(2) { animation-delay: 50ms; } main > :nth-child(3) { animation-delay: 100ms; } main > :nth-child(n+4) { animation-delay: 140ms; }
.btn, .icon-btn { transition: background .15s, border-color .15s, transform .15s var(--ease); }
.btn:active:not(:disabled), .icon-btn:active { transform: scale(.96); }
.fab { animation: fabIn .5s var(--ease) .2s both; }
.rail-btn { transition: color .2s, background .2s; }
.rail-btn svg { transition: transform .25s var(--ease); }
.rail-btn:hover svg { transform: scale(1.1); }
.rail-btn.on::before { animation: growY .35s var(--ease) both; }
.review { transition: box-shadow .25s; }
.review:hover { box-shadow: 0 10px 28px rgb(31 32 34 / .07); }
.ev { transition: background .15s, transform .2s var(--ease); }
.ev:hover { transform: translateX(2px); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes fabIn { from { opacity: 0; transform: translate(-50%, 24px); } }
@keyframes growY { from { transform: scaleY(0); } }
@keyframes float { 50% { transform: translateY(-4px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(224 122 110 / .45); } 70%, 100% { box-shadow: 0 0 0 7px rgb(224 122 110 / 0); } }
@keyframes pinDrop { from { opacity: 0; transform: translateY(-14px) scale(.6); } }
@keyframes pinFlash { 30% { transform: scale(1.5); box-shadow: 0 0 0 8px rgb(224 122 110 / .3), 0 0 0 2px #fff; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- v8.1: widget panel kanan ---------- */
.pw { display: grid; gap: 16px; }
.pw:empty { display: none; }
.pw-sec { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); animation: alIn .45s var(--ease) both; }
.pw-sec:nth-child(2) { animation-delay: 50ms; } .pw-sec:nth-child(3) { animation-delay: 100ms; } .pw-sec:nth-child(4) { animation-delay: 150ms; }
.pw-sec .eyebrow { display: flex; align-items: center; gap: 6px; }
.pw-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; }
.pw-empty { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); }
.pw-empty svg { width: 14px; height: 14px; color: #4FB28A; }
.pw-task, .pw-dl, .pw-acts button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .2s var(--ease); }
.pw-task:hover, .pw-dl:hover { background: #FAFAF8; border-color: var(--line); transform: translateX(2px); }
.pw-task > span:last-child, .pw-dl-t { min-width: 0; flex: 1; }
.pw-task b, .pw-dl-t b { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-task small, .pw-dl-t small { font-size: 11.5px; }
.pw .nic { width: 30px; height: 30px; border-radius: 9px; }
.pw .nic svg { width: 15px; height: 15px; }
.pw-task.alpha { background: #FBEADC; }
.pw-day { flex: none; display: grid; place-items: center; width: 38px; padding: 3px 0; border-radius: 10px; background: #F4F4F2; font-size: 10.5px; color: var(--muted); line-height: 1.1; }
.pw-day b { font-size: 16px; color: var(--ink); font-weight: 600; }
.pw-dl-t small { display: flex; align-items: center; gap: 5px; }
.pw-dl-t small i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pw-dl em { flex: none; font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #F8E3E0; color: #8A3329; }
.pw-prog { display: flex; align-items: center; gap: 12px; }
.pw-prog > div:last-child { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pw-prog > div:last-child b { font-size: 14px; font-weight: 600; }
.pw-prog small { font-size: 11.5px; }
.pw-ring { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(#4FB28A calc(var(--p) * 1%), #ECECE8 0); animation: alSpin .9s var(--ease) both; }
.pw-ring b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); font-size: 12px; font-weight: 700; }
.pw-bar { display: block; height: 5px; margin-top: 4px; border-radius: 99px; background: #ECECE8; overflow: hidden; }
.pw-bar i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: inherit; background: #4FB28A; transform-origin: left; animation: alGrowX .9s var(--ease) .2s both; }
.pw-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; }
.pw-acts li { display: flex; align-items: flex-start; gap: 8px; }
.pw-acts .nic { margin-top: 6px; width: 24px; height: 24px; border-radius: 50%; }
.pw-acts .nic svg { width: 12px; height: 12px; }
.pw-acts button { display: block; padding: 5px 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.pw-acts button:hover { background: #FAFAF8; }
.pw-acts b { font-weight: 600; color: var(--ink); }
.pw-acts span { color: var(--ink); }
.pw-acts small { font-size: 11px; }
@media (min-width: 1101px) { .panel.min .pw { display: none; } }
.rv-thumb { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; min-height: 120px; background: #F1F1EE; }
.rv-play { position: absolute; left: 8px; bottom: 8px; z-index: 3; background: rgb(255 255 255 / .92); }
/* Panel kanan: kolom grid tidak boleh melebar mengikuti teks panjang */
.pw, .pw-sec { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.pw-acts li > button { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Celah 1–3 (31 Okt): aksi pesan, titik selesai, TikTok, deadline ---------- */
.msg-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 12px; }
.msg-acts button { border: 0; background: none; padding: 2px 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.msg-acts button:hover { color: var(--ink); }
.msg-acts button.del:hover { color: #B4483C; }
.msg-edited { display: inline; color: var(--muted); font-size: 11px; }
.msg-edit { display: grid; gap: 6px; margin-top: 4px; }
.pin-st { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-weight: 500; }
.pin-st svg { width: 12px; height: 12px; }
.pin-st.done { background: #FBF0D9; color: #7A5A12; }
.pin-st.ok { background: #DDF1E6; color: #1F5A3F; }
.pin.done { background: #E0A63A; }
.pin.ok { background: #9AA0A6; opacity: .75; }
.tt-skip { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--ink-2); font-weight: 400; }
.tt-skip input { width: 16px; height: 16px; }
.tt-reason { margin-top: 6px; }
.pcard-late { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: #F5D6D2; color: #8A3329; font-size: 10.5px; font-weight: 600; }
.pw-dl.late em { background: #E07A6E; color: #fff; }
