:root {
    --bg: #f4f1ea;
    --surface: #ffffff;
    --surface-soft: #fdf8ef;
    --text: #1f2933;
    --muted: #5c6975;
    --border: #dde4ea;
    --primary: #d95d39;
    --accent: #176087;
    --success: #18603b;
    --danger: #9b2c2c;
    --shadow: 0 20px 45px rgba(31, 41, 51, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(217, 93, 57, 0.08), transparent 28%),
        linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, sans-serif;
    line-height: 1.5;
}

main {
    padding: 0 16px 40px;
}

.site-header,
.page-shell,
.hero,
.search-panel,
.section {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 16px;
}

.brand-lockup {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.brand-qr-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    text-decoration: none;
}

.brand-qr {
    display: block;
    width: 44px;
    height: 44px;
    color: #ff0000;
}

.top-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.top-nav a,
.ghost-link,
.back-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(23, 96, 135, 0.08);
    color: var(--accent);
    font-weight: 700;
}

.nav-button {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-lockup {
        font-size: 1rem;
    }
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.hero {
    display: grid;
    gap: 18px;
    padding: 18px 16px 14px;
}

.hero__text,
.hero__card,
.search-panel,
.card,
.job-card,
.detail-card,
.sidebar-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.hero__text,
.hero__card,
.search-panel,
.card,
.detail-card,
.sidebar-card {
    padding: 22px;
}

.hero h1,
.section h1,
.section h2 {
    margin: 0;
    line-height: 1.06;
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 4.4rem);
    max-width: 11ch;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__desc,
.muted,
.status-meta,
.detail-text {
    color: var(--muted);
}

.section--seo-copy {
    margin-top: 12px;
}

.seo-copy h2 {
    margin: 0 0 12px;
}

.feature-list {
    margin: 0;
    padding-left: 20px;
}

.search-panel {
    margin-top: 12px;
    position: relative;
    z-index: 40;
    isolation: isolate;
}

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

label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.field-group {
    position: relative;
}

.field-group > span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(23, 96, 135, 0.16);
    border-color: var(--accent);
}

.location-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.location-picker:focus-visible {
    outline: 3px solid rgba(23, 96, 135, 0.16);
    border-color: var(--accent);
}

.location-picker input {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.location-picker__chevron {
    color: var(--muted);
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.location-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 520px;
    max-width: calc(100vw - 24px);
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.location-dropdown__head,
.location-group__province {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.location-dropdown__head {
    margin-bottom: 12px;
}

.location-dropdown__head strong {
    font-size: 1.1rem;
}

.location-dropdown__clear {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.location-dropdown__search {
    margin-bottom: 12px;
}

.location-dropdown__body {
    display: grid;
    gap: 14px;
    align-content: start;
}

.location-dropdown__panes {
    position: relative;
}

.location-dropdown__global {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: block;
}

.location-tree {
    display: grid;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
    align-content: start;
}

.location-group {
    padding: 12px 14px;
    border: 1px solid rgba(23, 96, 135, 0.12);
    border-radius: 18px;
    background: rgba(255, 249, 240, 0.55);
}

.location-group.is-active {
    background: rgba(23, 96, 135, 0.05);
    border-color: rgba(23, 96, 135, 0.25);
}

.location-group__toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(23, 96, 135, 0.08);
    color: var(--accent);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.ward-panel {
    position: absolute;
    top: 0;
    left: calc(100% + 14px);
    width: min(360px, calc(100vw - 64px));
    max-height: 420px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.ward-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ward-list {
    display: grid;
    gap: 10px;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 6px;
}

.location-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.location-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.location-check__box {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(23, 96, 135, 0.3);
    border-radius: 6px;
    background: #fff;
    flex: 0 0 auto;
}

.location-check__box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    opacity: 0;
}

.location-check input:checked + .location-check__box {
    background: var(--primary);
    border-color: var(--primary);
}

.location-check input:checked + .location-check__box::after {
    opacity: 1;
}

.location-check__box.is-partial {
    background: rgba(217, 93, 57, 0.18);
    border-color: var(--primary);
}

.location-check__box.is-partial::after {
    left: 4px;
    top: 8px;
    width: 10px;
    height: 0;
    border-right: 0;
    border-bottom: 2px solid var(--primary);
    transform: none;
    opacity: 1;
}

.location-check__label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
}

.location-check__meta {
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.location-check--all,
.location-check--ward {
    padding-left: 4px;
}

.empty-state--compact {
    padding: 20px 16px;
    font-size: 0.95rem;
}

.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 18px;
    padding: 14px 18px;
    font: inherit;
    font-weight: 100;
    cursor: pointer;
    text-decoration: none;
}

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

.secondary-button {
    background: var(--accent);
    color: #fff;
}

.danger-button {
    background: #fff2f2;
    color: var(--danger);
    border: 1px solid #f1bcbc;
}

.button-disabled {
    background: #d7e0e6;
    color: #425361;
    border: 1px solid #c2ced7;
    pointer-events: none;
    cursor: default;
}

.section {
    padding: 28px 16px 0;
    position: relative;
    z-index: 1;
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.job-grid {
    display: grid;
    gap: 16px;
}

.admin-shell {
    display: grid;
    gap: 24px;
}

.admin-workspace {
    display: grid;
    gap: 24px;
}

.admin-menu {
    display: grid;
    gap: 16px;
    align-content: start;
}

.admin-menu__head h2 {
    margin: 0;
}

.admin-menu__list {
    display: grid;
    gap: 10px;
}

.admin-menu__button {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.admin-menu__button.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.admin-content {
    min-width: 0;
    display: grid;
}

.admin-panel {
    min-width: 0;
}

.admin-panel[hidden] {
    display: none;
}

.pagination-shell {
    display: grid;
    gap: 12px;
    justify-items: center;
    margin-top: 24px;
}

.pagination-info {
    color: var(--muted);
    font-weight: 700;
}

.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pagination-button {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pagination-button.is-active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.job-card {
    padding: 20px;
}

.job-card h3,
.detail-card h1 {
    margin: 0 0 12px;
}

.job-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.job-card__title-wrap {
    min-width: 0;
}

.job-card__title-wrap .eyebrow {
    margin-bottom: 8px;
}

.job-card__title-wrap h3 {
    margin-bottom: 8px;
}

.job-card__logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid var(--border);
    object-fit: cover;
    background: #fff;
    flex: 0 0 auto;
}

.job-card__logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 96, 135, 0.08);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 800;
}

.chip-row,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--surface-soft);
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
}

.page-shell {
    padding: 8px 16px 40px;
}

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

.employer-hero {
    display: grid;
    gap: 18px;
    background:
        linear-gradient(135deg, rgba(255, 247, 238, 0.98), rgba(245, 250, 252, 0.95)),
        rgba(255, 255, 255, 0.92);
}

.employer-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    max-width: 15ch;
}

.employer-hero__intro,
.employer-hero__access {
    display: grid;
    gap: 14px;
}

.employer-access-note {
    margin: 0;
}

.employer-access-form {
    margin: 0;
}

.employer-flow {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.employer-flow__item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    text-decoration: none;
}

.employer-flow__item strong {
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.employer-flow__item span {
    font-weight: 700;
}

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

.employer-section__head {
    margin-bottom: 0;
}

.employer-section__head .detail-text {
    max-width: 62ch;
    margin-top: 8px;
}

.employer-two-column,
.employer-operations {
    display: grid;
    gap: 18px;
}

.employer-edit-stage {
    min-height: 0;
}

.employer-edit-landing {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(23, 96, 135, 0.08), rgba(217, 93, 57, 0.08)),
        rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 96, 135, 0.12);
}

.employer-edit-landing__hero {
    display: grid;
    gap: 10px;
}

.employer-edit-landing__hero h3 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.1;
    max-width: 18ch;
}

.employer-edit-landing__features {
    display: grid;
    gap: 12px;
}

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

.employer-panel-card {
    min-width: 0;
}

.employer-form-card,
.employer-list-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
}

.employer-list-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.employer-list-card__head h3,
.employer-inline-block h3 {
    margin: 0 0 6px;
}

.employer-inline-block {
    display: grid;
    gap: 10px;
}

.panel-scroller {
    overflow: auto;
    padding-right: 4px;
}

.panel-scroller--small {
    max-height: 320px;
}

.panel-scroller--medium {
    max-height: 520px;
}

.panel-scroller--tall {
    max-height: 640px;
}

.employer-job-list {
    min-height: 120px;
}

.employer-job-list--compact {
    display: grid;
    gap: 14px;
}

.employer-job-item {
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
}

.employer-job-item__link {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    color: inherit;
    text-decoration: none;
}

.employer-job-item__main {
    min-width: 0;
    flex: 1 1 auto;
}

.employer-job-item__heading h3 {
    margin: 0;
}

.employer-job-item__heading .eyebrow {
    margin-bottom: 8px;
}

.employer-job-item__chips {
    margin-top: 10px;
}

.employer-job-item__meta {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
}

.employer-job-item__actions {
    margin-top: 16px;
}

.employer-other-jobs {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.employer-other-jobs__list {
    display: grid;
    gap: 10px;
}

.employer-other-jobs__item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    text-decoration: none;
}

.employer-other-jobs__item span {
    color: var(--muted);
    font-size: 0.92rem;
}

.application-card {
    display: grid;
    gap: 14px;
}

.application-card__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.application-card__selector {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(23, 96, 135, 0.07);
    white-space: nowrap;
}

.application-card__selector span {
    margin: 0;
    font-weight: 700;
}

.application-card__selector input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

.application-card__identity {
    min-width: 0;
    flex: 1 1 auto;
}

.application-card__identity h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.application-card__identity .detail-text,
.application-card__summary {
    margin: 0;
}

.application-card__chips,
.application-card__actions {
    margin-top: 0;
}

.compact-grid {
    grid-template-columns: 1fr;
}

.single-column-grid {
    grid-template-columns: 1fr;
}

.back-link {
    display: inline-block;
    margin: 8px 0 16px;
}

.detail-layout {
    display: grid;
    gap: 16px;
}

.detail-card {
    content-visibility: auto;
}

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

.detail-block {
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.sidebar-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

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

.detail-stack {
    display: grid;
    gap: 8px;
}

.business-card,
.company-profile,
.company-sidebar {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 249, 240, 0.95), rgba(255, 255, 255, 0.98));
}

.business-card {
    display: grid;
    gap: 14px;
}

.business-card__header,
.company-profile__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.business-card-logo,
.company-profile__logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    border: 1px solid var(--border);
    object-fit: cover;
    background: #fff;
    flex: 0 0 auto;
}

.business-card-logo--placeholder,
.company-profile__logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 96, 135, 0.08);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 800;
}

.company-profile,
.company-sidebar {
    padding: 18px;
}

.company-profile {
    margin-top: 18px;
}

.company-profile h2,
.company-sidebar h2 {
    margin: 0;
}

.company-profile__description {
    margin: 14px 0 0;
    color: var(--muted);
}

.meta-item strong {
    display: block;
    margin-bottom: 4px;
}

.form-section {
    padding-top: 10px;
}

.full {
    grid-column: 1 / -1;
}

.inline-form {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.auth-switcher {
    display: grid;
    gap: 16px;
}

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

.auth-tab-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.auth-tab-link.is-active {
    color: var(--primary);
}

.auth-subhead {
    margin-top: 18px;
    margin-bottom: 14px;
}

.status-text {
    margin: 12px 2px 0;
    font-weight: 700;
}

.is-success {
    color: var(--success);
}

.is-error {
    color: var(--danger);
}

.empty-state {
    padding: 32px 20px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.68);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

.chat-layout {
    display: grid;
    gap: 16px;
}

.chat-thread {
    display: grid;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.chat-bubble {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    justify-self: start;
    max-width: min(100%, 72%);
}

.chat-bubble.is-self {
    background: rgba(23, 96, 135, 0.08);
    border-color: rgba(23, 96, 135, 0.18);
    justify-self: end;
}

.chat-bubble__sender {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chat-bubble__body {
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-bubble__meta {
    margin-top: 2px;
}

.contact-card {
    width: 100%;
    text-align: left;
    cursor: default;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
}

.contact-card.is-active {
    border: 1px solid rgba(217, 93, 57, 0.5);
    box-shadow: 0 16px 28px rgba(217, 93, 57, 0.12);
}

.chat-contacts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.contact-card__main {
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.contact-card__delete {
    margin-top: 0;
    align-self: center;
}

.contact-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.danger-link {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--danger);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.note-box {
    margin-bottom: 16px;
    color: var(--muted);
}

.jobseeker-import-form {
    margin-bottom: 18px;
}

.jobseeker-import-form h3 {
    margin: 0 0 8px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
}

.toolbar label {
    flex: 1 1 180px;
}

.checkbox-list {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.checkbox-list input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-list--soft {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.checkbox-list__box {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid rgba(23, 96, 135, 0.3);
    background: #fff;
    position: relative;
    flex: 0 0 auto;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checkbox-list__box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    opacity: 0;
}

.checkbox-list__text {
    margin: 0;
    font-weight: 700;
    color: var(--text);
}

.checkbox-list input[type="checkbox"]:checked + .checkbox-list__box {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-list input[type="checkbox"]:checked + .checkbox-list__box::after {
    opacity: 1;
}

.checkbox-list input[type="checkbox"]:focus-visible + .checkbox-list__box {
    outline: 3px solid rgba(23, 96, 135, 0.16);
    outline-offset: 2px;
}

.muted-box {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--border);
}

.info-box {
    margin-top: 12px;
}

.admin-matrix {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.admin-matrix__scroller {
    overflow: auto;
}

.admin-matrix__table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.82);
}

.admin-matrix__table th,
.admin-matrix__table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    vertical-align: middle;
}

.admin-matrix__table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f4ec;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-matrix__table td:first-child,
.admin-matrix__table th:first-child,
.admin-matrix__table td:nth-child(2),
.admin-matrix__table th:nth-child(2) {
    text-align: left;
}

.admin-matrix__identity {
    display: grid;
    gap: 4px;
    min-width: 180px;
}

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

#admin-jobs,
#employer-permissions,
#jobseeker-availability-list,
#admin-employer-business-list {
    grid-template-columns: 1fr;
}

.admin-job-list {
    display: grid;
    gap: 14px;
}

.admin-job-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
}

.admin-job-list__main {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 10px;
}

.admin-job-list__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.admin-job-list__head h3 {
    margin: 0;
}

.admin-job-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-job-list__details {
    display: grid;
    gap: 6px;
}

.admin-job-list__details .detail-text {
    margin: 0;
}

.admin-job-list__actions {
    flex: 0 0 auto;
    align-self: stretch;
    justify-content: flex-end;
}

.admin-business-list {
    display: grid;
    gap: 14px;
    width: 100%;
}

.admin-business-list__item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
}

.admin-business-list__main {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 10px;
}

.admin-business-list__actions {
    flex: 0 0 auto;
    align-self: stretch;
    justify-content: flex-end;
}

.admin-matrix__save {
    padding: 10px 14px;
    border-radius: 14px;
}

.admin-reset-password-form--inline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.admin-reset-password-form--inline input {
    min-width: 150px;
    padding: 12px 14px;
}

.admin-reset-password-form--inline button {
    padding: 12px 14px;
    border-radius: 14px;
}

.admin-matrix-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-matrix-toggle__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-matrix-toggle__box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(23, 96, 135, 0.26);
    background: #fff;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.admin-matrix-toggle__box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    opacity: 0;
}

.admin-matrix-toggle__input:checked + .admin-matrix-toggle__box {
    background: var(--primary);
    border-color: var(--primary);
}

.admin-matrix-toggle__input:checked + .admin-matrix-toggle__box::after {
    opacity: 1;
}

.admin-matrix-toggle__input:focus-visible + .admin-matrix-toggle__box {
    outline: 3px solid rgba(23, 96, 135, 0.16);
    outline-offset: 2px;
}

.jobseeker-availability-form {
    grid-template-columns: minmax(260px, 340px) minmax(220px, 340px);
    align-items: center;
    gap: 16px;
}

.jobseeker-availability-toggle {
    min-height: 54px;
}

.jobseeker-availability-form .primary-button {
    width: 100%;
}

@media (max-width: 860px) {
    .admin-job-list__item,
    .admin-job-list__head,
    .admin-business-list__item {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-job-list__meta,
    .admin-job-list__actions,
    .admin-business-list__actions {
        justify-content: flex-start;
    }
}

.hidden {
    display: none;
}

.chat-search-form {
    margin-bottom: 12px;
}

.chat-attachment {
    display: inline-grid;
    gap: 8px;
    margin-top: 12px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
}

.chat-image {
    width: min(100%, 260px);
    border-radius: 18px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.skeleton-line {
    height: 14px;
    border-radius: 999px;
    margin-top: 12px;
    background: linear-gradient(90deg, #eef1f5, #dde4ea, #eef1f5);
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
}

.skeleton-line.short {
    width: 50%;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (min-width: 720px) {
    .hero {
        grid-template-columns: 1.7fr 1fr;
    }

    .admin-workspace {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
        align-items: start;
    }

    .admin-menu {
        position: sticky;
        top: 100px;
    }

    .search-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: end;
    }

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

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

    .detail-layout {
        grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
    }

    .inline-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }

    .chat-layout {
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    }

    .employer-hero {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
        align-items: start;
    }

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

    .employer-vertical-panels {
        grid-template-columns: 1fr;
    }

    .application-card__top {
        align-items: center;
    }

    .compact-grid,
    .single-column-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 719px) {
    .location-dropdown {
        width: 100%;
    }

    .ward-panel {
        position: static;
        width: 100%;
        margin-top: 14px;
    }

    .jobseeker-availability-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .application-card__top {
        flex-direction: column;
        align-items: stretch;
    }

    .application-card__selector {
        width: fit-content;
    }

    .employer-job-item__link {
        flex-direction: column;
        align-items: stretch;
    }

    .employer-job-item__meta {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .skeleton-line {
        animation: none;
    }
}
