:root {
    --mq-blue: #0f1131;
    --mq-green: #8cc63f;
    --mq-cyan: #00a6c8;
    --ink: #162033;
    --muted: #657084;
    --line: #dfe5ee;
    --bg: #f4f7f6;
    --white: #fff;
    --danger: #b42318;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Outfit, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    letter-spacing: 0;
}
a { color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 32px)); }

.site-header {
    background: var(--mq-blue);
    color: var(--white);
    border-top: 4px solid var(--mq-green);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(15,17,49,.22);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 66px; width: auto; max-width: 320px; object-fit: contain; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
    color: var(--mq-blue); background: var(--mq-green); font-weight: 800; font-size: 1.4rem;
}
.brand strong { display: block; font-size: 1.1rem; }
.brand small { display: block; color: rgba(255,255,255,.72); font-size: .82rem; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a, .link-button {
    color: rgba(255,255,255,.86); text-decoration: none; font-weight: 700; font-size: .95rem;
    background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-cta { background: var(--mq-green); color: var(--mq-blue) !important; padding: 10px 14px; border-radius: 8px; }

.hero, .page-band {
    background: linear-gradient(135deg, var(--mq-blue), #173d55);
    color: var(--white);
    padding: 86px 0 56px;
}
.hero-grid, .split, .form-shell { display: grid; grid-template-columns: 1.3fr .7fr; gap: 34px; align-items: start; }
.hero h1, .page-band h1 { font-size: clamp(2rem, 4vw, 4.6rem); line-height: 1.02; margin: 10px 0 16px; max-width: 860px; }
.hero p, .page-band p { color: rgba(255,255,255,.78); font-size: 1.12rem; max-width: 680px; }
.eyebrow { color: var(--mq-green); text-transform: uppercase; font-weight: 800; letter-spacing: 0; font-size: .86rem; }

.content-section { padding: 42px 0 70px; }
.panel, .search-box, .action-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 14px 35px rgba(15,17,49,.06);
}
.search-box, .action-panel { color: var(--ink); }
.search-row { display: flex; gap: 10px; margin: 10px 0; }

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}
label { display: grid; gap: 7px; font-weight: 700; color: var(--ink); }
.form { display: grid; gap: 16px; }
.grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-row { grid-column: 1 / -1; }
.form-links { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
    text-decoration: none; font-weight: 800; font-family: inherit; cursor: pointer;
}
.btn.primary { background: var(--mq-green); color: var(--mq-blue); }
.btn.secondary { background: #eef4f7; color: var(--mq-blue); border-color: var(--line); }
.btn.full { width: 100%; }

.flash-wrap { padding-top: 18px; }
.flash { padding: 14px 16px; border-radius: 8px; font-weight: 700; }
.flash.success { background: #e9f8dc; color: #315f11; border: 1px solid #bfe59a; }
.flash.error { background: #fff1f0; color: var(--danger); border: 1px solid #ffccc7; }

.list-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.job-list { display: grid; gap: 14px; }
.job-item {
    display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
    background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px;
}
.job-item h3 { margin: 8px 0; font-size: 1.35rem; }
.job-item p { margin: 0; color: var(--muted); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-meta span, .chips span {
    background: #edf6f8; color: #124a5a; padding: 6px 9px; border-radius: 999px; font-size: .82rem; font-weight: 800;
}
.job-actions { display: grid; gap: 12px; justify-items: end; min-width: 150px; }
.pagination { display: flex; gap: 10px; margin-top: 22px; }
.pagination a { background: var(--white); border: 1px solid var(--line); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 800; }

.detail-grid, .profile-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; }
.mini-list { display: grid; gap: 10px; margin-top: 18px; }
.mini-list > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.danger-link { border: 0; background: none; color: var(--danger); cursor: pointer; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 13px 10px; }
th { color: var(--muted); font-size: .9rem; }
.empty { padding: 24px; background: var(--white); border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }

.messages-grid { display: grid; grid-template-columns: 280px 1fr; gap: 22px; }
.thread { display: grid; gap: 4px; padding: 12px; border-radius: 8px; text-decoration: none; border: 1px solid var(--line); margin-bottom: 8px; }
.thread.active { border-color: var(--mq-green); background: #f2faea; }
.thread small, .message small { color: var(--muted); }
.message { border-left: 4px solid var(--mq-green); padding: 12px 14px; background: #f8fbfc; margin-bottom: 10px; }

.site-footer { background: var(--mq-blue); color: var(--white); padding: 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-brand { color: var(--mq-green); font-weight: 800; font-size: 1.25rem; }
.site-footer p { color: rgba(255,255,255,.72); }

@media (max-width: 860px) {
    .nav-wrap, .nav { align-items: flex-start; }
    .nav-wrap, .hero-grid, .split, .form-shell, .detail-grid, .profile-grid, .messages-grid, .footer-grid { grid-template-columns: 1fr; }
    .nav-wrap { display: grid; }
    .brand-logo { height: 48px; max-width: 260px; }
    .job-item { grid-template-columns: 1fr; }
    .job-actions { justify-items: start; }
    .grid-form { grid-template-columns: 1fr; }
    .search-row { flex-direction: column; }
}
