/* Shared UI tokens and components — loaded after legacy styles. */
:root{
  --nh-brand:#ec5a28;--nh-brand-soft:#fff1e9;--nh-brand-line:#ffd5c3;
  --nh-text:#25282c;--nh-muted:#6b7280;--nh-line:#e6e8eb;--nh-bg:#f5f6f8;
  --nh-radius:12px;--nh-field-radius:9px;--nh-control:44px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC","Roboto",system-ui,sans-serif;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;color:var(--nh-text);
}
.nh-icon{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle;pointer-events:none}
.nh-trigger-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit!important;font-size:inherit!important;line-height:1.25}
.nh-select{position:relative;display:inline-flex;min-width:0;max-width:100%;vertical-align:middle}
.nh-select>.nh-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;min-width:0;min-height:var(--nh-control);padding:8px 12px;border:1px solid var(--nh-line);border-radius:var(--nh-field-radius);background:#fff;color:var(--nh-text);font:inherit;font-weight:400;line-height:1.35;text-align:left;box-shadow:none}
.nh-select-trigger>.nh-icon,.area>.nh-icon:last-child,.job-filter-bar button>.nh-icon{width:15px;height:15px;color:var(--nh-muted);flex:none;transition:transform .15s}
.nh-select-trigger[aria-expanded="true"]>.nh-icon,.area[aria-expanded="true"]>.nh-icon:last-child{transform:rotate(180deg);color:var(--nh-brand)}
.nh-select-trigger[aria-expanded="true"]{border-color:var(--nh-brand)}
.nh-select-disabled{opacity:.65}
.nh-validation{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;clip-path:inset(50%);overflow:hidden;pointer-events:none;opacity:0}
dialog.nh-sheet{position:fixed;inset:auto 0 0;width:min(100%,560px);max-width:100%;max-height: min(86vh,720px);max-height:min(86dvh,720px);margin:0 auto;padding:0;border:0;border-radius:20px 20px 0 0;background:#fff;color:var(--nh-text);overflow:hidden;box-shadow:0 -10px 45px #14202a20;font:inherit;z-index:10001}
.nh-sheet::backdrop,.nh-fallback-shade{background:#12182070}
.nh-fallback-shade{position:fixed;inset:0;z-index:10000}
.nh-sheet-inner{display:flex;flex-direction:column;max-height:min(86vh,720px);max-height:min(86dvh,720px);padding:0 16px max(16px,env(safe-area-inset-bottom));gap:12px;overflow:hidden}
.nh-sheet-head{position:relative;display:flex;align-items:center;justify-content:space-between;flex:none;min-height:60px;padding-top:12px;border-bottom:1px solid #f0f1f3}
.nh-sheet-head h2{font-size:18px;line-height:1.3;font-weight:700;margin:0;letter-spacing:0}
.nh-sheet-handle{position:absolute;top:6px;left:50%;width:34px;height:4px;transform:translateX(-50%);border-radius:8px;background:#d8dce0}
.nh-sheet-close,.nh-sheet-search>button{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;color:var(--nh-muted);background:#f5f6f8}
.nh-sheet-search{display:flex;align-items:center;gap:8px;flex:none;min-height:44px;padding:0 10px;border-radius:10px;background:var(--nh-bg);color:var(--nh-muted)}
.nh-sheet-search input,.nh-job-search input{width:100%;min-width:0;min-height:44px;padding:8px 0;border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;font:inherit;font-size:16px;color:var(--nh-text)}
.nh-sheet-search>button{width:30px;height:30px}
.nh-sheet-options{display:flex;flex-direction:column;gap:0;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.nh-option{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:48px;padding:11px 12px;border:0;border-bottom:1px solid #f0f1f3;background:#fff;color:var(--nh-text);font:inherit;font-size:15px;line-height:1.45;text-align:left;overflow-wrap:anywhere}
.nh-option.is-selected{color:#c9471c;background:var(--nh-brand-soft);border-radius:9px;font-weight:650}
.nh-option .nh-icon{width:18px;height:18px}
.nh-option-group{padding:13px 10px 6px;color:var(--nh-muted);font-size:12px;font-weight:650;background:#fff}
.nh-sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-content:start;padding:1px 1px 3px}
.nh-sheet-grid .nh-option{justify-content:center;min-height:46px;padding:9px 4px;border:1px solid transparent;border-radius:9px;background:var(--nh-bg);font-size:13px;text-align:center;gap:3px}
.nh-sheet-grid .nh-option.is-selected{border-color:var(--nh-brand-line);background:var(--nh-brand-soft)}
.nh-sheet-grid .nh-option .nh-icon{width:13px;height:13px}
.nh-sheet-grid .nh-option-group,.nh-sheet-grid .nh-no-results{grid-column:1/-1}
.nh-current{display:flex;align-items:center;gap:9px;flex:none;min-height:40px;padding:8px 12px;border-radius:9px;background:var(--nh-brand-soft);color:#b9431d;font-size:13px}
.nh-current span{color:#98573e;font-size:12px}.nh-current strong{flex:1}
.nh-location{display:grid;gap:5px;flex:none;color:var(--nh-muted);font-size:12px}
.nh-location-action{display:flex;align-items:center;gap:8px;min-height:40px;color:#c9471c;font-weight:650;text-align:left}
.nh-no-results{padding:24px 12px;text-align:center;color:var(--nh-muted);font-size:14px}
.area.trigger{display:inline-flex;align-items:center;justify-content:center;gap:3px;max-width:125px;min-height:40px;padding:0 6px;border-radius:8px;background:transparent;color:var(--nh-text)}
.area>.nh-icon:first-child{width:16px;height:16px;color:var(--nh-brand)}
.header-inbox .nh-icon{width:22px;height:22px}
.header-back .nh-icon{width:22px;height:22px}
.category-picker .nh-select>.nh-select-trigger{min-height:34px;padding:4px 6px;font-size:13px;border-color:transparent;background:transparent}
.job-filter-bar{gap:3px;padding:3px;border:0;border-radius:10px;background:#f5f6f8;box-shadow:none}
.job-filter-bar button:not(.job-publish-quick){display:flex;align-items:center;justify-content:center;gap:3px;min-height:40px;padding:4px 5px;line-height:1.25}
.job-filter-bar button.active,.job-filter-bar .job-mode-trigger{box-shadow:none;background:#fff}
.job-filter-bar button>.nh-icon{width:13px;height:13px}
.job-filter-bar button.active>.nh-icon{color:inherit}
.job-filter-panel{border-radius:0 0 14px 14px}
.job-category-columns{min-height:240px;height:min(48dvh,440px)}
.nh-job-search{display:flex;align-items:center;gap:8px;margin:12px;padding:0 10px;background:var(--nh-bg);border-radius:9px;color:var(--nh-muted)}
.nh-job-results{max-height:48dvh;overflow:auto;padding:0 12px 12px}
.nh-job-results button{display:grid;grid-template-columns:minmax(0,1fr) 18px;gap:4px 8px;align-items:center;width:100%;padding:10px 8px;border-bottom:1px solid #eef0f2;text-align:left;color:var(--nh-text)}
.nh-job-results button strong{font-size:14px}.nh-job-results button small{grid-column:1;font-size:12px;color:var(--nh-muted);overflow-wrap:anywhere}.nh-job-results button .nh-icon{grid-column:2;grid-row:1/3;color:var(--nh-muted)}
.form-stack .nh-select,.job-advanced-filter .nh-select,.dating-editor .nh-select,.office .form-stack .nh-select{display:flex;width:100%}
.form-stack .nh-select>.nh-select-trigger,.dating-editor .nh-select>.nh-select-trigger,.job-advanced-filter .nh-select>.nh-select-trigger{font-size:16px}
.form-stack :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea),.field-with-action input,.office-note textarea{border-color:var(--nh-line);border-radius:var(--nh-field-radius);color:var(--nh-text);box-shadow:none}
.form-stack label,.office-note{color:#4b5563;font-size:14px;font-weight:600}
.form-stack{gap:14px}
.property-choice .nh-select>.nh-select-trigger,.forum-controls .nh-select>.nh-select-trigger,.service-filter-bar .nh-select>.nh-select-trigger{min-height:40px;max-width:145px;padding:6px 9px;font-size:13px;background:#f6f7f8;border-color:#e8eaed;color:#374151}
.service-filter-bar .nh-select{width:100%}
.service-filter-bar .nh-select>.nh-select-trigger{width:100%;box-shadow:none}
.forum-controls .nh-select>.nh-select-trigger{max-width:150px;min-height:36px;border-color:transparent}
.sector-filters .nh-select{width:100%}
.portal-home{background:var(--nh-bg)}
.portal-entry{padding:14px 10px 12px;border-radius:var(--nh-radius);box-shadow:none;border:1px solid #eef0f2}
.portal-grid{gap:14px 4px}
.portal-shortcut{min-height:74px;gap:7px}
.portal-shortcut strong{font-size:13px;font-weight:600;color:var(--nh-text);line-height:1.4;white-space:normal}
.portal-icon{width:48px;height:48px;border-radius:13px;background:#eef2ff;color:#4569ba;box-shadow:none;flex:none}
.portal-icon .nh-icon{width:27px;height:27px;stroke-width:1.7}
.portal-icon.tone-blue,.portal-icon.tone-sky{background:#e9f2ff;color:#3374bb}
.portal-icon.tone-mint,.portal-icon.tone-green{background:#e7f5ef;color:#278165}
.portal-icon.tone-coral{background:#fff0e7;color:#d06534}
.portal-icon.tone-rose{background:#fcecf1;color:#bb5078}
.portal-icon.tone-gold{background:#fff5dd;color:#a87521}
.portal-icon.tone-violet{background:#f0edfb;color:#7358b3}
.portal-section-title{align-items:center}
.portal-section-title button{display:inline-flex;align-items:center;gap:2px;color:#626c78;font-size:13px}
.portal-section-title button>.nh-icon,.portal-news-arrow,.community-thread-chevron,.chevron{width:16px;height:16px;flex:none;color:#9ca3af;align-self:center}
.workspace .surface,.office .surface{border-radius:var(--nh-radius);border-color:#e8eaed;box-shadow:none}
.workspace,.office{color:var(--nh-text)}
.office{background:var(--nh-bg)}
.office-header{background:#fff;border-color:var(--nh-line)}
.office-nav{background:#fff;border-right:1px solid var(--nh-line)}
.office-nav button{color:#4b5563}
.office-nav button[aria-current]{background:var(--nh-brand-soft);color:#bc461d}
.office-content{background:var(--nh-bg)}
.office-metrics strong{color:#c9471c}
button.primary,.buttons .primary{border-radius:var(--nh-field-radius)}
button:focus-visible,.nh-select-trigger:focus-visible,.nh-option:focus-visible{outline:2px solid var(--nh-brand);outline-offset:2px}
@media(min-width:700px){dialog.nh-sheet{inset:0;margin:auto;width:500px;max-height:80vh;border-radius:16px}.nh-sheet-inner{max-height:80vh}.nh-sheet-handle{display:none}.nh-sheet-head{padding-top:0;min-height:58px}}
@media(max-width:420px){.area.trigger{max-width:98px;padding-inline:2px;font-size:12px}.area>.nh-icon:first-child{width:13px;height:13px}.area>.nh-icon:last-child{width:12px;height:12px}.job-filter-bar button:not(.job-publish-quick){padding-inline:2px;gap:2px;font-size:12px}.job-filter-bar button>.nh-icon{width:12px;height:12px}.property-choice .nh-select>.nh-select-trigger,.service-filter-bar .nh-select>.nh-select-trigger{max-width:120px;font-size:12px}.portal-shortcut strong{font-size:12px}.portal-icon{width:44px;height:44px}.portal-icon .nh-icon{width:25px;height:25px}}
@media(max-width:350px){.nh-sheet-inner{padding-inline:12px}.nh-sheet-grid{gap:6px}.nh-sheet-grid .nh-option{font-size:12px}.area>.nh-icon:first-child{display:none}.job-filter-bar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr) minmax(0,.8fr) 34px}.job-filter-bar .job-publish-quick{width:34px;min-width:34px}}
@media(prefers-reduced-motion:reduce){.nh-select-trigger>.nh-icon,.area>.nh-icon:last-child{transition:none}}

.nh-select:has(.nh-invalid-message){flex-wrap:wrap}.nh-select-trigger[aria-invalid=true]{border-color:#dc4b42}.nh-invalid-message{display:block;width:100%;color:#bd302a;font-size:12px;margin-top:4px}

/* Anchored choices: no modal backdrop, no sheet slide, no page reflow. */
dialog.nh-sheet.nh-dropdown{
  position:fixed;inset:auto;margin:0;max-width:calc(100vw - 16px);
  max-height:var(--nh-dropdown-height,320px);border:1px solid #e5e8ec;border-radius:10px;
  box-shadow:0 6px 22px #17263619;background:#fff;z-index:10020;
  animation:none!important;transition:none!important;overflow:visible;
}
.nh-dropdown .nh-sheet-inner{max-height:var(--nh-dropdown-height,320px);padding:0 10px 10px;gap:8px;border-radius:inherit;overflow:hidden}
.nh-dropdown .nh-sheet-head{min-height:42px;padding-top:0}
.nh-dropdown .nh-sheet-head h2{font-size:15px}
.nh-dropdown .nh-sheet-handle{display:none}
.nh-dropdown .nh-sheet-close{width:30px;height:30px}
.nh-dropdown .nh-sheet-close .nh-icon{width:16px;height:16px}
.nh-dropdown-simple .nh-sheet-inner{padding:5px;gap:5px}
.nh-dropdown-simple .nh-sheet-head{display:none}
.nh-dropdown .nh-sheet-search,.nh-dropdown .nh-sheet-search input{min-height:36px}
.nh-dropdown .nh-sheet-options{max-height:300px}
.nh-dropdown-simple .nh-option{min-height:38px;padding:8px 10px;border:0;border-radius:6px;font-size:14px}
@media(hover:hover){.nh-dropdown .nh-option:not(:disabled):hover{background:#f5f6f8}.nh-dropdown .nh-option.is-selected:hover{background:var(--nh-brand-soft)}}
.nh-dropdown .nh-option:active{background:var(--nh-brand-soft)}
.nh-dropdown .nh-option:focus-visible{outline-offset:-2px}
.nh-dropdown .nh-panel-content{min-height:0;overflow:auto}
.nh-dropdown.nh-wide-sheet .nh-panel-content{overflow:auto}
.nh-dropdown .job-category-columns{height:min(42dvh,340px);min-height:160px}
.nh-dropdown .job-mode-grid button{min-height:44px}
.nh-dropdown .nh-region-group{margin-bottom:10px}
.nh-dropdown .nh-region-grid .nh-region-option{min-height:40px}
.nh-select-trigger,.job-filter-bar button,.sector-filter-toggle,.nh-dropdown button{touch-action:manipulation}
.nh-select-trigger>.nh-icon,.job-filter-bar button>.nh-icon,.area>.nh-icon:last-child{transition:transform 80ms ease}
.job-filter-bar button[aria-expanded="true"]>.nh-icon{transform:rotate(180deg);color:var(--nh-brand)}
@media(prefers-reduced-motion:reduce){.nh-select-trigger>.nh-icon,.job-filter-bar button>.nh-icon,.area>.nh-icon:last-child{transition:none}}

.nh-datetime{display:block;position:relative}.nh-datetime-trigger{width:100%;min-height:46px;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:10px 12px;border:1px solid #ddd;border-radius:10px;background:#fff;color:#292929}.nh-datetime-trigger .nh-icon{width:19px;height:19px;color:#b34c28}.nh-datetime-dialog{border:0;border-radius:18px;padding:0;width:min(92vw,420px);box-shadow:0 12px 50px #0003}.nh-datetime-dialog::backdrop{background:#0008}.nh-datetime-dialog>section{padding:20px}.nh-datetime-dialog h2{margin:0;font-size:19px}.nh-datetime-dialog p{color:#777;font-size:13px}.nh-datetime-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.nh-datetime-fields label{grid-column:span 2;font-size:13px;color:#666}.nh-datetime-fields label:nth-child(n+4){grid-column:span 3}.nh-datetime-fields input{box-sizing:border-box;width:100%;min-width:0;margin-top:5px;padding:10px 5px;border:1px solid #ddd;border-radius:8px;text-align:center;font-size:16px}.nh-datetime-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}.nh-datetime-actions button{padding:9px 18px;border-radius:8px}.nh-datetime-actions button:first-child:not(.nh-datetime-cancel){margin-right:auto}
