/* Cervetos v2: the signed-in app shell and overview screens, after the owner's design
   "Cervetos v2". The palette (--sm2-*) sits on :root so the public pages without the shell
   (landing.css, sector.css, zorg.css, styles.css) map their own variables onto it; everything
   else here is scoped to body.sm-v2, which MainLayout sets while the shell is on screen.

   Colors. The warm orange of the design is #E8743B, which only reaches 3.0:1 with white text, so
   every surface that carries white text (buttons, the active pill, count badges, the hero's text
   half) uses #C44D17 (4.75:1); the lighter orange stays for decoration and the hero's far side.
   Orange text on the soft orange (#FDEFE6) or the warm page (#F8F4EF) uses #B5461A (4.84:1 and
   4.97:1), since #C44D17 drops to 4.22:1 and 4.34:1 there. */

:root {
  --sm2-orange: #E8743B;
  --sm2-orange-ink: #C44D17;
  --sm2-orange-deep: #B5461A;
  --sm2-orange-soft: #FDEFE6;
  --sm2-orange-line: #F7D5C2;
  --sm2-page: #F8F4EF;
  --sm2-card: #FFFFFF;
  --sm2-line: #EEE6DE;
  --sm2-line-strong: #E2D8CE;
  --sm2-ink: #1F1A17;
  --sm2-text: #3D3631;
  --sm2-muted: #6B6259;
  --sm2-green-bg: #DCFCE7;
  --sm2-green-ink: #166534;
  --sm2-grey-bg: #F1EDE8;
  --sm2-grey-ink: #4F4740;
  --sm2-shadow: 0 1px 2px rgba(31, 26, 23, 0.04), 0 8px 24px rgba(31, 26, 23, 0.06);
  --sm2-radius: 14px;
  --sm2-radius-s: 10px;
}

body.sm-v2 {
  --lumo-primary-color: var(--sm2-orange-ink);
  --lumo-primary-color-50pct: rgba(196, 77, 23, 0.6);
  --lumo-primary-color-10pct: rgba(232, 116, 59, 0.12);
  --lumo-primary-text-color: var(--sm2-orange-ink);
  --lumo-primary-contrast-color: #fff;
  --color-text-link: var(--sm2-orange-ink);
  --color-border-focus: var(--sm2-orange-ink);
  --lumo-border-radius-m: 10px;
  --lumo-border-radius-l: var(--sm2-radius);
  --lumo-header-text-color: var(--sm2-ink);
  --lumo-body-text-color: var(--sm2-text);
  --lumo-secondary-text-color: var(--sm2-muted);
  --color-surface-page: var(--sm2-page);
  background: var(--sm2-page);
  color: var(--sm2-text);
}
body.sm-v2 ::selection { background: rgba(232, 116, 59, 0.25); }
body.sm-v2 .sm-link { color: var(--sm2-orange-ink); }
body.sm-v2 .sm-button-link, body.sm-v2 .sm-next a[theme~="primary"] { background: var(--sm2-orange-ink); border-radius: var(--sm2-radius-s); }
body.sm-v2 .sm-button-link:hover { background: var(--sm2-orange-deep); }
body.sm-v2 vaadin-button[theme~="primary"]:not([theme~="error"]):hover { background-color: var(--sm2-orange-deep); }
body.sm-v2 vaadin-button:not([theme~="primary"]):not([theme~="tertiary"]):not([theme~="tertiary-inline"]) {
  border-color: var(--sm2-line-strong);
  color: var(--sm2-text);
  box-shadow: none;
}
body.sm-v2 .sm-card { border-color: var(--sm2-line); border-radius: var(--sm2-radius); box-shadow: var(--sm2-shadow); }
body.sm-v2 .sm-badge.brand { background: var(--sm2-orange-soft); color: var(--sm2-orange-ink); border-color: var(--sm2-orange-line); }
body.sm-v2 .sm-next-label { color: var(--sm2-orange-ink); }
body.sm-v2 .sm-journey-step.current { background: var(--sm2-orange-soft); color: var(--sm2-orange-ink); }
body.sm-v2 .sm-journey-step.done .sm-journey-dot { background: var(--sm2-orange-ink); }
body.sm-v2 .sm-journey-step.current .sm-journey-dot { color: var(--sm2-orange-ink); box-shadow: 0 0 0 2px var(--sm2-orange-ink); }
body.sm-v2 .sm-progress span.on { background: var(--sm2-orange); }
body.sm-v2 .sm-bubble-row.own .sm-bubble { background: var(--sm2-orange-soft); border-color: var(--sm2-orange-line); }
body.sm-v2 .sm-player-chapter.on, body.sm-v2 sm-direct-upload.primary .sm-upload-button { background: var(--sm2-orange-ink); border-color: var(--sm2-orange-ink); }
body.sm-v2 .sm-player-card { background: linear-gradient(135deg, var(--sm2-orange-deep), #7A2E0E); }
body.sm-v2 vaadin-radio-group.sm-choices vaadin-radio-button[checked] { border-color: var(--sm2-orange-ink); background: var(--sm2-orange-soft); box-shadow: 0 0 0 1px var(--sm2-orange-ink); }

/* ---------- The shell ---------- */

vaadin-app-layout.sm-v2-shell {
  --vaadin-app-layout-drawer-width: 236px;
  --vaadin-app-layout-navbar-background: transparent;
  --vaadin-app-layout-drawer-background: var(--sm2-card);
  background: var(--sm2-page);
}
vaadin-app-layout.sm-v2-shell::part(drawer) {
  width: 236px;
  background: var(--sm2-card);
  border-right: 1px solid var(--sm2-line);
  padding: 0;
  overflow: auto;
}
vaadin-app-layout.sm-v2-shell::part(navbar) {
  min-height: 52px;
  padding: 0 24px;
  background: var(--sm2-page);
  border-bottom: 1px solid var(--sm2-line);
  box-shadow: none;
}
vaadin-app-layout.sm-v2-shell::part(backdrop) { background: rgba(31, 26, 23, 0.45); }
/* The toggle only matters when the drawer is an overlay (phones and narrow windows). */
vaadin-app-layout.sm-v2-shell:not([overlay]) .sm-v2-toggle { display: none; }
.sm-v2-toggle { color: var(--sm2-ink); margin: 0; }

.sm-v2-side { display: flex; flex-direction: column; min-height: 100%; box-sizing: border-box; padding: 18px 14px 16px; gap: 14px; }
.sm-v2-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 8px; text-decoration: none; color: var(--sm2-ink); }
.sm-v2-brand .sm-wordmark { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; }
.sm-v2-mark { width: 18px; height: 18px; color: var(--sm2-orange); }

.sm-v2-portal {
  display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%;
  padding: 10px 12px; border: 1px solid var(--sm2-line); border-radius: var(--sm2-radius-s);
  background: var(--sm2-page);
}
.sm-v2-portal-menu { padding: 0; border: 0; background: transparent; }
.sm-v2-portal-menu vaadin-menu-bar-button {
  width: 100%; margin: 0; padding: 0; height: auto; min-height: 0; border: 1px solid var(--sm2-line);
  border-radius: var(--sm2-radius-s); background: var(--sm2-page); color: inherit; font: inherit; text-align: left;
}
.sm-v2-portal-menu vaadin-menu-bar-button:hover { background: var(--sm2-orange-soft); }
.sm-v2-portal-menu .sm-v2-portal-face { padding: 10px 12px; }
.sm-v2-portal-face { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; }
.sm-v2-portal-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--sm2-orange-soft); color: var(--sm2-orange-ink); }
.sm-v2-portal-icon vaadin-icon { width: 15px; height: 15px; }
.sm-v2-portal-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.sm-v2-portal-title { font-size: 13px; font-weight: 650; color: var(--sm2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-v2-portal-sub { font-size: 11.5px; color: var(--sm2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-v2-chevron { width: 14px; height: 14px; color: var(--sm2-muted); flex: none; }

.sm-v2-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sm-v2-navlink {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--sm2-radius-s);
  font-size: 13.5px; font-weight: 550; color: var(--sm2-text); text-decoration: none;
}
.sm-v2-navlink vaadin-icon { width: 16px; height: 16px; color: var(--sm2-muted); flex: none; }
.sm-v2-navlink > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-v2-navlink:hover { background: var(--sm2-orange-soft); color: var(--sm2-ink); }
.sm-v2-navlink:focus-visible { outline: 2px solid var(--sm2-orange-ink); outline-offset: 2px; }
.sm-v2-navlink.on { background: var(--sm2-orange-ink); color: #fff; font-weight: 650; }
.sm-v2-navlink.on vaadin-icon { color: #fff; }
.sm-v2-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 999px; background: var(--sm2-orange-ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
.sm-v2-navlink.on .sm-v2-count { background: #fff; color: var(--sm2-orange-ink); }

.sm-v2-user { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sm2-line); display: flex; flex-direction: column; gap: 2px; }
.sm-v2-user-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; min-width: 0; }
.sm-v2-user-row > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sm-v2-user-name { font-size: 13px; font-weight: 650; color: var(--sm2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-v2-user-role { font-size: 11.5px; color: var(--sm2-muted); }
.sm-v2-avatar {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: var(--sm2-orange-soft); color: var(--sm2-orange-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.sm-v2-user-action { justify-content: flex-start; margin: 0; padding: 0 10px; height: 34px; font-size: 13.5px; font-weight: 550; color: var(--sm2-text); }
.sm-v2-user-action vaadin-icon { width: 15px; height: 15px; color: var(--sm2-muted); margin-right: 6px; }
.sm-v2-user-action:hover { background: var(--sm2-orange-soft); color: var(--sm2-ink); }

.sm-v2-topbar { display: flex; align-items: center; width: 100%; gap: 8px; }
.sm-v2-topbar-end { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.sm-v2-iconbutton { position: relative; width: 36px; height: 36px; min-width: 0; padding: 0; margin: 0; color: var(--sm2-ink); border-radius: 999px; }
.sm-v2-iconbutton vaadin-icon { width: 17px; height: 17px; }
.sm-v2-iconbutton:hover { background: var(--sm2-orange-soft); }
.sm-v2-bell-count { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; font-size: 10px; }
.sm-v2-user-menu { margin-left: 6px; }
.sm-v2-user-menu vaadin-menu-bar-button { padding: 2px 4px 2px 2px; height: auto; border-radius: 999px; color: inherit; font: inherit; }
.sm-v2-user-menu vaadin-menu-bar-button:hover { background: var(--sm2-orange-soft); }
.sm-v2-topbar-user { display: flex; align-items: center; gap: 8px; }
.sm-v2-topbar-name { font-size: 13.5px; font-weight: 550; color: var(--sm2-ink); }

/* ---------- Pages inside the shell ---------- */

body.sm-v2 .sm-page { max-width: 1240px; padding: 24px 28px 64px; }
.sm-v2-page-head { margin-bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.sm-v2-page-head h1, .sm-v2-page h1 { font-size: 28px; font-weight: 750; letter-spacing: -0.025em; }
.sm-v2-eyebrow { display: block; font-size: 10.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sm2-muted); }
body.sm-v2 .sm-page-header h1 { font-size: 28px; }
.sm-v2-section { margin-top: 24px; }
.sm-v2-section > h2, .sm-v2-section-head h2 { font-size: 16px; font-weight: 650; }
.sm-v2-section > h2 { margin-bottom: 12px; }

.sm-v2-card { background: var(--sm2-card); border: 1px solid var(--sm2-line); border-radius: var(--sm2-radius); box-shadow: var(--sm2-shadow); padding: 20px; box-sizing: border-box; min-width: 0; }
.sm-v2-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sm-v2-arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sm2-orange-ink); text-decoration: none; }
.sm-v2-arrow-link vaadin-icon { width: 13px; height: 13px; }
.sm-v2-arrow-link:hover { text-decoration: underline; }
.sm-v2-scope { font-size: 12px; color: var(--sm2-muted); }

/* The hero: text on the darkened left half, the lighter orange on the right. */
.sm-v2-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--sm2-radius);
  background: linear-gradient(105deg, var(--sm2-orange-deep) 0%, var(--sm2-orange-ink) 50%, var(--sm2-orange) 100%);
  box-shadow: var(--sm2-shadow); color: #fff; min-height: 220px;
}
.sm-v2-hero-text { padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.sm-v2-hero-text .sm-v2-eyebrow { color: rgba(255, 255, 255, 0.85); }
.sm-v2-hero-text h1 { color: #fff; font-size: 34px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.sm-v2-hero-line { font-size: 14.5px; line-height: 1.5; max-width: 34rem; color: #fff; }
.sm-v2-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sm-v2-hero-art { position: relative; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.sm-v2-hero-art::before { content: ""; position: absolute; inset: 24px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.35); }
.sm-v2-progress { display: flex; gap: 6px; max-width: 220px; }
.sm-v2-progress-segment { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.sm-v2-progress-segment.done { background: #fff; }

.sm-v2-button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px; border-radius: var(--sm2-radius-s);
  font-size: 13.5px; font-weight: 650; text-decoration: none; box-sizing: border-box;
}
.sm-v2-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.sm-v2-button.primary { background: #fff; color: var(--sm2-orange-ink); }
.sm-v2-button.primary:hover { background: var(--sm2-orange-soft); }
.sm-v2-button.secondary { border: 1px solid rgba(255, 255, 255, 0.7); color: #fff; }
.sm-v2-button.secondary:hover { background: rgba(255, 255, 255, 0.12); }
.sm-v2-button.primary::after { content: "\2192"; }

.sm-v2-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.sm-v2-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--sm2-card); border: 1px solid var(--sm2-line); border-radius: var(--sm2-radius); box-shadow: var(--sm2-shadow); min-width: 0; }
.sm-v2-tile > div { display: flex; flex-direction: column; min-width: 0; }
.sm-v2-tile-value { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: var(--sm2-ink); line-height: 1.1; }
.sm-v2-tile-value.sm-v2-tile-empty { font-size: 13px; font-weight: 600; color: var(--sm2-muted); }
.sm-v2-tile-label { font-size: 12.5px; color: var(--sm2-muted); margin-top: 3px; }
.sm-v2-icon-bubble { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sm2-orange-soft); color: var(--sm2-orange-ink); }
.sm-v2-icon-bubble vaadin-icon { width: 16px; height: 16px; }

.sm-v2-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.sm-v2-columns.even { grid-template-columns: 1fr 1fr; }

.sm-v2-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.sm-v2-pill.green { background: var(--sm2-green-bg); color: var(--sm2-green-ink); }
.sm-v2-pill.grey { background: var(--sm2-grey-bg); color: var(--sm2-grey-ink); }
.sm-v2-pill.orange { background: var(--sm2-orange-soft); color: var(--sm2-orange-ink); }
/* Rejected (QA F-09): the danger tones of .sm-error-note, #b91c1c on #fef2f2 is 6.0:1. */
.sm-v2-pill.red { background: var(--color-danger-50, #fef2f2); color: var(--color-danger-700, #b91c1c); }

.sm-v2-quick-list { display: flex; flex-direction: column; gap: 8px; }
.sm-v2-quick {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--sm2-line); border-radius: var(--sm2-radius-s);
  font-size: 13.5px; font-weight: 550; color: var(--sm2-ink); text-decoration: none; background: var(--sm2-card);
}
.sm-v2-quick vaadin-icon:first-child { width: 15px; height: 15px; color: var(--sm2-orange-ink); }
.sm-v2-quick > span { flex: 1; }
.sm-v2-quick vaadin-icon:last-child { width: 13px; height: 13px; color: var(--sm2-muted); }
.sm-v2-quick:hover { background: var(--sm2-orange-soft); border-color: var(--sm2-orange-line); }

.sm-v2-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--sm2-line); }
.sm-v2-row:first-of-type, .sm-v2-section-head + .sm-v2-row { border-top: 0; }
.sm-v2-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sm-v2-row-title { font-size: 13.5px; font-weight: 650; color: var(--sm2-ink); }
.sm-v2-row-sub { font-size: 12px; color: var(--sm2-muted); }
.sm-v2-row-when { font-size: 12px; color: var(--sm2-muted); white-space: nowrap; }
.sm-v2-row-code .sm-v2-row-title { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; letter-spacing: 0.02em; }
.sm-v2-empty { font-size: 13.5px; color: var(--sm2-muted); padding: 10px 0; }

.sm-v2-deck-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sm-v2-deck-card { border: 1px solid var(--sm2-line); border-radius: var(--sm2-radius-s); overflow: hidden; background: var(--sm2-card); }
.sm-v2-deck-art {
  position: relative; aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, #F3EDE6 0 6px, #EBE3DA 6px 12px);
}
.sm-v2-deck-clock { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(31, 26, 23, 0.75); color: #fff; font-size: 11px; font-weight: 600; }
.sm-v2-deck-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; align-items: flex-start; }
.sm-v2-deck-name { font-size: 14px; font-weight: 700; color: var(--sm2-ink); }
.sm-v2-deck-headline { font-size: 12px; color: var(--sm2-muted); }
.sm-v2-deck-body .sm-v2-pill { margin-top: 5px; }

.sm-v2-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sm-v2-step { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--sm2-card); border: 1px solid var(--sm2-line); border-radius: var(--sm2-radius); box-shadow: var(--sm2-shadow); }
.sm-v2-step-number { font-size: 15px; font-weight: 750; color: var(--sm2-orange-ink); }
.sm-v2-step.done .sm-v2-step-number::after { content: " \2713"; color: var(--sm2-green-ink); }
.sm-v2-step-title { margin-top: 6px; font-size: 13.5px; font-weight: 650; color: var(--sm2-ink); }
.sm-v2-step-state { font-size: 12px; color: var(--sm2-muted); }

.sm-v2-stats { display: flex; align-items: flex-end; gap: 18px; }
.sm-v2-bars { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 6px; height: 64px; flex: none; }
.sm-v2-bars li { display: flex; align-items: flex-end; }
.sm-v2-bar { display: block; width: 12px; border-radius: 4px 4px 2px 2px; background: var(--sm2-orange); }
.sm-v2-bars li:nth-child(odd) .sm-v2-bar { background: var(--sm2-orange-line); }
.sm-v2-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1; min-width: 0; }
.sm-v2-figure { display: flex; flex-direction: column; gap: 2px; }
.sm-v2-figure .sm-v2-icon-bubble { width: 28px; height: 28px; border-radius: 8px; margin-bottom: 4px; }
.sm-v2-figure-value { font-size: 18px; font-weight: 750; color: var(--sm2-ink); letter-spacing: -0.02em; }
.sm-v2-figure-value.sm-v2-tile-empty { font-size: 12px; font-weight: 600; color: var(--sm2-muted); }
.sm-v2-figure-label { font-size: 11.5px; color: var(--sm2-muted); }

/* ---------- Employer screens (phase 2): deck, search profiles, matches, company, ATS ---------- */

.sm-v2-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sm-v2-head-row .sm-v2-page-head { margin-bottom: 0; flex: 1; min-width: 0; }
.sm-v2-head-button { margin: 4px 0 0; }
.sm-v2-deck-nav { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.sm-v2-deck-counter { font-size: 13px; font-weight: 600; color: var(--sm2-ink); }
.sm-v2-deck-chooser { max-width: 420px; margin-bottom: 16px; }

.sm-v2-deck { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sm-v2-deck-stage { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sm-v2-deck-player { display: flex; flex-direction: column; gap: 10px; }
.sm-v2-deck-player sm-pitch-player { display: block; }
.sm-v2-deck-player .sm-player-stage, .sm-v2-deck-empty { border-radius: var(--sm2-radius); border: 1px solid var(--sm2-line); }
.sm-v2-deck-player .sm-player-card { background: linear-gradient(135deg, var(--sm2-orange-deep), #7A2E0E); }
.sm-v2-deck-player .sm-player-card-meta { color: rgba(255, 255, 255, 0.85); }
.sm-v2-deck-player .sm-player-play span { color: var(--sm2-orange-ink); }
/* The design's four answer tabs: 01 Intro 0:42 and so on, the current one filled orange. */
.sm-v2-deck-player .sm-player-chapters, .sm-v2-deck-chapters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; counter-reset: chapter;
}
.sm-v2-deck-player .sm-player-chapter, .sm-v2-deck-chapter {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 11px; border-radius: 8px;
  border: 1px solid var(--sm2-line); background: var(--sm2-card); color: var(--sm2-text); font-size: 12.5px; font-weight: 600; text-align: left;
}
.sm-v2-deck-player .sm-player-chapter::before, .sm-v2-deck-chapter::before {
  counter-increment: chapter; content: "0" counter(chapter); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--sm2-orange-ink);
}
.sm-v2-deck-player .sm-player-chapter-time, .sm-v2-deck-chapter-time { font-size: 11.5px; font-weight: 500; opacity: 0.75; }
.sm-v2-deck-player .sm-player-chapter.on { background: var(--sm2-orange-ink); border-color: var(--sm2-orange-ink); color: #fff; }
.sm-v2-deck-player .sm-player-chapter.on::before { color: #fff; }
.sm-v2-deck-player .sm-player-chapter:focus-visible { outline: 2px solid var(--sm2-orange-ink); outline-offset: 2px; }
.sm-v2-deck-empty { padding: 16px; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background: repeating-linear-gradient(135deg, #F3EDE6 0 6px, #EBE3DA 6px 12px); color: var(--sm2-muted); font-size: 13.5px; }
.sm-v2-deck-pitch { padding: 14px 16px; border-radius: var(--sm2-radius-s); background: var(--sm2-card); border: 1px solid var(--sm2-line); font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.sm-v2-deck-actions { display: flex; gap: 10px; }
.sm-v2-deck-actions .sm-v2-decide { flex: 1; margin: 0; height: 42px; font-weight: 650; }
.sm-v2-deck-actions .sm-v2-decide.pass { flex: 0 0 38%; }
.sm-v2-deck-actions vaadin-button[theme~="primary"] { background: var(--sm2-orange-ink); }
.sm-v2-deck-actions .sm-v2-decide-column { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sm-v2-deck-actions .sm-v2-decide-column .sm-v2-decide { width: 100%; }
.sm-v2-decide-hint { font-size: 12.5px; color: var(--sm2-muted, #5b6472); text-align: center; }

.sm-v2-deck-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sm-v2-deck-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sm-v2-deck-name-big { font-size: 34px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
.sm-v2-deck-headline-big { margin: -6px 0 0; font-size: 14px; font-weight: 550; color: var(--sm2-text); }
.sm-v2-deck-outcome { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; max-width: 42%; }
.sm-v2-deck-outcome-value { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: var(--sm2-orange-ink); line-height: 1.1; }
.sm-v2-deck-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 12px 0; border-top: 1px solid var(--sm2-line); border-bottom: 1px solid var(--sm2-line); }
.sm-v2-deck-fact { display: flex; flex-direction: column; gap: 3px; }
.sm-v2-deck-fact + .sm-v2-deck-fact { border-left: 1px solid var(--sm2-line); padding-left: 16px; }
.sm-v2-deck-fact-value { font-size: 14px; font-weight: 650; color: var(--sm2-ink); }
.sm-v2-deck-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sm-v2-rule { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--sm2-line); }
.sm-v2-rule:first-child { border-top: 0; }
.sm-v2-rule-mark { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; }
.sm-v2-rule-mark vaadin-icon { width: 11px; height: 11px; }
.sm-v2-rule-mark.met { background: var(--sm2-green-bg); color: var(--sm2-green-ink); }
.sm-v2-rule-mark.unmet { background: var(--sm2-grey-bg); color: var(--sm2-grey-ink); }
.sm-v2-rule-tag { font-size: 11.5px; color: var(--sm2-muted); white-space: nowrap; }
.sm-v2-deck-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--sm2-muted); }

/* Positioned, so the absolutely placed screen-reader text of a wide table scrolls with it
   instead of widening the page on a phone. */
.sm-v2-table-card { position: relative; padding: 4px 20px 8px; overflow-x: auto; }
.sm-v2-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sm-v2-table th { padding: 12px 10px 10px 0; text-align: left; font-size: 10.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sm2-muted); border-bottom: 1px solid var(--sm2-line); }
.sm-v2-table td { padding: 13px 10px 13px 0; border-top: 1px solid var(--sm2-line); color: var(--sm2-text); vertical-align: middle; white-space: nowrap; }
.sm-v2-table tbody tr:first-child td { border-top: 0; }
.sm-v2-table td:last-child, .sm-v2-table th:last-child { text-align: right; padding-right: 0; }

.sm-v2-form { display: flex; flex-direction: column; gap: 12px; }
.sm-v2-form h2 { font-size: 16px; font-weight: 650; }
.sm-v2-form vaadin-text-field, .sm-v2-form vaadin-password-field, .sm-v2-form vaadin-select, .sm-v2-form vaadin-integer-field,
.sm-v2-form vaadin-number-field, .sm-v2-form vaadin-text-area { width: 100%; }
.sm-v2-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-v2-form-section { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--sm2-radius-s); background: var(--sm2-page); border: 1px solid var(--sm2-line); }
.sm-v2-radios { --vaadin-radio-button-size: 1.1em; }
.sm-v2-radios::part(group-field) { display: flex; flex-direction: column; gap: 4px; }

.sm-v2-matches { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.sm-v2-thread-aside { padding: 6px; }
.sm-v2-thread-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sm-v2-thread-list li + li { border-top: 1px solid var(--sm2-line); }
.sm-v2-thread-item { display: block; width: 100%; height: auto; margin: 0; padding: 0; border-radius: var(--sm2-radius-s); text-align: left; color: inherit; font: inherit; }
.sm-v2-thread-item .sm-v2-thread-face { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px 12px; }
.sm-v2-thread-item:hover { background: var(--sm2-orange-soft); }
.sm-v2-thread-item.on { background: var(--sm2-orange-soft); box-shadow: inset 3px 0 0 var(--sm2-orange-ink); }
.sm-v2-thread-pane { background: var(--sm2-card); border: 1px solid var(--sm2-line); border-radius: var(--sm2-radius); box-shadow: var(--sm2-shadow); padding: 16px 20px; min-height: 420px; display: flex; flex-direction: column; }
.sm-v2-thread-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--sm2-line); }
.sm-v2-thread-head h2 { font-size: 16px; font-weight: 700; }
.sm-v2-thread-pane .sm-conversation { flex: 1; display: flex; flex-direction: column; border-top: 0; margin-top: 8px; }
.sm-v2-thread-pane .sm-conversation > div:first-child { flex: 1; }
.sm-v2-thread-pane .sm-bubble-row.own .sm-bubble { background: var(--sm2-orange-ink); border-color: var(--sm2-orange-ink); color: #fff; }
.sm-v2-thread-pane .sm-bubble-row.own .sm-bubble-meta { color: rgba(255, 255, 255, 0.85); }
.sm-v2-thread-pane .sm-composer vaadin-button[theme~="primary"] { background: var(--sm2-orange-ink); }

.sm-v2-steps-card { display: flex; flex-direction: column; gap: 4px; }
.sm-v2-numbered { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--sm2-line); }
.sm-v2-steps-card h2 + .sm-v2-numbered, .sm-v2-section-head + .sm-v2-numbered { border-top: 0; }
.sm-v2-step-digits { flex: none; font-size: 18px; font-weight: 750; letter-spacing: -0.02em; color: var(--sm2-orange-ink); min-width: 30px; line-height: 1.2; }
.sm-v2-step-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--sm2-grey-bg); color: var(--sm2-grey-ink); margin-top: 1px; }
.sm-v2-step-mark vaadin-icon { width: 12px; height: 12px; }
.sm-v2-numbered.done .sm-v2-step-mark { background: var(--sm2-orange-ink); color: #fff; }
.sm-v2-numbered.current .sm-v2-step-mark { background: var(--sm2-orange-soft); color: var(--sm2-orange-ink); }
.sm-v2-numbered.rejected .sm-v2-step-mark { background: var(--color-danger-50, #fef2f2); color: var(--color-danger-700, #b91c1c); }
.sm-v2-rejection { display: grid; gap: 8px; margin-top: 12px; }
.sm-v2-rejection p { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .sm-v2-deck, .sm-v2-matches { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .sm-v2-deck-top { flex-direction: column; }
  .sm-v2-deck-outcome { align-items: flex-start; text-align: left; max-width: none; }
  .sm-v2-deck-player .sm-player-chapters, .sm-v2-deck-chapters { grid-template-columns: 1fr 1fr; }
  .sm-v2-deck-actions { flex-direction: column; }
  .sm-v2-deck-actions .sm-v2-decide.pass { flex: none; }
  .sm-v2-field-grid { grid-template-columns: 1fr; }
  .sm-v2-deck-facts { grid-template-columns: 1fr; }
  .sm-v2-deck-fact + .sm-v2-deck-fact { border-left: 0; padding-left: 0; margin-top: 10px; }
  .sm-v2-thread-pane { min-height: 0; }
}

/* ---------- Admin screens: the page line, data tables, the audit toggle ---------- */

.sm-v2-page-line { margin: 2px 0 0; font-size: 14px; color: var(--sm2-muted); max-width: 48rem; }
.sm-v2-page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sm-v2-page-head-row .sm-v2-page-head { margin-bottom: 0; }
.sm-v2-notes:not(:empty) { margin-bottom: 16px; }
.sm-v2-notes .sm-success-note { display: block; color: var(--sm2-green-ink); }

.sm-v2-card:has(> .sm-v2-table-wrap) { padding: 4px 0; }
.sm-v2-table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sm-v2-table { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--sm2-text); }
.sm-v2-table th {
  padding: 12px 16px 10px; text-align: left; white-space: nowrap;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sm2-muted);
  border-bottom: 1px solid var(--sm2-line);
}
.sm-v2-table td { padding: 12px 16px; vertical-align: middle; border-top: 1px solid var(--sm2-line); white-space: nowrap; }
.sm-v2-table tbody tr:first-child td { border-top: 0; }
.sm-v2-table th:first-child, .sm-v2-table td:first-child { padding-left: 20px; }
.sm-v2-table th:last-child, .sm-v2-table td:last-child { padding-right: 20px; }
.sm-v2-table td:last-child:has(.sm-v2-table-actions), .sm-v2-table td:last-child:has(.sm-v2-table-button) { text-align: right; }
.sm-v2-table-empty { color: var(--sm2-muted); white-space: normal; }
.sm-v2-cell { display: flex; flex-direction: column; line-height: 1.3; }
.sm-v2-cell-title { font-weight: 650; color: var(--sm2-ink); }
.sm-v2-cell-sub, .sm-v2-cell-muted { font-size: 12px; color: var(--sm2-muted); }
.sm-v2-cell-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 650; letter-spacing: 0.02em; color: var(--sm2-ink); }
.sm-v2-table-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.sm-v2-table-button { margin: 0; min-height: 32px; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 650; }
.sm-v2-table-button vaadin-icon { width: 13px; height: 13px; }
/* A disabled Activate stays readable (the design's pale button is decoration; the text keeps its contrast). */
body.sm-v2 vaadin-button.sm-v2-table-button[disabled] { opacity: 1; background: var(--sm2-orange-soft); color: var(--sm2-orange-ink); }

.sm-v2-toggle-tabs { box-shadow: none; padding: 3px; gap: 2px; border: 1px solid var(--sm2-line); border-radius: var(--sm2-radius-s); background: var(--sm2-card); }
.sm-v2-toggle-tabs::part(tabs) { gap: 2px; }
.sm-v2-toggle-tabs vaadin-tab { padding: 6px 12px; min-height: 0; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--sm2-text); }
.sm-v2-toggle-tabs vaadin-tab::before, .sm-v2-toggle-tabs vaadin-tab::after { display: none; }
.sm-v2-toggle-tabs vaadin-tab[selected] { background: var(--sm2-orange-ink); color: #fff; }
.sm-v2-toggle-tabs vaadin-tab:focus-visible { outline: 2px solid var(--sm2-orange-ink); outline-offset: 2px; }

.sm-v2-dialog-note { display: block; padding: 10px 12px; border-radius: var(--sm2-radius-s); background: var(--sm2-orange-soft); color: var(--sm2-orange-ink); font-size: 13px; font-weight: 600; }

/* ---------- Narrow screens: the drawer becomes an overlay, the grids stack ---------- */

@media (max-width: 1100px) {
  .sm-v2-tiles, .sm-v2-steps { grid-template-columns: 1fr 1fr; }
  .sm-v2-columns, .sm-v2-columns.even { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  vaadin-app-layout.sm-v2-shell::part(navbar) { padding: 0 12px; }
  body.sm-v2 .sm-page { padding: 16px 16px 48px; }
  .sm-v2-hero { grid-template-columns: 1fr; min-height: 0; }
  .sm-v2-hero-art { display: none; }
  .sm-v2-hero-text { padding: 24px 20px; }
  .sm-v2-hero-text h1 { font-size: 28px; }
  .sm-v2-topbar-name { display: none; }
  .sm-v2-deck-cards { grid-template-columns: 1fr; }
  .sm-v2-stats { flex-direction: column; align-items: stretch; }
  .sm-v2-figures { grid-template-columns: 1fr; }
  /* Wide tables scroll inside their card; the card itself never grows past the page. */
  .sm-v2-card:has(> .sm-v2-table-wrap) { padding: 0; overflow: hidden; }
  .sm-v2-table th:first-child, .sm-v2-table td:first-child { padding-left: 16px; }
  .sm-v2-table th:last-child, .sm-v2-table td:last-child { padding-right: 16px; }
}
@media (max-width: 520px) {
  .sm-v2-tiles, .sm-v2-steps { grid-template-columns: 1fr; }
}

/* ---------- Phase 2: the candidate screens (video CV, preferences, interests, messages, account) ---------- */

.sm-v2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sm-v2-head .sm-v2-page-head { margin-bottom: 0; }
.sm-v2-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 14px; }
.sm-v2-head-actions .sm-error-note { flex-basis: 100%; }
.sm-v2-page-line { margin: 2px 0 0; font-size: 13.5px; color: var(--sm2-muted); }
.sm-v2-note-line { font-size: 12.5px; color: var(--sm2-muted); line-height: 1.5; margin: 0; }
.sm-v2-fineprint { font-size: 12px; color: var(--sm2-muted); line-height: 1.5; }
.sm-v2-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.sm-v2-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.sm-v2-form-row.salary { grid-template-columns: minmax(0, 1fr) auto; }
.sm-v2-field-label { font-size: 12px; font-weight: 550; color: var(--sm2-muted); margin-bottom: 6px; }
.sm-v2-field-helper { font-size: 12px; color: var(--sm2-muted); margin-top: 6px; }
body.sm-v2 vaadin-button.sm-v2-danger { border: 1px solid var(--sm2-line-strong); color: var(--sm2-ink); background: var(--sm2-card); font-weight: 600; }
body.sm-v2 vaadin-button.sm-v2-danger:hover { background: var(--sm2-orange-soft); border-color: var(--sm2-orange-line); }
.sm-v2-plain-section > h2 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.sm-v2-plain-section h3 { font-size: 14px; font-weight: 650; margin: 0; }

/* Segmented control: one choice out of a few, the chosen pill filled (white on the darker orange). */
.sm-v2-segmented { display: inline-flex; flex-wrap: wrap; gap: 6px; }
body.sm-v2 vaadin-button.sm-v2-segment {
  margin: 0; min-width: 0; height: 32px; padding: 0 12px; border: 1px solid var(--sm2-line-strong); border-radius: 8px;
  background: var(--sm2-card); color: var(--sm2-text); font-size: 13px; font-weight: 550;
}
body.sm-v2 vaadin-button.sm-v2-segment:hover { background: var(--sm2-orange-soft); border-color: var(--sm2-orange-line); }
body.sm-v2 vaadin-button.sm-v2-segment.on { background: var(--sm2-orange-ink); border-color: var(--sm2-orange-ink); color: #fff; }
.sm-v2-segmented-field.readonly vaadin-button.sm-v2-segment { cursor: default; }
.sm-v2-segmented-field.readonly vaadin-button.sm-v2-segment:not(.on) { opacity: 0.7; }

/* Choices as chips: the function areas and the sales questions. */
body.sm-v2 vaadin-checkbox-group.sm-v2-chips::part(group-field),
body.sm-v2 vaadin-radio-group.sm-v2-chips::part(group-field) { display: flex; flex-wrap: wrap; gap: 8px; }
body.sm-v2 vaadin-checkbox-group.sm-v2-chips vaadin-checkbox,
body.sm-v2 vaadin-radio-group.sm-v2-chips vaadin-radio-button {
  margin: 0; padding: 5px 11px 5px 8px; border: 1px solid var(--sm2-line-strong); border-radius: 8px; background: var(--sm2-card);
  font-size: 13px; font-weight: 550;
}
body.sm-v2 vaadin-checkbox-group.sm-v2-chips vaadin-checkbox[checked],
body.sm-v2 vaadin-radio-group.sm-v2-chips vaadin-radio-button[checked] { background: var(--sm2-orange-soft); border-color: var(--sm2-orange-ink); }
body.sm-v2 vaadin-checkbox-group.sm-v2-chips vaadin-checkbox[disabled] { opacity: 0.5; }
/* A main area opens its own row, so its roles read as the chips that follow it. */
body.sm-v2 vaadin-checkbox-group.sm-area-choices vaadin-checkbox.sm-area-main {
  flex: 0 0 100%; box-sizing: border-box; margin-top: 10px; border-color: transparent; background: transparent; font-size: 14px; font-weight: 700;
}
body.sm-v2 vaadin-checkbox-group.sm-area-choices vaadin-checkbox.sm-area-main:first-child { margin-top: 0; }
body.sm-v2 vaadin-checkbox-group.sm-area-choices vaadin-checkbox.sm-area-main[checked] {
  background: var(--sm2-orange-soft); border-color: var(--sm2-orange-ink);
}

/* The video CV. */
.sm-v2-columns.sm-v2-video-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 0; }
.sm-v2-video-left { display: flex; flex-direction: column; gap: 14px; }
.sm-v2-questions { display: flex; flex-direction: column; gap: 2px; }
body.sm-v2 vaadin-button.sm-v2-q-row {
  width: 100%; height: auto; min-height: 0; margin: 0; padding: 12px 14px; border-radius: var(--sm2-radius-s);
  background: transparent; color: inherit; font: inherit; text-align: left; white-space: normal;
}
body.sm-v2 vaadin-button.sm-v2-q-row::part(label) { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; line-height: 1.3; }
body.sm-v2 vaadin-button.sm-v2-q-row:hover { background: var(--sm2-orange-soft); }
body.sm-v2 vaadin-button.sm-v2-q-row.on { background: var(--sm2-grey-bg); }
.sm-v2-q-number { flex: none; width: 34px; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; color: var(--sm2-orange-ink); }
.sm-v2-q-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sm-v2-q-title { font-size: 14px; font-weight: 650; color: var(--sm2-ink); }
.sm-v2-q-sub { font-size: 12px; color: var(--sm2-muted); }
.sm-v2-camera.sm-v2-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.sm-v2-stage { min-width: 0; }
.sm-v2-stage-art {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--sm2-radius-s); overflow: hidden;
  background: repeating-linear-gradient(135deg, #F3EDE6 0 7px, #E9E1D8 7px 14px);
}
.sm-v2-stage-label { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 999px; background: var(--sm2-card); font-size: 11.5px; font-weight: 600; color: var(--sm2-text); box-shadow: var(--sm2-shadow); }
.sm-v2-caption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; background: rgba(31, 26, 23, 0.86); color: #fff; }
.sm-v2-caption .sm-v2-eyebrow { color: rgba(255, 255, 255, 0.78); }
.sm-v2-caption-text { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.sm-v2-stage-actions { display: flex; flex-direction: column; gap: 8px; }
body.sm-v2 vaadin-button.sm-v2-start { width: 100%; margin: 0; justify-content: space-between; }
.sm-v2-stage-secondary { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sm-v2-tip { margin: 0; font-size: 12px; color: var(--sm2-muted); line-height: 1.5; }
body.sm-v2 .sm-v2-section.sm-work-level, body.sm-v2 .sm-work-level.sm-v2-card { border-color: var(--sm2-line); border-radius: var(--sm2-radius); }

/* Preferences. */
.sm-v2-columns.sm-v2-prefs-columns { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: 0; }
.sm-v2-prefs-left { display: flex; flex-direction: column; gap: 16px; }
.sm-v2-optin { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--sm2-orange-line); border-radius: var(--sm2-radius-s); background: var(--sm2-card); }
body.sm-v2 vaadin-checkbox.sm-v2-optin-box::part(label) { font-weight: 650; color: var(--sm2-ink); }
.sm-v2-optin-consent { margin: 2px 0 0 30px; font-size: 12.5px; color: var(--sm2-muted); line-height: 1.45; }
.sm-v2-optin-lock { margin: 6px 0 0 30px; font-size: 12.5px; color: var(--sm2-orange-ink); }
.sm-v2-save-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sm-v2-sales { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sm2-line); }
.sm-v2-sales h3 { font-size: 14px; font-weight: 650; margin: 0 0 4px; }
.sm-v2-blocked.sm-v2-card { align-self: start; }
.sm-v2-kvk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.sm-v2-kvk-row vaadin-button { margin-top: calc(var(--lumo-font-size-s) * 1.5 + 0.5em); }
.sm-v2-blocked-list { margin-top: 6px; }
body.sm-v2 vaadin-button.sm-v2-remove { margin: 0; color: var(--sm2-orange-ink); font-weight: 650; }
.sm-v2-blocked-answer { margin-top: 12px; }

/* Interests. */
.sm-v2-interest-list { background: var(--sm2-card); border: 1px solid var(--sm2-line); border-radius: var(--sm2-radius); box-shadow: var(--sm2-shadow); padding: 4px 18px; }
.sm-v2-interest { padding: 14px 0; }
.sm-v2-interest .sm-v2-avatar { width: 36px; height: 36px; border-radius: 9px; font-size: 12px; }
.sm-v2-interest .sm-v2-row-title { font-size: 14.5px; }
.sm-v2-interest-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sm-v2-interest-actions vaadin-button { margin: 0; }
.sm-v2-interest-actions .sm-v2-arrow-link { padding: 7px 12px; border: 1px solid var(--sm2-line-strong); border-radius: var(--sm2-radius-s); color: var(--sm2-ink); }
.sm-v2-interest-actions .sm-v2-arrow-link:hover { text-decoration: none; background: var(--sm2-orange-soft); }

/* Messages: the thread list on the left, the conversation on the right. */
.sm-v2-messages.sm-v2-card { display: grid; grid-template-columns: 250px minmax(0, 1fr); padding: 0; min-height: 460px; overflow: hidden; }
.sm-v2-thread-list { border-right: 1px solid var(--sm2-line); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.sm-v2-thread-list .sm-v2-empty { padding: 12px; }
body.sm-v2 vaadin-button.sm-v2-thread-row {
  width: 100%; height: auto; min-height: 0; margin: 0; padding: 12px 12px; border-radius: var(--sm2-radius-s);
  background: transparent; color: inherit; font: inherit; text-align: left; white-space: normal; border-left: 3px solid transparent;
}
body.sm-v2 vaadin-button.sm-v2-thread-row::part(label) { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; line-height: 1.3; }
body.sm-v2 vaadin-button.sm-v2-thread-row:hover { background: var(--sm2-orange-soft); }
body.sm-v2 vaadin-button.sm-v2-thread-row.on { background: var(--sm2-page); border-left-color: var(--sm2-orange-ink); }
.sm-v2-thread-pane { display: flex; flex-direction: column; padding: 16px 18px; min-width: 0; }
.sm-v2-thread-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--sm2-line); }
.sm-v2-thread-titles { display: flex; flex-direction: column; }
.sm-v2-thread-titles h2 { font-size: 16px; font-weight: 700; margin: 0; }
.sm-v2-thread-closed { padding: 20px 0; font-size: 13.5px; color: var(--sm2-muted); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sm-v2-thread-closed p { margin: 0; }
body.sm-v2 .sm-v2-conversation.sm-conversation { margin-top: 0; padding-top: 12px; border-top: 0; flex: 1; display: flex; flex-direction: column; min-height: 0; }
body.sm-v2 .sm-v2-conversation > div:first-child { flex: 1; overflow: auto; }
body.sm-v2 .sm-v2-conversation .sm-messages { gap: 10px; }
body.sm-v2 .sm-v2-conversation .sm-bubble { background: var(--sm2-grey-bg); border-radius: 12px; font-size: 13.5px; }
body.sm-v2 .sm-v2-conversation .sm-bubble-row.own .sm-bubble { background: var(--sm2-orange-ink); border: 0; color: #fff; }
body.sm-v2 .sm-v2-conversation .sm-bubble-row.own .sm-bubble-meta { color: rgba(255, 255, 255, 0.82); }
body.sm-v2 .sm-v2-conversation .sm-composer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sm2-line); }

/* Account. */
.sm-v2-columns.sm-v2-account-columns { gap: 32px; margin-top: 0; }

@media (max-width: 1100px) {
  .sm-v2-columns.sm-v2-video-columns, .sm-v2-columns.sm-v2-prefs-columns, .sm-v2-columns.sm-v2-account-columns { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .sm-v2-messages.sm-v2-card { grid-template-columns: 1fr; min-height: 0; }
  .sm-v2-thread-list { border-right: 0; border-bottom: 1px solid var(--sm2-line); }
  .sm-v2-form-row, .sm-v2-form-row.salary, .sm-v2-kvk-row { grid-template-columns: 1fr; }
  .sm-v2-kvk-row vaadin-button { margin-top: 0; }
  .sm-v2-head-actions { padding-top: 0; }
  .sm-v2-interest { flex-wrap: wrap; }
  .sm-v2-interest-actions { width: 100%; justify-content: flex-start; }
}
/* QA F-17: the editable headline on the video CV page, its save button under the field. */
.sm-v2-headline-edit { display: grid; gap: 8px; justify-items: start; }
.sm-v2-headline-edit vaadin-text-field { width: 100%; }
