/* ============================================================
   Skillnaija Assessments, employer side (assess-employer.js).
   Scoped under .sn-ae (the panel and its dialogs). Uses the role
   tokens of styles.css and the site-v2 look: white cards, 18 px
   radius, action green for buttons, chips as small pills.
   ============================================================ */
.sn-ae { --ae-ok: #15803D; --ae-ok-bg: #DCFCE7; --ae-warn: #92400E; --ae-warn-bg: #FEF3C7; --ae-crit: #B91C1C; --ae-crit-bg: #FEE2E2;
  --ae-info: #0B3D2E; --ae-info-bg: #E8F3EC; --ae-line: #E2E8F0; --ae-muted: #475569; color: var(--ink-navy); }
.sn-ae *, .sn-ae *::before, .sn-ae *::after { box-sizing: border-box; }
.sn-ae h2 { font: 800 clamp(26px, 3.2vw, 36px)/1.1 Poppins, Inter, sans-serif; margin: 6px 0 10px; }
.sn-ae h3 { font: 700 18px/1.3 Poppins, Inter, sans-serif; margin: 0 0 8px; }
.sn-ae h4 { font: 700 15px/1.3 Inter, sans-serif; margin: 14px 0 6px; }
.sn-ae p { line-height: 1.55; }
.sn-ae .ae-muted { color: var(--ae-muted); font-size: 14px; }
.sn-ae small.ae-muted { display: block; margin-top: 2px; }
.sn-ae .ae-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sn-ae .ae-kicker { font: 700 12px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--action-green); }
.sn-ae .btn { min-height: 44px; }
.sn-ae .btn.sm { min-height: 44px; }
.sn-ae .btn.ae-danger { background: var(--ae-crit); color: #fff; border-color: var(--ae-crit); }
.sn-ae .ae-danger-t { color: var(--ae-crit); }
.sn-ae .ae-on-crit { background: var(--ae-crit-bg); color: var(--ae-crit); border-color: #FECACA; }
.sn-ae .input { width: 100%; font: inherit; padding: 10px 12px; background: #fff; }
.sn-ae textarea.input { min-height: 0; resize: vertical; }
.sn-ae .ae-narrow { max-width: 140px; }
.sn-ae label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.sn-ae fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.sn-ae legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.sn-ae .ae-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--action-green); cursor: pointer; text-align: left; min-height: 44px; }
.sn-ae .ae-link:hover { text-decoration: underline; }
.sn-ae .ae-x { min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ae-muted); cursor: pointer; border-radius: 10px; }
.sn-ae .ae-chip .ae-x { min-width: 32px; min-height: 32px; margin: -6px -8px -6px 0; }
.sn-ae .ae-x:hover { background: var(--slate-100, #F1F5F9); color: var(--ink-navy); }

/* cards, rows, grids */
.sn-ae .ae-card { background: #fff; border: 1px solid var(--ae-line); border-radius: 18px; padding: 18px 20px; margin: 0 0 14px; }
.sn-ae .ae-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.sn-ae .ae-row .grow, .sn-ae .grow { flex: 1; min-width: 200px; }
.sn-ae .ae-two, .sn-ae .ae-rp-grid, .sn-ae .ae-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sn-ae .ae-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sn-ae .ae-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sn-ae .ae-cards .ae-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sn-ae .ae-list { list-style: none; margin: 0; padding: 0; }
.sn-ae .ae-list-plain { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sn-ae .ae-list-plain li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sn-ae .ae-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.sn-ae .ae-acts-end { justify-content: space-between; }
.sn-ae .ae-tpl-top, .sn-ae .ae-bar-h, .sn-ae .ae-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.sn-ae .ae-top { margin-bottom: 14px; align-items: center; }
.sn-ae .ae-soon { opacity: .62; background: #F8FAFC; }
.sn-ae .ae-err { color: var(--ae-crit); font-weight: 600; min-height: 20px; margin: 8px 0 0; }
.sn-ae .ae-err:empty { min-height: 0; margin: 0; }
.sn-ae .ae-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 0 0 12px; }
.sn-ae .ae-filters label { min-width: 160px; flex: 1 1 160px; }
.sn-ae .ae-filters .btn { flex: none; }

/* notes and chips */
.sn-ae .ae-note { border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; }
.sn-ae .ae-note-info { background: var(--ae-info-bg); color: var(--ae-info); }
.sn-ae .ae-note-wait { background: var(--ae-warn-bg); color: #78350F; border: 1px solid #FDE68A; }
.sn-ae .ae-note-crit { background: var(--ae-crit-bg); color: #9F1239; border: 1px solid #FECDD3; }
.sn-ae .ae-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sn-ae .ae-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 10px; font: 700 12.5px/1.3 Inter, sans-serif; background: var(--slate-100, #F1F5F9); color: #334155; white-space: nowrap; }
.sn-ae .ae-chip-ok { background: var(--ae-ok-bg); color: #166534; }
.sn-ae .ae-chip-warn { background: var(--ae-warn-bg); color: var(--ae-warn); }
.sn-ae .ae-chip-crit { background: var(--ae-crit-bg); color: var(--ae-crit); }
.sn-ae .ae-chip-info { background: var(--ae-info-bg); color: var(--ae-info); }
.sn-ae .ae-chip-live { background: #DBEAFE; color: #1E40AF; }
.sn-ae .ae-chip-muted { background: #F1F5F9; color: #475569; }

/* marketing panel */
.sn-ae .ae-hero { background: var(--naija-deep-green); color: #F2F7F2; border-radius: 28px; padding: 32px clamp(18px, 3vw, 36px); margin-bottom: 16px; }
.sn-ae .ae-hero h2 { color: #fff; }
.sn-ae .ae-hero p { color: #C9DED1; font-size: 17px; max-width: 680px; margin: 0 0 18px; }
.sn-ae .ae-hero .ae-kicker { color: var(--soft-mint, #BBF7D0); }
.sn-ae .ae-on-dark { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.sn-ae .ae-on-dark:hover { background: rgba(255,255,255,.1); }
.sn-ae .ae-ills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.sn-ae .ae-ill { margin: 0; background: #fff; border: 1px solid var(--ae-line); border-radius: 18px; overflow: hidden; }
.sn-ae .ae-ill figcaption { padding: 14px 16px; font-size: 14px; color: var(--ae-muted); line-height: 1.5; }
.sn-ae .ae-ill figcaption b { display: block; color: var(--ink-navy); font-size: 15px; margin-bottom: 4px; }
.sn-ae .ae-ill-art { height: 150px; background: linear-gradient(135deg, #F0FDF4, #E8F3EC); padding: 18px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.sn-ae .ae-ill-art i { display: block; flex-basis: 100%; height: 12px; border-radius: 6px; background: #fff; box-shadow: 0 1px 0 var(--ae-line); }
.sn-ae .ae-ill-art i.short { flex-basis: 60%; }
.sn-ae .ae-st { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #A7D7B5; margin-bottom: 8px; }
.sn-ae .ae-st.on { background: var(--action-green); border-color: var(--action-green); }
.sn-ae .ae-ill-bar { flex-basis: 100%; display: flex; justify-content: space-between; align-items: center; height: 26px; background: var(--naija-deep-green); border-radius: 8px; padding: 0 8px; }
.sn-ae .ae-ill-bar em { width: 40%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.4); }
.sn-ae .ae-ill-bar strong { font: 700 11px Inter, sans-serif; color: var(--naija-deep-green); background: #fff; border-radius: 999px; padding: 2px 8px; }
.sn-ae .ae-ill-opt { flex-basis: 100%; height: 16px; border-radius: 8px; background: #fff; border: 2px solid var(--ae-line); }
.sn-ae .ae-ill-opt.on { border-color: var(--action-green); background: var(--ae-ok-bg); }
.sn-ae .ae-ill-report { align-items: center; flex-wrap: nowrap; gap: 18px; }
.sn-ae .ae-ill-bars { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.sn-ae .ae-ill-bars i { height: 12px; background: var(--action-green); flex-basis: auto; }
.sn-ae .ae-ticks { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.sn-ae .ae-ticks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; }
.sn-ae .ae-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ae-ok-bg); color: var(--ae-ok); font: 700 12px/20px Inter, sans-serif; text-align: center; }
.sn-ae .ae-ticks-no li::before { content: "✕"; background: #F1F5F9; color: var(--ae-muted); }
.sn-ae .ae-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sn-ae .ae-price { border: 1px solid var(--ae-line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; font-weight: 400; }
.sn-ae .ae-price b { font-size: 15px; }
.sn-ae .ae-price-n { font: 800 26px/1.2 Poppins, Inter, sans-serif; color: var(--naija-deep-green); }
.sn-ae .ae-price p { margin: 6px 0 0; font-size: 14px; color: var(--ae-muted); }
.sn-ae .ae-pick { cursor: pointer; }
.sn-ae .ae-pick:has(input:checked) { border-color: var(--action-green); box-shadow: 0 0 0 2px var(--ae-ok-bg); }
.sn-ae .ae-pick input { width: 20px; height: 20px; accent-color: var(--action-green); }

/* forms */
.sn-ae .ae-form { display: flex; flex-direction: column; gap: 14px; }
.sn-ae .ae-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sn-ae .ae-checks-col { flex-direction: column; gap: 4px; }
.sn-ae .ae-check { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.sn-ae .ae-check input { width: 20px; height: 20px; accent-color: var(--action-green); flex: none; margin: 0; }
.sn-ae .ae-skills { display: flex; flex-direction: column; gap: 6px; }
.sn-ae .ae-skills > label { font-weight: 600; }
.sn-ae .ae-skills .ae-row { align-items: stretch; }
.sn-ae .ae-skills .ae-row .input { flex: 1; min-width: 180px; width: auto; }

/* sub tabs (pill tabs) and segments */
.sn-ae .ae-pills, .sn-ae .ae-seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.sn-ae .ae-pills button, .sn-ae .ae-seg button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ae-line); background: #fff; font: 600 14px Inter, sans-serif; color: #334155; cursor: pointer; }
.sn-ae .ae-pills button[aria-pressed="true"], .sn-ae .ae-seg button[aria-pressed="true"] { background: var(--naija-deep-green); color: #fff; border-color: var(--naija-deep-green); }
.sn-ae .ae-seg-sm button { min-height: 44px; padding: 0 14px; font-size: 13.5px; }

/* builder */
.sn-ae .ae-stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 6px; counter-reset: none; }
.sn-ae .ae-stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font: 600 13.5px Inter, sans-serif; color: var(--ae-muted); padding: 10px 0; border-top: 4px solid var(--ae-line); }
.sn-ae .ae-stepper li span { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: #F1F5F9; font-weight: 700; flex: none; }
.sn-ae .ae-stepper li.done { border-top-color: #86EFAC; color: var(--ink-navy); }
.sn-ae .ae-stepper li.done span { background: var(--ae-ok-bg); color: var(--ae-ok); }
.sn-ae .ae-stepper li.on { border-top-color: var(--action-green); color: var(--ink-navy); }
.sn-ae .ae-stepper li.on span { background: var(--action-green); color: #fff; }
.sn-ae .ae-builder { display: flex; flex-direction: column; gap: 12px; }
.sn-ae .ae-secs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.sn-ae .ae-sec legend { font: 700 16px Poppins, Inter, sans-serif; }
.sn-ae .ae-own { border: 1px dashed #CBD5E1; border-radius: 14px; padding: 12px 14px; margin: 10px 0; display: flex; flex-direction: column; gap: 10px; background: #FBFCFB; }
.sn-ae .ae-opt { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 6px; }
.sn-ae .ae-opt > input[type=radio], .sn-ae .ae-opt > input[type=checkbox] { width: 22px; height: 22px; margin: 0 0 12px; accent-color: var(--action-green); flex: none; }

/* candidate view preview */
.sn-ae .ae-cand { border: 1px solid var(--ae-line); border-radius: 18px; overflow: hidden; background: #fff; }
.sn-ae .ae-cand-bar { display: flex; gap: 12px; align-items: center; background: var(--naija-deep-green); color: #fff; padding: 10px 14px; font-size: 14px; flex-wrap: wrap; }
.sn-ae .ae-cand-bar span:nth-child(2) { flex: 1; opacity: .85; }
.sn-ae .ae-pill-time { background: #fff; color: var(--naija-deep-green); border-radius: 999px; padding: 4px 12px; font-weight: 700; }
.sn-ae .ae-pvs { list-style: none; margin: 0; padding: 0; }
.sn-ae .ae-pv { padding: 16px; border-top: 1px solid var(--ae-line); }
.sn-ae .ae-pv:first-child { border-top: 0; }
.sn-ae .ae-pv-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ae-muted); font-weight: 600; }
.sn-ae .ae-pv-opts { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.sn-ae .ae-pv-opts label { flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--ae-line); border-radius: 12px; padding: 10px 12px; font-weight: 500; min-height: 44px; }
.sn-ae .ae-pv-line { flex-direction: row; align-items: center; justify-content: space-between; }
.sn-ae .ae-pv-line .input { max-width: 160px; }
.sn-ae .ae-pv-box { border-top: 1px solid var(--ae-line); padding-top: 10px; }
.sn-ae .ae-stem { font-size: 16px; font-weight: 600; margin: 8px 0; white-space: pre-line; }
.sn-ae .ae-stim { background: #F8FAFC; border: 1px solid var(--ae-line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: 14px; white-space: pre-line; }

/* invites and live board */
.sn-ae .ae-inv { margin-bottom: 10px; }
.sn-ae .ae-inv p { margin: 6px 0 0; }
.sn-ae .ae-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.sn-ae .ae-live { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sn-ae .ae-live-top { display: flex; gap: 14px; align-items: center; }
.sn-ae .ae-live-top p { margin: 2px 0 0; }
.sn-ae .ae-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; vertical-align: middle; margin-left: 4px; }
.sn-ae .ae-dot.on { background: #22C55E; box-shadow: 0 0 0 3px #DCFCE7; }
.sn-ae .ae-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--ae-line); display: block; }
.sn-ae .ae-msg .ae-row .input { flex: 1; width: auto; min-width: 140px; }
.sn-ae .ae-share { margin-top: 8px; font-size: 13px; }

/* rings and bars, CSS only */
.sn-ae .ae-ring { --p: 0; --c: var(--action-green); position: relative; flex: none; width: 88px; height: 88px; border-radius: 50%; display: inline-grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #E5E7EB 0); }
.sn-ae .ae-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.sn-ae .ae-ring > span { position: relative; font: 800 18px/1 Poppins, Inter, sans-serif; }
.sn-ae .ae-ring.warn { --c: #D97706; }
.sn-ae .ae-ring.crit { --c: var(--ae-crit); }
.sn-ae .ae-tring .ae-ring { width: 64px; height: 64px; }
.sn-ae .ae-tring .ae-ring::before { inset: 7px; }
.sn-ae .ae-tring .ae-ring > span { font-size: 13px; }
.sn-ae .ae-rp-head .ae-ring { width: 120px; height: 120px; }
.sn-ae .ae-rp-head .ae-ring > span { font-size: 26px; }
.sn-ae .ae-bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sn-ae .ae-bars li { display: grid; grid-template-columns: minmax(0, 1fr) 2fr 48px; gap: 10px; align-items: center; font-size: 14px; }
.sn-ae .ae-bar-track { height: 10px; border-radius: 5px; background: #E5E7EB; overflow: hidden; }
.sn-ae .ae-bar-track i { display: block; height: 100%; background: var(--action-green); border-radius: 5px; }
.sn-ae .ae-bars b { text-align: right; }

/* results */
.sn-ae .ae-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--ae-line); border-radius: 18px; }
.sn-ae .ae-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sn-ae .ae-table th { text-align: left; font: 700 12px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ae-muted); padding: 12px; border-bottom: 1px solid var(--ae-line); }
.sn-ae .ae-table td { padding: 10px 12px; border-bottom: 1px solid var(--ae-line); vertical-align: middle; }
.sn-ae .ae-table tr:last-child td { border-bottom: 0; }
.sn-ae .ae-table input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--action-green); }
.sn-ae .ae-compare { margin-top: 18px; }
.sn-ae .ae-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sn-ae .ae-cmp .ae-card { margin: 0; }
.sn-ae .ae-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.sn-ae .ae-tile { background: #fff; border: 1px solid var(--ae-line); border-radius: 16px; padding: 14px 16px; }
.sn-ae .ae-tile b { display: block; font: 800 26px Poppins, Inter, sans-serif; color: var(--naija-deep-green); }
.sn-ae .ae-tile span { font-size: 13.5px; color: var(--ae-muted); }

/* report */
.sn-ae .ae-report { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.sn-ae .ae-report > section, .sn-ae .ae-rp-grid > section { background: #fff; border: 1px solid var(--ae-line); border-radius: 18px; padding: 18px 20px; }
.sn-ae .ae-rp-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--ae-line); border-radius: 18px; padding: 20px; }
.sn-ae .ae-rp-who { flex: 1; min-width: 220px; }
.sn-ae .ae-rp-who h2 { font-size: 26px; margin: 0 0 4px; }
.sn-ae .ae-rp-who p { margin: 2px 0; }
.sn-ae .ae-rp-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sn-ae .ae-rp-acts { display: flex; flex-direction: column; gap: 8px; }
.sn-ae .ae-ai { border-color: #BFDBFE !important; background: #F8FBFF !important; }
.sn-ae .ae-ai ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.sn-ae .ae-answers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sn-ae .ae-ans { border: 1px solid var(--ae-line); border-radius: 14px; padding: 14px; }
.sn-ae .ae-ans-read { border-color: #FCD34D; box-shadow: 0 0 0 2px var(--ae-warn-bg); }
.sn-ae .ae-ans-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sn-ae .ae-ans-mark { margin-left: auto; }
.sn-ae .ae-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 6px 0; font-size: 14.5px; }
.sn-ae .ae-dl dt { font-weight: 700; color: var(--ae-muted); }
.sn-ae .ae-dl dd { margin: 0; }
.sn-ae .ae-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.sn-ae .ae-mark { background: #F8FAFC; border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.sn-ae .ae-points { margin: 6px 0 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.sn-ae .ae-ovr summary { cursor: pointer; font-weight: 600; color: var(--action-green); min-height: 44px; display: flex; align-items: center; }
.sn-ae .ae-ovr-f { display: grid; grid-template-columns: 160px 1fr; gap: 10px; align-items: end; }
.sn-ae .ae-ovr-f .ae-acts { grid-column: 1 / -1; margin: 0; }
.sn-ae .ae-axis { position: relative; height: 28px; border-radius: 14px; background: #F1F5F9; margin: 8px 0; }
.sn-ae .ae-tick { position: absolute; top: 6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #D97706; border: 2px solid #fff; }
.sn-ae .ae-tick-submitted { background: var(--action-green); }
.sn-ae .ae-tick-second_session, .sn-ae .ae-tick-device_change, .sn-ae .ae-tick-screen_share_stopped { background: var(--ae-crit); }
.sn-ae .ae-tl { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.sn-ae .ae-tl time { font-weight: 700; }
.sn-ae .ae-shots { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.sn-ae .ae-shots img { width: 160px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--ae-line); display: block; }
.sn-ae .ae-away { border-left: 4px solid var(--ae-warn); padding: 4px 0 4px 12px; margin: 10px 0; }
.sn-ae .ae-away p { margin: 0 0 6px; }
.sn-ae .ae-onshots { margin: 10px 0; }
.sn-ae .ae-onshots summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.sn-ae .ae-hint { margin: 6px 0 0; }

/* dialogs (confirm, sample report) */
dialog.sn-ae.ae-dialog { border: 0; border-radius: 18px; padding: 20px; max-width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(15,23,42,.45); background: #fff; }
dialog.sn-ae.ae-dialog::backdrop { background: rgba(15,23,42,.45); }
dialog.sn-ae.ae-dialog-wide { max-width: min(960px, calc(100vw - 32px)); width: 100%; background: #F6F8F5; max-height: calc(100vh - 32px); }
.sn-ae .ae-dialog-bar { display: flex; justify-content: flex-end; position: sticky; top: -20px; z-index: 1; }

/* v2: work samples from the job posting */
.sn-ae .ae-h-gap { margin-top: 22px; }
.sn-ae .ae-create { border-color: #A7D7B5; background: linear-gradient(180deg, #F4FBF6, #fff 140px); }
.sn-ae .ae-jobs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sn-ae .ae-jobs li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid var(--ae-line); border-radius: 14px; padding: 10px 14px; background: #fff; }
.sn-ae .ae-jobs small { display: block; margin-top: 2px; }
.sn-ae .ae-paste summary, .sn-ae .ae-sol summary { cursor: pointer; font-weight: 700; color: var(--action-green); min-height: 44px; display: flex; align-items: center; }
.sn-ae .ae-progress { display: flex; gap: 14px; align-items: center; background: var(--ae-info-bg); color: var(--ae-info); border-radius: 14px; padding: 16px; margin: 10px 0; }
.sn-ae .ae-progress p { margin: 4px 0 0; }
.sn-ae .ae-spin { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #A7D7B5; border-top-color: var(--action-green); animation: ae-spin 1.1s linear infinite; }
@keyframes ae-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sn-ae .ae-spin { animation: none; border-top-color: #A7D7B5; } }
.sn-ae .ae-type { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px 4px 8px; font: 700 12.5px/1.3 Inter, sans-serif; background: #F1F5F9; color: #334155; white-space: nowrap; }
.sn-ae .ae-type svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sn-ae .ae-type-written { background: #EEF2FF; color: #3730A3; }
.sn-ae .ae-type-desk { background: #FFF7ED; color: #9A3412; }
.sn-ae .ae-type-code { background: #0F172A; color: #E2E8F0; }
.sn-ae .ae-type-studio { background: #FDF4FF; color: #86198F; }
.sn-ae .ae-type-workflow { background: #ECFEFF; color: #155E75; }
.sn-ae .ae-type-sheet { background: var(--ae-ok-bg); color: #166534; }
.sn-ae .ae-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sn-ae .ae-taskcard { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sn-ae .ae-taskcard.open { border-color: var(--action-green); box-shadow: 0 0 0 2px var(--ae-ok-bg); }
.sn-ae .ae-task-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sn-ae .ae-taskcard p { margin: 0; }
.sn-ae .ae-editor { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--ae-line); padding-top: 14px; margin-top: 4px; }
.sn-ae .ae-sub { border: 1px solid var(--ae-line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.sn-ae .ae-sub > legend { padding: 0 6px; }
.sn-ae .ae-hidden-box { border: 2px dashed #FCA5A5; background: #FFF7F7; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.sn-ae .ae-hidden-box h5 { margin: 0; }
.sn-ae .ae-mono, .sn-ae code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
.sn-ae .input[aria-invalid="true"] { border-color: var(--ae-crit); box-shadow: 0 0 0 2px var(--ae-crit-bg); }
.sn-ae .ae-redo { display: flex; flex-direction: column; gap: 6px; background: #F8FAFC; border-radius: 12px; padding: 12px; }
.sn-ae .ae-balance .ae-bars small { grid-column: 1 / -1; margin-top: -6px; }
.sn-ae .ae-warn-t { color: var(--ae-warn); font-weight: 600; }
.sn-ae h5 { font: 700 14px/1.3 Inter, sans-serif; margin: 12px 0 6px; }
.sn-ae .ae-mat { margin: 8px 0; border: 1px solid var(--ae-line); border-radius: 12px; padding: 10px 12px; background: #FBFCFB; }
.sn-ae .ae-mat figcaption { font-weight: 700; font-size: 14px; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sn-ae .ae-mini { margin: 6px 0; border-radius: 10px; }
.sn-ae .ae-mini .ae-table th, .sn-ae .ae-mini .ae-table td { padding: 6px 8px; font-size: 13px; }
.sn-ae .ae-code { background: #0F172A; color: #E2E8F0; border-radius: 12px; padding: 12px 14px; overflow-x: auto; margin: 6px 0; font-size: 13px; line-height: 1.5; white-space: pre; }
.sn-ae .ae-code code { color: inherit; }
.sn-ae .ae-doc { background: #fff; border: 1px solid var(--ae-line); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.6; }
.sn-ae .ae-work { margin: 8px 0; }
.sn-ae .ae-ownrun { border-left: 4px solid #FCD34D; padding: 4px 0 4px 12px; margin: 8px 0; }
.sn-ae .ae-steps { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sn-ae .ae-stepcard { border: 1px solid var(--ae-line); border-left: 4px solid #22D3EE; border-radius: 12px; padding: 10px 12px; background: #fff; }
.sn-ae .ae-frame { width: 100%; height: 520px; border: 1px solid var(--ae-line); border-radius: 12px; background: #fff; display: block; }
.sn-ae .ae-turns { margin: 6px 0; padding-left: 20px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.sn-ae .ae-thread { list-style: none; margin: 6px 0; padding: 0; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.sn-ae .ae-thread li { border-radius: 12px; padding: 8px 12px; background: #F1F5F9; max-width: 90%; }
.sn-ae .ae-thread li.you { background: var(--ae-ok-bg); margin-left: auto; }
.sn-ae .ae-desk { border-top: 1px solid var(--ae-line); padding-top: 6px; }
.sn-ae .ae-auto { border-bottom: 1px solid var(--ae-line); padding-bottom: 8px; margin-bottom: 8px; }
.sn-ae .ae-auto p { margin: 0 0 6px; }
.sn-ae .ae-crits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sn-ae .ae-crits li { border-radius: 10px; padding: 8px 10px; background: #fff; border: 1px solid var(--ae-line); }
.sn-ae .ae-crits li.ae-crit-read { border-color: #FCD34D; }
.sn-ae .ae-crits p { margin: 6px 0 0; font-size: 14px; }
.sn-ae .ae-crits q { display: block; margin-top: 4px; font-style: italic; color: #334155; font-size: 14px; }
.sn-ae .ae-bar-t small { display: block; font-weight: 400; }
.sn-ae .ae-bar-none { grid-column: 1 / -1; }
.sn-ae .ae-pv-task .ae-pre { margin: 6px 0; }

/* phones: one column, 44 px targets */
@media (max-width: 720px) {
  .sn-ae .ae-two, .sn-ae .ae-rp-grid, .sn-ae .ae-grid2, .sn-ae .ae-grid3, .sn-ae .ae-ills, .sn-ae .ae-prices, .sn-ae .ae-ovr-f { grid-template-columns: 1fr; }
  .sn-ae .ae-tiles { grid-template-columns: 1fr 1fr; }
  .sn-ae .ae-stepper li { font-size: 0; gap: 0; justify-content: center; }
  .sn-ae .ae-stepper li[aria-current] { font-size: 13px; gap: 6px; flex: 3; }
  .sn-ae .ae-board, .sn-ae .ae-cards { grid-template-columns: 1fr; }
  .sn-ae .ae-rp-acts { flex-direction: row; flex-wrap: wrap; }
  .sn-ae .ae-bars li { grid-template-columns: 1fr 48px; }
  .sn-ae .ae-bars .ae-bar-track { grid-column: 1 / -1; grid-row: 2; }
  .sn-ae .ae-table-wrap { border: 0; background: none; }
  .sn-ae .ae-table thead { display: none; }
  .sn-ae .ae-table tr { display: block; background: #fff; border: 1px solid var(--ae-line); border-radius: 14px; margin-bottom: 10px; padding: 6px 4px; }
  .sn-ae .ae-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 12px; }
  .sn-ae .ae-table td::before { content: attr(data-l); font-weight: 700; color: var(--ae-muted); font-size: 12.5px; }
  .sn-ae .ae-dl { grid-template-columns: 1fr; }
  .sn-ae .ae-frame { height: 380px; }
  .sn-ae .ae-jobs li .btn { width: 100%; }
  .sn-ae .ae-mini .ae-table thead { display: table-header-group; }
  .sn-ae .ae-mini .ae-table tr { display: table-row; border: 0; padding: 0; margin: 0; }
  .sn-ae .ae-mini .ae-table td { display: table-cell; padding: 6px 8px; }
  .sn-ae .ae-mini .ae-table td::before { content: none; }
}

/* Print to PDF: the report alone, on white (body.ae-report-on while a report is open) */
@media print {
  body.ae-report-on > *:not(main), body.ae-report-on .sv-ptop, body.ae-report-on .sv-pfoot, body.ae-report-on .ep-head, body.ae-report-on #epBanner { display: none !important; }
  .sn-ae .ae-noprint, .sn-ae .ae-pills, .sn-ae .ae-top, .sn-ae .ae-ovr, .sn-ae #aeLive { display: none !important; }
  .sn-ae .ae-report > section, .sn-ae .ae-rp-head, .sn-ae .ae-rp-grid > section, .sn-ae .ae-ans { border-color: #CBD5E1; break-inside: avoid; }
  .sn-ae .ae-ring, .sn-ae .ae-bar-track i, .sn-ae .ae-chip, .sn-ae .ae-tick { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sn-ae { color: #000; }
  .sn-ae .ae-shots { flex-wrap: wrap; overflow: visible; }
  .sn-ae .ae-code { white-space: pre-wrap; overflow: visible; background: #fff; color: #000; border: 1px solid #CBD5E1; }
  .sn-ae .ae-frame { height: 640px; break-inside: avoid; }
  .sn-ae .ae-stepcard, .sn-ae .ae-crits li, .sn-ae .ae-mat, .sn-ae .ae-thread li { break-inside: avoid; }
  .sn-ae .ae-type, .sn-ae .ae-stepcard { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
