/* Bismillah - static/ui/tools/growth.css — the two "career growth" tools
   (ui/tools/skill_coach.html, ui/tools/networking.html). Builds on kit.css
   (.xt-*) and expertini-ui.css tokens (--x-*). Prefix: .gr- */

.gr .x-ico{width:15px;height:15px;flex:none}
.xt [data-gr-ad]{margin:28px 0 0}
.gr .x-btn{transition-property:transform,box-shadow,opacity}   /* the label snaps back after a busy spinner */
.gr-grow{flex:1;min-width:200px}
.gr-toolbar{margin-bottom:14px}
.gr-col{min-width:0}
.gr-mt{margin-top:var(--xt-gap)}
.gr-mt-sm{margin-top:14px}
.gr-center{text-align:center;margin:0}
.gr-none{margin:6px 0 0;font-size:13px;line-height:1.55}
.gr-label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--x-text-2)}
.gr-select{height:40px;padding:0 34px 0 12px;border-radius:10px;border:1px solid var(--x-border);background:#fff;font:500 13px var(--x-f-body);color:var(--x-text-2);max-width:220px}
.gr-calc{display:flex;align-items:center;gap:6px;margin:-4px 0 14px}
.gr-calc .x-ico{width:14px;height:14px;color:var(--x-primary)}

/* empty states */
.gr-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:36px 20px;background:rgba(255,255,255,.55)}
.gr-empty b{margin:0}
.gr-empty>span:not(.x-itile){max-width:430px;line-height:1.6}
.gr-empty__ico{width:44px;height:44px;margin-bottom:4px}
.gr-empty__ico .x-ico{width:20px;height:20px;color:#fff}
.gr-empty .x-btn{margin-top:6px}
.gr-skel{display:flex;flex-direction:column;gap:10px}
.gr-skel .xt-skel{padding:18px;border-radius:14px;background:#fff;border:1px solid var(--x-border)}

/* status pill */
.gr-st{display:inline-flex;align-items:center;padding:2px 9px;border-radius:99px;font-size:11.5px;font-weight:600;white-space:nowrap;line-height:1.6}
.gr-st--planned{background:#f1f5f9;color:#475569}
.gr-st--progress{background:rgba(37,99,235,.1);color:#1d4ed8}
.gr-st--done{background:#dcfce7;color:#166534}

/* meta bits */
.gr-meta{align-items:center}
.gr-meta__b{display:inline-flex;align-items:center;gap:5px}
.gr-meta__b .x-ico{width:13px;height:13px;color:#94a3b8}
.gr-meta .is-late{color:#b91c1c;font-weight:600}
.gr-meta .is-late .x-ico{color:#dc2626}
.gr-meta .is-today{color:#b45309;font-weight:600}

/* level dots */
.gr-dots{display:inline-flex;gap:3px;margin-right:2px}
.gr-dots i{width:8px;height:8px;border-radius:50%;background:#e2e8f0}
.gr-dots i.is-on{background:var(--x-primary)}
.gr-dots i.is-target{background:#fff;box-shadow:inset 0 0 0 1.5px var(--x-primary)}

/* skill card */
.gr-skill{border-left:3px solid #cbd5e1}
.gr-skill--progress{border-left-color:var(--x-primary)}
.gr-skill--done{border-left-color:#16a34a}
.gr-skill__top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.gr-skill__top .xt-item__t{margin:0}
.gr-skill__side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.gr-quick{gap:5px}
.gr-quick .x-ico{width:13px;height:13px}
.gr-prog{display:flex;align-items:center;gap:10px;margin-top:10px}
.gr-prog .xt-bar{flex:1;max-width:320px;height:6px}
.gr-prog__t{font-size:12px;color:var(--x-subtext);white-space:nowrap}
.gr-hint{margin:8px 0 0;font-size:12.5px;color:var(--x-subtext)}
.gr-hint .xt-link{font-size:12.5px}
.gr-viewplan{display:inline-block;margin-top:8px;font-size:12.5px}
.gr-msd{margin-top:8px}
.gr-msd summary{cursor:pointer;font-size:12.5px;font-weight:600;color:var(--x-primary);list-style:none;display:inline-flex;align-items:center;gap:4px}
.gr-msd summary::-webkit-details-marker{display:none}
.gr-msd summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:-3px 0 0 3px;transition:transform .15s}
.gr-msd[open] summary::after{transform:rotate(225deg);margin-top:3px}
.gr-checks{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.gr-checks label{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.45;color:var(--x-text-2);cursor:pointer;padding:3px 0}
.gr-checks input{width:16px;height:16px;margin:1px 0 0;flex:none;accent-color:var(--x-primary)}
.gr-checks .is-done span{color:var(--x-subtext);text-decoration:line-through}

/* AI panel + level picker */
.gr-aipanel .xt-form{gap:12px}
.gr-levels{border:0;margin:0;padding:0;min-width:0}
.gr-levels legend{padding:0;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--x-text-2)}
.gr-levels__row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.gr-level{position:relative;cursor:pointer}
.gr-level input{position:absolute;opacity:0;width:1px;height:1px}
.gr-level span{display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 2px;border-radius:10px;border:1px solid var(--x-border);background:#fff;transition:.15s}
.gr-level b{font:700 15px/1.1 var(--x-f-disp);color:var(--x-text)}
.gr-level small{font-size:10.5px;color:var(--x-subtext);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.gr-level:hover span{border-color:rgba(37,99,235,.4)}
.gr-level input:checked+span{border-color:var(--x-primary);background:rgba(37,99,235,.08);box-shadow:var(--x-ring)}
.gr-level input:checked+span b{color:var(--x-primary)}
.gr-level input:focus-visible+span{outline:2px solid var(--x-primary);outline-offset:2px}

/* AI plan */
.gr-plan{margin-bottom:var(--xt-gap)}
.gr-plan,.gr-aipanel,.gr [data-nw-anchor]{scroll-margin-top:calc(var(--x-topbar-h,64px) + 16px)}
.gr-plan__top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.gr-plan__top .xt-ai__h{margin:0}
.gr-plan__grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:22px}
.gr-weeks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0;position:relative}
.gr-week{display:flex;gap:14px;position:relative;padding-bottom:16px}
.gr-week:not(:last-child)::before{content:'';position:absolute;left:31px;top:28px;bottom:0;width:2px;background:rgba(124,58,237,.18)}
.gr-week__n{flex:none;width:64px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:99px;background:#fff;border:1px solid rgba(124,58,237,.3);font-size:12px;font-weight:700;color:#6d28d9;position:relative}
.gr-week__b{min-width:0;padding-top:4px}
.gr-week__b b{display:block;font:600 14px/1.35 var(--x-f-disp);color:var(--x-text);margin-bottom:4px}
.gr-week__b ul{margin:0;padding-left:18px}
.gr-week__b li{font-size:13px;line-height:1.55;color:var(--x-text-2);margin-bottom:2px}
.gr-plan__side{display:flex;flex-direction:column;gap:14px;min-width:0}
.gr-plan__sec{padding:14px 16px;border-radius:12px;background:rgba(255,255,255,.75);border:1px solid rgba(124,58,237,.12)}
.gr-plan__sec h4{margin:0 0 8px;font:600 13px/1.3 var(--x-f-disp)!important;color:var(--x-text)!important;text-transform:uppercase;letter-spacing:.04em}
.gr-plan__sec p{margin:0;font-size:13px;line-height:1.6;color:var(--x-text-2)}
.gr-ticks,.gr-res{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.gr-ticks li{display:flex;gap:8px;font-size:13px;line-height:1.45;color:var(--x-text-2)}
.gr-ticks .x-ico{width:14px;height:14px;margin-top:2px;color:#7c3aed}
.gr-res li{font-size:13px;line-height:1.45;color:var(--x-text-2)}
.gr-res b{display:block;font-size:11.5px;font-weight:600;color:#6d28d9;text-transform:uppercase;letter-spacing:.03em}

/* milestone editor (dialog) */
.gr-ms__list{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-direction:column;gap:6px;max-height:230px;overflow-y:auto}
.gr-ms__list li{display:flex;align-items:center;gap:8px;padding:7px 8px 7px 12px;border-radius:10px;background:#f8fafc;border:1px solid var(--x-border)}
.gr-ms__list label{flex:1;display:flex;align-items:flex-start;gap:9px;font-size:13.5px;line-height:1.4;cursor:pointer;min-width:0;overflow-wrap:anywhere}
.gr-ms__list input{width:16px;height:16px;margin:1px 0 0;flex:none;accent-color:var(--x-primary)}
.gr-ms__list li.is-done label span{text-decoration:line-through;color:var(--x-subtext)}
.gr-ms__list .gr-ms__none{display:block;background:none;border-style:dashed;font-size:12.5px;color:var(--x-subtext);line-height:1.5}
.gr-ms__add{display:flex;gap:8px}
.gr-ms__add input{flex:1;min-width:0}

/* journal */
.gr-log{align-items:flex-start}
.gr-date{flex:none;width:48px;padding:6px 0;border-radius:10px;text-align:center;background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(6,182,212,.08));border:1px solid rgba(37,99,235,.14)}
.gr-date b{display:block;font:700 17px/1.1 var(--x-f-disp);color:var(--x-text)}
.gr-date span{display:block;font-size:11px;font-weight:600;color:var(--x-primary);text-transform:uppercase}
.gr-log .xt-item__p{margin-top:5px}

/* progress */
.gr-mini{gap:8px;margin-top:14px}
.gr-due{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:#fff;border:1px solid var(--x-border);font-size:13px}
.gr-due b{font-weight:600;color:var(--x-text);overflow-wrap:anywhere}
.gr-due span{color:var(--x-subtext);white-space:nowrap;font-size:12.5px}
.gr-due.is-soon span{color:#b45309;font-weight:600}
.gr-due.is-late{border-color:#fecaca;background:#fef2f2}
.gr-due.is-late span{color:#b91c1c;font-weight:600}
.gr-srow .xt-bar__top{align-items:center}
.gr-srow .xt-bar__top b{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.gr-srow__r{display:inline-flex;align-items:center;gap:8px;color:var(--x-subtext);font-size:12.5px;white-space:nowrap}

/* weekly hours chart: one series, one hue */
.gr-chart{margin-top:14px}
.gr-chart__plot{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;align-items:end;height:150px;padding:0 2px;
  background:linear-gradient(#eef2f7,#eef2f7) 0 100%/100% 1px no-repeat}
.gr-chart__col{position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.gr-chart__col i{display:block;width:min(28px,100%);border-radius:4px 4px 0 0;background:var(--x-primary);opacity:.55;transition:opacity .15s}
.gr-chart__col.is-now i{opacity:1}
.gr-chart__col:hover i{opacity:1}
.gr-chart__v{font-size:11.5px;font-weight:600;color:var(--x-text-2);margin-bottom:4px;white-space:nowrap}
.gr-chart__col::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:5px 8px;border-radius:7px;
  background:#0f172a;color:#fff;font-size:11.5px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .12s;z-index:2}
.gr-chart__col:hover::after{opacity:1}
.gr-chart__x{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-top:6px}
.gr-chart__x span{font-size:10.5px;color:var(--x-subtext);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ═══ networking ═══ */
.gr-av{flex:none;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font:600 14px var(--x-f-disp);color:#fff}
.gr-contact .xt-item__t{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gr-pri{display:inline-block;width:7px;height:7px;border-radius:50%}
.gr-pri--high{background:#ef4444}.gr-pri--medium{background:#f59e0b}.gr-pri--low{background:#94a3b8}
.gr-stage{display:inline-flex;align-items:center;padding:2px 9px;border-radius:99px;font-size:11.5px;font-weight:600;white-space:nowrap;line-height:1.6;background:#f1f5f9;color:#475569}
.gr-stage--contacted{background:rgba(37,99,235,.1);color:#1d4ed8}
.gr-stage--replied{background:rgba(6,182,212,.12);color:#0e7490}
.gr-stage--meeting{background:rgba(124,58,237,.1);color:#6d28d9}
.gr-stage--referral{background:#dcfce7;color:#166534}
.gr-stage--dormant{background:#f1f5f9;color:#94a3b8}
.gr-due-chip{display:inline-flex;align-items:center;gap:5px}
.gr-fu{display:flex;flex-direction:column;gap:18px}
.gr-fu__h{display:flex;align-items:center;gap:8px;margin:0 0 10px;font:600 14px/1.3 var(--x-f-disp)!important;color:var(--x-text)!important}
.gr-fu__h .xt-col__n{margin-left:0}
.gr-fu__h--late{color:#b91c1c!important}
.gr-fu .xt-item{align-items:center}
.gr-quicks{display:flex;gap:6px;flex-wrap:wrap;flex:none}
.gr-board{grid-auto-columns:minmax(205px,1fr)}
.gr-board .xt-col{min-height:200px}
.gr-board .xt-card h4{display:flex;align-items:center;gap:6px}
.gr-board .xt-card p+p{margin-top:3px}
.gr-board .xt-card p.gr-late{color:#b91c1c;font-weight:600}
.gr-dot--new{background:#94a3b8}.gr-dot--contacted{background:#2563eb}.gr-dot--replied{background:#0891b2}
.gr-dot--meeting{background:#7c3aed}.gr-dot--referral{background:#16a34a}.gr-dot--dormant{background:#cbd5e1}
.gr-mvbtn{border:1px solid var(--x-border);background:#fff;border-radius:7px;padding:3px 8px;font:600 11.5px var(--x-f-body);color:var(--x-text-3);cursor:pointer}
.gr-mvbtn:hover{border-color:var(--x-primary);color:var(--x-primary)}
.gr-col-empty{margin:4px;font-size:12px;color:var(--x-subtext);text-align:center;padding:14px 6px;border:1.5px dashed #dbe2ea;border-radius:10px}
.gr-hist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:200px;overflow-y:auto}
.gr-hist li{display:flex;gap:10px;font-size:13px;line-height:1.45;color:var(--x-text-2);padding:8px 10px;border-radius:9px;background:#f8fafc;border:1px solid var(--x-border)}
.gr-hist time{flex:none;font-size:12px;font-weight:600;color:var(--x-subtext);min-width:78px}
.gr-dchips{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.gr-msg textarea{min-height:240px;font-size:14px;line-height:1.65}
.gr-tpl{display:flex;flex-direction:column;gap:8px}
.gr-tpl .xt-item{padding:11px 13px;align-items:center}
.gr-tpl .xt-item__t{font-size:13.5px!important}
.gr-tpl h3.gr-tpl__h{margin:6px 0 2px;font:600 12px/1.3 var(--x-f-body)!important;color:var(--x-subtext)!important;text-transform:uppercase;letter-spacing:.05em}
.gr-plan-steps{margin:4px 0 0;padding-left:20px;list-style:decimal}
.gr-plan-steps li{font-size:13px;line-height:1.55;color:var(--x-text-2);margin-bottom:3px}
.gr [data-nw-tone]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
.gr [data-nw-tone] button{padding:7px 4px}
.gr-io{display:flex;flex-direction:column;gap:10px}
.gr-io code{font-size:12px;background:#f1f5f9;padding:1px 5px;border-radius:5px}
.gr-privacy{display:flex;gap:10px;align-items:flex-start}
.gr-privacy .x-ico{width:18px;height:18px;color:#16a34a;margin-top:1px}
.gr-tabn{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;margin-left:6px;padding:0 5px;border-radius:99px;background:#ef4444;color:#fff;font-size:11px;font-weight:700}
.gr-tabn[hidden]{display:none!important}
.xt-stat.gr-stat-btn{cursor:pointer;text-align:left;font:inherit;width:100%}
.xt-stat.gr-stat-btn:hover{border-color:rgba(37,99,235,.35)}
.xt-stat.gr-stat-btn.is-alert b{color:#b91c1c}

@media (max-width:1100px){
  .gr-plan__grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .gr-skill{flex-wrap:wrap}
  .gr-skill__side{flex-direction:row;align-items:center;justify-content:space-between;width:100%;padding-top:10px;border-top:1px solid var(--x-border)}
  .gr-skill__side .xt-item__acts{margin-left:auto}
  .gr-toolbar .xt-seg{width:100%}
  .gr-toolbar .xt-seg button{flex:1;padding:7px 6px}
  .gr-level small{font-size:9.5px}
  .gr [data-nw-tone]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gr-week__n{width:56px}
  .gr-week:not(:last-child)::before{left:27px}
  .gr-chart__plot,.gr-chart__x{gap:5px}
  .gr-contact .xt-item__acts{width:100%;justify-content:flex-end;padding-top:8px;border-top:1px solid var(--x-border)}
  .gr-fu .xt-item{flex-wrap:wrap}
  .gr-quicks{width:100%}
  .gr-select{max-width:none;flex:1}
  .gr-log .xt-item__acts{width:auto}
  .gr-log{flex-wrap:nowrap!important}
}
