/* Join the team (player area) and the pixel artwork of applications. Colours and corners come from the active design
 * (custom properties of base.css and /brand/theme.css), so the page fits every design. --team is the colour of a team. */

img.px { image-rendering: pixelated; image-rendering: crisp-edges; width: 16px; height: 16px; flex: none; vertical-align: middle; }
img.px.xs { width: 14px; height: 14px; }
img.px.sm { width: 20px; height: 20px; }
img.px.lg { width: 40px; height: 40px; }
img.px.xl { width: 64px; height: 64px; }

.ap { --team: var(--diamond); }

/* ---------- hero ---------- */
.ap-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--outline), var(--shadow-s);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background: #4f8eea;
}
.ap-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; image-rendering: pixelated; }
.ap-hero-text {
  position: relative;
  margin: 18px;
  padding: 20px 22px;
  max-width: 560px;
  border-radius: var(--radius);
  background: rgb(10 14 24 / 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}
.ap-hero-text h1 { margin: 6px 0 8px; color: #fff; }
.ap-lead { margin: 0 0 14px; color: #e3e9f5; font-size: 1.05rem; }
.ap-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffe08a; }
.ap-hero .btn.ghost { color: #fff; }
@media (max-width: 600px) {
  .ap-hero { min-height: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); }
  .ap-hero-art { position: static; height: 150px; }
  .ap-hero-text { margin: 0; border-radius: 0; background: var(--bg-2); color: var(--ink); max-width: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ap-hero-text h1 { color: var(--ink); }
  .ap-lead { color: var(--ink-2); }
  .ap-eyebrow { color: var(--gold-2); }
  .ap-hero .btn.ghost { color: var(--ink-2); }
  .ap-hero .row .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- status of an application ---------- */
.ap-status {
  --tone: var(--info);
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 16%, var(--bg-2)), var(--bg-2) 60%);
  box-shadow: var(--outline), inset 0 0 0 1px color-mix(in srgb, var(--tone) 35%, transparent), var(--shadow-s);
}
.ap-status.tone-warn { --tone: var(--gold); }
.ap-status.tone-trial { --tone: var(--amethyst); }
.ap-status.tone-ok { --tone: var(--ok); }
.ap-status.tone-calm { --tone: var(--grass-2); }
.ap-status-head { display: flex; gap: 18px; align-items: flex-start; }
.ap-status-icon {
  flex: none;
  width: 92px; height: 92px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--tone) 18%, var(--bg-1));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tone) 40%, transparent);
}
.ap-status-icon img { animation: ap-bob 3.2s ease-in-out infinite; }
.ap-status-scene { flex: none; width: 240px; max-width: 42%; border-radius: var(--radius-s); image-rendering: pixelated; box-shadow: var(--outline); }
.ap-status-title { margin: 0; font-size: 1.5rem; color: var(--ink); }
.ap-team-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: color-mix(in srgb, var(--team) var(--team-ink-mix, 100%), var(--ink)); }
.ap-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.ap-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 22%, transparent); color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.ap-chip .icon { width: 16px; height: 16px; }
.ap-bar { height: 10px; border-radius: 999px; background: var(--bg-1); overflow: hidden; box-shadow: var(--sunk); }
.ap-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amethyst), color-mix(in srgb, var(--amethyst) 60%, #fff)); }
@keyframes ap-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .ap-status-icon img { animation: none; } }
@media (max-width: 600px) {
  .ap-status { padding: 16px; }
  .ap-status-head { flex-direction: column; gap: 12px; }
  .ap-status-icon { width: 72px; height: 72px; }
  .ap-status-icon img.px.xl { width: 48px; height: 48px; }
  .ap-status-scene { width: 100%; max-width: none; }
  .ap-status-title { font-size: 1.3rem; }
}

/* the five steps */
.ap-stepper { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.ap-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 2px; }
.ap-step::before { content: ""; position: absolute; top: 19px; left: -50%; right: 50%; height: 3px; background: var(--bg-4); z-index: 0; }
.ap-step:first-child::before { display: none; }
.ap-step.done::before, .ap-step.now::before, .ap-step.skip::before, .ap-step.end::before { background: var(--ok); }
.ap-step-dot {
  position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-3); box-shadow: 0 0 0 3px var(--bg-2);
}
.ap-step-dot .icon { width: 20px; height: 20px; color: var(--c-on-ok); stroke-width: 3; }
.ap-step.todo .ap-step-dot img { opacity: 0.45; filter: grayscale(1); }
.ap-step.done .ap-step-dot { background: var(--ok); }
.ap-step.now .ap-step-dot { background: color-mix(in srgb, var(--tone) 30%, var(--bg-3)); box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 5px var(--tone); }
.ap-step.skip .ap-step-dot { background: var(--bg-3); }
.ap-step.skip .ap-step-dot img { opacity: 0.35; }
.ap-step.end .ap-step-dot { background: color-mix(in srgb, var(--grass-2) 30%, var(--bg-3)); }
.ap-step-label { font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.ap-step.now .ap-step-label { color: var(--ink); }
.ap-step.todo .ap-step-label { color: var(--ink-3); }
.ap-step-date { font-size: 0.74rem; color: var(--ink-3); min-height: 1em; }
@media (max-width: 600px) {
  .ap-step-dot { width: 34px; height: 34px; }
  .ap-step::before { top: 16px; }
  .ap-step-label { font-size: 0.72rem; }
  .ap-step-date { display: none; }
}

/* questions of the team and the answers */
.ap-thread-wrap { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.ap-thread-wrap h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--ink-2); }
.ap-thread { display: flex; flex-direction: column; gap: 8px; }
.ap-msg { max-width: min(80%, 560px); padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--bg-3); }
.ap-msg.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: color-mix(in srgb, var(--grass) 35%, var(--bg-3)); }
.ap-msg-meta { font-size: 0.78rem; color: var(--ink-3); margin-bottom: 2px; }
.ap-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.ap-reply { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.ap-reply textarea { flex: 1; min-height: 44px; font-size: 16px; }
@media (max-width: 600px) { .ap-msg { max-width: 92%; } }

/* ---------- how it works ---------- */
.ap-how h2 { margin-bottom: 18px; }
.ap-how-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ap-how-list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.ap-how-art { position: relative; width: 72px; height: 72px; display: grid; place-items: center; border-radius: var(--radius); background: var(--bg-3); box-shadow: var(--bevel); }
.ap-how-n { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; background: var(--gold); color: var(--c-on-warn); }
@media (max-width: 860px) {
  .ap-how-list { grid-template-columns: 1fr; gap: 12px; }
  .ap-how-list li { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 14px; text-align: left; align-items: center; }
  .ap-how-art { width: 56px; height: 56px; grid-row: span 2; }
  .ap-how-art img.px.lg { width: 32px; height: 32px; }
}

/* ---------- teams ---------- */
.ap-team-art { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: var(--radius); background: color-mix(in srgb, var(--team) 20%, var(--bg-1)); }
.ap-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ap-reqs li { display: flex; gap: 8px; align-items: flex-start; }
.ap-reqs li img { margin-top: 4px; }
.ap-form { padding-top: 6px; }
.ap-form label { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.ap-form textarea { width: 100%; font-size: 16px; }
.ap-qn { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; background: var(--team); color: #0b1020; }
.ap-closed { text-align: center; }
.ap-sign { width: 128px; height: 128px; image-rendering: pixelated; margin: 8px auto 0; display: block; }

/* ---------- perks and FAQ ---------- */
.ap-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ap-perk { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .ap-perks { grid-template-columns: 1fr; } }
.ap-faq { border-top: 1px solid var(--line-2); padding: 12px 0 4px; }
.ap-faq summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.ap-faq[open] summary { margin-bottom: 6px; }
/* 7.23.0: earlier applications – one row each, a coloured line on the left (accepted green, the rest calm) */
.ap-hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-hist { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: rgb(var(--lite-rgb, 255 255 255) / 0.04); border-left: 3px solid var(--line-2); }
.ap-hist.st-accepted { border-left-color: var(--ok-bg, var(--grass-2)); }
.ap-hist .ap-team-art { width: 40px; height: 40px; border-radius: 12px; }
.ap-hist-main { min-width: 0; display: grid; gap: 2px; }
.ap-hist-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-hist-note { color: var(--ink-2); font-style: italic; overflow-wrap: anywhere; }
@media (max-width: 520px) { .ap-hist { grid-template-columns: 40px minmax(0, 1fr); } .ap-hist > .btn { grid-column: 2; justify-self: start; } }

/* =====================================================================================================================
 * Team area → Applications: the board (one column per phase) and the detail panel
 * ===================================================================================================================== */
.ap-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--team, var(--diamond)); flex: none; }
.apb-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.apb-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apb-team { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--ink-3); }
.apb-stars { color: var(--gold-2); font-weight: 700; letter-spacing: 0.02em; }
.apb-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-1); color: var(--ink-2); }
.apb-flag .icon { width: 12px; height: 12px; }
.apb-flag.new { background: var(--bad); color: var(--bad-fg, #2f0400); }
.apb-flag.reply { background: var(--info); color: var(--info-fg, #06173a); }
.apb-who.lg h2 { font-size: 1.4rem; }
.apb-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.apb-fact { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--radius-s); background: var(--bg-1); }
.apb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 0.7rem; color: var(--ink-3); text-align: center; }
.apb-steps .bar { display: block; height: 6px; border-radius: 3px; background: var(--bg-4); margin-bottom: 4px; }
.apb-steps .done .bar { background: var(--ok); }
.apb-steps .now { color: var(--ink); font-weight: 700; }
.apb-steps .now .bar { background: var(--grass-2); }
.apb-steps .end .bar { background: var(--bad); }
.apb-info { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; padding: 8px 10px; border-radius: var(--radius-s); background: var(--bg-1); }
.apb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.apb-answer { display: flex; flex-direction: column; gap: 4px; }
.apb-q { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-2); font-weight: 600; }
.apb-q .ap-qn { --team: var(--grass-2); }
.apb-a { padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-1); white-space: pre-wrap; overflow-wrap: anywhere; }
.apb-ratings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.apb-ratings li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.apb-starrow { display: inline-flex; }
.apb-star { border: 0; background: transparent; font-size: 26px; line-height: 1; padding: 4px; min-width: 36px; min-height: 40px; color: var(--bg-4); cursor: pointer; }
.apb-star.on, .apb-starrow:hover .apb-star { color: var(--gold); }
.apb-starrow .apb-star:hover ~ .apb-star { color: var(--bg-4); }
.apb-timeline { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
@media (max-width: 600px) {
  .apb-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================================================================================
 * Team area → Applications (6.9.1): tabs, list, the application as a pop-up, settings and rights
 * ===================================================================================================================== */
.apl-tabs { margin-bottom: 4px; }
.apl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.apl-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--outline); color: var(--ink-2); text-decoration: none; }
.apl-stat:hover { text-decoration: none; color: var(--ink); background: var(--bg-3); }
.apl-stat b { font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
.apl-stat span { font-size: 0.84rem; }
.apl-stat.alert { box-shadow: var(--outline), inset 3px 0 0 var(--bad); }
.apl-stat.alert b { color: var(--bad); }
.apl-filters { align-items: center; }
.apl-filters select { width: auto; flex: 0 1 240px; min-width: 170px; }
.apl-check { gap: 8px; font-weight: 600; }
.apl-who, .apl-team, .apl-handler { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.apl-handler.me { font-weight: 700; color: var(--grass-2); }
.apl-table tbody tr { cursor: pointer; }
.apl-phase.trial, .badge.trial { --badge: var(--amethyst); }
.apl-switch { gap: 10px; font-weight: 600; }
.apl-setcard { box-shadow: var(--outline), inset 4px 0 0 var(--team), var(--shadow-s); }
.apl-rights { box-shadow: var(--outline), inset 4px 0 0 var(--team), var(--shadow-s); }
.apl-rtable td { vertical-align: top; }
.apl-rtable td:first-child { width: 34%; }
.apl-rtable input { width: 100%; }
.apl-people { display: flex; flex-wrap: wrap; gap: 6px; }
.apl-person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--bg-3); font-size: 0.86rem; font-weight: 600; }
.apl-person img { width: 22px; height: 22px; border-radius: 50%; }
.apl-person.admin { box-shadow: inset 0 0 0 1px var(--gold); }
@media (max-width: 760px) {
  .apl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apl-filters select { flex: 1 1 140px; min-width: 0; }
}

/* the application as a pop-up */
.dialog.apd-dialog { width: min(1060px, 100%); padding-top: 22px; }
.apd { display: flex; flex-direction: column; gap: 16px; }
.apd-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.apd-head .apb-who .avatar, .apd-head .apb-who img { width: 48px; height: 48px; }
.apd-handler { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-1); }
.apd-handler.none { box-shadow: inset 3px 0 0 var(--bad); }
.apd-handler select { width: auto; min-width: 190px; }
.apd-handler > .row { flex-wrap: wrap; justify-content: flex-end; }
.apd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.apd-main h3, .apd-side h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.apd-side { padding-left: 18px; border-left: 1px solid var(--line-2); }
.apd-side .apb-facts { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .apd-grid { grid-template-columns: minmax(0, 1fr); }
  .apd-side { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
}
@media (max-width: 600px) {
  .dialog.apd-dialog { position: fixed !important; inset: 0; width: 100%; max-height: none; height: 100dvh; border-radius: 0; margin: 0; }
  .apd-handler .row, .apd-handler select { width: 100%; }
}

/* the pop-up for a new application (anywhere in the team area) */
.dialog.apn-dialog { width: min(460px, 100%); text-align: center; }
.apn-art { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 6px; border-radius: 24px; background: color-mix(in srgb, var(--team, var(--grass)) 18%, var(--bg-1)); }
.apn-art img { width: 56px; height: 56px; animation: ap-bob 2.6s ease-in-out infinite; }
.apn-quote { margin: 0; padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg-1); color: var(--ink-2); font-style: italic; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 120px; overflow: hidden; }
.apn-more { font-size: 0.86rem; color: var(--ink-3); }

/* =====================================================================================================================
 * Application forms with question types (6.10): the form players fill in, and the builder in Applications → Settings
 * ===================================================================================================================== */
.apf { display: flex; flex-direction: column; gap: 18px; }
.apf-q { display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.apf-q.bad .apf-label { color: var(--bad); }
.apf-q.bad input:not([type=radio]):not([type=checkbox]), .apf-q.bad textarea, .apf-q.bad select { box-shadow: 0 0 0 2px var(--bad); }
.apf-label { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.apf-req { color: var(--bad); font-weight: 700; }
.apf-q textarea { width: 100%; font-size: 16px; min-height: 110px; }
.apf-q.t-short input, .apf-q.t-number input, .apf-q.t-date input, .apf-q select { max-width: 420px; width: 100%; font-size: 16px; }
.apf-q.t-number input { max-width: 180px; }
.apf-q.t-date input { max-width: 220px; }
.apf-count { align-self: flex-end; }
.apf-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.apf-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--bg-3); cursor: pointer; font-weight: 500; }
.apf-opt:hover { background: var(--bg-4); }
/* 7.26.0: attached files */
.apf-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.apf-files:empty { display: none; }
.apf-file { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 12px; border-radius: var(--radius-s); background: var(--bg-3); }
.apf-file b { overflow-wrap: anywhere; font-weight: 600; }
.apf-files-row { align-items: center; gap: 10px; }
.ap-file-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-file-thumb { display: block; width: 120px; height: 90px; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.ap-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.apf-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--grass-2); background: color-mix(in srgb, var(--grass) 16%, var(--bg-3)); }
.apf-opt input { width: 18px; height: 18px; flex: none; accent-color: var(--grass); }
.apf-confirm { align-items: flex-start; }
.apf-confirm input { margin-top: 2px; }
.apf-yns .btn { min-width: 110px; justify-content: center; }
.apf-yn[aria-pressed="true"] { --btn-bg: var(--grass); color: var(--on-accent, #fff); box-shadow: 0 0 0 2px var(--grass-2); }
.apf-section { padding-top: 10px; border-top: 1px solid var(--line-2); }
.apf-section:first-child { border-top: 0; padding-top: 0; }
.apf-section h3 { margin: 0 0 4px; font-size: 1.15rem; }
.apf-err { margin: 0; }

/* answers in the team pop-up */
.apb-section { margin-top: 8px; font-size: 0.95rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
.apb-a.short { display: inline-block; align-self: flex-start; }
.apb-a.yes { box-shadow: inset 3px 0 0 var(--ok); }
.apb-a.no { box-shadow: inset 3px 0 0 var(--bad); }
.apb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.apb-chip { padding: 3px 10px; border-radius: 999px; background: var(--bg-3); font-size: 0.88rem; font-weight: 600; }

/* the builder */
.qb-list { display: flex; flex-direction: column; gap: 10px; }
.qb-item { border-radius: var(--radius-s); background: var(--bg-1); box-shadow: var(--outline); overflow: hidden; }
.qb-item.t-section { box-shadow: var(--outline), inset 3px 0 0 var(--gold); }
.qb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: var(--bg-3); }
.qb-head select { width: auto; min-width: 220px; }
.qb-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-1); color: var(--grass-2); flex: none; }
.qb-n .icon { width: 16px; height: 16px; }
.qb-req { gap: 6px; font-weight: 600; font-size: 0.9rem; }
.qb-move.up .icon { transform: rotate(-90deg); }
.qb-move.down .icon { transform: rotate(90deg); }
.qb-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; padding: 12px; }
.qb-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qb-field label { font-size: 0.8rem; font-weight: 600; color: var(--ink-3); }
.qb-field.grow2 { grid-column: span 2; }
.qb-add { gap: 8px; }
.qb-add select { width: auto; min-width: 230px; }
@media (max-width: 760px) {
  .qb-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qb-field.grow2 { grid-column: 1 / -1; }
  .qb-head select, .qb-add select { min-width: 0; flex: 1 1 160px; }
  .apf-opts { grid-template-columns: 1fr; }
}

/* =====================================================================================================================
 * /join (6.11): introduction, positions, one position, the form page
 * ===================================================================================================================== */
.ap-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-3); }
.ap-crumbs a { color: var(--ink-2); }
.ap-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.ap-hero-lg { min-height: 380px; }
.ap-open-btn { gap: 10px; }
.ap-count { margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: rgb(255 255 255 / 0.22); font-size: 0.8rem; font-weight: 700; }
.ap-note-light { color: #dfe6f3; font-size: 0.92rem; margin-top: 10px; }
.ap-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 22px; align-items: start; }
.ap-intro .ap-perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .ap-intro { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ap-intro .ap-perks { grid-template-columns: 1fr; } }

.ap-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.ap-pill .icon { width: 12px; height: 12px; }
.ap-pill.open { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.ap-pill.open i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 30%, transparent); animation: ap-pulse 2s ease-in-out infinite; }
.ap-pill.closed { background: var(--bg-3); color: var(--ink-3); }
@keyframes ap-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .ap-pill.open i { animation: none; } }

.ap-positions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ap-pos {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  border-radius: var(--radius); background: var(--bg-2); color: var(--ink); text-decoration: none;
  box-shadow: var(--outline), inset 0 4px 0 var(--team), var(--shadow-s);
  transition: transform var(--mv-dur-fast) var(--mv-ease-out), box-shadow var(--mv-dur-fast) var(--mv-ease-out);
}
.ap-pos:hover { color: var(--ink); text-decoration: none; transform: translateY(-3px); box-shadow: var(--outline), inset 0 4px 0 var(--team), 0 18px 40px -20px color-mix(in srgb, var(--team) 70%, transparent); }
.ap-pos.closed { background: color-mix(in srgb, var(--bg-2) 80%, var(--bg-1)); }
.ap-pos.closed .ap-team-art { filter: grayscale(0.7); opacity: 0.75; }
.ap-pos-top { display: flex; align-items: center; gap: 14px; }
.ap-pos-top .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ap-pos-name { margin: 0; font-size: 1.35rem; }
.ap-pos-pitch { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ap-pos-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.ap-pos-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: color-mix(in srgb, var(--team) var(--team-ink-mix, 100%), var(--ink)); }
.ap-pos-more .icon { width: 16px; height: 16px; transition: transform var(--mv-dur-fast) var(--mv-ease-out); }
.ap-pos:hover .ap-pos-more .icon { transform: translateX(3px); }

.ap-pos-head { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius); background: linear-gradient(120deg, color-mix(in srgb, var(--team) 22%, var(--bg-2)), var(--bg-2) 70%); box-shadow: var(--outline); }
.ap-pos-head h1 { font-size: clamp(28px, 4vw, 40px); }
.ap-team-art.xl { width: 96px; height: 96px; border-radius: 24px; }
.ap-team-art.xl img.px.xl { width: 64px; height: 64px; }
.ap-pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.ap-pos-side { position: sticky; top: calc(var(--header-h) + 16px); }
.ap-pitch { font-size: 1.05rem; line-height: 1.6; white-space: pre-wrap; }
.ap-action { box-shadow: var(--outline), inset 0 4px 0 var(--team), var(--shadow-s); }
.ap-action .btn.block { justify-content: center; }
.ap-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; color: var(--ink-2); }
.ap-facts li { display: flex; align-items: center; gap: 10px; }
.ap-closed-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border-radius: var(--radius-s); background: var(--bg-1); text-align: center; }
.ap-sign.sm { width: 72px; height: 72px; margin: 0; }
.ap-qlist { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.ap-qlist li::marker { color: color-mix(in srgb, var(--team) var(--team-ink-mix, 100%), var(--ink)); font-weight: 700; }
.ap-apply .ap-form { padding: 22px; }
@media (max-width: 900px) {
  .ap-pos-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-pos-side { position: static; order: -1; }
}
@media (max-width: 600px) {
  .ap-hero-lg { min-height: 0; }
  .ap-positions { grid-template-columns: 1fr; }
  .ap-pos-head { padding: 14px; gap: 12px; }
  .ap-team-art.xl { width: 64px; height: 64px; }
  .ap-team-art.xl img.px.xl { width: 44px; height: 44px; }
  .ap-apply .ap-form { padding: 16px; }
  .ap-apply .ap-form .row.between { flex-direction: column-reverse; align-items: stretch; }
  .ap-apply .ap-form .row.between .btn { justify-content: center; }
}

/* ---------- 6.12: automatic checks, consent ---------- */
.ap-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-s); background: var(--bg-1); }
.ap-check-ic { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-3); color: var(--ink-3); }
.ap-check-ic .icon { width: 14px; height: 14px; stroke-width: 3; }
.ap-checks li.ok .ap-check-ic { background: var(--ok); color: var(--c-on-ok); }
.ap-checks li.no .ap-check-ic { background: var(--c-alert); color: #fff; }   /* 7.13.2: --bad was 2.6:1 under the white mark */
.ap-consent { padding-top: 12px; border-top: 1px solid var(--line-2); }
.ap-consent .apf-opt { background: var(--bg-1); }

/* ---------- 6.12: settings parts, templates, statistics ---------- */
.apl-part { border-top: 1px solid var(--line-2); padding-top: 10px; }
.apl-part > summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; gap: 4px; list-style: none; }
.apl-part > summary::-webkit-details-marker { display: none; }
.apl-part > summary::before { content: "▸"; color: var(--ink-3); margin-right: 6px; transition: transform var(--mv-dur-fast) var(--mv-ease-out); }
.apl-part[open] > summary::before { transform: rotate(90deg); }
.apl-part-body { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 4px; }
.apl-part-body .row input[type="url"] { flex: 1; min-width: 220px; }
.apl-tpl { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: var(--radius-s); background: var(--bg-1); }
.apl-tpl .row select { width: auto; }
.apl-tpl .row input { flex: 1; }
.apl-tpl-pick { width: auto; max-width: 100%; }
.apl-stat span.small { font-size: 0.76rem; }
.apl-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 180px; }
.apl-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.apl-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; border-bottom: 1px solid var(--line-2); }
.apl-bar { width: 14px; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--team); }
/* trial evaluation (6.14) */
.apb-eval { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--glass-2); }
.apb-scores { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; }
.apb-scores dt { color: var(--ink-3); font-size: .85rem; }
.apb-scores dd { margin: 0; color: var(--gold-2); letter-spacing: .05em; }
.apb-eval-form summary { cursor: pointer; font-weight: 600; }

/* ------------------------------------------------------------------ Applications → Settings (6.20) */
.aps { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.aps-nav { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--outline); }
.aps-label { margin: 12px 10px 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.aps-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; min-height: 48px; }
.aps-item:hover { background: var(--bg-3); color: var(--ink); text-decoration: none; }
.aps-item.on { background: var(--bg-3); color: var(--ink); box-shadow: inset 3px 0 0 var(--team, var(--ink-2)); }
.aps-item .ap-dot { flex: none; }
.aps-ic { display: inline-grid; place-items: center; width: 22px; color: var(--ink-3); }
.aps-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.aps-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.aps-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aps-state { flex: none; font-size: 0.7rem; }
.aps-none { padding: 6px 10px; }
.aps-label.row { display: flex; align-items: center; justify-content: space-between; }
.aps-add { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--bg-3); color: var(--ink); font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: none; cursor: pointer; }
.aps-add:hover { background: var(--bg-4); }
.aps-add .icon { width: 14px; height: 14px; }
.aps-field input[type="color"], .dialog input[type="color"] { width: 64px; height: 40px; padding: 2px; cursor: pointer; }
.aps-pane { min-width: 0; }
.aps-hero { display: flex; align-items: center; gap: 14px; padding: 2px; }
.aps-hero-dot { flex: none; width: 10px; height: 42px; border-radius: 5px; background: var(--team); box-shadow: 0 0 0 4px color-mix(in srgb, var(--team) 20%, transparent); }
.aps-hero-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--bg-3); color: var(--ink-2); }
.stack-xs { display: flex; flex-direction: column; gap: 2px; }
.aps-switches { display: flex; flex-direction: column; padding: 4px 18px; }
.aps-toggle { display: flex; align-items: center; gap: 16px; padding: 12px 0; cursor: pointer; }
.aps-toggle .grow { display: flex; flex-direction: column; gap: 2px; }
.aps-toggle .small { font-weight: 400; }
.aps-toggle + .aps-toggle { border-top: 1px solid var(--line-2); }
.aps-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--outline); }
.aps-tab { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 40px; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.aps-tab:hover { background: var(--bg-3); color: var(--ink); }
.aps-tab[aria-selected="true"] { background: var(--bg-3); color: var(--ink); box-shadow: inset 0 -2px 0 var(--team); }
.aps-card { display: flex; flex-direction: column; gap: 14px; }
.aps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 18px; }
.aps-field { display: flex; flex-direction: column; gap: 6px; }
.aps-field > label { font-weight: 600; font-size: 0.9rem; }
.aps-field input[type="url"] { flex: 1; min-width: 200px; }
.aps-flow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.aps-flow li { counter-increment: step; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--bg-3); font-size: 0.86rem; color: var(--ink); }
.aps-flow li::before { content: counter(step); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--team); color: #fff; font-size: 0.72rem; font-weight: 700; }
.aps-flow li.off { opacity: 0.45; text-decoration: line-through; }
.aps-flow li.off::before { background: var(--ink-3); }
.aps-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--outline), var(--shadow-s); }
.aps-dirty { display: none; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.aps-dirty i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.aps-bar.dirty { box-shadow: var(--outline), inset 3px 0 0 var(--gold), var(--shadow-s); }
.aps-bar.dirty .aps-dirty { display: inline-flex; }
.aps-clean { display: inline-flex; align-items: center; gap: 6px; }
.aps-bar.dirty .aps-clean { display: none; }
.aps-bar:not(.dirty) .btn.ghost { visibility: hidden; }
@media (max-width: 900px) {
  .aps { grid-template-columns: 1fr; }
  .aps-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .aps-label { order: -1; flex: none; margin: 0 4px; }
  .aps-label > span { display: none; }
  .aps-item { flex: none; min-width: 190px; max-width: 240px; }
  .aps-tabs { flex-wrap: nowrap; overflow-x: auto; }
}
@media (max-width: 560px) { .aps-hero { flex-wrap: wrap; } .aps-switches { padding: 2px 14px; } }

/* ------------------------------------------------------------------ Applications → Positions (7.20.0) – built like /join, compact */
.apz { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.apz-rail { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 6px; }
.apz-rail-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 4px; }
.apz-rail-head b { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.apz-rail-head .btn { margin-left: auto; }
.apz-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s); background: var(--bg-2); color: var(--ink); text-decoration: none;
  box-shadow: var(--outline), inset 3px 0 0 color-mix(in srgb, var(--team) 55%, transparent); }
.apz-card:hover { color: var(--ink); text-decoration: none; background: var(--bg-3); }
.apz-card.on { background: linear-gradient(110deg, color-mix(in srgb, var(--team) 22%, var(--bg-2)), var(--bg-2) 80%); box-shadow: var(--outline), inset 3px 0 0 var(--team); }
.apz-card .ap-team-art { width: 36px; height: 36px; border-radius: var(--radius-s); }
.apz-card .ap-team-art img.px.lg { width: 24px; height: 24px; }
.apz-card-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.apz-card-txt b { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.92rem; }
.apz-card-txt .ap-pill { font-size: 0.66rem; padding: 1px 7px; }
.apz-card-txt .small { font-size: 0.72rem; }
.apz-main { min-width: 0; }
.apz-empty { padding: 32px 20px; align-items: center; }
.apz-editor { gap: 12px; }
.apz-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 10px 14px; border-radius: var(--radius);
  background: linear-gradient(110deg, color-mix(in srgb, var(--team) 26%, var(--bg-2)), var(--bg-2) 70%); box-shadow: var(--outline), inset 0 3px 0 var(--team); }
.apz-head .ap-team-art { width: 48px; height: 48px; }
.apz-head .ap-team-art img.px.lg { width: 32px; height: 32px; }
.apz-head-txt { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.apz-head-txt .row { gap: 10px; }
.apz-title { font-size: 1.35rem; line-height: 1.2; }
.apz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.apz-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border-radius: 999px; background: var(--bg-3); font-size: 0.82rem; font-weight: 600; cursor: pointer; box-shadow: var(--outline); }
.switch.sm { width: 36px; height: 20px; }
.switch.sm i::after { top: 3px; left: 3px; width: 14px; height: 14px; }
.switch.sm input:checked + i::after { transform: translateX(16px); }
.apz-head-actions { gap: 6px; }
.apz-steps { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--outline); overflow-x: auto; }
.apz-step { display: inline-flex; align-items: center; gap: 7px; flex: 1 0 auto; justify-content: center; padding: 0 12px; min-height: 40px; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--ink-2);
  font: inherit; font-size: 0.9rem; cursor: pointer; white-space: nowrap; }
.apz-step:hover { background: var(--bg-3); color: var(--ink); }
.apz-step[aria-selected="true"] { color: var(--ink); background: color-mix(in srgb, var(--team) 18%, var(--bg-3)); box-shadow: inset 0 -2px 0 var(--team); }
.apz-step-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-4); color: var(--ink-2); font-size: 0.66rem; font-weight: 800; }
.apz-step[aria-selected="true"] .apz-step-n { background: var(--team); color: #fff; }
.apz-step-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bg-4); color: var(--ink-2); font-size: 0.72rem; font-weight: 700; line-height: 18px; text-align: center; }
.apz-panels { gap: 12px; }
.apz-panel { gap: 12px; }
.apz-panel .aps-card { gap: 12px; padding: 16px 18px; }
.apz-look { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.apz-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.apz-aside { display: flex; flex-direction: column; gap: 6px; }
.apz-aside-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.apz-aside-label .icon { width: 14px; height: 14px; }
.apz-preview-card { pointer-events: none; }
.apz-sec { border-top: 3px solid color-mix(in srgb, var(--team) 50%, transparent); }
.apz-swatches, .apz-icons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.apz-swatch { width: 30px; height: 30px; border: 0; border-radius: var(--radius-s); background: var(--sw); cursor: pointer; box-shadow: var(--outline); }
.apz-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--ink); }
.apz-free { width: 42px; height: 30px; padding: 2px; cursor: pointer; }
.apz-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--radius-s); background: var(--bg-3); cursor: pointer; box-shadow: var(--bevel); }
.apz-icon:hover { background: var(--bg-4); }
.apz-icon[aria-checked="true"] { background: color-mix(in srgb, var(--team, var(--diamond)) 26%, var(--bg-3)); box-shadow: 0 0 0 2px var(--team, var(--diamond)); }
.apz-new-head { align-items: center; gap: 14px; }
.apz-conds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.apz-cond-block { display: flex; flex-direction: column; gap: 4px; }
.apz-cond-group { margin-top: 2px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.apz-cond { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 10px; border-radius: var(--radius-s); background: var(--bg-3); }
.apz-cond.on { background: color-mix(in srgb, var(--team) 16%, var(--bg-3)); box-shadow: inset 3px 0 0 var(--team); }
.apz-cond-name { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.apz-cond-name .icon { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.apz-cond.on .apz-cond-name .icon { color: var(--team); }
.apz-cond-val { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; }
.apz-cond-val input { width: 74px; min-height: 32px; padding: 4px 8px; }
.apz-cond-val input:disabled { opacity: 0.45; }
.apz-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.apz-flow .ap-how-art { width: 52px; height: 52px; }
.apz-flow .ap-how-art img.px.lg { width: 28px; height: 28px; }
.apz-flow li.off { opacity: 0.4; }
.apz-flow li.off .ap-how-n { background: var(--ink-3); }
.apz-chats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.apz-chat { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--bg-3); cursor: pointer; }
.apz-chat .grow { display: flex; flex-direction: column; gap: 1px; }
.apz-chat:has(input:checked) { background: color-mix(in srgb, var(--team) 16%, var(--bg-3)); box-shadow: inset 3px 0 0 var(--team); }
.apz-chat input { width: 18px; height: 18px; flex: none; accent-color: var(--team); }
.apz-rights { display: flex; flex-direction: column; }
.apz-right { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 1.2fr); gap: 14px; align-items: center; padding: 8px 0; }
.apz-right + .apz-right { border-top: 1px solid var(--line-2); }
.aps-general { max-width: 980px; }
@media (max-width: 1600px) {
  .apz-step { padding: 0 8px; gap: 6px; }
  .apz-step-n { display: none; }
}
@media (max-width: 1360px) {
  .apz-look { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 900px) {
  .apz { grid-template-columns: 1fr; }
  .apz-rail { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .apz-rail-head { flex-direction: column; align-items: flex-start; flex: none; }
  .apz-rail-head .btn { margin-left: 0; }
  .apz-card { flex: none; width: 210px; }
  .apz-conds { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .apz-look, .apz-two { grid-template-columns: 1fr; }
  .apz-look .apz-aside { order: -1; }
}
@media (max-width: 640px) {
  .apz-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apz-right { grid-template-columns: 1fr; gap: 6px; }
  .apz-head-actions { width: 100%; }
}

/* positions page (6.20): urgent, full, opens soon */
.ap-pill.urgent { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold); }
.ap-pill.waiting { background: var(--bg-3); color: var(--ink-2); }

/* 6.27: more about a position, the way into the team, the form in steps, interview times */
.ap-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ap-members { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-member { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgb(var(--shade-rgb) / .3); box-shadow: var(--outline); color: var(--ink); font-weight: 700; text-decoration: none; }
.ap-member:hover { background: rgb(var(--accent2-rgb) / .18); text-decoration: none; }
.ap-member .avatar.md { width: 32px; height: 32px; }
.ap-facts li.ok { color: var(--ok); } .ap-facts li.no { color: var(--warn, #f5b93a); }
.ap-faq.own summary { font-weight: 800; }
.pre-line { white-space: pre-line; }
.ap-steps-head { display: grid; gap: 8px; }
.ap-progress { height: 8px; border-radius: 999px; background: rgb(var(--shade-rgb) / .4); overflow: hidden; }
.ap-progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--team, var(--grass)), var(--diamond)); transition: width var(--mv-dur-base) var(--mv-ease-out); }
.apf > .ap-off, .apf > [hidden] { display: none !important; }
.ap-review { padding: 4px 0; }
.ap-review[hidden] { display: none; }
.ap-review-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 18px; margin: 0; }
.ap-review-list dt { color: var(--ink-3); }
.ap-review-list dd { margin: 0; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 640px) { .ap-review-list { grid-template-columns: minmax(0, 1fr); } .ap-review-list dd { margin-bottom: 8px; } }
.apf-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.apf-scale-row { display: flex; flex-wrap: wrap; gap: 6px; }
.apf-scale-btn { min-width: 44px; height: 44px; border: 0; border-radius: var(--radius-s); font: inherit; font-weight: 800; color: var(--ink); background: rgb(var(--shade-rgb) / .35); box-shadow: var(--outline); cursor: pointer; }
.apf-scale-btn:hover { background: rgb(var(--accent2-rgb) / .2); }
.apf-scale-btn[aria-pressed="true"] { color: #fff; background: var(--team, var(--grass)); }
.ap-slots .ap-slot[aria-pressed="true"] { color: #fff; background: var(--grass); }
/* team side */
.aps-faq-item { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: var(--radius-s); background: rgb(var(--shade-rgb) / .22); }
.aps-faq-item textarea, .aps-faq-item input { width: 100%; }
.aps-slots { display: grid; gap: 6px; }
.aps-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-s); background: rgb(var(--shade-rgb) / .22); }
.aps-slot.booked { box-shadow: inset 3px 0 0 var(--ok); }
.aps-slot-add input[type="datetime-local"] { width: auto; }
.aps-slot-add input:not([type]) { width: 12em; }
.qb-if .row { flex-wrap: wrap; }
.qb-if select { width: auto; max-width: 100%; }

/* 6.44: Madrux420 and Kraspone beside the banner (join3d-loader.js) – a transparent 3D stage over the page, speech
   bubbles like signs in Minecraft, the button lights up when they point at it */
.jb-stage { position: absolute; z-index: 6; pointer-events: none; overflow: visible; }
.jb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jb-hit { position: absolute; pointer-events: auto; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: 12px; }
.jb-hit:focus-visible { outline: 2px solid #ffd27a; outline-offset: 4px; }
.jb-bubble { position: absolute; left: 0; top: 0; z-index: 2; max-width: 230px; width: max-content; padding: 10px 14px; transform: translate(-50%, calc(-100% - 14px)) scale(.6);
  opacity: 0; transform-origin: 50% 100%; background: #fbf7ec; color: #1d1a22; font: 700 .92rem/1.35 var(--font, system-ui); text-align: center;
  border-radius: 10px; box-shadow: 0 0 0 3px #1d1a22, 0 6px 0 3px rgb(0 0 0 / .25), 0 18px 30px -12px rgb(0 0 0 / .6);
  transition: opacity .18s ease, transform .28s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; }
.jb-bubble::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 14px; height: 14px; margin-left: -7px; background: #fbf7ec;
  box-shadow: 3px 3px 0 0 #1d1a22; transform: rotate(45deg) skew(8deg, 8deg); }
.jb-bubble.show { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); }
.jb-bubble.r { background: #eef6ff; } .jb-bubble.r::after { background: #eef6ff; }
.ap-open-btn.jb-glow { animation: jb-glow 1.1s ease-in-out infinite; }
@keyframes jb-glow { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 210 122 / .0), 0 0 0 0 rgb(255 210 122 / 0); transform: translateY(0); }
  50% { box-shadow: 0 0 0 6px rgb(255 210 122 / .55), 0 0 34px 10px rgb(255 190 80 / .45); transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .ap-open-btn.jb-glow { animation: none; } .jb-bubble { transition: none; } }
/* 8.0.0: "Take the quiz" next to the rules-quiz condition */
.ap-check-go { margin-left: 8px; }
