:root {
  --sidebar-width: 232px;
  --sidebar-bg: #071b35;
  --sidebar-bg-deep: #04152a;
  --sidebar-text: #f4f7fb;
  --sidebar-muted: #b9c7d9;
  --orange: #ff5a1f;
  --accent-highlight: #ff713b;
  --workspace: #f8fafc;
  --line: #e4eaf2;
  /* Единая геометрия верхнего уровня для всех пользовательских страниц. */
  --user-page-max-width: 1400px;
  --user-page-padding: 52px clamp(24px, 5vw, 70px) 80px;
  font-family: Manrope, Arial, sans-serif;
  color: #10213e;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--workspace);
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  padding: 32px 16px 16px;
  background: linear-gradient(165deg, var(--sidebar-bg-deep), var(--sidebar-bg) 64%, #06182d);
  color: var(--sidebar-text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.brand:hover,
.brand:focus,
.brand:visited {
  color: #fff;
}

.brand-mark {
  position: relative;
  display: flex;
  width: 36px;
  height: 31px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 3px solid var(--orange);
  border-radius: 9px;
}

.brand-mark::after {
  position: absolute;
  bottom: -7px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-bottom: 3px solid var(--orange);
  border-left: 3px solid var(--orange);
  background: var(--sidebar-bg-deep);
  content: "";
  transform: skewY(-35deg);
}

.brand-mark i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.sidebar-nav {
  display: grid;
  gap: 3px;
  margin-top: 62px;
}

.nav-link,
.exit-link {
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 8px;
  color: var(--sidebar-muted);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-link {
  position: relative;
  min-height: 48px;
  padding: 0 13px;
  border-left: 2px solid transparent;
}

.nav-event-badge {
  display: grid;
  width: 18px;
  height: 18px;
  margin-left: auto;
  place-items: center;
  border: 2px solid #071b35;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.nav-event-badge[hidden] { display: none; }

.nav-link svg,
.exit-link svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  border-left-color: var(--orange);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  outline: none;
}

.nav-link:visited,
.exit-link:visited {
  color: var(--sidebar-muted);
}

.nav-link.is-active:visited {
  color: #fff;
}

.exit-link {
  min-height: 48px;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.exit-link:hover,
.exit-link:focus-visible {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  outline: none;
}

.profile-workspace {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  border-left: 1px solid var(--line);
  background: var(--workspace);
}

.account-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 2.5vw, 42px);
  padding: 0 clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  transition: min-height 200ms ease, padding 200ms ease, box-shadow 200ms ease;
}

.account-header.is-compact {
  min-height: 78px;
  box-shadow: 0 8px 24px rgba(16, 33, 62, .07);
}

.header-search-button {
  min-height: 44px;
  margin-right: auto;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  box-shadow: 0 5px 14px rgba(255, 90, 31, .17);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.account-header.is-compact .header-search-button {
  min-height: 38px;
  padding-right: 17px;
  padding-left: 17px;
}

.header-search-button:hover,
.header-search-button:focus-visible {
  background: #f4511a;
  box-shadow: 0 8px 18px rgba(255, 90, 31, .25);
  outline: none;
  transform: translateY(-1px);
}

.header-search-button:active {
  transform: translateY(0);
}

.conversation-button {
  gap: 10px;
  background: #15a96f;
  box-shadow: 0 9px 22px rgba(21, 169, 111, .22);
}

.conversation-button:hover,
.conversation-button:focus-visible {
  background: #119760;
  box-shadow: 0 12px 26px rgba(21, 169, 111, .28);
}

.conversation-button.is-ending {
  background: #d95043;
  box-shadow: 0 9px 22px rgba(217, 80, 67, .2);
}

.conversation-button.is-ending:hover,
.conversation-button.is-ending:focus-visible {
  background: #c84438;
}

.conversation-button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.conversation-button i {
  font-size: 14px;
}

.online-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #10213e;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.online-status strong {
  font-weight: 800;
}

.online-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid rgba(20, 193, 119, .18);
  border-radius: 50%;
  background: #14c177;
  box-shadow: 0 0 0 4px rgba(20, 193, 119, .08);
}

.online-avatars {
  display: flex;
  align-items: center;
  padding-left: 2px;
}

.online-avatars img,
.online-avatars-more {
  width: 38px;
  height: 38px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 33, 62, .1);
  transition: width 200ms ease, height 200ms ease, margin 200ms ease;
}

.account-header.is-compact .online-avatars img,
.account-header.is-compact .online-avatars-more {
  width: 30px;
  height: 30px;
}

.online-avatars img {
  display: block;
  margin-left: -9px;
  object-fit: cover;
  background: #e8eef6;
}

.online-avatars img:first-child {
  margin-left: 0;
}

.online-avatars-more {
  display: inline-flex;
  margin-left: 5px;
  align-items: center;
  justify-content: center;
  background: #edf2f8;
  color: #31415e;
  font-size: 13px;
  font-weight: 800;
}

.notification-button {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #10213e;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.account-header.is-compact .notification-button {
  width: 40px;
  height: 40px;
}

.notification-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.notification-button.has-message svg {
  transform-origin: 50% 12%;
  animation: notification-bell-attention 5s ease-in-out infinite;
}

@keyframes notification-bell-attention {
  0%, 20%, 100% { transform: rotate(0); }
  3% { transform: rotate(14deg); }
  6% { transform: rotate(-12deg); }
  9% { transform: rotate(10deg); }
  12% { transform: rotate(-7deg); }
  15% { transform: rotate(4deg); }
  18% { transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .notification-button.has-message svg { animation: none; }
}

.notification-button:hover,
.notification-button:focus-visible {
  background: #eef3f9;
  color: var(--orange);
  outline: none;
}

.notification-menu {
  position: relative;
  flex: 0 0 auto;
}

.notification-badge {
  position: absolute;
  top: 5px;
  right: 4px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  z-index: 26;
  top: calc(100% + 13px);
  right: 0;
  width: min(330px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #e1e8f1;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 46, 78, .16);
}

.notification-panel > header {
  padding: 15px 16px 12px;
  border-bottom: 1px solid #edf1f6;
  color: #10213e;
  font-size: 13px;
}

.free-minutes-notification {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 7px;
  padding: 11px;
  border: 1px solid #f1ded5;
  border-radius: 10px;
  background: #fff8f4;
}

.free-minutes-notification[role="link"] { cursor: pointer; }
.free-minutes-notification[role="link"]:hover,
.free-minutes-notification[role="link"]:focus-visible {
  border-color: #f2bca8;
  background: #fff3ec;
  outline: none;
}

.free-minutes-notification[role="link"] button { position: relative; z-index: 1; }

.free-minutes-value {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.free-minutes-notification div {
  min-width: 0;
}

.free-minutes-notification div strong {
  display: block;
  color: #203653;
  font-size: 11px;
}

.free-minutes-notification p {
  margin: 3px 0 0;
  color: #748299;
  font-size: 9px;
  line-height: 1.45;
}

.free-minutes-notification button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
}

.free-minutes-notification button:hover,
.free-minutes-notification button:focus-visible {
  background: #e94c16;
  outline: none;
}

.free-minutes-notification button:disabled {
  cursor: wait;
  opacity: .6;
}

.bonus-verification-dialog {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(6, 22, 42, .7);
  backdrop-filter: blur(6px);
}

.bonus-verification-dialog[hidden] { display: none; }
.bonus-verification-open { overflow: hidden; }

.bonus-verification-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(5, 24, 48, .38);
}

.bonus-verification-card > header {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid #e7edf4;
}

.bonus-verification-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 14px; background: #fff0e9; color: #ef5720; font-size: 20px; }
.bonus-verification-card header small { display: block; color: #15966a; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bonus-verification-card h2 { margin: 4px 0 0; color: #122642; font-size: 22px; letter-spacing: -.035em; }
.bonus-verification-card header button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #f2f5f8; color: #60728b; cursor: pointer; }
.bonus-verification-card header button:hover { background: #e9eef4; color: #263d5c; }
.bonus-verification-body { padding: 22px 24px; }
.bonus-verification-body > p { margin: 0 0 15px; color: #6e7f96; font-size: 11px; line-height: 1.6; }

.bonus-verification-box { padding: 18px; border: 1px solid #f1d2c6; border-radius: 13px; background: #fff9f6; text-align: center; }
.bonus-verification-code,
.bonus-verification-inputs { display: flex; justify-content: center; gap: 8px; }
.bonus-verification-code { margin-bottom: 9px; }
.bonus-verification-code span,
.bonus-verification-inputs input { display: grid; width: 44px; height: 46px; place-items: center; border-radius: 9px; text-align: center; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 20px; font-weight: 800; }
.bonus-verification-code span { border: 1px dashed #e4aa94; background: #fff; color: #d94c1c; user-select: none; }
.bonus-verification-inputs input { border: 1px solid #d8e2ed; outline: 0; background: #fff; color: #18304d; }
.bonus-verification-inputs input:focus { border-color: #f07a4f; box-shadow: 0 0 0 3px rgba(239, 87, 32, .1); }
.bonus-verification-inputs input.is-valid { border-color: #21a276; background: #f1faf6; color: #15855f; }
.bonus-verification-status { min-height: 16px; margin: 10px 0 0; color: #697d94; font-size: 9px; font-weight: 700; }
.bonus-verification-card > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 24px 20px; border-top: 1px solid #e7edf4; }
.bonus-verification-cancel,
.bonus-verification-confirm { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.bonus-verification-cancel { border: 1px solid #d8e2ed; background: #fff; color: #52657e; }
.bonus-verification-cancel:hover { background: #f4f7fa; }
.bonus-verification-confirm { border: 1px solid #ef5720; background: #ef5720; box-shadow: 0 9px 20px rgba(239, 87, 32, .2); color: #fff; }
.bonus-verification-confirm:hover:not(:disabled) { background: #db4917; }
.bonus-verification-confirm:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }

.notification-empty {
  padding: 25px 16px;
  color: #8190a5;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.scheduled-meeting-notification {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 7px;
  padding: 11px;
  border: 1px solid #cfe6dc;
  border-radius: 10px;
  background: #f1faf6;
  cursor: pointer;
}

.scheduled-meeting-notification > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #119d70; color: #fff; font-size: 16px; }
.scheduled-meeting-notification div { min-width: 0; }
.scheduled-meeting-notification strong { display: block; color: #203653; font-size: 11px; }
.scheduled-meeting-notification p { margin: 3px 0 0; overflow: hidden; color: #748299; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.scheduled-meeting-notification > i { color: #719087; font-size: 10px; }
.scheduled-meeting-notification:hover,
.scheduled-meeting-notification:focus-visible { border-color: #96ceb7; background: #eaf8f2; outline: none; }
.scheduled-meeting-notification.is-rescheduled { border-color: #c9ddf5; background: #f1f7fd; }
.scheduled-meeting-notification.is-rescheduled > span { background: #2878d0; }
.scheduled-meeting-notification.is-rescheduled:hover,
.scheduled-meeting-notification.is-rescheduled:focus-visible { border-color: #9ec2eb; background: #eaf3fc; }
.scheduled-meeting-notification.is-reminder { border-color: #ffd1bc; background: #fff6f1; }
.scheduled-meeting-notification.is-reminder > span { background: #ff642c; }
.scheduled-meeting-notification.is-reminder:hover,
.scheduled-meeting-notification.is-reminder:focus-visible { border-color: #ffad87; background: #fff0e8; }
.scheduled-meeting-notification.is-cancelled { border-color: #efc9c5; background: #fff4f3; }
.scheduled-meeting-notification.is-cancelled > span { background: #df5147; }
.scheduled-meeting-notification.is-cancelled:hover,
.scheduled-meeting-notification.is-cancelled:focus-visible { border-color: #e5a49e; background: #ffedeb; }
.scheduled-meeting-notification.is-offer { border-color: #c9ddf5; background: #f1f7fd; }
.scheduled-meeting-notification.is-offer > span { background: #2878d0; }
.scheduled-meeting-notification.is-offer:hover,
.scheduled-meeting-notification.is-offer:focus-visible { border-color: #9ec2eb; background: #eaf3fc; }
.scheduled-meeting-notification.is-counter-offer { border-color: #f4ceb9; background: #fff7f2; }
.scheduled-meeting-notification.is-counter-offer > span { background: #f2762e; }
.scheduled-meeting-notification.is-counter-offer:hover,
.scheduled-meeting-notification.is-counter-offer:focus-visible { border-color: #eead87; background: #fff2ea; }
.scheduled-meeting-notification.is-accepted-offer { border-color: #bde2d3; background: #f0faf6; }
.scheduled-meeting-notification.is-accepted-offer > span { background: #119d70; }
.scheduled-meeting-notification.is-rejected-offer { border-color: #efc9c5; background: #fff4f3; }
.scheduled-meeting-notification.is-rejected-offer > span { background: #df5147; }
.scheduled-meeting-notification.is-archive-message { border-color: #d7e0ea; background: #f6f8fb; }
.scheduled-meeting-notification.is-archive-message > span {
  overflow: hidden;
  background: #e8eef5;
  color: #58708d;
  font-size: 10px;
  font-weight: 800;
}
.scheduled-meeting-notification.is-queue-invitation { border-color: #c9ddf5; background: #f1f7fd; }
.scheduled-meeting-notification.is-queue-invitation > span { background: #2878d0; }
.scheduled-meeting-notification.is-queue-invitation:hover,
.scheduled-meeting-notification.is-queue-invitation:focus-visible { border-color: #9ec2eb; background: #eaf3fc; }
.scheduled-meeting-notification.is-archive-message > span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scheduled-meeting-notification.is-archive-message:hover,
.scheduled-meeting-notification.is-archive-message:focus-visible { border-color: #afc0d2; background: #edf2f7; }

.notification-panel[hidden],
.notification-badge[hidden],
.free-minutes-notification[hidden],
.notification-empty[hidden] {
  display: none;
}

.account-summary {
  display: inline-flex;
  min-width: 176px;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #10213e;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.account-summary:hover,
.account-summary:focus-visible,
.account-summary:visited {
  color: #10213e;
}

.account-summary:focus-visible {
  outline: 3px solid rgba(255, 90, 31, .18);
  outline-offset: 5px;
}

.account-avatar {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #203f69, #ff8a61);
  box-shadow: 0 0 0 1px #dce4ef, 0 7px 18px rgba(16, 33, 62, .12);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  transition: width 200ms ease, height 200ms ease, box-shadow 200ms ease;
}

.account-header.is-compact .account-avatar {
  width: 42px;
  height: 42px;
}

.account-header.is-compact .account-copy strong {
  font-size: 13px;
}

.account-header.is-compact .account-copy small {
  font-size: 11px;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.account-copy strong,
.account-copy small {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 14px;
  font-weight: 800;
}

.account-copy small {
  color: #697993;
  font-size: 12px;
  font-weight: 500;
}

.account-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.account-menu {
  position: relative;
}

.account-menu.is-open .account-chevron {
  transform: rotate(180deg);
}

.account-menu-list {
  position: absolute;
  z-index: 25;
  top: calc(100% + 13px);
  right: 0;
  display: grid;
  min-width: 238px;
  gap: 3px;
  padding: 7px;
  border: 1px solid #e1e8f1;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 46, 78, .16);
}

.account-role-switcher {
  padding: 4px;
}

.account-role-switcher button {
  min-height: 42px;
  gap: 5px;
  white-space: nowrap;
}

.account-role-switcher button small {
  color: #7e8b9f;
  font-size: 11px;
  font-weight: 600;
}

.account-role-availability {
  margin: 2px 11px 7px;
  color: #c45535;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.account-role-availability[hidden] {
  display: none;
}

.account-minutes {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 4px 4px;
  padding: 8px 11px;
  border: 1px solid #e5ebf3;
  border-radius: 8px;
  background: #f7f9fc;
  color: #52637c;
  font-size: 11px;
  font-weight: 600;
}

.account-minutes strong {
  color: #15966a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.account-minutes.is-negative {
  border-color: #f0c5c0;
  background: #fff5f3;
}

.account-minutes.is-negative strong {
  color: #d44239;
}

.account-menu-divider {
  height: 1px;
  margin: 5px 4px;
  background: #e8edf4;
}

.account-menu-list[hidden] {
  display: none;
}

.account-menu-list a,
.account-menu-list button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #263b5a;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.account-menu-list a:visited {
  color: #263b5a;
}

.account-menu-list a:hover,
.account-menu-list a:focus-visible,
.account-menu-list button:hover,
.account-menu-list button:focus-visible {
  background: #f4f7fb;
  color: var(--orange);
  outline: none;
}

.account-menu-list [data-logout] {
  color: #b43e30;
}

.account-menu-list [data-logout]:hover,
.account-menu-list [data-logout]:focus-visible {
  background: #fff5f2;
  color: #d64b39;
}

.account-menu-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-content {
  min-height: calc(100vh - 116px);
}

.search-content {
  min-height: calc(100vh - 116px);
}

.history-content {
  min-height: calc(100vh - 116px);
}

.history-page {
  width: min(100%, var(--user-page-max-width));
  margin: 0 auto;
  padding: var(--user-page-padding);
}

.events-content {
  min-height: calc(100vh - 86px);
  background: #f6f8fb;
}

.events-page {
  width: min(100%, var(--user-page-max-width));
  margin: 0 auto;
  padding: var(--user-page-padding);
}

.events-heading h1 {
  margin: 0;
  color: #10213e;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.events-heading > p:last-child {
  max-width: 720px;
  margin: 13px 0 31px;
  color: #71809a;
  font-size: 14px;
  line-height: 1.65;
}

.events-list { display: grid; gap: 16px; }
.scheduled-events-list { display: grid; gap: 16px; }
.scheduled-events-list:empty { display: none; }

.event-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 176px;
  padding: 25px 28px;
  border: 1px solid #dce5ef;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(34, 61, 91, .06);
}

.event-card.is-notification-target {
  animation: event-notification-target 3.2s ease-out;
}

@keyframes event-notification-target {
  0%, 22% { border-color: #ff642c; box-shadow: 0 0 0 5px rgba(255, 100, 44, .2), 0 18px 38px rgba(34, 61, 91, .1); }
  55% { border-color: #ff9a73; box-shadow: 0 0 0 2px rgba(255, 100, 44, .1), 0 14px 32px rgba(34, 61, 91, .07); }
  100% { border-color: #dce5ef; box-shadow: 0 14px 32px rgba(34, 61, 91, .06); }
}

.event-card[hidden],
.events-empty[hidden] { display: none; }

.event-card-icon {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #ff7442, #ed4f17);
  box-shadow: 0 13px 26px rgba(255, 93, 34, .22);
  color: #fff;
  font-size: 27px;
}

.event-card-icon .free-minutes-value {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 36px;
  height: 36px;
  border: 4px solid #fff;
  font-size: 10px;
}

.event-card-calendar { background: linear-gradient(145deg, #1ab17f, #0b8d64); box-shadow: 0 13px 26px rgba(16, 157, 111, .2); }
.event-card-calendar-rescheduled { background: linear-gradient(145deg, #438fdf, #226bc2); box-shadow: 0 13px 26px rgba(40, 120, 208, .22); }
.event-card-calendar-cancelled { background: linear-gradient(145deg, #ee7168, #d94339); box-shadow: 0 13px 26px rgba(217, 67, 57, .2); }
.event-card-calendar-past { background: linear-gradient(145deg, #8c9caf, #65778d); box-shadow: 0 13px 26px rgba(83, 103, 126, .18); }
.event-card-queue-icon { background: linear-gradient(145deg, #438fdf, #226bc2); box-shadow: 0 13px 26px rgba(40, 120, 208, .22); }
.event-card-queue-invitation.is-expired { border-color: #d8e1e9; background: #fbfcfd; }
.event-card-queue-invitation.is-expired .event-card-queue-icon { background: linear-gradient(145deg, #8c9caf, #65778d); box-shadow: 0 13px 26px rgba(83, 103, 126, .18); }
.event-card-queue-invitation.is-expired .event-card-meta span { color: #64778f; }
.event-card-queue-invitation [data-invitation-countdown] { color: #0b9568; font-variant-numeric: tabular-nums; }
.event-queue-enter-button { white-space: nowrap; }
.event-card-cancelled { border-color: #efd4d1; background: #fffafa; }
.event-card-past { position: relative; border-color: #d8e1e9; background: #fbfcfd; }
.event-card-past .event-card-meta span { color: #64778f; }
.event-past-delete {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: start;
  border: 1px solid #d8e1e9;
  border-radius: 50%;
  background: #fff;
  color: #72839a;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.event-past-delete:hover,
.event-past-delete:focus-visible { border-color: #e5a29d; outline: none; background: #fff3f2; color: #d7463e; transform: translateY(-1px); }
.event-past-delete:disabled { cursor: wait; opacity: .5; transform: none; }
.event-card-handshake { background: linear-gradient(145deg, #438fdf, #226bc2); box-shadow: 0 13px 26px rgba(40,120,208,.22); }
.event-card-counter-offer .event-card-handshake { background: linear-gradient(145deg, #ff934f, #ed611c); box-shadow: 0 13px 26px rgba(237,97,28,.22); }
.event-card-acceptance .event-card-handshake { background: linear-gradient(145deg, #21b884, #0b8d64); box-shadow: 0 13px 26px rgba(11,141,100,.22); }
.event-card-rejection .event-card-handshake { background: linear-gradient(145deg, #ee7168, #d94339); box-shadow: 0 13px 26px rgba(217,67,57,.2); }
.event-card-archive-message { align-items: start; }
.event-card-archive-avatar {
  overflow: hidden;
  background: linear-gradient(145deg, #7990aa, #536b87);
  box-shadow: 0 13px 26px rgba(70, 92, 119, .2);
  font-size: 18px;
  font-weight: 800;
}
.event-card-archive-avatar img { width: 100%; height: 100%; object-fit: cover; }
.event-archive-message-text { max-width: 820px; white-space: pre-wrap; }
.event-room-button { text-decoration: none; background: #102b4c; box-shadow: 0 9px 20px rgba(16,43,76,.15); }
.event-room-button:hover,
.event-room-button:focus-visible { background: #0a213d; color: #fff; outline: none; }
.event-room-button-blue { background: #2878d0; box-shadow: 0 9px 20px rgba(40,120,208,.2); }
.event-room-button-blue:hover,
.event-room-button-blue:focus-visible { background: #1e68ba; }

.event-card-copy { min-width: 0; }
.event-card-offer { align-items: start; }
.event-offer-sender { margin-bottom: 12px !important; }
.event-offer-table { overflow: hidden; border: 1px solid #dce6ef; border-radius: 10px; }
.event-offer-table > div { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(180px, 1.3fr); border-top: 1px solid #e5ebf2; }
.event-offer-table > div:first-child { border-top: 0; }
.event-offer-table strong,
.event-offer-table span { padding: 10px 12px; color: #304865; font-size: 10px; line-height: 1.45; }
.event-offer-table strong { border-right: 1px solid #e5ebf2; background: #f7f9fc; color: #687991; }
.event-offer-table.is-three-columns > div { grid-template-columns: minmax(120px, .65fr) minmax(170px, 1fr) minmax(150px, .9fr); }
.event-offer-table .event-counter-response { border-left: 1px solid #f0ded1; background: #fff8f3; color: #c95c1c; font-weight: 800; }
.event-counter-message { margin-top: 12px; padding: 12px 14px; border: 1px solid #f0d7c8; border-radius: 10px; background: #fff9f5; }
.event-counter-message[hidden] { display: none; }
.event-counter-message strong { display: block; margin-bottom: 5px; color: #b95822; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.event-counter-message p { white-space: pre-wrap; }
.event-decline-message { margin-top: 12px; padding: 12px 14px; border: 1px solid #efcfcc; border-radius: 10px; background: #fff7f6; }
.event-decline-message[hidden] { display: none; }
.event-decline-message strong { display: block; margin-bottom: 5px; color: #bd5048; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.event-decline-message p { white-space: pre-wrap; }
.event-offer-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.event-offer-actions[hidden], .event-offer-status[hidden] { display: none; }
.event-offer-actions button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.event-offer-actions button:disabled { cursor: wait; opacity: .55; }
.event-offer-counter-button { border-color: #f1ba98 !important; background: #fff7f1; color: #dc641e; }
.event-offer-counter-button:hover, .event-offer-counter-button:focus-visible { background: #ffede1; outline: none; }
.event-offer-actions .event-offer-decline-button { width: 40px; flex: 0 0 40px; padding: 0; border-color: #edc5c2; background: #fff7f6; color: #d94a41; font-size: 13px; }
.event-offer-decline-button:hover, .event-offer-decline-button:focus-visible { border-color: #df938e !important; background: #fff0ee; outline: none; }
.event-offer-accept-button { background: #119d70; box-shadow: 0 8px 18px rgba(17,157,112,.18); color: #fff; }
.event-offer-accept-button:hover, .event-offer-accept-button:focus-visible { background: #0c895f; outline: none; }
.event-offer-status { display: inline-flex; margin-top: 14px; padding: 7px 10px; border-radius: 8px; background: #edf4fb; color: #2878d0; font-size: 10px; font-weight: 800; }
.event-offer-status.is-accepted { background: #eaf8f2; color: #0c8b61; }
.event-offer-status.is-countered { background: #fff2e9; color: #d56220; }
.event-offer-status.is-declined { background: #fff0ee; color: #d84c3f; }
.event-offer-status.is-error { background: #fff0ee; color: #d84c3f; }
.event-accepted-contacts { display: grid; gap: 9px; margin-top: 14px; padding: 13px; border: 1px solid #cce5da; border-radius: 11px; background: #f2faf7; }
.event-accepted-contacts[hidden] { display: none; }
.event-accepted-contacts > strong { color: #137d5b; font-size: 10px; }
.event-accepted-contacts > div { display: flex; flex-wrap: wrap; gap: 7px; }
.event-accepted-contacts a { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #d7e7e0; border-radius: 9px; background: #fff; color: #48627b; text-decoration: none; }
.event-accepted-contacts a:hover,
.event-accepted-contacts a:focus-visible { border-color: #8fc8b3; outline: none; }
.event-accepted-contacts a > i { color: #15966a; font-size: 12px; }
.event-accepted-contacts a > span { display: grid; gap: 1px; }
.event-accepted-contacts a small { color: #8a98a9; font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.event-accepted-contacts a b { color: #29435f; font-size: 9px; }
.event-accepted-contacts > p { margin: 0; color: #718399; font-size: 9px; }

.acceptance-dialog { position: fixed; z-index: 1340; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(10,27,48,.55); backdrop-filter: blur(5px); }
.acceptance-dialog[hidden] { display: none; }
.acceptance-dialog-open { overflow: hidden; }
.acceptance-dialog-card { width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid #dce7e1; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(8,28,51,.25); }
.acceptance-dialog-card > header { display: grid; grid-template-columns: 48px minmax(0, 1fr) 38px; align-items: center; gap: 13px; padding: 21px 23px 16px; }
.acceptance-dialog-card > header > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #eaf8f2; color: #15966a; font-size: 18px; }
.acceptance-dialog-card header small { color: #15966a; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.acceptance-dialog-card h2 { margin: 4px 0 0; color: #122642; font-size: 22px; letter-spacing: -.03em; }
.acceptance-dialog-card header button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #f2f5f8; color: #60728b; cursor: pointer; }
.acceptance-dialog-card > p { margin: 0; padding: 0 23px 17px; color: #63758d; font-size: 10px; line-height: 1.6; }
.acceptance-dialog-offer-heading { display: grid; gap: 3px; margin: 0 23px 9px; }
.acceptance-dialog-offer-heading small,
.acceptance-dialog-message small { color: #8291a4; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.acceptance-dialog-offer-heading strong { color: #183250; font-size: 13px; }
.acceptance-dialog-terms { margin: 0 23px; overflow: hidden; border: 1px solid #dce6ef; border-radius: 11px; }
.acceptance-dialog-terms > div { display: grid; grid-template-columns: minmax(130px,.65fr) minmax(180px,1.35fr); border-top: 1px solid #e5ebf2; }
.acceptance-dialog-terms > div:first-child { border-top: 0; }
.acceptance-dialog-terms strong,
.acceptance-dialog-terms span { padding: 11px 12px; color: #304865; font-size: 10px; line-height: 1.45; }
.acceptance-dialog-terms strong { border-right: 1px solid #e5ebf2; background: #f7f9fc; color: #687991; }
.acceptance-dialog-message { display: grid; gap: 6px; margin: 12px 23px 0; padding: 11px 12px; border: 1px solid #dce6ef; border-radius: 10px; background: #f8fafc; }
.acceptance-dialog-message[hidden] { display: none; }
.acceptance-dialog-message p { margin: 0; color: #425a76; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.acceptance-dialog-card > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 19px 23px 23px; }
.acceptance-dialog-card > footer button { min-height: 42px; padding: 0 16px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.acceptance-dialog-cancel { border: 1px solid #d7e1eb; background: #fff; color: #63758d; }
.acceptance-dialog-confirm { display: inline-flex; align-items: center; gap: 8px; border: 0; background: #15966a; box-shadow: 0 8px 18px rgba(21,150,106,.2); color: #fff; }
.acceptance-dialog-confirm:hover,
.acceptance-dialog-confirm:focus-visible { background: #0d815a; outline: none; }

.decline-dialog { position: fixed; z-index: 1340; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(10,27,48,.58); backdrop-filter: blur(5px); }
.decline-dialog[hidden] { display: none; }
.decline-dialog-open { overflow: hidden; }
.decline-dialog-card { width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid #ead8d6; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(8,28,51,.27); }
.decline-dialog-card > header { display: grid; grid-template-columns: 48px minmax(0, 1fr) 38px; align-items: center; gap: 13px; padding: 21px 23px 16px; }
.decline-dialog-card > header > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #fff0ee; color: #d94a41; font-size: 18px; }
.decline-dialog-card header small { color: #d94a41; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.decline-dialog-card h2 { margin: 4px 0 0; color: #122642; font-size: 22px; letter-spacing: -.03em; }
.decline-dialog-card header button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #f2f5f8; color: #60728b; cursor: pointer; }
.decline-dialog-card > p { margin: 0; padding: 0 23px 17px; color: #63758d; font-size: 10px; line-height: 1.6; }
.decline-dialog-message { display: grid; gap: 7px; margin: 0 23px; color: #405672; font-size: 10px; font-weight: 800; }
.decline-dialog-message textarea { resize: vertical; min-height: 112px; padding: 11px 12px; border: 1px solid #dfc8c5; border-radius: 10px; outline: none; color: #263d5a; font: inherit; font-size: 11px; line-height: 1.55; }
.decline-dialog-message textarea:focus { border-color: #dc827b; box-shadow: 0 0 0 3px rgba(217,74,65,.08); }
.decline-dialog-card .decline-dialog-status { min-height: 17px; padding: 6px 23px 0; color: #d25348; font-size: 9px; font-weight: 700; }
.decline-dialog-card > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 10px 23px 23px; }
.decline-dialog-card > footer button { min-height: 42px; padding: 0 16px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.decline-dialog-cancel { border: 1px solid #d7e1eb; background: #fff; color: #63758d; }
.decline-dialog-confirm { display: inline-flex; align-items: center; gap: 8px; border: 0; background: #d94a41; box-shadow: 0 8px 18px rgba(217,74,65,.2); color: #fff; }
.decline-dialog-confirm:hover,
.decline-dialog-confirm:focus-visible { background: #c53e36; outline: none; }

.counter-offer-dialog { position: fixed; z-index: 1300; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(10,27,48,.55); backdrop-filter: blur(5px); }
.counter-offer-dialog[hidden] { display: none; }
.counter-offer-dialog-card { width: min(920px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid #e2e8ef; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(8,28,51,.25); }
.counter-offer-dialog-card > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px 16px; }
.counter-offer-dialog-card > header small { color: #e66a24; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.counter-offer-dialog-card > header h2 { margin: 4px 0 0; color: #132845; font-size: 23px; }
.counter-offer-dialog-card > header button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #f3f6f9; color: #60748e; cursor: pointer; }
.counter-offer-dialog-card > p { margin: 0; padding: 0 24px 17px; color: #657790; font-size: 11px; line-height: 1.55; }
.counter-offer-dialog-card form { padding: 0 24px 24px; }
.counter-offer-table { overflow: hidden; border: 1px solid #dce6ef; border-radius: 11px; }
.counter-offer-table > div { display: grid; grid-template-columns: minmax(120px,.65fr) minmax(180px,1fr) minmax(160px,.9fr); border-top: 1px solid #e5ebf2; }
.counter-offer-table > div:first-child { border-top: 0; }
.counter-offer-table strong, .counter-offer-table span { padding: 11px 12px; color: #304865; font-size: 10px; line-height: 1.45; }
.counter-offer-table strong { border-right: 1px solid #e5ebf2; background: #f7f9fc; color: #687991; }
.counter-offer-table input { min-width: 0; margin: 5px; padding: 6px 9px; border: 1px solid #efc3a7; border-radius: 7px; outline: none; background: #fff9f5; color: #a94d18; font: inherit; font-size: 10px; font-weight: 700; }
.counter-offer-table input:focus { border-color: #e87331; box-shadow: 0 0 0 3px rgba(232,115,49,.1); }
.counter-offer-message { display: grid; gap: 7px; margin-top: 14px; color: #405672; font-size: 10px; font-weight: 800; }
.counter-offer-message span small { color: #8b99ac; font-weight: 500; }
.counter-offer-message textarea { resize: vertical; min-height: 100px; padding: 11px 12px; border: 1px solid #d8e3ed; border-radius: 10px; outline: none; color: #263d5a; font: inherit; font-size: 11px; line-height: 1.55; }
.counter-offer-message textarea:focus { border-color: #e8a57f; box-shadow: 0 0 0 3px rgba(232,115,49,.08); }
.counter-offer-status { min-height: 17px; margin-top: 8px; color: #d25338; font-size: 10px; }
.counter-offer-dialog-card footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.counter-offer-dialog-card footer button { min-height: 41px; padding: 0 16px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.counter-offer-cancel { border: 1px solid #d7e1eb; background: #fff; color: #63758d; }
.counter-offer-submit { display: inline-flex; align-items: center; gap: 8px; border: 0; background: #ed6d25; box-shadow: 0 8px 18px rgba(237,109,37,.2); color: #fff; }
.counter-offer-submit:disabled { cursor: wait; opacity: .6; }

@media (max-width: 560px) {
  .event-offer-table > div { grid-template-columns: 1fr; }
  .event-offer-table strong { border-right: 0; border-bottom: 1px solid #e5ebf2; }
  .event-offer-table .event-counter-response { border-top: 1px solid #f0ded1; border-left: 0; }
  .counter-offer-dialog { padding: 10px; }
  .counter-offer-dialog-card { max-height: calc(100vh - 20px); }
  .counter-offer-table > div { grid-template-columns: 1fr; }
  .counter-offer-table strong { border-right: 0; }
}
.event-card-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: #8290a5; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.event-card-meta span { color: #0b9d6c; }
.event-card h2 { margin: 9px 0 5px; color: #142845; font-size: 20px; letter-spacing: -.025em; }
.event-card p { margin: 0; color: #4f627e; font-size: 13px; line-height: 1.55; }
.event-card small { display: block; max-width: 710px; margin-top: 9px; color: #8492a7; font-size: 10px; line-height: 1.55; }

.event-claim-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  box-shadow: 0 9px 20px rgba(255, 93, 34, .2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.event-claim-button:hover,
.event-claim-button:focus-visible { background: #e94c16; outline: none; }
.event-claim-button:disabled { cursor: wait; opacity: .6; }

.events-empty {
  display: grid;
  min-height: 300px;
  padding: 45px 24px;
  place-items: center;
  align-content: center;
  border: 1px dashed #d5e0eb;
  border-radius: 17px;
  background: rgba(255,255,255,.72);
  text-align: center;
}

.events-empty > span { display: grid; width: 62px; height: 62px; place-items: center; border-radius: 18px; background: #eaf7f1; color: #119d70; font-size: 24px; }
.events-empty h2 { margin: 18px 0 7px; color: #243a57; font-size: 17px; }
.events-empty p { max-width: 470px; margin: 0; color: #7b8ba2; font-size: 11px; line-height: 1.65; }

.history-heading h1 {
  margin: 0;
  color: #10213e;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.history-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.history-heading-actions { display: flex; align-items: center; gap: 9px; }
.archives-view .history-bulk-action,
.archives-view .history-bulk-apply,
.archives-view .history-archive-menu,
.archives-view .history-sort-select,
.archives-view .history-sort-direction,
.archives-view .history-filter-reset,
.archives-view .history-selection-checkbox { display: none !important; }
.archives-view .history-person-entry { grid-template-columns: minmax(0, 1fr); }
.archives-view .history-person-card { grid-column: 1; }
.history-bulk-action {
  position: relative;
  display: grid;
  min-height: 40px;
  grid-template-columns: auto minmax(155px, 1fr) 14px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #d6e1ec;
  border-radius: 10px;
  background: #fff;
}
.history-bulk-action > span { color: #8494a8; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.history-bulk-action select { appearance: none; min-width: 0; border: 0; outline: 0; background: transparent; color: #314a68; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; }
.history-bulk-action > i { color: #8396ac; font-size: 9px; pointer-events: none; }
.history-bulk-apply {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #e5b0aa;
  border-radius: 10px;
  background: #fff8f7;
  color: #d84942;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.history-bulk-apply:hover:not(:disabled), .history-bulk-apply:focus-visible:not(:disabled) { border-color: #df7770; background: #fff0ee; outline: none; }
.history-bulk-apply:disabled { border-color: #e1e8f0; background: #f7f9fb; color: #aab6c5; cursor: not-allowed; }
.history-archive-menu {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #d6e1ec;
  border-radius: 10px;
  background: #fff;
  color: #506984;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.history-archive-menu i { color: #47779f; font-size: 12px; }
.history-archive-menu:hover,
.history-archive-menu:focus-visible { border-color: #a6bfd6; background: #f3f8fc; color: #244f77; outline: none; transform: translateY(-1px); }
.history-archive-menu:disabled {
  border-color: #e1e8f0;
  background: #f7f9fb;
  box-shadow: none;
  color: #aab6c5;
  cursor: not-allowed;
  opacity: .72;
  transform: none;
}
.history-archive-menu:disabled i { color: #aab6c5; }

.history-delete-dialog {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(7, 25, 47, .68);
  backdrop-filter: blur(5px);
}
.history-delete-dialog[hidden] { display: none; }
.history-delete-dialog-open { overflow: hidden; }
.history-delete-dialog-card {
  display: grid;
  width: min(480px, 100%);
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  padding: 24px;
  border: 1px solid #ead9d7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(4, 24, 48, .32);
}
.history-delete-dialog-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 15px; background: #fff0ee; color: #e14b43; font-size: 19px; }
.history-delete-dialog-copy small { color: #e14b43; font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.history-delete-dialog-copy h2 { margin: 4px 0 7px; color: #152b47; font-size: 19px; letter-spacing: -.03em; }
.history-delete-dialog-copy p { margin: 0; color: #6f8096; font-size: 10px; line-height: 1.6; }
.history-delete-dialog-card footer { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.history-delete-dialog-card footer button { min-height: 40px; padding: 0 14px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; }
.history-delete-cancel { border: 1px solid #d9e3ed; background: #fff; color: #61748d; }
.history-delete-confirm { border: 0; background: #e24d45; color: #fff; }
.history-delete-confirm:hover { background: #d8423b; }
.history-delete-confirm:disabled { cursor: wait; opacity: .6; }

.history-block-dialog {
  position: fixed;
  z-index: 190;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(7, 25, 47, .68);
  backdrop-filter: blur(5px);
}
.history-block-dialog[hidden] { display: none; }
.history-block-dialog-open { overflow: hidden; }
.history-block-dialog-card {
  display: grid;
  width: min(480px, 100%);
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  padding: 24px;
  border: 1px solid #ead9d7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(4, 24, 48, .32);
}
.history-block-dialog-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: #fff0ee;
  color: #e14b43;
  font-size: 19px;
}
.history-block-dialog-copy small { color: #e14b43; font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.history-block-dialog-copy h2 { margin: 4px 0 7px; color: #152b47; font-size: 19px; letter-spacing: -.03em; }
.history-block-dialog-copy p { margin: 0; color: #6f8096; font-size: 10px; line-height: 1.6; }
.history-archive-message-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  margin-top: 3px;
}
.history-archive-message-field[hidden] { display: none; }
.history-archive-message-field > span { color: #344965; font-size: 10px; font-weight: 800; }
.history-archive-message-field textarea {
  width: 100%;
  min-height: 126px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid #d9e3ed;
  border-radius: 12px;
  outline: 0;
  background: #fbfcfe;
  color: #233955;
  font: inherit;
  font-size: 11px;
  line-height: 1.6;
}
.history-archive-message-field textarea:focus {
  border-color: #16a66e;
  box-shadow: 0 0 0 4px rgba(22, 166, 110, .1);
  background: #fff;
}
.history-archive-message-field > small { min-height: 14px; color: #d7493f; font-size: 9px; }
.history-block-dialog-card footer { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.history-block-dialog-card footer button { min-height: 40px; padding: 0 14px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; }
.history-block-dialog-cancel { border: 1px solid #d9e3ed; background: #fff; color: #61748d; }
.history-block-dialog-confirm { border: 0; background: #e24d45; color: #fff; }
.history-block-dialog-confirm:hover { background: #d8423b; }
.history-block-dialog.is-unblock .history-block-dialog-card { border-color: #d5e8df; }
.history-block-dialog.is-unblock .history-block-dialog-icon { background: #edf8f3; color: #178d63; }
.history-block-dialog.is-unblock .history-block-dialog-copy small { color: #178d63; }
.history-block-dialog.is-unblock .history-block-dialog-confirm { background: #178d63; }
.history-block-dialog.is-unblock .history-block-dialog-confirm:hover { background: #117b55; }
.history-sort-select {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr) 18px;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #d6e1ec;
  border-radius: 10px;
  background: #fff;
  color: #718199;
}
.history-sort-select > span { font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.history-sort-select select {
  min-width: 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: #203653;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}
.history-sort-select > i { color: #8293aa; font-size: 9px; pointer-events: none; }
.history-sort-select:focus-within { border-color: #adc2d8; box-shadow: 0 0 0 3px rgba(58,112,164,.08); }
.history-sort-direction,
.history-filter-reset {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #d6e1ec;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
}
.history-sort-direction { color: #2878d0; }
.history-filter-reset { color: #8293aa; }
.history-sort-direction:hover,
.history-sort-direction:focus-visible,
.history-filter-reset:hover,
.history-filter-reset:focus-visible { border-color: #9fbcda; background: #f4f8fc; outline: none; }

.history-toggle-all {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid #d8e3ee;
  border-radius: 10px;
  background: #fff;
  color: #50647f;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.history-toggle-all:hover,
.history-toggle-all:focus-visible {
  border-color: #adc2d8;
  background: #f9fbfd;
  color: #173253;
  outline: none;
  transform: translateY(-1px);
}

.history-toggle-all i { color: #ff5d22; font-size: 11px; }
.history-toggle-all[hidden] { display: none; }

.history-clear-archives {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #efc0bc;
  border-radius: 10px;
  background: #fff8f7;
  color: #d84942;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.history-clear-archives:hover,
.history-clear-archives:focus-visible {
  border-color: #df7770;
  background: #fff0ee;
  color: #c83d36;
  outline: none;
  transform: translateY(-1px);
}

.history-clear-archives[hidden] { display: none; }
.history-clear-archives:disabled { cursor: not-allowed; opacity: .55; transform: none; }

.history-heading > p:last-child {
  max-width: 680px;
  margin: 12px 0 30px;
  color: #71809a;
  font-size: 15px;
  line-height: 1.65;
}

.history-heading-spacer {
  height: calc(15px * 1.65);
  margin: 12px 0 30px;
}

.history-empty {
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px;
  border: 1px solid #e0e7f0;
  border-radius: 20px;
  background: #fff;
  color: #71809a;
  text-align: center;
}

.history-empty-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 20px;
  background: #edf8f4;
  color: #15a96f;
  font-size: 24px;
}

.history-empty h2 {
  margin: 0 0 10px;
  color: #10213e;
  font-size: 22px;
}

.history-empty p {
  max-width: 460px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.history-list {
  display: grid;
  gap: 16px;
}

.history-person-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
}

.history-selection-checkbox {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  margin-top: 36px;
  place-items: center;
  cursor: pointer;
}

.history-selection-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.history-selection-checkbox > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #cbd8e5;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(26, 53, 84, .08);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.history-selection-checkbox:hover > span { border-color: #ff966f; transform: translateY(-1px); }
.history-selection-checkbox input:focus-visible + span { outline: 3px solid rgba(255, 93, 34, .16); outline-offset: 2px; }
.history-selection-checkbox input:checked + span {
  border-color: #ff642c;
  background: #ff642c;
  box-shadow: 0 6px 16px rgba(255, 93, 34, .22);
}
.history-selection-checkbox input:checked + span::after {
  color: #fff;
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-size: 12px;
  font-weight: 900;
}

.history-person-entry.is-selected .history-person-card {
  border-color: #ffb396;
  box-shadow: 0 0 0 3px rgba(255, 93, 34, .07), 0 14px 40px rgba(18, 42, 72, .045);
}

.history-list > .history-empty {
  border: 1px solid #dde6f0;
  border-radius: 20px;
}

.history-loading {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #dde6f0;
  border-radius: 20px;
  background: #fff;
  color: #71809a;
  font-size: 14px;
}

.history-loading i {
  color: #14a66d;
  animation: history-spinner 800ms linear infinite;
}

@keyframes history-spinner {
  to { transform: rotate(360deg); }
}

.history-person-card {
  position: relative;
  overflow: visible;
  border: 1px solid #dde6f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(18, 42, 72, .045);
}

.history-person-card:has(.history-card-menu.is-open) { z-index: 20; }
.history-person-card > .history-person-summary:first-child { border-radius: 20px 20px 0 0; }
.history-person-card > .history-call-list:last-child { overflow: hidden; border-radius: 0 0 20px 20px; }
.history-person-card.is-collapsed > .history-person-summary:first-child { border-radius: 20px 20px 0 0; }
.history-person-card.is-collapsed > .history-collapse-toggle { border-radius: 0 0 19px 19px; }

.history-card-menu { position: relative; justify-self: end; }
.history-card-menu-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d8e3ed;
  border-radius: 10px;
  background: #f8fafc;
  color: #60758f;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.history-card-menu-toggle:hover,
.history-card-menu-toggle:focus-visible,
.history-card-menu.is-open .history-card-menu-toggle { border-color: #a9bfd5; background: #fff; color: #244d76; outline: none; }
.history-card-menu-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 190px;
  gap: 3px;
  padding: 6px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 18px 45px rgba(10, 34, 62, .2);
}
.history-card-menu-panel[hidden] { display: none; }
.history-card-menu-item {
  display: grid;
  width: 100%;
  min-height: 38px;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #405673;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
}
.history-card-menu-item i { justify-self: center; color: #69809b; font-size: 12px; }
.history-card-menu-item[hidden] { display: none; }
.history-card-menu-item:hover,
.history-card-menu-item:focus-visible { background: #f1f6fb; color: #213f61; outline: none; }
.history-card-menu-block i { color: #d55247; }
.history-card-menu-block.is-blocked i { color: #178d63; }
.history-card-menu-archive i { color: #3979ad; }
.history-card-menu-delete { color: #d74840; }
.history-card-menu-delete i { color: #d74840; }
.history-card-menu-delete:hover,
.history-card-menu-delete:focus-visible { background: #fff1ef; color: #c93c35; }
.history-card-menu-item:disabled { cursor: wait; opacity: .55; }

.history-person-card.is-archived-by-partner .history-person-summary {
  grid-template-columns: minmax(0, 1fr) auto 38px;
}
.history-person-card.is-archived-by-me .history-person-summary {
  grid-template-columns: minmax(260px, 1.2fr) auto minmax(190px, .7fr) auto;
}
.history-restore-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #b9d4c8;
  border-radius: 11px;
  background: #f1faf6;
  color: #17845f;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}
.history-restore-button:hover,
.history-restore-button:focus-visible { border-color: #78b99d; background: #e7f7ef; outline: none; transform: translateY(-1px); }
.history-restore-button:disabled { cursor: wait; opacity: .65; transform: none; }
.history-archive-notice,
.history-restored-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 28px;
  border-top: 1px solid #e6edf4;
  border-bottom: 1px solid #e6edf4;
  background: #f7f9fc;
  color: #667990;
}
.history-archive-notice > i,
.history-restored-notice > i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  background: #e9eef4;
  color: #71849b;
  font-size: 11px;
}
.history-archive-notice p,
.history-restored-notice p { display: grid; gap: 3px; margin: 0; line-height: 1.5; }
.history-archive-notice strong,
.history-restored-notice strong { color: #344b67; font-size: 10px; }
.history-archive-notice span,
.history-restored-notice span { font-size: 9px; }
.history-archive-notice.is-partner-archive p {
  font-size: 18px;
  font-weight: 300;
}

.history-restored-notice {
  background: #f5f9fd;
  color: #60758d;
}

.history-restored-notice > i {
  background: #e8f2fb;
  color: #3777ae;
}

.history-person-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) auto minmax(190px, .7fr) 38px;
  align-items: center;
  gap: 24px;
  min-height: 100px;
  padding: 19px 24px;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.history-person-card.is-user-blocked .history-person-summary {
  grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 1fr) auto 38px;
}

.history-blocked-state {
  justify-self: center;
  color: #df4b40;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.history-schedule-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 6px 11px;
  border: 1px solid #dbe5ef;
  border-radius: 11px;
  background: #f8fafc;
  color: #63758e;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.history-meeting-actions { display: flex; align-items: center; gap: 8px; }
.history-offer-button,
.history-contacts-button,
.history-chat-button {
  display: grid;
  width: 48px;
  min-width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #dbe5ef;
  border-radius: 11px;
  background: #f8fafc;
  color: #63758e;
  cursor: pointer;
  font-size: 18px;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.history-offer-button:hover,
.history-offer-button:focus-visible { border-color: #9fbcda; background: #edf5fd; color: var(--orange); outline: none; transform: translateY(-1px); }
.history-contacts-button { color: #15966a; }
.history-contacts-button:hover,
.history-contacts-button:focus-visible { border-color: #abd7c7; background: #edf9f4; color: #0d815a; outline: none; transform: translateY(-1px); }
.history-chat-button { color: #49749f; }
.history-chat-button:hover,
.history-chat-button:focus-visible { border-color: #a9c5df; background: #eef6fd; color: #2475bd; outline: none; transform: translateY(-1px); }
.history-chat-button.is-free { color: #15966a; }
.history-chat-button.is-free:hover,
.history-chat-button.is-free:focus-visible { border-color: #abd7c7; background: #edf9f4; color: #0d815a; }
:root[data-theme-effective][data-theme-palette] .history-chat-button:not(.is-free) {
  border-color: #2878d0;
  background: #2878d0;
  color: #fff;
}
:root[data-theme-effective][data-theme-palette] .history-chat-button:not(.is-free):hover,
:root[data-theme-effective][data-theme-palette] .history-chat-button:not(.is-free):focus-visible {
  border-color: #216fc3;
  background: #216fc3;
  color: #fff;
}

.history-contacts-dialog {
  position: fixed;
  z-index: 1320;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(10, 27, 48, .55);
  backdrop-filter: blur(5px);
}
.history-contacts-dialog[hidden] { display: none; }
.history-contacts-dialog-open { overflow: hidden; }
.history-contacts-dialog-card { width: min(560px, 100%); overflow: hidden; border: 1px solid #dfe8ef; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(8, 28, 51, .25); }
.history-contacts-dialog-card > header { display: grid; grid-template-columns: 48px minmax(0, 1fr) 38px; align-items: center; gap: 13px; padding: 21px 22px; border-bottom: 1px solid #e7edf3; }
.history-contacts-dialog-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: #eaf8f2; color: #15966a; font-size: 18px; }
.history-contacts-dialog-card header small { display: block; color: #15966a; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.history-contacts-dialog-card h2 { margin: 4px 0 0; color: #122642; font-size: 20px; letter-spacing: -.025em; }
.history-contacts-dialog-card header button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #f2f5f8; color: #60728b; cursor: pointer; }
.history-contacts-list { display: grid; gap: 8px; padding: 20px 22px; }
.history-contact-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px; align-items: center; gap: 11px; min-height: 58px; padding: 8px 12px; border: 1px solid #dfe8ef; border-radius: 11px; color: #49627d; text-decoration: none; transition: border-color 140ms ease, background 140ms ease, transform 140ms ease; }
.history-contact-item:hover,
.history-contact-item:focus-visible { border-color: #acd5c6; background: #f2faf7; outline: none; transform: translateY(-1px); }
.history-contact-item > i:first-child { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #eaf8f2; color: #15966a; font-size: 14px; }
.history-contact-item > span { display: grid; min-width: 0; gap: 3px; }
.history-contact-item small { color: #8492a6; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.history-contact-item strong { overflow: hidden; color: #223b59; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.history-contact-item > i:last-child { color: #9aa8b9; font-size: 9px; }
.history-contacts-empty { margin: 0; padding: 24px 22px; color: #718198; font-size: 11px; text-align: center; }
.history-contacts-empty[hidden] { display: none; }
.history-contacts-dialog-card > footer { display: flex; justify-content: flex-end; padding: 0 22px 20px; }
.history-contacts-dialog-card > footer button { min-height: 40px; padding: 0 16px; border: 1px solid #d7e2eb; border-radius: 9px; background: #fff; color: #60728a; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }

.history-schedule-button > i { width: 24px; color: #66809e; font-size: 18px; text-align: center; }
.history-schedule-button > span { display: grid; gap: 2px; }
.history-schedule-button small { color: #8492a6; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.history-schedule-button strong { color: #3d526e; font-size: 10px; white-space: nowrap; }
.history-schedule-button:hover,
.history-schedule-button:focus-visible { border-color: #b8cadb; background: #fff; outline: none; }
.history-schedule-button.has-meeting { border-color: #f4b49d; background: #fff6f1; box-shadow: 0 0 0 3px rgba(255,93,34,.07); }
.history-schedule-button.has-meeting > i,
.history-schedule-button.has-meeting strong { color: #e7521d; }
.history-schedule-button { position: relative; }
.history-meeting-notice {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid !important;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 5px 12px rgba(25, 52, 82, .18);
}
.history-meeting-notice.is-rescheduled { background: #2878d0; }

.history-person-summary:hover { background: #fbfcfe; }

.history-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.history-avatar {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  min-width: 54px;
  max-width: 54px;
  min-height: 54px;
  max-height: 54px;
  flex: 0 0 54px;
  aspect-ratio: 1 / 1;
  overflow: visible;
  place-items: center;
  border: 1px solid #dbe4ee;
  border-radius: 50%;
  background: #eaf7f2;
  color: #148f63;
  font-size: 15px;
  font-weight: 800;
}

.history-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.history-accepted-handshake-badge {
  position: absolute;
  z-index: 3;
  right: -7px;
  bottom: -4px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  overflow: visible !important;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #15966a;
  box-shadow: 0 5px 13px rgba(21, 150, 106, .28);
  color: #fff !important;
  cursor: help;
  font-size: 9px !important;
  outline: none;
}
.history-accepted-handshake-badge:focus-visible { box-shadow: 0 0 0 3px rgba(21,150,106,.18), 0 5px 13px rgba(21,150,106,.28); }

.history-person > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.history-person .history-person-name-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
  overflow: visible;
}

.history-person .history-thread-restored-badge {
  flex: 0 0 auto;
  overflow: visible;
  color: #47779f;
  cursor: help;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .02em;
  outline: none;
  text-transform: uppercase;
}

.history-person .history-thread-restored-badge:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(55, 119, 174, .18);
}

.history-person strong {
  overflow: hidden;
  color: #10213e;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-person span {
  overflow: hidden;
  color: #7b89a0;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-person .history-avatar,
.history-person .history-accepted-handshake-badge { overflow: visible; }
.history-person strong.history-full-name { overflow: visible; text-overflow: clip; white-space: normal; }

.history-person .history-call-count {
  color: #15966a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.history-collapse-toggle {
  display: grid;
  width: 100%;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-top: 1px solid #e2e9f1;
  border-radius: 0;
  background: #f8fafc;
  color: #71849b;
  cursor: pointer;
  font-size: 8px;
  line-height: 1;
  transition: background-color 150ms ease, color 150ms ease;
}

.history-collapse-toggle:hover,
.history-collapse-toggle:focus-visible {
  background: #f1f5f9;
  color: #294867;
  outline: none;
}

.history-call-list[hidden] { display: none; }
.history-person-card.is-collapsed .history-person-summary { min-height: 88px; }

.history-call-list {
  border-top: 1px solid #e2e9f1;
  background: #fbfcfe;
}

.history-collapse-toggle + .history-call-list { border-top: 0; }

.history-call-list-header,
.history-call-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 170px;
  align-items: center;
  gap: 24px;
  padding-inline: 24px;
}

.history-call-list-header {
  min-height: 34px;
  color: #8190a6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-call-row {
  min-height: 49px;
  border-top: 1px solid #e8edf3;
  background: #fff;
}

.history-call-row time {
  color: #667994;
  font-size: 12px;
}

.history-call-row strong {
  justify-self: start;
  color: #263c5c;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.history-call-features {
  display: flex;
  align-items: center;
  gap: 7px;
}

.history-call-feature {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #d9e3ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #61738e;
  cursor: pointer;
  font-size: 12px;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.history-call-feature:hover,
.history-call-feature:focus-visible {
  border-color: #b7c8da;
  background: #fff;
  color: #173253;
  outline: none;
  transform: translateY(-1px);
}

.history-call-feature-summary:hover,
.history-call-feature-summary:focus-visible {
  border-color: #c8b9f5;
  background: #f7f4ff;
  color: #6846d7;
}

.history-call-feature.has-content {
  border-color: #a8ddc8;
  background: #f0fbf6;
  color: #109767;
}

.history-call-feature::after,
.history-call-rating::after {
  position: absolute;
  z-index: 12;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 210px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #10213e;
  box-shadow: 0 7px 18px rgba(16, 33, 62, .18);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
}

.history-call-feature:hover::after,
.history-call-feature:focus-visible::after,
.history-call-rating:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.history-call-rating {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  background: #f4f6f9;
  color: #8794a5;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.history-call-rating.rating-1 {
  border-color: #f0b5b0;
  background: #fff0ef;
  color: #d44338;
}

.history-call-rating.rating-2 {
  border-color: #f3c09f;
  background: #fff4ec;
  color: #d66d2d;
}

.history-call-rating.rating-3 {
  border-color: #efd59a;
  background: #fff9e9;
  color: #a9770c;
}

.history-call-rating.rating-4 {
  border-color: #aecaed;
  background: #eef6ff;
  color: #3976bd;
}

.history-call-rating.rating-5 {
  border-color: #a8ddc8;
  background: #edfaf4;
  color: #109767;
}

.history-feature-dialog {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 20, 39, .64);
  backdrop-filter: blur(5px);
}

.history-feature-dialog[hidden] { display: none; }

.history-feature-dialog-card {
  width: min(650px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(5, 20, 39, .34);
}

.history-feature-dialog-card > header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid #e5ebf2;
}

.history-feature-dialog-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: #f2edff;
  color: #6846d7;
  font-size: 17px;
}

.history-feature-dialog-card header p,
.history-feature-dialog-card header h2,
.history-feature-dialog-card header small { margin: 0; }

.history-feature-dialog-card header p {
  color: #159a69;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.history-feature-dialog-card header h2 {
  margin-top: 3px;
  color: #10213e;
  font-size: 20px;
}

.history-feature-dialog-card header small {
  display: block;
  margin-top: 4px;
  color: #8290a4;
  font-size: 11px;
}

.history-feature-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f3f6fa;
  color: #61738c;
  cursor: pointer;
  font-size: 14px;
}

.history-feature-dialog-body { padding: 24px; }

.history-feature-dialog-body label {
  display: block;
  margin-bottom: 9px;
  color: #344965;
  font-size: 11px;
  font-weight: 800;
}

#history-notes-input {
  display: block;
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid #d9e3ed;
  border-radius: 13px;
  outline: 0;
  background: #fbfcfe;
  color: #233955;
  font: inherit;
  font-size: 13px;
  line-height: 1.65;
}

#history-notes-input:focus {
  border-color: #16a66e;
  box-shadow: 0 0 0 4px rgba(22, 166, 110, .1);
  background: #fff;
}

.history-notes-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 8px;
  color: #8795a8;
  font-size: 10px;
}

#history-notes-status.is-success { color: #129466; }
#history-notes-status.is-error { color: #d7493f; }

.history-summary-empty {
  display: grid;
  min-height: 245px;
  place-items: center;
  align-content: center;
  padding: 35px;
  border: 1px dashed #d9d1f2;
  border-radius: 16px;
  background: #faf8ff;
  text-align: center;
}

.history-summary-empty > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 15px;
  background: #eee8ff;
  color: #6846d7;
  font-size: 20px;
}

.history-summary-empty h3 {
  margin: 0;
  color: #172b49;
  font-size: 17px;
}

.history-summary-empty p {
  max-width: 430px;
  margin: 9px 0 0;
  color: #77869c;
  font-size: 12px;
  line-height: 1.6;
}

.history-summary-content {
  min-height: 180px;
  color: #344965;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.history-feature-dialog-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 24px;
  border-top: 1px solid #e5ebf2;
  background: #fafbfd;
}

.history-feature-dialog-card > footer button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d9e2ec;
  border-radius: 9px;
  background: #fff;
  color: #405470;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.history-feature-dialog-card > footer .history-notes-save {
  border-color: #14a46d;
  background: #15aa70;
  color: #fff;
}

.history-feature-dialog-card > footer button:disabled {
  cursor: wait;
  opacity: .65;
}

body.history-feature-dialog-open { overflow: hidden; }

.history-repeat {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.history-repeat-title {
  color: #71809a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.history-cooldown-field {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7e1ec;
  border-radius: 9px;
  background: #fff;
}

.history-cooldown-editor {
  display: flex;
  align-items: center;
  gap: 7px;
}

.history-cooldown-field:focus-within {
  border-color: #16a66e;
  box-shadow: 0 0 0 3px rgba(22, 166, 110, .11);
}

.history-cooldown-field input {
  width: 72px;
  height: 36px;
  padding: 0 9px 0 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #142744;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.history-unit-select {
  position: relative;
  display: inline-flex;
  width: 66px;
  height: 38px;
  padding: 3px;
  border: 1px solid #d7e1ec;
  border-radius: 9px;
  background: #f2f6fa;
}

.history-unit-select select {
  width: 100%;
  height: 30px;
  padding: 0 22px 0 9px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  appearance: none;
  background: #fff;
  color: #139868;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(20, 48, 78, .16);
  transition: color 150ms ease, box-shadow 150ms ease;
}

.history-unit-select i {
  position: absolute;
  top: 50%;
  right: 10px;
  color: #7a899f;
  font-size: 8px;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 150ms ease, transform 150ms ease;
}

.history-unit-select:hover select,
.history-unit-select:focus-within select {
  box-shadow: 0 2px 7px rgba(20, 48, 78, .2);
}

.history-unit-select:focus-within {
  border-color: #16a66e;
}

.history-unit-select:focus-within i {
  color: #139868;
  transform: translateY(-50%) rotate(180deg);
}

.history-unit-select select:focus-visible {
  outline: 2px solid rgba(21, 166, 110, .3);
  outline-offset: 1px;
}

.history-repeat small {
  color: #8a97aa;
  font-size: 10px;
}

.history-repeat-blocked {
  color: #d8483c;
  font-size: 12px;
}

.history-block-button,
.history-retry {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #f0c8c3;
  border-radius: 9px;
  background: #fff8f7;
  color: #d44b3f;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.history-block-button:hover {
  border-color: #dc5a4e;
  background: #fff1ef;
}

.history-block-button.is-blocked {
  border-color: #cfe2db;
  background: #f3faf7;
  color: #178d63;
}

.history-block-button:disabled {
  cursor: wait;
  opacity: .55;
}

.history-floating-tooltip {
  position: fixed;
  z-index: 1500;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: #10213e;
  box-shadow: 0 10px 26px rgba(16, 33, 62, .24);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.history-floating-tooltip[hidden] { display: none; }
.history-floating-tooltip.is-visible { opacity: 1; transform: translateY(0); }

.history-error .history-empty-icon {
  background: #fff0ed;
  color: #dc493c;
}

.history-retry {
  margin-top: 18px;
  border-color: #d6e0eb;
  background: #fff;
  color: #344c6d;
}

@media (max-width: 1040px) {
  .history-person-summary {
    grid-template-columns: minmax(230px, 1fr) minmax(200px, .8fr) auto 38px;
    gap: 16px;
    padding-inline: 18px;
  }
  .history-person-card.is-user-blocked .history-person-summary {
    grid-template-columns: minmax(230px, 1fr) minmax(170px, .8fr) auto 38px;
  }
}

@media (max-width: 780px) {
  .history-page { padding: var(--user-page-padding); }
  .history-person-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 15px;
  }
  .history-person-summary .history-person { grid-column: 1 / -1; padding-right: 44px; }
  .history-meeting-actions { grid-column: 1 / -1; grid-row: 2; width: max-content; max-width: 100%; }
  .history-schedule-button { width: max-content; }
  .history-repeat { grid-column: 1; grid-row: 3; }
  .history-card-menu { grid-column: 2; grid-row: 1; align-self: start; }
  .history-person-card.is-user-blocked .history-person-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .history-person-card.is-user-blocked .history-blocked-state { grid-column: 1 / -1; grid-row: 2; }
  .history-person-card.is-user-blocked .history-card-menu { grid-column: 2; grid-row: 1; justify-self: end; }
  .history-person-card.is-archived-by-me .history-person-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .history-person-card.is-archived-by-me .history-repeat { grid-column: 1 / -1; grid-row: 2; }
  .history-person-card.is-archived-by-me .history-restore-button { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .history-call-list-header,
  .history-call-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    padding-inline: 18px;
  }
}

.offer-dialog {
  position: fixed;
  z-index: 125;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(6, 22, 42, .7);
  backdrop-filter: blur(5px);
}
.offer-dialog[hidden] { display: none; }
.offer-dialog-open { overflow: hidden; }
.offer-dialog-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(5, 24, 48, .35);
}
.offer-dialog-card > header {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 13px;
  padding: 22px 24px;
  border-bottom: 1px solid #e6ecf3;
}
.offer-dialog-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 14px; background: #edf5fd; color: #63758e; font-size: 21px; }
.offer-dialog-card header small { display: block; color: #15966a; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.offer-dialog-card h2 { margin: 4px 0 0; color: #122642; font-size: 22px; letter-spacing: -.035em; }
.offer-dialog-close { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #f2f5f8; color: #60728b; cursor: pointer; }
.offer-dialog-body { display: grid; gap: 14px; padding: 24px; }
.offer-title-field { display: grid; gap: 7px; }
.offer-title-field span,
.offer-table-heading { color: #64758d; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.offer-title-field input,
.offer-field-row input { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #d9e3ed; border-radius: 9px; outline: 0; color: #17304d; font: inherit; font-size: 11px; }
.offer-title-field input { height: 48px; font-size: 14px; font-weight: 800; }
.offer-title-field input:focus,
.offer-field-row input:focus { border-color: #76a7db; box-shadow: 0 0 0 3px rgba(40,120,208,.09); }
.offer-recipient { margin: -4px 0 2px; color: #7e8da2; font-size: 10px; }
.offer-recipient strong { color: #263d5c; }
.offer-table-heading,
.offer-field-row { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(220px, 1.35fr) 40px; align-items: center; gap: 8px; }
.offer-table-heading { padding: 0 4px; }
.offer-fields { display: grid; gap: 7px; }
.offer-field-row button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #efd2cf; border-radius: 9px; background: #fff8f7; color: #d74c44; cursor: pointer; }
.offer-field-row button:hover { background: #fff0ee; }
.offer-add-row {
  position: relative;
  display: grid;
  width: 28px;
  height: 28px;
  justify-self: center;
  place-items: center;
  padding: 0;
  border: 1px solid #2878d0;
  border-radius: 7px;
  background: #2878d0;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}
.offer-add-row:hover { border-color: #1e68ba; background: #1e68ba; color: #fff; }
.offer-add-row:active { transform: translateY(1px); }
.offer-add-row [data-offer-add-count] {
  position: absolute;
  z-index: 2;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4d4d;
  box-shadow: 0 3px 8px rgba(207, 52, 52, .24);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}
.offer-add-row [data-offer-add-count][hidden] { display: none; }
.offer-add-row:focus-visible { outline: 3px solid rgba(40, 120, 208, .14); outline-offset: 2px; }
.offer-add-row::after {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 7px);
  left: 0;
  width: max-content;
  padding: 6px 8px;
  border-radius: 7px;
  background: #10213e;
  box-shadow: 0 7px 18px rgba(16, 33, 62, .18);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
}
.offer-add-row:hover::after,
.offer-add-row:focus-visible::after { opacity: 1; transform: translateY(0); }
.offer-message-field { display: grid; gap: 7px; color: #405672; font-size: 10px; font-weight: 800; }
.offer-message-field span small { color: #8b99ac; font-weight: 500; }
.offer-message-field textarea { min-height: 112px; resize: vertical; padding: 12px; border: 1px solid #d8e3ed; border-radius: 10px; outline: none; color: #263d5a; font: inherit; font-size: 11px; line-height: 1.55; }
.offer-message-field textarea:focus { border-color: #76a7db; box-shadow: 0 0 0 3px rgba(40,120,208,.09); }
.offer-status { min-height: 18px; color: #55708e; font-size: 9px; }
.offer-dialog-body footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.offer-dialog-body footer button { min-height: 43px; padding: 0 17px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.offer-cancel { border: 1px solid #d8e2ec; background: #fff; color: #60728a; }
.offer-submit { border: 0; background: #2878d0; color: #fff; }
.offer-submit:hover { background: #1e68ba; }
.offer-submit:disabled { cursor: wait; opacity: .6; }

@media (max-width: 620px) {
  .offer-dialog { padding: 10px; }
  .offer-dialog-card > header, .offer-dialog-body { padding: 18px; }
  .offer-table-heading { display: none; }
  .offer-field-row { grid-template-columns: 1fr 40px; padding: 10px; border: 1px solid #e1e8f0; border-radius: 11px; }
  .offer-field-row .offer-field-label, .offer-field-row .offer-field-value { grid-column: 1; }
  .offer-field-row button { grid-column: 2; grid-row: 1 / span 2; }
  .offer-dialog-body footer { flex-direction: column-reverse; }
  .offer-dialog-body footer button { width: 100%; }
}

@media (max-width: 520px) {
  .history-title-row { align-items: flex-end; flex-wrap: wrap; }
  .history-heading-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .history-bulk-action { flex: 1 1 190px; }
  .history-sort-select { grid-template-columns: minmax(120px, 1fr) 18px; }
  .history-sort-select > span { display: none; }
  .history-toggle-all { width: 40px; padding: 0; }
  .history-toggle-all span { display: none; }
  .history-person-entry { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .history-selection-checkbox { width: 30px; height: 30px; margin-top: 20px; }
  .history-selection-checkbox > span { width: 26px; height: 26px; border-radius: 8px; }
  .history-person-summary { padding: 17px 15px; }
  .history-archive-notice { padding: 12px 15px; }
  .history-cooldown-editor { align-items: flex-start; flex-direction: column; }
  .history-block-button { width: 40px; padding: 0; }
  .history-block-button span { display: none; }
  .history-archive-menu { width: 40px; padding: 0; }
  .history-archive-menu span { display: none; }
  .history-call-list-header,
  .history-call-row { padding-inline: 15px; }
  .history-call-tools-label { display: none; }
  .history-call-list-header { grid-template-columns: minmax(0, 1fr) auto; }
  .history-call-list-header span:last-child { grid-column: 2; }
  .history-call-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding-block: 9px; }
  .history-call-row time { grid-column: 1; }
  .history-call-row strong { grid-column: 2; grid-row: 1; }
  .history-call-features { grid-column: 1 / -1; grid-row: 2; }
  .history-feature-dialog { padding: 12px; }
  .history-feature-dialog-card > header { grid-template-columns: 40px minmax(0, 1fr) 36px; padding: 18px; }
  .history-feature-dialog-icon { width: 40px; height: 40px; }
  .history-feature-dialog-body { padding: 18px; }
  .history-feature-dialog-card > footer { padding: 13px 18px; }
}

.site-chat-dock {
  position: fixed;
  z-index: 999;
  right: 24px;
  bottom: 22px;
  font-family: 'Manrope', sans-serif;
}

.site-chat-launcher {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  margin-left: auto;
  place-items: center;
  border: 0;
  border-radius: 19px;
  background: #2878d0;
  box-shadow: 0 14px 34px rgba(24, 85, 151, .3);
  color: #fff;
  cursor: pointer;
  font-size: 21px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.site-chat-launcher:hover { transform: translateY(-2px); background: #216fc3; box-shadow: 0 17px 38px rgba(24, 85, 151, .36); }
.site-chat-launcher.has-unread { animation: site-chat-attention 2.4s ease-in-out infinite; }
.site-chat-dock.is-open .site-chat-launcher { display: none; }

@keyframes site-chat-attention {
  0%, 82%, 100% { transform: rotate(0); }
  87% { transform: rotate(-7deg); }
  92% { transform: rotate(6deg); }
  97% { transform: rotate(-3deg); }
}

.site-chat-total-badge,
.site-chat-conversation-badge,
.site-chat-message-cost {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f0544d;
  color: #fff;
  font-weight: 800;
}

.site-chat-total-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 3px solid #fff;
  font-size: 9px;
}

.site-chat-window {
  display: flex;
  width: min(390px, calc(100vw - 32px));
  height: min(610px, calc(100vh - 44px));
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 30, 57, .26);
  animation: site-chat-open 180ms ease-out both;
}

.site-chat-window[hidden] { display: none; }

@keyframes site-chat-open {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.site-chat-list-header,
.site-chat-thread-header {
  min-height: 76px;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5ecf3;
  background: #fff;
}

.site-chat-list-header { display: flex; justify-content: space-between; }
.site-chat-thread-header { position: relative; z-index: 5; display: grid; grid-template-columns: 38px 42px minmax(0, 1fr) auto 38px; overflow: visible; }
.site-chat-thread-header > [data-chat-back] { grid-column: 1; }
.site-chat-thread-header > [data-chat-partner-avatar] { grid-column: 2; }
.site-chat-thread-header > div { grid-column: 3; }
.site-chat-thread-header > [data-chat-message-cost] { grid-column: 4; }
.site-chat-thread-header > [data-chat-minimize] { grid-column: 5; justify-self: end; }
.site-chat-list-header[hidden], .site-chat-thread-header[hidden] { display: none; }
.site-chat-list-header small { display: block; color: #15966a; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-chat-list-header strong { display: block; margin-top: 3px; color: #122642; font-size: 18px; }
.site-chat-thread-header > div { min-width: 0; }
.site-chat-thread-header strong { display: block; overflow: hidden; color: #122642; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.site-chat-thread-header small { display: block; margin-top: 2px; color: #8796aa; font-size: 9px; }
.site-chat-list-header button,
.site-chat-thread-header button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dce6f0;
  border-radius: 11px;
  background: #f7f9fc;
  color: #5f7590;
  cursor: pointer;
}

.site-chat-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #eaf2fa;
  color: #37638f;
  font-size: 11px;
  font-weight: 800;
}
.site-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.site-chat-thread-header .site-chat-avatar { width: 42px; height: 42px; }

.site-chat-conversation-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 7px;
  overscroll-behavior: contain;
}
.site-chat-conversation-list[hidden] { display: none; }
.site-chat-conversation {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  text-align: left;
}
.site-chat-conversation:hover { background: #f3f7fb; }
.site-chat-conversation-open {
  display: grid;
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 4px 10px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.site-chat-conversation-copy { display: block; min-width: 0; }
.site-chat-conversation-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.site-chat-conversation-heading strong { overflow: hidden; color: #172d49; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.site-chat-conversation-preview { display: block; overflow: hidden; margin-top: 4px; color: #71839b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.site-chat-conversation-badge { min-width: 19px; height: 19px; padding: 0 5px; font-size: 8px; }
.site-chat-conversation-side { display: grid; flex: 0 0 auto; justify-items: center; gap: 5px; }
.site-chat-conversation-delete {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #94a3b5;
  cursor: pointer;
  font-size: 11px;
}
.site-chat-conversation-delete:hover { background: #feeceb; color: #d74940; }

.site-chat-empty,
.site-chat-thread-state {
  display: grid;
  height: 100%;
  align-content: center;
  justify-items: center;
  padding: 28px;
  color: #8796aa;
  text-align: center;
}
.site-chat-empty i { margin-bottom: 12px; color: #94acc6; font-size: 29px; }
.site-chat-empty strong { color: #2a405d; font-size: 12px; }
.site-chat-empty p { max-width: 260px; margin: 7px 0 0; font-size: 9px; line-height: 1.55; }

.site-chat-thread { display: flex; min-height: 0; flex: 1; flex-direction: column; background: #f5f8fb; }
.site-chat-thread[hidden] { display: none; }
.site-chat-messages { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 8px; overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.site-chat-thread-state { flex: 1; font-size: 9px; line-height: 1.55; }
.site-chat-message { width: max-content; max-width: 82%; padding: 9px 11px 7px; border-radius: 14px; box-shadow: 0 3px 9px rgba(21, 52, 87, .05); }
.site-chat-message.is-incoming { align-self: flex-start; border-bottom-left-radius: 5px; background: #fff; color: #243b58; }
.site-chat-message.is-outgoing { align-self: flex-end; border-bottom-right-radius: 5px; background: #2878d0; color: #fff; }
.site-chat-message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10px; line-height: 1.5; }
.site-chat-message span { display: block; margin-top: 4px; color: inherit; font-size: 7px; opacity: .68; text-align: right; }

.site-chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: end; gap: 8px; padding: 11px; border-top: 1px solid #e0e8f1; background: #fff; }
.site-chat-message-cost {
  position: relative;
  min-height: 22px;
  padding: 0 6px;
  border: 3px solid #fff;
  cursor: help;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}
.site-chat-message-cost[hidden] { display: none; }
.site-chat-message-cost::after {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 245px;
  max-width: calc(100vw - 72px);
  padding: 8px 9px;
  border-radius: 8px;
  background: #10213e;
  box-shadow: 0 8px 20px rgba(16, 33, 62, .2);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  overflow-wrap: anywhere;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
}
.site-chat-message-cost:hover::after,
.site-chat-message-cost:focus-visible::after { opacity: 1; transform: translateY(0); }
.site-chat-message-cost:focus-visible { outline: 1px solid #b9c5d2; outline-offset: 2px; }
.site-chat-charge-animation {
  position: absolute;
  z-index: 25;
  color: #7f8fa3;
  font-size: 8px;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
  animation: site-chat-charge 1s cubic-bezier(.22, .7, .3, 1) forwards;
}
@keyframes site-chat-charge {
  0% { opacity: 1; transform: translateY(0); }
  30% { opacity: .95; }
  100% { opacity: 0; transform: translateY(-28px); }
}
.site-chat-cost-status { display: block; min-height: 0; grid-column: 1 / -1; color: #7b8ba0; font-size: 8px; font-weight: 700; text-align: right; }
.site-chat-cost-status:empty { display: none; }
.site-chat-cost-status.is-error { color: #d64a40; }
.site-chat-compose textarea { width: 100%; min-height: 42px; max-height: 104px; resize: none; padding: 11px 12px; border: 1px solid #d7e2ed; border-radius: 13px; outline: 0; color: #1d3553; font: inherit; font-size: 10px; line-height: 1.45; }
.site-chat-compose textarea:focus { border-color: #75a9df; box-shadow: 0 0 0 3px rgba(40, 120, 208, .09); }
.site-chat-compose button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 13px; background: #2878d0; color: #fff; cursor: pointer; }
.site-chat-compose button:hover { background: #216fc3; }
.site-chat-compose button:disabled { cursor: wait; opacity: .55; }

.chat-unavailable-dialog {
  position: fixed;
  z-index: 1450;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(7, 25, 47, .68);
  backdrop-filter: blur(5px);
}
.chat-unavailable-dialog[hidden] { display: none; }
.chat-unavailable-dialog-open { overflow: hidden; }
.chat-unavailable-dialog-card {
  display: grid;
  width: min(480px, 100%);
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  padding: 24px;
  border: 1px solid #dce7f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(4, 24, 48, .32);
}
.chat-unavailable-dialog-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: #eef4fb;
  color: #2878d0;
  font-size: 19px;
}
.chat-unavailable-dialog-copy small { color: #2878d0; font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.chat-unavailable-dialog-copy h2 { margin: 4px 0 7px; color: #152b47; font-size: 19px; letter-spacing: -.03em; }
.chat-unavailable-dialog-copy p { margin: 0; color: #6f8096; font-size: 10px; line-height: 1.6; }
.chat-unavailable-dialog-card footer { display: flex; grid-column: 1 / -1; justify-content: flex-end; padding-top: 6px; }
.chat-unavailable-dialog-card footer button {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  background: #2878d0;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
}
.chat-unavailable-dialog-card footer button:hover { background: #216fc3; }

@media (max-width: 520px) {
  .site-chat-dock { right: 10px; bottom: 10px; }
  .site-chat-window { width: calc(100vw - 20px); height: min(650px, calc(100vh - 20px)); border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-chat-window, .site-chat-launcher.has-unread { animation: none; }
  .site-chat-charge-animation { animation-duration: 250ms; }
}

.search-page {
  width: min(100%, var(--user-page-max-width));
  margin: 0 auto;
  padding: var(--user-page-padding);
}

.search-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.search-eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.search-heading h1 {
  margin: 0;
  color: #10213e;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.search-heading p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: #71809a;
  font-size: 15px;
  line-height: 1.65;
}

.search-result-count {
  display: flex;
  min-width: 112px;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  padding: 13px 17px;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  background: #fff;
  color: #71809a;
  font-size: 12px;
  white-space: nowrap;
}

.search-result-count strong {
  color: #10213e;
  font-size: 20px;
}

.search-heading-actions { display: flex; align-items: center; gap: 10px; }
.search-filter-toggle {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid #dce4ef;
  border-radius: 14px;
  background: #fff;
  color: #526983;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}
.search-filter-toggle:disabled { opacity:.55; cursor:not-allowed; }
.search-filter-toggle:hover:not(:disabled),
.search-filter-toggle[aria-expanded="true"] { border-color: #bcd9cd; background: #f2faf7; color: #138d64; }
.search-filter-toggle b { display: grid; min-width: 19px; height: 19px; place-items: center; padding: 0 5px; border-radius: 999px; background: #ff6129; color: #fff; font-size: 8px; }
.search-filter-toggle[hidden],
.search-filter-toggle b[hidden],
.employer-search-filter[hidden] { display: none; }

.employer-search-filter {
  display: grid;
  gap: 18px;
  margin: -7px 0 24px;
  padding: 20px;
  border: 1px solid #dce5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(21, 45, 79, .045);
}
.employer-search-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid #e7edf3; }
.employer-search-filter-heading > div { display: grid; gap: 2px; }
.employer-search-filter-heading > div > span { color: #15966a; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.employer-search-filter-heading strong { color: #142a47; font-size: 16px; }
.employer-search-filter-heading p { margin: 1px 0 0; color: #8492a5; font-size: 9px; }
.employer-search-filter-heading button { display: inline-flex; min-height: 36px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid #dce5ef; border-radius: 10px; background: #f8fafc; color: #60748d; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; }
.employer-search-filter-heading button:hover { border-color: #f2c3b1; background: #fff5f1; color: #df5726; }
.employer-search-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; }
.search-filter-field { display: grid; min-width: 0; gap: 6px; }
.search-filter-field > span:first-child,
.search-filter-tags-section > div:first-child strong,
.search-filter-conditions-heading strong { display: flex; align-items: center; gap: 7px; color: #354b68; font-size: 9px; font-weight: 800; }
.search-filter-field > span:first-child i,
.search-filter-tags-section > div:first-child strong i,
.search-filter-conditions-heading strong > i { width: 13px; color: #8c9caf; text-align: center; }
.search-filter-field > input,
.search-filter-field > select,
.search-filter-composite,
.search-filter-language-editor > input,
.search-filter-language-editor > select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe4ee;
  border-radius: 11px;
  outline: none;
  background: #fbfcfe;
  color: #1d3553;
  font: inherit;
  font-size: 10px;
}
.search-filter-field > input,
.search-filter-field > select,
.search-filter-language-editor > input,
.search-filter-language-editor > select { padding: 0 12px; }
.search-filter-field > input:focus,
.search-filter-field > select:focus,
.search-filter-composite:focus-within,
.search-filter-language-editor > input:focus,
.search-filter-language-editor > select:focus,
.search-filter-tag-editor:focus-within { border-color: #76bea4; box-shadow: 0 0 0 3px rgba(21, 150, 106, .09); background: #fff; }
.search-filter-field > small { color: #96a2b2; font-size: 8px; }
.search-filter-interview-language { grid-column: span 2; }
.search-filter-composite { display: grid; grid-template-columns: minmax(0, 1fr) 82px; overflow: hidden; }
.search-filter-composite input,
.search-filter-composite select { min-width: 0; border: 0; outline: 0; background: transparent; color: #1d3553; font: inherit; font-size: 10px; }
.search-filter-composite input { padding: 0 12px; }
.search-filter-composite select { padding: 0 8px; border-left: 1px solid #e3eaf1; color: #63758d; font-weight: 700; }
.search-filter-composite .ui-select { height: 100%; }
.search-filter-composite .ui-select-trigger { min-height: 40px; height: 100%; padding: 0 8px; border: 0; border-left: 1px solid #e3eaf1; border-radius: 0; background: transparent; box-shadow: none; color: #63758d; font-size: 10px; }
.search-filter-composite .ui-select-trigger:focus-visible,
.search-filter-composite .ui-select.is-open .ui-select-trigger { border-color: #e3eaf1; box-shadow: none; }
.search-filter-tags-section { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: start; gap: 16px; }
.search-filter-tags-section > div:first-child { display: grid; gap: 4px; padding-top: 11px; }
.search-filter-tags-section > div:first-child small { color: #8b98aa; font-size: 8px; line-height: 1.45; }
.search-filter-tag-editor { display: flex; min-height: 44px; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #dbe4ee; border-radius: 11px; background: #fbfcfe; cursor: text; }
.search-filter-tag-editor > div { display: contents; }
.search-filter-tag-editor input { min-width: 170px; flex: 1 1 170px; height: 30px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: #1d3553; font: inherit; font-size: 10px; }
.search-filter-token { display: inline-flex; min-height: 28px; align-items: center; gap: 6px; padding: 0 8px; border-radius: 8px; background: #edf4fb; color: #285181; font-size: 9px; font-weight: 800; }
.search-filter-token.is-language { background: #eaf8f1; color: #167a59; }
.search-filter-token button { display: grid; width: 17px; height: 17px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.72); color: inherit; cursor: pointer; font-size: 8px; }
.search-filter-language-editor { display: grid; grid-template-columns: minmax(150px, 1fr) 100px 42px; gap: 7px; }
.search-filter-language-editor > .ui-select .ui-select-trigger { min-height: 42px; padding: 0 11px; border-color: #dbe4ee; border-radius: 11px; background: #fbfcfe; box-shadow: none; color: #52677f; font-size: 10px; }
.search-filter-language-editor > .ui-select .ui-select-trigger:focus-visible,
.search-filter-language-editor > .ui-select.is-open .ui-select-trigger { border-color: #76bea4; box-shadow: 0 0 0 3px rgba(21, 150, 106, .09); background: #fff; }
.search-filter-language-editor > button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #b9dfd1; border-radius: 11px; background: #effaf6; color: #139269; cursor: pointer; }
.search-filter-language-editor > button:hover { border-color: #15966a; background: #e5f7f0; }
.search-filter-language-tags { display: flex; grid-column: 2; flex-wrap: wrap; gap: 6px; margin-top: -9px; }
.search-filter-language-tags:empty { display: none; }
.search-filter-conditions { min-width: 0; margin: 0; padding: 0; border: 0; }
.search-filter-conditions-heading small { color: #95a1b1; font-size: 8px; font-weight: 500; }
.search-filter-conditions > div { display: flex; flex-wrap: wrap; gap: 7px; }
.search-filter-conditions label { cursor: pointer; }
.search-filter-conditions input { position: absolute; opacity: 0; pointer-events: none; }
.search-filter-conditions span { display: inline-flex; min-height: 31px; align-items: center; padding: 0 11px; border: 1px solid #dce5ef; border-radius: 999px; background: #fff; color: #6b7d95; font-size: 9px; font-weight: 700; transition: 140ms ease; }
.search-filter-conditions input:checked + span { border-color: #a8d9c7; background: #eaf8f2; color: #137d59; box-shadow: inset 0 0 0 1px rgba(21,150,106,.06); }
.search-filter-conditions input:focus-visible + span { outline: 2px solid rgba(21,150,106,.28); outline-offset: 2px; }

/* Фильтр работодателя: единая компактная иерархия вместо разрозненных строк. */
.employer-search-filter { gap: 14px; padding: 18px; }
.employer-search-filter-heading { padding-bottom: 13px; }
.employer-search-filter-heading > div > span { font-size: 11px; }
.employer-search-filter-heading strong { font-size: 19px; }
.employer-search-filter-heading p { font-size: 12px; }
.employer-search-filter-heading button { min-height: 38px; font-size: 12px; }

.search-filter-groups {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(520px, 1.45fr);
  gap: 12px;
}

.search-filter-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e9f1;
  border-radius: 14px;
  background: #fbfcfe;
}

.search-filter-group > header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.search-filter-group > header > i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  background: #edf4f8;
  color: #7188a1;
  font-size: 13px;
}

.search-filter-group > header > div { display: grid; min-width: 0; gap: 1px; }
.search-filter-group > header strong { color: #233a57; font-size: 13px; font-weight: 800; }
.search-filter-group > header small { color: #8997a9; font-size: 11px; line-height: 1.35; }
.search-filter-group.is-matching { grid-column: 1 / -1; display: grid; gap: 11px; }
.search-filter-group.is-matching > header { margin-bottom: 1px; }

.search-filter-group .employer-search-filter-grid { gap: 10px; }
.search-filter-group.is-location .employer-search-filter-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
.search-filter-group.is-criteria .employer-search-filter-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
.search-filter-group .search-filter-interview-language { grid-column: auto; }
.search-filter-field { gap: 5px; }
.search-filter-field > span:first-child,
.search-filter-tags-section > div:first-child strong,
.search-filter-conditions-heading strong { font-size: 12px; }
.search-filter-field > span:first-child i,
.search-filter-tags-section > div:first-child strong i,
.search-filter-conditions-heading strong > i { width: 15px; }
.search-filter-field > input,
.search-filter-field > select,
.search-filter-composite,
.search-filter-language-editor > input,
.search-filter-language-editor > select { min-height: 44px; font-size: 13px; }
.search-filter-field > small { min-height: 15px; color: #8795a8; font-size: 11px; line-height: 1.35; }
.search-filter-composite { grid-template-columns: minmax(0, 1fr) 78px; }
.search-filter-composite input,
.search-filter-composite select { font-size: 13px; }
.search-filter-composite .ui-select-trigger { min-height: 42px; font-size: 13px; }

.search-filter-tags-section {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.search-filter-tags-section > div:first-child { gap: 2px; padding-top: 0; }
.search-filter-tags-section > div:first-child small { color: #8795a8; font-size: 11px; }
.search-filter-tag-editor {
  width: 100%;
  min-height: 44px;
  max-height: 44px;
  overflow: hidden;
  transition: max-height 180ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
.search-filter-tag-editor:focus-within { max-height: 180px; overflow-y: auto; }
.search-filter-tag-editor input { height: 32px; font-size: 13px; }
.search-filter-token { min-height: 30px; font-size: 12px; }
.search-filter-token button { font-size: 11px; }

.search-filter-language-editor {
  width: 100%;
  grid-template-columns: minmax(150px, 1fr) 105px 44px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.search-filter-language-editor > .ui-select .ui-select-trigger { min-height: 44px; font-size: 13px; }
.search-filter-language-editor > button { width: 44px; height: 44px; font-size: 14px; }
.search-filter-language-tags {
  grid-column: 2;
  width: 100%;
  max-height: 30px;
  margin-top: -3px;
  overflow: hidden;
  transition: max-height 180ms ease;
}
.search-filter-tags-section:focus-within .search-filter-language-tags { max-height: 150px; overflow-y: auto; }

.search-filter-conditions { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 14px; }
.search-filter-conditions-heading { display: grid; gap: 2px; padding-top: 7px; }
.search-filter-conditions-heading small { color: #8795a8; font-size: 11px; line-height: 1.35; }
.search-filter-conditions > div { gap: 7px; }
.search-filter-conditions span { min-height: 34px; padding: 0 12px; font-size: 12px; }

@media (max-width: 1050px) {
  .search-filter-groups { grid-template-columns: 1fr; }
  .search-filter-group.is-matching { grid-column: auto; }
}

@media (max-width: 720px) {
  .search-filter-group.is-location .employer-search-filter-grid,
  .search-filter-group.is-criteria .employer-search-filter-grid { grid-template-columns: 1fr; }
  .search-filter-tags-section,
  .search-filter-conditions { grid-template-columns: 1fr; }
  .search-filter-language-tags { grid-column: 1; }
  .search-filter-tag-editor,
  .search-filter-language-editor { width: 100%; }
}

.search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 980px) {
  .search-results { grid-template-columns: minmax(0, 1fr); }
}

.search-loading,
.search-empty {
  grid-column: 1 / -1;
  min-height: 260px;
  padding: 48px;
  border: 1px solid #e0e7f0;
  border-radius: 20px;
  background: #fff;
  color: #71809a;
  text-align: center;
}

.search-loading {
  display: grid;
  place-items: center;
  font-size: 14px;
}

.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.search-empty h2 {
  margin: 0 0 10px;
  color: #10213e;
  font-size: 21px;
}

.search-empty p {
  max-width: 460px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.search-empty.is-error {
  border-color: #f3d4ca;
  background: #fffaf8;
}

.talent-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #dfe6ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(21, 45, 79, .055);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.talent-card-presence {
  position: absolute;
  z-index: 1;
  top: 23px;
  right: 23px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #16b879;
  box-shadow: 0 0 0 1px rgba(22, 184, 121, .2), 0 0 0 7px rgba(22, 184, 121, .1);
  opacity: 0;
  transform: scale(.65);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.talent-card.is-conversation-ready .talent-card-presence {
  opacity: 1;
  transform: scale(1);
}

.talent-card.is-temporarily-blocked .talent-card-presence,
.talent-card.is-relationship-blocked .talent-card-presence {
  display: grid;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-width: 2px;
  opacity: 1;
  transform: scale(1);
}

.talent-card.is-temporarily-blocked .talent-card-presence {
  background: #e64b43;
  box-shadow: 0 0 0 1px rgba(230, 75, 67, .18), 0 0 0 7px rgba(230, 75, 67, .08);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.talent-card.is-relationship-blocked .talent-card-presence {
  background: #fff0ee;
  box-shadow: 0 0 0 1px rgba(222, 69, 60, .16), 0 0 0 7px rgba(222, 69, 60, .06);
  color: #df463e;
  font-size: 17px;
}

.talent-card:where(:not(#search-results > .talent-card, #profile-card-preview-stage > .talent-card)):hover {
  border-color: #cbd7e6;
  box-shadow: 0 17px 38px rgba(21, 45, 79, .09);
  transform: translateY(-2px);
}

.talent-card-top {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  padding-right: 44px;
}

.talent-card-avatar {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #223e65, #ff8055);
  box-shadow: 0 0 0 1px #d9e2ed, 0 7px 18px rgba(22, 45, 78, .13);
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.talent-card-avatar > img {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talent-card-identity {
  flex: 1 1 auto;
  min-width: 0;
}

.talent-card-role {
  display: inline-flex;
  margin-bottom: 4px;
  color: #15966a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.talent-card-identity h2 {
  overflow: hidden;
  margin: 0;
  color: #10213e;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
}

.talent-card-headline,
.talent-card-representative {
  overflow: hidden;
  margin: 4px 0 0;
  color: #50617d;
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.talent-card-headline {
  max-width: 100%;
  white-space: nowrap;
}

.talent-card-representative {
  color: #7f8da3;
  font-size: 12px;
}

.talent-card-active-search {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  margin-left: -9px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 90, 31, .2);
  border-radius: 999px;
  background: #fff2eb;
  color: #e6531f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .01em;
}

.talent-card-active-search i {
  width: 12px;
  font-size: 11px;
  text-align: center;
}

.talent-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 16px;
  color: #687891;
  font-size: 12px;
  line-height: 1.45;
}

.talent-card-meta span { position: relative; }
.talent-card-meta b { color: #526985; font-weight: 800; }

.talent-card-meta span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -9px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b1bdcc;
  content: "";
  transform: translateY(-50%);
}

.talent-card-about {
  display: -webkit-box;
  min-height: 60px;
  overflow: hidden;
  margin: 16px 0 0;
  color: #334863;
  font-size: 13px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.talent-card-skills,
.talent-card-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.talent-card-skills {
  margin-top: 16px;
}

.talent-card-skills span {
  padding: 6px 10px;
  border-radius: 8px;
  background: #eef4fb;
  color: #274d7f;
  font-size: 11px;
  font-weight: 700;
}

.talent-card-skills span.is-language {
  background: #eaf8f1;
  color: #167a59;
}

.talent-card-skills span.is-interview-language,
.conversation-person-skills span.is-interview-language {
  border: 1px solid #b8a7ff;
  background: #eeeaff;
  color: #5135c1;
  font-weight: 800;
}

.talent-card-skills span.is-interview-language i,
.conversation-person-skills span.is-interview-language i { margin-right: 5px; }

.interview-language-field {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(210px, 280px);
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #f8faff;
}
.interview-language-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #eeeaff; color: #5135c1; font-size: 18px; }
.interview-language-field > span:nth-child(2) { display: grid; gap: 3px; }
.interview-language-field strong { color: #243b58; font-size: 12px; }
.interview-language-field small { color: #78889d; font-size: 9px; line-height: 1.4; }
.interview-language-field select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #d6e0eb; border-radius: 9px; background: #fff; color: #263d59; font: inherit; font-size: 11px; }
@media (max-width: 720px) { .interview-language-field { grid-template-columns: 42px 1fr; } .interview-language-field select { grid-column: 1 / -1; } }

.talent-card-conditions {
  margin-top: auto;
  padding-top: 17px;
}

.talent-card-conditions span {
  padding: 5px 9px;
  border: 1px solid #e1e7ef;
  border-radius: 999px;
  color: #6e7d93;
  font-size: 10px;
  font-weight: 600;
}

@media (max-width: 1250px) {
  .employer-search-filter-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

.conversation-panel {
  position: fixed;
  z-index: 30;
  right: 28px;
  bottom: 28px;
  display: flex;
  min-width: min(520px, calc(100vw - 56px));
  align-items: center;
  gap: 18px;
  padding: 17px 19px;
  border: 1px solid rgba(21, 169, 111, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 54px rgba(16, 33, 62, .18);
  backdrop-filter: blur(16px);
}

.conversation-panel[hidden] {
  display: none;
}

.conversation-charge-notice {
  position: fixed;
  z-index: 1200;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #12304f;
  color: #fff;
  box-shadow: 0 14px 34px rgba(7, 27, 53, .24);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.conversation-charge-notice.is-visible { opacity: 1; transform: translateY(0); }

.conversation-state {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 13px;
}

.conversation-state > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.conversation-state small {
  color: #15966a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.conversation-state strong {
  overflow: hidden;
  margin-top: 2px;
  color: #10213e;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-balance-store-link {
  width: fit-content;
  margin-top: 5px;
  color: #b63831;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.conversation-balance-store-link[hidden] { display: none; }
.conversation-balance-store-link:hover,
.conversation-balance-store-link:focus-visible { color: #8f241f; }

.conversation-state span:last-child {
  overflow: hidden;
  margin-top: 2px;
  color: #71809a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-pulse {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: #15a96f;
  box-shadow: 0 0 0 7px rgba(21, 169, 111, .1);
  animation: conversation-pulse 1.5s ease-in-out infinite;
}

.conversation-timer {
  color: #10213e;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.conversation-control {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #dde5ee;
  border-radius: 12px;
  background: #f7f9fc;
  color: #334863;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.conversation-control:hover,
.conversation-control:focus-visible {
  border-color: #cbd7e6;
  background: #fff;
  outline: none;
}

.conversation-control.is-muted {
  border-color: #f0c7c2;
  background: #fff3f1;
  color: #c84438;
}

.conversation-control.conversation-chat { color: #3978b6; }
.conversation-control.conversation-chat:hover,
.conversation-control.conversation-chat:focus-visible { border-color: #b8d0e7; background: #eef6fd; color: #2475bd; }

.conversation-control:disabled {
  cursor: default;
  opacity: .5;
}

.conversation-control[hidden] { display: none; }
.conversation-panel.is-scheduled-early #conversation-mute { display: none; }

.conversation-panel {
  z-index: 51;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  display: flex;
  width: min(1040px, calc(100vw - 48px));
  height: min(840px, calc(100dvh - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  flex-direction: column;
  overflow: hidden;
  padding: 24px;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(4, 18, 38, .32);
  transform: translate(-50%, -50%);
  transition: width 180ms ease, left 180ms ease;
}

.conversation-panel.has-translation-transcript {
  left: 50%;
  width: min(1380px, calc(100vw - 48px));
  padding-right: 374px;
}

.conversation-panel.has-translation-transcript .conversation-close { right: 344px; }

.conversation-translation-transcript {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  width: 326px;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce5f0;
  border-radius: 18px;
  background: #f8fafc;
  box-shadow: 0 12px 34px rgba(21, 42, 70, .08);
}

.conversation-translation-transcript[hidden] { display: none; }

.conversation-translation-transcript > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid #e1e8f1;
  background: #fff;
}

.conversation-translation-transcript-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #eaf2ff;
  color: #3974c5;
  font-size: 15px;
}

.conversation-translation-transcript header > div { display: grid; gap: 2px; min-width: 0; }
.conversation-translation-transcript header small { color: #15966a; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.conversation-translation-transcript header strong { color: #122642; font-size: 14px; }
.conversation-translation-live { display: inline-flex; align-items: center; gap: 5px; color: #168b63; font-size: 9px; font-weight: 800; }
.conversation-translation-live i { width: 7px; height: 7px; border-radius: 50%; background: #18ac78; box-shadow: 0 0 0 4px rgba(24, 172, 120, .1); }

.conversation-translation-transcript-feed {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  overflow-y: auto;
}

.conversation-translation-transcript-empty { margin: auto 8px; color: #8190a5; font-size: 11px; line-height: 1.55; text-align: center; }
.conversation-translation-transcript-empty[hidden] { display: none; }
.conversation-translation-caption { max-width: 90%; }
.conversation-translation-caption.is-self { align-self: flex-end; text-align: right; }
.conversation-translation-caption.is-partner { align-self: flex-start; }
.conversation-translation-caption small { display: block; margin: 0 4px 4px; color: #7b8ca3; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.conversation-translation-caption p { margin: 0; padding: 9px 11px; border: 1px solid #dbe5f0; border-radius: 12px 12px 12px 4px; background: #fff; color: #304965; font-size: 11px; line-height: 1.45; text-align: left; }
.conversation-translation-caption.is-self p { border-color: #cbdcf4; border-radius: 12px 12px 4px 12px; background: #eaf2ff; color: #245b9f; }
.conversation-translation-caption:not(.is-final) p::after { display: inline-block; width: 4px; height: 4px; margin-left: 5px; border-radius: 50%; background: currentColor; content: ''; opacity: .45; animation: conversation-pulse 1.2s ease-in-out infinite; vertical-align: middle; }

.conversation-translation-transcript > footer { display: flex; align-items: center; gap: 7px; padding: 10px 15px; border-top: 1px solid #e1e8f1; color: #8492a5; font-size: 9px; }

@media (max-width: 1180px) {
  .conversation-panel.has-translation-transcript { left: 50%; padding-right: 304px; }
  .conversation-panel.has-translation-transcript .conversation-close { right: 274px; }
  .conversation-translation-transcript { width: 260px; }
}

@media (max-width: 900px) {
  .conversation-panel.has-translation-transcript { left: 50%; padding-right: 18px; }
  .conversation-panel.has-translation-transcript .conversation-close { right: 18px; }
  .conversation-panel.has-translation-transcript .conversation-people { margin-bottom: 236px; }
  .conversation-translation-transcript { top: auto; right: 18px; bottom: 76px; left: 18px; width: auto; height: 210px; }
}

.conversation-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(5, 18, 37, .62);
  backdrop-filter: blur(5px);
  animation: conversation-backdrop-in 160ms ease-out;
}

.conversation-backdrop[hidden] {
  display: none;
}

body.has-conversation-modal {
  overflow: hidden;
}

.conversation-mini {
  position: fixed;
  z-index: 52;
  right: 24px;
  bottom: 24px;
  width: min(330px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid #dce4ed;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 52px rgba(7, 25, 49, .25);
  backdrop-filter: blur(14px);
}

.conversation-mini[hidden] { display: none; }

.conversation-mini-main {
  display: grid;
  width: 100%;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #10213e;
  text-align: left;
  cursor: pointer;
}

.conversation-mini-main:hover { background: #f5f8fb; }

.conversation-mini-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #17375f, #23b47e);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.conversation-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

.conversation-mini-copy { display: grid; min-width: 0; gap: 4px; }

.conversation-mini-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-mini-copy time {
  color: #61728b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.conversation-mini-main > i { color: #8290a5; font-size: 12px; }

.conversation-mini-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.conversation-mini-actions button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
}

.conversation-mini-next {
  border-color: #dce4ed !important;
  background: #edf1f5;
  color: #93a0b2 !important;
}

.conversation-mini-next.has-next {
  border-color: #8dccb4 !important;
  background: #9bcd3e;
  color: #fff !important;
}

.conversation-mini-end { background: #e7433a; }
.conversation-mini-end:hover { background: #cb352e; }
.conversation-mini-actions button:disabled { cursor: default; opacity: .65; }

.conversation-panel-header,
.conversation-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.conversation-schedule { margin-right: auto; }
.conversation-schedule.is-scheduler { border-color: #efc5b1; background: #fff8f4; color: #d85b20; }
.conversation-schedule.is-scheduler:hover,
.conversation-schedule.is-scheduler:focus-visible { border-color: #e9a886; background: #fff1e9; color: #c94b13; }
.conversation-schedule.is-calendar-view { border-color: #bfd3e8; background: #f1f7fd; color: #3978b6; }
.conversation-schedule.is-calendar-view:hover,
.conversation-schedule.is-calendar-view:focus-visible { border-color: #9fbedc; background: #e8f3fc; color: #246aa9; }
.conversation-schedule.has-meeting { border-color: #f0ae96; background: #fff4ee; color: #e6531d; }

.conversation-panel-header {
  padding-right: 46px;
}

.conversation-panel.is-balance-warning {
  border: 2px solid #e05249;
  box-shadow: 0 32px 90px rgba(95, 24, 20, .34);
}

.conversation-panel.is-balance-warning .conversation-panel-header {
  margin: -10px -10px 0;
  padding: 15px 58px 15px 16px;
  border: 1px solid #f0b8b3;
  border-radius: 15px;
  background: #fff0ee;
}

.conversation-panel.is-balance-warning .conversation-state small {
  color: #bf3b32;
}

.conversation-panel.is-balance-warning .conversation-state strong {
  color: #a82f28;
  font-size: 17px;
  white-space: normal;
}

.conversation-panel.is-balance-warning .conversation-pulse {
  position: relative;
  width: 30px;
  height: 27px;
  flex-basis: 30px;
  border-radius: 0;
  background: #df443b;
  box-shadow: none;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation: none;
}

.conversation-panel.is-balance-warning .conversation-pulse::after {
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  color: #fff;
  content: '!';
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.conversation-panel.is-balance-warning .conversation-close {
  background: #f8d9d5;
  color: #a82f28;
}

.conversation-panel.is-searching-next #conversation-status::after,
.conversation-panel.is-searching-next #conversation-partner::after {
  display: inline-block;
  width: 1.25em;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  vertical-align: bottom;
  content: "...";
  animation: conversation-searching-dots 1.2s steps(4, end) infinite;
}

@keyframes conversation-searching-dots {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.conversation-transition {
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 18px 0;
  padding: 34px;
  border: 1px solid #cfe8df;
  border-radius: 18px;
  background: linear-gradient(145deg, #f3fbf8, #f8fafc);
  text-align: left;
}

.conversation-transition[hidden] { display: none; }

.conversation-transition-avatar {
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  place-items: center;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #17375f, #23b47e);
  box-shadow: 0 10px 28px rgba(17, 66, 57, .16);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.conversation-transition-avatar img { width: 100%; height: 100%; object-fit: cover; }

.conversation-transition small {
  color: #15966a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.conversation-transition strong {
  display: block;
  margin-top: 3px;
  color: #10213e;
  font-size: 27px;
}

.conversation-transition p {
  margin: 10px 0 0;
  color: #65758e;
  font-size: 13px;
}

.conversation-transition-countdown {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  color: #15966a;
}

.conversation-transition-countdown b {
  min-width: 64px;
  color: #0c8e62;
  font-size: 72px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: .9;
  text-align: center;
}

.conversation-transition-countdown span {
  color: #587087;
  font-size: 14px;
  font-weight: 700;
}

.conversation-translation-offer {
  width: min(620px, 100%);
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #dfe6f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
}

.conversation-translation-offer[hidden] { display: none; }
.conversation-translation-offer > p { margin: 0 0 9px; color: #263a58; font-size: 13px; font-weight: 800; }
.conversation-translation-languages { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.conversation-translation-language { display: flex; align-items: center; gap: 10px; }
.conversation-translation-language > small { color: #7a8ba4; font-size: 9px; }
.conversation-translation-language .is-interview-language {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 10px;
}
.conversation-translation-language .is-interview-language i {
  margin-right: 8px;
  font-size: 11px;
}
.conversation-translation-language .is-interview-language b { font: inherit; }
.conversation-translation-language.is-self .is-interview-language { background: #eaf2ff; color: #2864bb; }
.conversation-translation-language.is-partner .is-interview-language { background: #fff0ef; color: #c64a43; }
.conversation-translation-question { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: #536780; font-size: 11px; }
.conversation-translation-question > div { display: flex; gap: 6px; }
.conversation-translation-question button {
  min-width: 42px;
  padding: 5px 10px;
  border: 1px solid #d3deeb;
  border-radius: 8px;
  background: #fff;
  color: #48617e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.conversation-translation-question button:hover,
.conversation-translation-question button:focus-visible,
.conversation-translation-question button.is-selected { border-color: #2e70c9; background: #edf5ff; color: #245da6; }
.conversation-translation-status { display: block; min-height: 13px; margin-top: 6px; color: #75869d; font-size: 9px; }

.conversation-panel.is-transitioning .conversation-people { display: none; }

.conversation-next-call {
  border-color: #dce4ee;
  background: #f5f7fa;
  color: #8492a6;
}

.conversation-next-call.has-next {
  border-color: #96d5bd;
  background: #eaf8f2;
  color: #0d865d;
}

.conversation-next-call.has-next:hover,
.conversation-next-call.has-next:focus-visible {
  border-color: #15966a;
  background: #15966a;
  color: #fff;
}

.conversation-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f0f4f8;
  color: #617087;
  font-size: 16px;
  cursor: pointer;
}

.conversation-close:hover,
.conversation-close:focus-visible {
  background: #e4eaf1;
  color: #152744;
  outline: none;
}

.conversation-people {
  display: grid;
  grid-template-columns: minmax(245px, 3fr) minmax(0, 7fr);
  min-height: 0;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 18px;
  margin: 18px 0;
}

.conversation-person {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid #e0e7ef;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 #fff;
}

.conversation-person-avatar {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, #17375f, #23b47e);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}

.conversation-person-self {
  align-content: start;
  grid-template-columns: 64px minmax(0, 1fr);
  background: linear-gradient(155deg, #f5faf8, #f8fafc 62%);
}

.conversation-person-self .conversation-person-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 19px;
}

.conversation-person-self .conversation-person-copy strong {
  font-size: 15px;
}

.conversation-person-main {
  position: relative;
  grid-template-columns: 118px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.conversation-person-main.is-calendar-open > :not(.conversation-call-calendar) { display: none !important; }
.conversation-call-calendar {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 15px 17px;
  overflow: auto;
  border-radius: inherit;
  background: #fbfcfe;
}
.conversation-call-calendar[hidden] { display: none; }
.conversation-call-calendar > header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 10px; border-bottom: 1px solid #e5ebf2; }
.conversation-call-calendar > header div { display: grid; gap: 2px; }
.conversation-call-calendar > header small { color: #15966a; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.conversation-call-calendar > header strong { color: #122642; font-size: 16px; }
.conversation-call-calendar > header button { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid #dce5ee; border-radius: 9px; background: #f8fafc; color: #54708e; cursor: pointer; }
.conversation-call-calendar > header button:hover { background: #f1f5f9; }
.conversation-call-calendar .conversation-call-calendar-toolbar { flex: 0 0 auto; margin: 10px 0 12px; }
.conversation-call-calendar .conversation-call-calendar-weekdays { flex: 0 0 auto; }
.conversation-call-calendar .conversation-call-calendar-grid { flex: 0 0 auto; }
.conversation-call-calendar-loading { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 7px; color: #78879b; font-size: 10px; }
.conversation-call-calendar-loading i { animation: history-spinner .8s linear infinite; }
.conversation-call-calendar-loading.is-error { color: #d34d43; }
.conversation-call-calendar > footer { display: grid; flex: 0 0 auto; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 42px; padding-top: 9px; }
.conversation-call-calendar > footer > strong { color: #17304f; font-size: 10px; white-space: nowrap; }
.conversation-call-calendar > footer > div { display: flex; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.conversation-call-calendar > footer span { padding: 4px 7px; border-radius: 7px; background: #f1f5f9; color: #60738d; font-size: 8px; font-weight: 700; }

.conversation-person-main .conversation-person-copy { padding-right: 104px; }

.conversation-private-tools {
  position: absolute;
  z-index: 10;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.conversation-private-tools[hidden] { display: none; }

.conversation-private-tools > button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #8190a4;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.conversation-private-tools > button[hidden] { display: none; }

.conversation-private-tools > button[data-call-language-translation] {
  position: relative;
  overflow: visible;
}

.conversation-translation-tool-status {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #df4741;
  color: #fff;
  font-size: 7px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(29, 48, 76, .18);
  pointer-events: none;
}

.conversation-translation-tool-status > i { margin: 0; }
.conversation-private-tools > button.is-translation-enabled .conversation-translation-tool-status { background: #13a36f; }

.conversation-private-tools > button:hover,
.conversation-private-tools > button:focus-visible,
.conversation-private-tools > button.has-value {
  border-color: #d9e3ed;
  background: #fff;
  color: #1b8060;
  outline: none;
}

.conversation-private-tools > .conversation-ai-summary-button {
  border-color: #ddd4f7;
  background: #f8f5ff;
  color: #7251d4;
}

.conversation-private-tools > .conversation-ai-summary-button:hover,
.conversation-private-tools > .conversation-ai-summary-button:focus-visible {
  border-color: #c5b5f2;
  background: #f2edff;
  color: #6240ca;
}

.conversation-private-tools > .conversation-ai-summary-button.is-active {
  border-color: #a8ddc8;
  background: #edfaf4;
  color: #109767;
  cursor: default;
}

.conversation-private-tools > .conversation-ai-summary-button.is-pending i {
  animation: conversation-ai-summary-pulse .75s ease-in-out infinite alternate;
}

@keyframes conversation-ai-summary-pulse {
  from { opacity: .45; transform: scale(.9) rotate(-8deg); }
  to { opacity: 1; transform: scale(1.08) rotate(8deg); }
}

.conversation-private-tools > button::after {
  position: absolute;
  z-index: 11;
  top: calc(100% + 7px);
  right: 0;
  bottom: auto;
  width: max-content;
  max-width: min(300px, calc(100vw - 48px));
  padding: 6px 8px;
  border-radius: 6px;
  background: #10213e;
  color: #fff;
  content: attr(data-tooltip);
  font-size: 9px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
}

.conversation-private-tools > button:hover::after,
.conversation-private-tools > button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.conversation-tool-popover {
  position: absolute;
  z-index: 6;
  top: 49px;
  right: 0;
  width: min(330px, calc(100vw - 80px));
  padding: 15px;
  border: 1px solid #dce5ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 33, 62, .2);
}

.conversation-tool-popover[hidden] { display: none; }

.conversation-tool-popover > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.conversation-tool-popover header small,
.conversation-tool-popover header strong { display: block; }

.conversation-tool-popover header small {
  color: #15966a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.conversation-tool-popover header strong {
  margin-top: 2px;
  color: #142744;
  font-size: 13px;
}

.conversation-tool-popover header button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f5f8;
  color: #708097;
  cursor: pointer;
}

.conversation-tool-popover p {
  margin: 0 0 10px;
  color: #75849a;
  font-size: 10px;
  line-height: 1.5;
}

.conversation-tool-popover textarea {
  display: block;
  width: 100%;
  min-height: 102px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  outline: 0;
  background: #fafbfd;
  color: #30445f;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
}

.conversation-tool-popover textarea:focus {
  border-color: #18a771;
  box-shadow: 0 0 0 3px rgba(24, 167, 113, .1);
  background: #fff;
}

.conversation-tool-actions {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.conversation-tool-actions span,
.conversation-rating-status {
  color: #8290a4;
  font-size: 9px;
}

.conversation-tool-actions button {
  min-height: 31px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: #15a970;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
}

.conversation-tool-actions button:disabled { cursor: wait; opacity: .65; }

.conversation-rating-options {
  display: flex;
  gap: 6px;
}

.conversation-rating-options button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d9e2ec;
  border-radius: 9px;
  background: #f8fafc;
  color: #526781;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.conversation-rating-options button:hover,
.conversation-rating-options button:focus-visible {
  border-color: #adc8e8;
  background: #eef6ff;
  outline: none;
}

.conversation-rating-options button.is-selected {
  border-color: #3b80c9;
  background: #3f86cf;
  color: #fff;
}

.conversation-rating-options button:disabled { cursor: wait; opacity: .65; }

.conversation-rating-status {
  display: block;
  min-height: 14px;
  margin-top: 9px;
}

.conversation-person-main .conversation-person-avatar {
  width: 118px;
  height: 118px;
}

.conversation-person-main.is-waiting .conversation-person-avatar {
  visibility: hidden;
}

.conversation-searching-placeholder {
  grid-column: 1 / -1;
  align-self: center;
  display: grid;
  max-width: 520px;
  justify-items: center;
  margin: 42px auto;
  padding: 26px;
  text-align: center;
}

.conversation-searching-placeholder[hidden] { display: none; }

.conversation-scheduled-gate {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 34px;
  text-align: center;
}

.conversation-scheduled-gate[hidden] { display: none; }

.conversation-scheduled-gate-icon {
  display: grid;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: #eaf7f2;
  color: #119b6e;
  font-size: 30px;
  box-shadow: 0 0 0 12px rgba(17, 155, 110, .05);
}

.conversation-scheduled-gate small {
  color: #119b6e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.conversation-scheduled-gate strong {
  max-width: 650px;
  margin-top: 8px;
  color: #102541;
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.conversation-scheduled-gate p {
  max-width: 650px;
  margin: 13px 0 0;
  color: #6f8098;
  font-size: 13px;
  line-height: 1.65;
}

.conversation-person-main.has-scheduled-gate > .conversation-person-avatar,
.conversation-person-main.has-scheduled-gate > .conversation-person-copy,
.conversation-person-main.has-scheduled-gate > .conversation-person-details,
.conversation-person-main.has-scheduled-gate > .conversation-private-tools { display: none; }

.conversation-searching-placeholder-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 50%;
  background: #e8f6f0;
  color: #15966a;
  font-size: 20px;
  animation: conversation-search-pulse 1.8s ease-in-out infinite;
}

.conversation-searching-placeholder small {
  color: #15966a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.conversation-searching-placeholder strong {
  margin-top: 6px;
  color: #10213e;
  font-size: 20px;
}

.conversation-searching-placeholder strong::after {
  display: inline-block;
  width: 1.25em;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  vertical-align: bottom;
  content: "...";
  animation: conversation-searching-dots 1.2s steps(4, end) infinite;
}

.conversation-searching-placeholder p {
  max-width: 460px;
  margin: 9px 0 0;
  color: #65758e;
  font-size: 12px;
  line-height: 1.55;
}

@keyframes conversation-search-pulse {
  50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(21, 150, 106, .08); }
}

.conversation-waiting-candidate {
  grid-column: 1 / -1;
  align-self: stretch;
  display: grid;
  width: 100%;
  align-items: center;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 2px 4px 0;
}

.conversation-waiting-candidate[hidden] { display: none; }

.conversation-waiting-candidate-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e8f5ef;
  color: #178f67;
  font-size: 17px;
  font-weight: 800;
}

.conversation-waiting-candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-waiting-candidate small {
  color: #15966a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.conversation-waiting-candidate strong {
  display: block;
  margin-top: 5px;
  color: #10213e;
  font-size: 19px;
}

.conversation-waiting-candidate p {
  margin: 7px 0 0;
  color: #65758e;
  font-size: 12px;
  line-height: 1.55;
}

.conversation-temporary-chat {
  grid-column: 1 / -1;
  min-height: 220px;
  padding-top: 14px;
  border-top: 1px solid #e1e8ef;
}

.conversation-temporary-chat header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.conversation-temporary-chat header strong {
  margin: 0;
  font-size: 12px;
}

.conversation-temporary-chat header small {
  color: #8a98aa;
  letter-spacing: 0;
  text-transform: none;
}

.conversation-temporary-chat-messages {
  display: flex;
  height: 125px;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  overflow: auto;
}

.conversation-temporary-chat-messages p {
  width: fit-content;
  max-width: 75%;
  margin: 0;
  padding: 8px 11px;
  border-radius: 11px 11px 11px 3px;
  background: #eaf2fb;
  color: #30445f;
  font-size: 11px;
}

.conversation-temporary-chat-messages p.is-own {
  align-self: flex-end;
  border-radius: 11px 11px 3px 11px;
  background: #e6f6ef;
  color: #176b50;
}

.conversation-temporary-chat form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
}

.conversation-temporary-chat input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d9e3ed;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #243956;
  font: inherit;
  font-size: 11px;
}

.conversation-temporary-chat input:focus {
  border-color: #87bba8;
  box-shadow: 0 0 0 3px rgba(21, 150, 106, .1);
}

.conversation-temporary-chat form button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #15966a;
  color: #fff;
  cursor: pointer;
}

.conversation-person-main.is-waiting.has-queued-partner > .conversation-person-avatar,
.conversation-person-main.is-waiting.has-queued-partner > .conversation-person-copy,
.conversation-person-main.is-waiting.has-queued-partner > .conversation-person-details,
.conversation-person-main.is-waiting.has-searching-placeholder > .conversation-person-avatar,
.conversation-person-main.is-waiting.has-searching-placeholder > .conversation-person-copy,
.conversation-person-main.is-waiting.has-searching-placeholder > .conversation-person-details {
  display: none;
}

.conversation-person-avatar img,
.conversation-next-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-person-copy {
  min-width: 0;
}

.conversation-person-copy small,
.conversation-balance small,
.conversation-next > small {
  color: #15966a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.conversation-person-copy strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #10213e;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-person-copy > span {
  display: block;
  overflow: hidden;
  margin: 4px 0 0;
  color: #65758e;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-person-details {
  display: flex;
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.conversation-person-details > p {
  min-height: 0;
  max-height: min(240px, 30vh);
  margin: 10px 0 0;
  padding-right: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #50617d;
  font-size: 16px;
  line-height: 1.55;
  overscroll-behavior: contain;
  scrollbar-color: #bdc8d6 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  white-space: pre-line;
}

.conversation-person-details > p:empty { display: none; }

.conversation-person-details > p::-webkit-scrollbar { width: 6px; }
.conversation-person-details > p::-webkit-scrollbar-track { background: transparent; }
.conversation-person-details > p::-webkit-scrollbar-thumb { border-radius: 999px; background: #bdc8d6; }

.conversation-person-meta,
.conversation-person-skills,
.conversation-person-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conversation-person-meta {
  color: #71809a;
  font-size: 10px;
}

.conversation-person-meta span:not(:last-child)::after {
  margin-left: 6px;
  content: '•';
  color: #b0bac8;
}

.conversation-person-skills,
.conversation-person-conditions {
  margin-top: 11px;
}

.conversation-person-skills span {
  padding: 5px 8px;
  border-radius: 7px;
  background: #eaf1fa;
  color: #285080;
  font-size: 10px;
  font-weight: 700;
}

.conversation-person-conditions span {
  padding: 5px 8px;
  border: 1px solid #dce4ed;
  border-radius: 999px;
  background: #fff;
  color: #6b7a91;
  font-size: 9px;
  font-weight: 600;
}

.conversation-call-duration,
.conversation-balance,
.conversation-next {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid #e3e9f0;
}

.conversation-call-duration small,
.conversation-balance small,
.conversation-next > small {
  color: #15966a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.conversation-call-duration .conversation-timer {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.conversation-balance strong {
  display: block;
  margin-top: 4px;
  color: #15966a;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.conversation-balance strong.is-negative {
  color: #d44239;
}

.conversation-next > div {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  color: #42536e;
  font-size: 11px;
}

.conversation-wait-notice-button {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #cfe5dc;
  border-radius: 9px;
  background: #eef8f4;
  color: #167a58;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
}

.conversation-wait-notice-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 9px;
}

.conversation-wait-notice-actions[hidden] { display: none; }

.conversation-wait-notice-button:hover,
.conversation-wait-notice-button:focus-visible {
  border-color: #8fcbb5;
  background: #e4f5ee;
  outline: none;
}

.conversation-wait-notice-button:disabled { cursor: wait; opacity: .6; }

.conversation-next-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e8eef5;
  color: #8391a5;
}

.conversation-actions {
  margin: 0 -24px -24px;
  padding: 16px 24px;
  border-top: 1px solid #e4eaf1;
  border-radius: 0 0 24px 24px;
  background: #fbfcfe;
  justify-content: flex-end;
}

.conversation-end {
  border-color: #e8b7b2;
  background: #d94b42;
  color: #fff;
}

.conversation-end:hover,
.conversation-end:focus-visible {
  border-color: #c93d35;
  background: #c93d35;
  color: #fff;
}

@keyframes conversation-backdrop-in {
  from { opacity: 0; }
}

@keyframes conversation-pulse {
  50% { box-shadow: 0 0 0 11px rgba(21, 169, 111, .03); }
}

@media (max-width: 720px) {
  .conversation-mini {
    right: 12px;
    bottom: 12px;
    width: min(330px, calc(100vw - 24px));
  }

  .conversation-panel {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    height: auto;
    max-height: none;
    min-width: 0;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    transform: none;
    overflow: hidden;
  }

  .conversation-people {
    grid-template-columns: 1fr;
    max-height: 58vh;
    overflow: auto;
  }

  .conversation-person-main { grid-template-rows: auto auto; overflow: visible; }
  .conversation-person-details > p { max-height: 230px; }

  .conversation-person {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .conversation-person-avatar {
    width: 72px;
    height: 72px;
  }

  .conversation-person-self .conversation-person-avatar {
    width: 58px;
    height: 58px;
  }

  .conversation-person-main .conversation-person-avatar {
    width: 72px;
    height: 72px;
  }

  .conversation-person-main .conversation-person-copy { padding-right: 62px; }
  .conversation-private-tools { top: 12px; right: 12px; }
  .conversation-tool-popover { position: fixed; top: 50%; right: 20px; left: 20px; width: auto; transform: translateY(-50%); }

  .conversation-state {
    flex-basis: calc(100% - 70px);
  }

  .conversation-control span {
    display: inline;
  }

  .conversation-actions {
    margin: 0 -18px -18px;
    padding: 14px 18px;
  }
}

@media (max-width: 720px) {
  :root {
    --sidebar-width: 82px;
  }

  .sidebar {
    align-items: center;
    padding: 26px 9px 14px;
  }

  .brand {
    padding: 0;
  }

  .brand-name,
  .nav-link span,
  .exit-link span {
    display: none;
  }

  .sidebar-nav {
    width: 100%;
    margin-top: 55px;
  }

  .nav-link,
  .exit-link {
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .exit-link {
    width: 100%;
  }

  .account-header {
    min-height: 84px;
    gap: 10px;
    padding: 0 14px;
  }

  .header-search-button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .online-status {
    margin-right: 0;
    font-size: 12px;
  }

  .online-avatars {
    display: none;
  }

  .online-avatars img,
  .online-avatars-more {
    width: 32px;
    height: 32px;
  }

  .online-avatars img {
    margin-left: -8px;
  }

  .online-avatars-more {
    margin-left: 4px;
    font-size: 11px;
  }

  .notification-button {
    width: 42px;
    height: 42px;
  }

  .account-summary {
    min-width: 0;
    gap: 9px;
  }

  .account-avatar {
    width: 44px;
    height: 44px;
  }

  .account-copy strong,
  .account-copy small {
    max-width: 105px;
  }

  .profile-content {
    min-height: calc(100vh - 84px);
  }

  .search-content {
    min-height: calc(100vh - 84px);
  }

  .search-page { padding: var(--user-page-padding); }

  .search-heading {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .online-avatars {
    display: none;
  }

  .online-status span:last-child,
  .account-copy,
  .account-chevron {
    display: none;
  }

  .online-status {
    gap: 0;
  }

  .account-summary {
    gap: 0;
  }

  .search-heading {
    display: block;
  }

  .search-result-count {
    width: fit-content;
    margin-top: 18px;
  }

  .talent-card {
    padding: 18px;
  }

  .talent-card-avatar {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .search-results {
    grid-template-columns: minmax(0, 1fr);
  }
}

.profile-content {
  width: min(100%, var(--user-page-max-width));
  margin: 0 auto;
  padding: var(--user-page-padding);
}

.profile-intro {
  max-width: 650px;
  margin-bottom: 34px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-intro h1 {
  margin: 9px 0 10px;
  color: #10213e;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -.045em;
  line-height: 1.1;
}

.profile-intro > p:last-child {
  margin: 0;
  color: #60708a;
  font-size: 15px;
  line-height: 1.65;
}

.profile-form {
  display: grid;
  gap: 20px;
}

.profile-section {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #e3eaf3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(18, 47, 83, .045);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 5px 0 0;
  color: #10213e;
  font-size: 21px;
  letter-spacing: -.025em;
}

.section-heading > p {
  max-width: 270px;
  margin: 5px 0 0;
  color: #78869d;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.role-option {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 15px;
  padding: 19px;
  border: 1px solid #dbe4ef;
  border-radius: 17px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.role-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.role-option:hover {
  border-color: #b8c9dc;
  transform: translateY(-1px);
}

.role-option:has(input:checked) {
  border-color: var(--orange);
  background: #fff8f4;
  box-shadow: 0 8px 24px rgba(255, 90, 31, .1);
}

.role-option:focus-within {
  outline: 3px solid rgba(255, 90, 31, .17);
  outline-offset: 3px;
}

.role-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #f0f4f9;
  color: #24466f;
}

.role-option:has(input:checked) .role-icon {
  background: var(--orange);
  color: #fff;
}

.role-icon i { font-size:24px; }

.role-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.role-option strong,
.role-option small {
  display: block;
}

.role-option strong {
  color: #10213e;
  font-size: 15px;
}

.role-option small {
  margin-top: 4px;
  color: #718097;
  font-size: 12px;
  line-height: 1.4;
}

.active-search-options { margin-top: 14px; }

.active-search-option {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.active-search-option[hidden] { display: none; }

.active-search-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.active-search-option strong,
.active-search-option small { display: block; }

.active-search-option strong { color: #18304f; font-size: 13px; }

.active-search-option small {
  margin-top: 3px;
  color: #77869b;
  font-size: 11px;
  line-height: 1.4;
}

.active-search-option:hover { border-color: #b7c9db; }

.active-search-option:has(input:checked) {
  border-color: rgba(19, 157, 105, .42);
  background: #f1faf6;
  box-shadow: 0 7px 20px rgba(19, 157, 105, .08);
}

.active-search-option input:checked + .checkmark {
  border-color: #139d69;
  background: #139d69;
}

.active-search-option input:checked + .checkmark::after {
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: translateY(-1px) rotate(45deg);
}

.active-search-option input:focus-visible + .checkmark {
  outline: 3px solid rgba(19, 157, 105, .16);
  outline-offset: 3px;
}

.identity-grid {
  display: grid;
  grid-template-columns: minmax(200px, .55fr) minmax(0, 1.45fr);
  gap: 30px;
  align-items: center;
}

.identity-kyc-prompt {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 13px;
  margin-top: -8px;
  padding: 13px 15px;
  border: 1px solid #d4e1ee;
  border-radius: 12px;
  background: #f8fbff;
}

.identity-kyc-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  background: #e7f1fc;
  color: #2d71b4;
  font-size: 16px;
}

.identity-kyc-copy { display: grid; min-width: 0; gap: 2px; }
.identity-kyc-copy strong { color: #18304e; font-size: 13px; }
.identity-kyc-copy span { color: #697c93; font-size: 11px; line-height: 1.45; }

.identity-kyc-action {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.identity-kyc-action:hover { filter: brightness(.94); }
.identity-kyc-action:focus-visible { outline: 3px solid rgba(255, 90, 31, .22); outline-offset: 2px; }

.avatar-field {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-field-copy {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
}

.avatar-picker {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 2px dashed #b7c7da;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecf2f8, #fff);
  color: #687d9b;
  cursor: pointer;
  font-size: 30px;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.avatar-picker:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.avatar-picker > img {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Temporary visual verification: only accounts with SU rights receive this badge. */
.account-avatar.is-superuser-avatar,
.talent-card-avatar.is-superuser-avatar,
.site-chat-avatar.is-superuser-avatar,
.history-avatar.is-superuser-avatar,
.conversation-mini-avatar.is-superuser-avatar,
.conversation-person-avatar.is-superuser-avatar,
.conversation-next-avatar.is-superuser-avatar,
.conversation-transition-avatar.is-superuser-avatar,
.conversation-waiting-candidate-avatar.is-superuser-avatar,
.event-card-archive-avatar.is-superuser-avatar,
.avatar-picker.is-superuser-avatar {
  position: relative;
  overflow: visible;
}

.is-superuser-avatar > img {
  border-radius: inherit;
}

.is-superuser-avatar::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  display: grid;
  width: 21px;
  height: 21px;
  box-sizing: border-box;
  place-items: center;
  border: 2px solid var(--su-badge-edge, #fff);
  border-radius: 50%;
  background: #2383db;
  color: #fff;
  content: '✓';
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.account-avatar.is-superuser-avatar::after {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.conversation-next-avatar.is-superuser-avatar::after {
  right: -2px;
  bottom: -2px;
  width: 17px;
  height: 17px;
  font-size: 10px;
}

.history-avatar.is-superuser-avatar::after {
  top: 0;
  bottom: auto;
}

.avatar-field strong,
.avatar-field small {
  display: block;
}

.avatar-field strong {
  color: #10213e;
  font-size: 14px;
}

.avatar-field small {
  margin-top: 5px;
  color: #77859b;
  font-size: 11px;
  line-height: 1.55;
}

.text-button {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.avatar-field-copy .text-button + .text-button {
  margin-top: 4px;
  color: #8a5360;
}

.avatar-editor-dialog {
  width: min(470px, calc(100vw - 28px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #10213e;
}

.avatar-editor-dialog::backdrop {
  background: rgba(4, 18, 36, .62);
  backdrop-filter: blur(5px);
}

.avatar-editor-card {
  overflow: hidden;
  border: 1px solid rgba(219, 228, 239, .95);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(2, 18, 39, .28);
}

.avatar-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 16px;
}

.avatar-editor-header small {
  color: #15966a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.avatar-editor-header h2 {
  margin: 3px 0 0;
  font-size: 23px;
  letter-spacing: -.035em;
}

.avatar-editor-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f3f6fa;
  color: #61738c;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

.avatar-editor-body {
  padding: 0 24px 22px;
}

.avatar-editor-body > p {
  margin: 0 0 17px;
  color: #718199;
  font-size: 12px;
  line-height: 1.55;
}

.avatar-crop-stage {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #dfe7f0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: 0 0 0 8px #f3f6fa, 0 0 0 9px #d7e1ed;
}

.avatar-crop-stage.is-dragging { cursor: grabbing; }

.avatar-crop-stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
  will-change: width, height, left, top;
}

.avatar-crop-guide {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(8, 31, 61, .16), inset 0 0 35px rgba(5, 20, 40, .12);
  pointer-events: none;
}

.avatar-zoom-control {
  display: block;
  width: 280px;
  margin: 22px auto 0;
}

.avatar-zoom-control span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #65758c;
  font-size: 11px;
  font-weight: 700;
}

.avatar-zoom-control i { color: #315784; font-size: 14px; font-style: normal; }
.avatar-zoom-control input { width: 100%; accent-color: var(--orange); cursor: pointer; }

.avatar-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid #e8edf4;
  background: #fbfcfe;
}

.avatar-editor-actions button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.avatar-editor-cancel { border: 1px solid #d8e1ec; background: #fff; color: #52647e; }
.avatar-editor-apply { border: 1px solid var(--orange); background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 31, .2); }

@media (max-width: 420px) {
  .avatar-crop-stage { width: 238px; height: 238px; }
  .avatar-zoom-control { width: 238px; }
  .avatar-editor-header, .avatar-editor-body { padding-left: 18px; padding-right: 18px; }
  .avatar-editor-actions { padding-left: 18px; padding-right: 18px; }
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-grid--identity {
  gap: 14px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #263b5a;
  font-size: 13px;
  font-weight: 700;
}

.form-field b {
  color: var(--orange);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  background: #fff;
  color: #10213e;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input,
.form-field textarea {
  padding: 0 14px;
}

.form-field textarea {
  min-height: 130px;
  padding: 13px 14px;
  resize: vertical;
}

.form-field select {
  padding: 0 38px 0 14px;
  cursor: pointer;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a0adbd;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, .11);
}

.field-hint {
  justify-self: end;
  color: #8996a9;
  font-size: 11px;
  font-weight: 500;
}

.skills-fieldset,
.notifications-fieldset {
  margin: 25px 0 0;
  padding: 0;
  border: 0;
}

.skills-fieldset legend,
.notifications-fieldset legend {
  margin-bottom: 11px;
  color: #263b5a;
  font-size: 13px;
  font-weight: 700;
}

.skills-fieldset legend small {
  color: #8b98aa;
  font-weight: 500;
}

.employer-terms-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.employer-term-tag { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; max-width: 100%; padding: 8px 10px; border: 1px solid #f1d4c3; border-radius: 12px; background: #fff4eb; color: #985022; font-size: 12px; cursor: grab; }
.employer-term-tag strong { font-size: 12px; }
.employer-term-tag select, .employer-term-tag input { width: auto; min-width: 0; max-width: 220px; min-height: 30px; padding: 4px 6px; border: 1px solid #edcdb8; border-radius: 7px; background: #fffaf6; color: #713c23; font: inherit; }
.employer-term-tag input { width: 180px; }
.employer-term-tag button { display: grid; width: 24px; height: 24px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #985022; font-size: 20px; cursor: pointer; }
.employer-term-tag button:hover { background: #f9dcc9; }
.employer-term-tag.is-dragging { opacity: .45; }
.employer-term-tag:focus-visible, .employer-term-tag :focus-visible { outline: 2px solid #e87939; outline-offset: 2px; }
.employer-terms-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.employer-terms-actions select, .employer-terms-actions button { max-width: 100%; padding: 8px 12px; border: 1px solid #d8e2ef; border-radius: 9px; background: #fff; color: #50617d; font: inherit; font-size: 12px; cursor: pointer; }
.employer-terms-actions select:disabled { opacity: .5; cursor: default; }
.talent-card-skills > span, .conversation-person-skills > span { max-width: 100%; overflow-wrap: anywhere; }
.talent-card-skills > .is-employer-term, .conversation-person-skills > .is-employer-term { background: #fff1e6; color: #a75520; overflow-wrap: anywhere; }
.skills-tag-editor {
  display: flex;
  min-height: 54px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #f7f9fc;
  cursor: text;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.skills-tag-editor:focus-within {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 90, 31, .11);
}

.skills-tags { display: contents; }

.skills-editor-tag {
  display: inline-flex;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 7px 6px 11px;
  border-radius: 10px;
  background: #eaf2fd;
  color: #315887;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: grab;
  user-select: none;
  transition: opacity 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.skills-editor-tag > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skills-editor-tag:active { cursor: grabbing; }
.skills-editor-tag.is-dragging { opacity: .38; transform: scale(.97); }
.skills-editor-tag.is-drag-over { box-shadow: inset 3px 0 0 #347fd2; }

.skills-editor-tag-remove {
  display: inline-grid;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  place-items: center;
  background: transparent;
  color: #6e87a5;
  font: 700 17px/1 Arial, sans-serif;
  cursor: pointer;
}

.skills-editor-tag-remove:hover,
.skills-editor-tag-remove:focus-visible {
  background: #d8e6f8;
  color: #1f4d80;
  outline: none;
}

.skills-tag-editor > input {
  min-width: 210px;
  min-height: 34px;
  flex: 1 1 240px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #10213e;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.skills-tag-editor > input::placeholder { color: #9aa8ba; }
.skills-tag-editor > input:disabled { cursor: not-allowed; opacity: .62; }
.skills-tag-editor.is-full { cursor: default; }

.skills-editor-hint {
  margin: 7px 0 0;
  color: #8996a9;
  font-size: 11px;
  line-height: 1.45;
}

.skills-editor-hint.is-error { color: #d64438; }

.language-editor {
  margin-top: 18px;
}

.experience-editor { margin-top: 18px; }

.experience-tag-editor {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #cfe5db;
  border-radius: 13px;
  background: #f8fcfa;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.experience-tag-editor:focus-within {
  border-color: #36a97b;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(19, 157, 105, .1);
}

.experience-tag-editor input,
.experience-tag-editor select {
  height: 34px;
  border: 1px solid #b9ddcc;
  background: #e6f6ee;
  color: #176b50;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.experience-tag-editor input {
  width: 126px;
  padding: 0 11px;
  border-radius: 9px 4px 4px 9px;
  -moz-appearance: textfield;
}

.experience-tag-editor input::-webkit-inner-spin-button,
.experience-tag-editor input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }

.experience-tag-editor select {
  min-width: 68px;
  padding: 0 8px;
  border-radius: 4px 9px 9px 4px;
  cursor: pointer;
}

.experience-editor.has-error .experience-tag-editor {
  border-color: #df4236;
  box-shadow: 0 0 0 4px rgba(223, 66, 54, .1);
}

.language-editor-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.language-editor-heading strong,
.language-editor-heading small { display: inline; }
.language-editor-heading strong { color: #263b5a; font-size: 13px; }
.language-editor-heading small { color: #8996a9; font-size: 11px; }

.language-tag-editor {
  display: flex;
  min-height: 54px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #cfe5da;
  border-radius: 12px;
  background: #f6fbf8;
  cursor: text;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.language-tag-editor:focus-within {
  border-color: #36a97b;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(19, 157, 105, .1);
}

.language-tags { display: contents; }

.language-editor-tag {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #c7e7d9;
  border-radius: 10px;
  background: #eaf8f1;
  color: #167a59;
  font-size: 12px;
  font-weight: 750;
  cursor: grab;
  user-select: none;
  transition: opacity 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.language-editor-tag:active { cursor: grabbing; }
.language-editor-tag.is-dragging { opacity: .38; transform: scale(.97); }
.language-editor-tag.is-drag-over { box-shadow: inset 3px 0 0 #159d6b; }

.language-editor-tag-name { padding: 0 8px 0 10px; white-space: nowrap; }

.language-editor-tag select {
  width: auto;
  min-height: 25px;
  padding: 0 5px;
  border: 0;
  border-left: 1px solid #c7e7d9;
  background: rgba(255, 255, 255, .55);
  color: #116d50;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  outline: none;
}

.language-editor-tag.needs-level select { color: #d96a27; }
.language-editor-tag select:focus { background: #fff; box-shadow: inset 0 0 0 2px rgba(19, 157, 105, .22); }

.language-editor-tag-remove {
  display: grid;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-right: 5px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  place-items: center;
  background: transparent;
  color: #719c8b;
  cursor: pointer;
  font: 700 17px/1 Arial, sans-serif;
}

.language-editor-tag-remove:hover { background: #d8f0e5; color: #126f51; }

.language-tag-editor > input {
  min-width: 220px;
  min-height: 34px;
  flex: 1 1 250px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #10213e;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.language-tag-editor > input::placeholder { color: #94a99f; }
.language-tag-editor > input:disabled { cursor: not-allowed; opacity: .6; }

.language-editor-hint {
  margin: 7px 0 0;
  color: #80968d;
  font-size: 11px;
  line-height: 1.45;
}

.notification-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notification-options label {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid #dbe4ef;
  border-radius: 13px;
  cursor: pointer;
}

.notification-options input {
  position: absolute;
  opacity: 0;
}

.notification-options label:has(input:checked) {
  border-color: rgba(255, 90, 31, .52);
  background: #fff9f5;
}

.checkmark {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #b9c7d7;
  border-radius: 6px;
  background: #fff;
}

.notification-options input:checked + .checkmark {
  border-color: var(--orange);
  background: var(--orange);
}

.notification-options input:checked + .checkmark::after {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg) translateY(-1px);
}

.notification-options strong,
.notification-options small {
  display: block;
}

.notification-options strong {
  color: #1c3150;
  font-size: 13px;
}

.notification-options small {
  margin-top: 3px;
  color: #7e8b9f;
  font-size: 11px;
  line-height: 1.35;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-height: 64px;
}

.form-status {
  margin: 0 auto 0 0;
  color: #69809a;
  font-size: 13px;
  font-weight: 600;
}

.form-status.is-error {
  color: #d63b2e;
}

.form-status.is-success {
  color: #109c61;
}

.preview-profile {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid #cddcf0;
  border-radius: 12px;
  background: #fff;
  color: #24558e;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.preview-profile:hover,
.preview-profile:focus-visible {
  border-color: #8eb4df;
  box-shadow: 0 10px 22px rgba(49, 112, 181, .13);
  outline: none;
  transform: translateY(-1px);
}

.profile-card-preview-dialog {
  width: min(50vw, 760px);
  max-width: calc(100vw - 30px);
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #f6f9fd;
  box-shadow: 0 28px 80px rgba(6, 23, 45, .28);
  color: #10213e;
}

.profile-card-preview-dialog::backdrop {
  background: rgba(4, 18, 36, .62);
  backdrop-filter: blur(5px);
}

.profile-card-preview-header,
.profile-card-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
}

.profile-card-preview-header {
  border-bottom: 1px solid #dde7f2;
}

.profile-card-preview-header small {
  display: block;
  margin-bottom: 3px;
  color: #72859e;
  font-size: 11px;
  font-weight: 700;
}

.profile-card-preview-header h2 {
  margin: 0;
  font-size: 20px;
}

.profile-card-preview-header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f1f5fa;
  color: #5b718d;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

.profile-card-preview-stage {
  max-height: calc(100vh - 180px);
  padding: 22px;
  overflow: auto;
}

.profile-card-preview-stage .talent-card {
  width: 100%;
  box-sizing: border-box;
}

#profile-card-preview-stage > .talent-card {
  animation: none;
  transition: none;
}

.profile-card-preview-actions {
  justify-content: flex-end;
  border-top: 1px solid #dde7f2;
}

.profile-card-preview-actions button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #24558e;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.save-profile {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 0 21px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-highlight), var(--orange));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--orange) 22%, transparent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.save-profile:hover,
.save-profile:focus-visible {
  box-shadow: 0 13px 26px color-mix(in srgb, var(--orange) 32%, transparent);
  outline: none;
  transform: translateY(-1px);
}

.save-profile:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.save-profile svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 980px) {
  .notification-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .profile-content { padding: var(--user-page-padding); }

  .profile-section {
    padding: 21px 18px;
    border-radius: 17px;
  }

  .section-heading,
  .identity-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    gap: 7px;
  }

  .section-heading > p {
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .role-options,
  .identity-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .identity-grid {
    gap: 24px;
  }

  .identity-kyc-prompt { flex-wrap: wrap; margin-top: 0; }
  .identity-kyc-action { width: 100%; margin-left: 0; }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .form-status {
    margin: 0;
  }

  .save-profile {
    justify-content: center;
  }

  .profile-card-preview-dialog {
    width: calc(100vw - 24px);
  }

  .profile-card-preview-stage {
    padding: 14px;
  }

  .language-tag-editor > input { min-width: 150px; flex-basis: 180px; }
}

[data-candidate-section][hidden],
[data-employer-only][hidden] {
  display: none;
}


.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select,
.avatar-field.has-error .avatar-picker,
.role-section.has-error .role-options,
.skills-fieldset.has-error .skills-tag-editor {
  border-color: #df4236;
  box-shadow: 0 0 0 4px rgba(223, 66, 54, .1);
}

.role-section.has-error .role-options,
.skills-fieldset.has-error .skills-tag-editor {
  border-radius: 14px;
}

.inline-field-error {
  margin: -2px 0 0;
  color: #d63b2e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.avatar-field.has-error {
  align-items: flex-start;
  flex-wrap: wrap;
}

.avatar-field .inline-field-error,
.role-section > .inline-field-error,
.skills-fieldset > .inline-field-error {
  flex-basis: 100%;
}

.app-toast {
  position: fixed;
  z-index: 30;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 17px;
  border: 1px solid rgba(214, 59, 46, .25);
  border-radius: 12px;
  background: #fff8f7;
  box-shadow: 0 16px 34px rgba(16, 33, 62, .18);
  color: #a72f28;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.app-toast.is-success {
  border-color: rgba(16, 156, 97, .26);
  background: #f3fff8;
  color: #117747;
}

@media (prefers-reduced-motion: no-preference) {
  .app-toast:not([hidden]) { animation: app-toast-slide 1.4s both; }
}

@keyframes app-toast-slide {
  0%, 100% { transform: translate(-50%, -100%); opacity: 0; }
  15%, 85% { transform: translate(-50%, 0); opacity: 1; }
}

.online-avatars {
  display: flex;
  align-items: center;
  padding-left: 7px;
}

.online-avatars img,
.online-avatars span {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(16, 33, 62, .12);
}

.online-avatars img {
  margin-left: -8px;
  object-fit: cover;
}

.online-avatars span {
  display: grid;
  margin-left: -7px;
  place-items: center;
  background: #eff3f8;
  color: #253954;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .online-avatars {
    gap: 0;
    padding-left: 0;
  }

  .online-avatars img,
  .online-avatars span {
    width: 27px;
    height: 27px;
    border-width: 1px;
  }

  .online-avatars img {
    margin-left: -6px;
  }

  .online-avatars span {
    margin-left: -5px;
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .online-avatars span {
    display: none;
  }
}

.matching-preferences {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #e2e9f2;
  border-radius: 16px;
  background: #fafcff;
}

.preferences-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.preferences-heading h3 {
  margin: 0;
  color: #1a3152;
  font-size: 15px;
  letter-spacing: -.01em;
}

.preferences-heading p {
  margin: 0;
  color: #7b8aa0;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 24px;
}

.choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-fieldset legend {
  margin-bottom: 9px;
  color: #344763;
  font-size: 12px;
  font-weight: 800;
}

.choice-fieldset > small {
  display: block;
  margin-top: 8px;
  color: #8a98ab;
  font-size: 11px;
  line-height: 1.4;
}

.choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.choice-options label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #344763;
  font-size: 12px;
  font-weight: 700;
}

.choice-options input {
  position: absolute;
  opacity: 0;
}

.choice-options .checkmark {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid #b9c7d7;
  border-radius: 6px;
  background: #fff;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.choice-options label:hover .checkmark {
  border-color: #aebed1;
}

.choice-options input:checked + .checkmark {
  border-color: var(--orange);
  background: var(--orange);
}

.choice-options input:checked + .checkmark::after {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg) translateY(-1px);
}

.choice-options input[type="radio"] + .checkmark { border-radius: 50%; }

.choice-options input[type="radio"]:checked + .checkmark {
  border-color: var(--orange);
  background: #fff;
}

.choice-options input[type="radio"]:checked + .checkmark::after {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  transform: none;
}

.choice-options input:focus-visible + .checkmark {
  outline: 3px solid rgba(255, 90, 31, .17);
  outline-offset: 2px;
}

.compensation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 14px;
  align-items: end;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e3eaf3;
}

.compensation-row p {
  margin: 0 0 2px;
  color: #7d8ba0;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .compensation-row { grid-template-columns: minmax(0, 1fr) 120px; }
}

@media (max-width: 720px) {
  .matching-preferences {
    padding: 18px 15px;
  }

  .preferences-heading {
    display: grid;
    gap: 5px;
  }

  .preferences-heading p {
    text-align: left;
  }

  .preference-grid,
  .compensation-row {
    grid-template-columns: 1fr;
  }

}

.role-switch-dialog {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 20, 39, .66);
  backdrop-filter: blur(5px);
}

.role-switch-dialog[hidden] { display: none; }

.role-switch-dialog-card {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(4, 18, 36, .34);
}

.role-switch-dialog-body { padding: 30px 32px 25px; }

.role-switch-dialog-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: #fff0e9;
  color: #ee5a25;
  font-size: 24px;
  font-weight: 800;
}

.role-switch-dialog h2 {
  margin: 0;
  color: #102442;
  font-size: 24px;
  letter-spacing: -.035em;
}

.role-switch-dialog p {
  margin: 12px 0 0;
  color: #667791;
  font-size: 13px;
  line-height: 1.65;
}

.role-switch-dialog-time {
  display: block;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #f0d7cd;
  border-radius: 11px;
  background: #fff8f5;
  color: #b64324;
  font-size: 12px;
  line-height: 1.5;
}

.role-switch-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 20px;
  border-top: 1px solid #e9eef4;
  background: #fbfcfe;
}

.role-switch-dialog-actions button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d7e0eb;
  border-radius: 9px;
  background: #fff;
  color: #344a68;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.role-switch-dialog-actions .role-switch-confirm {
  border-color: #f4511e;
  background: #ff5426;
  color: #fff;
  box-shadow: 0 8px 18px rgba(244, 81, 30, .2);
}

.role-switch-dialog-actions .role-switch-confirm:hover:not(:disabled) {
  border-color: #df4114;
  background: #ed481c;
}

.role-switch-dialog-actions .role-switch-confirm:disabled {
  border-color: #f2c4b6;
  background: #f7d5cb;
  color: rgba(139, 60, 36, .58);
  box-shadow: none;
  cursor: not-allowed;
}

.role-switch-dialog-actions .role-switch-stay {
  border-color: transparent;
  background: transparent;
  color: #6f7d90;
  font-weight: 700;
}

.role-switch-dialog-actions .role-switch-stay:hover {
  background: #f0f3f7;
  color: #263b59;
}

body:has(.role-switch-dialog:not([hidden])) { overflow: hidden; }

@media (max-width: 580px) {
  .role-switch-dialog { padding: 14px; }
  .role-switch-dialog-body { padding: 25px 22px 21px; }
  .role-switch-dialog-actions { flex-direction: column-reverse; }
  .role-switch-dialog-actions button { width: 100%; }
}

@media (max-width: 900px) {
  .event-card { grid-template-columns: 76px minmax(0, 1fr); }
  .event-card-icon { width: 70px; height: 70px; border-radius: 19px; }
  .event-claim-button { grid-column: 2; width: max-content; }
}

@media (max-width: 720px) {
  .nav-link .nav-event-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    margin: 0;
  }

  .nav-link .nav-event-badge[hidden] { display: none; }
  .events-page { padding: var(--user-page-padding); }
}

@media (max-width: 520px) {
  .event-card { grid-template-columns: 1fr; gap: 18px; padding: 21px; }
  .event-card-icon { width: 64px; height: 64px; }
  .event-card-copy, .event-claim-button { grid-column: 1; }
  .event-claim-button { width: 100%; }
}

.scheduler-dialog {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(6, 22, 42, .68);
  backdrop-filter: blur(5px);
}

.scheduler-dialog[hidden] { display: none; }
.scheduler-dialog-open { overflow: hidden; }

.scheduler-dialog-card {
  width: min(780px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(5, 24, 48, .35);
}

.scheduler-dialog-card > header {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 13px;
  padding: 22px 24px;
  border-bottom: 1px solid #e6ecf3;
}

.scheduler-dialog-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 14px; background: #fff0e9; color: #ef5720; font-size: 21px; }
.scheduler-dialog-card header small { display: block; color: #14976b; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.scheduler-dialog-card h2 { margin: 4px 0 0; color: #122642; font-size: 22px; letter-spacing: -.035em; }
.scheduler-close { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #f2f5f8; color: #60728b; cursor: pointer; font-size: 15px; }
.scheduler-close:hover { background: #e9eef4; color: #263d5c; }
.scheduler-body { padding: 24px; }
.scheduler-partner { margin: 0 0 19px; color: #75849a; font-size: 12px; }
.scheduler-partner strong { color: #1b304d; }
.scheduler-body form { display: grid; gap: 14px; }
.scheduler-body form[hidden] { display: none; }
.scheduler-result > label { color: #53657e; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.scheduler-result input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid #d8e2ed; border-radius: 10px; outline: 0; color: #19304d; font: inherit; font-size: 12px; font-weight: 700; }
.scheduler-result input:focus { border-color: #f18159; box-shadow: 0 0 0 3px rgba(255,93,34,.1); }
.scheduler-picker { display: grid; grid-template-columns: minmax(0, 1fr) 242px; align-items: stretch; gap: 14px; }
.scheduler-calendar,
.scheduler-time-panel { border: 1px solid #dce6f0; border-radius: 15px; background: #fbfcfe; }
.scheduler-calendar { padding: 14px; }
.scheduler-calendar-toolbar { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 8px; margin-bottom: 12px; }
.scheduler-calendar-toolbar strong { color: #18304e; font-size: 13px; text-align: center; text-transform: capitalize; }
.scheduler-calendar-toolbar button { display: grid; width: 38px; height: 36px; place-items: center; border: 1px solid #d9e4ef; border-radius: 9px; background: #fff; color: #59708d; cursor: pointer; }
.scheduler-calendar-toolbar button:hover { border-color: #f3a183; background: #fff5f1; color: #ed5924; }
.scheduler-calendar-weekdays,
.scheduler-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.scheduler-calendar-weekdays { margin-bottom: 5px; }
.scheduler-calendar-weekdays span { color: #91a0b4; font-size: 8px; font-weight: 800; text-align: center; text-transform: uppercase; }
.scheduler-calendar-day { position: relative; display: grid; min-width: 0; height: 36px; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #263e5c; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.scheduler-calendar-day:hover:not(:disabled) { border-color: #f2b29b; background: #fff3ed; color: #e65320; }
.scheduler-calendar-day.is-today { border-color: #cbd9e7; background: #fff; }
.scheduler-calendar-day.is-selected { border-color: #ff6129; background: #ff6129; box-shadow: 0 6px 14px rgba(255,97,41,.2); color: #fff; }
.scheduler-calendar-day.is-outside { color: #b4bfcd; }
.scheduler-calendar-day.has-occupied::after { position: absolute; right: 5px; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: #ff6129; content: ''; }
.scheduler-calendar-day.has-occupied.is-selected::after { background: #fff; }
.scheduler-calendar-day:disabled { cursor: not-allowed; opacity: .35; }
.scheduler-time-panel { display: flex; flex-direction: column; padding: 15px; }
.scheduler-time-panel legend { padding: 0 5px; color: #14976b; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.scheduler-time-row { display: grid; gap: 2px; }
.scheduler-hour-field { display: grid; gap: 6px; color: #718199; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.scheduler-hour-select { display: block; }
.scheduler-hour-field select { width: 100%; height: 42px; padding: 0 38px 0 12px; border: 1px solid #d7e2ed; border-radius: 10px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235a718e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 13px center; color: #18304e; outline: 0; font: inherit; font-size: 13px; font-weight: 800; }
.scheduler-hour-field select:focus { border-color: #f18159; box-shadow: 0 0 0 3px rgba(255,93,34,.1); }
.scheduler-minute-group { margin-top: 13px; }
.scheduler-minute-group > span { display: block; margin-bottom: 6px; color: #718199; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.scheduler-minute-group > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.scheduler-minute-group button { height: 38px; border: 1px solid #d7e2ed; border-radius: 9px; background: #fff; color: #49617e; cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; }
.scheduler-minute-group button:hover:not(:disabled) { border-color: #f2a487; background: #fff5f1; color: #ed5924; }
.scheduler-minute-group button.is-selected { border-color: #ff6129; background: #ff6129; color: #fff; }
.scheduler-minute-group button:disabled { cursor: not-allowed; background: #eef2f6; color: #b2bdca; opacity: .75; text-decoration: line-through; }
.scheduler-selected-slot { margin: 14px 0 0; padding: 10px 11px; border-radius: 9px; background: #eef8f4; color: #168863; font-size: 10px; font-weight: 800; line-height: 1.45; }
.scheduler-availability-hint { display: flex; align-items: flex-start; gap: 7px; margin: auto 0 0; padding-top: 13px; color: #8291a5; font-size: 9px; line-height: 1.45; }
.scheduler-availability-hint i { margin-top: 4px; color: #c7d1dd; font-size: 6px; }
.scheduler-help { margin: 1px 0 0; color: #8592a6; font-size: 9px; line-height: 1.55; }
.scheduler-status { min-height: 17px; color: #15966a; font-size: 9px; }
.scheduler-save,
.scheduler-reschedule,
.scheduler-delete,
.scheduler-open-room { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--orange); color: #fff; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }
.scheduler-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.scheduler-actions button[hidden] { display: none; }
.scheduler-reschedule { background: #2878d0; }
.scheduler-reschedule:hover { background: #1e68ba; }
.scheduler-delete { border: 1px solid #f0b8b3; background: #fff7f6; color: #d84840; }
.scheduler-delete:hover { background: #fff0ee; }
.scheduler-save:disabled,
.scheduler-reschedule:disabled,
.scheduler-delete:disabled { cursor: wait; opacity: .6; }
.scheduler-result { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #e7edf4; }
.scheduler-result[hidden] { display: none; }
.scheduler-result > div:first-child { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #cde8dc; border-radius: 10px; background: #f0faf6; }
.scheduler-result > div:first-child small { color: #148b65; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.scheduler-result > div:first-child strong { color: #1a3a31; font-size: 13px; text-transform: capitalize; }
.scheduler-link-row { display: grid; grid-template-columns: minmax(0, 1fr) 43px; gap: 7px; }
.scheduler-link-row button { display: grid; place-items: center; border: 1px solid #d7e2ec; border-radius: 9px; background: #f8fafc; color: #4d6480; cursor: pointer; }
.scheduler-open-room { width: max-content; margin-top: 2px; background: #102b4c; }

@media (max-width: 760px) {
  .scheduler-dialog { padding: 12px; }
  .scheduler-dialog-card > header { padding: 18px; }
  .scheduler-body { padding: 20px 18px; }
  .scheduler-picker { grid-template-columns: 1fr; }
  .scheduler-actions, .scheduler-save, .scheduler-reschedule, .scheduler-delete, .scheduler-open-room { width: 100%; }
}

.settings-content {
  min-height: calc(100vh - 86px);
  background: #f6f8fb;
}

.settings-page {
  width: min(100%, var(--user-page-max-width));
  margin: 0 auto;
  padding: var(--user-page-padding);
}

@media (max-width: 720px) {
  :root { --user-page-padding: 38px 20px 60px; }
}

.settings-heading h1 {
  margin: 0;
  color: #10213e;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.settings-heading > p:last-child {
  max-width: 720px;
  margin: 13px 0 31px;
  color: #71809a;
  font-size: 14px;
  line-height: 1.65;
}

.settings-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.settings-tabs,
.settings-panel {
  border: 1px solid #dce5ef;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(34, 61, 91, .05);
}

.settings-tabs { padding: 8px; }

.settings-tab {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 10px;
  border-radius: 11px;
  color: #536680;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.settings-tab > i:first-child {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #f1f5f9;
  color: #6f8199;
}

.settings-tab.is-active { background: #fff1eb; color: #d94c1c; }
.settings-tab.is-active > i:first-child { background: #fff; color: #ef5720; }
.settings-tab-arrow { color: #a9b5c5; font-size: 9px; }

.settings-panel { padding: 28px; }

.settings-panel-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-panel-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #edf4fb;
  color: #2d679f;
  font-size: 19px;
}

.settings-panel-heading p {
  margin: 0 0 3px;
  color: #14976b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.settings-panel-heading h2 { margin: 0; color: #142845; font-size: 22px; letter-spacing: -.03em; }
.settings-panel-description { max-width: 720px; margin: 20px 0 22px; color: #71819a; font-size: 12px; line-height: 1.65; }
.settings-panel[hidden] { display: none; }
.settings-restriction-options { display: grid; gap: 10px; }
.settings-restriction-section { margin-top: 26px; padding-top: 26px; border-top: 1px solid #e1e9f1; }
.settings-restriction-section[hidden] { display: none; }
.settings-restriction-section .settings-panel-description { margin-bottom: 18px; }
.settings-notification-icon { background: #eef8f4; color: #15966a; }
.settings-restriction-option { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 68px; padding: 12px 15px; border: 1px solid #e0e8f0; border-radius: 13px; background: #fbfcfe; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.settings-restriction-option:hover { border-color: #c6d5e4; background: #fff; }
.settings-restriction-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.settings-checkbox { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #c8d5e2; border-radius: 7px; background: #fff; color: transparent; font-size: 10px; transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease; }
.settings-restriction-option > input:checked + .settings-checkbox { border-color: #15966a; background: #15966a; color: #fff; }
.settings-restriction-option > input:focus-visible + .settings-checkbox { outline: 3px solid rgba(21, 150, 106, .14); outline-offset: 2px; }
.settings-restriction-option strong { display: block; color: #243b58; font-size: 12px; }
.settings-restriction-option small { display: block; margin-top: 3px; color: #8190a4; font-size: 9px; line-height: 1.5; }
.settings-restriction-status { min-height: 16px; margin: 12px 0 0; color: #15966a; font-size: 9px; font-weight: 700; }
.settings-restriction-status.is-error { color: #d9483f; }

.settings-expenses-panel .settings-panel-icon { background: #eef5ff; color: #326aa4; }
.settings-service-prices { display: grid; gap: 10px; }
.settings-service-price-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border: 1px solid #dfe7ef;
  border-radius: 13px;
  background: #fbfcfe;
}
.settings-service-price-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: #eef5ff; color: #326aa4; font-size: 16px; }
.settings-service-price-icon.is-translation { background: #f1edff; color: #6952c9; }
.settings-service-price-card h3 { margin: 0; color: #243b58; font-size: 13px; }
.settings-service-price-card p { margin: 3px 0 0; color: #8190a4; font-size: 10px; line-height: 1.5; }
.settings-service-price-card > strong { padding: 8px 10px; border-radius: 9px; background: #eef4fa; color: #21466d; font-size: 11px; white-space: nowrap; }
.settings-service-prices-status { min-height: 14px; margin: 7px 0 0; color: #d9483f; font-size: 9px; }

.spending-history { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e1e9f1; }
.spending-history > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spending-history > header div { display: grid; gap: 3px; }
.spending-history > header strong { color: #243a57; font-size: 12px; }
.spending-history > header small, .spending-history > p { color: #8190a5; font-size: 9px; }
.spending-history > header button { padding: 7px 10px; border: 1px solid #d5e0ec; border-radius: 8px; background: #fff; color: #426181; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.spending-calendar { display: grid; grid-template-columns: repeat(30, 12px); gap: 4px; margin-top: 13px; overflow-x: auto; padding: 2px 0 6px; }
.spending-day { width: 12px; height: 12px; border: 1px solid #dfe7ef; border-radius: 3px; background: #f0f4f7; }
.spending-day.level-1 { border-color: #c7a98a; background: #d8bea2; }
.spending-day.level-2 { border-color: #d5b33e; background: #efd263; }
.spending-day.level-3 { border-color: #dc7b32; background: #ee9850; }
.spending-day.level-4 { border-color: #bf3d37; background: #df524b; }
.spending-history > p { margin: 7px 0 0; }

.settings-store-panel .settings-panel-icon { background: #fff1e9; color: #ef5720; }
.minute-store-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #6d7e95;
  font-size: 10px;
  font-weight: 700;
}
.minute-store-balance strong { color: #14976a; font-size: 14px; }
.minute-store-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.minute-store-package {
  position: relative;
  display: grid;
  min-height: 154px;
  align-content: center;
  justify-items: center;
  padding: 20px 14px;
  border: 1px solid #dce5ee;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.minute-store-package:hover { border-color: #f2b292; transform: translateY(-2px); }
.minute-store-package:has(input:checked) {
  border-color: #ef642f;
  background: #fff9f5;
  box-shadow: 0 11px 24px rgba(239, 87, 32, .12);
}
.minute-store-package > input,
.minute-store-payment input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.minute-store-package-check {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #d6e0e9;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 8px;
}
.minute-store-package:has(input:checked) .minute-store-package-check { border-color: #ef5720; background: #ef5720; color: #fff; }
.minute-store-package:has(input:focus-visible) { outline: 4px solid rgba(239, 87, 32, .12); outline-offset: 2px; }
.minute-store-package small { color: #8190a5; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.minute-store-package > strong { margin-top: 8px; color: #142845; font-size: 34px; line-height: 1; letter-spacing: -.05em; }
.minute-store-package > span:not(.minute-store-package-check) { margin-top: 5px; color: #60748d; font-size: 10px; font-weight: 700; }
.minute-store-package-pricing { display: flex; min-height: 20px; align-items: baseline; justify-content: center; gap: 7px; margin-top: 11px !important; }
.minute-store-package-pricing s { color: #98a5b5; font-size: 11px; font-weight: 700; text-decoration-color: #e45e43; text-decoration-thickness: 1.5px; }
.minute-store-package-pricing b { color: #ef5720; font-size: 17px; line-height: 1; }
.minute-store-package.has-discount .minute-store-package-pricing b { color: #15966a; }
.minute-store-package.is-featured::before {
  position: absolute;
  top: -8px;
  left: 50%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #15976b;
  color: #fff;
  content: 'Популярный';
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.minute-store-payment { margin-top: 23px; }
.minute-store-payment h3 { margin: 0 0 10px; color: #273e5b; font-size: 11px; }
.minute-store-payment > div { display: flex; flex-wrap: wrap; gap: 8px; }
.minute-store-payment label { position: relative; cursor: pointer; }
.minute-store-payment label > span,
.minute-store-payment-method {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #dbe4ed;
  border-radius: 11px;
  background: #fff;
  color: #60738c;
  font-size: 9px;
  font-weight: 800;
}
.minute-store-payment label:has(input:checked) > span { border-color: #91bfae; background: #eff9f5; color: #147e5a; }
.minute-store-payment label:has(input:focus-visible) > span { outline: 3px solid rgba(21, 151, 107, .13); outline-offset: 2px; }
.minute-store-actions { display: flex; min-height: 58px; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e4ebf2; }
.minute-store-actions p { margin: 0; color: #6f8096; font-size: 9px; font-weight: 700; line-height: 1.5; }
.minute-store-actions p.is-success { color: #15966a; }
.minute-store-actions p.is-error { color: #d9483f; }
.minute-store-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  background: #ef5720;
  box-shadow: 0 10px 22px rgba(239, 87, 32, .2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}
.minute-store-actions button:hover:not(:disabled) { background: #dc4918; }
.minute-store-actions button:disabled { cursor: wait; opacity: .6; }

.settings-data-preview {
  overflow: hidden;
  border: 1px solid #e1e8f0;
  border-radius: 13px;
}

.settings-data-preview > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 14px;
  border-top: 1px solid #e8edf3;
}

.settings-data-preview > div:first-child { border-top: 0; }
.settings-data-preview > div > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: #f4f7fa; color: #71839b; }
.settings-data-preview strong { display: block; color: #243b58; font-size: 12px; }
.settings-data-preview small { display: block; margin-top: 3px; color: #8795a9; font-size: 9px; }
.settings-data-preview em { padding: 5px 8px; border-radius: 999px; background: #f1f5f8; color: #8a98aa; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.settings-safety-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #cfe8dc;
  border-radius: 11px;
  background: #f2faf6;
  color: #178a64;
}

.settings-safety-note > i { margin-top: 2px; }
.settings-safety-note p { margin: 0; }
.settings-safety-note strong { display: block; font-size: 10px; }
.settings-safety-note span { display: block; margin-top: 3px; color: #628278; font-size: 9px; line-height: 1.55; }

.settings-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e7edf4;
}

.settings-clear-button,
.cleanup-confirm,
.cleanup-cancel {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}

.settings-clear-button,
.cleanup-confirm {
  border: 1px solid #e04941;
  background: #e04941;
  box-shadow: 0 9px 20px rgba(224, 73, 65, .18);
  color: #fff;
}

.settings-clear-button:hover,
.settings-clear-button:focus-visible,
.cleanup-confirm:hover:not(:disabled),
.cleanup-confirm:focus-visible:not(:disabled) { background: #ca3932; outline: none; }

.cleanup-dialog {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(6, 22, 42, .7);
  backdrop-filter: blur(6px);
}

.cleanup-dialog[hidden] { display: none; }
.cleanup-dialog-open { overflow: hidden; }

.cleanup-dialog-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(5, 24, 48, .38);
}

.cleanup-dialog-card > header {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid #e7edf4;
}

.cleanup-dialog-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: #fff0ee;
  color: #df4840;
  font-size: 20px;
}

.cleanup-dialog-card header small { display: block; color: #df4840; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cleanup-dialog-card h2 { margin: 4px 0 0; color: #122642; font-size: 22px; letter-spacing: -.035em; }
.cleanup-dialog-card header button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #f2f5f8; color: #60728b; cursor: pointer; }
.cleanup-dialog-card header button:hover { background: #e9eef4; color: #263d5c; }

.cleanup-dialog-body { padding: 22px 24px; }
.cleanup-dialog-body > p { margin: 0 0 15px; color: #6e7f96; font-size: 11px; line-height: 1.6; }

.cleanup-dialog-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cleanup-dialog-items > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid #e1e8f0;
  border-radius: 11px;
  background: #fafbfd;
}

.cleanup-dialog-items span { display: grid; width: 38px; height: 38px; grid-row: 1 / span 2; place-items: center; border-radius: 10px; background: #fff0ee; color: #df4840; }
.cleanup-dialog-items strong { align-self: end; color: #263d59; font-size: 10px; }
.cleanup-dialog-items small { align-self: start; color: #8795a9; font-size: 8px; line-height: 1.45; }

.cleanup-verification {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #f0ccc8;
  border-radius: 12px;
  background: #fff8f7;
  text-align: center;
}

.cleanup-verification > p:first-child { margin: 0 0 12px; color: #744f4d; font-size: 10px; line-height: 1.55; }
.cleanup-code, .cleanup-code-inputs { display: flex; justify-content: center; gap: 8px; }
.cleanup-code { margin-bottom: 8px; }

.cleanup-code span,
.cleanup-code-inputs input {
  display: grid;
  width: 44px;
  height: 46px;
  place-items: center;
  border-radius: 9px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
}

.cleanup-code span { border: 1px dashed #dda9a4; background: #fff; color: #b83d36; user-select: none; }
.cleanup-code-inputs input { border: 1px solid #d8e2ed; outline: 0; background: #fff; color: #18304d; }
.cleanup-code-inputs input:focus { border-color: #df4840; box-shadow: 0 0 0 3px rgba(223, 72, 64, .1); }
.cleanup-code-inputs input.is-valid { border-color: #21a276; background: #f1faf6; color: #15855f; }
.cleanup-status { min-height: 16px; margin: 10px 0 0; color: #d3453e; font-size: 9px; font-weight: 700; }

.cleanup-dialog-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 24px 20px;
  border-top: 1px solid #e7edf4;
}

.cleanup-cancel { border: 1px solid #d8e2ed; background: #fff; color: #52657e; }
.cleanup-cancel:hover { background: #f4f7fa; }
.cleanup-confirm:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }

@media (max-width: 780px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-panel { padding: 22px 18px; }
  .minute-store-packages { grid-template-columns: 1fr; }
  .minute-store-actions { align-items: stretch; flex-direction: column; }
  .minute-store-actions button { width: 100%; }
}

@media (max-width: 520px) {
  .settings-page { padding: var(--user-page-padding); }
  .settings-data-preview > div { grid-template-columns: 40px minmax(0, 1fr); }
  .settings-data-preview em { grid-column: 2; width: max-content; }
  .settings-clear-button { width: 100%; }
  .settings-service-price-card { grid-template-columns: 42px minmax(0, 1fr); }
  .settings-service-price-card > strong { grid-column: 2; justify-self: start; }
  .cleanup-dialog { padding: 10px; }
  .cleanup-dialog-card > header { padding: 18px; }
  .cleanup-dialog-body { padding: 18px; }
  .cleanup-dialog-items { grid-template-columns: 1fr; }
  .cleanup-dialog-card > footer { padding: 15px 18px 18px; }
  .cleanup-cancel, .cleanup-confirm { flex: 1; padding-inline: 10px; }
}

.calendar-page-heading .calendar-view-options {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.calendar-view-options .role-option {
  min-width: 0;
  text-align: left;
  font: inherit;
}

.calendar-view-options .role-option[aria-pressed="true"] {
  border-color: var(--orange);
}

.calendar-view-options .role-option strong {
  overflow-wrap: anywhere;
}

.profile-availability-dates, .profile-availability-month, .profile-availability-range { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.profile-availability-dates { margin-block: 8px; gap: 10px; }
.profile-availability-month-label { font-size: 11px; font-weight: 700; }
.profile-availability-title { white-space: nowrap; font-size: 13px; font-weight: 700; }
.profile-availability-range { gap: 0; border-radius: 999px; background: #ba4215; color: #fff; font-size: 12px; font-weight: 700; }
.profile-availability-range > span { display: grid; place-items: center; min-width: 26px; height: 26px; }
#calendar-availability .calendar-day:disabled { opacity: .45; cursor: not-allowed; }


.search-profession-field > input { grid-area: 2 / 1; padding-inline-end: 42px; }
.search-profession-field > [data-clear-profession] {
  grid-area: 2 / 1; justify-self: end; align-self: center; z-index: 1; margin-inline-end: 8px;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: inherit; font: inherit; font-size: 20px; cursor: pointer;
}
.search-profession-field > [data-clear-profession]:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

.search-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }

.profile-availability-range > [data-availability-time] { position: relative; cursor: help; }
.profile-availability-range > [data-availability-time]:is(:hover, :focus-visible)::after {
  content: attr(data-availability-time);
  position: absolute;
  z-index: 5;
  inset-inline-start: 0;
  bottom: calc(100% + 5px);
  width: max-content;
  max-width: min(220px, 60vw);
  padding: 6px 9px;
  border-radius: 7px;
  background: #152238;
  color: #fff;
  pointer-events: none;
}

/* Universal search layout: shares existing filter surfaces and theme rules. */
.universal-search .employer-search-filter-heading { padding-bottom: 0; border-bottom: 0; }
.universal-search-row { display: flex; align-items: stretch; gap: 12px; }
.universal-search-field { flex: 1; min-width: 0; }
.universal-search-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.universal-search .universal-search-field > input { min-height: 52px; padding-inline: 16px; font-size: 14px; }
.universal-search-button { flex: 0 0 auto; justify-content: center; min-width: 110px; margin: 0; }
@media (max-width: 540px) {
  .universal-search-row { flex-wrap: wrap; }
  .universal-search-field { flex-basis: 100%; }
  .universal-search-button { width: 100%; min-height: 44px; }
}

.universal-search-row { position:relative; }
.universal-search-field { position:relative; }
.universal-search .universal-search-field > input { padding-right:45px; }
.universal-search-clear { position:absolute; right:12px; top:50%; transform:translateY(-50%); border:0; background:transparent; color:inherit; font-size:24px; cursor:pointer; }
.universal-search-suggestions { position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:25; padding:6px; border:1px solid #dce5ef; border-radius:14px; background:#fff; box-shadow:0 12px 28px #071b3520; max-height:320px; overflow:auto; }
.universal-search-suggestion { display:block; width:100%; padding:12px; border:0; border-radius:9px; background:transparent; color:inherit; text-align:left; font:inherit; cursor:pointer; }
.universal-search-suggestion:hover,.universal-search-suggestion[aria-selected="true"] { background:#ff703b18; }
:root[data-theme-effective="dark"] .universal-search-suggestions { background:#222b35; border-color:#394653; color:#edf2f8; }
.search-load-more { display:flex; justify-content:center; margin:24px auto; }
.search-load-more[hidden],.universal-search-suggestions[hidden],.universal-search-clear[hidden] { display:none; }

#universal-search-query::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
#universal-search-query::-ms-clear { display: none; width: 0; height: 0; }

/* Compact location refinements, revealed only after a universal search. */
.universal-search-refinements { display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px 20px; }
.universal-search-refinements[hidden] { display:none; }
.universal-location-detail { min-width:0; max-width:100%; }
.universal-location-detail > summary { width:fit-content; max-width:100%; list-style:none; cursor:pointer; color:inherit; font-size:12px; font-weight:500; text-decoration:none; line-height:1.4; overflow-wrap:anywhere; }
.universal-location-detail > summary::-webkit-details-marker { display:none; }
.universal-location-detail > summary:hover { color:var(--orange, #ff703b); }
.universal-location-detail > summary:focus-visible { outline:2px solid var(--orange, #ff703b); outline-offset:5px; border-radius:3px; }
.universal-location-fields { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.universal-location-fields > .search-filter-field { width:180px; max-width:100%; }
.universal-search:has(.universal-search-refinements:not([hidden])) { gap:8px; }
.universal-location-detail .search-filter-field > input { min-height:40px; font-size:12px; }

.universal-location-detail > summary { display:flex; align-items:center; gap:6px; }
.universal-location-detail > summary > i { width:13px; flex:0 0 13px; color:#8c9caf; font-size:12px; text-align:center; }

.universal-location-detail .search-filter-composite { width:230px; max-width:100%; min-height:40px; }
.universal-location-detail .search-filter-composite > input { min-width:0; font-size:12px; }
.universal-location-detail .search-filter-composite .ui-select { min-width:0; }
.universal-location-detail .search-filter-field:has(> .search-filter-composite) { width:230px; }

.universal-extra-language-fields { width:340px; max-width:100%; margin-top:8px; }
.universal-extra-language-fields .search-filter-language-editor { grid-template-columns:minmax(100px, 1fr) 95px 36px; gap:6px; }
.universal-extra-language-fields .search-filter-language-editor > input { min-height:36px; font-size:12px; }
.universal-extra-language-fields .search-filter-language-editor > button { min-height:36px; }
.universal-simple-conditions { max-width:440px; margin-top:8px; }

.universal-extra-language-fields .universal-language-name { min-width:0; }
.universal-extra-language-fields .universal-language-name > input { min-height:36px; font-size:12px; }
.universal-extra-language-fields .geo-status { display:none; }

.universal-search-reset { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; padding:0; margin-top:-2px; border:0; border-radius:5px; background:transparent; color:#8c9caf; font:inherit; font-size:12px; cursor:pointer; }
.universal-search-reset:hover,.universal-search-reset:focus-visible { color:var(--orange, #ff703b); background:#ff703b12; }

#universal-search-refinements > .universal-search-reset > .fa-circle-xmark { font-size: 16px; }


#universal-search-refinements .universal-simple-conditions { width: 100%; max-width: none; overflow-x: auto; padding-bottom: 4px; }
#universal-search-refinements .universal-simple-conditions > div { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: max-content; justify-content: start; gap: 7px; }
#universal-search-refinements .universal-simple-conditions label { width: auto; min-width: max-content; }
#universal-search-refinements .universal-simple-conditions span { white-space: nowrap; }

/* Keep refinement headings in a stable row; expand a shared area below them. */
#universal-search-refinements { position:relative; padding-bottom:var(--refinement-panel-height, 0px); transition:padding-bottom 180ms ease; }
#universal-search-refinements > .universal-location-detail { position:static; flex:0 0 auto; width:auto; }
#universal-search-refinements > .universal-location-detail > :not(summary) { position:absolute; top:calc(var(--refinement-heading-height, 22px) + 8px); left:0; max-width:100%; margin-top:0; }
#universal-search-refinements > .universal-location-detail > .universal-location-fields { width:max-content; }
#universal-search-refinements > .universal-location-detail > .universal-simple-conditions { width:min(900px, 100%); }
#universal-search-refinements > .universal-location-detail[open] > :not(summary) { animation:refinement-reveal 180ms ease both; }
@keyframes refinement-reveal { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) {
  #universal-search-refinements { transition:none; }
  #universal-search-refinements > .universal-location-detail[open] > :not(summary) { animation:none; }
}

.universal-skill-sets { display:grid; gap:3px; min-width:0; padding-top:6px; }
.universal-skill-sets[hidden] { display:none; }
.universal-skill-set-row { display:block; width:100%; min-width:0; padding:5px 7px; border:0; border-radius:6px; background:transparent; color:inherit; text-align:left; font:inherit; font-size:12px; line-height:1.5; white-space:nowrap; overflow-x:auto; cursor:pointer; }
.universal-skill-set-row:hover, .universal-skill-set-row:focus-visible { background:#ff703b0d; }
.universal-skill-set-row[aria-pressed="true"] { color:var(--orange, #ff703b); background:#ff703b16; }
.universal-skill-set-row:focus-visible { outline:2px solid var(--orange, #ff703b); outline-offset:1px; }

.universal-skill-set-row { display:flex; align-items:center; gap:16px; overflow:visible; }
.universal-skill-set-text { flex:1; min-width:0; overflow-x:auto; white-space:nowrap; }
.universal-skill-set-action { flex:0 0 auto; font-size:11px; color:var(--orange, #ff703b); }

#universal-search-refinements > .universal-location-detail > .universal-skill-sets { width:100%; padding-top:0; }

#universal-search-refinements > .universal-location-detail > .universal-skill-panel { width:100%; }
.universal-skill-panel[hidden],.universal-skill-navigation[hidden] { display:none; }
.universal-skill-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:8px 7px 2px; }
.universal-skill-nav-button { display:inline-flex; align-items:center; justify-content:center; min-width:20px; min-height:24px; padding:0 4px; border:0; border-radius:5px; background:transparent; color:inherit; font:inherit; font-size:13px; cursor:pointer; }
.universal-skill-nav-button.is-more { margin-right:8px; color:var(--orange, #ff703b); font-size:12px; }
.universal-skill-nav-button.is-dot { min-width:16px; }
.universal-skill-nav-button.is-dot::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.35; }
.universal-skill-nav-button[aria-current="page"]::before { background:var(--orange, #ff703b); opacity:1; }
.universal-skill-nav-button:focus-visible { outline:2px solid var(--orange, #ff703b); outline-offset:2px; }
.universal-skill-nav-button:disabled { opacity:.4; cursor:wait; }
.universal-skill-page-caption,.universal-skill-page-gap { font-size:11px; opacity:.65; }

.universal-skill-panel:has(.universal-skill-navigation:not([hidden])) > .universal-skill-sets { min-height:307px; align-content:start; }

/* Search heading actions share one height; the filter is icon-only. */
.search-heading-actions { --search-action-size:52px; align-items:center; }
.search-heading-actions > .search-filter-toggle {
  width:var(--search-action-size);
  height:var(--search-action-size);
  min-width:var(--search-action-size);
  min-height:var(--search-action-size);
  flex:0 0 var(--search-action-size);
  padding:0;
  justify-content:center;
  font-size:16px;
}
.search-heading-actions > .search-result-count {
  height:var(--search-action-size);
  min-height:var(--search-action-size);
  margin-top:0;
  padding:0 17px;
  align-items:center;
}

#universal-search-refinements > .universal-location-detail:is([open], .has-selection) > summary,
#universal-search-refinements > .universal-location-detail:is([open], .has-selection) > summary :is(i, span) {
  color:var(--orange, #FF784B);
}

.history-repeat-title { display: inline-flex; align-items: center; gap: 5px; }
.history-cooldown-help {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 20px; height: 20px; padding: 0;
  border: 0; background: transparent; color: inherit;
  font-size: 13px; cursor: help;
}
.history-cooldown-help:focus-visible { outline: 2px solid currentColor; border-radius: 50%; }

.history-person-profile-trigger { cursor: pointer; border-radius: 12px; }
.history-person-profile-trigger:focus-visible { outline: 2px solid var(--accent, #FF784B); outline-offset: 4px; }

.history-search { margin: 0 0 24px; }
.history-search .universal-search-row { position: relative; }
.history-search .universal-search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; padding: 0; line-height: 1; }
.history-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.history-search .universal-search-field > input { min-height: 52px; padding-inline: 16px 48px; font-size: 14px; }
.history-search .universal-search-suggestion:focus-visible { outline: 2px solid var(--accent, #FF784B); outline-offset: -2px; }

/* The interview language is a pinned first tag, separate from reorderable languages. */
.profile-combined-languages .profile-extra-languages { display:contents; }
.profile-combined-languages .profile-extra-languages[hidden] { display:none; }
.profile-combined-languages .interview-language-field {
 display:inline-flex; align-items:center; gap:8px; flex:0 1 auto; min-width:0;
 padding:5px 9px; margin:0; border:1px solid #b9a9ee; border-radius:10px;
 background:#f0ebff; color:#694ac4;
}
.profile-combined-languages .profile-interview-label { display:flex; align-items:center; gap:5px; }
.profile-combined-languages .profile-interview-label > label { margin:0; font-size:11px; font-weight:800; white-space:nowrap; color:inherit; }
.profile-combined-languages .interview-language-field .profile-help { display:none; }
.profile-combined-languages .interview-language-field > .ui-select { width:auto; min-width:125px; }
.profile-combined-languages .interview-language-field .ui-select-trigger,
.profile-combined-languages .interview-language-field > select { min-height:30px; border:0; background:transparent; color:inherit; padding:3px 22px 3px 5px; font-size:12px; }
.profile-combined-languages .profile-extra-languages > input { flex:1 1 200px; min-width:140px; width:auto; min-height:36px; border:0; outline:0; background:transparent; color:inherit; font:inherit; padding:6px; }
:root[data-theme-effective="dark"] .profile-combined-languages .interview-language-field { background:#29233f; border-color:#574879; color:#c3adff; }
.profile-combined-languages .language-tag-editor.is-full > .interview-language-field { display:inline-flex; }

.search-heading-actions > [data-search-filter-toggle] { position:relative; overflow:visible; }
.search-heading-actions [data-search-filter-count] { position:absolute; top:-6px; right:-6px; min-width:20px; height:20px; padding:0 5px; box-sizing:border-box; font-size:10px; }
.search-heading-actions [data-search-filter-count][hidden] { display:none; }
.search-empty-filters { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; max-width:850px; margin:20px auto 0; }
.search-empty-filter { padding:7px 11px; border:1px solid var(--line,#dce5ef); border-radius:9px; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }

/* Link the search cooldown indicator to its history setting. */
.talent-card-cooldown-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: inherit; color: inherit; text-decoration: none; pointer-events: auto; }
.talent-card-cooldown-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.history-cooldown-field.is-cooldown-highlighted { animation: history-cooldown-highlight 3s ease-out; }
@keyframes history-cooldown-highlight {
  0%, 66.67% { border-color: #ef5350; box-shadow: 0 0 0 2px rgba(239, 83, 80, .48), 0 0 12px rgba(239, 83, 80, .22); }
  100% { box-shadow: 0 0 0 2px rgba(239, 83, 80, 0), 0 0 12px rgba(239, 83, 80, 0); }
}
