:root {
    --bg: #f8f9fb;
    --surface: #ffffff;
    --surface-soft: #f3f4f6;
    --surface-strong: #e7e8ea;
    --text: #191c1e;
    --muted: #44474d;
    --accent: #855300;
    --accent-dark: #653e00;
    --primary: #031632;
    --primary-soft: #1a2b48;
    --primary-muted: #8293b5;
    --border: #c5c6ce;
    --shadow: 0 20px 50px rgba(3, 22, 50, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(133, 83, 0, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 88px;
}

.header-cluster {
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand-icon,
.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    vertical-align: middle;
}

.brand-icon {
    color: var(--accent);
    font-size: 2.45rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.site-search {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.site-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
    transition: 0.2s ease;
}

.site-search input::placeholder {
    color: #75777e;
}

.site-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 22, 50, 0.1);
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    color: #75777e;
    transform: translateY(-50%);
}

.site-search:focus-within .search-icon {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-button,
.profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.header-button {
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.header-button:hover {
    background: var(--accent-dark);
}

.home-auth-button {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(3, 22, 50, 0.08);
}

.home-auth-button:hover {
    background: var(--surface-soft);
    border-color: var(--primary);
}

.header-user-menu {
    position: relative;
}

.header-user-menu summary {
    list-style: none;
}

.header-user-menu summary::-webkit-details-marker {
    display: none;
}

.header-user-trigger {
    min-height: 46px;
    padding: 6px 8px 6px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 24px rgba(3, 22, 50, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.header-user-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: right;
}

.header-user-copy strong {
    font-size: 0.94rem;
    color: var(--primary);
}

.header-user-copy small {
    color: var(--muted);
    font-size: 0.78rem;
    direction: ltr;
}

.header-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #35507f);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
}

.header-user-dropdown a {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--primary);
}

.header-user-dropdown a:hover {
    background: var(--surface-soft);
}

.profile-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: #fff;
}

.profile-button:hover {
    opacity: 0.9;
}

.profile-button-secondary {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: 0 12px 24px rgba(20, 184, 166, 0.22);
}

.profile-button-secondary:hover {
    box-shadow: 0 16px 30px rgba(15, 118, 110, 0.28);
}

.employer-dashboard-page {
    padding: 32px 0 48px;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

.employer-dashboard-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.employer-dashboard-sidebar,
.employer-stat-card,
.employer-project-card,
.employer-message-card,
.employer-plan-card,
.employer-tip-card,
.employer-bookmark-card {
    border: 1px solid rgba(117, 119, 126, 0.18);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(3, 22, 50, 0.06);
}

.employer-dashboard-sidebar {
    position: sticky;
    top: 108px;
    border-radius: 28px;
    padding: 26px 18px;
}

.employer-dashboard-menu-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 24px);
    min-height: 52px;
    margin: 0 auto 18px;
    padding: 0 16px;
    border: 1px solid rgba(3, 22, 50, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fd 100%);
    box-shadow: 0 10px 24px rgba(3, 22, 50, 0.08);
    text-align: center;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.employer-dashboard-menu-title::after {
    content: "پنل کارفرما";
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.employer-dashboard-menu-title:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(3, 22, 50, 0.12);
}

.employer-dashboard-menu-title.is-engineer::after {
    content: "پنل مهندس";
}

.employer-dashboard-nav {
    display: grid;
    gap: 8px;
}

.employer-dashboard-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    color: var(--muted);
    font-weight: 700;
}

.employer-dashboard-link em {
    margin-right: auto;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-style: normal;
    font-size: 11px;
}

.employer-dashboard-link:hover,
.employer-dashboard-link.is-active {
    color: var(--primary);
    background: #eef3f9;
}

.employer-dashboard-link.is-active {
    box-shadow: inset -4px 0 0 #a16207;
}

.employer-dashboard-divider {
    height: 1px;
    margin: 8px 0;
    background: rgba(117, 119, 126, 0.18);
}

.employer-dashboard-main {
    display: grid;
    gap: 24px;
}

.engineer-dashboard-page .employer-dashboard-actions {
    flex-wrap: nowrap;
}

.engineer-dashboard-page .employer-dashboard-ghost,
.engineer-dashboard-page .employer-dashboard-primary {
    white-space: nowrap;
}

.employer-dashboard-head,
.employer-section-head,
.employer-stat-head,
.employer-project-top,
.employer-project-foot,
.employer-message-top,
.employer-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.employer-dashboard-head {
    padding: 12px 2px 4px;
}

.employer-dashboard-head h1,
.employer-section-head h2 {
    margin: 0;
    color: var(--primary);
}

.employer-dashboard-head p,
.employer-section-head a,
.employer-stat-card p,
.employer-message-item p,
.employer-plan-card p,
.employer-tip-card p {
    color: var(--muted);
}

.employer-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.employer-dashboard-ghost,
.employer-dashboard-primary,
.employer-detail-button,
.employer-side-link,
.employer-plan-actions a,
.employer-plan-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.employer-dashboard-ghost {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
}

.employer-dashboard-primary,
.employer-detail-button,
.employer-plan-actions a {
    border: none;
    background: var(--primary);
    color: #fff;
}

.employer-dashboard-ghost:hover,
.employer-side-link:hover,
.employer-plan-actions button:hover {
    background: #eef3f9;
}

.employer-dashboard-primary:hover,
.employer-detail-button:hover,
.employer-plan-actions a:hover {
    background: #0c2248;
}

.employer-stats-grid,
.employer-dashboard-grid,
.employer-bookmark-grid {
    display: grid;
    gap: 20px;
}

.employer-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employer-stat-card {
    border-radius: 26px;
    padding: 24px;
}

.employer-stat-card strong {
    display: block;
    margin-top: 18px;
    color: var(--primary);
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
}

.employer-stat-card p {
    margin: 14px 0 0;
    font-size: 14px;
}

.employer-stat-head span:last-child {
    font-size: 13px;
    font-weight: 700;
}

.employer-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.employer-stat-icon.is-primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.employer-stat-icon.is-secondary {
    background: #fef3c7;
    color: #a16207;
}

.employer-stat-icon.is-tertiary {
    background: #dcfce7;
    color: #15803d;
}

.employer-dashboard-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
    align-items: start;
}

.employer-dashboard-content,
.employer-dashboard-side,
.employer-project-list,
.employer-plan-actions {
    display: grid;
    gap: 20px;
}

.employer-section {
    display: grid;
    gap: 18px;
}

.employer-section-head a,
.employer-side-link {
    font-size: 13px;
    font-weight: 700;
}

.employer-project-card,
.employer-message-card,
.employer-plan-card,
.employer-tip-card {
    border-radius: 26px;
    padding: 22px;
}

.employer-project-card h3,
.employer-side-head h3,
.employer-tip-card h3 {
    margin: 0;
    color: var(--primary);
}

.employer-project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.employer-project-chip,
.employer-project-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.employer-project-chip {
    background: #dbeafe;
    color: #1d4ed8;
}

.employer-project-status.is-live {
    background: #dcfce7;
    color: #166534;
}

.employer-project-status.is-bidding {
    background: #fff7ed;
    color: #c2410c;
}

.employer-progress-block {
    margin: 20px 0 18px;
}

.employer-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.employer-progress-row strong {
    color: var(--primary);
}

.employer-progress-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8edf5;
}

.employer-progress-bar div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.employer-bids-summary {
    margin: 20px 0 18px;
    padding: 18px;
    border-radius: 18px;
    background: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.employer-bids-summary span,
.employer-timer-note,
.employer-message-top span {
    color: var(--muted);
    font-size: 13px;
}

.employer-bids-summary strong {
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
}

.employer-project-assignees {
    display: flex;
    align-items: center;
}

.employer-project-assignees img,
.employer-project-assignees span,
.employer-message-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.employer-project-assignees img,
.employer-project-assignees span {
    margin-left: -8px;
    border: 2px solid #fff;
}

.employer-project-assignees span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef3f9;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.employer-project-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.employer-chat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f6fb;
    color: var(--primary);
}

.employer-chat-icon:hover {
    background: #e2e8f4;
}

.employer-detail-button {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
}

.employer-timer-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(117, 119, 126, 0.18);
}

.employer-bookmark-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employer-bookmark-card {
    border-radius: 22px;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.employer-bookmark-card strong {
    color: var(--primary);
}

.employer-bookmark-card p,
.employer-bookmark-card span {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.employer-message-list {
    display: grid;
}

.employer-message-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid rgba(117, 119, 126, 0.15);
}

.employer-message-item:first-child {
    border-top: none;
    padding-top: 4px;
}

.employer-message-item strong {
    color: var(--primary);
    font-size: 14px;
}

.employer-message-item p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.8;
}

.employer-side-link {
    width: 100%;
    margin-top: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary);
}

.employer-plan-card {
    background: linear-gradient(135deg, #031632, #15325f);
    color: #fff;
}

.employer-plan-card p,
.employer-plan-card .employer-side-head h3 {
    color: #fff;
}

.employer-side-head.is-light h3 {
    color: #fff;
}

.employer-plan-actions a,
.employer-plan-actions button {
    width: 100%;
}

.employer-plan-actions button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #fff;
}

.employer-tip-card {
    grid-template-columns: 44px minmax(0, 1fr);
    display: grid;
    gap: 14px;
    background: #f5f7fb;
    border-style: dashed;
}

.employer-tip-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    color: #c2410c;
}

.button,
.solid-button,
.outline-button,
.cta-primary,
.cta-secondary,
.hero-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s ease;
}

.button,
.solid-button,
.hero-search-button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.button:hover,
.solid-button:hover,
.hero-search-button:hover {
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.site-footer {
    margin-top: 48px;
    background: var(--primary);
    color: #ffffff;
}

.project-wizard-page {
    padding: 48px 0 72px;
}

.wizard-shell {
    width: min(900px, 100%);
}

.wizard-header {
    margin-bottom: 32px;
    text-align: center;
}

.wizard-header h1 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.wizard-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.wizard-stepper {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 32px;
}

.wizard-stepper-line,
.wizard-stepper-progress {
    position: absolute;
    top: 20px;
    right: 0;
    height: 2px;
    border-radius: 999px;
}

.wizard-stepper-line {
    width: 100%;
    background: var(--border);
}

.wizard-stepper-progress {
    background: var(--primary);
    transition: width 0.2s ease;
}

.wizard-progress-1 { width: 0; }
.wizard-progress-2 { width: 33.3%; }
.wizard-progress-3 { width: 66.6%; }
.wizard-progress-4 { width: 100%; }

.wizard-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 25%;
    text-align: center;
}

.wizard-step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
}

.wizard-step span {
    color: var(--muted);
    font-size: 0.9rem;
}

.wizard-step.is-current .wizard-step-circle {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow);
}

.wizard-step.is-current span {
    color: var(--accent-dark);
    font-weight: 700;
}

.wizard-step.is-done .wizard-step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.wizard-step.is-done span {
    color: var(--primary);
}

.wizard-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(3, 22, 50, 0.05);
}

.wizard-form {
    display: grid;
    gap: 24px;
}

.wizard-section {
    display: grid;
    gap: 10px;
}

.wizard-section label,
.section-label {
    color: var(--primary);
    font-weight: 700;
}

.wizard-section label span,
.section-label span {
    color: #ba1a1a;
}

.wizard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.wizard-card input[type="text"],
.wizard-card input[type="number"],
.wizard-card input[type="date"],
.wizard-card select,
.wizard-card textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.wizard-card textarea {
    min-height: 140px;
    padding-top: 14px;
    resize: vertical;
}

.wizard-card input:focus,
.wizard-card select:focus,
.wizard-card textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(133, 83, 0, 0.1);
}

.wizard-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wizard-checkbox-grid label,
.wizard-radio-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 400;
}

.wizard-checkbox-grid input,
.wizard-radio-row input,
.wizard-toggle-card input,
.engineers-checkbox-list input {
    accent-color: var(--accent);
}

.wizard-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.wizard-map-placeholder {
    min-height: 240px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(215, 226, 255, 0.35), rgba(254, 166, 25, 0.08)),
        #f8f9fb;
    display: grid;
    place-items: center;
    text-align: center;
}

.wizard-map-placeholder span {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 2rem;
}

.wizard-map-placeholder p {
    margin: 0;
    color: var(--muted);
}

.wizard-input-with-meta {
    position: relative;
}

.wizard-input-with-meta input {
    padding-left: 76px;
}

.wizard-input-with-meta span {
    position: absolute;
    left: 14px;
    top: 50%;
    color: var(--muted);
    transform: translateY(-50%);
}

.wizard-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
}

.wizard-toggle-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
}

.wizard-toggle-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.wizard-actions-right {
    display: flex;
    gap: 12px;
}

.wizard-link-button,
.wizard-secondary-button,
.wizard-primary-button,
.engineers-apply-button,
.apply-filters-button {
    min-height: 48px;
    border-radius: 12px;
    font: inherit;
    cursor: pointer;
    transition: 0.2s ease;
}

.wizard-link-button,
.wizard-secondary-button {
    padding: 0 20px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
}

.wizard-primary-button {
    padding: 0 28px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.wizard-link-button:hover,
.wizard-secondary-button:hover {
    background: var(--surface-soft);
}

.wizard-primary-button:hover {
    background: var(--accent-dark);
}

.field-error {
    color: #ba1a1a;
    font-size: 0.85rem;
}

.wizard-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(26, 122, 42, 0.18);
    border-radius: 14px;
    background: #eefbf1;
    color: #1a7a2a;
}

.wizard-success p {
    margin: 0;
}

.wizard-success-link {
    color: #1a7a2a;
    font-weight: 700;
    text-decoration: underline;
}

.wizard-error-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(186, 26, 26, 0.18);
    border-radius: 14px;
    background: #fff3f1;
    color: #ba1a1a;
}

.wizard-error-banner p {
    margin: 0;
}

.error-page {
    min-height: calc(100vh - 220px);
    display: grid;
    align-items: center;
    padding: 80px 0;
}

.error-page h1 {
    margin: 16px 0;
    color: var(--primary);
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.error-page p {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.9;
}

.status-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(133, 83, 0, 0.12);
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-page {
    padding: 48px 0 72px;
}

.auth-shell {
    display: flex;
    justify-content: center;
}

.auth-card,
.auth-side-card {
    border: 1px solid rgba(117, 119, 126, 0.18);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(3, 22, 50, 0.06);
}

.auth-card {
    width: min(100%, 560px);
    padding: 32px;
    text-align: center;
}

.auth-card h1,
.auth-side-card h2 {
    margin: 16px 0 10px;
    color: var(--primary);
}

.auth-lead,
.auth-side-card p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.9;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    color: var(--text);
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 22, 50, 0.08);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .material-symbols-outlined {
    position: absolute;
    right: 12px;
    top: 50%;
    color: var(--muted);
    font-size: 18px;
    transform: translateY(-50%);
}

.auth-input-wrap input {
    padding: 0 40px 0 12px;
}

.auth-message {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 18px;
}

.auth-message p,
.auth-message strong {
    margin: 0;
}

.auth-message-success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.14);
}

.auth-message-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.12);
}

.home-hero,
.journey-section,
.engineers-section,
.projects-section,
.cta-section {
    padding: 88px 0;
}

.home-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.home-hero {
    position: relative;
    min-height: 70vh;
    padding: 20px;
    background: #f8f9fb;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.home-hero-grid {
    row-gap: 24px;
}

.home-hero-copy,
.home-hero-visual {
    grid-column: span 6;
    min-width: 0;
}

.home-hero-copy {
    display: grid;
    gap: 28px;
    align-content: center;
}

.home-hero-copy h1,
.section-intro h2,
.cta-panel h2 {
    margin: 0;
    color: var(--primary);
    line-height: 1.2;
}

.home-hero-copy h1 {
    max-width: 620px;
    font-size: clamp(2.3rem, 3.3vw, 3.4rem);
    letter-spacing: -0.02em;
    white-space: normal;
    line-height: 1.16;
}

.home-hero-copy h1 span {
    display: block;
}

.home-hero-copy p,
.section-intro p,
.achievement-text,
.step-list p,
.engineer-location,
.project-budget-label,
.project-meta-row span,
.cta-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.home-hero-copy > p {
    max-width: 560px;
    font-size: 1.1rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.home-hero-primary,
.home-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    min-width: 196px;
    padding: 0 32px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.home-hero-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: none;
}

.home-hero-secondary {
    border: 1px solid rgba(3, 22, 50, 0.22);
    background: transparent;
    color: var(--primary);
}

.home-hero-primary:hover,
.home-hero-secondary:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.hero-search-panel {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero-search-panel-wide {
    grid-column: 1 / -1;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(3, 22, 50, 0.08);
}

.hero-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.hero-search-field-bordered {
    border-left: 1px solid var(--border);
}

.hero-search-field .material-symbols-outlined {
    color: #75777e;
}

.hero-search-field input {
    width: 100%;
    min-height: 52px;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.hero-search-field input:focus {
    outline: none;
}

.hero-search-button {
    min-width: 128px;
    border: none;
    cursor: pointer;
}

.hero-search-button {
    min-height: 56px;
    padding: 0 24px;
    border-radius: 14px;
    background: #fea619;
    color: #2a1700;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(254, 166, 25, 0.28);
}

.hero-engineers-proof {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 10px;
}

.hero-avatars {
    display: flex;
}

.hero-avatar {
    width: 44px;
    height: 44px;
    margin-left: -10px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--surface-strong);
}

.hero-avatar:first-child {
    margin-left: 0;
}

.hero-avatar img,
.hero-visual-card img,
.engineer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-engineers-proof p {
    margin: 0;
    font-weight: 600;
    color: var(--muted);
}

.home-hero-visual {
    position: relative;
    min-height: 440px;
}

.hero-visual-card {
    position: relative;
    inset: auto;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 28px 54px rgba(3, 22, 50, 0.14);
}

.hero-visual-card-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(3, 22, 50, 0.18), rgba(3, 22, 50, 0) 55%);
}

.achievement-card {
    position: absolute;
    right: -24px;
    bottom: -24px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(197, 198, 206, 0.55);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.achievement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fbbf24;
    color: #684000;
}

.achievement-title {
    margin: 0 0 4px;
    color: var(--primary);
    font-weight: 700;
}

.stats-band {
    padding: 48px 0;
    background: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 2.5rem;
}

.stat-item p {
    margin: 0;
    color: var(--primary-muted);
}

.section-intro {
    margin-bottom: 48px;
}

.section-intro-centered {
    text-align: center;
}

.section-intro h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
}

.section-intro p {
    margin-top: 12px;
    font-size: 1.05rem;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.journey-card {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.journey-card:hover,
.engineer-card:hover,
.project-row:hover {
    box-shadow: var(--shadow);
}

.journey-card-dark {
    position: relative;
    overflow: hidden;
    border-color: var(--primary-soft);
    background: var(--primary);
}

.journey-card-dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 128px;
    height: 128px;
    background: rgba(243, 156, 18, 0.1);
    border-bottom-right-radius: 999px;
}

.journey-title-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.journey-title-row h3 {
    margin: 0;
    font-size: 1.4rem;
}

.journey-card .journey-title-row h3,
.journey-card .step-list strong {
    color: var(--primary);
}

.journey-card-dark .journey-title-row h3,
.journey-card-dark .step-list strong {
    color: #fff;
}

.journey-title-icon {
    font-size: 2.4rem;
    color: #f39c12;
}

.step-list {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 28px;
}

.step-list li {
    display: flex;
    gap: 16px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffddb8;
    color: #2a1700;
    font-weight: 700;
}

.step-number-light {
    background: #e1e2e4;
    color: var(--primary);
}

.step-list strong {
    display: block;
    margin-bottom: 6px;
}

.step-list-dark p {
    color: var(--primary-muted);
}

.section-head-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 48px;
}

.section-head-row .section-intro {
    margin-bottom: 0;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f39c12;
    font-weight: 700;
}

.filters-panel > .section-link,
.engineers-filter-panel > .section-link {
    justify-content: center;
    width: 100%;
}

.engineers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.engineer-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    transition: 0.2s ease;
}

.engineer-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.engineer-card:hover .engineer-card-image img {
    transform: scale(1.05);
}

.engineer-card-image img {
    transition: transform 0.5s ease;
}

.rating-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.filled-star {
    color: #f39c12;
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
    font-size: 16px;
}

.engineer-card-body {
    padding: 24px;
}

.engineer-meta {
    margin: 0 0 6px;
    color: #f39c12;
    font-size: 0.8rem;
    font-weight: 700;
}

.engineer-card-body h3,
.project-row h3 {
    margin: 0;
    color: var(--primary);
}

.engineer-location {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 0.92rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
}

.tag-list span {
    padding: 6px 10px;
    border-radius: 8px;
    background: #edeef0;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 500;
}

.outline-button {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
}

.outline-button:hover {
    background: var(--primary);
    color: #fff;
}

.projects-section {
    background: var(--surface-soft);
}

.projects-search-page {
    padding: 32px 0 64px;
}

.project-detail-page {
    padding: 48px 0 72px;
}

.project-detail-hero {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.project-detail-copy,
.project-detail-summary,
.detail-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(3, 22, 50, 0.05);
}

.project-detail-topline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.project-detail-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #d7e2ff;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.project-detail-chip-urgent {
    background: #ffdad6;
    color: #93000a;
}

.project-detail-copy h1,
.project-detail-summary h2,
.detail-card h3 {
    margin: 0 0 14px;
    color: var(--primary);
}

.project-detail-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.project-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.detail-outline-link {
    width: auto;
    padding: 0 20px;
}

.project-detail-summary h2 {
    font-size: 1.2rem;
}

.detail-summary-list,
.detail-meta-grid {
    display: grid;
    gap: 14px;
}

.detail-summary-list div,
.detail-meta-grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.detail-summary-list div:last-child,
.detail-meta-grid div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-summary-list span,
.detail-meta-grid span {
    color: var(--muted);
    font-size: 0.9rem;
}

.detail-summary-list strong,
.detail-meta-grid strong {
    color: var(--primary);
    text-align: left;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.detail-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tag-list span {
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.detail-address-box {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    background: var(--surface-soft);
}

.detail-address-box .material-symbols-outlined {
    color: var(--accent);
}

.detail-address-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.engineers-search-page {
    padding: 32px 0 64px;
}

.engineers-search-layout {
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.engineers-sidebar {
    display: grid;
    gap: 24px;
}

.engineers-filter-panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(3, 22, 50, 0.05);
}

.engineers-filter-title,
.engineers-search-box,
.engineers-rating-row,
.engineer-info-list p,
.engineers-results-bar,
.engineer-profile-head,
.engineer-score {
    display: flex;
    align-items: center;
}

.engineers-filter-title {
    gap: 8px;
    margin: 0 0 24px;
    color: var(--primary);
    font-size: 1.15rem;
}

.engineers-filter-group + .engineers-filter-group {
    margin-top: 24px;
}

.engineers-filter-label {
    display: block;
    margin-bottom: 14px;
    color: var(--text);
    font-weight: 700;
}

.engineers-checkbox-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.engineers-checkbox-list label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: 0.2s ease;
}

.engineers-checkbox-list label:hover,
.engineers-checkbox-list label:has(input:checked) {
    border-color: var(--primary);
    background: #d7e2ff;
    color: var(--primary);
    font-weight: 700;
}

.engineers-checkbox-list input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.engineers-checkbox-list input,
.engineers-filter-panel select,
.engineers-rating-row input {
    accent-color: var(--primary);
}

.grade-chip-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.grade-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.82rem;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: 0.2s ease;
}

.grade-chip:hover,
.grade-chip:has(input:checked),
.grade-chip.is-active {
    border-color: var(--primary);
    background: #d7e2ff;
    color: var(--primary);
    font-weight: 700;
}

.engineers-filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}

.engineers-filter-panel select:focus {
    outline: none;
    border-color: var(--primary);
}

.engineers-rating-row {
    gap: 10px;
}

.engineers-rating-row span {
    color: var(--muted);
    font-size: 0.8rem;
}

.engineers-rating-row input {
    flex: 1;
}

.engineers-apply-button {
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    border: none;
    border-radius: 12px;
    background: #fea619;
    color: #684000;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.engineers-apply-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.upgrade-card {
    position: relative;
    overflow: hidden;
    min-height: 192px;
    padding: 24px;
    border-radius: 18px;
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: var(--shadow);
}

.upgrade-eyebrow {
    margin: 0 0 6px;
    color: #ffddb8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.upgrade-card h3 {
    margin: 0 0 8px;
}

.upgrade-card p:last-child {
    margin: 0;
    color: var(--primary-muted);
    line-height: 1.8;
}

.engineers-results {
    min-width: 0;
}

.engineers-search-box-sidebar {
    width: 100%;
    margin-right: 0;
}

.engineers-search-top {
    margin-bottom: 24px;
}

.engineers-search-box {
    position: relative;
    width: min(100%, 440px);
    margin-right: auto;
}

.engineers-per-page-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(3, 22, 50, 0.05);
}

.engineers-per-page-box label {
    color: var(--muted);
    font-size: 0.9rem;
}

.engineers-per-page-box select {
    min-width: 72px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
    padding: 8px 12px;
}

.engineers-search-box .material-symbols-outlined {
    position: absolute;
    right: 16px;
    color: #75777e;
}

.engineers-search-box input {
    width: 100%;
    min-height: 58px;
    padding: 0 52px 0 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(3, 22, 50, 0.05);
    font: inherit;
    transition: 0.2s ease;
}

.engineers-search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 22, 50, 0.08);
}

.engineers-results-bar {
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.engineers-results-bar h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

.engineers-sort-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 12px;
    background: var(--surface-soft);
    flex-wrap: wrap;
}

.engineers-sort-box span {
    padding: 0 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

.engineers-sort-box button {
    min-height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    transition: 0.2s ease;
}

.engineers-sort-box button:hover,
.engineers-sort-box button.is-active {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(3, 22, 50, 0.08);
}

.engineers-bento-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.engineer-profile-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    transition: 0.3s ease;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
}

.engineer-profile-card:hover {
    box-shadow: 0 16px 40px rgba(3, 22, 50, 0.12);
}

.engineer-profile-image {
    position: relative;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
}

.engineer-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.engineer-profile-card:hover .engineer-profile-image img {
    transform: scale(1.05);
}

.engineer-grade-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fea619;
    color: #684000;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.engineer-profile-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.engineer-profile-head {
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 14px;
}

.engineer-profile-head h4 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 1.1rem;
}

.engineer-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.engineer-skill-tags span {
    padding: 5px 10px;
    border-radius: 8px;
    background: #d7e2ff;
    color: var(--primary);
    font-size: 0.75rem;
}

.engineer-score {
    gap: 4px;
    color: var(--accent);
    font-weight: 700;
}

.engineer-info-list {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.engineer-info-list p {
    gap: 8px;
    margin: 0;
    color: var(--muted);
}

.engineer-profile-button {
    margin-top: auto;
    margin-right: auto;
    width: fit-content;
    min-width: 180px;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    transition: 0.2s ease;
}

.engineer-profile-button:hover {
    background: var(--primary);
    color: #fff;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.projects-search-layout {
    display: flex;
    gap: 24px;
    align-items: start;
}

.filters-sidebar {
    width: 288px;
    flex-shrink: 0;
}

.filters-panel {
    position: sticky;
    top: 110px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.filters-header,
.filter-input-wrap,
.search-project-topline,
.search-project-place,
.search-deadline,
.search-project-footer,
.results-head,
.pagination-row,
.checkbox-list label {
    display: flex;
    align-items: center;
}

.filters-header {
    gap: 8px;
    margin-bottom: 24px;
    color: var(--primary);
}

.filters-header h2,
.results-head h1,
.search-project-copy h3 {
    margin: 0;
}

.filter-block {
    margin-bottom: 24px;
}

.filter-block-separated {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.filter-label {
    display: block;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.checkbox-list {
    display: grid;
    gap: 10px;
}

.checkbox-list label {
    gap: 10px;
    color: var(--text);
    font-size: 0.92rem;
    cursor: pointer;
}

.checkbox-list input,
.filter-block select,
.filter-input-wrap input,
.budget-range {
    accent-color: var(--primary);
}

.filter-block select,
.filter-input-wrap input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}

.filter-block select {
    padding: 0 12px;
}

.filter-input-wrap {
    position: relative;
}

.filter-input-wrap .material-symbols-outlined {
    position: absolute;
    right: 12px;
    color: var(--muted);
    font-size: 18px;
}

.filter-input-wrap input {
    padding: 0 40px 0 12px;
}

.filter-block select:focus,
.filter-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3, 22, 50, 0.08);
}

.budget-dual-range {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(182, 199, 235, 0.85);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.budget-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.budget-field {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid rgba(182, 199, 235, 0.95);
    border-radius: 14px;
    background: #f8fbff;
    text-align: right;
    font: inherit;
    color: var(--primary);
    cursor: pointer;
    transition: 0.2s ease;
}

.budget-field:hover,
.budget-field.is-active {
    border-color: #2b5f96;
    background: linear-gradient(180deg, #eef5ff 0%, #e3efff 100%);
    box-shadow: 0 0 0 3px rgba(43, 95, 150, 0.12);
}

.budget-field-label {
    color: #58708f;
    font-size: 0.82rem;
    font-weight: 700;
}

.budget-field strong {
    font-size: 0.95rem;
    color: #12305c;
}

.budget-slider-wrap {
    position: relative;
    height: 28px;
    direction: rtl;
}

.budget-slider-track,
.budget-slider-active {
    position: absolute;
    top: 50%;
    height: 6px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.budget-slider-track {
    right: 0;
    left: 0;
    background: #d7e3f3;
}

.budget-slider-active {
    background: linear-gradient(90deg, #1a4678 0%, #3d76b5 100%);
    box-shadow: 0 2px 8px rgba(29, 70, 120, 0.2);
}

.budget-range {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    pointer-events: none;
    direction: rtl;
    -webkit-appearance: none;
    appearance: none;
}

.budget-range::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.budget-range::-moz-range-track {
    height: 6px;
    background: transparent;
}

.budget-range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(180deg, #2e67a6 0%, #12305c 100%);
    box-shadow: 0 4px 12px rgba(18, 48, 92, 0.28);
    pointer-events: auto;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px;
}

.budget-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(180deg, #2e67a6 0%, #12305c 100%);
    box-shadow: 0 4px 12px rgba(18, 48, 92, 0.28);
    pointer-events: auto;
    cursor: pointer;
}

.budget-range:focus {
    outline: none;
}

.budget-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(61, 118, 181, 0.18), 0 4px 12px rgba(18, 48, 92, 0.28);
}

.budget-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(61, 118, 181, 0.18), 0 4px 12px rgba(18, 48, 92, 0.28);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: #6a809b;
    font-size: 0.78rem;
}

.apply-filters-button,
.search-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.apply-filters-button {
    width: 100%;
}

.apply-filters-button:hover,
.search-action-button:hover {
    background: var(--primary-soft);
}

.projects-results {
    flex: 1;
    min-width: 0;
}

.projects-search-top {
    margin-bottom: 24px;
}

.results-head {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.results-head h1 {
    color: var(--primary);
    font-size: 1.8rem;
}

.results-head span {
    color: var(--muted);
    font-size: 0.92rem;
}

.results-list {
    display: grid;
    gap: 16px;
}

.search-project-card {
    padding: 24px;
    border: 1px solid rgba(182, 199, 235, 0.9);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 10px 28px rgba(3, 22, 50, 0.06);
    transition: 0.2s ease;
}

.search-project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 16px 36px rgba(3, 22, 50, 0.12);
    transform: translateY(-2px);
}

.search-project-main {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.search-project-copy {
    flex: 1;
}

.search-project-topline {
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.project-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.project-chip-gold {
    background: #fea619;
    color: #684000;
}

.project-chip-blue {
    background: #d3e4fe;
    color: #0b1c30;
}

.project-chip-urgent {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid rgba(225, 29, 72, 0.18);
}

.search-project-place,
.search-deadline {
    gap: 4px;
    color: var(--muted);
    font-size: 0.8rem;
}

.search-project-copy h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.2rem;
}

.search-project-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 0.92rem;
}

.search-project-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 210px;
    padding-right: 24px;
    border-right: 1px solid var(--border);
}

.search-budget-box span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.78rem;
}

.search-budget-box strong {
    color: var(--primary);
    font-size: 1.15rem;
}

.search-budget-box small {
    font-size: 0.75rem;
    font-weight: 400;
}

.search-deadline {
    margin-top: 18px;
    font-weight: 500;
}

.search-deadline-alert {
    color: #ba1a1a;
}

.search-project-footer {
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.proposal-avatars {
    display: flex;
}

.proposal-avatar {
    width: 32px;
    height: 32px;
    margin-left: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.proposal-avatar:first-child {
    margin-left: 0;
}

.proposal-avatar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e1e2e4;
    color: var(--primary);
    font-size: 0.66rem;
    font-weight: 700;
}

.proposal-avatar-blue {
    background: #b6c7eb;
}

.proposal-avatar-slate {
    background: #b7c8e1;
}

.proposal-avatar-gold {
    background: #ffddb8;
}

.proposal-avatar-light {
    background: #d7e2ff;
}

.proposal-avatar-amber {
    background: #ffb95f;
}

.search-action-button {
    padding: 0 20px;
}

.pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.pagination-row a,
.pagination-row button,
.pagination-row span {
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
}

.pagination-row a,
.pagination-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.pagination-row a:hover,
.pagination-row button:hover {
    background: var(--surface-soft);
    border-color: rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.pagination-row a.is-current,
.pagination-row .is-current {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.pagination-row button[disabled] {
    opacity: 0.45;
    cursor: default;
    box-shadow: none;
}

.pagination-row button[disabled]:hover {
    background: #fff;
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.pagination-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.results-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.results-meta-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.results-meta-form label {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.results-meta-form select {
    min-width: 72px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.project-list {
    display: grid;
    gap: 16px;
}

.project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    transition: 0.2s ease;
}

.project-row:hover {
    border-color: #f39c12;
}

.project-row-main,
.project-row-side,
.project-meta-row,
.project-budget-value,
.cta-actions {
    display: flex;
    align-items: center;
}

.project-row-main {
    gap: 24px;
}

.project-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #d3e4fe;
    color: var(--primary);
}

.project-icon-box .material-symbols-outlined {
    font-size: 2rem;
}

.project-meta-row {
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.project-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
}

.project-row-side {
    gap: 30px;
}

.project-budget-label {
    font-size: 0.8rem;
}

.project-budget-value {
    margin: 4px 0 0;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    justify-content: flex-start;
}

.cta-panel {
    padding: 72px 48px;
    border-radius: 40px;
    background: var(--primary-soft);
    text-align: center;
}

.cta-panel h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.cta-panel p {
    max-width: 820px;
    margin: 24px auto 36px;
    color: var(--primary-muted);
    font-size: 1.06rem;
}

.cta-actions {
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    min-height: 58px;
    padding: 0 34px;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
}

.cta-primary {
    background: #f39c12;
    color: #fff;
    box-shadow: var(--shadow);
}

.cta-primary:hover {
    transform: scale(1.04);
}

.cta-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    backdrop-filter: blur(8px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.mobile-fab {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 50;
    display: none;
}

.mobile-fab button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: #f39c12;
    color: #fff;
    box-shadow: 0 18px 40px rgba(3, 22, 50, 0.24);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 24px;
    padding: 56px 0 36px;
}

.footer-brand-block,
.footer-links-block,
.footer-newsletter {
    display: grid;
    gap: 16px;
    align-content: start;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
}

.footer-brand-icon {
    color: #ffddb8;
    font-size: 2rem;
}

.footer-description,
.footer-newsletter p,
.footer-bottom,
.footer-links a {
    color: var(--primary-muted);
}

.footer-description,
.footer-newsletter p {
    line-height: 1.9;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(130, 147, 181, 0.5);
    border-radius: 50%;
    transition: 0.2s ease;
}

.footer-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.footer-links-block h3,
.footer-newsletter h3 {
    margin: 0;
    color: #ffddb8;
    font-size: 1.15rem;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.footer-links a {
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    min-height: 46px;
    padding: 0 14px;
    border: none;
    border-radius: 12px;
    background: #1c2c40;
    color: #fff;
    font: inherit;
}

.newsletter-form input::placeholder {
    color: #b6c7eb;
}

.newsletter-form input:focus {
    outline: 2px solid rgba(255, 221, 184, 0.45);
    outline-offset: 2px;
}

.newsletter-form button {
    min-width: 84px;
    min-height: 46px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--accent-dark);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 32px;
    border-top: 1px solid rgba(130, 147, 181, 0.2);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-meta .material-symbols-outlined {
    color: #ffddb8;
}

.project-detail-page {
    padding: 40px 0 72px;
}

.project-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #75777e;
    font-size: 0.92rem;
    flex-wrap: wrap;
}

.project-breadcrumbs a:hover {
    color: var(--primary);
}

.project-breadcrumbs strong {
    color: var(--primary);
}

.project-breadcrumbs .material-symbols-outlined {
    font-size: 1rem;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.project-detail-main,
.project-detail-sidebar {
    display: grid;
    gap: 24px;
}

.project-hero-card,
.project-detail-card,
.project-bid-card,
.project-chat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197, 198, 206, 0.7);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(3, 22, 50, 0.06);
}

.project-hero-card,
.project-detail-card,
.project-bid-card {
    padding: 28px;
}

.project-hero-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #fea619 0%, #855300 100%);
}

.project-hero-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.project-hero-copy {
    flex: 1;
}

.project-hero-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.project-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #d7e2ff;
    color: var(--primary);
    font-size: 0.83rem;
    font-weight: 700;
}

.project-detail-chip .material-symbols-outlined {
    font-size: 1rem;
}

.project-detail-chip-soft {
    background: #edeef0;
}

.project-detail-chip-urgent {
    background: #ffdad6;
    color: #93000a;
}

.project-hero-card h1 {
    margin: 0 0 16px;
    color: var(--primary);
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    line-height: 1.35;
}

.project-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
}

.project-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
}

.project-hero-meta .material-symbols-outlined {
    color: var(--accent);
    font-size: 1.05rem;
}

.project-hero-budget {
    min-width: 260px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    text-align: left;
}

.project-hero-budget span,
.project-section-title span,
.project-spec-card p,
.project-meta-grid span,
.project-location-info span,
.project-bid-form label > span,
.project-bid-stats span,
.project-attachment-item small,
.project-related-item span {
    color: #75777e;
}

.project-hero-budget span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.project-hero-budget strong {
    display: block;
    color: var(--primary);
    font-size: 1.55rem;
    line-height: 1.5;
}

.project-hero-budget small {
    display: block;
    margin-top: 8px;
    color: var(--accent-dark);
    font-weight: 700;
}

.project-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.project-spec-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
}

.project-spec-card .material-symbols-outlined {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 1.7rem;
}

.project-spec-card p {
    margin: 0 0 8px;
    font-size: 0.85rem;
}

.project-spec-card strong,
.project-field-card strong,
.project-meta-grid strong,
.project-location-info strong,
.project-bid-stats strong,
.project-attachment-item strong,
.project-related-item strong {
    color: var(--primary);
}

.project-section-title {
    margin-bottom: 18px;
}

.project-section-title h2 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 1.3rem;
}

.project-section-title span {
    font-size: 0.9rem;
}

.project-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.project-field-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-soft);
}

.project-field-card .material-symbols-outlined {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #d7e2ff;
    color: var(--primary);
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project-meta-grid div,
.project-location-info > div {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.project-meta-grid span,
.project-location-info span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.project-description {
    display: grid;
    gap: 14px;
    color: var(--muted);
    line-height: 2;
}

.project-description p {
    margin: 0;
}

.project-location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 18px;
}

.project-location-map {
    min-height: 280px;
    padding: 26px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(215, 226, 255, 0.7), rgba(254, 166, 25, 0.12)),
        #eef2f8;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.project-location-map .material-symbols-outlined {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 2.2rem;
}

.project-location-map strong {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.12rem;
}

.project-location-map p,
.project-chat-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.project-location-info {
    display: grid;
    gap: 14px;
}

.project-address-box {
    display: flex;
    align-items: start;
    gap: 10px;
}

.project-address-box .material-symbols-outlined {
    color: var(--accent);
}

.project-address-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.project-chat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-style: dashed;
}

.project-chat-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-chat-copy > .material-symbols-outlined {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(3, 22, 50, 0.08);
    color: var(--primary);
}

.project-chat-copy strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
}

.project-chat-button {
    width: auto;
    padding: 0 18px;
    white-space: nowrap;
}

.project-bid-card {
    position: sticky;
    top: 108px;
}

.project-bid-card h2 {
    margin: 0 0 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.project-bid-form {
    display: grid;
    gap: 16px;
}

.project-bid-form label {
    display: grid;
    gap: 8px;
}

.project-bid-form input,
.project-bid-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.project-bid-form input {
    min-height: 52px;
    padding: 0 16px;
}

.project-bid-form textarea {
    min-height: 130px;
    padding: 14px 16px;
    resize: vertical;
}

.project-bid-form input:focus,
.project-bid-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(133, 83, 0, 0.12);
}

.project-input-wrap {
    position: relative;
}

.project-input-wrap input {
    padding-left: 74px;
}

.project-input-wrap em {
    position: absolute;
    left: 16px;
    top: 50%;
    color: #75777e;
    font-style: normal;
    transform: translateY(-50%);
}

.project-bid-submit {
    width: 100%;
}

.project-bid-stats {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.project-bid-stats div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-card {
    padding: 24px;
}

.project-attachment-list,
.project-related-list {
    display: grid;
    gap: 12px;
}

.project-attachment-item,
.project-related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: var(--surface-soft);
    transition: 0.2s ease;
}

.project-attachment-item:hover,
.project-related-item:hover {
    background: #e7e8ea;
}

.project-attachment-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-attachment-copy .material-symbols-outlined,
.project-attachment-item > .material-symbols-outlined {
    color: var(--primary);
}

.project-attachment-copy div,
.project-related-item div {
    display: grid;
    gap: 4px;
}

.project-related-item {
    align-items: start;
}

.project-related-item div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-related-item em {
    color: var(--accent-dark);
    font-style: normal;
    font-weight: 700;
}

.engineer-detail-page {
    padding: 48px 0 72px;
}

.engineer-hero-card,
.engineer-section-box,
.engineer-portfolio-card,
.engineer-review-card,
.engineer-summary-card,
.engineer-badges-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(3, 22, 50, 0.05);
}

.engineer-hero-card {
    overflow: hidden;
    margin-bottom: 32px;
}

.engineer-hero-cover {
    height: 128px;
    background:
        radial-gradient(circle at center, rgba(133, 83, 0, 0.14) 0, transparent 12px),
        linear-gradient(135deg, rgba(3, 22, 50, 0.12), rgba(3, 22, 50, 0.03));
    background-size: 24px 24px, cover;
}

.engineer-hero-body {
    display: flex;
    align-items: end;
    gap: 24px;
    padding: 0 32px 32px;
    margin-top: -48px;
    position: relative;
    z-index: 1;
}

.engineer-hero-avatar {
    width: 196px;
    min-width: 196px;
    height: 196px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 18px 36px rgba(3, 22, 50, 0.12);
}

.engineer-hero-avatar img,
.engineer-portfolio-image img,
.engineer-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.engineer-hero-copy {
    flex: 1;
    padding-bottom: 6px;
}

.engineer-hero-headline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.engineer-hero-headline h1 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.3;
}

.engineer-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffddb8;
    color: #2a1700;
    font-size: 0.78rem;
    font-weight: 700;
}

.engineer-hero-copy > p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.engineer-hero-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.engineer-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.engineer-hero-meta .material-symbols-outlined,
.engineer-section-card h2 .material-symbols-outlined {
    color: var(--accent);
}

.engineer-hero-action {
    width: 100%;
    max-width: 240px;
    padding-bottom: 6px;
}

.engineer-collab-button {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 16px;
    background: #fea619;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.engineer-collab-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.engineer-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.engineer-detail-main,
.engineer-detail-sidebar {
    display: grid;
    gap: 24px;
}

.engineer-detail-sidebar {
    position: sticky;
    top: 108px;
}

.engineer-section-card h2,
.engineer-section-head h2 {
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 1.5rem;
}

.engineer-section-box {
    padding: 28px;
}

.engineer-section-box p,
.engineer-review-text {
    margin: 0;
    color: var(--text);
    line-height: 2;
}

.engineer-skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.engineer-skill-cloud span {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--primary);
}

.engineer-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.engineer-section-head h2 {
    margin: 0;
}

.engineer-section-head a {
    color: var(--primary);
    font-weight: 700;
}

.engineer-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.engineer-portfolio-card {
    overflow: hidden;
    transition: 0.25s ease;
}

.engineer-portfolio-card:hover {
    box-shadow: var(--shadow);
}

.engineer-portfolio-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.engineer-portfolio-image img {
    transition: transform 0.5s ease;
}

.engineer-portfolio-card:hover .engineer-portfolio-image img {
    transform: scale(1.05);
}

.engineer-portfolio-body {
    padding: 18px;
}

.engineer-portfolio-body h3 {
    margin: 0 0 8px;
    color: var(--primary);
}

.engineer-portfolio-body div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.engineer-review-list {
    display: grid;
    gap: 18px;
}

.engineer-review-card {
    padding: 22px;
}

.engineer-review-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.engineer-review-user {
    display: flex;
    gap: 12px;
}

.engineer-review-avatar {
    width: 48px;
    min-width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--surface-strong);
}

.engineer-review-user h4 {
    margin: 0 0 4px;
    color: var(--primary);
}

.engineer-review-user p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.engineer-review-stars {
    display: flex;
    color: #c5c6ce;
}

.engineer-review-stars .is-filled {
    color: var(--accent);
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.engineer-summary-card {
    padding: 24px;
}

.engineer-summary-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.engineer-summary-score > span,
.engineer-summary-grid p,
.engineer-summary-items p,
.engineer-summary-actions p {
    color: var(--muted);
}

.engineer-summary-score div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.engineer-summary-score strong {
    color: var(--primary);
    font-size: 1.8rem;
}

.engineer-summary-score .material-symbols-outlined {
    color: var(--accent);
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.engineer-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.engineer-summary-grid div,
.engineer-summary-items > div {
    padding: 14px;
    border-radius: 16px;
    background: var(--surface-soft);
}

.engineer-summary-grid p,
.engineer-summary-items p {
    margin: 0 0 6px;
    font-size: 0.8rem;
}

.engineer-summary-grid strong,
.engineer-summary-items strong {
    color: var(--primary);
}

.engineer-summary-items {
    display: grid;
    gap: 14px;
}

.engineer-summary-items > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.engineer-summary-items .material-symbols-outlined {
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(3, 22, 50, 0.08);
    color: var(--primary);
}

.engineer-summary-actions {
    padding-top: 18px;
}

.engineer-summary-actions button,
.engineer-summary-actions a {
    width: 100%;
    min-height: 52px;
    border: 2px solid var(--primary);
    border-radius: 14px;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.engineer-summary-actions button:hover,
.engineer-summary-actions a:hover {
    background: var(--primary);
    color: #fff;
}

.engineer-summary-actions p {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.8rem;
}

.engineer-badges-card {
    padding: 24px;
    background: var(--primary);
    color: #fff;
}

.engineer-badges-card h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 1.2rem;
}

.engineer-badges-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.engineer-badges-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.engineer-badges-card .material-symbols-outlined {
    color: #ffddb8;
}

.engineer-dashboard-page {
    padding: 32px 0 48px;
}

.engineer-dashboard-shell {
    width: min(1280px, 100%);
    margin: 0 auto;
    min-height: calc(100vh - 88px);
    display: grid;
    grid-template-columns: 288px minmax(0, 1fr);
}

.engineer-dashboard-sidebar {
    background: rgba(255, 255, 255, 0.94);
    border-left: 1px solid var(--border);
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.engineer-dashboard-menu-title {
    padding: 0 24px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
}

.engineer-dashboard-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--muted);
    transition: 0.2s ease;
}

.engineer-dashboard-link:hover,
.engineer-dashboard-link.is-active {
    color: var(--primary);
    background: var(--surface-soft);
}

.engineer-dashboard-link.is-active {
    border-right: 4px solid #fea619;
    font-weight: 700;
}

.engineer-dashboard-divider {
    height: 1px;
    margin: 16px 24px;
    background: var(--border);
    opacity: 0.35;
}

.engineer-dashboard-main {
    padding: 40px;
    overflow: hidden;
}

.engineer-dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 24px;
    margin-bottom: 32px;
}

.engineer-dashboard-head h1 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.engineer-dashboard-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.engineer-dashboard-head-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.engineer-dashboard-balance,
.engineer-dashboard-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
}

.engineer-dashboard-balance {
    background: var(--surface-strong);
}

.engineer-dashboard-plan {
    border: 1px solid var(--primary);
    background: var(--primary-soft);
    color: #fff;
}

.engineer-dashboard-balance .material-symbols-outlined {
    color: var(--accent);
}

.engineer-dashboard-plan .material-symbols-outlined {
    color: #fea619;
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.engineer-dashboard-balance small,
.engineer-dashboard-plan small {
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem;
}

.engineer-dashboard-balance small {
    color: var(--muted);
}

.engineer-dashboard-balance strong,
.engineer-dashboard-plan strong {
    display: block;
    font-size: 1.05rem;
}

.engineer-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.engineer-stat-card,
.engineer-dashboard-card,
.engineer-active-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(3, 22, 50, 0.05);
}

.engineer-stat-card {
    padding: 24px;
}

.engineer-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 18px;
}

.engineer-stat-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--primary);
    transition: 0.2s ease;
}

.engineer-stat-card:hover .engineer-stat-icon {
    background: var(--primary);
    color: #fff;
}

.engineer-stat-badge {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.engineer-stat-badge.is-positive {
    background: #ecfdf3;
    color: #15803d;
}

.engineer-stat-card p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.engineer-stat-card h3 {
    margin: 0;
    color: var(--primary);
    font-size: 2rem;
}

.engineer-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
    gap: 24px;
}

.engineer-dashboard-content,
.engineer-dashboard-sidewidgets {
    display: grid;
    gap: 24px;
    align-content: start;
}

.engineer-dashboard-card {
    overflow: hidden;
}

.engineer-dashboard-card.compact {
    padding: 24px;
}

.engineer-dashboard-card.compact h3,
.engineer-plan-widget h3 {
    margin: 0 0 16px;
    color: var(--primary);
}

.engineer-dashboard-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.engineer-dashboard-card-head h2,
.engineer-dashboard-section-head h2 {
    margin: 0;
    color: var(--primary);
}

.engineer-dashboard-card-head button,
.engineer-dashboard-section-head button {
    border: none;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.engineer-bids-table-wrap {
    overflow-x: auto;
}

.engineer-bids-table {
    width: 100%;
    border-collapse: collapse;
}

.engineer-bids-table thead tr {
    background: var(--primary);
    color: #fff;
}

.engineer-bids-table th,
.engineer-bids-table td {
    padding: 16px;
    text-align: right;
}

.engineer-bids-table th {
    font-size: 0.88rem;
}

.engineer-bids-table tbody tr {
    border-top: 1px solid var(--border);
}

.engineer-bids-table tbody tr:hover {
    background: var(--surface-soft);
}

.engineer-bid-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.engineer-bid-status.is-review {
    background: #fef3c7;
    color: #b45309;
}

.engineer-bid-status.is-win {
    background: #dcfce7;
    color: #15803d;
}

.engineer-bid-status.is-lost {
    background: #fee2e2;
    color: #b91c1c;
}

.engineer-dashboard-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.engineer-dashboard-section-head button {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
}

.engineer-active-projects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.engineer-active-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.engineer-active-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
}

.engineer-active-accent.is-gold {
    background: #fea619;
}

.engineer-active-accent.is-primary {
    background: var(--primary);
}

.engineer-active-top,
.engineer-active-progress-row,
.engineer-active-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.engineer-active-top {
    margin-bottom: 14px;
}

.engineer-active-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    background: #d7e2ff;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.engineer-active-code {
    color: var(--muted);
    font-size: 0.72rem;
}

.engineer-active-card h3 {
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 1.15rem;
}

.engineer-active-progress {
    margin-bottom: 18px;
}

.engineer-active-progress-row {
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.engineer-active-progress-row span {
    color: var(--muted);
}

.engineer-active-progress-row strong {
    color: var(--primary);
}

.engineer-active-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface-strong);
}

.engineer-active-progress-bar div {
    height: 100%;
    border-radius: 999px;
    background: #fea619;
}

.engineer-active-foot {
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.engineer-active-foot span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.8rem;
}

.engineer-active-foot a {
    color: var(--primary);
    font-weight: 700;
}

.engineer-plan-widget {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 24px;
    background: var(--primary-soft);
    color: #fff;
    box-shadow: 0 14px 30px rgba(3, 22, 50, 0.18);
}

.engineer-plan-widget::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(254, 166, 25, 0.12);
}

.engineer-plan-widget > * {
    position: relative;
    z-index: 1;
}

.engineer-plan-widget p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
}

.engineer-plan-meters {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
}

.engineer-plan-meter-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.78rem;
}

.engineer-plan-meter-row strong {
    color: #fff;
}

.engineer-plan-meter {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
}

.engineer-plan-meter div {
    height: 100%;
    border-radius: 999px;
    background: #fea619;
    box-shadow: 0 0 10px rgba(254, 166, 25, 0.45);
}

.engineer-plan-meter .is-light {
    background: #fff;
    box-shadow: none;
}

.engineer-plan-widget button {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    background: #fea619;
    color: #2a1700;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.engineer-plan-widget small {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
}

.engineer-quick-actions {
    display: grid;
    gap: 12px;
}

.engineer-quick-actions a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--surface);
    transition: 0.2s ease;
}

.engineer-quick-actions a:hover {
    background: var(--surface-soft);
}

.engineer-quick-actions .material-symbols-outlined {
    color: var(--primary);
}

.engineer-quick-actions strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.engineer-quick-actions small {
    color: var(--muted);
    line-height: 1.7;
}

.engineer-dashboard-chat-link {
    margin-top: 16px;
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: 0.2s ease;
}

.engineer-dashboard-chat-link:hover {
    background: var(--primary-soft);
}

.engineer-chat-page {
    padding: 0;
}

.engineer-chat-shell {
    width: min(1280px, 100%);
    margin: 0 auto;
    min-height: calc(100vh - 88px);
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr) 320px;
    overflow: hidden;
}

.engineer-chat-sidebar,
.engineer-chat-window,
.engineer-chat-info {
    min-height: calc(100vh - 88px);
}

.engineer-chat-sidebar {
    background: rgba(255, 255, 255, 0.94);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.engineer-chat-sidebar-head,
.engineer-chat-header,
.engineer-chat-inputbar,
.engineer-chat-info-head {
    padding: 24px;
}

.engineer-chat-sidebar-head,
.engineer-chat-header {
    border-bottom: 1px solid var(--border);
}

.engineer-chat-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.engineer-chat-sidebar-top h2,
.engineer-chat-header h2,
.engineer-chat-info-head h3 {
    margin: 0;
    color: var(--primary);
}

.engineer-chat-sidebar-top button,
.engineer-chat-actions button,
.engineer-chat-tools button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--primary-soft);
    cursor: pointer;
    transition: 0.2s ease;
}

.engineer-chat-sidebar-top button:hover,
.engineer-chat-actions button:hover,
.engineer-chat-tools button:hover {
    background: var(--surface-soft);
}

.engineer-chat-search {
    position: relative;
}

.engineer-chat-search span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.engineer-chat-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 42px 0 14px;
    border: none;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}

.engineer-chat-search input:focus,
.engineer-chat-textarea textarea:focus {
    outline: 2px solid rgba(3, 22, 50, 0.12);
}

.engineer-chat-conversations,
.engineer-chat-messages,
.engineer-chat-info-body {
    overflow-y: auto;
}

.engineer-chat-conversations {
    flex: 1;
}

.engineer-conversation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.engineer-conversation-item:hover {
    background: var(--surface-soft);
}

.engineer-conversation-item.is-active {
    background: rgba(254, 166, 25, 0.08);
    border-right: 4px solid var(--accent);
}

.engineer-conversation-avatar,
.engineer-chat-user-avatar,
.engineer-message-avatar {
    position: relative;
    overflow: hidden;
}

.engineer-conversation-avatar {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.engineer-conversation-avatar img,
.engineer-chat-user-avatar img,
.engineer-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.engineer-conversation-status {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #d9dadc;
}

.engineer-conversation-status.is-online {
    background: #22c55e;
}

.engineer-conversation-copy {
    flex: 1;
    min-width: 0;
}

.engineer-conversation-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.engineer-conversation-row h3,
.engineer-chat-info-head h4 {
    margin: 0;
}

.engineer-conversation-row h3 {
    color: var(--primary);
    font-size: 1rem;
}

.engineer-conversation-row span,
.engineer-conversation-message,
.engineer-chat-user p,
.engineer-message-time,
.engineer-chat-info-meta em,
.engineer-chat-info-list span,
.engineer-chat-milestones small {
    color: var(--muted);
}

.engineer-conversation-project {
    margin: 4px 0;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.engineer-conversation-message {
    margin: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.engineer-conversation-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.engineer-chat-window {
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

.engineer-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
}

.engineer-chat-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.engineer-chat-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ffddb8;
}

.engineer-chat-user p {
    margin: 4px 0 0;
    font-size: 0.85rem;
}

.engineer-chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.engineer-chat-messages {
    flex: 1;
    padding: 24px;
    background: #f8f9fb;
}

.engineer-chat-date {
    width: fit-content;
    margin: 0 auto 24px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.engineer-message-row {
    display: flex;
    align-items: end;
    gap: 12px;
    max-width: 80%;
    margin-bottom: 18px;
}

.engineer-message-row.is-out {
    margin-right: auto;
    flex-direction: row-reverse;
}

.engineer-message-avatar {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
}

.engineer-message-body {
    display: flex;
    flex-direction: column;
}

.engineer-message-row.is-out .engineer-message-body {
    align-items: end;
}

.engineer-message-bubble {
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(3, 22, 50, 0.05);
}

.engineer-message-bubble.is-in {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px 16px 16px 4px;
}

.engineer-message-bubble.is-out {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    border-radius: 16px 16px 4px 16px;
}

.engineer-message-bubble p {
    margin: 0;
    line-height: 1.9;
}

.engineer-message-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text);
}

.engineer-message-attachment strong,
.engineer-chat-info-list strong,
.engineer-chat-milestones strong {
    color: var(--primary);
}

.engineer-message-attachment strong,
.engineer-message-attachment small {
    display: block;
}

.engineer-message-time {
    margin-top: 6px;
    font-size: 0.7rem;
}

.engineer-chat-inputbar {
    display: flex;
    align-items: end;
    gap: 12px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
}

.engineer-chat-tools {
    display: flex;
    gap: 4px;
}

.engineer-chat-textarea {
    flex: 1;
}

.engineer-chat-textarea textarea {
    width: 100%;
    min-height: 54px;
    max-height: 120px;
    resize: none;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface-soft);
    color: var(--text);
    font: inherit;
}

.engineer-chat-send {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 18px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.engineer-chat-info {
    background: rgba(255, 255, 255, 0.94);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: 0.25s ease;
}

.engineer-chat-info.is-hidden {
    display: none;
}

.engineer-chat-info-cover {
    aspect-ratio: 16 / 9;
    margin: 16px 0;
    border-radius: 16px;
    border: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(215, 226, 255, 0.85), rgba(254, 166, 25, 0.18)),
        #eef2f8;
}

.engineer-chat-info-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.engineer-chat-info-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(133, 83, 0, 0.08);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
}

.engineer-chat-info-body {
    flex: 1;
    padding: 24px;
}

.engineer-chat-info-block {
    margin-bottom: 26px;
}

.engineer-chat-info-block h5 {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.engineer-chat-info-list,
.engineer-chat-milestones {
    display: grid;
    gap: 12px;
}

.engineer-chat-info-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.engineer-chat-milestones > div {
    display: flex;
    align-items: start;
    gap: 12px;
}

.engineer-chat-milestones .is-done .material-symbols-outlined {
    color: #22c55e;
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.engineer-chat-milestones .is-current > span,
.engineer-chat-milestones .is-pending > span {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin-top: 4px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: inline-block;
}

.engineer-chat-milestones .is-current > span {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 4px #fea619;
}

.engineer-chat-milestones .is-pending {
    opacity: 0.55;
}

.engineer-chat-info-buttons {
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 10px;
}

.engineer-chat-info-buttons button {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    font: inherit;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.engineer-chat-info-buttons .is-muted {
    border: none;
    background: var(--surface-strong);
    color: var(--primary);
}

.engineer-chat-info-buttons .is-danger {
    border: 1px solid #ef4444;
    background: transparent;
    color: #dc2626;
}

@media (max-width: 820px) {
    .header-inner,
    .header-cluster,
    .home-hero-grid,
    .journey-grid,
    .stats-grid,
    .engineers-grid,
    .footer-grid,
    .footer-bottom {
        display: grid;
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: 14px 0;
        text-align: center;
    }

    .header-cluster {
        gap: 18px;
    }

    .site-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .site-search {
        max-width: none;
    }

    .header-actions {
        justify-content: center;
    }

    .home-hero,
    .journey-section,
    .engineers-section,
    .projects-section,
    .cta-section,
    .project-wizard-page {
        padding: 56px 0;
    }

    .wizard-grid,
    .wizard-checkbox-grid,
    .wizard-actions,
    .wizard-actions-right {
        grid-template-columns: 1fr;
        display: grid;
    }

    .wizard-stepper {
        gap: 6px;
    }

    .wizard-step span {
        font-size: 0.75rem;
    }

    .wizard-card {
        padding: 22px;
    }

    .home-hero-copy,
    .home-hero-visual {
        grid-column: span 12;
    }

    .home-hero-visual {
        min-height: 320px;
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-search-panel-wide {
        grid-column: span 12;
    }

    .achievement-card {
        right: 0;
        bottom: -16px;
        left: 0;
        width: calc(100% - 24px);
        margin: 0 auto;
    }

    .hero-search-panel,
    .project-row,
    .project-row-main,
    .project-row-side,
    .cta-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-search-field-bordered {
        border-bottom: 1px solid var(--border);
        border-left: none;
        padding-bottom: 8px;
    }

    .hero-engineers-proof,
    .section-head-row,
    .project-row-side {
        display: grid;
        gap: 16px;
    }

    .section-head-row,
    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-meta,
    .footer-socials,
    .newsletter-form {
        justify-content: center;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .projects-search-layout,
    .search-project-main,
    .search-project-footer,
    .results-head,
    .engineers-search-layout,
    .engineers-results-bar,
    .project-detail-hero,
    .project-detail-grid {
        display: grid;
    }

    .filters-sidebar {
        width: 100%;
    }

    .engineers-sidebar {
        width: 100%;
    }

    .filters-panel {
        position: static;
    }

    .engineers-search-box input {
        min-height: 52px;
    }

    .engineers-search-actions {
        align-items: stretch;
    }

    .engineers-search-box {
        width: 100%;
        margin-right: 0;
    }

    .engineer-profile-card {
        grid-template-columns: 1fr;
    }

    .engineer-profile-image {
        min-height: 220px;
    }

    .engineer-profile-button {
        width: 100%;
    }

    .engineers-sort-box {
        justify-content: center;
    }

    .engineers-results-bar {
        text-align: center;
    }

    .pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-project-side {
        min-width: 0;
        padding-right: 0;
        border-right: none;
        border-top: 1px solid var(--border);
        padding-top: 16px;
    }

    .pagination-row {
        flex-wrap: wrap;
    }

    .mobile-fab {
        display: block;
    }

    .project-detail-layout,
    .project-spec-grid,
    .project-meta-grid,
    .project-location-grid,
    .project-chat-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .project-hero-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .project-hero-budget,
    .project-bid-card {
        min-width: 0;
        text-align: right;
    }

    .project-bid-card {
        position: static;
    }

    .project-chat-card {
        justify-items: start;
    }

    .project-chat-copy {
        align-items: start;
    }

    .project-related-item div,
    .project-bid-stats div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .engineer-hero-body,
    .engineer-detail-layout,
    .engineer-portfolio-grid,
    .engineer-review-head,
    .engineer-summary-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .engineer-hero-body {
        justify-items: center;
        text-align: center;
        padding: 0 20px 24px;
    }

    .engineer-hero-copy,
    .engineer-hero-action {
        width: 100%;
        max-width: none;
    }

    .engineer-hero-headline,
    .engineer-hero-meta {
        justify-content: center;
    }

    .engineer-section-head,
    .engineer-portfolio-body div {
        display: grid;
        gap: 8px;
    }

    .engineer-summary-card {
        position: static;
    }

    .engineer-dashboard-shell,
    .engineer-dashboard-stats,
    .engineer-dashboard-grid,
    .engineer-active-projects {
        grid-template-columns: 1fr;
        display: grid;
    }

    .engineer-dashboard-main {
        padding: 24px 16px 40px;
    }

    .engineer-dashboard-sidebar {
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .engineer-dashboard-head,
    .engineer-dashboard-head-cards,
    .engineer-dashboard-section-head,
    .engineer-active-foot,
    .engineer-dashboard-card-head {
        display: grid;
        gap: 12px;
    }

    .engineer-chat-shell {
        grid-template-columns: 1fr;
    }

    .engineer-chat-sidebar,
    .engineer-chat-window,
    .engineer-chat-info {
        min-height: auto;
    }

    .engineer-chat-sidebar,
    .engineer-chat-info {
        border: none;
    }

    .engineer-chat-info {
        display: none;
    }

    .engineer-message-row {
        max-width: 100%;
    }

    .engineer-chat-inputbar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .employer-dashboard-shell,
    .employer-stats-grid,
    .employer-dashboard-grid,
    .employer-bookmark-grid {
        grid-template-columns: 1fr;
    }

    .employer-dashboard-sidebar {
        position: static;
        order: 2;
    }

    .employer-dashboard-head,
    .employer-section-head,
    .employer-project-top,
    .employer-project-foot {
        display: grid;
        gap: 12px;
        align-items: stretch;
    }

    .employer-dashboard-actions,
    .employer-project-actions {
        flex-direction: column;
    }

    .employer-dashboard-ghost,
    .employer-dashboard-primary,
    .employer-detail-button,
    .employer-chat-icon {
        width: 100%;
    }
}
.workflow-page { padding-block: 2rem 4rem; display: grid; gap: 1.25rem; }
.workflow-page > section, .workflow-card { background: white; border: 1px solid #e1e7ee; border-radius: 12px; padding: 1.25rem; }
.workflow-page form, .workflow-card form { display: grid; gap: .75rem; margin-block: 1rem; }
.workflow-page label, .workflow-card label { display: grid; gap: .25rem; }
.workflow-page :is(input, select, textarea), .workflow-card :is(input, select, textarea) { border: 1px solid #b8c2ce; border-radius: 6px; padding: .5rem; font: inherit; width: 100%; }
.workflow-page ul { padding-inline-start: 1.25rem; }
.workflow-page li { margin-block: .5rem; }
