/* Shared visual system across the entire application. */
:root {
    --bg: #f7f7f2; --surface: #fff; --surface-strong: #fff; --surface-soft: #edf0e7;
    --text: #172c32; --muted: #596b66; --line: #dce2d8;
    --primary: #244bdd; --primary-dark: #1939ac; --accent: #c5d7ad;
    --shadow: none; --shadow-soft: 0 3px 12px #172c3206; --radius: 18px; --radius-sm: 12px;
}
body { background: var(--bg); color: var(--text); }
.site-shell { min-height: 100svh; display: flex; flex-direction: column; }
main { min-height: 0; flex: 1; }
.container { width: min(1160px, calc(100% - 3rem)); }
.narrow { max-width: 720px; }
.site-header { background: #f7f7f2f5; border-color: #e0e5da; }
.nav-shell { padding: 1rem 0; }
.brand { gap: .65rem; }
.brand-mark { background: #244bdd; border-radius: 13px; box-shadow: none; width: 44px; height: 44px; }
.brand strong { font: 700 1.08rem 'DM Sans',sans-serif; letter-spacing: -.04em; color: var(--text); }
.brand small { font-size: .72rem; color: var(--muted); }
.nav-desktop { gap: .7rem; }
.nav-links { gap: .15rem; }
.nav-links a { padding: .65rem .7rem; font-size: .85rem; font-weight: 500; color: #344943; }
.nav-links a[aria-current="page"] { background: #e9eee3; color: #27472d; font-weight: 700; }
.nav-cta .button { background: #172c32; color: #fff; }
.nav-cta .button:hover { background: #304b50; }
.menu-toggle { border-color: var(--line); border-radius: 11px; }
.mobile-menu-links a { background: #fff; border-color: var(--line); border-radius: 10px; font-size: .9rem; }
.mobile-menu-register { background: #244bdd !important; }
.section { padding: 3rem 0; }
.section-tight { padding-top: 0; }
.eyebrow { background: transparent; color: #496145; font-size: .72rem; padding: 0; letter-spacing: .1em; font-weight: 700; }
h1,h2 { font-family: 'DM Sans',sans-serif; }
h1 { font-size: clamp(2rem,4vw,3rem); line-height: 1.12; letter-spacing: -.055em; margin-top: .65rem; }
h2 { font-size: 1.45rem; line-height: 1.25; letter-spacing: -.035em; }
h3 { line-height: 1.4; }
.section-head { gap: 1.5rem; margin-bottom: 1.5rem; }
.section-head h1 { margin-top: .5rem; }
.section-head p,.page-head p { margin-top: .85rem; color: var(--muted); line-height: 1.65; }
.card,.job-card,.category-card,.step-card,.stat-card { background: #fff; border-color: var(--line); border-radius: 16px; box-shadow: none; }
.card { padding: 1.5rem; }
.button,.link-button { border-radius: 9px; font-size: .88rem; font-weight: 700; gap: .7rem; min-height: 44px; padding: .75rem 1rem; }
.button { background: #244bdd; }
.button:hover { background: #1939ac; }
.button-secondary { background: #e9eee3; color: #304b29; }
.button-secondary:hover { background: #dce6d3; color: #263e20; }
.button-danger { background: #b92f35; color: #fff; }
.button-danger:hover { background: #96282d; color: #fff; }
.button-sm { min-height: 40px; font-size: .8rem; padding: .6rem .85rem; }
.text-link { font-size: .88rem; font-weight: 600; }
label { font-size: .82rem; font-weight: 600; }
input,select,textarea { border-radius: 9px; padding: .8rem .9rem; min-height: 44px; font-size: .95rem; border-color: #d6ded2; background: #fff; }
input::placeholder,textarea::placeholder { color: #768079; }
input:focus,select:focus,textarea:focus { border-color: #244bdd; box-shadow: 0 0 0 3px #244bdd14; }
input[type="checkbox"],input[type="radio"] { width: 18px; height: 18px; min-height: 18px; padding: 0; accent-color: #244bdd; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline: 3px solid #244bdd; outline-offset: 4px; }
.pill { font-size: .72rem; padding: .35rem .65rem; font-weight: 600; background: #eef1e9; color: #3c5735; }
.pill-accent { background: #f2eddb; color: #795b20; }
.pill-outline { background: #fff; color: #596b66; }
.stack { gap: 1.15rem; }
.two-col { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.three-col { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.prose-page { max-width: 800px; gap: 1.35rem; }
.prose-page h2 { margin-bottom: .65rem; }
.prose-page p { font-size: .95rem; line-height: 1.8; }
.prose-page a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.prose-page .card p+p { margin-top: 1rem; }
.auth-page .narrow { max-width: 530px; }
.auth-page .section { padding: 3rem 0 4rem; }
.auth-page h1 { margin-bottom: 1.5rem; font-size: 2.25rem; }
.auth-page form.card { padding: 1.75rem; }
.auth-page .checkbox { justify-content: flex-start; gap: .6rem; font-size: .85rem; }
.auth-page .two-col { grid-template-columns: 1fr; }
.auth-page .text-link { text-align: center; padding: .35rem; }
.narrow > h1 { margin-bottom: 1.25rem; }
.narrow > p { color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.profile-helper-note { background: #edf2e7; border-color: #dce6d3; border-radius: 10px; color: #3d5635; }
.profile-helper-note p { font-size: .85rem; line-height: 1.65; }
.job-focus { border-radius: 20px; box-shadow: none; padding: 2rem; }
.job-focus-title h1 { font-size: clamp(1.8rem,3.5vw,2.8rem); line-height: 1.16; }
.job-focus-title .lead { max-width: 48rem; font-size: .9rem; }
.job-focus-metrics { background: #eff2e8; border-color: #dce5d2; border-radius: 12px; }
.focus-metric { background: transparent; border-color: #dce2d8; }
.focus-metric strong { font-size: 1.15rem; }
.focus-detail-box,.auth-apply-prompt { background: #fafbf7; border: 1px solid #e1e6db; border-radius: 12px; box-shadow: none; }
.focus-apply-button { border-radius: 11px; background: #244bdd; box-shadow: none; }
.focus-apply-button:hover { background: #1939ac; }
.job-focus-cta { padding-top: 1rem; }
.job-focus-footer { color: var(--muted); border-color: var(--line); font-size: .8rem; }
.job-focus-subtitle { color: var(--muted); }
.apply-modal-card { border-radius: 18px; }
.dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.stats-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.stat-card { padding: 1.25rem; }
.stat-card strong { color: #172c32; font-size: 2rem; line-height: 1.1; }
.stat-card span { font-size: .8rem; color: var(--muted); }
.table-item { gap: 1rem; padding: 1rem 0; border-color: var(--line); }
.table-item strong { font-size: .93rem; line-height: 1.45; }
.table-item span { font-size: .8rem; }
.table-item > div { min-width: 0; }
.inbox-panel,.info-chip,.applicant-identity { border-color: var(--line); border-radius: 13px; box-shadow: none; }
.info-chip { background: #f5f7f0; }
.chat-shell { border-radius: 18px; }
.chat-header { border-color: var(--line); }
.chat-header h1 { font-size: 1.65rem; }
.chat-bubble { background: #f0f3e9; border-color: #e0e7d8; border-radius: 14px; }
.chat-bubble-own { background: #edf0ff; border-color: #dce1f5; }
.chat-bubble p { font-size: .92rem; }
.chat-avatar,.chat-list-item { border-radius: 12px; }
.chat-avatar { background: #e4ecd9; color: #3b5731; }
.chat-list-item { border-color: var(--line); }
.chat-form { border-color: var(--line); }
.nav-badge { background: #244bdd; font-size: .7rem; min-width: 1.2rem; height: 1.2rem; }
.home-footer { margin-top: auto; }
.footer-brand { font-weight: 700; }
.footer-brand span { font-weight: 400; }
.home-footer a { font-size: .76rem; }
.home-footer-inner { min-height: 48px; }
/* Jobs: readable rows and a compact search panel. */
.jobs-heading { padding: 2rem 0 2.25rem; }
.page-back { display: inline-flex; align-items: center; gap: .65rem; font-size: .76rem; color: var(--muted); min-height: 32px; margin-bottom: .75rem; }
.page-back span { color: #a3afa0; }
.page-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.page-heading-row h1 { margin: 0; font-size: clamp(2rem,3.4vw,2.8rem); line-height: 1.12; }
.page-heading-row h1 span { color: #66765d; }
.page-heading-row p { margin-top: .8rem; font-size: .92rem; }
.page-heading-row > .button { font-size: .8rem; }
.jobs-layout { grid-template-columns: 270px minmax(0,1fr); gap: 2rem; align-items: start; }
.job-filters { padding: 1.3rem; }
.job-filters > summary { display: none; }
.job-filters .stack { gap: 1rem; }
.filter-heading { font-size: 1rem; margin-bottom: .15rem; }
.filter-divider { height: 1px; background: var(--line); margin: .15rem 0; }
.job-filters input,.job-filters select { font-size: .83rem; padding: .72rem .75rem; min-width: 0; }
.filter-location-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.filter-reset { display: block; font-size: .78rem; color: var(--muted); text-align: center; text-decoration: underline; text-underline-offset: 3px; padding: .3rem; }
.filter-info { color: var(--muted); font-size: .72rem; line-height: 1.65; }
.filter-info summary { cursor: pointer; font-size: .72rem; }
.filter-info p { margin-top: .5rem; }
.filter-info a { text-decoration: underline; }
.jobs-results { min-width: 0; }
.jobs-results .results-bar { margin-bottom: 1rem; min-height: 32px; flex-direction: row; align-items: center; }
.results-bar strong { font-size: .88rem; }
.results-bar > span { color: var(--muted); font-size: .76rem; }
.job-grid { grid-template-columns: minmax(0,1fr); gap: 1rem; }
.job-listing { display: grid; grid-template-columns: minmax(0,1fr) 145px; gap: 1.5rem; padding: 1.45rem; align-items: stretch; border-radius: 15px; }
.job-listing:hover { transform: none; box-shadow: 0 5px 20px #172c3206; border-color: #b4c0ac; }
.listing-main { min-width: 0; }
.listing-category { color: #4a6540; background: #edf2e6; display: inline-flex; padding: .25rem .55rem; border-radius: 5px; font-size: .68rem; font-weight: 600; margin-bottom: .65rem; }
.job-listing h3 { font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.4; margin: 0 0 .5rem; }
.job-listing h3 a:hover { color: #244bdd; }
.job-listing .listing-description { color: var(--muted); line-height: 1.6; font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .9rem; }
.listing-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.listing-meta > span { display: inline-flex; align-items: center; gap: .35rem; font-size: .73rem; color: #596b66; }
.listing-meta svg { width: 15px; height: 15px; flex: 0 0 auto; }
.listing-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 1.25rem; padding-top: .2rem; text-align: right; }
.listing-price strong { display: block; color: var(--text); font-size: 1.15rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.4; }
.listing-price > span { color: var(--muted); display: block; font-size: .72rem; line-height: 1.6; max-width: 145px; }
.listing-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; color: #244bdd; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.listing-link span { font-size: 1.15rem; }
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state p { color: var(--muted); margin: .8rem 0 1.5rem; font-size: .92rem; }
.pagination { margin-top: 1.5rem; }
@media (max-width: 1100px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: inline-flex !important; }
}
@media (max-width: 800px) {
    .jobs-layout { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
    .job-filters { padding: 0; }
    .job-filters > summary { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; cursor: pointer; font-size: .88rem; font-weight: 600; list-style: none; }
    .job-filters > summary::-webkit-details-marker { display: none; }
    .job-filters > form { padding: 0 1.2rem 1.2rem; }
    .job-filters[open] > summary { margin-bottom: .25rem; }
    .filter-heading { display: none; }
    .page-heading-row { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .dashboard-grid,.dashboard-grid-wide { grid-template-columns: minmax(0,1fr); }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .applicant-layout { grid-template-columns: minmax(0,1fr); }
    .section-head { flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .container,.home-page .container { width: calc(100% - 2.25rem); }
    .section { padding: 1.75rem 0 2rem; }
    .section-tight { padding-top: 0; }
    .nav-shell { padding: .8rem 0; }
    .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
    .brand strong { font-size: 1rem; }
    .brand small { font-size: .65rem; }
    .brand { gap: .55rem; }
    h1 { font-size: 2rem; line-height: 1.15; }
    h2 { font-size: 1.25rem; }
    .card { padding: 1.15rem; border-radius: 13px; }
    .section-head,.results-bar { align-items: flex-start; }
    .two-col,.three-col { grid-template-columns: minmax(0,1fr); }
    input,select,textarea { font-size: 16px; }
    .auth-page .section { padding: 2rem 0; }
    .auth-page form.card { padding: 1.2rem; }
    .auth-page h1 { font-size: 2rem; }
    .jobs-heading { padding: 1.25rem 0 1.5rem; }
    .page-heading-row h1 { font-size: 2rem; }
    .page-heading-row > .button { font-size: .75rem; }
    .results-bar > span { display: none; }
    .job-listing { grid-template-columns: minmax(0,1fr); gap: 1rem; padding: 1.2rem; }
    .job-listing h3 { font-size: 1.03rem; }
    .listing-side { flex-direction: row; align-items: center; text-align: left; border-top: 1px solid #e9ede3; padding-top: .85rem; gap: 1rem; }
    .listing-price strong { font-size: 1.08rem; }
    .listing-link { font-size: .76rem; gap: .5rem; }
    .listing-price > span { max-width: 150px; }
    .job-focus { padding: 1.15rem; }
    .job-focus-metrics { grid-template-columns: minmax(0,1fr); }
    .job-focus-title h1 { font-size: 1.8rem; }
    .table-item { flex-wrap: wrap; align-items: flex-start; }
    .table-item-stretch > div { display: flex; flex-wrap: wrap; gap: .5rem; }
    .table-item-stretch > div:first-child { display: grid; }
    .chat-header { gap: 1rem; }
    .chat-header h1 { font-size: 1.4rem; }
    .chat-form { display: grid; grid-template-columns: 1fr; }
    .home-footer { padding: .9rem 0; }
    .home-footer-inner { justify-content: center; gap: .1rem; }
    .home-footer nav { gap: .1rem .95rem; justify-content: center; }
    .footer-brand span { display: none; }
    .stat-card { padding: 1rem; }
    .stat-card strong { font-size: 1.65rem; }
    .filter-location-row input,.filter-location-row select,.job-filters input,.job-filters select { font-size: 16px; }
    .job-filters { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .job-card,.category-card,.button { transition: none; }
}

/* Details discovered in the authenticated-page visual review. */
.table-item > div > strong,.table-item > div > span { display: block; }
.table-item > div > span { margin-top: .25rem; }
.filter-active { margin-left: auto; margin-right: .75rem; color: #244bdd; font-size: .72rem; }
.chat-page { padding-top: 2rem; }
.chat-shell { width: 100%; max-width: 920px; margin-inline: auto; }
.chat-rating { margin-top: 1rem; padding: 1rem; }
.chat-rating > summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--text); }
.rating-details { display: grid; gap: 1rem; padding-top: 1.25rem; }
.rating-details h2 { font-size: 1.15rem; margin: .5rem 0; }
.rating-details p { font-size: .85rem; line-height: 1.65; }
.chat-shell > details.card { padding: 1rem; }
.chat-shell > details.card > summary { cursor: pointer; font-size: .85rem; font-weight: 600; }
.chat-shell > details.card .stack { padding-top: 1rem; }
.chat-form { align-items: end; }
.chat-form textarea { min-height: 90px; }
.chat-header p { font-size: .85rem; line-height: 1.6; margin-top: .3rem; }
.chat-messages { gap: .9rem; }
@media (max-width:640px) {
    .chat-page { padding-top: 1rem; }
    .chat-bubble { max-width: 93%; padding: .9rem; }
    .chat-header { padding-bottom: 1rem; }
    .chat-form textarea { min-height: 90px; }
}

/* Job details: emphasize the task rather than repeated boxes. */
.job-focus-back .back-link { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: .4rem 0; min-height: 36px; font-size: .8rem; color: var(--muted); }
.job-focus-badges { margin-bottom: .7rem; }
.job-focus-subtitle { font-size: .88rem; }
.job-focus-title .lead { font-size: .85rem; margin-top: .8rem; }
.focus-detail-box { background: transparent; border: 0; padding: 1rem 0; }
.focus-detail-box h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.focus-detail-box p { font-size: .95rem; line-height: 1.8; white-space: pre-line; }
@media(max-width:640px) {
    .job-focus-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: .65rem; }
    .job-focus-metrics .focus-metric:first-child { grid-column: 1/-1; border-bottom: 1px solid #dae2d0; }
    .focus-metric { padding: .75rem; border: 0; border-radius: 0; }
    .focus-metric strong { font-size: 1rem; }
    .focus-metric > span { font-size: .65rem; }
    .job-focus-metrics .focus-metric:first-child strong { font-size: 1.35rem; }
    .auth-apply-prompt h2 { font-size: 1.2rem; }
    .auth-apply-prompt p { font-size: .86rem; line-height: 1.6; }
}

.listing-demo { background: #f2eddb; color: #795b20; margin-left: .3rem; }

.job-preferences { border: 1px solid #dce2d8; border-radius: 12px; padding: 1.25rem; display: grid; gap: 1rem; margin: .5rem 0; min-width: 0; }
.job-preferences legend { font-size: 1.1rem; font-weight: 700; padding-inline: .4rem; }
.job-preferences p,.job-preferences small { color: var(--muted); line-height: 1.65; font-size: .83rem; }
.preference-toggle { display: flex; align-items: center; gap: .6rem; font-size: .8rem; line-height: 1.5; }
.preference-toggle input { flex: 0 0 auto; }
.preference-categories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.preference-categories label { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 8px; padding: .75rem; cursor: pointer; font-size: .8rem; }
.preference-categories label:has(input:checked) { background: #edf2e6; border-color: #a6b99a; }
.matching-summary { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; border-radius: 10px; background: #eaf0e2; padding: .85rem 1rem; margin-bottom: 1rem; font-size: .8rem; color: #304b29; }
.matching-summary a { text-decoration: underline; text-underline-offset: 3px; }
.filter-location-row { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
@media(max-width:420px) { .preference-categories { grid-template-columns: minmax(0,1fr); } }

/* Account management and administration: consistent information and actions. */
.management-heading h1 { margin-top: .5rem; }
.management-heading > p,.management-heading > div > p { color: var(--muted); font-size: .92rem; line-height: 1.65; margin-top: .75rem; }
.management-list { display: grid; gap: 1rem; }
.management-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; min-width: 0; }
.management-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.management-copy { min-width: 0; }
.management-category { display: block; color: #496145; font-size: .75rem; margin-bottom: .5rem; }
.management-copy h2 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 .45rem; }
.management-copy > p { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.management-reference { display: block; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.management-status { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex-shrink: 0; }
.status-label { font-size: .72rem; color: var(--muted); line-height: 1.5; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; padding: .35rem .65rem; border-radius: 6px; font-size: .72rem; font-weight: 600; line-height: 1.4; background: #f0f2eb; color: #586953; white-space: nowrap; }
.status-pending { background: #faf0d8; color: #7a5712; }
.status-approved { background: #e7efdf; color: #355a2b; }
.status-rejected { background: #fbebea; color: #a0393d; }
.management-state-note { margin-top: 1.1rem; padding: .75rem .9rem; border-radius: 8px; font-size: .8rem; color: #635a3d; background: #faf8ef; line-height: 1.65; }
.management-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid #e9ede3; }
.management-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.management-actions form { margin: 0; }
.button-outline { background: #fff; color: #344943; border: 1px solid #d7dfd1; }
.button-outline:hover { background: #f4f6ef; color: #172c32; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; padding: .65rem .5rem; min-height: 44px; border: 0; border-radius: 8px; color: #647366; background: transparent; cursor: pointer; font-size: .78rem; font-weight: 500; }
.quiet-button:hover { color: #172c32; background: #f3f5ef; }
.quiet-danger { color: #a0393d; }
.quiet-danger:hover { color: #a0393d; background: #fbebea; }
.management-callout { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid #dce5d2; background: #eef3e8; border-radius: 12px; }
.management-callout strong { font-size: .88rem; }
.management-callout p { color: var(--muted); font-size: .8rem; line-height: 1.6; margin-top: .3rem; }
.admin-context { padding-top: 1.4rem; display: flex; align-items: center; gap: 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; flex-wrap: wrap; }
.admin-context-label { color: #647366; font-size: .7rem; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; }
.admin-navigation { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.admin-navigation a { font-size: .8rem; min-height: 40px; display: inline-flex; align-items: center; padding: .65rem .85rem; border-radius: 8px; color: #596b66; }
.admin-navigation a[aria-current=page] { background: #172c32; color: #fff; }
.admin-navigation a:hover:not([aria-current]) { background: #e9eee3; }
.admin-page { padding-top: 2rem; }
.admin-entry { color: #244bdd !important; font-weight: 700 !important; }
.management-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.management-tabs a { display: inline-flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border: 1px solid var(--line); background: #fff; border-radius: 9px; min-height: 44px; font-size: .8rem; color: #596b66; }
.management-tabs a[aria-current=page] { background: #eaf0e2; border-color: #aabc9c; color: #304b29; font-weight: 600; }
.management-tabs a > span { background: #f0f3eb; border-radius: 5px; min-width: 22px; padding: .1rem .3rem; text-align: center; font-size: .7rem; }
.management-description { color: var(--muted); font-size: .9rem; line-height: 1.75; margin-top: 1rem; max-width: 65rem; }
.management-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; color: var(--muted); font-size: .75rem; margin-top: .9rem; }
.management-advanced { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .8rem; }
.management-advanced > summary { cursor: pointer; color: #647366; font-size: .75rem; padding: .4rem 0; }
.management-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: 1rem; padding-top: 1.1rem; }
.empty-state-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e7efdf; color: #355a2b; font-size: 1.4rem; margin: 0 auto 1rem; }
.admin-priority { background: #eaf0e2; border: 1px solid #dce5d2; border-radius: 16px; padding: 1.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.admin-priority > div > span { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: #496145; }
.admin-priority h2 { font-size: 1.55rem; margin: .5rem 0; }
.admin-priority p { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.admin-priority-action { background: #172c32; color: #fff; border-radius: 9px; padding: .9rem 1.1rem; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.admin-overview-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.admin-overview-grid .stat-card { display: grid; gap: .5rem; }
.admin-summary { min-width: 0; }
.admin-summary-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; }
.admin-summary-heading h2 { font-size: 1.15rem; }
.admin-summary-list { display: grid; }
.admin-summary-list > a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.admin-summary-list strong { display: block; font-size: .85rem; line-height: 1.5; }
.admin-summary-list div > span { display: block; color: var(--muted); font-size: .75rem; line-height: 1.5; margin-top: .3rem; }
.admin-empty { padding: 1.5rem 0; color: var(--muted); font-size: .88rem; }
.admin-empty p { margin-top: .4rem; font-size: .8rem; }
.account-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.account-row:first-child { padding-top: 0; }.account-row:last-child { border: 0; padding-bottom: 0; }
.account-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #eaf0e2; color: #496145; font-weight: 700; }
.account-copy h2 { font-size: .95rem; line-height: 1.5; }
.account-copy > span,.account-copy > small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.65; overflow-wrap: anywhere; }
.account-tags { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.category-management-list article { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.category-management-list h3 { font-size: .95rem; }.category-management-list p { color: var(--muted); font-size: .8rem; line-height: 1.65; margin-top: .3rem; }
.admin-category-form { align-self: start; }.admin-category-form > p { font-size: .85rem; color: var(--muted); line-height: 1.65; margin: .75rem 0 1.5rem; }
.report-resolution { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: end; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.notice-card { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.notice-card h2 { font-size: .95rem; line-height: 1.55; margin-top: .35rem; }.notice-unread { border-left: 3px solid #244bdd; }.notice-card > .button { flex-shrink: 0; }
.flash { border-radius: 10px; padding: 1rem 1.15rem; font-size: .85rem; line-height: 1.6; }.flash-success { background: #e9f0e2; color: #355a2b; border: 1px solid #d9e5cf; }.flash-error { background: #fbefec; color: #9a3735; border: 1px solid #ecd8d3; }
@media(max-width:800px) {
    .management-card-header { flex-wrap: wrap; gap: 1rem; }.management-status { align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; }
    .admin-priority { flex-direction: column; align-items: flex-start; }.admin-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .management-callout { flex-direction: column; align-items: flex-start; }.admin-summary-list > a { flex-wrap: wrap; }
}
@media(max-width:640px) {
    .management-card { padding: 1.15rem; border-radius: 13px; }.management-card-header { display: grid; gap: .85rem; }.management-card-header > .status-badge { justify-self: start; }
    .management-copy h2 { font-size: 1.08rem; }.management-card-footer { align-items: flex-start; gap: .5rem; }.management-actions { gap: .5rem; }
    .management-actions .button { font-size: .75rem; padding: .65rem .8rem; }.management-card-footer > form { margin-left: auto; }
    .management-form,.report-resolution { grid-template-columns: minmax(0,1fr); }.management-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }.management-tabs a { justify-content: space-between; font-size: .72rem; padding: .65rem; }
    .admin-context { padding-top: 1rem; gap: .5rem; }.admin-navigation { gap: .2rem; }.admin-navigation a { font-size: .72rem; padding: .55rem .6rem; }
    .admin-context-label { width: 100%; }.admin-priority { padding: 1.25rem; }.admin-priority h2 { font-size: 1.35rem; }.admin-priority-action { width: 100%; text-align: center; }
    .account-row { grid-template-columns: 36px minmax(0,1fr); gap: .75rem; }.account-avatar { width: 36px; height: 36px; border-radius: 10px; }.account-tags { grid-column: 2; align-items: center; flex-direction: row; }
    .notice-card { flex-wrap: wrap; gap: .85rem; }.notice-card > .button { margin-left: auto; }.admin-summary-heading { align-items: flex-start; flex-wrap: wrap; }
}

/* Final review: consistent inquiry layouts and mobile action groups. */
.inquiry-card,.inquiry-summary-card { background: #fff; border-color: var(--line); border-radius: 12px; }
.inquiry-summary-card { padding: 1rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.inquiry-summary-main { grid-template-columns: 44px minmax(0,1fr); gap: .8rem; }
.applicant-avatar { background: #e7efdf; color: #496145; box-shadow: none; border-radius: 13px; }
.applicant-avatar-small { width: 44px; height: 44px; border-radius: 12px; }
.inquiry-summary-top { flex-wrap: wrap; gap: .4rem; }
.inquiry-summary-top strong { font-size: .9rem; }
.inquiry-summary-meta span { font-size: .72rem; }
.inquiry-summary-copy p { font-size: .85rem; }
.inquiry-summary-actions .button { width: auto; justify-self: end; min-height: 40px; font-size: .78rem; padding: .6rem .9rem; background: #e9eee3; color: #304b29; }
.inbox-panel-head h2 { font-size: 1.2rem; }
.inbox-panel-head p { font-size: .83rem; line-height: 1.65; }
.inquiry-card-detailed { border: 0; padding: 0; }
.info-chip { min-width: 0; }.info-chip strong,.info-chip p { overflow-wrap: anywhere; font-size: .85rem; line-height: 1.65; }
.empty-panel { background: #f6f8f1; border: 1px dashed #dce2d8; border-radius: 12px; box-shadow: none; }
.empty-panel h3 { font-size: .95rem; }.empty-panel p { font-size: .85rem; line-height: 1.65; }
@media(min-width:1100px) { .inquiries-layout:has(.inquiry-card-detailed) { grid-template-columns: minmax(0,2fr) minmax(260px,1fr); }.inquiry-card-detailed .applicant-layout { grid-template-columns: 160px minmax(0,1fr); } }
@media(max-width:640px) {
 .management-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
 .management-actions .button { width: 100%; text-align: center; white-space: normal; }
 .inquiry-card-detailed .applicant-identity { grid-template-columns: 64px minmax(0,1fr); gap: .85rem; align-items: start; }
 .inquiry-card-detailed .applicant-avatar { width: 64px; height: 64px; }
 .inquiries-layout { gap: 1rem; }.inquiries-head h1 { font-size: 1.8rem; }
}
@media(max-width:360px) { .management-actions { grid-template-columns: minmax(0,1fr); } }

@media(max-width:640px) { .home-footer-inner { flex-direction: column; gap: .2rem; } }

.seo-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.seo-overview .stat-card { display: grid; gap: .5rem; }
.seo-settings > p,.seo-muted { color: var(--muted); font-size: .82rem; line-height: 1.75; }
.seo-settings fieldset { display: grid; gap: 1rem; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; min-width: 0; }
.seo-settings legend { font-size: .9rem; font-weight: 700; padding-inline: .4rem; }
.seo-side { align-content: start; }
.search-preview { padding: 1.25rem 0; overflow-wrap: anywhere; }
.search-preview > span,.search-preview > small { display: block; font-size: .8rem; color: #344943; line-height: 1.6; }
.search-preview h3 { font-size: 1.15rem; color: #244bdd; font-weight: 500; line-height: 1.5; margin: .5rem 0; }
.search-preview p { font-size: .86rem; color: #596b66; line-height: 1.65; }
.seo-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.seo-checks li { position: relative; padding-left: 1.3rem; font-size: .82rem; color: #496145; line-height: 1.65; }
.seo-checks li::before { content: '✓'; position: absolute; left: 0; }
@media(max-width:640px) { .seo-overview { grid-template-columns: minmax(0,1fr); }.seo-settings fieldset { padding: .85rem; } }

@media(max-width:640px) {
 .seo-overview { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
 .seo-overview > :last-child { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
 .seo-overview > :last-child strong { font-size: 1rem; }
 .seo-overview .stat-card { padding: 1rem; }
}
