/* Overview + 404 */
/* Heading placeholders sit in the real h1 / p lines (p-home.js headHTML) */
.ov-head .sk{display:inline-block;vertical-align:middle;max-width:100%}
.ov-r1{align-items:stretch}
.ov-bal{position:relative;flex:1 1 auto;min-height:212px;padding:24px;display:flex;flex-direction:column;justify-content:space-between;gap:18px}
.ov-bal .art{left:auto;width:58%}
.ov-bal-top,.ov-bal-act{position:relative;z-index:2}
.ov-bal-top{display:flex;flex-direction:column;gap:2px}
.ov-bal-top .l{font-size:12px;font-weight:500;color:var(--text-3);margin-bottom:4px}
.ov-bal-v{font-size:44px;font-weight:500;letter-spacing:-1.6px;line-height:52px}
.ov-bal-s{font-size:13px;color:var(--text-3)}
.ov-bal-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:14px;min-height:30px}
.ov-bal-act{display:flex;gap:10px;flex-wrap:wrap}
.ov-acct{flex:0 0 360px;width:360px;display:flex;flex-direction:column;gap:10px;padding:18px 20px}
/* Each account is an inset panel; its "Connected" badge and Connect button are Settings' own */
.acct{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 10px;border-radius:10px;background:var(--bg-alt);border:1px solid var(--line)}
.acct .ic-box{background:var(--surface-2)}
.acct-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.acct-t b{font-size:14px;font-weight:500}
.acct-t span{font-size:12px;color:var(--text-3)}
.acct > .badge,.acct > .c-btn{flex:0 0 auto}
.ov-acct-h{font-size:12px;color:var(--text-3);line-height:17px}
.ov-r3{align-items:stretch;min-height:440px}
.ov-act{flex:1 1 auto;display:flex;flex-direction:column;gap:16px}
.ov-chart{flex:1;min-height:260px;display:flex;flex-direction:column}
.ov-chart .bars{flex:1}
.ov-act .empty,.ov-mod .empty{flex:1}
.ov-mod{flex:0 0 380px;width:380px;display:flex;flex-direction:column;gap:14px}
.ov-ms{display:flex;flex-direction:column;justify-content:space-between;flex:1;gap:14px}
.ov-m{display:flex;flex-direction:column;gap:7px}
.ov-m-t{display:flex;align-items:center;gap:8px;font-size:12px}
.ov-m-t .ell{flex:1}
.ov-m-t .i{width:14px;height:14px}
.ov-steps .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px}
.step{display:flex;flex-direction:column;gap:10px;align-items:flex-start;padding:0 22px;border-left:1px solid var(--line)}
.step:first-child{padding-left:0;border-left:0}
.step:last-child{padding-right:0}
.step-h{display:flex;align-items:center;gap:10px}
.step-h b{font-size:14px;font-weight:500}
.step p{font-size:13px;color:var(--text-2);line-height:20px}
.step-n{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-family:var(--font-code);border:1px solid var(--line-strong);color:var(--text-2)}
.step-n.cur{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.step-n.ok{background:var(--ok-soft);border-color:transparent;color:var(--ok)}
.step-n .i{width:13px;height:13px}
.ov-code{font-size:12px;line-height:21px;padding:10px 14px;width:100%}

.nf{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px;padding:40px 16px 60px;background-image:radial-gradient(var(--dots) 1px,transparent 1px);background-size:22px 22px;border-radius:16px}
.nf-glyph{width:min(760px,100%);aspect-ratio:880/330}
.nf-glyph img{width:100%;height:100%;object-fit:contain}
.nf h1{font-size:36px;font-weight:500;letter-spacing:-1.2px;line-height:42px}
.nf p{font-size:14px;line-height:21px;color:var(--text-2);max-width:560px}
.nf-trace{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);font-size:12px;color:var(--text)}
.nf-trace .i{width:12px;height:12px;color:var(--text-3)}
.nf-acts{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:6px}

@media (max-width:1180px){
  .ov-acct,.ov-mod{flex-basis:320px;width:320px}
}
@media (max-width:1024px){
  .ov-r1,.ov-r3{flex-direction:column}
  .ov-acct,.ov-mod{width:auto;flex:1 1 auto}
  .ov-bal{flex-direction:row;align-items:center;flex-wrap:wrap}
  .ov-steps .steps{grid-template-columns:1fr;gap:18px}
  .step{padding:0;border-left:0}
}
@media (max-width:720px){
  .ov-bal{flex-direction:column;align-items:stretch;padding:16px;min-height:0}
  .ov-bal .art{display:none}
  .ov-bal-v{font-size:34px;line-height:40px;letter-spacing:-1.2px}
  /* A long rupiah balance or saved line breaks inside the card instead of running past its edge */
  .ov-bal-top{min-width:0}
  .ov-bal-v{overflow-wrap:anywhere}
  .ov-bal-row .saved-pill{max-width:100%;white-space:normal}
  .ov-bal-row .saved-pill b{white-space:nowrap}
  .ov-bal-act .c-btn.pri{flex:1}
  .ov-bal-act .c-btn.sec{display:none}
  .ov-acct{display:none}
  .ov-act .seg{display:none}
  .ov-chart{min-height:180px}
  .ov-r3{min-height:0}
  .nf h1{font-size:28px;line-height:34px;letter-spacing:-.9px}
}
