/* @migrated */
.side{ position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--bd); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; z-index: 20; }
.nv{ display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; margin-right: -4px; padding-right: 4px; }
.nv button{ display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid transparent; background: transparent; padding: 8px 12px; border-radius: 8px; color: var(--tx); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.nv button:hover{ background: var(--surface-hover); color: var(--tx-bold); }
.nv button.on{ background: hsl(var(--h) var(--abS) var(--abL)); color: var(--tx-bold); border-color: hsl(var(--h) 65% var(--aL)); font-weight: 600; }
.nv button .ic-wrap{ width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 14px; background: rgba(255, 255, 255, 0.05); }
.mp{ position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--bd); border-radius: 2px; overflow: hidden; }
.mp b{ display: block; height: 100%; background: hsl(var(--h) 70% 50%); border-radius: 2px; }
.side{ background:#fff; border-right:1px solid #e4e8f1; box-shadow:1px 0 8px rgba(18,26,46,.025); }
.nv button{ color:#53617b; border-radius:10px; min-height:40px; }
.nv button:hover{ background:#f6f8fc; color:#121a2e; }
.nv button.on{ background:#e9edff; color:#2948c7; border-color:#cbd5ff; }
.nv button .ic-wrap{ background:#f1f3f9; }
@media(max-width: 900px){
.side{ height: auto; position: static; border-right: none; border-bottom: 1px solid var(--bd); }
.nv{ flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
.nv button{ width: auto; white-space: nowrap; }
}
.nv .ic-wrap .ui-i{width:15px;height:15px}
.nv button.on .ic-wrap{background:#dbe3ff;color:#2948c7}

/* ===== Sidebar additions ===== */

/* --- Collapsible groups --- */
.nv .sg{display:flex;flex-direction:column;gap:2px;margin-bottom:6px}
.nv .sg[hidden]{display:none}
.sg-body{display:flex;flex-direction:column;gap:3px}
.sg.is-collapsed .sg-body{display:none}
.nv .sg-head{min-height:30px;padding:4px 8px;gap:6px;border:0;border-left:3px solid var(--sg,#cbd5ff);border-radius:6px;background:transparent;color:#75819a;font-size:12.5px;font-weight:700;letter-spacing:0;text-transform:none}
.nv .sg-head:hover{background:#f6f8fc;color:#121a2e}
.nv .sg.has-active .sg-head{color:#121a2e}
.sg-chev{display:grid;place-items:center}
.sg-chev svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.sg.is-collapsed .sg-chev svg{transform:rotate(-90deg)}
.sg-count{margin-left:auto;padding:1px 7px;border-radius:99px;background:#f1f3f9;font-size:10px;letter-spacing:0}

/* --- One font family everywhere in the sidebar --- */
.nv button,
.nv .sg-head,
.nv .sg-title,
.nv .sg-count{font-family:var(--font)}

/* --- Progress ring instead of a bar (full green ring at 100%, centre stays empty) --- */
.nv button .mp{display:none}
.pr{flex:0 0 auto;position:relative;width:18px;height:18px;border-radius:50%;background:conic-gradient(hsl(var(--h) 70% 50%) calc(var(--p) * 1%), #e4e8f1 0)}
.pr::after{content:"";position:absolute;inset:3px;border-radius:50%;background:#fff}
.nv button.on .pr::after{background:hsl(var(--h) var(--abS) var(--abL))}
.pr.full{background:var(--bull)}

/* --- Left sidebar open/close arrow --- */
.sb-toggle{position:absolute;top:50%;right:-22px;transform:translateY(-50%);z-index:30;width:22px;height:56px;padding:0;display:grid;place-items:center;border:1px solid var(--bd);border-left:0;border-radius:0 10px 10px 0;background:#fff;color:#66708a;cursor:pointer;box-shadow:0 2px 10px rgba(18,26,46,.08)}
.sb-toggle:hover{color:#3b5bdb;border-color:#b9c7ff}
.sb-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.app.sb-collapsed .sb-toggle svg{transform:rotate(180deg)}

/* --- Responsive --- */
@media(max-width:900px){
  .nv .sg{flex-direction:row;align-items:center;margin:0 6px 0 0}
  .sg-body{flex-direction:row}
  .nv .sg-head{width:auto}
  .sb-toggle{display:none}
}
@media(min-width:901px){
  .app.sb-collapsed .side{padding:0;border:0}
  .app.sb-collapsed .side>:not(.sb-toggle){display:none}
  .app.sb-collapsed{grid-template-columns:0 minmax(0,1fr)}
}
@media(min-width:1101px){
  .app.sb-collapsed{grid-template-columns:0 minmax(0,1fr) 340px}
  .app.sb-collapsed.rp-collapsed{grid-template-columns:0 minmax(0,1fr)}
}
/* ===== Sidebar spacing & grouping polish ===== */
.side{ padding:20px 14px 0; gap:14px; }
.nv{ gap:14px; padding:2px 6px 28px 2px; margin-right:-6px; scroll-padding-bottom:28px; }
.nv .sg{ margin-bottom:0; gap:6px; }
.nv .sg-head{ min-height:36px; padding:6px 10px 6px 8px; gap:8px; border-left-width:3px; border-radius:10px; background:#f7f8fc; color:#4b5873; font-size:13px; font-weight:700; }
.nv .sg-head:hover{ background:#eff2fa; color:#121a2e; }
.nv .sg.has-active .sg-head{ background:#f1f4ff; color:#2948c7; }
.sg-count{ min-width:22px; text-align:center; padding:2px 8px; background:#e9edf6; color:#53617b; font-size:11px; font-weight:700; }
.sg-body{ gap:4px; padding:2px 0 2px 6px; }
.nv .sg-body button{ min-height:44px; padding:8px 12px 8px 10px; gap:12px; font-size:13.5px; }
.nv button .ic-wrap{ width:28px; height:28px; border-radius:8px; }
.nv .ic-wrap .ui-i{ width:16px; height:16px; }
.pr{ width:20px; height:20px; }
.pr::after{ inset:3.5px; }
/* soft fade so the list never looks cut off at the bottom */
.nv{ -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 22px),transparent); mask-image:linear-gradient(to bottom,#000 calc(100% - 22px),transparent); }
@media(max-width:900px){ .nv{ -webkit-mask-image:none; mask-image:none; padding:2px 2px 6px; } .nv .sg-body button{ min-height:40px; } }

/* ===== Sidebar: smaller, calmer type ===== */
.nv{ gap:12px; }
.nv .sg-head{ min-height:32px; padding:5px 9px 5px 7px; gap:7px; font-size:12px; }
.sg-chev svg{ width:13px; height:13px; }
.sg-count{ min-width:20px; padding:1px 7px; font-size:10.5px; }
.sg-body{ gap:2px; padding:2px 0 2px 6px; }
.nv .sg-body button{ min-height:38px; padding:6px 10px 6px 8px; gap:10px; font-size:12.5px; font-weight:500; }
.nv .sg-body button.on{ font-weight:600; }
.nv button .ic-wrap{ width:26px; height:26px; border-radius:7px; }
.nv .ic-wrap .ui-i{ width:15px; height:15px; }
.pr{ width:18px; height:18px; }
.pr::after{ inset:3px; }

/* ===== Progress indicator: thin ring while in progress, soft check badge when complete ===== */
.pr{width:20px;height:20px}
.pr::after{inset:3.5px}
.pr.full{background:linear-gradient(145deg,#e9f9f1,#d2f1e2);box-shadow:inset 0 0 0 1px #a9e0c6,0 1px 3px rgba(15,157,99,.18);display:grid;place-items:center}
.pr.full::after{display:none}
.pr.full svg{position:relative;width:12px;height:12px;fill:none;stroke:#0b8a56;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.nv button.on .pr.full{background:linear-gradient(145deg,#e9f9f1,#d2f1e2)}
