:root {
  --ink: #18302d;
  --muted: #64736f;
  --brand: #0f766e;
  --brand-dark: #0a5c56;
  --brand-soft: #e8f5f2;
  --warm: #f3a83b;
  --paper: #fffef9;
  --line: #dce7e3;
  --danger: #bd2c2c;
  --shadow: 0 18px 50px rgba(19, 63, 57, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 18px; line-height: 1.65; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.topbar { width: min(1180px, calc(100% - 40px)); height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: var(--brand); box-shadow: 0 8px 20px rgba(15, 118, 110, .25); }
.help-link { color: var(--brand); font-weight: 700; text-underline-offset: 5px; }
.hero { width: min(1180px, calc(100% - 40px)); min-height: 590px; margin: auto; padding: 76px 0 72px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.eyebrow { display: block; color: var(--brand); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 16px 0 24px; font-size: clamp(45px, 6vw, 74px); line-height: 1.14; letter-spacing: -.04em; }
h2 { margin: 10px 0 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -.025em; }
.hero-copy > p { max-width: 620px; color: var(--muted); font-size: 21px; }
.primary-button, .secondary-button { min-height: 54px; padding: 13px 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; border: 0; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.primary-button { color: white; background: var(--brand); box-shadow: 0 12px 28px rgba(15, 118, 110, .22); }
.primary-button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.secondary-button { color: var(--brand); background: white; border: 2px solid var(--brand); }
.secondary-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 118, 110, .12); }
.hero-button { margin-top: 8px; min-width: 180px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--muted); font-size: 15px; font-weight: 700; }
.hero-card { position: relative; min-height: 430px; overflow: hidden; border-radius: 42% 42% 30px 30px; background: linear-gradient(150deg, #d9f2ea, #fef1d6); box-shadow: var(--shadow); }
.sun { position: absolute; top: 45px; right: 45px; width: 80px; height: 80px; border-radius: 50%; background: #ffc85b; }
.illustration-person { position: absolute; left: 50%; bottom: 64px; width: 250px; height: 300px; transform: translateX(-50%); }
.illustration-person .head { position: absolute; z-index: 2; left: 78px; top: 10px; width: 95px; height: 112px; border-radius: 46% 46% 44% 44%; background: #ddaa82; box-shadow: inset 0 22px 0 #3e4b45; }
.illustration-person .body { position: absolute; left: 25px; bottom: 0; width: 200px; height: 210px; border-radius: 85px 85px 25px 25px; background: var(--brand); }
.hero-card-copy { position: absolute; z-index: 3; right: 24px; bottom: 24px; left: 24px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; border-radius: 18px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); box-shadow: 0 12px 28px rgba(30,60,50,.1); }
.hero-card-copy span { color: var(--muted); }
.section { width: min(1180px, calc(100% - 40px)); margin: 40px auto 110px; }
.section-heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading p { color: var(--muted); }
.all-jobs-link { display: inline-block; margin-top: 10px; color: var(--brand); font-size: 15px; font-weight: 800; text-underline-offset: 4px; }
.all-jobs-link[hidden], .job-share-tip[hidden] { display: none; }
.job-share-tip { margin: -12px 0 22px; padding: 13px 16px; color: var(--brand-dark); border-radius: 12px; background: var(--brand-soft); font-size: 15px; }
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.job-card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 8px 28px rgba(20, 70, 60, .06); }
.job-card.shared-job { max-width: 760px; border-color: #b8d9d2; box-shadow: 0 16px 42px rgba(15, 118, 110, .12); }
.job-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.job-tag { flex: 0 0 auto; padding: 4px 10px; border-radius: 99px; color: var(--brand-dark); background: var(--brand-soft); font-weight: 800; white-space: nowrap; }
.job-location { color: var(--muted); }
.job-card h3 { margin: 18px 0 0; font-size: 26px; line-height: 1.25; }
.job-project { color: var(--muted); font-size: 14px; }
.salary { display: block; margin: 20px 0 12px; color: #bb5a11; font-size: 22px; }
.job-card ul { margin: 0 0 18px; padding-left: 1.1em; color: var(--muted); }
.job-card > p:last-of-type { min-height: 58px; color: var(--muted); font-size: 15px; }
.job-contact { margin: 20px 0 14px; padding: 13px 15px; display: grid; border-radius: 12px; background: var(--brand-soft); }
.job-contact span { color: var(--muted); font-size: 13px; }
.job-contact strong { color: var(--brand-dark); }
.job-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.job-actions .secondary-button, .job-actions .primary-button { width: 100%; padding-right: 12px; padding-left: 12px; font-size: 16px; text-align: center; }
.form-section { padding: 52px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; border-radius: 32px; background: #f0f7f5; }
.form-intro > p { color: var(--muted); }
.steps { margin: 34px 0 0; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 65px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; font-weight: 700; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 48px; width: 2px; height: 24px; background: #cddbd7; }
.steps span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: white; border: 1px solid var(--line); }
.steps .active { color: var(--ink); }
.steps .active span { color: white; background: var(--brand); border-color: var(--brand); }
.application-form { padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.field { min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 800; }
.field input, .field select, .field textarea, .filters input, .filters select { width: 100%; min-height: 54px; padding: 12px 15px; color: var(--ink); background: #fff; border: 1.5px solid #cbd9d5; border-radius: 12px; outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 118, 110, .12); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
fieldset.field { margin: 0; padding: 0; border: 0; }
.full-width { grid-column: 1 / -1; }
.required, .field-error { color: var(--danger); }
.optional-hint { color: var(--muted); font-size: .82em; font-weight: 500; }
.field-error { display: block; min-height: 1.2em; margin-top: 5px; font-size: 14px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { flex: 1; min-width: 120px; min-height: 52px; padding: 10px 14px; display: flex !important; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600 !important; }
.choice input { width: 22px; min-height: auto; height: 22px; }
.consent { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 15px; cursor: pointer; }
.consent input { width: 23px; height: 23px; flex: 0 0 auto; }
.link-like { color: var(--brand); font-weight: 700; }
.submit-button { width: 100%; min-height: 62px; font-size: 20px; }
.safe-tip { margin: -5px 0 0; color: var(--muted); text-align: center; font-size: 14px; }
.help-section { padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 35px; border: 1px solid #eadcbf; border-radius: 24px; background: #fff8e8; }
.help-section p { max-width: 760px; margin-bottom: 0; color: var(--muted); }
footer { padding: 32px max(20px, calc((100% - 1180px)/2)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; color: var(--muted); background: #eef3f1; font-size: 14px; }
footer a[data-icp-record] { color: inherit; }
.success-dialog { width: min(460px, calc(100% - 34px)); padding: 38px; text-align: center; border: 0; border-radius: 26px; box-shadow: 0 30px 80px rgba(11,49,44,.28); }
.success-dialog::backdrop { background: rgba(8, 39, 36, .58); }
.success-icon { width: 70px; height: 70px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--brand); font-size: 36px; font-weight: 800; }
.success-dialog h2 { margin-bottom: 8px; }
.success-dialog p { color: var(--muted); }
.receipt { margin: 20px 0; padding: 14px; border-radius: 12px; background: var(--brand-soft); }
.success-contact { display: inline-flex; padding: 10px 16px; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); font-weight: 800; text-decoration: none; }
.legal-page { width: min(820px, calc(100% - 40px)); margin: 70px auto 100px; }
.legal-page h1 { margin: 12px 0; font-size: clamp(34px, 6vw, 52px); }
.legal-page section { margin: 26px 0; padding-bottom: 16px; border-bottom: 1px solid #dde7e4; }
.legal-page section h2 { font-size: 22px; }
.legal-page section p, .legal-updated { color: var(--muted); line-height: 1.9; }
.legal-page a:not(.primary-button) { color: var(--brand-dark); }
.legal-back { margin-top: 12px; }

/* Admin */
.login-screen { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at top left, #d9f2ea, transparent 42%), #f4f6f8; }
.login-card { width: min(430px, 100%); padding: 38px; display: grid; gap: 22px; border: 1px solid #e2e7eb; border-radius: 22px; background: white; box-shadow: var(--shadow); }
.login-card h1 { margin: 8px 0; font-size: 34px; }
.login-card p { margin: 0; color: var(--muted); }
.login-card .field { display: grid; gap: 7px; }
.login-card .field input { width: 100%; }
.back-link-login { color: var(--muted); text-align: center; }
.text-button { padding: 7px 9px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.admin-body { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #f4f6f8; font-size: 16px; }
.admin-body [hidden] { display: none !important; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 20px; display: flex; flex-direction: column; color: #e8edf5; background: #14213d; }
.admin-brand { margin-bottom: 40px; color: white; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar nav a { padding: 11px 14px; border-radius: 10px; color: #adb8cc; text-decoration: none; }
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { color: white; background: rgba(255,255,255,.1); }
.back-link { margin-top: auto; color: #afc8c5; }
.admin-main { min-width: 0; padding: 38px clamp(24px, 4vw, 60px) 80px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.admin-header h1 { margin: 6px 0; font-size: 38px; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-user > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--brand); }
.admin-user div { display: grid; }
.admin-user small { color: var(--muted); }
.demo-banner { margin: 24px 0; padding: 12px 16px; color: #755212; background: #fff3d8; border: 1px solid #ead49f; border-radius: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric-grid article { padding: 22px; display: grid; border: 1px solid #e2e7eb; border-radius: 16px; background: white; box-shadow: 0 5px 20px rgba(24,40,70,.04); }
.metric-grid span, .metric-grid small { color: var(--muted); }
.metric-grid strong { margin: 8px 0; font-size: 36px; line-height: 1; }
.admin-panel { margin-top: 26px; padding: 24px; border: 1px solid #e2e7eb; border-radius: 18px; background: white; box-shadow: 0 5px 20px rgba(24,40,70,.04); scroll-margin-top: 20px; }
.panel-heading { margin-bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin-bottom: 0; font-size: 26px; }
.compact-button { min-height: 42px; padding: 9px 15px; }
.filters { display: flex; gap: 10px; }
.filters input { width: 240px; }
.filters select { width: 145px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 12px; color: var(--muted); background: #f7f9fa; text-align: left; font-size: 13px; }
td { padding: 16px 12px; border-bottom: 1px solid #edf0f2; vertical-align: middle; }
td small { display: block; margin-top: 3px; color: var(--muted); }
.status-pill { display: inline-flex; padding: 4px 9px; border-radius: 99px; color: #485754; background: #eef2f1; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-pill.status-new { color: #8a4a0d; background: #fff0dc; }
.status-select { min-width: 118px; padding: 7px 8px; border: 1px solid #ccd8d5; border-radius: 8px; background: white; }
.empty-state { padding: 36px; color: var(--muted); text-align: center; }
.admin-job-list { display: grid; }
.admin-job-list article { padding: 16px 4px; display: grid; grid-template-columns: 1fr 110px minmax(180px, auto); gap: 15px; align-items: center; border-bottom: 1px solid #edf0f2; }
.admin-job-list article div { display: grid; grid-template-columns: 18px 1fr; }
.admin-job-list small { grid-column: 2; color: var(--muted); }
.share-cover-missing { color: #9a6700; font-size: 13px; white-space: nowrap; }
.job-editor { margin: 0 0 22px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; border: 1px solid #cbded9; border-radius: 14px; background: #f7fbfa; }
.job-editor[hidden] { display: none; }
.job-editor-heading { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.job-editor .field { display: grid; gap: 6px; }
.job-editor input, .job-editor textarea { width: 100%; }
.job-active { align-self: end; }
.job-actions-admin { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.job-sort-controls { display: inline-flex; align-items: center; border: 1px solid #d8e2df; border-radius: 9px; overflow: hidden; }
.job-sort-controls .text-button { border-radius: 0; white-space: nowrap; }
.job-sort-controls .text-button + .text-button { border-left: 1px solid #d8e2df; }
.job-sort-controls .text-button:disabled { color: #aeb8b5; background: #f5f7f6; cursor: not-allowed; }
.admin-dialog { width: min(520px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(20,33,61,.28); }
.admin-dialog::backdrop { background: rgba(20,33,61,.55); }
.admin-dialog form { padding: 28px; display: grid; gap: 16px; }
.admin-dialog h2 { margin: 4px 0 0; }
.admin-dialog .field { display: grid; gap: 6px; }
.admin-dialog input, .admin-dialog select, .admin-dialog textarea { width: 100%; }
.candidate-owner { margin-top: 5px; color: var(--brand-dark); font-size: 13px; }
.status-dot { width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: #aaa; }
.status-dot.online { background: #22a36a; box-shadow: 0 0 0 4px #e2f5ec; }
.activity-list > div { min-height: 54px; display: flex; gap: 13px; }
.activity-mark { width: 10px; height: 10px; margin-top: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.activity-list p { margin: 0; }
.activity-list small { display: block; color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 45px; }
  .hero-card { min-height: 360px; }
  .job-grid { grid-template-columns: 1fr; }
  .job-card > p:last-of-type { min-height: auto; }
  .form-section { grid-template-columns: 1fr; padding: 34px; gap: 30px; }
  .steps { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-body { display: block; }
  .admin-sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; gap: 20px; overflow-x: auto; }
  .admin-brand { margin: 0; white-space: nowrap; }
  .admin-sidebar nav { display: flex; }
  .admin-sidebar nav a { white-space: nowrap; }
  .back-link { margin: 0 0 0 auto; white-space: nowrap; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .topbar { width: calc(100% - 28px); height: 72px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .help-link { font-size: 14px; }
  .hero, .section { width: calc(100% - 28px); }
  .hero { min-height: auto; padding: 42px 0 54px; gap: 38px; }
  h1 { font-size: 43px; }
  h2 { font-size: 31px; }
  .hero-copy > p { font-size: 19px; }
  .hero-button { width: 100%; min-height: 62px; }
  .trust-row { display: grid; gap: 8px; margin-top: 26px; }
  .hero-card { min-height: 330px; border-radius: 30px; }
  .illustration-person { transform: translateX(-50%) scale(.86); transform-origin: bottom; }
  .hero-card-copy { display: grid; }
  .section { margin-bottom: 75px; }
  .section-heading { align-items: start; flex-direction: column; gap: 5px; }
  .job-card { padding: 22px; }
  .job-card h3 { font-size: 25px; }
  .job-actions { grid-template-columns: 1fr; }
  .form-section { width: 100%; margin-top: 0; padding: 32px 14px; border-radius: 0; }
  .form-intro { padding: 0 4px; }
  .application-form { padding: 20px 16px; grid-template-columns: 1fr; gap: 12px; border-radius: 20px; }
  .full-width { grid-column: auto; }
  .field input, .field select, .field textarea { min-height: 58px; font-size: 18px; }
  .choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .choice { min-width: 0; padding: 10px 6px; justify-content: center; font-size: 15px; }
  .choice input { width: 20px; height: 20px; }
  .help-section { padding: 28px 22px; align-items: stretch; flex-direction: column; }
  footer { display: grid; }
  .admin-main { padding: 25px 14px 60px; }
  .admin-sidebar { padding: 14px; }
  .admin-sidebar nav, .back-link { display: none; }
  .admin-header { align-items: start; }
  .admin-header h1 { font-size: 30px; }
  .admin-user div { display: none; }
  .login-card { padding: 28px 22px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-grid article { padding: 16px; }
  .metric-grid strong { font-size: 30px; }
  .admin-panel { padding: 17px 12px; }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .filters { flex-direction: column; }
  .filters input, .filters select { width: 100%; }
  .admin-job-list article { grid-template-columns: 1fr auto; }
  .admin-job-list article > .status-pill { display: none; }
  .job-editor { grid-template-columns: 1fr; padding: 16px 12px; }
}
