/* SingleDebt internal CRM — brand: deep navy + trust green */
:root{
  --sd-navy:#0b2a5b; --sd-navy-2:#123b7a; --sd-navy-dark:#071d41;
  --sd-green:#16a34a; --sd-green-dark:#12853c; --sd-green-soft:#e8f6ee;
  --sd-bg:#f4f6fa; --sd-card:#fff; --sd-border:#e3e8f0; --sd-text:#1d2a3f; --sd-muted:#6b7a90;
  --sd-amber:#f59e0b; --sd-red:#dc2626; --sd-blue:#2563eb;
  --sidebar-w:260px; --topbar-h:64px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.app-body{background:var(--sd-bg);color:var(--sd-text);font-family:'Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;font-size:15px;overflow-x:hidden}
a{color:var(--sd-navy-2)}

/* ---------- Sidebar ---------- */
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-w);background:linear-gradient(180deg,var(--sd-navy) 0%,var(--sd-navy-dark) 100%);color:#cfd9ec;display:flex;flex-direction:column;z-index:1040;transition:transform .25s ease}
.sidebar-brand{height:var(--topbar-h);display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.brand-link{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff;font-size:1.25rem;font-weight:500}
.brand-link b{color:#4ade80;font-weight:700}
.brand-mark{width:34px;height:34px;border-radius:9px;background:var(--sd-green);color:#fff;display:grid;place-items:center;font-weight:700}
.sidebar-close{background:none;border:0;color:#fff;font-size:1.2rem;min-width:44px;min-height:44px}
.sidebar-nav{flex:1;overflow-y:auto;padding:12px 10px}
.nav-section{margin:18px 10px 6px;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:#7e92b8}
.nav-link-sd{display:flex;align-items:center;gap:12px;padding:10px 12px;margin-bottom:2px;border-radius:8px;color:#cfd9ec;text-decoration:none;font-size:.93rem;min-height:42px}
.nav-link-sd i{font-size:1.1rem;width:22px;text-align:center}
.nav-link-sd:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-link-sd.active{background:var(--sd-green);color:#fff;font-weight:600}
.sidebar-foot{padding:12px 18px;border-top:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-between;color:#7e92b8}
.sidebar-backdrop{display:none}

/* ---------- Main ---------- */
.app-main{margin-left:var(--sidebar-w);min-height:100vh;display:flex;flex-direction:column;min-width:0}
.topbar{position:sticky;top:0;z-index:1030;height:var(--topbar-h);background:#fff;border-bottom:1px solid var(--sd-border);display:flex;align-items:center;gap:14px;padding:0 20px}
.topbar-title h1{font-size:1.15rem;font-weight:600;margin:0;color:var(--sd-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-search{flex:1;max-width:420px;margin-left:16px;position:relative;align-items:center}
.topbar-search i{position:absolute;left:12px;color:var(--sd-muted)}
.topbar-search input{padding-left:34px;border-radius:999px;background:var(--sd-bg);border-color:transparent;min-height:40px}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.btn-icon{background:none;border:0;color:var(--sd-navy);font-size:1.35rem;min-width:44px;min-height:44px;display:inline-grid;place-items:center;border-radius:10px;text-decoration:none}
.btn-icon:hover{background:var(--sd-bg)}
.notif-dot{position:absolute;top:4px;right:2px;background:var(--sd-red);color:#fff;font-size:.65rem;border-radius:999px;padding:1px 5px;font-weight:700}
.user-chip{display:flex;align-items:center;gap:10px;background:none;border:1px solid var(--sd-border);border-radius:999px;padding:4px 12px 4px 4px;min-height:44px;color:var(--sd-text)}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--sd-navy);color:#fff;display:grid;place-items:center;font-size:.8rem;font-weight:700}
.user-chip-text{text-align:left;line-height:1.15}
.user-chip-text strong{display:block;font-size:.85rem}
.user-chip-text small{color:var(--sd-muted);font-size:.72rem}
.content{padding:22px;flex:1;min-width:0}
.app-footer{padding:14px 22px;border-top:1px solid var(--sd-border);background:#fff;display:flex;justify-content:space-between;gap:10px;font-size:.8rem;color:var(--sd-muted);flex-wrap:wrap}

.badge-demo{background:#fff3cd;color:#8a5a00;border:1px solid #ffe08a;border-radius:6px;padding:3px 9px;font-size:.7rem;font-weight:700;letter-spacing:.06em}
.badge-phase{display:inline-block;margin-top:10px;background:var(--sd-green-soft);color:var(--sd-green-dark);border-radius:999px;padding:6px 14px;font-size:.85rem;font-weight:600}

/* ---------- Cards ---------- */
.card-sd{background:var(--sd-card);border:1px solid var(--sd-border);border-radius:14px;padding:18px;box-shadow:0 1px 2px rgba(11,42,91,.04);min-width:0}
.card-sd h5.card-title-sd{font-size:.95rem;font-weight:600;color:var(--sd-navy);margin:0 0 14px;display:flex;align-items:center;gap:8px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin-bottom:20px}
.stat-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--sd-border);border-radius:14px;padding:16px;text-decoration:none;color:inherit;transition:box-shadow .15s,transform .15s}
.stat-card:hover{box-shadow:0 6px 18px rgba(11,42,91,.1);transform:translateY(-1px);color:inherit}
.stat-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:1.3rem;flex:none}
.ic-navy{background:#e6ecf7;color:var(--sd-navy)} .ic-green{background:var(--sd-green-soft);color:var(--sd-green-dark)}
.ic-amber{background:#fef3d6;color:#a16207} .ic-red{background:#fde8e8;color:var(--sd-red)} .ic-blue{background:#e3edff;color:var(--sd-blue)}
.stat-body{min-width:0}
.stat-value{font-size:1.5rem;font-weight:700;color:var(--sd-navy);line-height:1.1;word-break:break-word}
.stat-label{font-size:.8rem;color:var(--sd-muted);margin-top:2px}
.chart-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px}

/* ---------- Bars ---------- */
.bars{display:flex;flex-direction:column;gap:9px}
.bar-row{display:grid;grid-template-columns:minmax(80px,38%) 1fr 48px;align-items:center;gap:10px;font-size:.85rem}
.bar-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--sd-text)}
.bar-track{background:#edf1f7;border-radius:999px;height:10px;overflow:hidden}
.bar-fill{height:100%;border-radius:999px;background:var(--sd-navy)}
.bar-green{background:var(--sd-green)} .bar-amber{background:var(--sd-amber)} .bar-blue{background:var(--sd-blue)}
.bar-val{text-align:right;font-weight:600;color:var(--sd-navy)}
.empty-state{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 10px;color:var(--sd-muted);text-align:center}
.empty-state i{font-size:1.8rem;opacity:.6}
.empty-state.big{padding:70px 10px} .empty-state.big i{font-size:3rem;color:var(--sd-navy)}

/* ---------- Buttons / forms ---------- */
.btn-sd{background:var(--sd-green);border-color:var(--sd-green);color:#fff;min-height:44px;font-weight:600;border-radius:10px;padding-inline:20px}
.btn-sd:hover,.btn-sd:focus{background:var(--sd-green-dark);border-color:var(--sd-green-dark);color:#fff}
.btn-sd-outline{border:1px solid var(--sd-navy);color:var(--sd-navy);background:#fff;min-height:44px;border-radius:10px;display:inline-flex;align-items:center;gap:6px;padding:0 18px;text-decoration:none;font-weight:600}
.btn-sd-outline:hover{background:var(--sd-navy);color:#fff}
.form-control,.form-select{min-height:44px;border-radius:10px;font-size:16px}
.form-control:focus,.form-select:focus{border-color:var(--sd-green);box-shadow:0 0 0 .2rem rgba(22,163,74,.15)}

/* ---------- Tables ---------- */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-sd{margin:0;font-size:.9rem}
.table-sd thead th{background:#f3f6fb;color:var(--sd-navy);font-weight:600;white-space:nowrap;border-bottom:1px solid var(--sd-border)}
.table-sd td,.table-sd th{vertical-align:middle;padding:.7rem .8rem}
.pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.75rem;font-weight:600;background:#e6ecf7;color:var(--sd-navy)}
.pill-green{background:var(--sd-green-soft);color:var(--sd-green-dark)} .pill-red{background:#fde8e8;color:var(--sd-red)} .pill-amber{background:#fef3d6;color:#a16207}

/* ---------- Placeholder ---------- */
.placeholder-card{text-align:center;padding:56px 18px;max-width:640px;margin:20px auto}
.placeholder-icon{width:72px;height:72px;border-radius:20px;background:#e6ecf7;color:var(--sd-navy);display:grid;place-items:center;font-size:2rem;margin:0 auto 14px}

/* ---------- Login ---------- */
.login-body{flex-direction:column;min-height:100vh;background:linear-gradient(135deg,var(--sd-navy) 0%,var(--sd-navy-2) 55%,#1a5aa8 100%);display:flex;align-items:center;justify-content:center;padding:20px;font-family:'Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif}
.login-wrap{width:100%;max-width:440px}
.login-brand{text-align:center;color:#fff;margin-bottom:18px}
.login-brand .brand-mark{width:54px;height:54px;font-size:1.6rem;margin:0 auto 10px;border-radius:14px}
.login-brand h1{font-size:1.7rem;font-weight:500;margin:0}.login-brand h1 b{color:#4ade80}
.login-brand p{margin:4px 0 0;color:#c4d3ee;font-size:.9rem}
.login-card{background:#fff;border-radius:16px;padding:26px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.demo-box{margin-top:16px;background:#fffbea;border:1px dashed #f0cf65;border-radius:12px;padding:12px 14px;font-size:.82rem;color:#6b5200}
.demo-box table{width:100%;font-size:.78rem}.demo-box td{padding:2px 0;word-break:break-all}
.demo-box button.fill{background:none;border:0;color:var(--sd-navy-2);text-decoration:underline;padding:0;cursor:pointer;font-size:.78rem;text-align:left}

/* ---------- Responsive ---------- */
@media (max-width:991.98px){
  .app-main{margin-left:0}
  .sidebar{transform:translateX(-100%);width:min(82vw,300px)}
  body.sidebar-open .sidebar{transform:none;box-shadow:0 0 40px rgba(0,0,0,.4)}
  body.sidebar-open .sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(7,29,65,.55);z-index:1035}
  body.sidebar-open{overflow:hidden}
  .topbar{padding:0 10px;gap:6px}
  .content{padding:14px}
}
@media (max-width:575.98px){
  .stat-grid{grid-template-columns:1fr 1fr;gap:10px}
  .stat-card{padding:12px;gap:10px;flex-direction:column;align-items:flex-start}
  .stat-value{font-size:1.25rem}
  .bar-row{grid-template-columns:minmax(70px,34%) 1fr 40px}
  .topbar-title h1{font-size:1rem}
  .btn,.btn-sd,.btn-sd-outline{min-height:46px}
}
@media (max-width:359px){ .stat-grid{grid-template-columns:1fr} }
@media print{ .sidebar,.topbar,.app-footer{display:none!important} .app-main{margin:0} }

/* ---------- Phase 2: lists, details, timeline ---------- */
.page-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.filter-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end;margin-bottom:14px}
.filter-bar .form-label{font-size:.75rem;color:var(--sd-muted);margin-bottom:2px}
.btn-sm-touch{min-height:38px;padding:4px 12px;border-radius:8px}
.table-sd td a.row-link{font-weight:600;text-decoration:none}
.record-head{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start;justify-content:space-between}
.record-head h2{font-size:1.35rem;margin:0;color:var(--sd-navy)}
.record-head .meta{color:var(--sd-muted);font-size:.85rem;display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:4px}
.tabs-scroll{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;border-bottom:1px solid var(--sd-border);margin:16px 0;gap:2px;scrollbar-width:thin}
.tabs-scroll a{white-space:nowrap;padding:10px 14px;text-decoration:none;color:var(--sd-muted);border-bottom:3px solid transparent;font-weight:600;font-size:.9rem;min-height:44px;display:flex;align-items:center}
.tabs-scroll a:hover{color:var(--sd-navy)}
.tabs-scroll a.active{color:var(--sd-navy);border-bottom-color:var(--sd-green)}
.tabs-scroll a .soon{font-size:.6rem;background:#eef1f6;color:var(--sd-muted);border-radius:6px;padding:1px 5px;margin-left:6px}
.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px}
dl.kv{display:grid;grid-template-columns:minmax(110px,40%) 1fr;gap:8px 12px;margin:0;font-size:.9rem}
dl.kv dt{color:var(--sd-muted);font-weight:500}
dl.kv dd{margin:0;word-break:break-word}
.timeline{list-style:none;margin:0;padding:0 0 0 6px;position:relative}
.timeline:before{content:"";position:absolute;left:21px;top:6px;bottom:6px;width:2px;background:var(--sd-border)}
.timeline li{position:relative;display:flex;gap:14px;padding:0 0 18px}
.tl-icon{width:32px;height:32px;border-radius:50%;background:#e6ecf7;color:var(--sd-navy);display:grid;place-items:center;flex:none;z-index:1;font-size:.9rem}
.tl-title{font-weight:600;color:var(--sd-navy);font-size:.92rem}
.tl-desc{font-size:.87rem;margin-top:1px;word-break:break-word}
.tl-meta{font-size:.75rem;color:var(--sd-muted);margin-top:2px}
.note-item{border-left:3px solid var(--sd-green);background:#f8faf9;border-radius:0 8px 8px 0;padding:10px 12px;margin-bottom:10px;font-size:.9rem;white-space:pre-wrap;word-break:break-word}
.note-item small{display:block;color:var(--sd-muted);margin-top:4px;white-space:normal}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.form-grid .full{grid-column:1/-1}
.calc-box{background:var(--sd-green-soft);border:1px solid #b9e3c8;border-radius:12px;padding:14px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.calc-box .big{font-size:1.5rem;font-weight:700;color:var(--sd-green-dark)}
.req:after{content:" *";color:var(--sd-red)}
.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:6px 12px}
@media (max-width:767.98px){
  .form-grid{grid-template-columns:1fr}
  dl.kv{grid-template-columns:1fr;gap:0}
  dl.kv dt{margin-top:8px;font-size:.78rem}
  /* stacked card tables on phones */
  .table-stack thead{display:none}
  .table-stack,.table-stack tbody,.table-stack tr,.table-stack td{display:block;width:100%}
  .table-stack tr{border:1px solid var(--sd-border);border-radius:12px;margin-bottom:10px;padding:6px 4px;background:#fff}
  .table-stack td{border:0;padding:5px 12px;display:flex;justify-content:space-between;gap:12px;text-align:right}
  .table-stack td:before{content:attr(data-label);font-weight:600;color:var(--sd-muted);text-align:left;flex:none}
  .table-stack td.actions{justify-content:flex-end}
  .table-stack td.actions:before{display:none}
}

/* ---------- Phase 3 ---------- */
pre.agreement-doc{white-space:pre-wrap;word-break:break-word;font-family:Georgia,'Times New Roman',serif;font-size:.95rem;line-height:1.6;background:#fffefa;border:1px solid var(--sd-border);border-radius:10px;padding:20px;margin:0;max-height:560px;overflow:auto}
.demo-panel{border:1px dashed #f0cf65;background:#fffbea;border-radius:14px;padding:14px 16px;margin-bottom:20px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.steps-list{list-style:none;margin:0;padding:0}
.steps-list li{display:flex;gap:10px;padding:8px 0;border-bottom:1px solid var(--sd-border);align-items:flex-start;font-size:.92rem}
.steps-list .ok{color:var(--sd-green);font-size:1.1rem}.steps-list .bad{color:var(--sd-red);font-size:1.1rem}

/* ---------- Phase 5 ---------- */
.stars{color:#f59e0b;letter-spacing:2px;white-space:nowrap}
.notif-row{display:flex;gap:14px;align-items:flex-start;padding:12px 8px;border-bottom:1px solid var(--sd-border)}
.notif-row.unread{background:#f3faf6;border-left:3px solid var(--sd-green)}
.search-row{padding:9px 0;border-bottom:1px solid var(--sd-border)}
.stages{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}
.stage{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;position:relative;padding-top:2px}
.stage:not(:last-child):after{content:"";position:absolute;top:17px;left:calc(50% + 18px);right:calc(-50% + 18px);height:2px;background:var(--sd-border)}
.stage-done:not(:last-child):after{background:var(--sd-green)}
.stage-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#eef1f6;color:var(--sd-muted);border:2px solid var(--sd-border);z-index:1}
.stage-done .stage-dot{background:var(--sd-green);border-color:var(--sd-green);color:#fff}
.stage-progress .stage-dot{background:#fff7e0;border-color:var(--sd-amber);color:#a16207}
.stage-name{font-size:.62rem;font-weight:700;letter-spacing:.03em;color:var(--sd-navy);line-height:1.15}
.stage-state{font-size:.65rem;color:var(--sd-muted)}
.stage-done .stage-state{color:var(--sd-green-dark)}.stage-progress .stage-state{color:#a16207}
.mini-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}
.mini-stat{background:#f6f8fc;border:1px solid var(--sd-border);border-radius:12px;padding:10px;text-align:center;text-decoration:none;color:inherit}
.mini-stat strong{display:block;font-size:1.25rem;color:var(--sd-navy)}.mini-stat span{font-size:.72rem;color:var(--sd-muted)}
a.mini-stat:hover{background:#eef3fb;color:inherit}
@media (max-width:991.98px){
  .stages{display:flex;overflow-x:auto;gap:0;padding-bottom:6px;-webkit-overflow-scrolling:touch}
  .stage{flex:0 0 92px}
}
@media (max-width:575.98px){.notif-row{flex-wrap:wrap}}

/* ---------- Admin Help & Docs ---------- */
.walk-frame{width:100%;height:calc(100vh - 190px);min-height:620px;border:1px solid var(--sd-border);border-radius:14px;background:#fff}
.doc-body{max-width:900px;font-size:.97rem;line-height:1.65}
.doc-body h1{font-size:1.7rem;color:var(--sd-navy);margin-bottom:.6rem}
.doc-body h2{font-size:1.3rem;color:var(--sd-navy);margin-top:2rem;padding-bottom:.3rem;border-bottom:1px solid var(--sd-border)}
.doc-body h3{font-size:1.08rem;margin-top:1.4rem;color:var(--sd-navy)}
.doc-body code{background:var(--sd-bg);border-radius:5px;padding:1px 6px;font-size:.88em}
.doc-body table{font-size:.9rem}
.doc-body ul,.doc-body ol{padding-left:1.3rem}
.doc-body li{margin-bottom:.3rem}

/* ---------- Diem Insights ---------- */
.ins-hero{border-left:4px solid var(--sd-green)}
.ins-kicker{font-family:ui-monospace,Consolas,monospace;font-size:.7rem;letter-spacing:.12em;color:var(--sd-green-dark);font-weight:700}
.brief-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.brief-grid h6{font-weight:700;margin-bottom:.5rem}
.brief-grid ul,.brief-grid ol{padding-left:1.1rem;margin:0;font-size:.92rem}
.brief-grid li{margin-bottom:.4rem}
mark{background:#fde68a;color:inherit;padding:0 2px;border-radius:3px}

/* ---- Journey stepper ---- */
.jr{padding:1rem 1.1rem}
.jr-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.9rem}
.jr-title{font-weight:700;color:var(--sd-navy)}
.jr-count{font-size:.8rem;color:var(--sd-muted)}
.jr-steps{list-style:none;margin:0;padding:0;display:flex}
.jr-step{flex:1 1 0;min-width:0;position:relative}
.jr-step a{display:flex;flex-direction:column;gap:.5rem;text-decoration:none;color:inherit;padding-right:.5rem}
.jr-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:.85rem;background:#eef1f6;color:var(--sd-muted);border:2px solid var(--sd-border);position:relative;z-index:1}
.jr-step:not(:last-child):after{content:"";position:absolute;top:16px;left:40px;right:6px;height:3px;border-radius:2px;background:var(--sd-border)}
.jr-step.is-done:not(:last-child):after{background:var(--sd-green)}
.jr-step.is-current:not(:last-child):after{background:linear-gradient(90deg,#1d4ed8 35%,var(--sd-border) 35%)}
.jr-txt{display:flex;flex-direction:column;line-height:1.2}
.jr-txt small{font-size:.62rem;letter-spacing:.08em;color:var(--sd-muted);font-weight:600}
.jr-txt b{font-size:.82rem;color:var(--sd-navy);font-weight:600}
.jr-txt em{font-style:normal;font-size:.7rem;color:var(--sd-muted)}
.jr-step.is-done .jr-dot{background:var(--sd-green);border-color:var(--sd-green);color:#fff}
.jr-step.is-done .jr-txt em{color:var(--sd-green-dark)}
.jr-step.is-current .jr-dot{background:#1d4ed8;border-color:#1d4ed8;color:#fff;box-shadow:0 0 0 4px #dbe7ff}
.jr-step.is-current .jr-txt em{color:#1d4ed8;font-weight:600}
.jr-step.is-progress .jr-dot{background:#fff7e0;border-color:var(--sd-amber);color:#a16207}
.jr-step.is-progress .jr-txt em{color:#a16207}
.jr-step a:hover .jr-dot{border-color:#1d4ed8}
.jr-next{margin-top:1rem;padding:.9rem 1rem;border-radius:10px;background:#f1f6ff;border:1px solid #dbe7ff;display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
.jr-next>div{display:flex;flex-direction:column;gap:.15rem;min-width:220px;flex:1}
.jr-next small{font-size:.65rem;letter-spacing:.08em;color:#1d4ed8;font-weight:700}
.jr-next b{color:var(--sd-navy);font-size:1rem}
.jr-next span{font-size:.85rem;color:#475569}
.jr-next .jr-how{color:var(--sd-navy)}
.jr-next.is-finished{background:#ecfdf3;border-color:#bbf7d0}
@media (max-width:767.98px){
  .jr-steps{flex-direction:column;gap:0}
  .jr-step a{flex-direction:row;align-items:center;gap:.75rem;padding:.4rem 0}
  .jr-step:not(:last-child):after{top:38px;bottom:-6px;left:16px;right:auto;width:3px;height:auto}
  .jr-step.is-current:not(:last-child):after{background:var(--sd-border)}
  .jr-txt{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:.4rem}
  .jr-txt small{display:none}
  .jr-next .btn{width:100%}
}
/* Sidebar phases */
.nav-phase{display:flex;align-items:center;gap:.5rem;margin:.9rem .9rem .3rem;font-size:.66rem;letter-spacing:.09em;font-weight:700;text-transform:uppercase;color:rgba(255,255,255,.5)}
.nav-phase b{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);color:#fff;font-size:.65rem;letter-spacing:0}
.nav-start{margin:.6rem .75rem .2rem}
.nav-start a{display:flex;align-items:center;gap:.6rem;padding:.6rem .8rem;border-radius:10px;background:#1d4ed8;color:#fff;text-decoration:none;font-weight:600;font-size:.9rem}
.nav-start a.active,.nav-start a:hover{background:#2563eb;color:#fff}
/* Start-here guide */
.gd-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem}
.gd-card{display:flex;flex-direction:column;gap:.35rem;padding:.9rem;border:1px solid var(--sd-border);border-radius:12px;background:#fff;text-decoration:none;color:inherit;position:relative}
.gd-card:hover{border-color:#1d4ed8;box-shadow:0 4px 14px rgba(29,78,216,.1)}
.gd-card .n{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--sd-green);color:#fff;font-weight:700;font-size:.8rem}
.gd-card b{color:var(--sd-navy);font-size:.92rem}
.gd-card p{margin:0;font-size:.78rem;color:#475569}
.gd-card .who{font-size:.68rem;color:var(--sd-muted)}
.gd-card .cnt{margin-top:auto;font-size:.8rem;font-weight:700;color:#1d4ed8}
.gd-card .cnt.zero{color:var(--sd-muted);font-weight:500}
@media (max-width:991.98px){.gd-flow{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Powered-by credit */
.sd-powered{text-align:center;font-size:.75rem;color:var(--sd-muted)}
.sd-powered a{color:inherit;font-weight:600;text-decoration:none;border-bottom:1px dotted currentColor}
.sd-powered a:hover{color:var(--sd-green-dark)}
.login-body .sd-powered{padding:6px 0 22px;color:#c4d3ee}
.login-body .sd-powered a:hover{color:#fff}
.app-footer .sd-powered{text-align:right}
