/* Client portal. Standalone page, no theme, built for a phone. */
:root {
	--ink: #16211c; --ink-2: #5a6b62; --ink-3: #8d9c94;
	--line: #e3e8e4; --surface: #fff; --canvas: #f6f7f5;
	--accent: #799854; --accent-ink: #637d45; --accent-soft: #eef3e6;
	--s-pending: #d9822b; --s-approved: #799854; --s-published: #2f6fb5; --s-rejected: #c0453b;
	--shadow: 0 1px 2px rgba(22,33,28,.06), 0 8px 24px rgba(22,33,28,.06);
}
* { box-sizing: border-box; }
body.avk-portal { margin: 0; background: var(--canvas); color: var(--ink);
	font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
	font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; padding: 18px 12px 40px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.avk-phone { max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
	border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.avk-phead { padding: 14px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avk-plogo { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-ink); color: #fff;
	display: grid; place-items: center; font-weight: 700; font-size: 14px; object-fit: cover; }
.avk-hero { padding: 22px 15px; text-align: center; border-bottom: 1px solid var(--line); }
.avk-hero-waiting { background: #fdf6ee; color: #8a5a2b; }
.avk-hero-clear { background: var(--accent-soft); color: var(--accent-ink); }
.avk-hero-error { background: #fdeceb; color: #a03a31; }
.avk-count { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.avk-clear-title { font-size: 17px; font-weight: 600; }
.avk-pcard { padding: 14px 15px; border-bottom: 1px solid var(--line); }
.avk-pcard:last-of-type { border-bottom: 0; }
.avk-when { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 7px;
	margin-bottom: 8px; flex-wrap: wrap; }
.avk-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--ink-3); }
.avk-st-pending { background: var(--s-pending); }
.avk-st-approved, .avk-st-scheduled { background: var(--s-approved); }
.avk-st-published { background: var(--s-published); }
.avk-st-partial { background: var(--s-pending); }
.avk-st-rejected { background: var(--s-rejected); }
.avk-ty { font-size: 10px; font-weight: 700; padding: 0 4px; border-radius: 4px;
	background: var(--canvas); color: var(--ink-2); border: 1px solid var(--line); }
.avk-varlbl { font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin: 2px 0 5px; }
.avk-art { width: 100%; border-radius: 9px; margin-bottom: 9px; display: block; }
.avk-pcard p { margin: 0 0 11px; font-size: 14px; white-space: pre-wrap; }
.avk-pactions { display: flex; gap: 8px; }
.avk-pactions .avk-btn { flex: 1; --btn-height: 44px; }
.avk-approved { font-size: 13px; color: var(--accent-ink); font-weight: 500; }
.avk-line { display: flex; gap: 9px; align-items: center; padding: 7px 0; font-size: 13.5px;
	border-bottom: 1px solid var(--line); }
.avk-line:last-child { border-bottom: 0; }
.avk-line span:nth-child(2) { flex: 1; }
.avk-mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--ink-3); }
.avk-note { font-size: 12.5px; color: var(--ink-3); }
.avk-loading { padding: 40px; text-align: center; color: var(--ink-3); }
.avk-pfoot { padding: 13px 15px; text-align: center; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.avk-brandfoot { text-align: center; padding: 22px 12px 8px; opacity: .75; }
.avk-brandfoot img { height: 26px; width: auto; }

.avk-reject { display: flex; flex-direction: column; gap: 8px; }
.avk-reject label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.avk-reason { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px;
	font: inherit; font-size: 14px; background: var(--canvas); color: var(--ink); resize: vertical; }

/* ---- the door ---- */
.avk-door { max-width: 420px; margin: 12vh auto; padding: 28px; background: var(--surface);
	border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.avk-door h1 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.02em; }
.avk-door p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.avk-door img { align-self: center; }
/* Fields as the platform draws them: same border, same radius, same tinted
   fill. The portal used to have its own, so the two halves of one product
   looked like two products. */
.avk-portal .avk-inp { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line);
	border-radius: 10px; font: inherit; font-size: 15px;
	background: color-mix(in srgb, var(--canvas) 50%, var(--surface)); color: var(--ink); }
.avk-portal .avk-inp:focus { outline: none; border-color: var(--brand);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }

/* Six boxes, because a six digit code is read one digit at a time. */
.avk-digits { display: flex; gap: 8px; justify-content: center; }
.avk-digit { width: 48px; height: 56px; padding: 0; text-align: center; font-size: 22px; font-weight: 600;
	font-variant-numeric: tabular-nums; }
.avk-door-error { color: var(--s-rejected, #b4452f); min-height: 18px; }
#avk-door-step1, #avk-door-step2 { display: flex; flex-direction: column; gap: 10px; }

/* ---- setting a password: roomier than the code door, because it is a form
   somebody types two things into rather than one six digit code ---- */
.avk-pass { max-width: 460px; padding: 40px 36px; gap: 0; text-align: left; }
.avk-pass img { align-self: center; margin-bottom: 26px; }
.avk-pass h1 { margin: 0 0 8px; font-size: 24px; text-align: center; }
.avk-pass > p { font-size: 14.5px; line-height: 1.6; text-align: center; margin-bottom: 28px; }
.avk-pass form { display: flex; flex-direction: column; gap: 18px; }
.avk-pass label { display: flex; flex-direction: column; gap: 7px; }
.avk-pass label span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.avk-pass .avk-inp { height: 50px; font-size: 16px; }
.avk-pass .avk-btn { height: 48px; font-size: 15px; border-radius: 10px; margin-top: 6px; }
/* app.css is not loaded here, so the warning needs its own look rather than
   inheriting one that is not there. */
.avk-pass .avk-warn { margin: 0 0 18px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; text-align: left;
	background: color-mix(in srgb, var(--s-rejected, #b4452f) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--s-rejected, #b4452f) 28%, transparent);
	color: var(--s-rejected, #b4452f); }

@media (max-width: 520px) {
	.avk-pass { margin: 6vh 16px; padding: 30px 22px; }
}
/* The eye sits inside the field, so the input keeps room for it rather than
   printing text under the icon. */
.avk-pass .avk-field { position: relative; display: block; }
.avk-pass .avk-field .avk-inp { width: 100%; padding-right: 46px; }
.avk-peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
	background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); border-radius: 8px; }
.avk-peek:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.avk-peek svg { width: 20px; height: 20px; }
.avk-linkbtn { background: none; border: 0; padding: 6px; font: inherit; font-size: 13.5px;
	color: var(--ink-2); text-decoration: underline; cursor: pointer; align-self: center; }
.avk-linkbtn:hover { color: var(--ink); }
.avk-rules { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.avk-rules li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.avk-tick { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-2, #cfd8d2); flex: none; position: relative; }
.avk-rules .avk-met { color: var(--s-approved, #3b6d11); }
.avk-rules .avk-met .avk-tick { border-color: currentColor; background: currentColor; }
.avk-rules .avk-met .avk-tick::after { content: ""; position: absolute; left: 4.5px; top: 1.5px;
	width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
video.avk-art { width: 100%; height: auto; display: block; background: #000; }
.avk-pswitch { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.avk-pswitch button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
	border-radius: 99px; padding: 6px 13px; font: inherit; font-size: 13px; cursor: pointer; }
.avk-pswitch button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.avk-pfoot .avk-linkbtn { display: block; margin: 0 auto 8px; }

/* Sign-in: one screen for clients and the team. */
.avk-signin { position: relative; }
.avk-signin [hidden] { display: none !important; }
.avk-signin .avk-panel { display: flex; flex-direction: column; gap: 12px; }
.avk-signin .avk-panel .avk-note,
.avk-signin .avk-code-form .avk-note { font-size: 13px; color: var(--ink-2); text-align: center; margin: 0; }
.avk-signin .avk-switch { margin: 14px 0 0; padding-top: 16px; border-top: 1px solid var(--line, #e3e8e4); text-align: center; }
.avk-signin .avk-switch .avk-linkbtn,
.avk-signin .avk-code-form a.avk-linkbtn { text-decoration: none; display: inline-block; text-align: center; }
.avk-signin .avk-switch .avk-linkbtn:hover { text-decoration: underline; }

/* Language, top right, as small as it can be while still being a target. */
.avk-langs { position: absolute; top: 14px; right: 14px; display: flex; gap: 2px;
	padding: 2px; border-radius: 8px; background: color-mix(in srgb, var(--ink-2, #5b6a62) 8%, transparent); }
.avk-langs button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em;
	padding: 5px 9px; border-radius: 6px; color: var(--ink-2, #5b6a62); cursor: pointer; min-width: 36px; }
.avk-langs button[aria-pressed="true"] { background: var(--surface, #fff); color: var(--ink, #16211c);
	box-shadow: 0 1px 2px rgba(0,0,0,.08); }
