/* Jobs-board email alerts (2026-10-05): card, chooser modal / bottom sheet, matches + manage pages. */
/* 2026-10-07 redesign: the whole card is the button; stacked bell / title / subtitle. */
.avi-ba-card {
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; box-sizing: border-box; margin: 0; padding: 16px;
	background: #0b1a30; border: 1px solid rgba(232, 160, 32, .40); border-radius: 12px; color: #e8eef5;
	font: 500 15px/1.35 'DM Sans', system-ui, sans-serif; text-align: left; cursor: pointer;
	transition: border-color .15s, background .15s, transform .15s;
}
.avi-ba-card:hover,
.avi-ba-card:focus-visible { border-color: #e8a020; background: #102440; transform: translateY(-1px); }
.avi-ba-card:focus { outline: none; }
.avi-ba-card:focus-visible { outline: 2px solid #e8a020; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.avi-ba-card { transition: border-color .15s, background .15s; }
	.avi-ba-card:hover, .avi-ba-card:focus-visible { transform: none; }
}
.avi-ba-card.is-on { border-color: rgba(79, 195, 247, .5); }
.avi-ba-card.is-on:hover, .avi-ba-card.is-on:focus-visible { border-color: #4fc3f7; }
.avi-ba-card.is-on:focus-visible { outline-color: #4fc3f7; }
.avi-ba-card__badge {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px;
	border-radius: 50%; background: rgba(232, 160, 32, .14);
}
.avi-ba-card.is-on .avi-ba-card__badge { background: rgba(79, 195, 247, .14); }
.avi-ba-card__icon { width: 18px; height: 18px; fill: none; stroke: #e8a020; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avi-ba-card.is-on .avi-ba-card__icon { stroke: #4fc3f7; }
.avi-ba-card__title {
	display: block; max-width: 100%; font-weight: 700; font-size: 15px; line-height: 1.3; color: #e8eef5;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avi-ba-card__sub {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	font-size: 13px; line-height: 1.4; color: #94a7be;
}
[data-avi-ba-card] { margin: 12px 0; }

/* Modal (desktop) / bottom sheet (<768px) */
html.avi-ba-lock, html.avi-ba-lock body { overflow: hidden; }
.avi-ba-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.avi-ba-modal[hidden] { display: none; }
.avi-ba-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 18, .72); opacity: 0; transition: opacity .2s; }
.avi-ba-modal.is-open .avi-ba-backdrop { opacity: 1; }
.avi-ba-dialog {
	position: relative; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column;
	background: #0b1a30; border: 1px solid #1d3352; border-radius: 14px; color: #e8eef5; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
	font: 15px/1.45 'DM Sans', system-ui, sans-serif; transform: translateY(12px); opacity: 0; transition: transform .2s, opacity .2s;
}
.avi-ba-modal.is-open .avi-ba-dialog { transform: none; opacity: 1; }
.avi-ba-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; }
.avi-ba-dialog__head h2 { margin: 0; font: 400 26px/1.1 'Bebas Neue', Impact, sans-serif; letter-spacing: .03em; color: #e8eef5; }
.avi-ba-x { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #94a7be; font-size: 28px; line-height: 1; cursor: pointer; }
.avi-ba-x:hover { color: #e8eef5; background: rgba(255, 255, 255, .06); }
.avi-ba-x:focus-visible { outline: 2px solid #4fc3f7; }
.avi-ba-dialog__body { overflow-y: auto; padding: 4px 20px 20px; -webkit-overflow-scrolling: touch; }
@media (max-width: 767px) {
	.avi-ba-modal { align-items: flex-end; }
	.avi-ba-dialog { width: 100vw; max-height: 88vh; border-radius: 16px 16px 0 0; border-bottom: 0; transform: translateY(100%); opacity: 1; }
	.avi-ba-modal.is-open .avi-ba-dialog { transform: none; }
	.avi-ba-dialog__head { padding: 14px 16px 6px; }
	.avi-ba-dialog__head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #2a4466; }
	.avi-ba-dialog__body { padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); }
}

/* Chooser */
.avi-ba-form { color: #e8eef5; font-family: 'DM Sans', system-ui, sans-serif; }
.avi-ba-section { margin: 10px 0 14px; }
.avi-ba-label { margin: 0 0 8px; font: 700 13px/1.2 'DM Sans', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #4fc3f7; }
.avi-ba-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.avi-ba-chip {
	min-height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 19px; background: transparent;
	color: #e8eef5; font: 500 14px/1 'DM Sans', system-ui, sans-serif; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .avi-ba-chip:hover { border-color: #7d93ad; color: #fff; } } /* #418 */
.avi-ba-chip:focus-visible { outline: 2px solid #4fc3f7; outline-offset: 1px; }
.avi-ba-chip[aria-pressed="true"] { background: #e8a020; border-color: #e8a020; color: #060f1e; font-weight: 700; }
.avi-ba-summary { margin: 6px 0 14px; padding: 10px 12px; border-radius: 8px; background: rgba(79, 195, 247, .08); color: #cfe9f7; font-size: 15px; }
.avi-ba-summary strong { color: #fff; }
.avi-ba-email-label { display: block; margin: 0 0 6px; font-size: 13px; color: #94a7be; }
.avi-ba-email {
	display: block; width: 100%; box-sizing: border-box; height: 46px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px;
	background: #060f1e; color: #e8eef5; font: 16px 'DM Sans', system-ui, sans-serif;
}
.avi-ba-email:focus { outline: 2px solid #4fc3f7; border-color: transparent; }
.avi-ba-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.avi-ba-submit {
	display: block; width: 100%; margin: 12px 0 0; height: 48px; border: 0; border-radius: 8px; background: #e8a020; color: #060f1e;
	font: 700 16px 'DM Sans', system-ui, sans-serif; cursor: pointer;
}
.avi-ba-submit:hover { background: #f2b23c; }
.avi-ba-submit:focus-visible { outline: 2px solid #4fc3f7; outline-offset: 2px; }
.avi-ba-submit[disabled] { opacity: .6; cursor: wait; }
.avi-ba-fine { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #94a7be; }
.avi-ba-error { min-height: 1em; margin: 8px 0 0; font-size: 14px; color: #ff8a80; }
.avi-ba-error.is-ok { color: #7ee0a5; }
.avi-ba-done { padding: 12px 0 4px; text-align: center; }
.avi-ba-done__title { margin: 0 0 6px; font: 400 28px/1.1 'Bebas Neue', Impact, sans-serif; letter-spacing: .03em; color: #e8a020; }
.avi-ba-done__sub { margin: 0 0 8px; color: #94a7be; }

/* Matches + manage pages */
.avi-ba-page { padding: 24px 16px 48px; }
.avi-ba-head { margin: 0 0 20px; }
.avi-ba-eyebrow { margin: 0 0 4px; font: 700 13px 'DM Sans', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #4fc3f7; }
.avi-ba-head h1 { margin: 0; font: 400 34px/1.1 'Bebas Neue', Impact, sans-serif; letter-spacing: .03em; color: #e8eef5; }
.avi-ba-sub, .avi-ba-msg, .avi-ba-links { color: #94a7be; font-family: 'DM Sans', system-ui, sans-serif; }
.avi-ba-sub a, .avi-ba-msg a, .avi-ba-links a { color: #e8a020; }
.avi-ba-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(232, 160, 32, .1); color: #f3d79a; font-family: 'DM Sans', system-ui, sans-serif; }
.avi-ba-note--ok { background: rgba(126, 224, 165, .1); color: #a8ecc3; }
.avi-ba-new {
	display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 10px; background: #4fc3f7; color: #060f1e;
	font: 700 11px/1.4 'DM Sans', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.avi-ba-btn { display: inline-block; padding: 11px 18px; border: 0; border-radius: 8px; background: #e8a020; color: #060f1e; font: 700 15px 'DM Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.avi-ba-inline { max-width: 720px; padding: 16px; border: 1px solid #1d3352; border-radius: 12px; background: #0b1a30; }

/* (2026-10-26, owner INBOX #172: the "Get jobs like this one" prompt after an Apply click is gone, with its styles.) */

/* ── The alert switch card (owner 2026-10-13): replaces the bell card ── */
.avi-ba-togglecard { margin: 0; }
.avi-ba-toggle { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #0f1f36; border: 1px solid rgba(201, 212, 227, 0.08); border-radius: 12px; }
.avi-ba-toggle.is-on { background: #0f2a44; border-color: rgba(79, 179, 217, 0.45); }
.avi-ba-toggle__icon { flex: none; display: inline-flex; color: #4fb3d9; }
.avi-ba-toggle__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avi-ba-toggle.is-on .avi-ba-toggle__icon svg path:first-child { fill: currentColor; }
.avi-ba-toggle__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.avi-ba-toggle__title { color: #ffffff; font-weight: 700; font-size: 16.5px; line-height: 1.25; }
.avi-ba-toggle__sub { color: #8ea3bc; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.avi-ba-toggle.is-on .avi-ba-toggle__sub,
.avi-ba-toggle.is-waiting .avi-ba-toggle__sub { color: #7fcbe8; }
.avi-ba-switch { position: relative; flex: none; width: 56px; height: 32px; padding: 0; border: 0; border-radius: 16px; background: #2a3c56; cursor: pointer; transition: background .15s ease; }
.avi-ba-switch__knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #d6deea; transition: transform .15s ease, background .15s ease; }
.avi-ba-switch[aria-checked="true"] { background: #4fb3d9; }
.avi-ba-switch[aria-checked="true"] .avi-ba-switch__knob { transform: translateX(24px); background: #0a1628; }
.avi-ba-switch[disabled] { opacity: .6; cursor: default; }
.avi-ba-switch:focus-visible, .avi-ba-toggle__text:focus-visible { outline: 2px solid #9fd8ee; outline-offset: 2px; }
.avi-ba-inline { margin: 8px 0 0; padding: 12px 16px; background: #0f1f36; border: 1px solid rgba(79, 179, 217, 0.27); border-radius: 12px; }
.avi-ba-inline__label { display: block; margin: 0 0 6px; color: #c9d4e3; font-size: 14px; }
.avi-ba-inline__row { display: flex; gap: 8px; }
.avi-ba-inline .avi-ba-email { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid rgba(79, 179, 217, 0.3); border-radius: 8px; background: #0a1628; color: #ffffff; font-size: 16px; }
.avi-ba-inline .avi-ba-submit { flex: none; height: 42px; padding: 0 16px; border: 1px solid #4fb3d9; border-radius: 8px; background: #1d4766; color: #e6f5fb; font-weight: 700; cursor: pointer; }
.avi-ba-inline .avi-ba-fine { margin: 8px 0 0; color: #8ea3bc; font-size: 12px; line-height: 1.4; }
.avi-ba-inline .avi-ba-error { margin: 6px 0 0; color: #ff9b8f; font-size: 13px; }
.avi-ba-inline .avi-ba-error:empty { display: none; }
.avi-ba-inline__row { flex-wrap: wrap; }
.avi-ba-inline .avi-ba-email { flex: 1 1 170px; }
.avi-ba-inline .avi-ba-submit { flex: 1 0 auto; }
.aviju-sidebar .avi-ba-toggle { padding: 12px; gap: 10px; }
.aviju-sidebar .avi-ba-toggle__title { font-size: 15px; }
.aviju-sidebar .avi-ba-toggle__sub { font-size: 13.5px; }
.aviju-sidebar .avi-ba-switch { width: 48px; height: 28px; }
.aviju-sidebar .avi-ba-switch__knob { width: 20px; height: 20px; }
.aviju-sidebar .avi-ba-switch[aria-checked="true"] .avi-ba-switch__knob { transform: translateX(20px); }
/* 2026-10-26 (owner INBOX #157): the privacy policy link in the consent small print. */
.avi-ba-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.avi-ba-fine a:hover, .avi-ba-fine a:focus-visible { color: #e8eef5; }

/* Owner INBOX #188: the one-line consent: 12 px slate #9FB1C8 at 80 % (5.1-5.7:1 on the navy panels), not bold. */
.avi-ba-fine, .avi-ba-inline .avi-ba-fine, .avi-ea-fine { margin: 8px 0 0; font-size: 12px; line-height: 1.45; font-weight: 400; color: rgba(159, 177, 200, .8); }
.avi-ba-fine a, .avi-ea-fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 400; }
.avi-ba-fine a:hover, .avi-ba-fine a:focus-visible, .avi-ea-fine a:hover, .avi-ea-fine a:focus-visible { color: #e8eef5; }

/* ==========================================================================
   Board filters, "Email me new matches" (owner INBOX #272, 2026-11-01; desktop panel / drawer + phone sheet): the bell
   in the site amber (--av-gold #e9a53a, on and off; was light blue #4fb3d9), the switch track amber when on (was
   #4fb3d9), grey #6b7a8f when off (3.8:1 against the box; was #2a3c56, 1.5:1), the knob white in both states (was
   navy when on) with a soft shadow; focus ring and text unchanged. Board pages only.
   ========================================================================== */
body.aviju-page .avi-ba-toggle__icon,
body.aviju-page .avi-ba-toggle.is-on .avi-ba-toggle__icon { color: var(--av-gold, #e9a53a); }
body.aviju-page .avi-ba-switch { background: #6b7a8f; }
body.aviju-page .avi-ba-switch[aria-checked="true"] { background: var(--av-gold, #e9a53a); }
body.aviju-page .avi-ba-switch .avi-ba-switch__knob,
body.aviju-page .avi-ba-switch[aria-checked="true"] .avi-ba-switch__knob { background: #ffffff; box-shadow: 0 1px 3px rgba(6, 15, 30, .45); }
