:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #0d9488;
    --danger: #dc2626;
    --success: #059669;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --radius: 0.625rem;
    --shadow: 0 1px 3px rgb(15 23 42 / 0.08), 0 1px 2px rgb(15 23 42 / 0.05);
    --shadow-md: 0 4px 12px rgb(15 23 42 / 0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
h1 { font-size: 1.75rem; line-height: 1.25; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
.t173m8-muted { color: var(--gray-500); font-size: 0.9rem; }
.t173m8-container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.t173m8-site-header { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 50; }
.t173m8-header-inner { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.t173m8-brand { font-size: 1.4rem; font-weight: 800; color: var(--primary); text-decoration: none; letter-spacing: -0.02em; }
.t173m8-main-nav { display: flex; gap: 1.25rem; margin-left: auto; }
.t173m8-main-nav a { color: var(--gray-700); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.25rem 0; }
.t173m8-main-nav a:hover { color: var(--primary); }
.t173m8-main-content { padding-top: 2rem; padding-bottom: 3rem; min-height: 60vh; }

/* Buttons */
.t173m8-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    background: var(--primary); color: #fff; padding: 0.55rem 1.1rem;
    border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    border: 1px solid var(--primary); cursor: pointer; transition: background .15s, box-shadow .15s;
}
.t173m8-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: var(--shadow-md); }
.t173m8-btn-lg { padding: 0.7rem 1.5rem; font-size: 1rem; }
.t173m8-btn-block { width: 100%; }
.t173m8-btn-outline { background: #fff; color: var(--primary); }
.t173m8-btn-outline:hover { background: var(--primary-light); color: var(--primary-dark); }
.t173m8-btn-danger { background: var(--danger); border-color: var(--danger); }
.t173m8-btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

/* Hero */
.t173m8-hero { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0d9488 130%); border-radius: calc(var(--radius) * 2); padding: 3rem 2rem; color: #fff; text-align: center; }
.t173m8-hero h1 { font-size: 2.2rem; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.t173m8-hero p { opacity: 0.9; margin-bottom: 1.5rem; }
.t173m8-search-bar { display: flex; gap: 0.5rem; max-width: 780px; margin: 0 auto; background: #fff; padding: 0.5rem; border-radius: calc(var(--radius) * 1.4); box-shadow: var(--shadow-md); }
.t173m8-search-field { display: flex; align-items: center; gap: 0.4rem; flex: 1; padding: 0 0.6rem; }
.t173m8-search-field input { border: none; outline: none; width: 100%; padding: 0.6rem 0; font-size: 0.95rem; background: transparent; }
.t173m8-search-icon { opacity: 0.5; }
.t173m8-hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 1.75rem; flex-wrap: wrap; }
.t173m8-hero-stats strong { display: block; font-size: 1.5rem; }
.t173m8-hero-stats span { font-size: 0.85rem; opacity: 0.85; }

/* Sections */
.t173m8-section { margin-top: 2.75rem; }
.t173m8-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.1rem; }
.t173m8-section-head a { text-decoration: none; font-weight: 500; }
.t173m8-section-title { margin: 1.25rem 0 0.75rem; }

/* Job cards */
.t173m8-job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.t173m8-job-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.7rem; transition: box-shadow .15s, transform .15s; }
.t173m8-job-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.t173m8-job-card-head { display: flex; gap: 0.85rem; align-items: flex-start; }
.t173m8-job-card-head h3 { font-size: 1.02rem; line-height: 1.35; }
.t173m8-job-card-head h3 a { text-decoration: none; color: var(--gray-900); }
.t173m8-job-card-head h3 a:hover { color: var(--primary); }
.t173m8-job-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.t173m8-salary { font-weight: 700; color: var(--success); font-size: 0.92rem; }

/* Avatars */
.t173m8-avatar {
    width: 44px; height: 44px; min-width: 44px; border-radius: 10px; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
}
.t173m8-avatar-sm { width: 34px; height: 34px; min-width: 34px; font-size: 0.8rem; border-radius: 8px; }
.t173m8-avatar-lg { width: 64px; height: 64px; min-width: 64px; font-size: 1.4rem; border-radius: 14px; }

/* Badges */
.t173m8-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.t173m8-badge { background: var(--gray-100); color: var(--gray-700); font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; }
.t173m8-badge-new { background: #dcfce7; color: #166534; }
.t173m8-badge-remote { background: #e0e7ff; color: #3730a3; }

/* Sections grid */
.t173m8-sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.t173m8-sector-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.t173m8-sector-card h3 { margin-bottom: 0.6rem; }
.t173m8-sector-card ul { list-style: none; }
.t173m8-sector-card li { margin-bottom: 0.3rem; }
.t173m8-sector-card a { color: var(--gray-700); text-decoration: none; font-size: 0.9rem; }
.t173m8-sector-card a:hover { color: var(--primary); }

/* Company strip / grid */
.t173m8-company-strip { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.t173m8-company-chip { display: flex; align-items: center; gap: 0.6rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 0.6rem 0.9rem; text-decoration: none; color: var(--gray-900); box-shadow: var(--shadow); }
.t173m8-company-chip small, .t173m8-company-card small { display: block; color: var(--gray-500); font-weight: 400; }
.t173m8-company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.t173m8-company-card { display: flex; gap: 0.75rem; align-items: center; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 0.9rem; text-decoration: none; color: var(--gray-900); box-shadow: var(--shadow); }
.t173m8-company-head { display: flex; gap: 1rem; align-items: center; }

/* Page head & filters */
.t173m8-page-head { margin-bottom: 1.25rem; }
.t173m8-filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); align-items: end; }
.t173m8-filter-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--gray-500); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.03em; }

/* Forms */
.t173m8-form-control { width: 100%; padding: 0.55rem 0.75rem; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 0.95rem; background: #fff; margin-bottom: 0.35rem; }
.t173m8-form-control:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }
label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.8rem 0 0.3rem; }
.t173m8-mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.85rem; }
.t173m8-checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.t173m8-checkbox-label input { width: auto; }

/* Cards & alerts */
.t173m8-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.t173m8-narrow { max-width: 720px; margin: 0 auto; }
.t173m8-alert { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.t173m8-alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.t173m8-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.t173m8-alert ul { padding-left: 1.2rem; }
.t173m8-link-cancel { margin-left: 1rem; color: var(--gray-500); text-decoration: none; }

/* Job detail */
.t173m8-breadcrumbs { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 1rem; display: flex; gap: 0.45rem; flex-wrap: wrap; }
.t173m8-breadcrumbs a { color: var(--gray-500); text-decoration: none; }
.t173m8-breadcrumbs a:hover { color: var(--primary); }
.t173m8-job-detail { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; align-items: start; }
.t173m8-job-detail-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.t173m8-job-description { white-space: normal; line-height: 1.7; }
.t173m8-job-actions { margin-top: 1.5rem; }
.t173m8-overview { margin-top: 0.5rem; }
.t173m8-overview dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gray-500); font-weight: 600; margin-top: 0.7rem; }
.t173m8-overview dd { font-weight: 500; }
.t173m8-share-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.t173m8-share-links a { text-decoration: none; font-weight: 500; font-size: 0.9rem; }

/* Pagination */
.t173m8-pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.t173m8-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 0.6rem; border: 1px solid var(--gray-200); border-radius: var(--radius); text-decoration: none; color: var(--gray-700); background: #fff; }
.t173m8-pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }

/* Empty state */
.t173m8-empty-state { text-align: center; padding: 3.5rem 1rem; }
.t173m8-empty-state h1, .t173m8-empty-state h2 { margin: 0.6rem 0; }
.t173m8-empty-state .t173m8-search-bar { margin-top: 1.25rem; }

/* Admin */
.t173m8-login-card { max-width: 400px; margin: 3rem auto; }
.t173m8-admin-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--gray-200); padding-bottom: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
.t173m8-admin-section { margin-top: 1.75rem; border-top: 1px solid var(--gray-200); padding-top: 1.25rem; }
.t173m8-admin-section h2 { margin-bottom: 0.9rem; }
.t173m8-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.t173m8-stat { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 0.8rem; text-align: center; }
.t173m8-stat strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.t173m8-stat span { font-size: 0.78rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.03em; }
.t173m8-inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* Footer */
.t173m8-site-footer { background: #0f172a; color: #cbd5e1; margin-top: 4rem; padding: 3rem 0 1.5rem; }
.t173m8-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.t173m8-footer-grid h4 { color: #fff; margin-bottom: 0.75rem; font-size: 0.95rem; }
.t173m8-footer-grid a { display: block; color: #cbd5e1; text-decoration: none; font-size: 0.9rem; padding: 0.15rem 0; }
.t173m8-footer-grid a:hover { color: #fff; }
.t173m8-footer-grid p { font-size: 0.9rem; }
.t173m8-footer-grid .t173m8-form-control { background: #1e293b; border-color: #334155; color: #fff; }
.t173m8-footer-grid .t173m8-btn { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.t173m8-footer-bottom { border-top: 1px solid #1e293b; margin-top: 2rem; padding-top: 1.25rem; font-size: 0.85rem; text-align: center; }

/* Legal */
.t173m8-legal-page { line-height: 1.8; }
.t173m8-legal-body p { margin-top: 1rem; }

/* Responsive */
@media (max-width: 900px) {
    .t173m8-job-detail { grid-template-columns: 1fr; }
    .t173m8-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .t173m8-header-inner { flex-wrap: wrap; gap: 0.75rem; }
    .t173m8-main-nav { order: 3; width: 100%; margin-left: 0; gap: 1rem; flex-wrap: wrap; }
    .t173m8-hero { padding: 2rem 1rem; }
    .t173m8-hero h1 { font-size: 1.6rem; }
    .t173m8-search-bar { flex-direction: column; }
    .t173m8-search-field { border: 1px solid var(--gray-200); border-radius: var(--radius); }
    .t173m8-hero-stats { gap: 1.5rem; }
    .t173m8-footer-grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.4rem; }
}
