.global-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: -10px 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.global-search-button { display: flex; align-items: center; gap: 10px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 7px; padding: 9px 13px; min-width: 330px; text-align: left; font-size: 12px; }
.global-search-button > span { font-size: 23px; line-height: 1; }
kbd { background: #f1f4f8; border: 1px solid #dce3ec; border-radius: 4px; padding: 1px 5px; font: inherit; font-size: 10px; margin-left: auto; }
.daily-context { display: flex; align-items: center; gap: 15px; font-size: 12px; margin: 0 0 23px; color: var(--muted); }
.daily-context .attention-dot { margin: 0 -7px 0 0; }
.daily-context strong { color: var(--red); }
.context-divider { height: 15px; border-left: 1px solid #cbd6e1; }
.scope-switch { margin-left: auto; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.scope-switch.selected { color: var(--blue); background: #eef3fd; }
.queue-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.queue-tab { display: flex; gap: 7px; align-items: center; padding: 9px 0 12px; color: var(--muted); white-space: nowrap; font-size: 13px; border-bottom: 2px solid transparent; text-decoration: none!important; }
.queue-tab.active { color: var(--blue); font-weight: 700; border-color: var(--blue); }
.queue-tab span { padding: 0 6px; border-radius: 4px; font-weight: 400; font-size: 10px; background: #e9eef5; }
.queue-tab.active span { background: #e0e9fd; }
.queue-hint { display: flex; gap: 15px; align-items: baseline; font-size: 12px; background: #edf3fb; border-radius: 5px; padding: 12px 15px; margin-bottom: 24px; color: #596d84; }
.queue-hint strong { color: var(--deep); white-space: nowrap; }
.group-count { color: #7c8b9b; font-size: 11px; font-weight: 400; margin-left: 4px; }
.interactive-table { border-radius: 6px; }
.interactive-table table { table-layout: fixed; }
.interactive-table th { padding: 11px 12px; }
.interactive-table td { min-width: 0; padding: 13px 12px; overflow-wrap: anywhere; }
.interactive-table th:first-child:not(.check-cell) { width: 24%; }
.interactive-table th:nth-last-child(5) { width: 27%; }
.interactive-table th:nth-last-child(4) { width: 115px; }
.interactive-table th:nth-last-child(3) { width: 100px; }
.interactive-table th:nth-last-child(2) { width: 90px; }
.interactive-table th:last-child { width: 92px; }
.interactive-table .name-cell { width: auto; }
.interactive-table .record-name { font-size: 13px; }
.interactive-table .extras:empty { display: none; }
.interactive-table .extras { margin: 5px 0 0; font-size: 10px; }
.interactive-table .extras dt { display: none; }
.interactive-table td small { margin-top: 4px; color: #8290a0; }
.interactive-table .check-cell { width: 34px; padding-left: 12px; padding-right: 3px; }
.cell-edit { display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent; padding: 4px 5px; margin: -4px -5px; border-radius: 4px; font-size: 12px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.cell-edit:hover { background: #edf3ff; border-color: #cad9f5; }
.cell-edit.unset-value { color: #7690b1; }
.cell-edit.owner-edit { white-space: normal; }
select.inline-status { min-height: 30px; padding: 4px 20px 4px 7px; border-color: transparent; background-color: #eef2f7; font-size: 11px; width: 90px; cursor: pointer; }
select.inline-status:hover { border-color: #becde3; }
select.inline-status.status-done { background-color: #e8f4ed; color: var(--green); }
.row-actions { white-space: nowrap; }
.text-control { border: 0; padding: 4px 0; background: transparent; color: var(--blue); font-size: 11px; cursor: pointer; text-decoration: none; }
.text-control:hover { text-decoration: underline; }
.complete-button { width: 25px; height: 25px; margin-left: 7px; border: 1px solid #cbd6df; border-radius: 50%; background: white; color: #728496; padding: 0; }
.complete-button:hover { background: #e6f4ee; color: var(--green); border-color: var(--green); }
.completed-mark { color: var(--green); margin-left: 10px; }
.record-row.is-saving { opacity: .65; pointer-events: none; }
.list-toolbar { align-items: flex-start; }
.filters { flex-wrap: wrap; flex: 1; }
.filters input { width: 190px; }
.filters select { width: auto; max-width: 145px; font-size: 12px; }
.filters .text-control { padding: 5px 8px; }
.export-links { padding-top: 11px; }
.list-count { flex-wrap: wrap; gap: 12px; }
.privacy-label { margin-left: auto; }
[hidden] { display: none!important; }
.selection-bar { position: sticky; bottom: 18px; z-index: 10; padding: 14px 18px; background: var(--deep); color: white; border-radius: 8px; box-shadow: 0 6px 24px #20354c22; display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.selection-bar .text-control { color: white; margin-left: auto; }
.selection-bar strong { font-size: 12px; }
.selection-error { color: #ffd6d6; font-size: 11px; }
dialog { border: 1px solid var(--line); color: var(--ink); background: white; box-shadow: 0 20px 80px #152c4830; border-radius: 12px; padding: 24px; max-width: calc(100vw - 28px); }
dialog::backdrop { background: #20354c55; }
.record-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; height: 100dvh; max-height: 100dvh; width: 650px; max-width: 100vw; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
#drawer-content { height: 100%; display: flex; flex-direction: column; }
.drawer-heading { display: flex; align-items: flex-start; gap: 18px; justify-content: space-between; padding: 24px 27px 20px; border-bottom: 1px solid var(--line); }
.drawer-heading h2 { font-size: 21px; overflow-wrap: anywhere; }
.drawer-heading .date-line { margin-bottom: 5px; }
.icon-button { display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; font-size: 25px; line-height: 1; padding: 0; flex-shrink: 0; border-radius: 5px; }
.icon-button:hover { background: #edf2f7; }
.drawer-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer-body { flex: 1; overflow-y: auto; padding: 23px 27px 30px; overscroll-behavior: contain; }
.drawer-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.drawer-primary .wide { grid-column: 1/-1; }
.note-entry { margin-bottom: 25px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.note-entry textarea { background: #f9fbfe; }
.drawer-footer { border-top: 1px solid var(--line); padding: 15px 25px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: white; }
.drawer-footer > span { font-size: 11px; color: var(--muted); }
.drawer-footer > div { display: flex; align-items: center; gap: 13px; }
.drawer-footer .button { font-size: 12px; padding: 8px 13px; }
.drawer-details { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 15px; }
.drawer-details summary { cursor: pointer; font-size: 13px; font-weight: 600; padding-bottom: 14px; }
.date-presets { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.date-presets button { font-size: 10px; color: var(--blue); border: 1px solid #d8e2f0; padding: 3px 7px; border-radius: 4px; background: #f7faff; }
.field-error { display: block; font-size: 12px; color: var(--red); margin-top: 5px; }
.activity-section { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.activity-section h3 { font-size: 14px; margin: 0 0 16px; }
.activity-timeline { list-style: none; padding: 0 0 0 16px; margin: 0; border-left: 1px solid #d5dfec; }
.activity-timeline li { position: relative; margin-bottom: 22px; }
.activity-timeline li::before { content: ''; position: absolute; width: 7px; height: 7px; background: #93aac7; border-radius: 50%; left: -20px; top: 7px; }
.activity-heading { display: flex; gap: 7px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.activity-heading strong { color: var(--ink); }
.activity-heading time { margin-left: auto; font-size: 10px; }
.activity-note { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; margin: 9px 0; line-height: 1.8; }
.activity-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; font-size: 10px; margin: 6px 0; color: var(--muted); overflow-wrap: anywhere; }
.activity-change strong { font-weight: 500; color: #425f80; }
.activity-change del { color: #8692a0; }
.timeline-empty { font-size: 12px; color: var(--muted); line-height: 1.8; }
.search-dialog { width: 630px; padding: 0; margin-top: 13vh; }
.search-heading { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 8px; }
.search-heading input { border: 0; font-size: 15px; }
#search-results { max-height: 55vh; overflow-y: auto; padding: 8px; }
.search-hint { color: var(--muted); font-size: 12px; padding: 18px; margin: 0; }
.search-result { display: block; width: 100%; background: white; border: 0; text-align: left; padding: 11px 14px; border-radius: 5px; }
.search-result:hover, .search-result:focus-visible { background: #edf3fd; }
.search-result strong { display: block; font-size: 13px; color: var(--ink); }
.search-result small { display: block; font-size: 11px; margin-top: 3px; }
.create-dialog { width: 540px; }
.create-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.create-options h3 { color: var(--muted); font-size: 11px; margin: 0 0 8px; }
.create-options button { display: flex; width: 100%; align-items: center; justify-content: space-between; background: #f5f8fc; border: 1px solid transparent; border-radius: 5px; color: var(--ink); font-size: 13px; padding: 10px 12px; margin-bottom: 7px; }
.create-options button:hover { border-color: #b6c8e4; background: #edf3ff; }
.field-dialog { width: 410px; }
.field-dialog h2 { font-size: 16px; }
.field-dialog .form-actions { margin-top: 18px; padding-top: 16px; }
.toast { position: fixed; left: calc(50% + 90px); transform: translateX(-50%); bottom: 23px; z-index: 60; display: flex; gap: 17px; align-items: center; background: #20354c; color: white; padding: 12px 16px; box-shadow: 0 5px 25px #20354c2f; border-radius: 7px; max-width: calc(100vw - 32px); font-size: 12px; }
.toast button { border: 0; background: none; color: #b7d2ff; font-size: 12px; padding: 0; white-space: nowrap; }
.toast [data-dismiss-toast] { color: #b9c5d2; font-size: 20px; }
.toast[popover] { top: auto; right: auto; margin: 0; border: 0; overflow: visible; }
.toast.over-drawer { bottom: 85px; }
.login-workspace #workspace-view { width: 100%; }
.login-panel { margin: auto; }
.admin-nav-note { color: var(--muted); font-size: 11px; line-height: 1.8; padding: 12px; }
.admin-actions { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 6px; background: white; margin-bottom: 28px; }
.admin-actions a { display: flex; flex-direction: column; padding: 22px; gap: 8px; text-decoration: none; }
.admin-actions a + a { border-left: 1px solid var(--line); }
.admin-actions strong { font-size: 15px; color: var(--blue); }
.admin-actions span { font-size: 12px; color: var(--muted); }
.admin-actions a:hover { background: #edf3fd; }
.admin-section { margin-top: 30px; }
.admin-section h2 { font-size: 17px; margin-bottom: 16px; }
.admin-task-list { list-style: none; padding: 0; margin: 0; background: white; border: 1px solid var(--line); border-radius: 6px; }
.admin-task-list li { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 20px; font-size: 13px; }
.admin-task-list li + li { border-top: 1px solid var(--line); }
.admin-task-list a { white-space: nowrap; }
.admin-runtime { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 8px 20px; margin: 0; }
.admin-runtime div { display: grid; grid-template-columns: 165px 1fr; gap: 10px; padding: 11px 0; font-size: 13px; }
.admin-runtime dt { color: var(--muted); }.admin-runtime dd { margin: 0; }
.admin-filters { margin-bottom: 20px; }
.management-table td { min-width: 0; overflow-wrap: anywhere; }
.admin-log-preview { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.admin-log-preview span { color: var(--muted); }
.admin-audit-list { list-style: none; padding: 0; margin: 0; background: white; border: 1px solid var(--line); border-radius: 6px; }
.admin-audit-list li { padding: 22px; border-bottom: 1px solid var(--line); }
.admin-audit-heading { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
.admin-audit-heading span { color: var(--muted); font-size: 11px; }
.admin-audit-list p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.9; margin-bottom: 0; color: #567087; }
.batch-wecom-form { max-width: 760px; padding: 22px; }.batch-wecom-form > button { margin-top: 18px; }
.handover-notice { padding: 20px; border: 1px solid #d8e3f2; background: #edf3fc; border-radius: 6px; margin-bottom: 22px; font-size: 13px; }
.handover-notice div { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }.handover-notice p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.pagination { display: flex; justify-content: flex-end; gap: 20px; margin-top: 20px; font-size: 12px; }
.admin-form input[type=checkbox] { width: 18px; min-height: 18px; vertical-align: middle; }.admin-form #id_grants > div { margin-bottom: 8px; }
@media (max-width: 1200px) {
  .interactive-table table { min-width: 850px; }
  .global-search-button { min-width: 260px; }
  .filters input { width: 170px; }
}
@media (max-width: 760px) {
  .admin-actions { grid-template-columns: 1fr; }.admin-actions a + a { border-left: 0; border-top: 1px solid var(--line); }
  .admin-task-list li { padding: 15px; align-items: flex-start; line-height: 1.8; }
  .admin-runtime { padding: 8px 15px; }.admin-runtime div { grid-template-columns: 105px 1fr; line-height: 1.8; }
  .admin-log-preview { align-items: flex-start; flex-direction: column; gap: 6px; }
  .management-table table, .permission-table table { min-width: 0; }
  .admin-form input, .admin-form select, .admin-form textarea, .batch-wecom-form textarea { font-size: 16px; }
  .workspace { padding: 20px 15px; }
  .global-toolbar { gap: 9px; margin: 0 0 23px; padding-bottom: 15px; }
  .global-search-button { min-width: 0; flex: 1; font-size: 0; gap: 5px; padding: 6px 10px; min-height: 36px; }
  .global-search-button::after { content: '搜索全部业务'; font-size: 11px; }
  .global-search-button kbd { display: none; }
  .global-toolbar .button { font-size: 11px; padding: 8px 11px; min-height: 36px; }
  .daily-context { gap: 10px; flex-wrap: wrap; font-size: 11px; }
  .scope-switch { padding: 2px 6px; }
  .queue-tabs { gap: 20px; margin-bottom: 17px; }
  .queue-tab { font-size: 12px; }
  .queue-hint { flex-direction: column; gap: 4px; padding: 12px; font-size: 11px; }
  .queue-hint span { line-height: 1.8; }
  .interactive-table table { min-width: 0; }
  .interactive-table tr { position: relative; padding: 14px; }
  .interactive-table td { padding: 6px 0; }
  .interactive-table td.check-cell { position: absolute; top: 15px; right: 16px; width: 18px; padding: 0; }
  .interactive-table .check-cell + .name-cell { padding-right: 27px; }
  .interactive-table .name-cell { padding-bottom: 12px!important; }
  .interactive-table .record-name { font-size: 15px; }
  .interactive-table .extras { font-size: 11px; }
  .interactive-table td[data-label] { grid-template-columns: 92px minmax(0, 1fr); align-items: start; }
  .interactive-table td[data-label]::before { padding-top: 4px; }
  .interactive-table td[data-label] > label.sr-only { position: absolute; }
  .cell-edit { margin: 0 -5px; min-height: 30px; font-size: 12px; }
  .interactive-table .row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; padding-top: 10px; margin-top: 6px; border-top: 1px solid #edf1f5; }
  .row-actions .text-control { font-size: 12px; }
  .complete-button { width: 29px; height: 29px; }
  .filters { gap: 8px; }
  .filters input { width: 100%; }
  .filters select { width: calc(50% - 4px); max-width: none; flex: none; min-width: 0; }
  .selection-bar { bottom: 10px; padding: 12px; gap: 8px; flex-wrap: wrap; }
  .selection-bar .button { font-size: 11px; min-height: 34px; padding: 6px 8px; }
  .selection-bar strong { width: 100%; }
  .record-drawer { width: 100vw; }
  .drawer-heading { padding: 19px 18px; }
  .drawer-heading h2 { font-size: 19px; }
  .drawer-body { padding: 18px 18px 28px; }
  .drawer-primary { grid-template-columns: 1fr; }
  .drawer-primary .wide { grid-column: auto; }
  .drawer-footer { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); gap: 7px; }
  .drawer-footer > span { font-size: 10px; max-width: 75px; }
  .drawer-footer > div { gap: 9px; }
  .drawer-footer .button { padding: 8px 10px; font-size: 11px; }
  .drawer-footer .text-control { font-size: 10px; }
  .create-dialog { padding: 20px; }
  .create-options { gap: 14px; }
  .create-options button { font-size: 12px; padding: 10px; }
  .toast { left: 50%; width: max-content; bottom: 18px; }
  .field-dialog { padding: 20px; }
  .search-dialog { margin-top: 8vh; }
  .drawer-form input, .drawer-form select, .drawer-form textarea, .field-dialog input, .field-dialog select, .field-dialog textarea, .search-heading input { font-size: 16px; }
  .date-presets button { min-height: 36px; padding: 5px 9px; font-size: 11px; }
  .icon-button, .drawer-footer .button, .field-dialog .button { min-height: 42px; }
  .cell-edit { min-height: 40px; }
  .toast.over-drawer { bottom: 85px; }
}
