@import url('/workbench/theme.css');

/* Cross-document navigation keeps a painted page underneath the next one. */
@view-transition { navigation: auto; }
html { background: #f4f7f5; }
::view-transition-group(root) { animation-duration: 120ms; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: workspace-enter 120ms ease-out both; }
@keyframes workspace-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes workspace-hold { from { opacity: 1; } to { opacity: 1; } }
html.workspace-transition-pending::view-transition-old(root) {
  animation: workspace-hold 1800ms linear both;
  z-index: 1;
}
html.workspace-transition-pending::view-transition-new(root) { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root), ::view-transition-new(root) { animation-duration: 1ms; }
}

:root { --soft: #edf6f2; --green: #187a65; --radius: 12px; }
body { -webkit-font-smoothing: antialiased; }
button { border-color: #dfe4e9; font-weight: 500; box-shadow: 0 1px 2px #18222d03; }
button:hover:not(:disabled) { border-color: #bdc9c4; background: #f5f8f6; }
button.primary, .primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover:not(:disabled) { background: #126650; border-color: #126650; }
input:not([type=checkbox]) { border-color: #dfe4e9; border-radius: 8px; min-height: 40px; padding: 9px 12px; }
select, textarea { border-color: #dfe4e9; border-radius: 8px; }
input:focus, textarea:focus, select:focus { border-color: #65a590; }
h2 { font-weight: 600; }
a { text-decoration: none; }
.card { border-color: var(--line); }
.app-page { padding: 72px 0 0 var(--sidebar-width); min-height: 100dvh; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 40; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.app-brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; color: var(--ink); font-weight: 700; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; color: var(--accent); background: #eaf4ef; border-radius: 10px; }
.brand-mark svg { width: 22px; height: 22px; }
.app-brand small { display: block; font-weight: 400; }
.nav-link { display: flex; gap: 12px; align-items: center; border-radius: 8px; font-weight: 500; }
.nav-link svg { flex-shrink: 0; }
.nav-link:hover { background: #f6f8f7; color: var(--ink); }
.nav-link[aria-current=page] { background: #eaf4ef; color: #187a65; font-weight: 600; }
.sidebar-bottom { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); margin-top: auto; }
.sidebar-account { display: flex; gap: 10px; align-items: center; color: var(--ink); min-width: 0; flex: 1; }
.user-avatar { display: grid; place-items: center; border-radius: 50%; background: #edece8; color: #737267; font-size: 16px; flex-shrink: 0; }
.sidebar-account strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.sidebar-account small { display: block; }
.icon-button { border: 0; background: transparent; padding: 5px; display: grid; place-items: center; color: #89929d; }
.icon-button svg { width: 16px; height: 16px; }
.app-topbar { position: fixed; left: var(--sidebar-width); right: 0; top: 0; border-bottom: 1px solid var(--line); background: #ffffffed; z-index: 30; display: flex; align-items: center; gap: 20px; margin: 0; }
.app-breadcrumb { display: flex; align-items: center; gap: 15px; }
.app-breadcrumb strong { color: #495563; font-weight: 500; }
.breadcrumb-divider { color: #d2d8df; }
.workspace-label { margin-left: auto; font-size: 16px; }
.mobile-menu { display: none; }
.skip-link { position: fixed; left: 240px; top: -60px; z-index: 100; background: #fff; padding: 10px; border: 1px solid var(--accent); }
.skip-link:focus { top: 8px; }
.app-page>.topbar { display: none; }
.app-page>#message { margin: 0 36px; padding: 0; min-height: 0; }
.app-page>#message:not(:empty) { padding: 12px 16px; border: 1px solid #d5e5dd; border-radius: 8px; background: #f0f7f3; color: #376b54; margin-top: 10px; }
.app-page>#message.error { border-color: #efd8d4; background: #fff5f3; color: #a34c3b; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin: 0 0 7px; }
.page-heading p { margin: 0; }
.heading-actions { display: flex; align-items: center; }
.button-link { display: inline-flex; gap: 7px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: #5e6b78; font-weight: 500; }
.button-link.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-link svg, .button-with-icon svg { width: 16px; height: 16px; }
.button-with-icon { display: inline-flex; gap: 7px; align-items: center; justify-content: center; }
.text-link { color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.text-link svg { width: 14px; height: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 28px; }
.stat-card { border: 1px solid var(--line); background: #fff; }
.stat-label { display: flex; align-items: center; justify-content: space-between; }
.stat-label svg { width: 17px; height: 17px; color: #a2b5ad; }
.stat-value { display: block; line-height: 1.4; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 19px; }
.section-heading h2 { margin: 0; }
.section-heading>span { color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4d9b79; display: inline-block; margin-right: 7px; vertical-align: middle; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; background: #f1f3f5; color: #7d8792; white-space: nowrap; }
.status-badge[data-state=running], .status-badge[data-state=queued] { background: #edf4ff; color: #587cb1; }
.status-badge[data-state=completed], .status-badge[data-state=submitted] { background: #edf6f0; color: #4d8963; }
.status-badge[data-state=failed] { background: #fcf0ed; color: #b26956; }
.status-badge[data-state=empty] { background: #f0f2f4; color: #596774; }
.status-badge[data-state=waiting_user], .status-badge[data-state=paused], .status-badge[data-state=partial] { background: #fcf5e9; color: #aa8946; }
.empty-state { padding: 54px 20px; text-align: center; color: #87929e; }
.empty-state .empty-icon { width: 52px; height: 52px; background: #f2f6f3; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 16px; color: #89aa99; }
.empty-icon svg { width: 24px; height: 24px; }
.empty-state h2 { font-size: 16px; color: #53645b; margin: 0 0 8px; }
.empty-state p { line-height: 1.8; }
.app-page .admin-shell>.row:first-child { margin-bottom: 20px; }
.app-page .admin-columns { grid-template-columns: 280px minmax(0,1fr); gap: 18px; }
.admin-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 0 24px; }
.admin-tabs button { border: 0; border-radius: 0; background: none; box-shadow: none; color: #89919b; padding: 12px 1px; min-height: 46px; }
.admin-tabs button[aria-selected=true] { border-bottom: 2px solid var(--accent); color: var(--accent); }
.admin-filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-filter-row label { font-size: 16px; color: var(--muted); margin: 0; }
.admin-filter-row select { min-width: 130px; font-size: 16px; }
.app-page #metrics { font-size: 16px; color: #738078; padding: 17px 20px; }
.app-page #metrics p { display: inline-block; margin: 5px 22px 0 0; font-size: 16px; }
.app-page .candidate { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 13px 6px; }
.app-page #list:empty:after { content: '暂无符合条件的素材'; display: block; padding: 35px 8px; text-align: center; font-size: 16px; color: var(--muted); }
.app-page #tasks:empty:after { content: '暂无任务，素材核验后即可分配'; display: block; padding: 24px 8px; font-size: 16px; color: var(--muted); }
.app-page .workspace { margin: 10px 20px 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: calc(100dvh - 110px); grid-template-columns: 190px minmax(300px,1fr) 320px; }
.app-page .task-column { background: #fbfcfb; }
.app-page .task-item { border: 1px solid transparent; border-radius: 8px; background: transparent; box-shadow: none; font-size: 16px; }
.app-page .task-item[aria-current=true] { border-color: #d7e8de; background: #eef6f1; box-shadow: none; }
.app-page .workspace .empty { border: 0; text-align: center; display: grid; place-content: center; min-height: 65vh; }
.app-page .workspace .empty h1 { font-size: 21px; color: #697b70; }
.app-page .task-column:has(#tasks:empty)::after { content: '当前没有待处理任务'; display: block; padding: 28px 5px; color: var(--muted); font-size: 16px; text-align: center; }
.app-page .task-column #tasks:empty:after { display: none; }
.app-page .workspace.tasks-collapsed { grid-template-columns: minmax(300px,1fr) 320px; }
.app-page .label-column { padding: 4px 18px 24px; }
.app-page .shell { max-width: 1360px; padding: 30px 36px; margin: 0 auto; }
.app-page .account-header { display: none; }
.app-page #member { display: block; }
.app-page .account-sidebar { position: static; width: auto; border: 0; background: none; padding: 0; margin: 0 0 24px; }
.app-page .account-sidebar>.account-avatar, .app-page #member-name, .app-page #member-roles, .app-page #account-nav, .app-page #signout { display: none; }
.app-page #account-sections { display: flex; gap: 22px; border-bottom: 1px solid var(--line); padding: 0; }
.app-page #account-sections button { border: 0; border-radius: 0; background: transparent; padding: 12px 0; margin: 0; color: #8b939d; }
.app-page #account-sections button[aria-current=page] { border-bottom: 2px solid var(--accent); color: var(--accent); }
.app-page .account-main { max-width: none; }
.app-page #account-security { max-width: 660px; }
.app-page .users-table th { background: #fafbfc; font-size: 16px; }
.app-page .users-table td { padding: 18px 16px; }
.app-page .account-sidebar:before { content: '账号与团队'; display: block; font-size: 27px; font-weight: 600; letter-spacing: -.7px; margin-bottom: 22px; }
.is-signin { background: #f7f9f8; }
.is-signin .signin-panel { border: 1px solid #e5ebe7; box-shadow: 0 12px 50px #273f3010; border-radius: 16px; }
.is-signin .signin-mark { color: var(--accent); background: #edf6f0; border-color: #dcebe1; }
.is-signin .signin-submit { background: var(--accent); }
@media(min-width:1600px) {
  .app-page .workspace { grid-template-columns: 220px minmax(400px,1fr) 360px; }
}

@media(max-width:1250px) {
  .app-page .workspace { grid-template-columns: 165px minmax(260px,1fr) 290px; }
  .app-page .workspace.tasks-collapsed { grid-template-columns: minmax(260px,1fr) 290px; }
}

@media(max-width:1100px) {
  .app-page .workspace { grid-template-columns: 165px minmax(0,1fr); height: auto; min-height: calc(100dvh - 120px); }
  .app-page .workspace .label-column { grid-column: 2; }
  .app-page .workspace .task-column { grid-row: 1/3; }
  .app-page .workspace.tasks-collapsed { grid-template-columns: minmax(0,1fr); }
  .app-page .workspace.tasks-collapsed .label-column { grid-column: 1; }
  .app-page .admin-columns { grid-template-columns: 240px minmax(0,1fr); }
  .app-page .material-column { overflow: visible; }
}

@media(max-width:850px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: 10px 0 45px #203b2b12; }
  .nav-open .app-sidebar { transform: translateX(0); }
  .mobile-menu { display: block; border: 0; background: transparent; font-size: 18px; padding: 4px 8px; min-height: 36px; }
  .app-page .shell { padding: 24px; }
  .app-page .workspace { margin: 8px 12px 20px; }
  .app-page #message:not(:empty) { margin-left: 20px; margin-right: 20px; }
  .app-page .account-sidebar:before { font-size: 24px; }
}

@media(max-width:600px) {
  .page-heading { gap: 14px; }
  .stat-grid { margin-bottom: 20px; }
  .workspace-label { display: none; }
  .app-page .admin-columns { grid-template-columns: minmax(0,1fr); }
  .admin-tabs { gap: 18px; overflow-x: auto; white-space: nowrap; }
  .admin-tabs button { font-size: 16px; }
  .app-page .workspace { display: flex; flex-direction: column; height: auto; }
  .app-page .workspace .empty { min-height: 300px; }
  .app-page .task-column { max-height: 320px; }
  .app-page .material-column, .app-page .label-column { overflow: visible; }
  .app-page .workspace.tasks-collapsed .task-column { display: none; }
  .app-page #account-sections { gap: 15px; }
  .app-page .account-main>.card { padding: 20px; }
  .skip-link { left: 20px; }
}

.account-page { --account-accent: #187a65; --account-bg: #f7f9f8; }
.app-page #account-sections { flex-direction: row; }
.app-page .account-sidebar { display: block; }
.admin-filter-row { margin-bottom: 10px; }
.create-panel[open] { display: block; }
body { font-family: "Microsoft YaHei UI","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.workflow-step p, .next-action small, .recent-description small { font-size: 16px; }
.overview-footer, .overview-footer span { font-size: 16px; }
.workspace-tip p { font-size: 16px; }
.workflow-step h3 { font-size: 16px; }
.app-page .shell>header { display: none; }
.app-page.research-admin-page .shell { max-width: none; }
.app-page.annotation-app .shell { max-width: none; }
:root { --ink: #21352e; --muted: #586b62; --line: #dfe7e2; --bg: #f4f7f5; --accent: #176b53; --sidebar-width: 240px; }
body { font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); }
small { font-size: 1em; }
button { line-height: 1.5; }
input { font-size: 16px; line-height: 1.5; }
select, textarea { line-height: 1.5; }
button, .button-link { min-height: 46px; padding: 10px 16px; font-size: 16px; border-radius: 10px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 46px; font-size: 16px; padding: 10px 12px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #80bca5; outline-offset: 3px; }
h1, .page-heading h1 { font-size: 32px; font-weight: 650; letter-spacing: -.5px; line-height: 1.35; }
h2, .section-heading h2 { font-size: 21px; line-height: 1.5; }
h3 { font-size: 18px; line-height: 1.5; }
.hint, .muted, .page-heading p, .stat-note, .stat-label, .job-name small, .job-date, .app-breadcrumb, .workspace-label, .sidebar-account small, .nav-caption, .recent-description small, .recent-date, .workflow-step p, .next-action small, .overview-footer, .overview-footer span { color: var(--muted); }
.app-sidebar { padding: 26px 14px 18px; }
.app-brand { font-size: 25px; letter-spacing: 1px; }
.app-brand small { font-size: 16px; letter-spacing: 0; margin-top: 2px; color: var(--muted); }
.app-nav { flex: 1; min-height: 0; overflow: auto; padding-bottom: 12px; }
.nav-caption { margin: 18px 14px 8px; padding: 0; font-size: 16px; letter-spacing: 0; }
.nav-link { font-size: 16px; min-height: 46px; margin: 3px 0; padding: 10px 14px; color: #52645b; }
.nav-link svg { width: 20px; height: 20px; }
.sidebar-bottom { padding: 16px 10px 0; }
.sidebar-account strong { max-width: 145px; font-size: 16px; }
.sidebar-account small { font-size: 16px; }
.user-avatar { width: 38px; height: 38px; }
.icon-button { min-width: 40px; min-height: 40px; }
.app-topbar { height: 72px; padding: 0 32px; }
.app-breadcrumb, .app-breadcrumb strong { font-size: 16px; }
.app-page .collection-shell, .app-page .admin-shell, .overview-shell { padding: 32px; max-width: 1680px; margin: auto; }
.page-heading { margin-bottom: 28px; align-items: center; }
.page-heading p { font-size: 16px; line-height: 1.65; max-width: none; }
.heading-actions { gap: 12px; flex-wrap: wrap; }
.stat-grid { gap: 16px; }
.stat-card { padding: 22px; border-radius: 14px; }
.stat-label { font-size: 16px; }
.stat-value { font-size: 34px; margin: 12px 0 4px; }
.stat-note { font-size: 16px; line-height: 1.5; }
.status-badge { font-size: 16px; line-height: 1.5; padding: 4px 10px; }
.text-link { font-size: 16px; }
.section-heading>span { font-size: 16px; }
.card { border-radius: 14px; box-shadow: 0 2px 8px #16332603; }
.empty-state p { font-size: 16px; max-width: 440px; margin: 12px auto 20px; }
.empty-state h3 { font-size: 20px; }
.app-page .collection-service #capability, .collection-service a, .job-technical summary, .job-technical p { font-size: 16px; color: var(--muted); }
.collection-filters { align-items: center; }
.collection-filters>select { width: 160px; font-size: 16px; }
.jobs-card .job-row, .job-table-header { grid-template-columns: minmax(0,1fr) 130px 105px 130px 20px; gap: 16px; }
.job-table-header, .job-name strong, .job-name small, .job-count, .job-date { font-size: 16px; }
.job-name strong { font-weight: 600; }
.job-name small { overflow-wrap: anywhere; }
.job-platform { width: 42px; height: 42px; font-size: 18px; }
.platform-logo { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; font-weight: 700; }
.platform-logo img { display: block; width: 24px; height: 24px; margin: 0; object-fit: contain; }
.platform-logo > span { line-height: 1; }
.platform-logo > [hidden] { display: none !important; }
.jobs-card .job-row { padding: 20px 8px; }
.list-count { font-size: 16px; padding: 2px 8px; }
.jobs-card .status-badge { white-space: normal; }
.jobs-card #jobs { max-height: 620px; }
#job-detail .count span, #job-detail #job-message { font-size: 16px; color: var(--muted); }
#job-detail .count strong { font-size: 30px; }
#job-detail .bundle h3 { font-size: 18px; }
.create-panel { width: 560px; }
.drawer-header { padding: 28px; }
.drawer-header h2 { font-size: 26px; }
.drawer-header p { font-size: 16px; color: var(--muted); }
.create-panel label { font-size: 16px; }
.create-panel .hint, .create-panel details label, .create-panel summary { font-size: 16px; color: var(--muted); }
.create-panel label { color: var(--ink); }
.create-panel .setup { padding: 12px 28px 28px; }
.create-panel .permission-fields { grid-template-columns: 1fr; }
.create-panel #create-job { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -8px 16px #ffffffeb; }
.collection-methods button { font-size: 16px; }
.collection-methods span { font-size: 16px; }
.link-panel { width: min(720px,calc(100vw - 32px)); padding: 28px; }
.link-panel .hint, .link-service-message, .link-preview small, .operation-option small, .link-footer button { font-size: 16px; line-height: 1.6; }
.link-service-message { color: var(--muted); }
.link-panel .operation-option { padding: 16px; gap: 10px; }
.link-panel .operation-option strong { font-size: 18px; }
.batch-row strong, .batch-row small, .batch-summary, .batch-address, .batch-next, .batch-result, .batch-result .hint, .batch-phases li { font-size: 16px; }
.batch-summary, .batch-address { color: var(--muted); }
.batch-result { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.batch-result p { flex-basis: 100%; margin: 2px 0; }
.batch-actions { gap: 12px; }
.pagination { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.range-dialog { width: min(560px,calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 28px; color: var(--ink); }
.range-dialog::backdrop { background: #18392d55; }
.range-dialog p { font-size: 16px; color: var(--muted); }
.range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.range-dialog #range-submit { width: 100%; margin-top: 12px; }
.assignment-panel { padding: 16px 20px; background: #f5f8f6; border: 1px solid var(--line); border-radius: 12px; margin: 18px 0; }
.assignment-panel summary { cursor: pointer; font-weight: 600; }
.assignment-panel form { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.assignment-panel label { flex: 1; min-width: 180px; }
.identity { overflow-wrap: anywhere; }
.app-page>.app-topbar { max-width: none; }
.app-page>header:not(.app-topbar):not(.topbar) { padding: 30px 32px 0; }
.app-page>main:not(.collection-shell):not(.overview-shell):not(.admin-shell) { max-width: 1680px; }
.app-page>main>.columns { gap: 24px; }
@media(max-width:1200px) {
  .stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .jobs-card .job-row, .job-table-header { grid-template-columns: minmax(0,1fr) 125px 90px 20px; }
  .job-date { display: none; }
  .app-page .collection-shell, .app-page .admin-shell, .overview-shell { padding: 28px 24px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; }
  .overview-columns { grid-template-columns: minmax(0,1fr)!important; }
}

@media(max-width:850px) {
  :root { --sidebar-width: 0px; }
  .app-sidebar { width: 264px; }
  .app-topbar { padding: 0 20px; }
  .nav-open .mobile-menu { margin-left: 238px; }
  .app-page .collection-shell, .app-page .admin-shell, .overview-shell { padding: 24px 20px; }
  .app-page>header:not(.app-topbar):not(.topbar) { padding: 24px 20px 0; }
  .workflow-grid { grid-template-columns: repeat(2,minmax(0,1fr))!important; gap: 20px; }
  .workflow-step:nth-child(2) { border-right: 0; }
}

@media(max-width:600px) {
  h1, .page-heading h1 { font-size: 28px; }
  .page-heading { display: block; }
  .page-heading p { font-size: 16px; max-width: none; }
  .heading-actions { margin-top: 20px; width: 100%; justify-content: flex-start!important; max-width: none!important; }
  .heading-actions button, .heading-actions .button-link, .collection-shell .page-heading .quiet-button { font-size: 16px; padding: 10px 14px; flex: 1; white-space: nowrap; }
  .heading-actions button.primary { flex-basis: 100%; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-card { padding: 18px 14px; }
  .stat-label, .stat-note { font-size: 16px; }
  .stat-value { font-size: 30px; }
  .collection-service { gap: 10px; }
  .collection-filters { flex-direction: column; align-items: stretch; }
  .collection-filters .search-field, .collection-filters>select { width: 100%; font-size: 16px; }
  .jobs-card .job-row { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 18px 0; }
  .jobs-card .job-row>.status-badge { margin-left: 54px; }
  .job-count, .job-chevron { display: none; }
  .job-name strong, .job-name small { font-size: 16px; }
  .job-platform { width: 42px; height: 42px; font-size: 18px; }
  .batch-row { grid-template-columns: minmax(0,1fr)!important; gap: 8px; }
  .batch-summary { white-space: normal; }
  .batch-phases { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .batch-phases li { font-size: 16px; }
  .create-panel { width: 100%; }
  .drawer-header { padding: 24px 20px; }
  .create-panel .setup { padding: 8px 20px 24px; }
  .link-panel { padding: 24px 20px; }
  .link-footer { gap: 12px; }
  .link-footer button { width: 100%; }
  .range-dialog { padding: 24px 20px; }
  .range-fields { grid-template-columns: 1fr; }
  .section-heading { flex-wrap: wrap; }
  .workflow-grid { padding: 20px 0!important; }
  .workflow-step { padding: 0 16px!important; }
  .sidebar-bottom { flex-shrink: 0; }
  .app-page .shell { padding: 24px 20px; }
  .app-page .workspace { margin: 12px; }
  .overview-footer { flex-direction: column; align-items: flex-start!important; gap: 8px; }
}

body :is(p,small,label,legend,summary,button,input,select,textarea,.hint,.metadata,.tag,.notice) { font-size: 16px; }
.app-nav { margin-top: 22px; }
.sidebar-account strong, .sidebar-account small { white-space: nowrap; }
.sidebar-account>span:last-child { min-width: 0; }
.task-information { margin: 16px 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; }
.task-information summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.task-information p { overflow-wrap: anywhere; }
body :is(table,td,th,pre,code,.content-text,.empty,.skip) { font-size: 16px; }
.statistics-help { border: 0; margin: -12px 0 24px; }
.statistics-help summary { padding: 0; min-height: 36px; }
.statistics-help p { max-width: 1000px; color: var(--muted); }

.nav-settings>summary{padding:14px 12px;cursor:pointer;color:var(--muted);font-size:16px}.nav-settings .nav-link{margin:4px 0}.nav-settings{margin-top:12px}

/* Keep annotation tools reachable while giving the material the full workspace. */
.mobile-menu{display:block;flex-shrink:0;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:20px;padding:4px 10px;min-height:40px;margin:0}
.app-sidebar{overflow-y:auto}
.app-page.nav-collapsed{padding-left:0}
.nav-collapsed>.app-sidebar{transform:translateX(-100%)}
.nav-collapsed>.app-topbar{left:0}
.nav-collapsed>.skip-link{left:12px}
.workspace-actions{display:flex;align-items:center;gap:16px;margin-left:auto;flex:none}
.workspace-downloads{display:inline-flex;align-items:center;min-height:40px;white-space:nowrap;color:var(--muted);font-size:13px;text-decoration:none}
.workspace-downloads:hover,.workspace-downloads[aria-current=page]{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.workspace-downloads:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.workspace-profile{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;text-decoration:none}
.workspace-actions .workspace-profile .user-avatar{width:40px;height:40px;border-radius:50%;background:var(--soft);color:var(--accent);font-size:16px;font-weight:600}
.workspace-profile .user-avatar svg{width:22px;height:22px}
.workspace-actions .workspace-profile:hover .user-avatar,.workspace-actions .workspace-profile[aria-current=page] .user-avatar{background:var(--line)}
.app-breadcrumb{min-width:0}
.app-breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-notifications{position:relative;display:grid;place-items:center;flex:none;width:40px;height:40px;color:var(--ink);border:1px solid var(--line);border-radius:50%;text-decoration:none}
.workspace-notifications:hover,.workspace-notifications:focus-visible{background:var(--soft);color:var(--accent)}
.workspace-notifications svg{width:22px;height:22px}
/* Temporarily hide the notification badge while keeping the bell and inbox active. */
.notification-count{position:absolute;right:-6px;top:-5px;min-width:19px;height:19px;display:none;place-items:center;padding:0 4px;border-radius:12px;background:#a62f2f;color:#fff;font-size:11px;font-weight:650;border:2px solid #fff}
.notification-count[hidden]{display:none}
.nav-backdrop{position:fixed;inset:0;z-index:35;border:0;border-radius:0;background:#17392d55;margin:0;padding:0;box-shadow:none}
.nav-backdrop[hidden]{display:none}
@media(max-width:850px){
  .nav-open>.app-sidebar{transform:translateX(0)}
  .nav-open .mobile-menu{margin-left:0}
  .app-topbar{gap:8px;padding:0 12px}
  .workspace-actions{gap:12px}
}
