.admin-page { overflow: hidden; background: #f3f6f5; }
.admin-page select { width: 100%; height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #788680 50%), linear-gradient(135deg, #788680 50%, transparent 50%); background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.admin-page select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,167,123,.1); outline: none; }
.admin-page a { color: inherit; text-decoration: none; }
.admin-login-visual { background: radial-gradient(circle at 76% 18%, rgba(89,111,236,.35), transparent 30%), linear-gradient(145deg,#17372e 0%,#0a1512 58%,#141b28 100%); }
.admin-visual-copy { position: absolute; top: 56px; left: 56px; display: grid; gap: 9px; color: white; }
.admin-visual-copy span { color: #81e7c8; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.admin-visual-copy strong { font-size: 22px; font-weight: 620; letter-spacing: -.03em; }
.admin-visual-board { position: absolute; width: min(76%,760px); left: 50%; top: 52%; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 22px; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.07); box-shadow: 0 35px 80px rgba(0,0,0,.25); backdrop-filter: blur(14px); }
.visual-metric { position: relative; display: grid; gap: 8px; min-height: 118px; padding: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(9,19,16,.55); color: white; }
.visual-metric small { color: #99aaa4; font-size: 10px; }
.visual-metric strong { font-size: 35px; letter-spacing: -.05em; }
.visual-metric i { position: absolute; width: 66px; height: 66px; right: -18px; bottom: -24px; border: 14px solid rgba(111,232,197,.15); border-radius: 50%; }
.visual-chart { grid-column: 1/-1; height: 150px; display: flex; align-items: end; gap: 12px; padding: 24px 22px 16px; border-radius: 13px; background: rgba(9,19,16,.55); }
.visual-chart span { flex: 1; min-height: 12%; border-radius: 5px 5px 2px 2px; background: linear-gradient(#70e3c1,#397963); opacity: .82; }
.visual-chart span:nth-child(1) { height: 29%; }.visual-chart span:nth-child(2) { height: 46%; }.visual-chart span:nth-child(3) { height: 38%; }.visual-chart span:nth-child(4) { height: 69%; }.visual-chart span:nth-child(5) { height: 58%; }.visual-chart span:nth-child(6) { height: 84%; }.visual-chart span:nth-child(7) { height: 72%; }

.admin-shell { width: 100%; height: 100%; display: grid; grid-template-columns: 238px minmax(0,1fr); }
.admin-sidebar { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 27px 17px 18px; background: #17231f; color: #e8f2ee; }
.admin-brand { gap: 10px; margin: 0 11px; color: white; font-size: 18px; }
.admin-brand .brand-mark { background: #273832; }
.sidebar-caption { margin: 10px 12px 27px; color: #7f918a; font-size: 9px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav-item { width: 100%; height: 45px; display: grid; grid-template-columns: 29px 1fr; align-items: center; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #98aaa3; font-size: 12px; font-weight: 650; text-align: left; cursor: pointer; transition: .15s; }
.admin-nav-item > span { color: #73867f; font-size: 16px; text-align: center; }
.admin-nav-item:hover { background: rgba(255,255,255,.04); color: #d6e3de; }
.admin-nav-item.is-active { border-color: rgba(118,229,196,.13); background: rgba(77,193,159,.13); color: #9cf0d6; }
.admin-nav-item.is-active > span { color: #7ce5c5; }
.sidebar-bottom { display: grid; gap: 15px; margin-top: auto; }
.sidebar-link { display: flex; justify-content: space-between; padding: 11px 10px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); color: #91a39c; font-size: 10px; line-height: 1.45; }
.sidebar-link:hover { color: #a7ecd7; }
.sidebar-user { display: grid; grid-template-columns: 34px minmax(0,1fr) 30px; align-items: center; gap: 9px; padding: 0 6px; }
.sidebar-user .avatar { background: #2b3d36; }
.sidebar-user > span { min-width: 0; display: grid; gap: 3px; }
.sidebar-user strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { color: #7f918a; font-size: 9px; }
.sidebar-user button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: #7f918a; cursor: pointer; }
.sidebar-user button:hover { background: rgba(255,255,255,.07); color: white; }

.admin-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.admin-topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 16px 31px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.admin-topbar .eyebrow { margin-bottom: 5px; font-size: 8px; }
.admin-topbar h1 { margin: 0; color: #25332e; font-size: 20px; letter-spacing: -.035em; }
.topbar-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.admin-content { flex: 1; min-height: 0; overflow-y: auto; padding: 29px 31px 45px; }
.admin-section { max-width: 1500px; margin: 0 auto; }
.section-lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-lead h2 { margin: 0 0 7px; color: #25332e; font-size: 22px; letter-spacing: -.035em; }
.section-lead p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card { min-height: 136px; display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 5px 20px rgba(21,42,35,.035); }
.kpi-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; font-size: 18px; font-weight: 700; }
.kpi-icon.mint { background: #e4f8f1; color: #087a5c; }.kpi-icon.amber { background: #fff2dd; color: #bd7917; }.kpi-icon.violet { background: #eceeff; color: #6574dc; }.kpi-icon.green { background: #e5f5e9; color: #398050; }
.kpi-card div { min-width: 0; display: grid; align-content: start; }
.kpi-card small { color: var(--muted); font-size: 10px; font-weight: 650; }
.kpi-card strong { margin: 7px 0 4px; color: #1d2a26; font-size: 30px; line-height: 1; letter-spacing: -.05em; }
.kpi-card p { margin: 0; color: var(--soft); font-size: 9px; line-height: 1.4; }
.admin-grid { display: grid; gap: 18px; }
.admin-grid.two-one { grid-template-columns: minmax(0,1.6fr) minmax(310px,.7fr); }
.admin-card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 5px 20px rgba(21,42,35,.035); }
.card-heading { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.card-heading h3 { margin: 0 0 4px; font-size: 13px; }
.card-heading p { margin: 0; color: var(--soft); font-size: 9px; }
.dataset-progress-list { min-height: 230px; padding: 8px 18px 16px; }
.dataset-progress-row { display: grid; grid-template-columns: minmax(150px,1.1fr) minmax(150px,1fr) 78px; align-items: center; gap: 17px; min-height: 67px; border-bottom: 1px solid #edf1ef; }
.dataset-progress-row:last-child { border-bottom: 0; }
.dataset-progress-copy { min-width: 0; display: grid; gap: 5px; }
.dataset-progress-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dataset-progress-copy small { color: var(--soft); font-size: 9px; }
.inline-progress { display: grid; gap: 6px; }
.inline-progress > span { height: 6px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.inline-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.inline-progress small { color: var(--soft); font-size: 8px; }
.dataset-progress-stats { display: grid; justify-items: end; gap: 4px; }
.dataset-progress-stats strong { font-size: 12px; }.dataset-progress-stats small { color: var(--soft); font-size: 8px; }
.compact-workloads { padding: 9px 18px 16px; }
.compact-workload { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 60px; border-bottom: 1px solid #edf1ef; }
.compact-workload:last-child { border-bottom: 0; }.compact-workload .avatar { width: 30px; height: 30px; border-radius: 8px; }
.compact-workload > span { min-width: 0; display: grid; gap: 3px; }.compact-workload strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.compact-workload small { color: var(--soft); font-size: 8px; }.compact-workload > b { color: #42514b; font-size: 11px; }
.empty-card { display: grid; place-items: center; min-height: 160px; padding: 25px; color: var(--soft); font-size: 10px; text-align: center; }

.upload-layout { grid-template-columns: minmax(540px,1.15fr) minmax(360px,.85fr); align-items: start; }
.upload-card { padding: 23px; }
.admin-form { display: grid; gap: 17px; }
.admin-form label { display: grid; gap: 7px; color: #53615c; font-size: 10px; font-weight: 680; }
.admin-form label > small { color: var(--soft); font-size: 8px; font-weight: 500; }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.file-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-picker { position: relative; min-height: 112px; display: grid !important; grid-template-columns: 50px minmax(0,1fr); align-content: center; column-gap: 12px !important; padding: 17px; border: 1px dashed var(--line-strong); border-radius: 11px; background: var(--surface-2); cursor: pointer; transition: .15s; }
.file-picker:hover { border-color: var(--accent); background: #f0faf6; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-picker-icon { grid-row: 1/3; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 11px; background: #dff6ee; color: #0b7d5e; font-size: 11px; font-weight: 850; }
.depth-picker .file-picker-icon { background: #e9ebff; color: #6270ca; font-size: 16px; }
.file-picker strong { align-self: end; font-size: 11px; }.file-picker small { align-self: start; overflow: hidden; color: var(--soft); font-size: 8px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.upload-status { display: grid; gap: 8px; padding: 13px; border-radius: 9px; background: var(--surface-2); }
.upload-status > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }.upload-status strong { color: var(--ink); }
.upload-track { height: 6px; overflow: hidden; border-radius: 99px; background: #dfe7e3; }.upload-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent),#6f80ed); transition: width .2s; }
.upload-status > small { overflow: hidden; color: var(--soft); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.form-actions { display: flex; justify-content: flex-end; }.form-actions .button { min-width: 180px; }
.dataset-register { min-height: 300px; }
.dataset-register-list { max-height: calc(100vh - 280px); overflow-y: auto; padding: 7px 14px 14px; }
.dataset-register-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 14px 5px; border-bottom: 1px solid #edf1ef; }
.dataset-register-row:last-child { border-bottom: 0; }.register-copy { min-width: 0; display: grid; gap: 6px; }.register-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.register-copy small { color: var(--soft); font-size: 8px; }.register-stats { display: flex; flex-wrap: wrap; gap: 5px; }.register-actions { display: flex; align-items: center; gap: 4px; }.mini-button { height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--muted); font-size: 8px; font-weight: 700; cursor: pointer; }.mini-button:hover { border-color: var(--accent); color: var(--accent-dark); }.mini-button.danger { color: var(--danger); }.mini-button.danger:hover { border-color: #edb7bb; background: #fff3f4; }
.status-tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 8px; font-weight: 750; white-space: nowrap; }.status-tag.pending,.status-tag.uploading { background: #fff2db; color: #a46a16; }.status-tag.draft,.status-tag.assigned { background: #eceeff; color: #5d6cc8; }.status-tag.completed,.status-tag.ready,.status-tag.approved { background: #e2f6ee; color: #08795b; }.status-tag.submitted { background: #fff2db; color: #a46a16; }.status-tag.rejected { background: #fde8e9; color: #b33c46; }

.task-card { overflow: hidden; }
.task-toolbar { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(220px,1fr) minmax(170px,.6fr); gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.select-field { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 650; }.select-field select { height: 36px; font-size: 10px; }
.search-field { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--soft); }.search-field input { height: auto; padding: 0; border: 0; box-shadow: none; background: transparent; font-size: 10px; }
.task-tabs { display: flex; gap: 4px; padding: 10px 18px 0; border-bottom: 1px solid var(--line); }
.task-tabs button { position: relative; min-width: 110px; height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }.task-tabs button::after { content:""; position:absolute; left:12px; right:12px; bottom:-1px; height:2px; background:transparent; }.task-tabs button.is-active { color: var(--accent-dark); }.task-tabs button.is-active::after { background: var(--accent); }.task-tabs span { min-width: 20px; display: inline-grid; place-items:center; margin-left:5px; padding:2px 5px; border-radius:99px; background:var(--surface-3); font-size:8px; }
.assignment-bar { min-height: 62px; display: flex; align-items: center; gap: 9px; padding: 11px 18px; background: #fafcfb; border-bottom: 1px solid var(--line); }
.assignment-bar label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }.assignment-bar select { width: 160px; height: 34px; font-size: 9px; }.assignment-bar input { width: 72px; height: 34px; font-size: 9px; }.assignment-bar .button { min-height: 34px; font-size: 10px; }.assignment-divider { width: 1px; height: 25px; margin: 0 3px; background: var(--line); }.assignment-bar > strong { margin-left: auto; color: var(--muted); font-size: 9px; }
.table-scroll { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.admin-table th { height: 41px; padding: 0 13px; border-bottom: 1px solid var(--line); background: #fafcfb; color: var(--soft); font-size: 8px; font-weight: 780; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { height: 55px; padding: 8px 13px; border-bottom: 1px solid #edf1ef; color: #55635e; white-space: nowrap; }.admin-table tbody tr:hover { background: #fbfdfc; }.admin-table tbody tr:last-child td { border-bottom: 0; }.admin-table td strong { color: #34423d; font-size: 10px; }.admin-table td small { display: block; margin-top: 4px; color: var(--soft); font-size: 8px; }.check-cell { width: 42px; text-align: center !important; }.admin-table input[type="checkbox"] { width: 15px; height: 15px; padding: 0; accent-color: var(--accent); box-shadow: none; }
.table-empty { min-height: 230px; display: grid; place-items: center; color: var(--soft); font-size: 10px; }
.depth-badge { padding: 3px 6px; border-radius: 5px; background: #eceeff; color: #6371c8; font-size: 8px; font-weight: 750; }

.workload-layout { grid-template-columns: minmax(620px,1.5fr) minmax(300px,.55fr); align-items: start; }
.workload-card { overflow: hidden; }.account-card { padding-bottom: 20px; }.account-card .admin-form { padding: 18px; }.compact-form { gap: 13px; }
.progress-cell { min-width: 105px; }.progress-cell > div { display: flex; align-items: center; gap: 7px; }.progress-cell span { width: 62px; height: 5px; overflow: hidden; border-radius: 9px; background: var(--surface-3); }.progress-cell i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }.progress-cell b { color: #45534e; font-size: 8px; }
.user-cell { display: grid; grid-template-columns: 30px 1fr; align-items:center; gap:9px; }.user-cell .avatar { width:30px;height:30px;border-radius:8px; }.user-cell span { min-width:0; }.user-cell strong { display:block; }.user-cell small { display:block; }

@media (max-width: 1180px) {
  .admin-shell { grid-template-columns: 205px minmax(0,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .admin-grid.two-one,.upload-layout,.workload-layout { grid-template-columns: 1fr; }
  .dataset-register-list { max-height: 420px; }
  .assignment-bar { flex-wrap: wrap; }
  .assignment-bar > strong { margin-left: 0; }
}
@media (max-width: 800px) {
  .admin-page { overflow: auto; }
  .admin-shell { min-width: 720px; grid-template-columns: 72px minmax(0,1fr); }
  .admin-sidebar { padding-left: 9px; padding-right: 9px; }
  .admin-brand { margin: 0 auto; }.admin-brand > span:last-child,.sidebar-caption,.admin-nav-item:not(.is-active)::after,.admin-nav-item { font-size:0; }.admin-nav-item { grid-template-columns:1fr;padding:0; }.admin-nav-item > span { font-size:17px; }.sidebar-link,.sidebar-user > span,.sidebar-user button { display:none; }.sidebar-user { display:block;padding:0; }.sidebar-user .avatar { margin:auto; }
  .admin-content { padding: 22px 20px 40px; }.admin-topbar { padding:14px 20px; }
  .form-grid.two,.file-pickers { grid-template-columns:1fr; }
}

/* Information architecture and interaction refinements */
.admin-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 14px 0 18px;
  font-size: 11px;
}
.admin-nav-item::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 18px;
  left: 7px;
  border-radius: 99px;
  background: transparent;
}
.admin-nav-item.is-active::before { background: #79dfc2; }
.sidebar-link { justify-content: flex-start; }
.sidebar-user { grid-template-columns: 34px minmax(0,1fr) 42px; }
.sidebar-user button { width: 42px; font-size: 9px; font-weight: 700; }

.admin-topbar { min-height: 96px; padding-top: 14px; padding-bottom: 14px; }
.topbar-heading { min-width: 0; }
.admin-topbar .eyebrow { margin-bottom: 4px; }
.admin-topbar h1 { font-size: 21px; }
.topbar-heading > p:last-child { max-width: 720px; margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.topbar-meta { flex-shrink: 0; }
.sync-state { display: inline-flex; align-items: center; gap: 8px; padding: 0 4px; }
.topbar-workspace-link { display: inline-flex; align-items: center; }
.admin-content { padding-top: 22px; }

.next-action-card {
  position: relative;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid #cfe6de;
  border-radius: 13px;
  background: linear-gradient(112deg, #f1fbf7 0%, #ffffff 72%);
  box-shadow: 0 5px 20px rgba(21,42,35,.035);
}
.next-action-card.warning { border-color: #eddcbf; background: linear-gradient(112deg, #fff9ed 0%, #ffffff 72%); }
.next-action-card.review { border-color: #d8daf3; background: linear-gradient(112deg, #f5f5ff 0%, #ffffff 72%); }
.next-action-card > div { min-width: 0; }
.next-action-eyebrow { margin: 0 0 6px; color: var(--accent-dark); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.next-action-card.warning .next-action-eyebrow { color: #986115; }
.next-action-card.review .next-action-eyebrow { color: #5f68b5; }
.next-action-card h2 { margin: 0; color: #26342f; font-size: 17px; letter-spacing: -.025em; }
.next-action-card > div > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.next-action-card .button { flex-shrink: 0; min-width: 118px; }

.kpi-card {
  position: relative;
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  padding: 20px 21px;
  border-top-width: 3px;
}
.kpi-card.mint { border-top-color: #72cdb2; }
.kpi-card.amber { border-top-color: #e3b669; }
.kpi-card.violet { border-top-color: #9ba3e7; }
.kpi-card.green { border-top-color: #7db98d; }
.kpi-card strong { margin: 9px 0 6px; }
.kpi-card p { font-size: 9px; }

.upload-card { padding: 0; overflow: hidden; }
.upload-card .admin-form { gap: 0; }
.form-section {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  gap: 24px;
  padding: 25px 24px;
  border-bottom: 1px solid var(--line);
}
.form-section-heading { display: grid; grid-template-columns: 28px minmax(0,1fr); align-content: start; gap: 10px; }
.form-section-heading > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e5f7f1;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
}
.form-section-heading h2 { margin: 1px 0 5px; color: #34413d; font-size: 12px; }
.form-section-heading p { margin: 0; color: var(--soft); font-size: 8px; line-height: 1.55; }
.form-section-content { min-width: 0; display: grid; gap: 14px; }
.pairing-summary {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.pairing-summary.success { border-color: #bfe5d9; background: #eefaf6; color: #17694f; }
.pairing-summary.error { border-color: #efc4c8; background: #fff3f4; color: #a13d46; }
.upload-card .upload-status,
.upload-card > .admin-form > .form-error,
.upload-card .form-actions { margin: 18px 24px 0; }
.upload-card .form-actions { margin-bottom: 23px; }

.task-toolbar { background: #fff; }
.search-field { position: relative; }
.search-field::after {
  content: "/";
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 4px;
  background: white;
  color: var(--soft);
  font-size: 8px;
}
.search-field input { min-width: 0; }
.assignment-label { color: #3f4d48; font-size: 9px; font-weight: 800; }
.assignment-help { margin-left: auto; color: var(--soft); font-size: 8px; }
.selection-bar { justify-content: flex-end; background: #edf9f5; }
.selection-bar > strong { margin: 0 auto 0 0; color: #17694f; font-size: 10px; }
.task-result-count { padding: 9px 18px; border-bottom: 1px solid var(--line); background: #fff; color: var(--soft); font-size: 9px; }
.task-card .table-scroll { max-height: calc(100vh - 355px); overflow: auto; }
.admin-table th { position: sticky; z-index: 1; top: 0; }
.admin-table tbody tr { transition: background .12s; }
.task-table tbody tr { cursor: pointer; }
.admin-table tbody tr.is-selected,
.admin-table tbody tr.is-selected:hover { background: #edf9f5; }
.task-table { min-width: 880px; }

@media (max-width: 1180px) {
  .form-section { grid-template-columns: 160px minmax(0,1fr); }
  .topbar-heading > p:last-child { max-width: 520px; }
}

@media (max-width: 800px) {
  .admin-page { overflow: hidden; }
  .admin-shell {
    min-width: 0;
    height: 100%;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto minmax(0,1fr);
  }
  .admin-sidebar {
    z-index: 4;
    min-height: 58px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 18px rgba(9,24,19,.14);
  }
  .admin-brand { margin: 0; font-size: 0; }
  .admin-brand > span:last-child { display: none; }
  .sidebar-caption { display: none; }
  .admin-nav {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav-item {
    width: auto;
    min-width: max-content;
    height: 38px;
    padding: 0 10px;
    font-size: 10px;
    text-align: center;
  }
  .admin-nav-item::before { left: 50%; top: auto; bottom: 2px; width: 16px; height: 2px; transform: translateX(-50%); }
  .sidebar-bottom { display: flex; gap: 0; margin: 0; }
  .sidebar-link, .sidebar-user > span { display: none; }
  .sidebar-user { display: flex; align-items: center; gap: 3px; padding: 0; }
  .sidebar-user .avatar { margin: 0; }
  .sidebar-user button { display: block; width: 36px; font-size: 0; }
  .sidebar-user button::after { content: "退出"; font-size: 8px; }
  .admin-main { overflow: hidden; }
  .admin-topbar { min-height: 88px; padding: 12px 16px; }
  .admin-topbar h1 { font-size: 18px; }
  .topbar-heading > p:last-child { max-width: 430px; }
  .topbar-workspace-link { display: none; }
  .admin-content { padding: 18px 16px 34px; }
  .next-action-card { min-height: 0; padding: 18px; }
  .form-section { grid-template-columns: 1fr; gap: 16px; padding: 21px 18px; }
  .form-section-heading { grid-template-columns: 28px minmax(0,1fr); }
  .task-toolbar { grid-template-columns: 1fr; }
  .select-field { grid-template-columns: 68px minmax(0,1fr); }
  .assignment-bar { flex-wrap: wrap; }
  .assignment-help { width: 100%; margin-left: 0; }
  .task-card .table-scroll { max-height: calc(100vh - 490px); }
}

@media (max-width: 560px) {
  .admin-sidebar { grid-template-columns: minmax(0,1fr) auto; }
  .admin-brand { display: none; }
  .admin-nav-item { padding: 0 8px; font-size: 9px; }
  .admin-topbar { align-items: flex-start; }
  .topbar-meta { margin-top: 5px; }
  .sync-state { display: none; }
  .next-action-card { align-items: flex-start; flex-direction: column; gap: 15px; }
  .next-action-card .button { width: 100%; }
  .kpi-grid { grid-template-columns: 1fr; }
  .form-grid.two, .file-pickers { grid-template-columns: 1fr; }
  .quick-assignment-bar label { width: 100%; }
  .assignment-bar select { flex: 1; width: auto; }
  .selection-bar { justify-content: stretch; }
  .selection-bar > strong { width: 100%; }
  .selection-bar .button { flex: 1; }
}

