:root {
  --brand: #1687f8;
  --brand-dark: #0870dc;
  --ink: #172033;
  --muted: #7f8b9c;
  --line: #e7ebf0;
  --page: #f4f6f8;
  --card: #ffffff;
  --green: #20a66a;
  --orange: #ed8a2f;
  --red: #e55353;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}

.address-picker-row { display: flex; align-items: center; gap: 10px; }
.address-picker-row > input { flex: 1; min-width: 0; }
.region-select-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.region-select-grid label { min-width: 0; }
.map-picker-trigger { flex: 0 0 auto; white-space: nowrap; }
.map-picker-trigger .icon { width: 15px; height: 15px; }
.field-help { display: block; margin-top: 7px; color: #8994a3; font-size: 11px; line-height: 1.5; }
body.map-picker-open { overflow: hidden; }
.map-location-modal { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 28px; }
.map-location-modal[hidden] { display: none; }
.map-location-backdrop { position: absolute; inset: 0; background: rgba(10,25,43,.58); }
.map-location-dialog { position: relative; width: min(960px,100%); height: min(720px,calc(100vh - 56px)); overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 24px 80px rgba(8,24,44,.28); display: flex; flex-direction: column; }
.map-location-head { min-height: 70px; padding: 14px 18px 13px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.map-location-head h3 { margin: 0; font-size: 16px; }
.map-location-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.map-location-close { width: 36px; height: 36px; border: 0; border-radius: 6px; background: #f2f5f8; color: #526174; font-size: 25px; line-height: 1; cursor: pointer; }
.map-location-close:hover { background: #e8edf2; color: var(--ink); }
#map-location-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #f3f6f9; }
.map-location-footer { min-height: 76px; padding: 12px 18px 12px 20px; border-top: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.map-location-selection { min-width: 0; }
.map-location-selection strong, .map-location-selection span { display: block; }
.map-location-selection strong { font-size: 13px; }
.map-location-selection span { max-width: 620px; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.map-location-actions { flex: 0 0 auto; display: flex; gap: 9px; }
.map-location-actions .btn { min-width: 94px; }

@media (max-width: 760px) {
  .region-select-grid { grid-template-columns: 1fr; gap: 12px; }
  .address-picker-row { align-items: stretch; }
  .map-location-modal { padding: 0; }
  .map-location-dialog { width: 100%; height: 100vh; border-radius: 0; }
  .map-location-head { min-height: 64px; padding: 11px 14px; }
  .map-location-footer { min-height: 122px; padding: 11px 14px; align-items: stretch; flex-direction: column; gap: 9px; }
  .map-location-selection span { white-space: normal; line-height: 1.45; }
  .map-location-actions { width: 100%; }
  .map-location-actions .btn { flex: 1; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--ink); background: var(--page); }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.icon { width: 18px; height: 18px; display: block; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 244px; padding: 22px 14px; background: #102a46; color: #dce8f5; display: flex; flex-direction: column; }
.brand { height: 56px; padding: 0 10px; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 38px; border-radius: 8px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; white-space: nowrap; }
.brand-copy strong { display: block; color: #fff; font-size: 16px; }
.brand-copy span { display: block; margin-top: 2px; color: #8fa9c2; font-size: 11px; }
.nav-label { margin: 25px 12px 9px; color: #6f8ba5; font-size: 11px; }
.sidebar-nav { min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sidebar-nav a { min-height: 44px; padding: 0 13px; border-radius: 7px; display: flex; align-items: center; gap: 12px; color: #afc2d5; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active { background: #1687f8; color: #fff; }
.sidebar-nav a .icon { opacity: .85; filter: brightness(0) invert(1); }
.sidebar-nav-group { display: flex; flex-direction: column; }
.sidebar-nav-parent { display: grid; grid-template-columns: minmax(0,1fr) 34px; align-items: center; gap: 3px; }
.sidebar-nav-parent > a { min-width: 0; }
.sidebar-nav-parent > a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-subnav-toggle { width: 34px; height: 38px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #8fa9c2; display: flex; align-items: center; justify-content: center; }
.sidebar-subnav-toggle:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-subnav-toggle .icon { width: 15px; height: 15px; filter: brightness(0) invert(1); opacity: .65; transform: rotate(90deg); transition: transform .18s; }
.sidebar-nav-group.is-collapsed .sidebar-subnav { display: none; }
.sidebar-nav-group.is-collapsed .sidebar-subnav-toggle .icon { transform: rotate(0); }
.sidebar-subnav { margin: -1px 6px 3px 34px; padding-left: 10px; border-left: 1px solid rgba(151,183,211,.22); display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav .sidebar-subnav a { position: relative; min-height: 31px; padding: 0 10px 0 14px; border-radius: 5px; color: #7f9ab4; font-size: 12px; }
.sidebar-nav .sidebar-subnav a::before { content: ''; position: absolute; left: 1px; width: 4px; height: 4px; border-radius: 50%; background: #607f9d; }
.sidebar-nav .sidebar-subnav a:hover { color: #d8e9f8; background: rgba(255,255,255,.05); }
.sidebar-nav .sidebar-subnav a.active { color: #8dccff; background: rgba(22,135,248,.14); font-weight: 700; }
.sidebar-nav .sidebar-subnav a.active::before { background: #36a3ff; }
.nav-badge { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 10px; background: #ef5c58; color: #fff; font-size: 11px; text-align: center; }
.nav-tag { margin-left: auto; padding: 2px 8px; border-radius: 10px; background: #eaf5ff; color: #1388ff; font-size: 11px; font-weight: 600; }
.sidebar-footer { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: #dcedff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sidebar-user strong { display: block; color: #fff; font-size: 13px; }
.sidebar-user span { color: #7f9ab4; font-size: 11px; }
.main-shell { width: calc(100% - 244px); min-height: 100vh; margin-left: 244px; }
.topbar { height: 70px; padding: 0 28px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar h1 { margin: 0; font-size: 20px; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.mobile-menu { width: 38px; height: 38px; border: 0; border-radius: 7px; background: #f1f5f9; display: none; align-items: center; justify-content: center; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.date-chip { padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; color: #596779; background: #fff; font-size: 12px; }
.content { padding: 24px 28px 36px; }
.page-actions { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-actions h2 { margin: 0; font-size: 18px; }
.btn { min-height: 38px; padding: 0 15px; border: 1px solid transparent; border-radius: 7px; background: #fff; color: #4c5a6d; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.btn .icon { width: 16px; height: 16px; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.secondary { border-color: #dce3eb; background: #fff; }
.btn.danger { background: #fff0ef; color: #c94242; }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.btn.large { min-height: 46px; font-size: 15px; }
.card { border: 1px solid #edf0f3; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(28,44,64,.035); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.agent-stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.stat-card { min-height: 124px; padding: 20px; display: flex; align-items: flex-start; justify-content: space-between; }
.stat-copy span { color: var(--muted); font-size: 12px; }
.stat-copy strong { display: block; margin: 12px 0 8px; font-size: 27px; }
.stat-copy em { color: #738094; font-size: 11px; font-style: normal; }
.stat-icon { width: 42px; height: 42px; border-radius: 8px; background: #eaf5ff; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.stat-icon.green { background: #e9f8f1; color: var(--green); }
.stat-icon.orange { background: #fff2e5; color: var(--orange); }
.stat-icon.red { background: #fff0ef; color: var(--red); }
.stat-icon .icon { width: 21px; height: 21px; }
.dashboard-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.8fr); gap: 18px; }
.card-head { min-height: 58px; padding: 0 18px; border-bottom: 1px solid #eef1f4; display: flex; align-items: center; justify-content: space-between; }
.card-head h3 { margin: 0; font-size: 15px; }
.card-head a, .card-head span { color: var(--muted); font-size: 12px; }
.card-head a { display: inline-flex; align-items: center; gap: 3px; }
.input-prefix { display: flex; align-items: center; }
.input-prefix > span { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; background: #f7f9fb; color: var(--muted); display: inline-flex; align-items: center; }
.input-prefix input { min-width: 0; border-radius: 0 6px 6px 0; }
.card-head a .icon { width: 14px; height: 14px; }
.card-body { padding: 18px; }
.bars { height: 220px; padding-top: 14px; display: flex; align-items: flex-end; gap: 14px; }
.bar-item { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-track { width: 70%; height: 170px; border-radius: 5px 5px 0 0; background: #edf3f8; display: flex; align-items: flex-end; overflow: hidden; }
.bar-fill { width: 100%; min-height: 5px; border-radius: 5px 5px 0 0; background: var(--brand); }
.bar-item strong { margin-top: 9px; font-size: 11px; }
.bar-item span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.distribution-list { display: flex; flex-direction: column; gap: 17px; }
.distribution-row { display: grid; grid-template-columns: 88px 1fr 36px; align-items: center; gap: 10px; font-size: 12px; }
.progress { height: 7px; border-radius: 4px; background: #edf1f5; overflow: hidden; }
.progress > span { height: 100%; display: block; border-radius: 4px; background: var(--brand); }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
.agent-list-table { min-width: 1250px; }
.agent-report-table { min-width: 1350px; }
.agent-profile-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid #e8edf2; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(28,44,64,.035); }
.agent-profile-strip > div { min-height: 90px; padding: 17px 20px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #edf0f3; }
.agent-profile-strip > div:last-child { border-right: 0; }
.agent-profile-strip span { color: var(--muted); font-size: 11px; }
.agent-profile-strip strong { margin: 7px 0 4px; color: var(--ink); font-size: 16px; }
.agent-profile-strip em { min-height: 18px; color: #8c97a6; font-size: 11px; font-style: normal; }
.agent-report-actions { margin-bottom: 14px; align-items: flex-end; }
.agent-report-actions h2 { margin: 7px 0 0; }
.back-link { color: var(--brand); font-size: 12px; }
.agent-code { color: #315f88; font-weight: 700; letter-spacing: .3px; }
.agent-metric-main { color: var(--ink); font-weight: 650; white-space: nowrap; }
.agent-row-actions { display: flex; align-items: center; gap: 7px; min-width: 300px; }
.agent-row-actions .inline-update { margin: 0; }
.agent-row-actions .inline-update select { width: 94px; }
.agent-note { max-width: 210px; color: #687587; line-height: 1.55; white-space: normal; }
table { width: 100%; border-collapse: collapse; }
.applications-table { min-width: 1380px; }
.interface-navigation-table { min-width: 1540px; }
.applications-table .application-phone { white-space: nowrap; }
th { padding: 12px 14px; background: #f8fafc; color: #7b8797; font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; }
td { padding: 14px; border-top: 1px solid #eef1f4; color: #4a5667; font-size: 12px; vertical-align: middle; }
tbody tr:hover { background: #fbfdff; }
.cell-title { color: var(--ink); font-size: 13px; font-weight: 650; }
.cell-sub { margin-top: 4px; color: #98a2b0; font-size: 11px; }
.muted { color: #b0b8c1; font-size: 11px; }
.salary { color: #e44e4e; font-weight: 700; white-space: nowrap; }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 12px; background: #eff2f5; color: #657286; font-size: 11px; white-space: nowrap; }
.status.success { background: #e8f7ef; color: #168859; }
.status.warning { background: #fff3df; color: #b56d13; }
.status.danger { background: #fff0ef; color: #c74646; }
.actions { display: flex; gap: 6px; }
.actions form { margin: 0; }
.icon-btn { width: 32px; height: 32px; border: 1px solid #e1e6ec; border-radius: 6px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: #b9d9f8; background: #f0f8ff; }
.icon-btn .icon { width: 15px; height: 15px; }
.filters { margin-bottom: 16px; padding: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.batch-toolbar { margin-bottom: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.batch-toolbar .batch-count { margin-right: auto; color: var(--muted); font-size: 12px; }
.batch-toolbar select { width: 150px; }
.batch-check { width: 16px !important; height: 16px !important; margin: 0; accent-color: var(--brand); }
.batch-select-all { display: inline-flex; align-items: center; gap: 7px; color: #647286; font-size: 12px; white-space: nowrap; cursor: pointer; }
.search-field { min-width: 260px; flex: 1; position: relative; }
.search-field .icon { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); opacity: .55; }
input, select, textarea { width: 100%; border: 1px solid #dfe5eb; border-radius: 7px; background: #fff; color: var(--ink); outline: none; }
input, select { height: 40px; padding: 0 12px; }
.search-field input { padding-left: 38px; }
textarea { min-height: 100px; padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #78b9fa; box-shadow: 0 0 0 3px rgba(22,135,248,.1); }
.filters select { width: 150px; }
.application-filters .search-field { min-width: 220px; }
.filter-date { width: 154px; position: relative; }
.filter-date > span { position: absolute; z-index: 1; top: -7px; left: 9px; padding: 0 4px; background: #fff; color: #7a8797; font-size: 10px; line-height: 14px; }
.filter-date input { min-width: 0; padding: 0 9px; color: #4d5b6d; }
.filter-date-separator { color: #8c97a5; font-size: 12px; }
.job-filters { margin-bottom: 16px; padding: 16px; display: grid; grid-template-columns: repeat(4,minmax(150px,1fr)); gap: 12px; }
.job-filter-control { min-width: 0; }
.job-filter-control > span { display: block; margin-bottom: 6px; color: #687587; font-size: 11px; font-weight: 650; }
.job-filter-control select { width: 100%; }
.job-filter-search { grid-column: span 2; }
.job-filter-search .search-field { min-width: 0; display: block; }
.job-filter-actions { grid-column: 1 / -1; padding-top: 13px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.job-filter-actions > span { margin-right: auto; color: var(--muted); font-size: 11px; }
.jobs-table { min-width: 900px; }
.jobs-table th:first-child, .jobs-table td:first-child { width: 42px; min-width: 42px; max-width: 42px; padding-right: 8px; padding-left: 12px; }
.jobs-table th:nth-child(2), .jobs-table td:nth-child(2) { min-width: 210px; }
.jobs-table th:nth-child(3), .jobs-table td:nth-child(3) { min-width: 145px; }
.form-card { max-width: 980px; padding: 24px; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.admin-pagination-links { display: flex; align-items: center; gap: 5px; }
.admin-pagination-links a, .admin-pagination-links em { min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font-size: 11px; font-style: normal; text-decoration: none; }
.admin-pagination-links a:hover, .admin-pagination-links a.active { border-color: var(--brand); background: #eaf5ff; color: var(--brand); }
.admin-pagination-links em { border-color: transparent; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.job-form-tabs { position: sticky; z-index: 8; top: 0; display: flex; gap: 6px; margin: -6px -6px 20px; padding: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fff; scrollbar-width: thin; }
.job-form-tabs button { flex: 0 0 auto; min-height: 34px; padding: 0 13px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #657286; font-size: 12px; font-weight: 600; cursor: pointer; }
.job-form-tabs button:hover { background: #f1f6fa; color: var(--ink); }
.job-form-tabs button.is-active { border-color: #b9dbf7; background: #eaf5ff; color: var(--brand); }
.job-form-sections { display: block; }
.job-form-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.job-form-panel[hidden] { display: none; }
.job-form-panel .form-divider { margin-top: 0; padding-top: 0; border-top: 0; }
.job-form-submit-bar { position: sticky; bottom: 0; z-index: 7; display: flex; justify-content: flex-end; gap: 10px; margin: 24px -24px -24px; padding: 14px 24px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.form-grid label > span { display: block; margin-bottom: 7px; color: #586678; font-size: 12px; font-weight: 600; }
.company-search-select { position: relative; }
.company-search-select > .company-search-icon { position: absolute; z-index: 2; left: 12px; top: 12px; width: 16px; height: 16px; opacity: .5; pointer-events: none; }
.company-search-select > input { padding-left: 38px; padding-right: 34px; }
.company-native-select { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden; border: 0 !important; clip: rect(0 0 0 0); white-space: nowrap; }
.company-search-results { position: absolute; z-index: 28; top: calc(100% + 6px); right: 0; left: 0; max-height: 260px; padding: 5px; overflow-y: auto; border: 1px solid #dfe5eb; border-radius: 7px; background: #fff; box-shadow: 0 12px 30px rgba(28,44,64,.16); }
.company-search-results[hidden] { display: none; }
.company-search-results button { width: 100%; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.company-search-results button small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.company-search-results button:hover, .company-search-results button.is-active { background: #eef7ff; color: var(--brand); }
.company-search-results button strong, .company-search-results button span { display: block; }
.company-search-results button strong { font-size: 12px; }
.company-search-results button span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.staff-user-picker { position: relative; }
.staff-user-search { position: relative; }
.staff-user-search { display: flex; gap: 8px; }
.staff-user-search input { min-width: 0; flex: 1; }
.staff-user-search-button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 66px; padding: 0 11px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; color: #334155; cursor: pointer; font-size: 12px; }
.staff-user-search-button:hover { border-color: #93c5fd; background: #eff6ff; color: #2563eb; }
.staff-user-search-button:disabled { opacity: .6; cursor: wait; }
.staff-user-search-button .icon { width: 15px; height: 15px; }
.staff-user-selected { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; margin-top: 7px; padding: 7px 10px; border: 1px solid #bbf0d0; border-radius: 6px; background: #f0fdf4; color: #166534; font-size: 12px; }
.staff-user-selected[hidden] { display: none; }
.staff-user-selected button { flex: 0 0 auto; padding: 2px 5px; border: 0; background: transparent; color: #15803d; cursor: pointer; font-size: 11px; }
.staff-user-results { top: calc(100% + 6px); }
.staff-user-results button[disabled] { color: var(--muted); background: #f8fafc; cursor: not-allowed; }
.staff-user-results button[disabled] span { color: #b45309; }
.company-search-empty { padding: 24px 12px; color: var(--muted); font-size: 12px; text-align: center; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-divider { margin-top: 5px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-divider span { color: var(--ink); font-size: 14px; font-weight: 700; }
.form-actions { padding-top: 6px; display: flex; justify-content: flex-end; gap: 10px; }
.checkbox-row { min-height: 40px; display: flex; align-items: center; gap: 9px; }
.checkbox-row input { width: 16px; height: 16px; }
.category-checkbox-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.category-check-item { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 5px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--page); font-size: 12px; color: var(--ink); transition: background .12s, border-color .12s; user-select: none; }
.category-check-item:hover { border-color: var(--brand); background: #eef6ff; }
.category-check-item input[type="checkbox"] { width: 14px; height: 14px; margin: 0; cursor: pointer; }
.category-check-item:has(input:checked) { border-color: var(--brand); background: #dbeeff; color: var(--brand); font-weight: 600; }
.empty-state { padding: 60px 20px; color: var(--muted); text-align: center; }
.empty-state .icon { width: 34px; height: 34px; margin: 0 auto 12px; opacity: .45; }
.section-gap { margin-top: 18px; }
.muted { color: var(--muted); font-style: normal; }
.page-note { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.required { color: #d94b4b; font-weight: 700; }
.employee-stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.employee-form { max-width: 980px; margin-bottom: 18px; }
.employee-form small { display: block; margin-top: 6px; color: #98a2b0; font-size: 10px; }
.employee-filters { margin-top: 18px; }
.employees-table { min-width: 1740px; }
.employees-table th:first-child, .employees-table td:first-child { min-width: 150px; }
.employees-table th:nth-child(2), .employees-table td:nth-child(2) { min-width: 160px; }
.employees-table th:nth-child(3), .employees-table td:nth-child(3) { min-width: 190px; }
.employees-table th:nth-child(6), .employees-table td:nth-child(6) { min-width: 200px; }
.employees-table th:nth-child(7), .employees-table td:nth-child(7) { min-width: 170px; }
.employees-table th:nth-child(8), .employees-table td:nth-child(8) { min-width: 190px; }
.employee-days { display: flex; align-items: baseline; gap: 3px; color: var(--brand); }
.employee-days strong { font-size: 18px; }
.employee-days span { color: var(--muted); font-size: 11px; }
.employee-reward { display: block; color: #657286; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.employee-reward.pending { color: #b56d13; font-weight: 650; }
.cell-link { display: inline-block; margin-top: 4px; color: var(--brand); font-size: 11px; }
.employee-note { max-width: 150px; overflow: hidden; color: #657286; text-overflow: ellipsis; white-space: nowrap; }
.staff-dispatch-table { min-width: 1380px; }
.staff-dispatch-actions { min-width: 610px; display: flex; align-items: center; gap: 8px; }
.staff-dispatch-actions .inline-update { flex: 1 1 auto; min-width: 430px; }
.staff-dispatch-actions > form:last-child { flex: 0 0 auto; }
.staff-commission-table { min-width: 1780px; }
.staff-commission-table th, .staff-commission-table td { vertical-align: top; }
.staff-commission-table td:nth-child(2) { min-width: 145px; }
.staff-commission-table td:nth-child(3) { min-width: 145px; }
.staff-commission-table td:nth-child(4) { min-width: 180px; }
.staff-commission-table td:nth-child(6) { min-width: 170px; }
.staff-commission-table td:nth-child(9) { min-width: 150px; max-width: 220px; }
.staff-commission-filters .search-field { min-width: 300px; }
.staff-unsettled-filter { flex: 0 0 auto; white-space: nowrap; }
.staff-unsettled-filter input { width: 16px; height: 16px; }
.staff-progress-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; white-space: nowrap; }
.staff-progress-label strong { color: var(--ink); font-size: 12px; }
.staff-progress-label span { color: var(--brand); font-size: 11px; }
.staff-progress { width: 150px; height: 7px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: #edf1f5; }
.staff-progress > span { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.staff-commission-note { max-width: 210px; overflow: hidden; color: #657286; line-height: 1.55; text-overflow: ellipsis; white-space: normal; }

/* Platform stats override rows */
.override-row { padding: 18px; border-radius: 12px; background: #f6f9fc; }
.override-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.override-head span { display: block; color: #172033; font-size: 14px; font-weight: 600; }
.override-head em { margin-left: 8px; color: #98a3b2; font-size: 11px; font-weight: 400; }
.override-preview { font-size: 12px; color: #6c7a8c; font-weight: 400; }
.override-preview strong { color: #1388ff; font-size: 16px; margin: 0 2px; }
.override-controls { display: flex; gap: 18px; align-items: center; }
.override-value { flex: 0 0 220px; padding: 9px 12px; border: 1px solid #dfe5ec; border-radius: 8px; font-size: 14px; background: #fff; }
.override-switch { display: flex; align-items: center; gap: 6px; color: #526174; font-size: 13px; cursor: pointer; }
.override-switch input { width: 16px; height: 16px; }
.inline-update { min-width: 430px; display: grid; grid-template-columns: 125px minmax(180px,1fr) auto; align-items: center; gap: 7px; }
.inline-update.compact { min-width: 220px; grid-template-columns: 130px auto; }
.inline-update input, .inline-update select { height: 34px; }
.organization-forms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.organization-form-single { max-width: 980px; }
.user-edit-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 18px; align-items: start; }
.user-edit-layout .compact-form { min-width: 0; }
.compact-form .form-grid { gap: 14px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.station-avatar-upload { min-height: 54px; display: flex; align-items: center; gap: 12px; }
.station-avatar-upload [hidden] { display: none !important; }
.station-avatar-preview { width: 52px; height: 52px; max-width: 52px; max-height: 52px; flex: 0 0 52px; overflow: hidden; border: 1px solid #dfe6ed; border-radius: 50%; background: #f2f7fb; display: flex; align-items: center; justify-content: center; }
.station-avatar-preview img { display: block; width: 52px !important; height: 52px !important; max-width: 52px !important; max-height: 52px !important; object-fit: cover; }
.station-avatar-preview > span .icon { width: 20px; height: 20px; opacity: .55; }
.station-avatar-upload-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.station-avatar-upload-actions small { width: 100%; color: var(--muted); font-size: 11px; }
.station-list-person { min-width: 130px; display: flex; align-items: center; gap: 10px; }
.station-list-avatar { width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border-radius: 50%; background: #eaf5ff; color: #147edb; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.station-list-avatar img { display: block; width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; object-fit: cover; }
.amount-income { color: var(--green); font-weight: 700; }
.amount-expense { color: var(--red); font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.service-content { max-width: 420px; white-space: normal; line-height: 1.55; }
.interface-top { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr); gap: 18px; }
.interface-tabs { margin-bottom: 18px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: inline-flex; align-items: center; gap: 4px; }
.interface-tabs a { min-width: 112px; min-height: 38px; padding: 0 18px; border-radius: 6px; color: #687587; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.interface-tabs a:hover { color: var(--brand); background: #f3f8fd; }
.interface-tabs a.active { color: #fff; background: var(--brand); }
.job-option-tabs { display: flex; width: 100%; }
.job-option-tabs a { flex: 1; min-width: 0; }
.interface-preview { padding: 22px; display: flex; flex-direction: column; justify-content: center; background: #173e68; color: #fff; }
.interface-preview span, .interface-preview em { color: #a9bdd2; font-size: 12px; font-style: normal; }
.interface-preview strong { margin: 10px 0; font-size: 24px; }
.home-quick-filter-table input[type="text"], .home-quick-filter-table input[type="search"] { min-width: 160px; }
.banner-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.banner-admin-card { overflow: hidden; }
.banner-admin-image { height: 150px; background: #173e68; color: #a9c4df; display: flex; align-items: center; justify-content: center; }
.banner-admin-image img { width: 100%; height: 100%; object-fit: cover; }
.banner-admin-fields { padding: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.banner-admin-fields label > span, .tabbar-admin-item label > span { display: block; margin-bottom: 6px; color: #586678; font-size: 11px; font-weight: 600; }
.banner-admin-fields .span-2 { grid-column: 1 / -1; }
.banner-admin-list { grid-template-columns: 1fr; gap: 10px; }
.banner-admin-card { display: grid; grid-template-columns: 180px minmax(0,1fr); min-height: 126px; }
.banner-admin-card.new { border: 1px dashed #b9cce0; background: #fbfdff; }
.banner-admin-image { width: 180px; height: 72px; min-height: 0; align-self: start; margin: 14px 0 0 14px; border-radius: 7px; }
.banner-admin-image img { object-fit: contain; background: #eef3f7; }
.banner-admin-main { min-width: 0; padding: 14px 16px; }
.banner-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.banner-admin-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.banner-admin-title strong { max-width: 440px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.banner-admin-head small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.banner-admin-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.banner-admin-actions .checkbox-row { margin: 0; white-space: nowrap; }
.banner-admin-quick { display: grid; grid-template-columns: 170px minmax(180px,1fr) 100px; gap: 10px; margin-top: 13px; }
.banner-admin-quick label > span { display: block; margin-bottom: 5px; color: #586678; font-size: 11px; font-weight: 600; }
.banner-admin-more { margin-top: 11px; border-top: 1px solid #edf1f5; }
.banner-admin-more summary { padding-top: 9px; color: var(--brand); cursor: pointer; font-size: 11px; font-weight: 650; }
.banner-admin-more .banner-admin-fields { padding: 12px 0 0; }
.banner-admin-tip { color: var(--muted); font-size: 11px; }
.tabbar-admin-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tabbar-admin-item { padding: 16px; display: grid; grid-template-columns: 34px minmax(150px,1fr) 112px 112px 82px 118px auto auto; align-items: end; gap: 12px; }
.tabbar-move-actions { display: flex; gap: 6px; align-items: center; }
.tabbar-move-actions .btn { width: 36px; min-width: 36px; padding-left: 0; padding-right: 0; }
.tabbar-move-actions .tabbar-arrow { width: 16px; height: 16px; display: block; }
.tabbar-move-actions .tabbar-arrow-up { transform: rotate(-90deg); }
.tabbar-move-actions .tabbar-arrow-down { transform: rotate(90deg); }
.tabbar-move-actions .btn:disabled { opacity: .35; cursor: not-allowed; }
.tabbar-order { width: 30px; height: 30px; border-radius: 6px; background: #eaf5ff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; align-self: center; }
.tabbar-admin-item > div { align-self: center; }
.tabbar-admin-item > div strong, .tabbar-admin-item > div span { display: block; }
.tabbar-admin-item > div strong { font-size: 12px; }
.tabbar-admin-item > div span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.nav-icon-admin { width: 42px; height: 42px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; overflow: hidden; }
.nav-icon-admin img { width: 100%; height: 100%; object-fit: cover; }
.nav-icon-admin.red { background: #f35d5b; } .nav-icon-admin.orange { background: #ff8a45; }
.nav-icon-admin.yellow { background: #f5b733; } .nav-icon-admin.green { background: #3aae7c; }
.nav-icon-admin.amber { background: #da8f24; } .nav-icon-admin.coral { background: #ed745f; }
.nav-icon-admin.violet { background: #8b78c9; } .nav-icon-admin.cyan { background: #29a9bd; }
.remove-icon-check { margin-top: 7px; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.remove-icon-check input { width: 14px; height: 14px; }
.share-rule-note { padding: 12px 14px; border-radius: 7px; background: #f3f7fb; color: #647286; font-size: 12px; line-height: 1.65; }
.rules-list { display: flex; flex-direction: column; gap: 10px; }
.rules-header { display: grid; grid-template-columns: 1fr 1fr 80px 60px 72px; gap: 10px; padding: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
.rule-row { display: grid; grid-template-columns: 1fr 1fr 80px 60px 72px; gap: 10px; align-items: center; }
.rule-row input[type=number] { width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; }
.rule-row input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
.rule-row .inline-form { margin: 0; }
.rule-row .inline-form .btn { padding: 5px 10px; font-size: 12px; }
.inline-settle { display: flex; align-items: center; gap: 6px; }
.inline-settle select.settle-days { padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; min-width: 160px; }
.flash-stack { position: fixed; z-index: 90; right: 24px; top: 82px; display: flex; flex-direction: column; gap: 8px; transition: opacity .3s, transform .3s; }
.flash-stack.is-hidden { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.is-hidden { display: none !important; }
.alert { min-width: 280px; padding: 12px 14px; border-radius: 7px; background: #e9f7ef; color: #167b52; box-shadow: 0 8px 30px rgba(22,38,58,.13); }
.alert.danger { background: #fff0ef; color: #b83f3f; }
.sidebar-mask { display: none; }

.auth-page { background: #eef3f8; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.auth-card { width: min(430px,100%); padding: 32px; border: 1px solid #e1e7ed; border-radius: 8px; background: #fff; box-shadow: 0 18px 60px rgba(32,52,76,.12); }
.auth-brand { margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.auth-heading h1, .auth-heading h2 { margin: 0; font-size: 23px; }
.auth-heading p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.auth-form { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.auth-form label span { display: block; margin-bottom: 7px; color: #596779; font-size: 12px; font-weight: 600; }
.installer-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px,.8fr) minmax(560px,1.2fr); }
.install-intro { padding: 9vh 7vw; background: #102a46; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.install-intro .brand-mark { margin-bottom: 26px; }
.eyebrow { color: #6fc0ff; font-size: 12px; }
.install-intro h1 { max-width: 520px; margin: 16px 0; font-size: 38px; line-height: 1.35; }
.install-intro > p { max-width: 520px; color: #a8bdd1; line-height: 1.8; }
.install-points { margin-top: 42px; display: flex; gap: 36px; }
.install-points strong { display: block; font-size: 22px; }
.install-points span { display: block; margin-top: 5px; color: #7893ad; font-size: 11px; }
.install-card { width: min(720px,calc(100% - 60px)); align-self: center; justify-self: center; }
.install-form { margin-top: 24px; }
.migration-shell { min-height: 100vh; padding: 46px 22px; display: flex; align-items: flex-start; justify-content: center; }
.migration-card { width: min(820px,100%); overflow: hidden; border: 1px solid #e1e7ed; border-radius: 8px; background: #fff; box-shadow: 0 18px 60px rgba(32,52,76,.1); }
.migration-head { padding: 26px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.migration-head h1 { margin: 7px 0 6px; font-size: 23px; }
.migration-head p { margin: 0; color: var(--muted); font-size: 12px; }
.migration-summary { margin: 22px 28px 14px; padding: 18px 20px; border-radius: 7px; background: #f3f8fd; display: flex; align-items: baseline; gap: 9px; }
.migration-summary strong { color: var(--brand); font-size: 28px; }
.migration-summary span { color: #526174; font-weight: 600; }
.migration-summary em { margin-left: auto; color: #8793a2; font-size: 11px; font-style: normal; }
.migration-list { margin: 0 28px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.migration-item { min-height: 58px; padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.migration-item:last-child { border-bottom: 0; }
.migration-item > div strong, .migration-item > div span { display: block; }
.migration-item > div strong { font-size: 13px; }
.migration-item > div span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.migration-result { margin: 20px 28px 0; padding: 13px 15px; border-radius: 7px; }
.migration-result span { display: block; line-height: 1.7; }
.migration-result.success { background: #e9f7ef; color: #167b52; }
.migration-result.danger { background: #fff0ef; color: #b83f3f; }
.migration-actions { padding: 22px 28px 28px; display: flex; justify-content: flex-end; gap: 10px; }

.resume-person { min-width: 190px; display: flex; align-items: center; gap: 11px; }
.resume-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: #eaf5ff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 750; }
.resume-table td { min-width: 105px; }
.resume-table td:first-child, .resume-table td:nth-child(2) { min-width: 190px; }
.resume-table td:nth-child(4) { min-width: 210px; }
.salary-text { margin-bottom: 7px; color: #e44e4e; }
.resume-summary { max-width: 300px; color: #657286; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.resume-detail-actions { align-items: flex-end; }
.resume-detail-actions h2 { margin-top: 7px; }
.resume-back { color: var(--brand); font-size: 12px; font-weight: 650; }
.resume-detail-layout { display: grid; grid-template-columns: minmax(250px,310px) minmax(0,1fr); align-items: start; gap: 18px; }
.resume-profile-card { overflow: hidden; }
.resume-profile-head { padding: 24px 22px 19px; display: flex; align-items: center; gap: 14px; }
.resume-profile-avatar { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: #1687f8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.resume-profile-head h3 { margin: 0; font-size: 18px; }
.resume-profile-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.resume-profile-status { padding: 0 22px 19px; display: flex; gap: 7px; }
.resume-contact-list { margin: 0; padding: 4px 22px 14px; border-top: 1px solid var(--line); }
.resume-contact-list > div { padding: 12px 0; border-bottom: 1px solid #f0f2f5; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.resume-contact-list dt { color: var(--muted); font-size: 11px; }
.resume-contact-list dd { margin: 0; color: #39475a; font-size: 12px; font-weight: 650; text-align: right; }
.resume-account-meta { padding: 2px 22px 20px; display: flex; flex-direction: column; gap: 7px; color: #8c97a5; font-size: 10px; }
.resume-detail-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.resume-section { overflow: hidden; }
.resume-section > header { min-height: 56px; padding: 13px 19px; border-bottom: 1px solid #eef1f4; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.resume-section > header h3 { margin: 0; font-size: 15px; }
.resume-section > header > span { color: var(--muted); font-size: 11px; }
.resume-intention > header { min-height: 82px; border-bottom: 0; }
.resume-intention > header span { color: var(--muted); font-size: 11px; }
.resume-intention > header h3 { margin-top: 8px; font-size: 18px; }
.resume-intention > header strong { color: #e44e4e; font-size: 17px; }
.resume-long-text { min-height: 100px; padding: 19px; color: #465366; line-height: 1.85; white-space: normal; }
.resume-empty-copy { color: #98a2b0; }
.resume-empty-block { padding: 28px 19px; text-align: center; }
.resume-application-list > div { min-height: 68px; padding: 12px 19px; border-top: 1px solid #f0f2f5; display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 11px; }
.resume-application-list > div:first-child { border-top: 0; }
.resume-application-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.resume-application-list strong { font-size: 13px; }
.resume-application-list p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .agent-stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .installer-shell { grid-template-columns: 1fr; }
  .install-intro { min-height: 300px; padding: 50px 8vw; }
  .install-card { margin: 38px auto; }
  .organization-forms { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .interface-top, .banner-admin-grid, .tabbar-admin-grid { grid-template-columns: 1fr; }
  .tabbar-admin-item { grid-template-columns: 34px minmax(120px,1fr) 100px 100px 76px 110px auto auto; }
  .job-filters { grid-template-columns: repeat(3,minmax(140px,1fr)); }
  .resume-detail-layout { grid-template-columns: 1fr; }
  .employee-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .resume-profile-card { display: grid; grid-template-columns: 1fr 1fr; }
  .resume-profile-status, .resume-account-meta { align-self: center; }
  .resume-contact-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
}
@media (max-width: 760px) {
  .migration-shell { padding: 14px; }
  .migration-head { align-items: flex-start; padding: 20px; }
  .migration-summary { margin: 16px 20px 12px; flex-wrap: wrap; }
  .migration-summary em { width: 100%; margin-left: 0; }
  .migration-list { margin: 0 20px; }
  .migration-actions { padding: 18px 20px 22px; }
  .interface-tabs { width: 100%; display: flex; }
  .interface-tabs a { flex: 1; min-width: 0; padding: 0 8px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-mask { position: fixed; z-index: 35; inset: 0; background: rgba(10,25,43,.45); }
  .sidebar-open .sidebar-mask { display: block; }
  .main-shell { width: 100%; margin-left: 0; }
  .mobile-menu { display: flex; }
  .topbar { height: 64px; padding: 0 16px; }
  .topbar p, .date-chip { display: none; }
  .content { padding: 18px 14px 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .agent-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 110px; padding: 15px; }
  .stat-copy strong { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .admin-pagination { align-items: flex-start; flex-direction: column; }
  .job-form-panel { grid-template-columns: 1fr; }
  .job-form-submit-bar { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
  .filters select { width: calc(50% - 5px); }
  .search-field { min-width: 100%; }
  .application-filters .filter-date { width: calc(50% - 17px); }
  .application-filters .filter-date-separator { width: 14px; text-align: center; }
  .job-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .job-filter-search { grid-column: 1 / -1; }
  .job-filter-actions { align-items: stretch; flex-wrap: wrap; }
  .job-filter-actions > span { width: 100%; margin: 0; }
  .job-filter-actions .btn { flex: 1; }
  .install-intro h1 { font-size: 28px; }
  .install-points { gap: 20px; }
  .install-card { width: calc(100% - 28px); padding: 22px; }
  .page-actions { align-items: flex-start; }
  .page-actions h2 { font-size: 16px; }
  .finance-stats { grid-template-columns: 1fr; }
  .resume-stats { grid-template-columns: 1fr 1fr; }
  .resume-detail-actions { align-items: flex-start; }
  .resume-detail-actions .btn { width: 100%; }
  .resume-profile-card { display: block; }
  .resume-contact-list { display: block; }
  .resume-intention > header { align-items: flex-start; flex-direction: column; }
  .agent-profile-strip { grid-template-columns: 1fr; }
  .agent-profile-strip > div { border-right: 0; border-bottom: 1px solid #edf0f3; }
  .agent-profile-strip > div:last-child { border-bottom: 0; }
  .agent-report-actions { align-items: flex-start; }
  .employee-stats-grid { grid-template-columns: 1fr 1fr; }
  .banner-admin-card { grid-template-columns: 96px minmax(0,1fr); }
  .banner-admin-image { width: 96px; height: 38px; margin: 12px 0 0 10px; }
  .banner-admin-main { padding: 12px; }
  .banner-admin-quick { grid-template-columns: 1fr 90px; }
  .banner-admin-quick label:nth-child(2) { grid-column: 1 / -1; }
  .banner-admin-fields { grid-template-columns: 1fr; }
.banner-admin-fields .span-2 { grid-column: auto; }
.tabbar-admin-item { grid-template-columns: 34px 1fr; align-items: center; }
.tabbar-admin-item label, .tabbar-admin-item > button, .tabbar-move-actions { grid-column: 1 / -1; }
}

/* 图片上传样式 */
.upload-box { width: 100%; }
.upload-placeholder {
  border: 2px dashed #dfe5eb;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-placeholder:hover { border-color: #78b9fa; background: #f8fbff; }
.upload-icon { display: block; font-size: 32px; color: #b0bec5; margin-bottom: 8px; }
.upload-text { display: block; color: #586678; font-weight: 600; margin-bottom: 4px; }
.upload-hint { display: block; color: #98a2b0; font-size: 11px; }
.upload-preview { position: relative; display: inline-block; max-width: 100%; }
.upload-preview img { max-width: 300px; max-height: 180px; border-radius: 8px; display: block; }
.upload-preview video { max-width: 320px; max-height: 240px; border-radius: 8px; display: block; background: #000; }
.upload-remove { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border: none; border-radius: 50%; background: #e55353; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.upload-remove:hover { background: #c94242; }
.upload-progress { margin-top: 12px; max-width: 320px; }
.upload-progress-bar { width: 100%; height: 6px; background: #e5e9f0; border-radius: 3px; overflow: hidden; }
.upload-progress-bar > span { display: block; height: 100%; width: 0%; background: #2a72f5; transition: width .2s ease; }
.upload-progress-text { display: block; margin-top: 6px; color: #586678; font-size: 12px; }
.job-images-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
.job-image-item, .job-image-add { position: relative; width: 100%; aspect-ratio: 5 / 3; border-radius: 8px; overflow: hidden; }
.job-image-item { border: 1px solid #e0e6ec; background: #f3f6f9; }
.job-image-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
.job-image-item .upload-remove { top: 7px; right: 7px; }
.job-image-cover-badge { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 5px; background: rgba(17,24,39,.78); color: #fff; font-size: 11px; font-weight: 650; }
.job-image-add { border: 2px dashed #d9e1e9; background: #f9fbfd; color: #718095; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.job-image-add:hover { border-color: #78b9fa; background: #f2f8ff; color: #1687f8; }
.job-image-add span { font-size: 28px; line-height: 1; }
.job-image-add strong { margin-top: 7px; font-size: 12px; }
.job-image-add small { margin-top: 3px; color: #a0a9b5; font-size: 10px; }
.job-images-upload .field-help { display: block; margin-top: 10px; }
.job-images-upload-status { margin-top: 10px; padding: 9px 11px; border-radius: 6px; background: #eef7ff; color: #1678d4; font-size: 12px; }
.factory-form { margin-bottom: 18px; }
.factory-media-groups { display: grid; gap: 14px; }
.factory-media-group { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; }
.factory-media-head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.factory-media-head strong, .factory-media-head span { display: block; }
.factory-media-head strong { font-size: 13px; }
.factory-media-head span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.factory-media-grid { display: grid; grid-template-columns: repeat(auto-fill,112px); gap: 10px; align-items: start; }
.factory-media-item { position: relative; width: 112px; height: 84px; overflow: hidden; border: 1px solid #dfe5eb; border-radius: 7px; background: #f1f4f7; }
.factory-media-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
.factory-media-item button { position: absolute; top: 6px; right: 6px; width: 25px; height: 25px; border: 0; border-radius: 50%; background: rgba(18,29,43,.78); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.factory-media-empty { min-height: 74px; grid-column: 1 / -1; border: 1px dashed #dbe2e9; border-radius: 7px; color: #98a2b0; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.factory-video-upload { display: flex; align-items: flex-start; gap: 16px; }
.factory-video-upload [hidden] { display: none !important; }
.factory-video-upload video { width: 260px; max-height: 180px; border-radius: 8px; background: #111; }
.factory-video-actions { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.factory-video-actions small { width: 100%; color: var(--muted); font-size: 11px; }
.ai-admin-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.7fr); gap: 18px; align-items: start; }
.ai-safety-list { display: grid; gap: 0; }
.ai-safety-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ai-safety-list > div:last-child { border-bottom: 0; }
.ai-safety-list strong, .ai-safety-list span { display: block; }
.ai-safety-list strong { font-size: 13px; }
.ai-safety-list span { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.ai-log-copy { max-width: 310px; overflow: hidden; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.ai-log-copy.muted { color: var(--muted); }
.interface-preview-copy { display: block; max-width: 100%; margin-top: 12px; overflow: hidden; color: #526174 !important; font-size: 12px !important; text-overflow: ellipsis; white-space: nowrap; }
.admin-account-layout { display: grid; grid-template-columns: minmax(330px,.75fr) minmax(0,1.25fr); gap: 18px; align-items: start; }
.admin-account-layout.is-create-hidden { grid-template-columns: minmax(0,1fr); }
.admin-permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.admin-permission-item { min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfd; display: flex; align-items: center; gap: 8px; color: #526174; font-size: 12px; }
.admin-permission-item input { width: 16px; height: 16px; accent-color: var(--brand); }
.inline-form { display: inline; }
@media (max-width: 760px) {
  .factory-media-head, .factory-video-upload { align-items: stretch; flex-direction: column; }
  .factory-video-upload video { width: 100%; }
  .ai-admin-grid { grid-template-columns: 1fr; }
  .admin-account-layout { grid-template-columns: 1fr; }
  .admin-permission-grid { grid-template-columns: 1fr 1fr; }
  .user-edit-layout { grid-template-columns: 1fr; }
}
