/*
 * The pages on Interview/Layout — the candidate's, «Contact us», the sign-in and registration, the plates the emails
 * lead to, the error page — in the look of the new cabinet: the same tokens (tokens.css, «Лён» theme), fonts,
 * radii, buttons and fields as cabinet.css and builder.css, under the iv- prefix, so a page never needs the
 * cabinet's own files. Bootstrap's styles are not loaded on these pages: the few utility classes their scripts
 * toggle, the shared toast and the confirm dialog are drawn here. The recording page adds interview-record.css, the
 * sign-in, registration and password pages Account/sign.css.
 */
*, *::before, *::after { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.45 var(--font-ui);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
h1, h2, h3, p { margin: 0; }

/* The classes the page scripts toggle, which Bootstrap's styles used to give meaning to. [hidden] wins over a
   component's own display, so a script that hides a field or a note by the attribute is obeyed. */
[hidden], .d-none, .hidden { display: none !important; }
.d-flex { display: flex; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.no-select { user-select: none; -webkit-user-select: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: var(--scrollbar) padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-hover); }

/* ---------- Page ---------- */

/* The circles behind the card. A layer of its own rather than background-attachment: fixed, which iOS does not hold
   still. 100vh and not inset: 0, or the circles would jump in size on a phone as the browser's address bar slides away. */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: -1;
    background: url('../../img/signs/circles.svg') center / cover no-repeat;
}

.iv { min-height: 100vh; display: flex; flex-direction: column; }

.iv-top {
    min-height: 68px;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}
/* On a wide window the bar is only what stands in its corners, over the circles: the language switch, the company of
   a vacancy. The brand is in the card, see .iv-logo; on a phone the bar comes back with it, at the end of the file. */
.iv-top .iv-brand { display: none; }

.iv-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.iv-brand:hover { color: var(--text); }
.iv-brand-mark { font: 400 30px/1 var(--font-display); letter-spacing: -0.02em; color: var(--brand-mark); }
.iv-brand-logo { width: 30px; height: 30px; border-radius: 8px; }
.iv-brand-name { font-size: 17px; font-weight: 600; }

.iv-main {
    flex-grow: 1;
    padding: 8px 20px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
/* On the last block of a page whose card changes its height in front of the visitor: the vacancy's as its data comes,
   «Contact us» as its question is stretched by the corner. All the spare height goes under that block, so the card
   keeps to the top and grows down only; in the middle its top would move too. */
.iv-keep-top { margin-bottom: auto; }

.iv-card {
    width: min(640px, 100%);
    padding: 40px 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
}
.iv-card--wide { width: min(960px, 100%); }
.iv-card--narrow { width: min(460px, 100%); }

.iv-spacer { flex-grow: 1; }

/* The brand in large letters at the top of the card: Pages/Shared/_CardLogo */
.iv-logo {
    --iv-logo-size: 52px;
    align-self: center;
    margin-bottom: 2px;
    border-radius: var(--radius-s);
    color: var(--brand-mark);
    font: 400 var(--iv-logo-size)/1 var(--font-display);
    letter-spacing: -0.01em;
    text-decoration: none;
}
.iv-logo:hover { color: var(--brand-mark); }
/* Спроси.Ева in the ink of its own logo, and smaller: the name is half as long again */
.iv-logo--ru { font-size: calc(var(--iv-logo-size) * 0.88); }
.iv-logo--ru, .iv-logo--ru:hover { color: #22375A; }
/* The icon of a plate comes right under the brand, which is smaller there not to outweigh it */
.iv-plate .iv-logo { --iv-logo-size: 36px; }

/* ---------- Text ---------- */

.iv-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.iv-title { font: 400 30px/1.15 var(--font-display); overflow-wrap: anywhere; }
.iv-text { font-size: 15px; line-height: 1.55; color: var(--text-2); white-space: pre-line; }
.iv-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
/* The heading under the brand, in the middle as the brand is */
.iv-head { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.iv-head .iv-title { font-size: 24px; }
.iv-pre { white-space: pre-line; }

/* A note in a tinted box: the accent one tells, the warm one warns */
.iv-callout {
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 14px;
    background: var(--selected);
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.5;
}
.iv-callout > svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); }
.iv-callout b { display: block; margin-bottom: 2px; color: var(--text); font-weight: 600; }
.iv-callout--warm { background: var(--warm-tint); color: var(--warm-ink); }
.iv-callout--warm > svg, .iv-callout--warm b { color: var(--warm-ink); }
.iv-callout--plain { background: var(--surface-sunken); border: 1px solid var(--line); }

/* ---------- Buttons ---------- */

.iv-btn {
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-m);
    border: 1px solid var(--line-control);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.iv-btn:hover { color: var(--text); background: var(--surface-sunken); }
.iv-btn--primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.iv-btn--primary:hover { border-color: var(--accent-ink); background: var(--accent-ink); color: var(--on-accent); }
.iv-btn--warm { border-color: var(--warm-line); color: var(--warm-ink); }
.iv-btn--warm:hover { background: var(--warm-tint); color: var(--warm-ink); }
.iv-btn--large { height: 46px; padding: 0 22px; font-size: 15px; }
.iv-btn--small { height: 32px; padding: 0 12px; border-radius: var(--radius-s); font-size: 13px; }
.iv-btn[disabled] { opacity: 0.55; cursor: default; }
.iv-btn svg { flex-shrink: 0; }

.iv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.iv-actions--end { justify-content: flex-end; }
.iv-actions--center { justify-content: center; }
.iv-form-actions { margin-top: 24px; }

/* ---------- Fields ---------- */

.iv-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.iv-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.iv-field--full { grid-column: 1 / -1; }
.iv-label { font-size: 13px; color: var(--text-3); }
.iv-field.is-required .iv-label::after { content: ' *'; color: var(--warm); }

.iv-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
}
/* The same field for a longer text, as tall as its rows say */
textarea.iv-input { display: block; height: auto; min-height: 46px; padding: 11px 14px; line-height: 1.55; resize: vertical; }
.iv-input::placeholder { color: var(--muted-2); }
.iv-input:focus { outline: none; border-color: var(--selected-line); background: var(--surface); box-shadow: var(--focus-ring); }
/* The scripts mark an empty required field, a bad phone or a refused link with .error */
.iv-input.error { border-color: var(--warm); background: var(--warm-tint); }

/* A select with the cabinet's arrow in place of the system one */
.iv-select { position: relative; display: block; min-width: 0; }
.iv-select::after {
    content: '';
    position: absolute;
    right: 15px; top: 50%;
    width: 7px; height: 7px;
    margin-top: -6px;
    border-right: 1.8px solid var(--text-3);
    border-bottom: 1.8px solid var(--text-3);
    transform: rotate(45deg);
    pointer-events: none;
}
.iv-select select {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 14px;
    appearance: none;
    border-radius: var(--radius-m);
    border: 1px solid var(--line-control);
    background: var(--surface-sunken);
    color: var(--text);
    font-size: 14px;
    text-overflow: ellipsis;
}
.iv-select select:focus { outline: none; border-color: var(--selected-line); box-shadow: var(--focus-ring); }

/* A checkbox with its words beside it, links inside included */
.iv-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.iv-check input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }

/* ---------- Status plates: finished, denied, inactive, unavailable ---------- */

.iv-plate { width: min(560px, 100%); align-items: center; text-align: center; gap: 16px; }
.iv-plate .iv-actions { justify-content: center; margin-top: 8px; }
.iv-plate-title { font: 400 26px/1.25 var(--font-display); overflow-wrap: anywhere; }
.iv-plate-icon {
    width: 60px; height: 60px;
    margin-bottom: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent);
}
.iv-plate-icon.is-warm { background: var(--warm-tint); color: var(--warm); }

/* The date and time of an interview already taken, as two figures side by side */
.iv-facts { margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.iv-facts > div { min-width: 150px; padding: 12px 18px; border-radius: 14px; background: var(--surface-sunken); border: 1px solid var(--line); }
.iv-facts dt { font-size: 12px; color: var(--muted); font-weight: 400; }
.iv-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--text); }
/* The number of a failed request on the error page: one click picks the whole of it to be copied */
.iv-code { font: 500 14px/1.5 var(--font-mono); overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }

.iv-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- Request: the page the interview link opens ---------- */

/* The company in the top bar, as the builder's «Страница для кандидата» preview draws it: logo, name, language */
.iv-company { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 16px; }
.iv-company-logo {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--company-avatar);
    color: var(--company-avatar-ink);
    font-size: 14px; font-weight: 700;
}
/* A logo sits on white, whatever its own background: the dark initials tile is only for a company without one */
.iv-company-logo.has-logo { background: var(--surface); border: 1px solid var(--line); }
.iv-company-logo img { display: none; width: 100%; height: 100%; object-fit: contain; }
.iv-company-name { min-width: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-chip {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--chip);
    color: var(--text-3);
    font: 500 12px var(--font-mono);
    letter-spacing: 0.04em;
}

/* The vacancy beside its video card; without a card the text takes the whole width */
.iv-hero { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.iv-hero-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.iv-hero-video { flex: 1 1 300px; max-width: 400px; }
/* contain, as the dossier's player: a card is recorded at the webcam's 4:3, upright on a phone or uploaded at any
   shape, and cover would cut the recruiter's head off to fill the frame. The dark ground shows round the picture. */
.iv-hero-video video { width: 100%; aspect-ratio: 16 / 10; display: block; border-radius: 14px; background: var(--stage-3); object-fit: contain; }
.iv-scroll { max-height: 260px; overflow-y: auto; }

.iv-request { display: flex; flex-direction: column; gap: 24px; }
.iv-form { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-row); }
.iv-email { display: flex; gap: 10px; }
.iv-email .iv-input { flex-grow: 1; }
.iv-checks { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

/* What the page turns into once the link is sent */
.iv-success { display: none; padding: 12px 0 4px; text-align: center; }
.iv-success .iv-plate-icon { margin: 0 auto 14px; }
.iv-success .iv-plate-title { margin-bottom: 8px; }

/* «Powered by» under the card */
.iv-powered { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; }
.iv-powered .iv-brand { gap: 6px; }
.iv-powered .iv-brand-mark { font-size: 22px; }
.iv-powered .iv-brand-logo { width: 22px; height: 22px; border-radius: 6px; }
.iv-powered .iv-brand-name { font-size: 14px; }

/* ---------- Start: what the interview is and whether the camera and microphone are there ---------- */

.iv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.iv-stat { min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-sunken); }
.iv-stat-label { font-size: 13px; color: var(--muted); }
.iv-stat-value { font: 400 30px/1.1 var(--font-display); color: var(--text); }
.iv-stat-unit { font: 500 14px var(--font-ui); color: var(--text-3); }

.iv-rows { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--line); }
.iv-row { min-height: 52px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.iv-row + .iv-row { border-top: 1px solid var(--line-row); }
.iv-row-label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); }
.iv-row-label svg { color: var(--text-3); }

/* interview-start.js swaps pending for success or error once the browser has listed the devices */
.equipment-status {
    min-width: 32px; height: 28px;
    padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    background: var(--chip);
    color: var(--text-3);
    font-size: 13px; font-weight: 600;
}
.equipment-status.success { background: var(--tint); color: var(--accent); }
.equipment-status.error { background: var(--warm-tint); color: var(--warm); }

/* ---------- Resume ---------- */

.iv-drop {
    padding: 26px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-radius: 14px;
    border: 1px dashed var(--line-control);
    background: var(--surface-sunken);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.iv-drop:hover, .iv-drop.is-over { border-color: var(--accent); background: var(--selected); }
/* The file input inside is out of sight: its focus is shown on the box */
.iv-drop:focus-within { box-shadow: var(--focus-ring); }
.iv-drop.is-chosen { border-style: solid; border-color: var(--selected-line); background: var(--selected); }
.iv-drop.error { border-color: var(--warm); background: var(--warm-tint); }
.iv-drop-icon { width: 30px; height: 30px; color: var(--accent); }
.iv-drop-title { font-size: 15px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.iv-drop-hint { font-size: 13px; color: var(--muted); }

.iv-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.iv-or::before, .iv-or::after { content: ''; flex-grow: 1; height: 1px; background: var(--line); }

/* ---------- Shared language switch (LanguageDropdownComponent, in the top bar of Pages/Shared/_PageTopBar) ---------- */

/* The component brings no styles of its own. Here it stands in the bar, so its list opens down, not up as elsewhere */
.lang-mini { position: relative; flex-shrink: 0; }
.lang-mini-toggle {
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    color: var(--text-3);
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}
.lang-mini-toggle:hover, .lang-mini.open .lang-mini-toggle { color: var(--text); background: var(--chip); }
/* The component's arrow points up, to a list above it */
.lang-mini-toggle > svg:last-child { transform: rotate(180deg); }
.lang-mini.open .lang-mini-toggle > svg:last-child { transform: none; }
.lang-mini-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px); right: 0;
    min-width: 100%;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: var(--radius-m);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
    z-index: 10;
}
.lang-mini.open .lang-mini-list { display: block; }
.lang-mini-list li { padding: 8px 12px; border-radius: var(--radius-s); color: var(--text-2); font-size: 14px; white-space: nowrap; cursor: pointer; }
.lang-mini-list li:hover { background: var(--selected); }
.lang-mini-list li.active { color: var(--accent); font-weight: 600; }

/* ---------- Shared toast (Pages/Shared/_NotificationToast, run by Bootstrap's script) ---------- */

/* Bottom centre, as the cabinet's own toast; Bootstrap's script only switches show/showing/hide on it */
.toast-container {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 32px);
    /* Above the confirm dialog (1450) and the recording popups (1300): a question's time can run out while the
       candidate is asked whether to abort, and its toast must not be dimmed by the backdrop. !important because
       the shared partial sets z-index: 1100 inline, which the other layouts keep. */
    z-index: 1500 !important;
}
.toast {
    max-width: 560px;
    border-radius: var(--radius-m);
    background: var(--text);
    color: var(--surface);
    box-shadow: var(--shadow-pop);
    font-size: 14px;
    transition: opacity 0.15s linear;
}
.toast:not(.show) { display: none; }
.toast.showing, .toast.fade:not(.show) { opacity: 0; }
.toast.text-bg-danger { background: var(--warm-ink); color: var(--surface); }
.toast .d-flex { align-items: center; }
.toast-body { padding: 12px 6px 12px 18px; line-height: 1.45; }
.toast .btn-close {
    width: 36px; height: 36px;
    margin: 0 4px 0 0;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0;
    border-radius: var(--radius-s);
    background: none;
    color: inherit;
    opacity: 0.75;
}
/* The cabinet's cross (M6 6l12 12M18 6L6 18, stroke 2) rather than the letter ×: the partial's button is empty and
   shared with other layouts, so the svg comes in as a mask painted in the toast's text colour. */
.toast .btn-close::before {
    content: '';
    width: 16px; height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.toast .btn-close:hover { opacity: 1; }

/* ---------- Shared confirm dialog (Pages/Shared/_ConfirmDialog, run by notifications.js) ---------- */

.confirm-overlay {
    position: fixed;
    inset: 0;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dialog-backdrop);
    z-index: 1450;
}
.confirm-dialog {
    width: min(460px, 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
}
.confirm-message { display: flex; align-items: flex-start; gap: 14px; }
/* The dialog names its icon by Font Awesome, which these pages do not load: the circle draws its own mark */
.confirm-icon-wrap {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent);
    font: 400 22px/1 var(--font-display);
}
.confirm-icon-wrap i { display: none; }
.confirm-icon-wrap::before { content: '?'; }
.confirm-icon-wrap.confirm-icon-warning, .confirm-icon-wrap.confirm-icon-danger { background: var(--warm-tint); color: var(--warm); }
.confirm-icon-wrap.confirm-icon-warning::before, .confirm-icon-wrap.confirm-icon-danger::before { content: '!'; }
.confirm-icon-wrap.confirm-icon-info::before { content: 'i'; }
.confirm-body { flex: 1; min-width: 0; padding-top: 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm-btn {
    height: 40px;
    min-width: 96px;
    padding: 0 16px;
    border-radius: var(--radius-m);
    border: 1px solid var(--line-control);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}
.confirm-btn:hover { background: var(--surface-sunken); }
.confirm-btn-yes { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.confirm-btn-yes:hover { border-color: var(--accent-ink); background: var(--accent-ink); }
.confirm-btn-yes.confirm-btn-danger { border-color: var(--warm); background: var(--warm); color: var(--surface); }
.confirm-btn-yes.confirm-btn-danger:hover { border-color: var(--warm-ink); background: var(--warm-ink); }

/* ---------- Narrow windows ---------- */

@media (max-width: 640px) {
    .iv-card { gap: 18px; border-radius: var(--radius-l); }
    .iv-title { font-size: 26px; }
    .iv-plate-title { font-size: 22px; }
    .iv-fields { grid-template-columns: minmax(0, 1fr); }
    .iv-hero-video { max-width: none; }
    .iv-email { flex-direction: column; }
    .iv-stats { grid-template-columns: minmax(0, 1fr); }
    .iv-stat { flex-direction: row; align-items: baseline; justify-content: space-between; }
    .iv-stat-value { font-size: 24px; }
    /* The way on takes the whole width under the thumb, as in the cabinet's dialogs on a phone */
    .iv-actions--end > .iv-btn--primary, .iv-actions--end > .iv-btn--large { flex: 1 1 100%; }
    .iv-plate .iv-actions > .iv-btn { flex: 1 1 100%; }
}

/* A phone: the bar is back, half transparent, and the card stands right under it */
@media (max-width: 600px) {
    .iv-top {
        min-height: 60px;
        padding: 12px 18px;
        border-bottom: 1px solid var(--line-row);
        background: rgba(255, 255, 255, 0.6);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    .iv-top .iv-brand { display: inline-flex; }
    .iv-main { padding: 20px 12px 40px; justify-content: flex-start; }
    .iv-card { padding: 30px 22px 26px; }
    .iv-logo { --iv-logo-size: 42px; }
}
