/* =========================================================================
   v16.88 — Dashboard dengan komposisi editorial
   Tab Journal (#v165-dash). Urutan perhatian:
   (1) P/L hari ini, (2) P/L bulan ini, (3) satu tombol Journal Baru,
   (4) grafik equity dengan ruang proporsional, (5) statistik lain dalam grid kompak, (6) kartu analisis.
   Masthead dan grid statistik tanpa kotak; satu-satunya permukaan kaca di area utama adalah grafik equity.
   Emas pekat hanya dipakai satu kali: tombol Journal Baru.
   Dikunci ke html.ed-on. Membatalkan: hapus link + script dash-editorial.* dari index.html.
   ========================================================================= */

/* ---------- kepala halaman: tenang, supaya angka yang bicara ---------- */
html.ed-on #v165-dash .v5-h{margin-bottom:12px}
html.ed-on #v165-dash h2.v5-title{
  font-size:15px;font-weight:600;letter-spacing:0;line-height:1.3;
  color:var(--mu);background:none;-webkit-text-fill-color:currentColor;text-shadow:none;animation:none}

/* ---------- masthead: hari ini (utama) + bulan ini (kedua) ---------- */
html.ed-on #v165-dash .de-mast{margin:16px 0 44px;padding:0 2px;min-width:0}
html.ed-on #v165-dash .de-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin-bottom:28px}
html.ed-on #v165-dash .de-date{font-size:14px;font-weight:500;color:var(--mu)}

html.ed-on #v165-dash .de-focus{display:grid;gap:28px}
html.ed-on #v165-dash .de-today,
html.ed-on #v165-dash .de-month{min-width:0}
html.ed-on #v165-dash .de-month{padding-top:24px;border-top:1px solid var(--ln)}

html.ed-on #v165-dash .de-label{margin:0 0 10px;font-size:15px;font-weight:500;line-height:1.3;color:var(--mu)}
html.ed-on #v165-dash .de-label small{margin-left:8px;font-size:13px;font-weight:400;opacity:.8}

html.ed-on #v165-dash .de-fig{
  display:block;max-width:100%;margin:0;padding-bottom:.04em;white-space:nowrap;
  font-family:var(--ed-serif,inherit);font-weight:500;letter-spacing:-.03em;line-height:1.05;
  font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum","tnum";color:var(--tx)}
html.ed-on #v165-dash .de-lead{font-size:clamp(54px,16vw,104px)}
html.ed-on #v165-dash .de-second{font-size:clamp(34px,9.5vw,52px)}
html.ed-on #v165-dash .de-fig.pos{color:var(--px-profit,var(--win))}
html.ed-on #v165-dash .de-fig.neg{color:var(--px-loss,var(--loss))}
html.ed-on #v165-dash .de-fig.zero{color:var(--mu);opacity:.5}
html.ed-on #v165-dash .de-fig.pf-wrap{white-space:normal;line-height:1.12}

html.ed-on #v165-dash .de-meta{display:flex;flex-wrap:wrap;gap:4px 18px;margin:14px 0 0;font-size:14px;line-height:1.4;color:var(--mu);font-variant-numeric:tabular-nums}
html.ed-on #v165-dash .de-streak{margin:6px 0 0;font-size:14px;line-height:1.4;color:var(--mu)}
html.ed-on #v165-dash .de-streak b{font-weight:600;color:var(--tx)}

/* baris keputusan: satu kalimat tentang langkah berikutnya + satu tombol */
html.ed-on #v165-dash .de-foot{display:flex;flex-direction:column;gap:20px;margin-top:36px;padding-top:22px;border-top:1px solid var(--ln)}
html.ed-on #v165-dash .de-do{min-width:0}
html.ed-on #v165-dash .de-do p{margin:0;max-width:36ch;font-size:16px;font-weight:500;line-height:1.45;color:var(--tx)}
html.ed-on #v165-dash .de-do .v5-steps{margin-top:14px}
html.ed-on #v165-dash .de-act{display:flex;flex-wrap:wrap;align-items:center;gap:6px 24px}

html.ed-on #v165-dash .de-link{
  all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;min-height:44px;padding:0 2px;
  font-size:15px;font-weight:600;color:var(--g2,var(--g));text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;-webkit-tap-highlight-color:transparent}
html.ed-on #v165-dash .de-link:focus-visible,
html.ed-on #v165-dash .de-new:focus-visible{outline:2px solid var(--g);outline-offset:3px;border-radius:8px}

html.ed-on #v165-dash .de-new{
  all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:56px;padding:0 30px 0 24px;border-radius:999px;white-space:nowrap;
  font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1;color:#1a1405;
  background:linear-gradient(135deg,#e6c565,#c8a96a);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 14px 30px -12px rgba(215,180,74,.7),0 2px 6px rgba(0,0,0,.28);
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:transform .2s cubic-bezier(.2,.9,.25,1),box-shadow .2s ease,filter .2s ease}
html.ed-on #v165-dash .de-new svg{flex:none}
html.ed-on #v165-dash .de-new:hover{filter:brightness(1.05)}
html.ed-on #v165-dash .de-new:active{transform:scale(.97)}
body.light.ed-on #v165-dash .de-new,html.ed-on body.light #v165-dash .de-new{color:#fff;background:linear-gradient(135deg,#9a7a1c,#7a5a0c);box-shadow:0 10px 22px -10px rgba(122,90,12,.55)}

@media (max-width:640px){
  html.ed-on #v165-dash .de-act{flex-direction:column;align-items:stretch;gap:4px}
  html.ed-on #v165-dash .de-new{width:100%}
  html.ed-on #v165-dash .de-link{justify-content:center}
}
@media (min-width:820px){
  html.ed-on #v165-dash .de-lead{font-size:clamp(60px,9.4vw,104px)}
  html.ed-on #v165-dash .de-focus{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:0;align-items:stretch}
  html.ed-on #v165-dash .de-month{padding:0 0 4px 56px;border-top:0;border-left:1px solid var(--ln)}
  html.ed-on #v165-dash .de-foot{flex-direction:row;align-items:center;justify-content:space-between;gap:32px}
  html.ed-on #v165-dash .de-act{flex-wrap:nowrap;justify-content:flex-end;flex:none}
}

/* ---------- satu aksi utama: tombol melayang menyingkir selama tombol di masthead terlihat ---------- */
html body.authed.de-cta-on #btn-new-journal-fab#btn-new-journal-fab#btn-new-journal-fab{visibility:hidden !important;pointer-events:none !important}

/* ---------- zona performa: grafik equity lebih lapang, statistik jadi grid kompak ---------- */
html.ed-on #v165-dash .pf-zone{margin-bottom:36px;gap:32px}
@media (min-width:641px) and (max-width:1099px){
  html.ed-on #v165-dash .pf-zone{grid-template-columns:minmax(0,1fr)}
}
@media (min-width:1100px){
  html.ed-on #v165-dash .pf-zone{grid-template-columns:repeat(12,minmax(0,1fr));gap:40px;align-items:start}
  html.ed-on #v165-dash .pf-zone > .pf-hero{grid-column:span 8}
  html.ed-on #v165-dash .pf-zone > .pf-sec{grid-column:span 4}
}

/* grafik: angka kumulatif turun pangkat (konteks, bukan judul) */
html.ed-on #v165-dash .pf-hero.v5-card{padding:22px 22px 14px}
html.ed-on #v165-dash .pf-head{margin-bottom:14px}
html.ed-on #v165-dash .pf-read{margin-bottom:10px}
html.ed-on #v165-dash .pf-valbox{flex:1 1 220px}
html.ed-on #v165-dash .pf-val{font-size:clamp(26px,6.4vw,34px);font-weight:500;letter-spacing:-.02em}
html.ed-on #v165-dash .pf-cb{padding:5px 12px;font-size:14px}
@media (max-width:640px){
  html.ed-on #v165-dash .pf-hero.v5-card{padding:18px 16px 10px}
  html.ed-on #v165-dash .pf-valbox{flex-basis:100%}
}

/* statistik lain: grid hairline tanpa kotak; ketuk sel untuk penjelasan, sel terbuka melebar satu baris penuh */
/* panel ini tidak lagi memakai kelas glass/v5-card (lihat secPanel): tidak ada gaya kartu yang perlu dilawan */
html.ed-on #v165-dash .pf-sec.de-open{margin:0;min-width:0;padding:0}
html.ed-on #v165-dash .pf-sec .v5-ch{margin-bottom:12px}
html.ed-on #v165-dash .pf-sec .v5-ch>div{display:grid;gap:2px}
html.ed-on #v165-dash .pf-sec .v5-ch h3,html.ed-on #v165-dash .pf-sec .v5-ch p{margin:0}
html.ed-on #v165-dash .pf-sec h3.v5-ct{font-size:15px;font-weight:600;color:var(--mu)}
html.ed-on #v165-dash .pf-sec .v5-ch p{font-size:13px;color:var(--mu);opacity:.85}

html.ed-on #v165-dash .pf-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;border-top:1px solid var(--ln);flex:none}
html.ed-on #v165-dash .pf-tile{display:block;flex:none;min-width:0;border-bottom:1px solid var(--ln)}
html.ed-on #v165-dash .pf-tile:last-child{border-bottom:1px solid var(--ln)}
html.ed-on #v165-dash .pf-tile.pf-o{grid-column:1/-1}
html.ed-on #v165-dash .pf-sec:not(.pf-all) .pf-tile.pf-solo{grid-column:1/-1}
html.ed-on #v165-dash .pf-sec.pf-all .pf-tile.pf-lodd{grid-column:1/-1}
html.ed-on #v165-dash .pf-tb{flex:none;flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:6px;min-height:0;padding:16px 22px 16px 0}
html.ed-on #v165-dash .pf-tl{flex:none;font-size:14px;line-height:1.3;color:var(--mu)}
html.ed-on #v165-dash .pf-tv{flex:none;margin:0;max-width:100%;text-align:left;font-size:24px;font-weight:500;letter-spacing:-.02em;line-height:1.1}
html.ed-on #v165-dash .pf-tv.pf-wrap{flex-basis:auto}
html.ed-on #v165-dash .pf-chev{top:22px;margin-top:0}
html.ed-on #v165-dash .pf-tb[aria-expanded="true"] .pf-chev{margin-top:3px}
html.ed-on #v165-dash .pf-td{padding:0 4px 16px 0}
html.ed-on #v165-dash .pf-all-b{margin:12px 0 0;justify-content:flex-start;gap:10px;min-height:44px;padding:0;border:0;border-radius:0;background:none;font-size:14px;color:var(--g2,var(--g))}
html.ed-on #v165-dash .pf-all-b:hover{border-color:transparent;text-decoration:underline;text-underline-offset:4px}

@media (min-width:641px) and (max-width:1099px){
  html.ed-on #v165-dash .pf-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
  html.ed-on #v165-dash .pf-sec:not(.pf-all) .pf-tile.pf-solo,
  html.ed-on #v165-dash .pf-sec.pf-all .pf-tile.pf-lodd{grid-column:auto}
}
@media (min-width:1100px){
  html.ed-on #v165-dash .pf-sec{padding:0}
  html.ed-on #v165-dash .pf-tiles{flex:none}
  html.ed-on #v165-dash .pf-tile{flex:none}
  html.ed-on #v165-dash .pf-tb{flex:none;align-items:flex-start}
  html.ed-on #v165-dash .pf-sec .pf-extra,
  html.ed-on #v165-dash .pf-sec:not(.pf-all) .pf-extra{display:block}
  html.ed-on #v165-dash .pf-sec .pf-tile.pf-lodd{grid-column:1/-1}
  html.ed-on #v165-dash .pf-sec:not(.pf-all) .pf-tile.pf-solo{grid-column:auto}
}

/* ---------- gerak & aksesibilitas ---------- */
@media (prefers-reduced-motion:reduce){
  html.ed-on #v165-dash .de-new{transition:none}
}
@media (forced-colors:active){
  html.ed-on #v165-dash .de-new{background:ButtonFace;color:ButtonText;border:2px solid ButtonText;box-shadow:none}
  html.ed-on #v165-dash .de-fig{color:CanvasText}
}
