/* Final responsive rules shared by marketing pages, workspaces and dialogs. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.native-dialog[open] {
  overflow: hidden;
}
.app,
.workspace,
main,
.modal,
.panel,
.chat-panel,
.form-grid > *,
.dashboard-columns > *,
.site-wrap > * {
  min-width: 0;
}
img {
  max-width: 100%;
}
@media (max-width: 1000px) {
  .workspace {
    margin-left: 0;
  }
  .sidebar {
    width: min(288px, calc(100vw - 32px));
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    visibility: visible;
    transform: translateX(0);
  }
  .mobile-menu {
    display: flex;
  }
  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #18342450;
    z-index: 25;
    backdrop-filter: blur(2px);
  }
}
input,
select,
textarea {
  max-width: 100%;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.table-wrap:focus-visible {
  outline: 3px solid #86a9ff;
  outline-offset: 3px;
}
.resume-preview {
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
}
.field,
.file-row > span,
.wizard-batch-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .modal h3,
  .modal .panel-heading h3 {
    font-size: 20px !important;
    line-height: 1.4;
  }
  .message-bubble,
  .outgoing .message-bubble {
    color: #243954;
    background: #f0f4fc;
    border-color: #dfe6f0;
  }
  .outgoing .message-bubble {
    background: #eaf0ff;
  }
  .talent-meta,
  .supplier,
  .availability,
  .message-time,
  .message-author,
  .chat-date,
  .chat-context,
  .results-caption,
  .results-caption .muted,
  .field > small,
  .wizard-meta {
    color: #52647d;
  }
  .site .site-footer-grid > div > a:not(.site-brand) {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding-block: 8px;
  }
  .user-menu strong,
  .user-menu small {
    font-size: 14px;
  }
  .site .site-menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e0e8f6;
    border-radius: 6px;
    background: white;
    color: #4564a5;
    order: 3;
    margin-left: 0;
  }
  .site .site-header-actions {
    margin-left: auto;
  }
  .site .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #dce6f6;
    box-shadow: 0 16px 25px #1739680e;
  }
  .site .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site .site-nav > a {
    padding: 12px 2px;
  }
  .site .site-nav > a[aria-current]::after {
    display: none;
  }
  .site .site-mobile-auth {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-block: 12px 7px;
  }
  .site .site-mobile-auth .site-button {
    flex: 1;
  }
  .conversation-heading {
    flex-wrap: wrap;
  }
  .conversation-heading > div {
    flex: 1 1 180px;
  }
  .chat-assignment {
    font-size: 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .chat-assignment select {
    width: 100%;
    max-width: 100%;
  }
  .count-pill,
  .results-caption,
  .results-caption span,
  .results-caption strong,
  .pagination > span,
  .table-wrap strong,
  .list-row strong,
  .muted,
  .sidebar-bottom strong,
  .sidebar .text-link,
  .sidebar-footer,
  .sidebar-footer strong,
  .chat-assignment label,
  .upload-zone strong,
  .site .site-preview-card-foot > span {
    font-size: 14px !important;
    line-height: 1.5;
  }
  .company-logo,
  .company-avatar,
  .user-avatar {
    font-size: 14px !important;
    min-width: 32px;
    width: 32px;
    height: 32px;
  }
  .site .site-hero-essenn > div,
  .site .site-hero-essenn strong,
  .site .site-essenn strong,
  .site .site-contact-method > div,
  .site .site-card-number,
  .site .site-status-label,
  .site .site-stage-number,
  .site .site-privacy-label,
  .site .site-redacted > span,
  .site .site-redacted b,
  .site .site-step-icon > span,
  .site .site-preview-status span,
  .loading {
    font-size: 14px !important;
    line-height: 1.5;
  }
  .site .site-hero-essenn > div,
  .site .site-privacy-label {
    letter-spacing: 0.6px;
  }
  .site .site-step-icon > span {
    min-width: 25px;
    height: 25px;
  }
  .site .site-redacted > div {
    flex-wrap: wrap;
  }
  body,
  .app,
  .site,
  .modal {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Explicit floors override the original compact desktop and mobile rules. */
  :is(.site, .app, .modal) p,
  .site .site-checks li,
  .site .site-faq summary,
  .site .site-prose,
  .site .site-faq-page .site-faq p,
  .site .site-auth-grid aside > p,
  .talent-summary,
  .profile-summary,
  .message-bubble,
  .interview-message,
  .resume-preview,
  .empty p {
    font-size: 16px !important;
    line-height: 1.65;
  }
  :is(.site, .app, .modal) input,
  :is(.site, .app, .modal) select,
  :is(.site, .app, .modal) textarea,
  .chat-assignment select,
  .inline-form select {
    font-size: 16px !important;
    line-height: 1.5;
    min-height: 46px;
  }
  :is(.site, .app, .modal) input:not([type='checkbox']):not([type='radio']),
  :is(.site, .app, .modal) select {
    padding: 10px 12px;
  }
  :is(.site, .app, .modal) textarea {
    padding: 12px;
  }
  :is(.site, .app, .modal) small,
  :is(.site, .app, .modal) .field > span,
  .site .site-kicker,
  .site .site-pill,
  .site .site-hero-proof,
  .site .site-footer h2,
  .site .site-footer-grid > div > a:not(.site-brand),
  .site .site-footer-note,
  .site .site-footer-bottom,
  .site .site-hero-essenn span,
  .site .site-essenn span,
  .badge,
  .resource-code,
  .skill-tags > span,
  .talent-meta,
  .availability,
  .supplier,
  .card-price small,
  .eyebrow,
  .nav-caption,
  .nav-count,
  .trust-strip,
  .demo-label,
  .breadcrumb,
  .main-footer,
  .form-section-label,
  .detail-facts,
  .file-row,
  .info-box,
  .checkbox,
  .wizard-meta,
  .wizard-job strong,
  .wizard-review,
  .wizard-batch-row,
  .wizard-error,
  .chat-context,
  .chat-date,
  .message-author,
  .message-time,
  .chat-list-item span:not(.company-logo):not(.nav-count),
  .confirmation-list > div > span:nth-child(2),
  .review-details span,
  .profile-history .file-row,
  .profile-history .text-link,
  .notification-row strong,
  .notification-row small,
  .toast {
    font-size: 14px !important;
    line-height: 1.5;
  }
  .site .site-kicker,
  .site .site-pill,
  .form-section-label,
  .eyebrow {
    letter-spacing: 0.7px;
  }
  .site .site-pill {
    white-space: normal;
  }
  .field > span {
    margin-bottom: 7px;
  }
  .field > small {
    display: block;
    margin-top: 6px;
  }
  :is(.site, .app, .modal) button,
  :is(.site, .app, .modal) .button,
  .site .site-button,
  .text-link,
  .site .site-text-link {
    font-size: 14px !important;
    line-height: 1.45;
  }
  :is(.site, .app, .modal) button,
  :is(.site, .app, .modal) .button,
  .site .site-button,
  .site .site-text-link {
    min-height: 44px;
  }
  .icon-button,
  .mobile-menu,
  .send-button,
  .card-arrow,
  .site .site-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  .checkbox {
    align-items: flex-start;
    gap: 10px;
    padding-block: 8px;
  }
  .checkbox input {
    width: 20px;
    height: 20px;
    min-height: 20px !important;
    flex: none;
    margin-top: 2px;
  }
  .nav-item {
    height: auto;
    min-height: 44px;
    padding-block: 10px;
  }
  .workspace-switch strong,
  .sidebar .workspace-switch strong,
  .sidebar .nav-item,
  .chat-list-item strong,
  .conversation-heading strong,
  .profile-company strong,
  .template-card strong,
  .task-card h3,
  .stat-card > div,
  .dashboard-welcome strong {
    font-size: 16px !important;
    line-height: 1.5;
  }
  .talent-card h3,
  .requirement-card h3 {
    font-size: 20px;
    line-height: 1.35;
  }
  .card-price strong {
    font-size: 18px;
  }
  .button,
  .site-button {
    white-space: normal;
    text-align: center;
  }
  .table-wrap table {
    min-width: 640px;
  }
  .table-wrap :is(th, td) {
    font-size: 14px;
    line-height: 1.5;
    padding: 12px;
  }
  .row-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .row-actions .text-link {
    min-height: 44px;
  }
  .site-footer-grid > *,
  .talent-card,
  .requirement-card,
  .list-row > div,
  .task-card > div,
  .conversation-heading > div {
    overflow-wrap: anywhere;
  }
  .site .site-contact-method a {
    overflow-wrap: anywhere;
  }
  .toast {
    max-width: calc(100vw - 24px);
  }
  .topbar {
    min-height: 60px;
    height: auto;
    padding-block: 8px;
  }
  .top-actions {
    flex-shrink: 0;
  }
  .breadcrumb {
    min-width: 0;
  }
  .site .site-header-inner {
    min-height: 76px;
    height: auto;
    padding-block: 10px;
    gap: 12px;
  }
  .site .site-nav {
    top: 100%;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .site .site-nav > a {
    font-size: 16px;
    min-height: 44px;
  }
  .site .site-hero-actions {
    flex-wrap: wrap;
  }
  .site .site-preview-caption,
  .site .site-network-top,
  .site .site-preview-card small,
  .site .site-preview-tags span,
  .site .site-preview-details,
  .site .site-preview-match strong,
  .site .site-preview-match small,
  .site .site-floating-shield strong,
  .site .site-floating-shield small,
  .site .site-preview-search,
  .site .site-preview-available {
    font-size: 14px;
    line-height: 1.5;
  }
  .site .site-preview-card strong,
  .site .site-principles strong {
    font-size: 16px;
  }
  .site .site-network {
    transform: none;
  }
  .site .site-floating-shield {
    position: static;
    width: 100%;
    margin-top: 14px;
  }
  .site .site-preview-match {
    gap: 8px;
    padding: 12px;
  }
  .site .site-network-top {
    letter-spacing: 0.3px;
  }
}

@media (max-width: 760px) {
  .form-grid,
  .site .form-grid,
  .resume-workspace,
  .review-details,
  .talent-grid,
  .requirements-grid,
  .requirement-grid,
  .engagement-grid,
  .template-grid,
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid {
    gap: 0;
  }
  .expanded-filters {
    flex-wrap: wrap;
  }
  .expanded-filters > .field {
    flex-basis: 100%;
    min-width: 0;
  }
  .search-toolbar {
    flex-wrap: wrap;
    height: auto;
    gap: 10px;
  }
  .search-toolbar > label,
  .search-toolbar > .search-input {
    min-width: 0;
    flex-basis: 100%;
  }
  .section-title,
  .page-heading,
  .discovery-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .page-heading h1,
  .discovery-heading h1 {
    font-size: 28px;
    line-height: 1.2;
  }
  .panel-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-card {
    min-width: 0;
  }
  .stat-card > strong {
    font-size: 30px;
  }
  .talent-card {
    padding: 20px 18px 0;
  }
  .talent-summary {
    min-height: 0;
  }
  .skill-tags {
    gap: 7px;
  }
  .skill-tags > span {
    padding: 5px 8px;
  }
  .availability,
  .talent-meta,
  .trust-strip {
    flex-wrap: wrap;
    gap: 8px;
  }
  .supplier {
    flex-wrap: wrap;
  }
  .talent-card-footer {
    gap: 10px;
  }
  .card-price {
    flex-wrap: wrap;
  }
  .modal {
    width: 100%;
    max-width: 100%;
    padding: 22px 16px;
    max-height: calc(100dvh - 24px);
  }
  .modal > header {
    align-items: flex-start;
    gap: 12px;
  }
  .modal > header h2 {
    font-size: 23px;
    line-height: 1.3;
  }
  .modal > header .icon-button {
    flex: none;
  }
  .modal-actions,
  .download-row,
  .inline-invite {
    flex-wrap: wrap;
    gap: 10px;
  }
  .inline-invite input {
    max-width: none;
    width: 100%;
  }
  .wizard-upload {
    padding: 16px;
  }
  .wizard-actions {
    flex-wrap: wrap;
  }
  .wizard-actions > div {
    display: flex;
    flex: 1 1 100%;
    justify-content: flex-end;
    gap: 10px;
  }
  .wizard-actions > .button {
    flex: 1;
  }
  .resource-progress {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .resource-progress ol {
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    gap: 4px;
  }
  .resource-progress button {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 6px;
  }
  .resource-progress button span {
    width: 28px;
    height: 28px;
  }
  .wizard-job {
    flex-direction: column;
    align-items: stretch;
  }
  .wizard-review {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .wizard-review dd {
    margin-bottom: 12px;
  }
  .site .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }
  .site .site-footer-brand {
    grid-column: 1 / -1;
  }
  .site .site-footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
  .site .site-network {
    width: 100%;
    padding: 16px;
  }
  .site .site-preview-card {
    padding: 16px;
  }
  .site .site-preview-tags,
  .site .site-preview-details {
    flex-wrap: wrap;
    gap: 8px;
  }
  .site .site-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site .site-page-hero h1 {
    font-size: clamp(32px, 8vw, 42px);
  }
  .site .site-contact-form,
  .site .site-auth-form {
    padding: 22px 18px;
  }
}

@media (max-width: 700px) {
  .sidebar {
    width: min(288px, calc(100vw - 32px));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  .sidebar > nav,
  .sidebar-bottom,
  .sidebar-footer {
    flex-shrink: 0;
  }
  .workspace[data-page='messages'] {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .workspace[data-page='messages'] main {
    display: block;
  }
  .messaging {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .chat-list {
    width: 100%;
    max-height: min(280px, 35dvh);
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .chat-panel {
    min-height: 480px;
  }
  .conversation-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .conversation-heading > div {
    flex: 1 1 140px;
  }
  .conversation-heading > .button {
    flex: 1 1 100%;
  }
  .chat-context,
  .chat-assignment {
    flex-wrap: wrap;
    gap: 8px;
  }
  .chat-context span {
    margin-left: 0;
  }
  .chat-assignment select {
    max-width: 100%;
    width: 100%;
  }
  .message-scroll {
    min-height: 220px;
    max-height: 55dvh;
    padding: 14px;
  }
  .chat-message {
    max-width: 94%;
  }
  .chat-composer {
    position: sticky;
    bottom: 0;
    background: white;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }
  .chat-composer input {
    width: 0;
    min-width: 0;
  }
  .main-footer {
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site .site-wrap {
    width: calc(100% - 32px);
  }
  .site .site-header-actions {
    display: none;
  }
  .site .site-menu-toggle {
    margin-left: auto;
  }
  .site .site-hero-actions {
    align-items: stretch;
  }
  .site .site-hero-actions .site-button {
    flex: 1 1 100%;
  }
  .site .site-hero h1 {
    font-size: clamp(34px, 9vw, 44px);
  }
  .site .site-preview-match {
    align-items: flex-start;
  }
  .site .site-footer-grid {
    grid-template-columns: 1fr;
  }
  .site .site-footer-grid > div {
    grid-column: auto;
  }
  .site .site-cta {
    padding: 24px 20px;
  }
  .task-card > div {
    min-width: 0;
    flex: 1 1 180px;
  }
  .task-card > .button {
    margin-left: 0;
  }
}
