/* =========================================================
   Guardian dashboard (positions are inside .app-main, 1226 x 1004; everything fits, nothing scrolls).
   Headline numbers on top, learning time and the current mission in the middle, skills,
   mentor & safety, and approvals & controls at the bottom.
   ========================================================= */

/* sidebar: a "Guardian" tag under the logo, the child at the bottom */
.pa .side-nav { top: 132px}
.pa-role { position: absolute; top: 82px; inset-inline-start: 28px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--accent-line); font-size: 12.5px; font-weight: 600; color: var(--accent)}
/* the child's WAHAJ ID card */
.pa-kid { position: absolute; inset-inline: 12px; bottom: 22px; display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid #232325; background: #111112; text-align: center}
.pa-idh { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--accent)}
.pa-idh span { display: inline-flex; align-items: center; gap: 5px}
.pa-idh em { font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 500; letter-spacing: .02em; color: #aeaeb2}
.pa-kav { width: 84px; height: 84px; margin-top: 12px; border-radius: 50%; overflow: hidden; outline: 3px solid var(--accent); outline-offset: 0; box-shadow: none; flex: none}
.pa-kav img, .pa-kav svg { width: 100%; height: 100%; object-fit: cover; display: block}
.pa-kn { display: block; margin-top: 10px; font-size: 16px; font-weight: 700; color: #ffffff}
.pa-kr { display: block; margin-top: 2px; font-size: 12px; color: #aeaeb2}
.pa-kdl { align-self: stretch; display: grid; gap: 5px; margin: 10px 0 0; padding-top: 9px; border-top: 1px solid #232325}
.pa-kdl div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px}
.pa-kdl dt { color: #98989d}
.pa-kdl dd { margin: 0; font-weight: 600; color: #e5e5ea; text-align: end}
.pa-kid .btn { align-self: stretch; height: 36px; margin-top: 10px; gap: 8px; font-size: 13.5px}
.pa-gav { display: grid; place-items: center; background: #1d1d1f; color: var(--accent)}

/* cards */
.pa-card, .pa-tile { position: absolute; border-radius: var(--ip-r); border: 1px solid var(--ip-line); background: var(--ip-card)}
.pa-card { padding: 18px 20px; overflow: hidden}
.pa-card.flash { animation: paFlash 1.4s ease}
@keyframes paFlash { 0%, 100% { box-shadow: none} 25%, 60% { outline: 2px solid var(--accent); outline-offset: 0; box-shadow: none} }
.pa-ch { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px}
.pa-ch h3 { margin: 0; font-size: 17px; font-weight: 600; color: #ffffff}
.pa-ch small { display: block; margin-top: 3px; font-size: 13px; color: #98989d}
.pa-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid #2c2c2e; font-size: 12.5px; font-weight: 600; color: #e5e5ea}
.pa-chip.ok { border-color: var(--accent-line); color: var(--accent)}

/* headline numbers */
.pa-tiles { position: absolute; top: 10px; inset-inline-start: 15px; width: 1196px; height: 128px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px}
.pa-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px}
.pa-tl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #aeaeb2}
.pa-ti { display: inline-flex; color: var(--accent)}
.pa-tv { font-size: 30px; font-weight: 700; color: #ffffff; line-height: 1.15}
.pa-ts { font-size: 12.5px; color: #98989d}
.pa-tile .progress { display: block; height: 6px; margin-top: auto}
.pa-tile.xp .pa-ti { color: #a78bfa}
.pa-tile.xp .progress > i { background: #8b5cf6}

/* learning time */
.pa-act { top: 150px; inset-inline-start: 15px; width: 776px; height: 384px}
.pa-seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #161617; border: 1px solid #232325}
.pa-seg button { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: #aeaeb2}
.pa-seg button.on { background: #232325; color: #ffffff}
.pa-actb { display: flex; gap: 26px; margin-top: 12px}
.pa-chart { position: relative; width: 430px; flex: none}
.pa-sum { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px}
.pa-sum b { font-size: 28px; font-weight: 700; color: #ffffff}
.pa-sum span { font-size: 13px; color: #aeaeb2}
.pa-svg { display: block; overflow: visible}
.pa-grid { stroke: #232325; stroke-width: 1}
.pa-goal { stroke: #6e6e73; stroke-width: 1}
.pa-goal-l { fill: #98989d; font-size: 11px}
.pa-ax { fill: #98989d; font-size: 11.5px}
.pa-ax.now { fill: #ffffff; font-weight: 700}
.pa-bar { fill: var(--accent); transition: opacity .15s}
.pa-svg:hover .pa-bar:not(.hl) { opacity: .45}
.pa-empty { fill: #2c2c2e}
.pa-val { fill: #ffffff; font-size: 12px; font-weight: 700}
.pa-hit { fill: transparent; cursor: default}
.pa-tip { position: absolute; z-index: 3; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 8px; border: 1px solid #2c2c2e; background: #1d1d1f; font-size: 12.5px; color: #e5e5ea; white-space: nowrap; pointer-events: none}
.pa-tip b { margin-inline-end: 6px; color: #ffffff}
.pa-recent { flex: 1; min-width: 0}
.pa-recent h4 { margin: 4px 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #98989d}
.pa-ri { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #1d1d1f}
.pa-ri:last-child { border-bottom: 0}
.pa-rii { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #1d1d1f; color: var(--accent)}
.pa-ri b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; color: #e5e5ea}
.pa-ri small { display: block; margin-top: 1px; font-size: 12px; color: #98989d}

/* current mission */
.pa-mis { top: 150px; inset-inline-start: 805px; width: 406px; height: 384px}
.pa-mhead { display: grid; grid-template-columns: 104px 1fr; gap: 14px; margin-top: 14px}
.pa-mhead img { width: 104px; height: 74px; border-radius: 10px; object-fit: cover}
.pa-mhead b { display: block; font-size: 17px; font-weight: 700; color: #ffffff}
.pa-mhead small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: #aeaeb2}
.pa-mhead .progress { display: block; height: 6px; margin-top: 8px}
.pa-mhead em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: #98989d}
.pa-phases { display: grid; gap: 8px; margin-top: 14px}
.pa-ph { --pc: var(--text); --pc-fill: var(--text); --pc-ink: var(--bg); display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: #161617}
.pa-ph.do { --pc: var(--accent); --pc-fill: var(--accent-fill); --pc-ink: #000}
.pa-ph.become { --pc: var(--accent-2-text); --pc-fill: var(--accent-2); --pc-ink: #fff}
.pa-ph .pi { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--pc); font-size: 11px; font-weight: 700; color: var(--pc)}
.pa-ph.done .pi { background: var(--pc-fill); border-color: var(--pc-fill); color: var(--pc-ink)}
.pa-ph b { display: block; font-size: 14px; font-weight: 700; color: var(--pc)}
.pa-ph small { display: block; font-size: 12px; color: #aeaeb2}
.pa-ph em { font-style: normal; font-size: 12.5px; color: #98989d}
.pa-test { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid #2c2c2e; font-size: 13.5px; color: #e5e5ea}
.pa-test .ico { flex: none; color: var(--accent)}
.pa-test b { color: #ffffff}

/* skills */
.pa-skills { top: 546px; inset-inline-start: 15px; width: 388px; height: 448px}
.pa-sk { margin-top: 13px}
.pa-skh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px}
.pa-skh b { font-weight: 600; color: #e5e5ea}
.pa-skh span { color: #ffffff; font-weight: 600}
.pa-skh em { margin-inline-start: 6px; font-style: normal; font-size: 12px; font-weight: 500; color: var(--accent)}
.pa-sk .progress { display: block; height: 6px; margin-top: 7px}
.pa-pass { position: absolute; inset-inline: 20px; bottom: 18px; display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: #161617}
.pa-passh { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; color: var(--accent)}
.pa-passh b { display: block; font-size: 14.5px; color: #ffffff}
.pa-passh small { display: block; margin-top: 1px; font-size: 12px; color: #aeaeb2}
.pa-passh small b { display: inline; font-size: 12px}
.pa-passh .btn { height: 34px; padding: 0 14px; font-size: 13px}
/* the Capability Passport card: one row of the six badges */
.pa-pbr { display: flex; justify-content: space-between; gap: 6px}
.pa-pbi { display: block; padding: 0; border-radius: 50%}
.pa-pbi > svg { display: block; width: 44px; height: 44px}
.pa-pbi:not(.on) > svg { filter: grayscale(1) brightness(.55)}
.pa-pbi:hover > svg { filter: none}
.pa-pass > * { min-width: 0}

/* AI mentor & safety */
.pa-safe { top: 546px; inset-inline-start: 417px; width: 390px; height: 448px}
.pa-mq { display: flex; align-items: baseline; gap: 10px; margin-top: 14px}
.pa-mq b { font-size: 30px; font-weight: 700; color: #ffffff}
.pa-mq span { font-size: 13px; color: #aeaeb2}
.pa-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px}
.pa-topics span { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid #2c2c2e; background: #161617; font-size: 12.5px; color: #e5e5ea}
.pa-topics em { font-style: normal; font-weight: 700; color: var(--accent)}
.pa-priv { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12.5px; color: #aeaeb2}
.pa-priv .ico { flex: none; color: #98989d}
.pa-checks { list-style: none; display: grid; gap: 10px; margin: 14px 0 0; padding: 0}
.pa-checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start}
.pa-checks .ico { color: var(--accent); margin-top: 1px}
.pa-checks b { display: block; font-size: 13.5px; font-weight: 600; color: #e5e5ea}
.pa-checks small { display: block; font-size: 12px; color: #98989d}

/* approvals & controls */
.pa-ctrl { top: 546px; inset-inline-start: 821px; width: 390px; height: 448px}
.pa-ask { display: grid; grid-template-columns: 36px 1fr; gap: 12px; margin-top: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(139, 92, 246, 0.5); background: #161617}
.pa-ask.yes { border-color: var(--accent-line)}
.pa-ask.no { border-color: #2c2c2e}
.pa-aski { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #1d1d1f; color: #a78bfa}
.pa-ask.yes .pa-aski { color: var(--accent)}
.pa-ask small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a78bfa}
.pa-ask.yes small { color: var(--accent)}
.pa-ask.no small { color: #98989d}
.pa-ask b { display: block; margin-top: 2px; font-size: 15px; color: #ffffff}
.pa-ask div > span { display: block; font-size: 12.5px; color: #aeaeb2}
.pa-ask .link { margin-top: 6px; font-size: 13px}
.pa-askb { display: flex; gap: 8px; margin-top: 8px}
.pa-askb .btn { height: 30px; padding: 0 14px; font-size: 13.5px}
.pa-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #1d1d1f}
.pa-ctl b { display: block; font-size: 14px; font-weight: 600; color: #e5e5ea}
.pa-ctl small { display: block; font-size: 12px; color: #98989d}
.pa-step { display: inline-flex; align-items: center; gap: 10px; flex: none}
.pa-step button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #2c2c2e; color: #e5e5ea}
.pa-step button:hover { border-color: var(--accent-line); color: var(--accent)}
.pa-step b { min-width: 52px; text-align: center}
.pa-ctl .tgl { flex: none}
.pa-ctl.pa-use { padding-bottom: 6px; border-bottom: 0}
.pa-usev { flex: none; font-size: 16px; font-weight: 700; color: var(--accent)}
.pa-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding-bottom: 8px; border-bottom: 1px solid #1d1d1f}
.pa-chips button { height: 30px; border-radius: 9px; border: 1px solid #2c2c2e; background: #161617; font-size: 13px; font-weight: 600; color: #e5e5ea; white-space: nowrap}
.pa-chips button:hover { border-color: var(--accent-line)}
.pa-chips button.on { border-color: var(--accent); color: var(--accent); outline: 1px solid var(--accent); outline-offset: -1px; box-shadow: none}
.pa-hrs { display: inline-flex; align-items: center; gap: 6px; flex: none}
.pa-hrs button { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 10px; border-radius: 9px; border: 1px solid #2c2c2e; background: #161617; font-size: 13px; font-weight: 600; color: #ffffff; white-space: nowrap}
.pa-hrs button:hover { border-color: var(--accent-line)}
.pa-hrs button .ico { color: #98989d}
.pa-hrs i { font-style: normal; color: #98989d}
.pa-dl { position: absolute; inset-inline: 20px; bottom: 18px; height: 42px; gap: 8px; font-size: 14px}

/* weekly report (modal) */
.pa-rep { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px}
.pa-rep > div { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2)}
.pa-rep span { display: inline-flex; color: var(--accent)}
.pa-rep small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted)}
.pa-rep b { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--text)}

/* fit: tighter activity list and mission card, header avatar icon */
.pa-ri { padding: 7px 0}
.pa-mhead { margin-top: 12px; grid-template-columns: 96px 1fr}
.pa-mhead img { width: 96px; height: 66px}
.pa-phases { gap: 6px; margin-top: 12px}
.pa-ph { padding: 6px 10px}
.pa-test { margin-top: 10px; padding: 9px 12px}
.tb-av.pa-gav svg.ico { width: 22px; height: 22px; color: var(--accent)}
.pa-chip[data-act] { cursor: pointer}
.pa-chip[data-act]:hover { border-color: var(--accent-line); color: var(--accent)}

/* the chart lays out its own labels for both directions */
.pa-svg { direction: ltr}

/* one badge tile per mission, three across, so the passport block keeps its height as missions are added */

/* V6G-39: the side menu holds what the drop-down menu held; the guardian's name in the top bar is not a button */
.pa .side-nav.pa-nav { top: 124px; inset-inline-start: 10px; inset-inline-end: 10px; width: auto; gap: 2px}
.pa .side-nav.pa-nav button { width: 100%; min-width: 0; height: 40px; flex: none; overflow: hidden}
.pa .side-nav.pa-nav button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.pa .side-nav.pa-nav button.pa-more { height: auto; min-height: 38px; padding-block: 6px; font-size: 13.5px; line-height: 1.25; text-align: start}
.pa .side-nav.pa-nav button.pa-more span { white-space: normal}
.pa-navsep { display: block; flex: none; height: 1px; margin: 6px 12px; background: #232325}
.tb-user.pa-who { cursor: default}
.tb-user.pa-who:hover { background: transparent}
[data-theme="light"] .pa-navsep { background: #e5e5ea}
