/* Apply menu on the jobs page. The look is the owner-approved demo
   (docs/superpowers/specs/2026-11-08-apply-for-me-demo.html), scoped to .aa-menu and to the
   Apply Now button so nothing else on the page is touched. */

/* ---------- the Apply Now menu trigger: a link to the employer's page (a plain click opens the menu), or a
   button when the job has no address. Tag plus class, so the cascade against the template's .apply-btn rules
   and media queries is the same for both. ---------- */
button.apply-btn-menu,a.apply-btn-menu{border:0;cursor:pointer;font-family:inherit;padding:0;overflow:hidden;white-space:nowrap;text-align:center}
button.apply-btn-mobile.apply-btn-menu,a.apply-btn-mobile.apply-btn-menu{border:1px solid #e8ecf1}
/* What a <button> resets and an <a> would inherit from its parent: pinned to the button's values. */
a.apply-btn-menu{box-sizing:border-box;margin:0;font-style:normal;font-variant:normal;font-stretch:normal;font-kerning:auto;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-shadow:none;text-decoration:none}
a.apply-btn-menu:visited,a.apply-btn-menu:hover,a.apply-btn-menu:focus,a.apply-btn-menu:active{text-decoration:none}
.apply-btn-menu .aa-in{display:inline-flex;align-items:stretch}
.apply-btn-menu .lbl{display:inline-flex;align-items:center;padding:.62em .8em .62em 1.2em}
.apply-btn-menu .caret{display:inline-flex;align-items:center;padding:0 .7em;border-left:1px solid rgba(255,255,255,.24)}
.apply-btn-menu .caret svg{width:1.05em;height:1.05em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.apply-btn-menu[aria-expanded="true"] .caret svg{transform:rotate(180deg)}
.apply-btn-menu:focus-visible{outline:2px solid #1b66ff;outline-offset:2px}

/* ---------- the menu ---------- */
/* z-index 10010 keeps the menu above the map overlay (10000) */
.aa-menu{
  --aa-surface:#ffffff;--aa-surface-2:#f8fafc;--aa-line:#e2e8f0;
  --aa-ink:#0f172a;--aa-ink-3:#64748b;--aa-ink-4:#94a3b8;--aa-navy:#0b2a6f;
  --aa-teal:#00857a;--aa-teal-ink:#006b62;--aa-teal-soft:#e7f5f3;--aa-teal-soft-2:#d6eeea;
  --aa-shadow-pop:0 14px 34px rgba(14,24,48,.18), 0 2px 6px rgba(14,24,48,.08);
  --aa-f-body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  position:absolute;z-index:10010;background:var(--aa-surface);border:1px solid var(--aa-line);border-radius:12px;
  box-shadow:var(--aa-shadow-pop);padding:6px;box-sizing:border-box;text-align:left;
  font:14px/1.45 var(--aa-f-body);color:var(--aa-ink);
}
.aa-menu[hidden]{display:none}
.aa-menu svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.aa-menu .menu-head{font-size:10.5px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--aa-ink-4);padding:8px 10px 4px;overflow-wrap:anywhere}
.aa-menu .mi{display:flex;gap:11px;width:100%;box-sizing:border-box;text-align:left;border:0;background:transparent;border-radius:8px;padding:10px;align-items:flex-start;font:inherit;color:inherit;cursor:pointer;text-decoration:none}
.aa-menu .mi:hover,.aa-menu .mi:focus-visible{background:var(--aa-surface-2)}
.aa-menu .mi:focus-visible{outline:2px solid #1b66ff;outline-offset:-2px}
.aa-menu .mi > svg{width:18px;height:18px;margin-top:1px;color:var(--aa-navy);stroke-width:1.8}
.aa-menu .mi b{display:flex;align-items:center;gap:7px;font-size:13.5px;color:var(--aa-ink)}
.aa-menu .mi small{display:block;margin-top:2px;font-size:12px;font-weight:400;color:var(--aa-ink-3);line-height:1.35}
.aa-menu .pro{font-style:normal;font:700 9.5px/1 var(--aa-f-body);letter-spacing:.09em;background:var(--aa-teal);color:#fff;padding:3px 5px;border-radius:4px}
.aa-menu .mi-pro{background:var(--aa-teal-soft)}
.aa-menu .mi-pro:hover,.aa-menu .mi-pro:focus-visible{background:var(--aa-teal-soft-2)}
.aa-menu .mi-cta{display:inline-flex;align-items:center;gap:3px;margin-top:6px;font-size:12px;font-weight:700;color:var(--aa-teal-ink)}
.aa-menu .mi-cta svg{width:13px;height:13px}

/* ---------- the Apply for me panel (Task 6) ----------
   A centred window on desktop (like the upgrade window) and a bottom sheet at 640px or narrower. Every class
   starts with aa- because the jobs page already has .btn, .panel, .primary and .consent rules.
   z-index 10030/10031 keeps it above the map overlay (10000) and the menu (10010). */
.aa-scrim{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:10030;animation:aa-scrim-in .18s ease-out}
.aa-scrim[hidden],.aa-panel[hidden]{display:none}
html.aa-locked{overflow:hidden}
.aa-panel{
  --aa-surface:#ffffff;--aa-surface-2:#f8fafc;--aa-line:#e2e8f0;--aa-line-2:#cbd5e1;--aa-hair:#f1f5f9;
  --aa-ink:#0f172a;--aa-ink-h:#1e293b;--aa-ink-2:#334155;--aa-ink-3:#64748b;--aa-ink-4:#94a3b8;
  --aa-navy:#0b2a6f;--aa-navy-2:#081a45;--aa-blue:#1b66ff;--aa-focus-ring:rgba(27,102,255,.18);
  --aa-ok:#15803d;--aa-warn:#c2410c;
  --aa-f-body:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme:light;
  position:fixed;z-index:10031;inset:0;margin:auto;height:fit-content;width:min(560px,calc(100% - 48px));max-height:calc(100% - 48px);box-sizing:border-box;
  background:var(--aa-surface);border-radius:16px;box-shadow:0 25px 60px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden;
  animation:aa-pop .18s ease-out;
  padding-top:env(safe-area-inset-top,0px);padding-right:env(safe-area-inset-right,0px);padding-bottom:env(safe-area-inset-bottom,0px);
  font:14px/1.45 var(--aa-f-body);color:var(--aa-ink);text-align:left;-webkit-font-smoothing:antialiased;
}
.aa-panel *,.aa-panel *::before,.aa-panel *::after{box-sizing:border-box}
.aa-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.aa-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.aa-panel [hidden]{display:none!important}
/* :where() keeps these resets weaker than the classes below (.aa-primary, .aa-textlink, …). */
.aa-panel :where(button,input,select,textarea){font:inherit;color:inherit;color-scheme:light}
.aa-panel :where(button){cursor:pointer}
.aa-panel :focus-visible{outline:2px solid var(--aa-blue);outline-offset:2px}
.aa-panel svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.aa-panel a{color:var(--aa-blue)}
.aa-p-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--aa-line)}
.aa-p-head-main{min-width:0}
.aa-p-head h2{margin:0;font-size:17px;line-height:1.3;font-weight:700;color:var(--aa-ink-h)}
.aa-p-sub{margin:2px 0 0;font-size:13px;color:var(--aa-ink-3);overflow-wrap:anywhere}
.aa-x-close{flex:none;width:32px;height:32px;border-radius:8px;border:0;background:var(--aa-surface-2);display:grid;place-items:center;color:var(--aa-ink-3);padding:0}
.aa-x-close:hover{background:var(--aa-hair);color:var(--aa-ink-2)}
.aa-p-body{flex:1 1 auto;min-height:0;overflow:auto;padding:18px 20px 24px;display:grid;gap:22px;align-content:start}
.aa-p-foot{border-top:1px solid var(--aa-line);padding:14px 20px 16px;display:grid;gap:8px;background:var(--aa-surface)}
.aa-blk{display:grid;gap:10px;min-width:0}
.aa-blk-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.aa-blk-h{margin:0;font-size:13px;font-weight:700;color:var(--aa-ink-h)}
.aa-blk-p{margin:0;font-size:12.5px;color:var(--aa-ink-3);line-height:1.5;max-width:62ch}
.aa-textlink{border:0;background:none;padding:0;color:var(--aa-blue);font-weight:600;font-size:12.5px}
.aa-textlink:hover{text-decoration:underline}
.aa-file-main{display:grid;min-width:0;flex:1}
.aa-file-name{font-weight:500;color:var(--aa-ink);overflow-wrap:anywhere}
.aa-file-meta{font-size:13px;color:var(--aa-ink-3)}
.aa-upload{gap:10px;align-items:flex-start}
.aa-upload p{margin:0;color:var(--aa-ink-2)}
.aa-reading{display:flex;gap:10px;align-items:center;margin:0;font-size:12.5px;color:var(--aa-ink-2)}
.aa-spinner{width:14px;height:14px;border-radius:50%;border:2px solid var(--aa-line-2);border-top-color:var(--aa-navy);animation:aa-spin .8s linear infinite;flex:none;display:inline-block}
.aa-fgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px 16px}
.aa-fld{display:grid;gap:6px;min-width:0;align-content:start}
.aa-fld.aa-full{grid-column:1/-1}
.aa-fld label{font-size:13px;color:var(--aa-ink-3)}
.aa-fld input,.aa-fld select,.aa-type-add input{height:38px;width:100%;min-width:0;border:1px solid var(--aa-line-2);border-radius:8px;padding:0 12px;background:var(--aa-surface);font-size:14px;color:var(--aa-ink);margin:0}
.aa-fld input:focus,.aa-fld select:focus,.aa-type-add input:focus,.aa-letter-edit:focus,.aa-select select:focus{outline:none;border-color:var(--aa-blue);box-shadow:0 0 0 3px var(--aa-focus-ring)}
.aa-fld.aa-miss input,.aa-fld.aa-miss select{border-color:#c2410c}
.aa-hint{margin:0;font-size:12px;color:var(--aa-warn);line-height:1.4}
.aa-unit-wrap{position:relative;display:block}
.aa-unit-wrap input{padding-right:40px}
.aa-unit-wrap span{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:12px;color:var(--aa-ink-4);pointer-events:none}
.aa-skel{display:block;height:38px;border-radius:8px;background:var(--aa-hair)}
.aa-skel-lab{display:block;height:10px;width:40%;border-radius:4px;background:var(--aa-hair)}
.aa-fgrid.aa-loading .aa-skel{animation:aa-fade 1.2s ease-in-out infinite}
.aa-types-list{display:grid}
.aa-type-item{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 0;border-top:1px solid var(--aa-line)}
.aa-type-item:first-child{border-top:0;padding-top:0}
.aa-type-item b{font-weight:500;overflow-wrap:anywhere}
.aa-type-item span{flex:1;font-size:13px;color:var(--aa-ink-3)}
.aa-type-add{display:flex;gap:8px;flex-wrap:wrap}
.aa-type-add input{flex:1 1 120px;width:auto}
.aa-checks{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 16px}
.aa-check{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--aa-ink-2);cursor:pointer}
.aa-check input,.aa-consent input{width:16px;height:16px;accent-color:var(--aa-navy);margin:0;flex:none}
.aa-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--aa-ink-2);line-height:1.45;cursor:pointer}
.aa-consent input{margin-top:2px}
.aa-consent b{font-weight:600;overflow-wrap:anywhere}
.aa-consent small{display:block;font-size:12.5px;color:var(--aa-ink-3)}
.aa-consent-blk{display:grid;gap:8px;margin-top:12px}
/* The choice between the application address and his own email: the consent line's parts, one per option. Under the
   Email row's address it spans the value and the Change column; in the consent block it is the block's first part. */
.aa-choice{display:grid;gap:10px;margin-top:12px;min-width:0}
.aa-consent-blk > .aa-choice,.aa-row-open .aa-choice{margin-top:0}
.aa-choice .aa-row-note{margin:0}
.aa-choice-addr{color:var(--aa-ink-2);overflow-wrap:anywhere}
.aa-choice .aa-consent b{text-wrap:pretty}
.aa-choice .aa-consent small,.aa-choice .aa-hint{text-wrap:pretty}
.aa-choice .aa-consent:has(input:disabled){cursor:default}
/* An address or a bracket kept whole: it moves to the next line as one piece, and wraps inside itself (an address
   after its @) only when the line is narrower than it. */
.aa-keep{display:inline-block;max-width:100%;text-indent:0;vertical-align:top}
/* The Email row with Change: the lines under the address take the row's whole width, under the link too. Open, the
   options start on the row's first line, Cancel at the right of the first option's label. */
.aa-row-wide{grid-column:2/-1}
.aa-row-open{align-items:start}
.aa-row-open > .aa-textlink{grid-column:3;grid-row:1;position:relative;z-index:1}
.aa-row-open > .aa-row-wide{grid-row:1}
.aa-row-open .aa-choice > .aa-consent:first-child b{display:block;padding-right:64px}
.aa-more{margin:0 0 0 26px}
.aa-more summary{cursor:pointer;width:max-content;max-width:100%;font-size:13px;font-weight:500;color:var(--aa-blue)}
.aa-more-text{display:grid;gap:8px;margin-top:8px}
.aa-more-text p{margin:0;font-size:13px;line-height:1.55;color:var(--aa-ink-3)}
.aa-more-text b{font-weight:600;color:var(--aa-ink);overflow-wrap:anywhere}
.aa-warn-text{color:var(--aa-warn)}
/* The one filled button of the window (drawing 6.3). */
.aa-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 20px;border:0;border-radius:6px;background:var(--aa-navy);color:#fff;font-weight:600;font-size:14px;margin:0;white-space:nowrap}
.aa-primary:hover{background:var(--aa-navy-2)}
.aa-primary:disabled,.aa-primary[aria-disabled="true"]{background:var(--aa-line);color:var(--aa-ink-4);cursor:not-allowed}
.aa-foot-status{margin:0 auto 0 0;flex:1 1 180px;min-width:0;font-size:13px;line-height:1.45;color:var(--aa-warn)}
.aa-foot-status:empty{display:none}
.aa-foot-btns{display:flex;align-items:center;gap:20px;margin-left:auto}
.aa-f-cancel{border:0;background:none;padding:0;margin:0;font-size:14px;font-weight:500;color:var(--aa-ink-2)}
.aa-f-cancel:hover{text-decoration:underline}
.aa-kv{margin:0;display:grid;grid-template-columns:88px minmax(0,1fr);row-gap:6px;column-gap:16px;align-items:baseline}
.aa-kv dt{font-size:13px;color:var(--aa-ink-3)}
.aa-kv dd{margin:0;color:var(--aa-ink);overflow-wrap:anywhere}
.aa-btn{height:40px;padding:0 16px;border-radius:8px;border:1px solid var(--aa-line-2);background:var(--aa-surface);font-weight:600;font-size:13px;color:var(--aa-ink-2);margin:0;justify-self:start}
.aa-btn:hover{background:var(--aa-surface-2)}
.aa-btn.aa-solid{background:var(--aa-navy);border-color:var(--aa-navy);color:#fff}
.aa-btn.aa-solid:hover{background:var(--aa-navy-2)}
.aa-btn:disabled{opacity:.45;cursor:not-allowed}
.aa-btn-row{display:flex;flex-wrap:wrap;gap:8px}
.aa-cover-upload,.aa-letter-wrap{display:grid;gap:8px;margin-top:12px}
.aa-cover-file{display:flex;align-items:baseline;gap:12px;min-width:0}
.aa-sr-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.aa-sub-h{margin:0;font-size:12.5px;font-weight:700;color:var(--aa-ink-h)}
.aa-letter{border:1px solid var(--aa-line);border-radius:6px;padding:10px 12px;background:var(--aa-surface);white-space:pre-wrap;overflow-wrap:anywhere;font-size:12.5px;line-height:1.5;color:var(--aa-ink);max-height:230px;overflow:auto}
.aa-letter-edit{width:100%;min-height:220px;border:1px solid var(--aa-line-2);border-radius:8px;padding:10px 12px;font:13px/1.5 var(--aa-f-body);color:var(--aa-ink);background:var(--aa-surface);resize:vertical;margin:0}
.aa-done-line{border-left:3px solid var(--aa-ok);padding:2px 0 2px 12px;margin:0;font-size:13px;color:var(--aa-ink-2)}
@keyframes aa-spin{to{transform:rotate(360deg)}}
@keyframes aa-fade{0%,100%{opacity:1}50%{opacity:.55}}
@keyframes aa-pop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}
@keyframes aa-scrim-in{from{opacity:0}to{opacity:1}}
@media (min-width:641px){
  .aa-panel.aa-form{width:min(770px,calc(100% - 48px));border-radius:12px;box-shadow:0 24px 60px rgba(8,26,69,.30)}
}
/* ---------- Apply for me: the window of drawing 6.3 (owner's choice, 11-13) ----------
   A grey pane on the left (the job and the three steps) and the application on the right: rows split by hairlines,
   a label column of 88px, no boxes around sections. One column below 760px; a bottom sheet at 640px or narrower. */
.aa-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.aa-step{display:grid;grid-template-columns:11px minmax(0,1fr);column-gap:14px}
.aa-step-mark{display:flex;flex-direction:column;align-items:center;padding-top:6px}
.aa-step-dot{flex:none;width:11px;height:11px;border-radius:50%;border:1.5px solid var(--aa-ink-3);background:var(--aa-surface)}
.aa-step-now .aa-step-dot{border:0;background:var(--aa-ink)}
.aa-step-line{flex:1;width:1px;margin-top:6px;background:var(--aa-line-2)}
/* A long word wraps inside its own column, never out of the window. */
.aa-step-text{min-width:0;overflow-wrap:anywhere}
.aa-step-text h3{margin:0;font-size:15px;line-height:22px;font-weight:600;color:var(--aa-ink);text-wrap:balance}
.aa-step-text p{margin:2px 0 0;font-size:14px;line-height:21px;color:var(--aa-ink-2);text-wrap:pretty}
.aa-form{line-height:1.5}
.aa-form .aa-content{display:grid;grid-template-columns:300px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.aa-f-side{min-height:0;overflow:auto;display:flex;flex-direction:column;background:var(--aa-surface-2);border-right:1px solid var(--aa-line);padding:25px 28px 28px}
.aa-f-kicker{font-size:13px;line-height:24px;font-weight:500;color:var(--aa-ink-3)}
.aa-f-side h2{margin:8px 0 0;font-size:22px;line-height:28px;font-weight:600;letter-spacing:-.02em;color:var(--aa-ink);overflow-wrap:anywhere}
.aa-f-org{margin:4px 0 0;font-size:15px;line-height:22px;color:var(--aa-ink-2);overflow-wrap:anywhere}
.aa-f-side .aa-steps{margin:28px 0 0;padding:32px 0 0;border-top:1px solid var(--aa-line)}
/* The 24px are inside the drawn 128px (border-box): they only show once a step's text is taller, so it never meets the next heading. */
.aa-f-side .aa-step:not(:last-child) .aa-step-text{min-height:128px;padding-bottom:24px}
.aa-f-main{display:flex;flex-direction:column;min-width:0;min-height:0}
.aa-form .aa-p-head{flex:none;align-items:center;padding:20px 16px 0 28px;border-bottom:0}
.aa-f-h{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--aa-ink)}
.aa-form .aa-x-close{border-radius:6px;background:none}
.aa-form .aa-x-close svg{width:18px;height:18px}
.aa-form .aa-x-close:hover{background:none;color:var(--aa-ink-2)}
.aa-form .aa-p-body{flex:1 1 auto;display:flex;flex-direction:column;gap:0;padding:10px 28px 0}
.aa-form .aa-p-body:last-child{padding-bottom:28px}
.aa-form .aa-p-body > .aa-btn-row{margin-top:14px}
.aa-form .aa-p-body > .aa-fgrid{margin-top:14px}
.aa-form .aa-p-foot{flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px 20px;padding:24px 28px;border-top:0;background:var(--aa-surface)}
.aa-form .aa-blk-p{font-size:13px}
.aa-form .aa-textlink{font-size:13px;font-weight:500}
.aa-form .aa-textlink:disabled{color:var(--aa-ink-3);text-decoration:none;cursor:default}
.aa-form .aa-btn{align-self:flex-start;height:38px;padding:0 14px;font-size:14px;font-weight:500;color:var(--aa-ink)}
.aa-form .aa-reading{margin-top:10px;font-size:13px}
.aa-form .aa-letter{font-size:13px;border-radius:8px}
.aa-form .aa-sub-h{font-size:13px;font-weight:600;color:var(--aa-ink)}
.aa-row{display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:16px;align-items:baseline;padding:13px 0;border-bottom:1px solid var(--aa-line)}
.aa-row-link{grid-template-columns:88px minmax(0,1fr) auto}
.aa-row-top{align-items:start;padding:14px 0}
.aa-row-top .aa-row-lab{padding-top:10px}
.aa-row-lab{font-size:13px;color:var(--aa-ink-3)}
.aa-row-val{min-width:0;display:flex;flex-direction:column;overflow-wrap:anywhere}
.aa-row-main{font-weight:500;color:var(--aa-ink);overflow-wrap:anywhere}
.aa-row-note{margin:3px 0 0;font-size:13px;line-height:19px;color:var(--aa-ink-3);text-wrap:pretty}
.aa-row-top .aa-row-note{margin-top:6px;line-height:18px}
.aa-row-note.aa-warn-text{color:var(--aa-warn)}
.aa-select{position:relative;display:block;min-width:0;max-width:100%}
.aa-select select,.aa-fld .aa-select select{appearance:none;-webkit-appearance:none;display:block;width:100%;height:38px;margin:0;padding:0 36px 0 12px;border:1px solid var(--aa-line-2);border-radius:8px;background:var(--aa-surface);font-size:14px;color:var(--aa-ink);cursor:pointer;min-width:0;max-width:100%;text-overflow:ellipsis}
.aa-fld.aa-miss .aa-select select{border-color:#c2410c}
.aa-select .aa-select-chev{position:absolute;right:12px;top:11px;width:16px;height:16px;color:var(--aa-ink-3);pointer-events:none}
.aa-f-sec{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:16px 0 6px}
.aa-f-sec-h{margin:0;font-size:13px;line-height:20px;font-weight:600;color:var(--aa-ink)}
.aa-f-more{align-self:flex-start;margin:10px 0 0;line-height:20px}
.aa-f-grp{display:flex;flex-direction:column;gap:10px;padding:0 0 18px;border-bottom:1px solid var(--aa-line)}
.aa-f-grp:last-child{border-bottom:0}
.aa-f-grp > .aa-f-sec{padding-bottom:0}
@media (max-width:759px){
  .aa-form .aa-content{display:block;overflow:auto;overscroll-behavior:contain}
  .aa-f-side{overflow:visible;border-right:0;border-bottom:1px solid var(--aa-line);padding:20px 20px 22px}
  .aa-f-side .aa-steps{margin-top:18px;padding-top:20px}
  .aa-f-side .aa-step:not(:last-child) .aa-step-text{min-height:0;padding-bottom:16px}
  .aa-form .aa-p-head{padding:16px 12px 0 20px}
  .aa-form .aa-p-body{padding:6px 20px 0}
  .aa-form .aa-p-body:last-child{padding-bottom:24px}
  /* The footer stays on screen while the window scrolls, so Apply for me is always in reach. */
  /* The right pane's parts join the one scrolling column, so the sticky footer is held by the whole window (a tall
     grey block above can never push it below the screen). */
  .aa-f-main{display:contents}
  .aa-form .aa-p-foot{position:sticky;bottom:0;z-index:1;padding:14px 20px;border-top:1px solid var(--aa-line)}
  /* Close sits in the window's top right corner and stays there while the window scrolls. */
  .aa-form .aa-x-close{position:absolute;z-index:2;top:12px;right:12px;background:rgba(248,250,252,.92)}
  .aa-form .aa-x-close:hover{background:rgba(248,250,252,.92)}
  /* Only the lines at the top can run under Close; the hairline and the steps keep the 20px margin. */
  .aa-f-kicker,.aa-f-side h2,.aa-f-org{margin-right:32px}
}
@media (max-width:400px){
  .aa-row,.aa-kv{grid-template-columns:80px minmax(0,1fr);column-gap:12px}
  .aa-row-link{grid-template-columns:80px minmax(0,1fr) auto}
}
@media (max-width:640px){
  .aa-panel{top:auto;left:0;width:100%;height:auto;margin:0;animation:none;overflow:visible;max-height:calc(100% - 24px - env(safe-area-inset-top,0px));border-radius:14px 14px 0 0;padding-left:env(safe-area-inset-left,0px);box-shadow:0 10px 30px rgba(15,23,42,.14)}
  .aa-panel::before{content:"";display:block;width:36px;height:4px;border-radius:2px;background:var(--aa-line-2);margin:8px auto 0;flex:none}
  .aa-p-head{padding:12px 16px}
  .aa-p-body{padding:14px 16px 20px}
  .aa-p-foot{padding:10px 16px 12px}
}
@media (max-width:400px){
  .aa-fgrid,.aa-checks{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){
  .aa-panel,.aa-scrim{animation:none!important}
  .aa-panel *,.aa-panel *::before,.aa-panel *::after{animation:none!important;transition:none!important}
}

/* ---------- Applications (Task 7) ----------
   The header button, the Applications panel (the same 480px side panel and bottom sheet as Apply for me, one layer
   higher, so it can open over that panel), its lists, the detail with the live view, and the notice at the bottom.
   z-index: scrim 10040, panel 10041, notice 10050. */
.aa-apps-btn{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px;margin:0;border:1px solid #cbd5e1;border-radius:8px;background:#fff;
  font:600 13px/1 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;color:#0b2a6f;white-space:nowrap;cursor:pointer;box-sizing:border-box;flex:none}
.aa-apps-btn[hidden]{display:none}
.aa-apps-btn:hover{border-color:#0b2a6f}
.aa-apps-btn:focus-visible{outline:2px solid #1b66ff;outline-offset:2px}
.aa-apps-btn .aa-count{min-width:20px;padding:0 6px;border-radius:10px;background:#0b2a6f;color:#fff;font-size:11.5px;font-weight:700;line-height:20px;text-align:center;box-sizing:border-box}
.aa-apps-btn.aa-is-needs{background:#c2410c;border-color:#c2410c;color:#fff}
.aa-apps-btn.aa-is-needs .aa-count{background:#fff;color:#c2410c}
html.aa-apps-locked{overflow:hidden}
.aa-scrim.aa-apps-scrim{z-index:10040}
@media (min-width:641px){.aa-panel.aa-apps{width:min(720px,calc(100% - 48px))}.aa-panel.aa-apps.aa-has-live{width:min(1100px,calc(100% - 48px))}}
.aa-panel.aa-apps{z-index:10041;--aa-bad:#b91c1c;--aa-blue-ink:#1d4ed8;--aa-f-mono:"JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace}
.aa-apps .aa-p-head-main{display:grid;gap:8px}
.aa-apps .aa-back{justify-self:start}
.aa-apps a.aa-btn{display:inline-flex;align-items:center;text-decoration:none}
.aa-apps .aa-btn .aa-spinner{margin-right:8px;vertical-align:-2px}
.aa-grp{display:grid;gap:8px}
.aa-grp-h{margin:0;font-size:12px;font-weight:600;color:var(--aa-ink-3)}
.aa-alist{border:1px solid var(--aa-line);border-radius:8px;overflow:hidden}
.aa-arow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;text-align:left;background:var(--aa-surface);border:0;border-top:1px solid var(--aa-hair);padding:11px 12px;margin:0;border-radius:0}
.aa-alist .aa-arow:first-child{border-top:0}
.aa-arow:hover{background:var(--aa-surface-2)}
.aa-arow:focus-visible{outline-offset:-2px}
.aa-arow b{display:block;font-size:13px;color:var(--aa-ink);overflow-wrap:anywhere}
.aa-arow small{display:block;font-size:12px;color:var(--aa-ink-3);margin-top:1px;overflow-wrap:anywhere}
.aa-st{font-size:12px;font-weight:600;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.aa-st::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.aa-st-inline,.aa-st-stopped{color:var(--aa-ink-3)}
.aa-st-filling,.aa-st-submitting{color:var(--aa-blue-ink)}
.aa-st-needs{color:var(--aa-warn)}
.aa-st-submitted{color:var(--aa-ok)}
.aa-st-failed{color:var(--aa-bad)}
.aa-empty{border:1px dashed var(--aa-line-2);border-radius:8px;padding:20px 16px;text-align:center;color:var(--aa-ink-3);font-size:13px;margin:0}
.aa-dstatus{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin:0;font-size:13px;color:var(--aa-ink-2)}
.aa-dstatus:focus{outline:none}
.aa-dstatus .aa-st{flex:none}
.aa-cd{font-family:var(--aa-f-mono);font-size:12px;color:var(--aa-warn)}
.aa-live{position:relative;border:1px solid var(--aa-line);border-radius:10px;overflow:hidden;background:#fff}
.aa-live-top{display:flex;justify-content:space-between;align-items:center;gap:10px;height:38px;padding:0 6px 0 12px;border-bottom:1px solid var(--aa-line);background:#f8fafc;font-size:12.5px;color:var(--aa-ink-3)}
.aa-live-site{display:flex;align-items:center;gap:7px;min-width:0;color:var(--aa-ink-2)}
.aa-live-site svg{color:var(--aa-ink-4)}
.aa-live-url{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.aa-live-end{display:flex;align-items:center;gap:6px;flex:none}
.aa-live-label{font-weight:600;color:var(--aa-ink-2);white-space:nowrap}
.aa-live-big{width:30px;height:30px;border:0;border-radius:6px;background:transparent;color:var(--aa-ink-3);display:grid;place-items:center;padding:0;margin:0}
.aa-live-big:hover{background:var(--aa-hair);color:var(--aa-ink-2)}
.aa-live-big .aa-ic-shrink,.aa-big .aa-live-big .aa-ic-expand,.aa-live:fullscreen .aa-live-big .aa-ic-expand{display:none}
.aa-big .aa-live-big .aa-ic-shrink,.aa-live:fullscreen .aa-live-big .aa-ic-shrink{display:block}
/* The frame hugs the picture: 16:9 like the bot's browser, as large as the window allows, in the middle. The stage is
   light behind the picture; 100cqw/100cqh are the stage's own size, so the picture keeps its shape. The 340px are what
   the window needs besides the stage (its margins, the heading, the status line and the buttons). */
.aa-apps .aa-live{--aa-live-cap:max(180px,calc(100vh - 48px - 340px));width:min(100%,calc(var(--aa-live-cap) * 16 / 9));margin-inline:auto}
.aa-live-host{background:#f1f5f9;width:100%;aspect-ratio:16/9;
  container-type:size;display:flex;align-items:center;justify-content:center}
/* Multi Apply's LiveBrowser draws its own frame, a status pill (its first child) and a red border while he has
   control. Inside Applications the live view is the plain stage: the site's address and "Live" above it, and the
   request's own words below. Scoped here, so Multi Apply keeps its look. */
.aa-live-host > div{border:0!important;box-shadow:none!important;border-radius:0!important;margin:0!important;max-height:100cqh}
.aa-live-host > div > div:first-child{display:none!important}
.aa-live-host canvas{max-height:100cqh}
.aa-live-fail{margin:0;padding:18px 16px;text-align:center;font-size:13px;color:var(--aa-ink-2)}
.aa-live-fail .aa-textlink{color:var(--aa-blue)}
.aa-live-wait{border:1px dashed var(--aa-line-2);border-radius:8px;padding:18px 16px;text-align:center;color:var(--aa-ink-3);font-size:13px;margin:0}
.aa-review{border:1px solid var(--aa-line);border-radius:8px;padding:12px 14px;display:grid;gap:8px;font-size:13px;color:var(--aa-ink-2)}
.aa-review h3{margin:0;font-size:13px;color:var(--aa-ink-h)}
.aa-review p{margin:0}
.aa-review-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.aa-review-list li{color:var(--aa-ink);overflow-wrap:anywhere}
.aa-review-list span{color:var(--aa-ink-3)}
/* A code request: the form's own field (aa-fld) with Send beside it, at the field's height. */
.aa-code-row{display:flex;gap:8px;align-items:center;min-width:0}
.aa-code-row input{flex:1 1 auto;width:auto}
.aa-apps .aa-code-row .aa-btn{height:38px;flex:none}
.aa-code input[aria-invalid="true"]{border-color:var(--aa-warn)}
/* The label, the field and Send at most 30rem wide, left-aligned: a code is short. The request's own sentence and the
   field's line wrap with pretty (new texts only). */
.aa-apps .aa-code{max-width:30rem}
#aaAppsActions .aa-callout:has(+ .aa-code),#aaAppsCodeErr .aa-hint{text-wrap:pretty}
/* While a code request is open (and only then) the status line with the countdown stays at the top of the scrolling
   body, on the window's own background and above the live view. The negative margins give back exactly the padding it
   takes, so where nothing scrolls the detail is laid out as before. A sticky box stops at the body's content edge, so
   top is minus the body's top padding: stuck, the box fills that padding and its words sit where they always do. */
#aaAppsBody.aa-code-open > #aaAppsStatus{position:sticky;top:-18px;z-index:2;background:var(--aa-surface);margin:-18px -20px -10px;padding:18px 20px 10px}
@media (max-width:640px){
  #aaAppsBody.aa-code-open > #aaAppsStatus{top:-14px;margin:-14px -16px -10px;padding:14px 16px 10px}
}
.aa-apps .aa-textlink:disabled{color:var(--aa-ink-3);text-decoration:none;cursor:default}
.aa-callout{border-left:3px solid var(--aa-warn);padding:2px 0 2px 12px;margin:0;font-size:13px;color:var(--aa-ink-2);white-space:pre-wrap;overflow-wrap:anywhere}
.aa-btn.aa-approve{background:var(--aa-ok);border-color:var(--aa-ok);color:#fff}
.aa-btn.aa-danger{background:var(--aa-bad);border-color:var(--aa-bad);color:#fff}
.aa-toast{position:fixed;z-index:10050;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));width:min(560px,calc(100% - 32px));box-sizing:border-box;
  background:#0f172a;color:#fff;border-radius:10px;padding:10px 10px 10px 16px;display:flex;align-items:center;gap:10px;
  font:13px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;box-shadow:0 10px 30px rgba(15,23,42,.14);text-align:left}
.aa-toast[hidden]{display:none}
.aa-toast [hidden]{display:none}
.aa-t-text{flex:1;min-width:0;overflow-wrap:anywhere}
.aa-t-act{border:1px solid rgba(255,255,255,.35);border-radius:6px;background:transparent;color:#fff;font-family:inherit;font-size:12.5px;font-weight:600;line-height:1;height:30px;padding:0 12px;margin:0;flex:none;cursor:pointer}
.aa-t-act:hover{background:#334155}
.aa-t-x{border:0;background:none;color:#94a3b8;width:30px;height:30px;border-radius:6px;display:grid;place-items:center;flex:none;cursor:pointer;padding:0;margin:0}
.aa-t-x:hover{color:#fff}
.aa-t-act:focus-visible,.aa-t-x:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
.aa-toast svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Multi Apply's click ring in the live view (multiapply/index.html has the same). */
@keyframes lb-click-ripple{0%{opacity:.95;transform:scale(.5)}50%{opacity:.7;transform:scale(1.1)}100%{opacity:0;transform:scale(1.8)}}
/* Enlarged on a computer: the live view itself fills the screen (the browser's full screen; Esc leaves it). Where the
   browser cannot (a phone), the window fills the screen less 16px on each side and the picture takes what the status
   line and the buttons leave, still 16:9. The picture is resized by the live view's own observer. */
.aa-apps .aa-live:fullscreen{width:100%;height:100%;margin:0;border:0;border-radius:0;display:flex;flex-direction:column;background:#f1f5f9}
.aa-apps .aa-live:fullscreen .aa-live-top{flex:none}
.aa-apps .aa-live:fullscreen .aa-live-host{flex:1 1 0;min-height:0;aspect-ratio:auto;width:100%}
@media (min-width:641px){
  .aa-panel.aa-apps.aa-big{inset:16px;margin:0;width:auto;height:auto;max-height:none}
}
@media (max-width:640px){
  .aa-apps .aa-live{--aa-live-cap:max(160px,calc(100vh - 24px - 340px))}
  .aa-panel.aa-apps.aa-big{top:0;bottom:0;height:100%;max-height:100%;border-radius:0}
  .aa-panel.aa-apps.aa-big::before{display:none}
}
.aa-apps.aa-big .aa-p-body{display:flex;flex-direction:column;gap:14px}
.aa-apps.aa-big .aa-p-body > *{flex:none}
.aa-apps.aa-big #aaAppsLiveSlot{flex:1 1 0;min-height:280px;display:flex;flex-direction:column;container-type:size}
.aa-apps.aa-big #aaAppsLiveSlot[hidden]{display:none}
.aa-apps.aa-big .aa-live{flex:none;width:min(100cqw,calc((100cqh - 41px) * 16 / 9));margin-inline:auto}
.aa-apps.aa-big .aa-live-top{flex:none}
.aa-apps.aa-big .aa-live-host{aspect-ratio:16/9;width:100%}
/* ---------- Applications: an application he stopped himself (drawing 7.4) ----------
   The back link and Close on one line, the job, then the three steps with the stop marked on the second. */
@media (min-width:641px){
  .aa-panel.aa-apps.aa-stopped{width:min(520px,calc(100% - 48px));border-radius:12px;box-shadow:0 24px 60px rgba(8,26,69,.30)}
}
.aa-apps.aa-stopped .aa-p-head{display:block;padding:18px 16px 0 28px;border-bottom:0}
.aa-stop-top{display:flex;align-items:center;justify-content:space-between;height:32px}
.aa-apps.aa-stopped .aa-back{display:inline-flex;align-items:center;gap:2px;margin-left:-4px;font-size:13px;line-height:20px;font-weight:500}
.aa-apps.aa-stopped .aa-back svg{width:16px;height:16px;stroke-width:2.25}
.aa-apps.aa-stopped .aa-x-close{border-radius:6px;background:none}
.aa-apps.aa-stopped .aa-x-close svg{width:18px;height:18px}
.aa-apps.aa-stopped .aa-x-close:hover{background:none;color:var(--aa-ink-2)}
.aa-apps.aa-stopped .aa-p-head h2{margin:6px 12px 0 0;font-size:20px;line-height:26px;font-weight:600;letter-spacing:-.015em;color:var(--aa-ink);overflow-wrap:anywhere}
.aa-apps.aa-stopped .aa-p-sub{margin:2px 0 0;font-size:14px;line-height:20px;color:#475569}
.aa-apps.aa-stopped .aa-p-body{display:block;padding:0 28px 24px;line-height:1.5}
.aa-apps.aa-stopped #aaAppsActions{display:block}
.aa-stop-steps{margin:24px 0 0;padding:24px 0 0;border-top:1px solid var(--aa-line)}
.aa-stop-steps:focus{outline:none}
.aa-stop-steps .aa-step:not(:last-child) .aa-step-text{padding-bottom:30px}
.aa-step-stop .aa-step-dot{width:10px;height:10px;margin-top:.5px;border:0;border-radius:2px;background:var(--aa-ink)}
.aa-step-stop .aa-step-line{width:0;background:none;border-left:1px dashed var(--aa-line-2)}
.aa-step-pale .aa-step-dot{border-color:var(--aa-line-2)}
.aa-step-pale .aa-step-text h3{color:var(--aa-ink-4)}
.aa-stop-steps .aa-step-text p{margin:0;color:#475569}
.aa-stop-steps .aa-step-text .aa-step-strong{margin-top:4px;font-weight:500;color:var(--aa-ink)}
.aa-stop-foot{display:flex;justify-content:flex-end;padding-top:28px}
.aa-stop-foot .aa-btn{height:40px;padding:0 20px;border-radius:6px;font-size:14px;font-weight:600}
@media (max-width:640px){
  .aa-apps.aa-stopped .aa-p-head{padding:14px 12px 0 20px}
  .aa-apps.aa-stopped .aa-p-body{padding:0 20px 20px}
}
