:root {
    --app-green: #087f72;
    --app-green-dark: #06665c;
    --app-green-soft: #e8f4ef;
    --app-red: #bd4e2b;
    --app-ink: #20342f;
    --app-muted: #63746a;
    --app-line: #e9eeeb;
    --app-canvas: #f5f7f5;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; color: var(--app-ink); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
svg { flex: none; vertical-align: middle; }
h1, h2, h3, p, dl, dd { margin: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--app-green); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 12px; padding: 12px; border-radius: 8px; background: #fff; color: var(--app-green-dark); }
.skip-link:focus { top: 8px; }
.h5-body { background: #e8eeea; font-size: 14px; line-height: 1.5; }
.h5-app { width: 100%; max-width: 480px; min-height: 100vh; min-height: 100dvh; margin-inline: auto; background: var(--app-canvas); box-shadow: 0 0 60px #20342f08; }
.h5-main { padding-bottom: env(safe-area-inset-bottom, 0px); }
.h5-header { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid #e4ece7; background: #f6faf8; color: var(--app-ink); }
.h5-toolbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 0 20px; }
.app-brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; background: var(--app-green); color: #fff; }
.app-name { font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: 1px; }
.app-tagline { max-width: 52%; color: var(--app-muted); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.toolbar-meta { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; max-width: 62%; }
.toolbar-meta .app-tagline { max-width: 100%; font-size: 11px; }
.records-entry { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--app-green); font-size: 13px; font-weight: 600; }
.toolbar-action { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--app-line); border-radius: 14px; background: #fff; color: var(--app-ink); }
.search-panel { padding: 0 18px 17px; }
.mobile-search-form { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px; border: 1px solid #dce7e0; border-radius: 15px; background: #fff; box-shadow: 0 3px 12px #20342f03; }
.search-input-wrap { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; height: 42px; padding-left: 9px; color: #7e9389; }
.search-input-wrap input { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; outline: none; background: transparent; color: var(--app-ink); font-size: 16px; }
.mobile-search-form:focus-within { border-color: var(--app-green); box-shadow: 0 0 0 3px #087f7210; }
.search-input-wrap input:focus-visible { outline: none; }
.search-input-wrap input::placeholder { color: #8b9992; }
.search-submit { min-width: 60px; min-height: 44px; padding: 0 15px; border: 0; border-radius: 11px; background: var(--app-green); color: #fff; font-size: 14px; font-weight: 600; }
.mobile-tag-filters { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 14px 18px 8px; scrollbar-width: none; }
.mobile-tag-filters::-webkit-scrollbar { display: none; }
.mobile-tag-filter { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: 0 17px; border: 1px solid #e2e9e3; border-radius: 12px; background: #fff; color: #66786e; white-space: nowrap; font-size: 13px; }
.mobile-tag-filter.is-active { border-color: var(--app-green); background: var(--app-green); color: #fff; font-weight: 600; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 6px 20px; }
.list-heading h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: 18px; font-weight: 650; letter-spacing: .2px; }
.list-heading h2 > span { padding: 2px 7px; border-radius: 6px; background: #e6ede7; color: #5d7466; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.list-sort { display: inline-flex; align-items: center; gap: 5px; color: #687b6e; font-size: 12px; }
.clear-filters { display: inline-flex; align-items: center; min-height: 44px; color: var(--app-green); font-size: 12px; }
.mobile-search-summary { margin: -2px 20px 13px; color: var(--app-muted); font-size: 13px; overflow-wrap: anywhere; }
.mobile-cards { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.mobile-job-card { border: 1px solid #e5ece6; border-radius: 18px; background: #fff; box-shadow: 0 3px 12px #20342f03; scroll-margin-top: calc(150px + env(safe-area-inset-top, 0px)); overflow: hidden; }
.job-card-link { display: block; padding: 17px 17px 0; }
.job-card-link:active { background: #f6faf7; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-heading h3 { min-width: 0; flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 17px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.card-cta { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 34px; padding: 7px 11px; border-radius: 8px; background: var(--app-green); color: #fff; font-size: 12px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.card-salary { margin-top: 6px; color: var(--app-red); font-size: 18px; font-weight: 650; line-height: 1.5; letter-spacing: -.15px; overflow-wrap: anywhere; }
.mobile-job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mobile-job-tags > span { max-width: 100%; padding: 3px 8px; border-radius: 6px; background: #f0f5f1; color: #607164; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.card-stats { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 12px; color: var(--app-muted); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.card-stats > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 13px; padding-block: 11px; border-top: 1px solid #eff2ee; }
.card-location { display: flex; align-items: center; gap: 5px; min-width: 0; color: #63746a; font-size: 12px; overflow-wrap: anywhere; }
.card-location svg { color: #8c9e90; }
.card-date { flex: none; margin-left: auto; color: #66766b; font-size: 12px; white-space: nowrap; }
.mobile-empty { display: flex; flex-direction: column; align-items: center; margin-top: 8px; padding: 50px 20px; border: 1px solid var(--app-line); border-radius: 18px; background: #fff; color: #91a297; text-align: center; }
.mobile-empty > svg { box-sizing: content-box; padding: 18px; border-radius: 22px; background: var(--app-green-soft); color: var(--app-green); }
.mobile-empty h3 { margin-top: 24px; color: var(--app-ink); font-size: 18px; font-weight: 600; }
.mobile-empty p { margin-top: 9px; color: var(--app-muted); font-size: 13px; }
.mobile-empty .mobile-button { width: auto; min-width: 160px; margin-top: 25px; }
.mobile-pagination { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px 30px; }
.pagination-button { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 44px; border: 1px solid #dce7df; border-radius: 12px; background: #fff; color: var(--app-green-dark); font-size: 13px; }
.pagination-button.is-disabled { color: #9aa69d; background: #eef2ee; border-color: transparent; }
.pagination-position { color: var(--app-muted); font-size: 12px; }
.list-end { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 27px 24px 32px; color: #93a095; text-align: center; font-size: 11px; }
.list-end::before, .list-end::after { content: ""; width: 25px; height: 1px; background: #d5dfd6; }

/* Job details */
.detail-toolbar { justify-content: center; min-height: 68px; padding-inline: 68px; }
.back-action { position: absolute; left: 16px; top: 12px; }
.toolbar-title { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; line-height: 1.4; }
.detail-summary { margin: 18px 16px 0; padding: 23px 21px; border: 1px solid var(--app-line); border-radius: 20px; background: #fff; }
.detail-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--app-green); font-size: 12px; font-weight: 600; }
.detail-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-topline .detail-eyebrow { margin: 0; }
.save-job-button { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 44px; padding: 8px 12px; border: 1px solid #d8e5dc; border-radius: 10px; background: #fff; color: var(--app-green); font-size: 12px; white-space: nowrap; }
.save-job-button[aria-pressed="true"] { border-color: #c4dfd2; background: var(--app-green-soft); color: var(--app-green-dark); }
.detail-summary h1 { color: var(--app-ink); font-size: 25px; line-height: 1.5; letter-spacing: -.3px; font-weight: 700; overflow-wrap: anywhere; }
.detail-location { display: flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--app-muted); font-size: 13px; overflow-wrap: anywhere; }
.detail-tags { margin-top: 15px; }
.detail-salary-block { padding: 16px 0; margin-top: 17px; border-top: 1px solid var(--app-line); }
.detail-salary-label { display: block; margin-bottom: 3px; color: var(--app-muted); font-size: 12px; }
.detail-salary { color: var(--app-red); font-size: 24px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.detail-published { display: flex; align-items: center; gap: 5px; margin-top: 17px; color: #66766b; font-size: 12px; }
.detail-description { margin: 16px 16px 0; padding: 22px 21px 6px; border: 1px solid var(--app-line); border-radius: 20px; background: #fff; }
.detail-description h2 { display: flex; align-items: center; gap: 9px; color: var(--app-ink); font-size: 17px; font-weight: 650; }
.detail-description h2::before { content: ""; width: 4px; height: 17px; border-radius: 2px; background: var(--app-green); }
.description-content { padding: 20px 0 22px; color: #596b60; font-size: 15px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.has-bottom-action .h5-main { padding-bottom: calc(107px + env(safe-area-inset-bottom, 0px)); }
.bottom-action { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 13px 20px; padding-bottom: calc(13px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--app-line); background: #fff; }
.mobile-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px 18px; border: 0; border-radius: 14px; background: var(--app-green); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; }
.mobile-button:active, .search-submit:active { background: var(--app-green-dark); }
.mobile-button:disabled { color: #f7f9f7; background: #aab8ae; cursor: default; }

/* Automatic application guide */
.application-guide { padding: 22px 20px 32px; }
.guide-job { margin-bottom: 25px; padding: 19px; border: 1px solid #dce8df; border-radius: 18px; background: #edf5ef; }
.guide-job-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--app-green); font-size: 12px; }
.guide-job h2 { font-size: 20px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.guide-intro { margin-top: 8px; color: var(--app-muted); font-size: 12px; line-height: 1.7; }
.guide-label { margin-bottom: 22px; color: #687b6e; text-align: center; font-size: 11px; }
.guide-message { max-width: 90%; margin-bottom: 16px; padding: 14px 16px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.guide-message p { white-space: pre-wrap; }
.message-self { width: fit-content; margin-left: auto; border-radius: 17px 4px 17px 17px; background: var(--app-green); color: #fff; }
.message-guide { width: fit-content; margin-right: auto; border: 1px solid #e4ece5; border-radius: 4px 17px 17px 17px; background: #fff; color: #586b5e; }
.guide-action { margin-top: 30px; }
.external-host { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 12px; color: var(--app-muted); text-align: center; font-size: 12px; overflow-wrap: anywhere; }
.guide-note { display: flex; align-items: flex-start; justify-content: center; gap: 6px; padding: 0 3px; margin-top: 22px; color: #687b6e; text-align: center; font-size: 11px; line-height: 1.8; }
.guide-back-link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 7px; color: var(--app-green); font-size: 13px; }
.inquiry-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.inquiry-choices legend { margin-bottom: 12px; color: var(--app-ink); font-size: 14px; font-weight: 600; }
.inquiry-choice { position: relative; display: flex; cursor: pointer; }
.inquiry-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.inquiry-choice span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid #dce6df; border-radius: 10px; background: #fff; color: #687c6d; font-size: 12px; }
.inquiry-choice input:checked + span { border-color: var(--app-green); background: var(--app-green-soft); color: var(--app-green-dark); }
.inquiry-choice input:focus-visible + span { outline: 2px solid var(--app-green); outline-offset: 3px; }
.inquiry-label { display: block; margin-bottom: 8px; color: var(--app-muted); font-size: 12px; }
.inquiry-draft { display: block; width: 100%; min-height: 112px; resize: vertical; padding: 12px 14px; border: 1px solid #dce6df; border-radius: 12px; background: #fff; color: #566e5f; font: inherit; font-size: 14px; line-height: 1.7; }
.inquiry-copy-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.inquiry-copy { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--app-green); font-size: 12px; }
.inquiry-copy-row [role="status"] { color: var(--app-muted); font-size: 11px; }
.inquiry-note { margin: 2px 0 18px; color: var(--app-muted); font-size: 12px; line-height: 1.8; }
.change-contact { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 14px; border: 1px solid #d3e3d9; border-radius: 12px; background: #fff; color: var(--app-green); font-size: 13px; }

/* Guest activity */
.records-panel { padding: 20px 16px 32px; }
.records-hint { margin-bottom: 20px; color: var(--app-muted); font-size: 12px; line-height: 1.8; }
.record-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 5px; border: 1px solid #e0e8e2; border-radius: 14px; background: #edf2ed; }
.record-tabs button { min-height: 44px; padding: 9px 6px; border: 0; border-radius: 10px; background: transparent; color: #687d6c; font-size: 13px; }
.record-tabs button[aria-pressed="true"] { background: #fff; color: var(--app-green-dark); font-weight: 600; box-shadow: 0 2px 7px #20342f07; }
.records-toolbar { display: flex; justify-content: flex-end; margin: 6px 0; }
.record-clear { min-height: 44px; padding: 4px; border: 0; background: transparent; color: var(--app-muted); font-size: 12px; }
.record-clear:disabled { color: #a2aea5; cursor: default; }
.record-list { display: flex; flex-direction: column; gap: 12px; }
.record-item { overflow: hidden; border: 1px solid #e2eae4; border-radius: 18px; background: #fff; }
.record-item-main { display: block; padding: 19px 18px 13px; }
.record-item-title { color: var(--app-ink); font-size: 17px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.record-location { margin-top: 13px; color: var(--app-muted); font-size: 12px; overflow-wrap: anywhere; }
.record-published { margin-top: 5px; color: #7c8c80; font-size: 11px; }
.record-item-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-inline: 18px; padding: 8px 0; border-top: 1px solid var(--app-line); }
.record-date { color: #748678; font-size: 11px; }
.record-empty { padding: 37px 22px; border: 1px solid var(--app-line); border-radius: 16px; background: #fff; color: var(--app-muted); font-size: 13px; line-height: 1.9; text-align: center; }
.record-status { margin: 12px 16px; padding: 10px 13px; border-radius: 10px; background: #e9f3ec; color: #557862; font-size: 12px; line-height: 1.8; }
.records-panel .record-status { margin-inline: 0; }
.record-status[hidden] { display: none; }

@media (hover: hover) {
    .mobile-job-card:hover { border-color: #b8d7c7; box-shadow: 0 5px 20px #20342f07; }
    .mobile-tag-filter:not(.is-active):hover { border-color: #bed1c4; background: #f4f9f5; }
    .mobile-button:hover, .search-submit:hover { background: var(--app-green-dark); }
}
@media (max-width: 600px) {
    .h5-app, .bottom-action { max-width: none; }
}
@media (max-width: 350px) {
    .h5-toolbar { padding-inline: 16px; }
    .app-tagline { font-size: 10px; }
    .mobile-cards { padding-inline: 12px; }
    .job-card-link { padding-inline: 14px; }
    .card-heading h3 { font-size: 16px; }
    .card-salary { font-size: 17px; }
    .detail-summary, .detail-description { margin-inline: 12px; padding-inline: 17px; }
    .detail-summary h1 { font-size: 23px; }
    .detail-salary { font-size: 21px; }
    .application-guide { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Only visible during authenticated administrator previews */
.admin-preview-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; padding: 9px 16px; border-bottom: 1px solid var(--app-line); background: var(--app-primary-soft); color: var(--app-ink); font-size: 12px; line-height: 1.6; }
.admin-preview-banner strong { font-weight: 650; }
.admin-preview-actions { display: flex; align-items: center; gap: 14px; }
.admin-preview-actions form { margin: 0; }
.admin-preview-actions a, .admin-preview-actions button { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0; border: 0; background: transparent; color: var(--app-primary-dark); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

.mobile-job-tags > .hiring-status { display: inline-flex; align-items: center; gap: 5px; background: var(--app-primary-soft); color: var(--app-primary-dark); font-weight: 600; }
.hiring-status::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
