﻿/* v3.5 UI relayout — working copy */
[hidden] { display: none !important; }
:root {
  --navy: #14243a;
  --navy-2: #1d3552;
  --ui-purple: #6758e5;
  --ui-purple-soft: #f0edff;
  --ui-teal: #2aa695;
  --ui-surface: #f4f6fa;
}
body { background: var(--ui-surface); }
.topbar { height: 72px; gap: 13px; padding: 0 20px; box-shadow: 0 1px 0 rgba(17,24,47,.025), 0 8px 26px rgba(28,34,66,.035); }
.brand { width: 205px; flex: 0 0 205px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg,#7867e9,#4e42b9); box-shadow: 0 6px 14px rgba(108,92,231,.28); }
.brand-title { font-size: 13px; font-weight: 800; }
.brand-subtitle { margin-top: 3px; font-size: 8px; letter-spacing: 1px; }
.global-search { flex: 1; max-width: 320px; height: 35px; margin-left: 2px; }
.top-actions { gap: 7px; }
.top-period-toolbar { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.top-period-toolbar .period-tabs { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 9px; background: #f0f3f8; }
.top-period-toolbar .period-tabs button { display: inline-flex; align-items: center; justify-content: center; height: 29px; min-width: 30px; padding: 0 8px; border: 0; border-radius: 7px; color: #718294; background: transparent; font-size: 9px; font-weight: 800; }
.top-period-toolbar .period-tabs button.active { color: #fff; background: var(--navy); box-shadow: 0 4px 10px rgba(20,36,58,.17); }
.top-period-toolbar .period-tabs small { display: none; }
.top-period-toolbar .period-nav { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #e7ecf2; border-radius: 9px; background: #fbfcfe; }
.top-period-toolbar .period-arrow { display: grid; place-items: center; width: 24px; height: 29px; padding: 0; border: 0; border-radius: 6px; color: #7d8e9e; background: transparent; font-size: 15px; }
.top-period-toolbar .period-arrow:hover { background: #eef3f8; }
.top-period-toolbar .period-today { height: 29px; padding: 0 8px; border: 0; border-radius: 6px; color: #6b7e8e; background: transparent; font-size: 8px; font-weight: 700; }
.top-period-toolbar .period-focus { min-width: 142px; padding: 0 7px; border-left: 1px solid #e8edf3; border-right: 1px solid #e8edf3; text-align: center; }
.top-period-toolbar .period-focus strong { display: block; color: #263a4e; font-size: 9px; }
.top-period-toolbar .period-focus span { display: block; max-width: 165px; margin-top: 2px; overflow: hidden; color: #96a3b0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.app-frame { grid-template-columns: 232px minmax(0, 1fr) 280px; height: calc(100vh - 72px); }
.app-frame.rail-collapsed { grid-template-columns: 232px minmax(0, 1fr); }
.app-frame.rail-collapsed .right-rail { display: none; }
.workspace { padding: 23px 24px 30px; }
.workspace-head { margin-bottom: 14px; }
.head-actions { align-items: center; gap: 7px; }
.head-new-task-button { display: inline-flex; align-items: center; justify-content: center; width: auto; height: 34px; padding: 0 13px; border-radius: 9px; background: var(--navy); font-size: 10px; white-space: nowrap; }
.more-metrics-button { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: #667a8c; background: #fff; font-size: 9px; font-weight: 700; }
.more-metrics-button span { margin-left: 4px; color: #9ba8b4; }
.more-metrics-button[aria-expanded="true"] span { display: inline-block; transform: rotate(180deg); }
.icon-action { width: 34px; height: 34px; }
.kpi-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-bottom: 0; }
.secondary-kpi-grid { margin-top: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.kpi-card { min-height: 91px; padding: 14px 15px; border-radius: 14px; }
.kpi-value { font-size: 27px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 7px; margin-top: 12px; margin-bottom: 11px; padding: 6px 8px; border-radius: 11px; }
.quick-filter-group { gap: 3px; }
.quick-chip { height: 28px; padding: 0 8px; font-size: 9px; }
.filter-toggle-chip { border: 1px dashed #d9dfeb; color: #728497; background: #fbfcfe; }
.active-filter-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.active-filter-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border: 1px solid #ddd8ff; border-radius: 6px; color: #6153d4; background: #f4f1ff; font-size: 8px; font-weight: 700; }
.active-filter-chip button { padding: 0; border: 0; color: #8175dd; background: transparent; font-size: 11px; }
.filter-bar .filter-controls { display: none; width: 100%; justify-content: flex-start; padding-top: 7px; border-top: 1px solid #edf0f5; }
.filter-bar.filters-open .filter-controls { display: flex; }
.filter-bar.filters-open #toggleAdvancedFiltersBtn { color: #5f51d0; border-style: solid; border-color: #d8d2ff; background: #f2efff; }.sidebar { gap: 10px; padding: 14px 12px 12px; color: #dce8f2; background: linear-gradient(180deg,#10243d 0%,#0b1a2d 100%); border-right-color: rgba(255,255,255,.08); }
.primary-nav { display: flex; flex-direction: column; gap: 2px; }
.primary-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border: 0; border-radius: 9px; color: #aab9ca; background: transparent; text-align: left; }
.primary-nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.primary-nav-item.active { color: #fff; background: rgba(113,96,239,.22); box-shadow: inset 3px 0 0 #8c7bf1; }
.primary-nav-icon { display: grid; place-items: center; width: 17px; color: #9b8ff5; font-size: 13px; }
.primary-nav-item span:nth-child(2) { flex: 1; font-size: 10px; font-weight: 700; }
.primary-nav-item b { color: #8398b0; font-size: 9px; font-weight: 600; }
.primary-nav-divider { height: 1px; margin: 7px 6px 5px; background: rgba(255,255,255,.09); }
.sidebar .side-section { gap: 6px; }
.sidebar .side-label-row { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.sidebar .side-label { padding: 0; color: #70849d; font-size: 8px; letter-spacing: 1px; }
.sidebar .side-head-actions button { color: #8c7bf1; }
.sidebar .side-nav { gap: 1px; }
.sidebar .side-item { height: 32px; padding: 0 8px; border-radius: 7px; color: #9fb0c2; background: transparent; font-size: 9px; }
.sidebar .side-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar .side-item.active { color: #fff; background: rgba(113,96,239,.22); box-shadow: inset 2px 0 0 #8c7bf1; }
.sidebar .side-item b { min-width: 18px; height: 17px; color: #8fa2b7; background: rgba(255,255,255,.06); font-size: 8px; }
.sidebar .side-item.active b { color: #fff; background: rgba(255,255,255,.15); }
.sidebar .dept-tree-row { display: flex; align-items: center; gap: 2px; }
.sidebar .dept-tree-toggle { color: #8c7bf1; }
.sidebar .dept-parent { flex: 1; }
.sidebar .team-subnav { margin-left: 11px; padding-left: 9px; border-left: 1px solid rgba(255,255,255,.1); }
.sidebar .team-subnav-head span { color: #70849d; }
.sidebar .team-subnav-head button { color: #8c7bf1; }
.sidebar .team-side-item { color: #91a4b9; background: transparent; }
.sidebar .team-side-item.active { color: #fff; background: rgba(255,255,255,.07); }
.sidebar .team-empty { color: #71869e; }
.sidebar .side-cycle-card { margin-top: auto; padding: 10px 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.045); box-shadow: none; }
.sidebar .side-cycle-card > .side-label { color: #70849d; font-size: 8px; }
.sidebar .side-cycle-card #cycleFilter, .sidebar .side-cycle-card .cycle-date-view { display: none; }
.sidebar .cycle-meta { color: #8fa2b7; font-size: 8px; }
.sidebar .mini-progress { height: 5px; margin-top: 8px; background: rgba(255,255,255,.09); }
.sidebar .mini-progress span { background: linear-gradient(90deg,#7d6cf0,#2aa695); }
.sidebar .cycle-foot { color: #8fa2b7; font-size: 8px; }
.sidebar .cycle-foot strong { color: #fff; font-size: 9px; }
.sidebar .cycle-rollover { margin-top: 8px; border-color: rgba(255,255,255,.13); color: #b8c7d7; background: rgba(255,255,255,.05); font-size: 8px; }
.sidebar .cycle-rollover:hover { color: #fff; background: rgba(255,255,255,.09); }
.sidebar-footer { margin-top: 4px; padding: 9px 7px 2px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer .online-label { color: #70849d; }
.sidebar-footer .online-people { color: #91a4b9; font-size: 8px; }
.sidebar .weekly-tools { padding: 3px 0; }
.sidebar .weekly-dispatch-btn { border-color: rgba(255,255,255,.1); color: #dce8f2; background: rgba(113,96,239,.16); }
.sidebar .weekly-dispatch-btn strong { color: #fff; }
.sidebar .weekly-dispatch-btn small, .sidebar .weekly-tools-row button { color: #91a4b9; }
.sidebar .weekly-tools-row button { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.04); }.task-dialog { width: min(1180px, calc(100vw - 52px)); height: min(790px, calc(100vh - 70px)); grid-template-columns: minmax(0,1fr) 306px; border-radius: 23px; background: #f8f9fc; }
.task-dialog .drawer-head { min-height: 91px; padding: 21px 25px; background: radial-gradient(circle at 84% 6%,rgba(127,108,255,.42),transparent 31%),linear-gradient(135deg,#101a31,#192746 68%,#2b2860); }
.task-dialog .drawer-head h2 { font-size: 22px; letter-spacing: -.5px; }
.task-dialog .drawer-eyebrow { color: #aaa4ff; font-size: 8px; letter-spacing: 1.5px; }
.task-dialog .drawer-tabs { padding: 0 24px; background: #fff; }
.task-dialog .drawer-body { padding: 20px 24px 32px; background: #f8f9fc; }
.task-dialog .form-section { margin-bottom: 18px; padding-bottom: 0; border-bottom: 0; }
.task-dialog .form-section-title { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #33475b; font-size: 10px; font-weight: 800; }
.task-dialog .form-section-title small { padding: 2px 5px; border-radius: 4px; color: #8a7ed1; background: #f1efff; font-size: 8px; font-weight: 600; }
.task-dialog .form-grid { gap: 11px; }
.task-dialog .field > span { color: #697c8e; font-size: 9px; }
.task-dialog .field input, .task-dialog .field select, .task-dialog .field textarea { border-color: #e0e6ee; border-radius: 9px; background: #fff; }
.task-dialog #f-title { height: 46px; padding: 0 14px; color: #1f3348; font-size: 14px; font-weight: 700; }
.responsibility-grid { grid-template-columns: 1.3fr .9fr 1.3fr !important; }
.task-dialog .multi-picker summary { min-height: 38px; border-radius: 9px; background: #fff; }
.detail-attachment-box { overflow: hidden; border: 1px solid #dfe5ed; border-radius: 12px; background: #fff; }
.detail-attachment-box:focus-within { border-color: #9a8dea; box-shadow: 0 0 0 3px rgba(103,88,229,.08); }
.detail-attachment-box #f-description { display: block; width: 100%; min-height: 86px; padding: 13px 14px; border: 0; border-radius: 0; outline: none; resize: vertical; color: #34495c; background: #fff; font-size: 10px; line-height: 1.7; box-shadow: none; }
.attachment-toolbar { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-top: 1px dashed #e3e8ef; background: #fbfcfe; }
.attachment-toolbar .secondary-button { height: 31px; border-color: #d8d2ff; color: #5f51cf; background: #f5f2ff; font-size: 9px; }
.attachment-toolbar > span { color: #99a6b2; font-size: 8px; }
.pending-attachment-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 12px; border-top: 1px solid #eef1f5; background: #fff; }
.pending-attachment-item { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 1px solid #e2e6ee; border-radius: 6px; color: #607487; background: #fafbfd; font-size: 8px; }
.pending-attachment-item button { padding: 0; border: 0; color: #9ca8b4; background: transparent; font-size: 11px; }
.detail-attachment-box .task-image-grid, .detail-attachment-box .task-file-list { margin: 0; padding: 9px 12px; border-top: 1px solid #eef1f5; }
.legacy-upload-zone { display: none !important; }
.task-advanced-settings { overflow: hidden; border: 1px solid #e3e7ef; border-radius: 12px; background: #fff; }
.task-advanced-settings > summary { display: flex; align-items: center; gap: 8px; min-height: 47px; padding: 0 13px; color: #4d6275; background: #fff; cursor: pointer; list-style: none; }
.task-advanced-settings > summary::-webkit-details-marker { display: none; }
.task-advanced-settings > summary span { font-size: 10px; font-weight: 800; }
.task-advanced-settings > summary small { padding: 3px 6px; border-radius: 5px; color: #7b70c8; background: #f2efff; font-size: 8px; }
.task-advanced-settings > summary i { margin-left: auto; color: #8f9daa; font-style: normal; transition: transform .16s; }
.task-advanced-settings[open] > summary i { transform: rotate(180deg); }
.task-advanced-body { padding: 13px; border-top: 1px solid #e8ebf1; background: #fbfcfe; }
.task-form-actions { display: flex; align-items: center; gap: 8px; }
.task-form-actions .primary-button, .task-form-actions .secondary-button { height: 37px; padding: 0 14px; font-size: 10px; }
.task-dialog:not(.create-mode) #saveAndContinueBtn { display: none; }
.task-dialog.create-mode .create-hidden { display: none !important; }
.task-dialog.create-mode .summary-create-hide { display: none !important; }
.task-dialog.create-mode .summary-kicker::after { content: " · 创建预览"; color: #8c80da; }
.task-dialog.create-mode .summary-progress-ring { width: 108px; height: 108px; margin: 15px auto; }
.task-dialog.create-mode .summary-progress-inner strong { font-size: 21px; }
.task-dialog.create-mode .drawer-tabs .drawer-tab:not([data-task-tab="edit"]) { display: none; }
.task-summary-rail { padding: 20px 18px; }
.task-dialog .form-actions { position: sticky; bottom: -1px; z-index: 3; margin-top: 12px; padding: 11px 0 10px; border-top: 1px solid #e2e8ef; background: #f8f9fc; }
.task-dialog .save-note { color: #97a4b0; font-size: 8px; }
.task-dialog .form-actions .primary-button { border-radius: 9px; background: var(--navy); }@media (max-width: 1450px) {
  .app-frame { grid-template-columns: 220px minmax(0,1fr) 270px; }
  .app-frame.rail-collapsed { grid-template-columns: 220px minmax(0,1fr); }
  .right-rail { display: block; }
  .kpi-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .global-search { max-width: 260px; }
  .top-period-toolbar .period-focus { min-width: 125px; }
}
@media (max-width: 1220px) {
  .app-frame { grid-template-columns: 210px minmax(0,1fr); }
  .right-rail { display: none; }
  .top-period-toolbar .period-focus { display: none; }
  .top-period-toolbar .period-today { display: none; }
  .global-search { max-width: 220px; }
}
@media (max-width: 1020px) {
  .top-period-toolbar .period-tabs button { padding: 0 6px; }
  .top-period-toolbar .period-nav { display: none; }
  .online-wrap { display: none; }
  .workspace { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 780px) {
  .topbar { height: auto; min-height: 64px; flex-wrap: wrap; padding: 10px 12px; }
  .brand { width: auto; flex: 1; flex-basis: auto; }
  .global-search { order: 3; flex-basis: 100%; max-width: none; }
  .top-actions { gap: 5px; }
  .top-period-toolbar { order: 4; width: 100%; margin: 7px 0 0; overflow-x: auto; }
  .top-period-toolbar .period-tabs { flex: 1; }
  .top-period-toolbar .period-tabs button { flex: 1; }
  .sync-pill { display: none; }
  .app-frame { display: block; height: auto; }
  .sidebar { display: block; height: auto; padding: 10px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav { flex-direction: row; overflow-x: auto; }
  .primary-nav-item { width: auto; min-width: max-content; padding: 0 10px; }
  .primary-nav-item b { display: none; }
  .primary-nav-divider, .side-panel, .compact-cycle-panel, .sidebar-footer { display: none !important; }
  .workspace { padding: 14px 10px 28px; }
  .workspace-head { flex-direction: column; }
  .head-actions { width: 100%; flex-wrap: wrap; }
  .head-actions .view-switch { flex: 1; }
  .head-new-task-button { min-width: 108px; }
  .kpi-grid, .secondary-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-bar { align-items: flex-start; }
  .filter-controls { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .active-filter-chips { width: 100%; }
  .top-user strong { display: none; }
  .top-user small { display: none; }
}
@media (max-width: 1050px) {
  .task-dialog { width: min(960px,96vw); height: 91vh; grid-template-columns: minmax(0,1fr) 250px; }
  .task-summary-rail { padding-left: 13px; padding-right: 13px; }
}
@media (max-width: 780px) {
  .task-dialog { left: 8px; top: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); grid-template-columns: 1fr; grid-template-rows: auto 43px minmax(0,1fr); transform: translate(0,12px) scale(.98); border-radius: 16px; }
  .task-dialog.open { transform: translate(0,0) scale(1); }
  .task-dialog .drawer-head { padding-left: 16px; padding-right: 16px; }
  .task-dialog .drawer-tabs { padding-left: 14px; padding-right: 14px; }
  .task-dialog .drawer-body { padding: 15px 14px 20px; }
  .task-summary-rail { display: none; }
  .responsibility-grid { grid-template-columns: 1fr !important; }
  .attachment-toolbar { align-items: flex-start; flex-direction: column; }
  .task-form-actions { width: 100%; flex-wrap: wrap; }
  .task-form-actions .primary-button, .task-form-actions .secondary-button { flex: 1; }
}.task-dialog.create-mode .drawer-tabs { display: none; }
.task-dialog.create-mode { grid-template-rows: auto 0 minmax(0,1fr); }
.task-dialog.create-mode #taskImageGrid .image-empty,
.task-dialog.create-mode #taskFileList .file-empty,
.task-dialog.create-mode #imageUploadStatus,
.task-dialog.create-mode #fileUploadStatus { display: none !important; }
.task-dialog.create-mode #taskImageGrid:empty,
.task-dialog.create-mode #taskFileList:empty { display: none !important; }@media (max-width: 1500px) {
  #listView table th:nth-child(4), #listView table td:nth-child(4),
  #listView table th:nth-child(9), #listView table td:nth-child(9),
  #listView table th:nth-child(10), #listView table td:nth-child(10) { display: none; }
}.detail-attachment-box #f-description { height: 82px; min-height: 82px; }
.task-dialog .form-section { margin-bottom: 14px; }.category-row-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.category-list-head #restoreSystemViewsBtn { margin-left: auto; }
/* v3.5.2 sidebar visual refinement */
.sidebar {
  gap: 14px;
  padding: 18px 14px 14px;
  color: #dce7f4;
  background:
    radial-gradient(circle at 14% 0%, rgba(112, 94, 239, .18), transparent 27%),
    linear-gradient(180deg, #111d33 0%, #0d192c 52%, #091422 100%);
  border-right-color: rgba(148, 163, 255, .10);
  box-shadow: inset -1px 0 rgba(255,255,255,.035), 12px 0 34px rgba(7, 16, 31, .045);
}
.sidebar .primary-nav {
  gap: 4px;
}
.sidebar .primary-nav-item {
  height: 42px;
  gap: 11px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #a9b8ca;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .1px;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.sidebar .primary-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.055);
}
.sidebar .primary-nav-item.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(119, 101, 239, .30), rgba(83, 70, 190, .17));
  border-color: rgba(158, 146, 255, .25);
  box-shadow: inset 3px 0 0 #8d7cf4, 0 7px 18px rgba(5, 11, 25, .14);
}
.sidebar .primary-nav-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 1px solid rgba(160, 147, 255, .11);
  border-radius: 8px;
  color: #a99cf8;
  background: rgba(126, 109, 238, .10);
  font-size: 12px;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.sidebar .primary-nav-item:hover .primary-nav-icon {
  color: #d9d2ff;
  background: rgba(126, 109, 238, .17);
}
.sidebar .primary-nav-item.active .primary-nav-icon {
  color: #fff;
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(145deg, #8171ee, #6252d2);
  box-shadow: 0 5px 12px rgba(83, 67, 200, .28);
}
.sidebar .primary-nav-item span:nth-child(2) {
  font-size: 12px;
  font-weight: 650;
}
.sidebar .primary-nav-item b {
  min-width: 23px;
  height: 20px;
  padding: 0 6px;
  border-radius: 7px;
  color: #a9b9cc;
  background: rgba(255,255,255,.075);
  font-size: 10px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.sidebar .primary-nav-item.active b {
  color: #fff;
  background: rgba(255,255,255,.16);
}
.sidebar .primary-nav-divider {
  margin: 8px 6px 7px;
  background: linear-gradient(90deg, transparent, rgba(173, 185, 216, .18), transparent);
}
.sidebar .side-section {
  gap: 8px;
}
.sidebar .side-label-row {
  padding: 0 8px;
}
.sidebar .side-label {
  color: #8092aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.15px;
}
.sidebar .side-head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.sidebar .side-head-actions button {
  min-height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  color: #a99cf5;
  font-size: 10px;
  font-weight: 650;
  transition: color .16s ease, background .16s ease;
}
.sidebar .side-head-actions button:hover {
  color: #fff;
  background: rgba(128, 111, 239, .16);
}
.sidebar .side-nav {
  gap: 3px;
}
.sidebar .side-item {
  height: 35px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #a7b5c7;
  font-size: 11.5px;
  font-weight: 520;
}
.sidebar .side-item:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.045);
}
.sidebar .side-item.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(117, 99, 235, .26), rgba(79, 68, 173, .13));
  border-color: rgba(158, 146, 255, .20);
  box-shadow: inset 2px 0 0 #8d7cf4;
}
.sidebar .side-item b {
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 7px;
  color: #a5b5c8;
  background: rgba(255,255,255,.075);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.sidebar .side-item.active b {
  color: #fff;
  background: rgba(255,255,255,.16);
}
.sidebar .custom-view-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar .dept-tree-group + .dept-tree-group {
  margin-top: 3px;
}
.sidebar .dept-tree-row {
  gap: 4px;
}
.sidebar .dept-tree-toggle {
  width: 22px;
  height: 30px;
  border-radius: 7px;
  color: #9a8bf3;
}
.sidebar .dept-tree-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,.065);
}
.sidebar .team-subnav {
  margin: 3px 0 7px 15px;
  padding-left: 11px;
  border-left-color: rgba(157, 143, 255, .22);
}
.sidebar .team-subnav-head {
  min-height: 25px;
  color: #8495ab;
}
.sidebar .team-subnav-head span {
  color: #8495ab;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .6px;
}
.sidebar .team-subnav-head button {
  min-height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  color: #aa9df5;
  font-size: 9.5px;
}
.sidebar .team-subnav-head button:hover {
  color: #fff;
  background: rgba(128, 111, 239, .16);
}
.sidebar .team-side-row {
  min-height: 31px;
}
.sidebar .team-side-item {
  height: 31px;
  color: #97a8bd;
  font-size: 10.5px;
}
.sidebar .team-side-item:hover {
  color: #fff;
  background: rgba(255,255,255,.055);
}
.sidebar .team-side-item.active {
  color: #fff;
  background: rgba(126, 109, 238, .14);
}
.sidebar .team-delete-btn {
  color: #8090a6;
}
.sidebar .team-delete-btn:hover:not(:disabled) {
  color: #ffb8c1;
  background: rgba(222, 83, 97, .12);
}
.sidebar .team-empty {
  color: #71839a;
  font-size: 10px;
}
.sidebar .weekly-tools {
  padding: 1px 0 3px;
}
.sidebar .weekly-dispatch-btn {
  min-height: 54px;
  border-color: rgba(161, 147, 255, .16);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(121, 103, 239, .20), rgba(61, 51, 137, .10));
}
.sidebar .weekly-dispatch-btn:hover {
  border-color: rgba(171, 159, 255, .28);
  background: linear-gradient(135deg, rgba(121, 103, 239, .27), rgba(61, 51, 137, .14));
}
.sidebar .weekly-dispatch-btn strong {
  font-size: 11px;
}
.sidebar .weekly-dispatch-btn small {
  color: #91a2b9;
  font-size: 9.5px;
}
.sidebar .weekly-tools-row {
  gap: 5px;
}
.sidebar .weekly-tools-row button {
  min-height: 30px;
  border-radius: 8px;
  color: #a4b3c6;
  font-size: 10px;
}
.sidebar .side-cycle-card {
  margin-top: auto;
  padding: 13px 12px 12px;
  border-color: rgba(164, 176, 211, .13);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.sidebar .side-cycle-card > .side-label {
  color: #8393aa;
  font-size: 9.5px;
}
.sidebar .cycle-meta {
  color: #a0b0c3;
  font-size: 10px;
  line-height: 1.5;
}
.sidebar .mini-progress {
  height: 6px;
  margin-top: 10px;
  background: rgba(255,255,255,.09);
}
.sidebar .cycle-foot {
  color: #8fa0b6;
  font-size: 9.5px;
}
.sidebar .cycle-foot strong {
  color: #fff;
  font-size: 11px;
}
.sidebar .cycle-rollover {
  min-height: 32px;
  margin-top: 10px;
  border-color: rgba(170, 157, 255, .18);
  border-radius: 8px;
  color: #c5c0f7;
  background: rgba(118, 101, 235, .10);
  font-size: 10px;
}
.sidebar .cycle-rollover:hover {
  color: #fff;
  background: rgba(118, 101, 235, .17);
}
.sidebar-footer {
  margin-top: 2px;
  padding: 10px 8px 1px;
  border-top-color: rgba(164, 177, 210, .12);
}
.sidebar-footer .online-label {
  color: #8192a9;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .9px;
}
.sidebar-footer .online-people {
  color: #9aaabd;
  font-size: 10px;
}
@media (max-width: 780px) {
  .sidebar {
    padding: 10px 12px;
  }
  .sidebar .primary-nav {
    gap: 5px;
  }
  .sidebar .primary-nav-item {
    height: 38px;
    padding: 0 11px;
    font-size: 11px;
  }
  .sidebar .primary-nav-icon {
    display: none;
  }
  .sidebar .primary-nav-item span:nth-child(2) {
    font-size: 11px;
  }
}

/* v3.5.2 compact planning row */
.task-dialog .plan-grid {
  grid-template-columns: minmax(0, .95fr) minmax(112px, .68fr) minmax(0, 1.2fr);
  align-items: end;
}
@media (max-width: 900px) {
  .task-dialog .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
  .task-dialog .plan-grid .field:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 780px) {
  .task-dialog .plan-grid {
    grid-template-columns: 1fr;
  }
  .task-dialog .plan-grid .field:last-child {
    grid-column: auto;
  }
}

/* v3.5.5 top period controls */
.top-period-toolbar .period-focus {
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.top-period-toolbar .period-focus:hover {
  background: rgba(103, 88, 229, .06);
}
.top-period-toolbar .period-focus:focus-visible {
  outline: 2px solid rgba(103, 88, 229, .28);
  outline-offset: -2px;
}
.top-rollover-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.top-rollover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 35px;
  padding: 0 10px;
  border: 1px solid #dcd8f7;
  border-radius: 9px;
  color: #5f51d0;
  background: #f8f7ff;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.top-rollover-btn > span:first-child {
  font-size: 13px;
  line-height: 1;
}
.top-rollover-btn:hover {
  border-color: #c4bdf1;
  color: #4f42bc;
  background: #f0edff;
}
.top-rollover-btn:disabled {
  border-color: #e3e5ec;
  color: #a3a8b5;
  background: #f7f8fa;
}
.top-rollover-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 95;
  width: 322px;
  margin: 0;
  padding: 15px;
  border: 1px solid #dedbf5;
  border-radius: 15px;
  background: linear-gradient(150deg, #fff 0%, #f8f7ff 100%);
  box-shadow: 0 18px 48px rgba(29, 34, 70, .17), 0 3px 10px rgba(29, 34, 70, .06);
}
.top-rollover-panel .rollover-panel-head {
  gap: 4px;
  margin-bottom: 12px;
}
.top-rollover-panel .rollover-panel-head strong {
  color: #1f2942;
  font-size: 13px;
  font-weight: 800;
}
.top-rollover-panel .rollover-panel-head span {
  color: #7d8498;
  font-size: 10px;
}
.top-rollover-panel .rollover-date-label {
  color: #6e768b;
  font-size: 10px;
  font-weight: 700;
}
.top-rollover-panel .date-field-shell input {
  height: 38px;
  border-radius: 9px;
  font-size: 11px;
}
.top-rollover-panel .rollover-target-preview {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #777f94;
  background: #f4f4fa;
  font-size: 10px;
}
.top-rollover-panel .rollover-panel-actions {
  margin-top: 12px;
  gap: 8px;
}
.top-rollover-panel .rollover-panel-actions .primary-button {
  height: 33px;
  padding: 0 13px;
  font-size: 10px;
}
@media (max-width: 1220px) {
  .top-rollover-btn > span:nth-child(2) {
    display: none;
  }
  .top-rollover-btn {
    width: 34px;
    padding: 0;
  }
}
@media (max-width: 780px) {
  .top-rollover-wrap {
    margin-left: auto;
  }
  .top-rollover-panel {
    position: fixed;
    top: 125px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

.top-period-toolbar .period-focus {
  position: relative;
  padding-right: 22px;
}
.top-period-toolbar .period-focus::after {
  content: "⌄";
  position: absolute;
  top: 8px;
  right: 7px;
  color: #7e70d9;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

/* v3.5.6 recurrence and category rename */
.task-dialog .recurrence-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #e5e3f4;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbfaff, #f7f6fc);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.task-dialog .recurrence-option:hover {
  border-color: #cfc8f2;
  background: #f7f5ff;
}
.task-dialog .recurrence-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.task-dialog .recurrence-switch {
  position: relative;
  width: 36px;
  height: 21px;
  flex: 0 0 36px;
  border-radius: 99px;
  background: #d8dbe5;
  transition: background .18s ease;
}
.task-dialog .recurrence-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(28, 33, 57, .18);
  transition: transform .18s ease;
}
.task-dialog .recurrence-option > input:checked + .recurrence-switch {
  background: #6557d7;
}
.task-dialog .recurrence-option > input:checked + .recurrence-switch::after {
  transform: translateX(15px);
}
.task-dialog .recurrence-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.task-dialog .recurrence-copy strong {
  color: #30384f;
  font-size: 10px;
}
.task-dialog .recurrence-copy small {
  color: #8e94a7;
  font-size: 8.5px;
}
.pill.recurrence-pill,
.mini-chip.recurrence-mini {
  color: #4e5fc0;
  border-color: #d9def8;
  background: #eef1ff;
}
.category-rename {
  flex: 0 0 auto;
  height: 25px;
  padding: 0 8px;
  border: 1px solid #d9d4f5;
  border-radius: 6px;
  color: #6656cc;
  background: #f7f5ff;
  font-size: 8px;
}
.category-rename:hover {
  border-color: #bdb3ef;
  background: #eeebff;
}
.category-rename-dialog {
  width: min(430px, calc(100vw - 28px));
}
.category-rename-card {
  padding: 24px;
}
.category-rename-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.category-rename-head h2 {
  margin: 3px 0 0;
}
.category-rename-head p {
  margin: 6px 0 0;
  color: #8b91a5;
  font-size: 9px;
  line-height: 1.6;
}
.category-rename-card .modal-actions {
  padding-top: 3px;
}

/* auto cycle planning layout */
.task-dialog .plan-grid {
  grid-template-columns: minmax(150px, .72fr) minmax(0, 1.28fr);
}
@media (max-width: 900px) {
  .task-dialog .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
  .task-dialog .plan-grid .field:last-child {
    grid-column: auto;
  }
}
@media (max-width: 780px) {
  .task-dialog .plan-grid {
    grid-template-columns: 1fr;
  }
}

/* recurrence frequency selector */
.task-dialog .recurrence-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 150px;
  align-items: center;
}
.task-dialog .recurrence-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #6152d4;
  background: #ece9ff;
  font-size: 15px;
}
.task-dialog .recurrence-option > select {
  height: 34px;
  margin: 0;
  border-color: #dad6f2;
  border-radius: 8px;
  color: #423d6f;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}
@media (max-width: 780px) {
  .task-dialog .recurrence-option {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .task-dialog .recurrence-option > select {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* consolidated navigation and quick views */
.custom-view-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}
.quick-chip.custom-view-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.quick-chip.custom-view-chip b {
  min-width: 17px;
  padding: 1px 5px;
  border-radius: 99px;
  color: #7c85a0;
  background: #f0f2f8;
  font-size: 8px;
  font-weight: 700;
}
.quick-chip.custom-view-chip.active b {
  color: #5c4dd4;
  background: rgba(103, 88, 229, .12);
}
.view-manage-chip {
  border: 1px dashed #d8dce8;
  color: #7a8194;
  background: #fbfcfe;
}
.view-manage-chip:hover {
  color: #5e50ce;
  border-color: #cbc4ef;
  background: #f7f5ff;
}
.sidebar .side-label-row .side-label {
  white-space: nowrap;
}

/* v3.5.12 premium glass sidebar */
.app-frame {
  background:
    radial-gradient(circle at 18% 18%, rgba(111, 92, 235, .11), transparent 28%),
    radial-gradient(circle at 72% 8%, rgba(42, 166, 149, .07), transparent 24%),
    linear-gradient(180deg, #f7f9fd 0%, #f2f5fa 100%);
}
.sidebar {
  position: relative;
  isolation: isolate;
  gap: 16px;
  padding: 18px 13px 14px;
  color: #dce7f4;
  background:
    radial-gradient(circle at 20% 0%, rgba(120, 101, 239, .20), transparent 32%),
    linear-gradient(180deg, rgba(18, 29, 53, .91) 0%, rgba(10, 20, 39, .94) 58%, rgba(6, 15, 30, .96) 100%);
  border-right: 1px solid rgba(173, 185, 255, .12);
  box-shadow:
    inset -1px 0 rgba(255, 255, 255, .04),
    inset 1px 0 rgba(255, 255, 255, .025),
    14px 0 42px rgba(20, 28, 52, .08);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.075), transparent 25%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.012) 0 1px, transparent 1px 9px);
  opacity: .8;
}
.sidebar::after {
  content: "";
  position: absolute;
  top: 16px;
  right: -1px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(159, 147, 255, .36), rgba(83, 194, 179, .20), transparent);
  pointer-events: none;
}
.sidebar > * {
  position: relative;
  z-index: 1;
}
.sidebar .side-label-row {
  padding: 0 7px;
}
.sidebar .side-label {
  color: #8d9db5;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.sidebar .side-head-actions {
  gap: 3px;
}
.sidebar .side-head-actions button {
  min-height: 25px;
  padding: 0 7px;
  border: 1px solid rgba(161, 148, 255, .10);
  border-radius: 7px;
  color: #b0a4fa;
  background: rgba(255,255,255,.035);
  font-size: 9.5px;
  font-weight: 700;
}
.sidebar .side-head-actions button:hover {
  color: #fff;
  border-color: rgba(161, 148, 255, .24);
  background: rgba(123, 105, 239, .16);
}
.sidebar .weekly-tools {
  gap: 8px;
  padding: 2px 0 4px;
}
.sidebar .weekly-tools > .side-label-row {
  margin-bottom: 1px;
}
.sidebar .weekly-dispatch-btn {
  position: relative;
  min-height: 66px;
  gap: 11px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid rgba(171, 159, 255, .18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(119, 101, 239, .25), rgba(76, 65, 164, .12)),
    rgba(255,255,255,.035);
  box-shadow:
    inset 0 1px rgba(255,255,255,.055),
    0 10px 24px rgba(4, 10, 24, .13);
  backdrop-filter: blur(16px);
}
.sidebar .weekly-dispatch-btn::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -24px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 134, 255, .23), transparent 67%);
  pointer-events: none;
}
.sidebar .weekly-dispatch-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 173, 255, .32);
  background:
    linear-gradient(135deg, rgba(126, 108, 242, .32), rgba(83, 70, 175, .17)),
    rgba(255,255,255,.045);
}
.sidebar .weekly-dispatch-btn > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #8373f1, #5d4dcc);
  box-shadow: 0 7px 16px rgba(80, 64, 202, .34);
  font-size: 15px;
}
.sidebar .weekly-dispatch-btn > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.sidebar .weekly-dispatch-btn strong {
  color: #fff;
  font-size: 12px;
  letter-spacing: .2px;
}
.sidebar .weekly-dispatch-btn small {
  color: #9eafc3;
  font-size: 9.5px;
}
.sidebar .weekly-tools-row {
  gap: 7px;
}
.sidebar .weekly-tools-row button {
  height: 34px;
  border: 1px solid rgba(161, 173, 205, .12);
  border-radius: 9px;
  color: #aebdd0;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  font-size: 10px;
  font-weight: 650;
  backdrop-filter: blur(12px);
}
.sidebar .weekly-tools-row button:hover {
  color: #fff;
  border-color: rgba(165, 151, 255, .22);
  background: rgba(119, 102, 231, .13);
}

/* glass department tree */
.sidebar #departmentsPanel {
  gap: 9px;
  min-height: 0;
  padding: 13px 9px 10px;
  border: 1px solid rgba(168, 181, 215, .09);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 10px 28px rgba(2, 8, 20, .10);
  backdrop-filter: blur(18px);
}
.sidebar #departmentsPanel .side-label-row {
  padding: 0 4px 2px;
}
.sidebar #deptNav {
  gap: 7px;
  min-height: 0;
  padding-right: 2px;
  overflow-y: auto;
}
.sidebar .dept-tree-group {
  padding: 4px 5px 6px;
  border: 1px solid rgba(168, 181, 215, .075);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.sidebar .dept-tree-group + .dept-tree-group {
  margin-top: 0;
}
.sidebar .dept-tree-row {
  gap: 5px;
  min-height: 39px;
}
.sidebar .dept-tree-toggle {
  width: 25px;
  height: 25px;
  border: 1px solid rgba(168, 181, 215, .12);
  border-radius: 8px;
  color: #a99cf7;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}
.sidebar .dept-tree-toggle svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.8;
}
.sidebar .dept-tree-toggle:hover {
  color: #fff;
  border-color: rgba(174, 161, 255, .25);
  background: rgba(120, 102, 235, .15);
}
.sidebar .side-item.dept-parent {
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  color: #c1ccda;
  background: transparent;
  font-size: 11.5px;
  font-weight: 650;
}
.sidebar .side-item.dept-parent:hover {
  color: #fff;
  background: rgba(255,255,255,.055);
}
.sidebar .side-item.dept-parent.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(119, 102, 239, .25), rgba(80, 69, 173, .13));
  box-shadow: inset 2px 0 #9b8df7;
}
.sidebar .side-item.dept-parent b {
  height: 20px;
  min-width: 24px;
  border-radius: 7px;
  color: #afbdd0;
  background: rgba(255,255,255,.07);
  font-size: 9.5px;
  line-height: 20px;
}
.sidebar .team-subnav {
  margin: 2px 0 3px 18px;
  padding: 3px 0 2px 12px;
  border-left: 1px solid rgba(155, 142, 245, .24);
}
.sidebar .team-subnav-head {
  min-height: 27px;
  padding: 0 4px;
}
.sidebar .team-subnav-head span {
  color: #8394ab;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .7px;
}
.sidebar .team-subnav-head button {
  min-height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  color: #a99cf7;
  font-size: 9px;
}
.sidebar .team-side-row {
  min-height: 32px;
  padding: 1px 2px 1px 0;
  border-radius: 8px;
}
.sidebar .team-side-row:hover {
  background: rgba(255,255,255,.035);
}
.sidebar .team-side-item {
  height: 30px;
  padding: 0 7px;
  border-radius: 7px;
  color: #94a7bc;
  font-size: 10.5px;
}
.sidebar .team-side-item.active {
  color: #fff;
  background: rgba(123, 105, 235, .15);
}
.sidebar .team-side-item b {
  color: #879ab0;
  background: rgba(255,255,255,.055);
  font-size: 9px;
}
.sidebar .team-empty {
  padding: 5px 6px 7px;
  color: #71849d;
  font-size: 9.5px;
}

/* floating glass cycle card */
.sidebar .side-cycle-card {
  margin-top: auto;
  padding: 14px 13px 13px;
  border: 1px solid rgba(171, 183, 218, .13);
  border-radius: 15px;
  background:
    radial-gradient(circle at 88% 8%, rgba(122, 104, 238, .13), transparent 35%),
    linear-gradient(150deg, rgba(255,255,255,.072), rgba(255,255,255,.032));
  box-shadow:
    inset 0 1px rgba(255,255,255,.045),
    0 14px 32px rgba(2, 8, 22, .16);
  backdrop-filter: blur(20px) saturate(125%);
}
.sidebar .side-cycle-card > .side-label {
  color: #8b9cb4;
  font-size: 9px;
  letter-spacing: 1px;
}
.sidebar .cycle-meta {
  color: #b0bfd0;
  font-size: 10.5px;
  line-height: 1.55;
}
.sidebar .mini-progress {
  height: 7px;
  margin-top: 11px;
  border: 1px solid rgba(255,255,255,.035);
  background: rgba(255,255,255,.075);
}
.sidebar .mini-progress span {
  background: linear-gradient(90deg, #8b79f5 0%, #6ed5be 100%);
  box-shadow: 0 0 14px rgba(111, 213, 190, .18);
}
.sidebar .cycle-foot {
  margin-top: 8px;
  color: #8fa2b8;
  font-size: 9.5px;
}
.sidebar .cycle-foot strong {
  color: #fff;
  font-size: 11px;
}
.sidebar .cycle-rollover {
  min-height: 34px;
  border-color: rgba(170, 157, 255, .20);
  border-radius: 9px;
  color: #cbc5ff;
  background: rgba(120, 102, 235, .11);
}
.sidebar-footer {
  margin-top: 0;
  padding: 11px 8px 2px;
  border-top-color: rgba(165, 178, 211, .11);
}
.sidebar-footer .online-label {
  color: #8295ad;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.sidebar-footer .online-people {
  color: #9db0c5;
  font-size: 10px;
}

/* softer glass scrollbar */
.sidebar ::-webkit-scrollbar {
  width: 5px;
}
.sidebar ::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar ::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(180, 194, 224, .18);
}
.sidebar ::-webkit-scrollbar-thumb:hover {
  background: rgba(180, 194, 224, .28);
}
@media (max-width: 780px) {
  .sidebar {
    padding: 12px;
    background: linear-gradient(180deg, rgba(16, 27, 50, .97), rgba(7, 16, 31, .98));
  }
  .sidebar #departmentsPanel {
    padding: 11px 8px;
  }
}

/* ============================================================================
   v3.5.13 · 体验优化层
   1) 可读性：字号地板 11px、对比度达 4.5:1
   2) 布局均衡：消除底部与侧栏的空洞
   3) 毛玻璃收敛：去掉嵌套 blur 造成的重影
   4) 新增组件：周期走势、报告浮窗、升级队列、键盘光标
   追加在 ui-relayout.css 末尾，靠层叠覆盖，不修改原规则。
   ============================================================================ */

/* ---------- 1. 颜色与字号基线 ---------- */
:root {
  --muted: #5b6875;
  --ink-soft: #3d4a57;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 13.5px;
  --line-soft: #e8ecf2;
}

body {
  color: #1f2d3a;
  -webkit-font-smoothing: antialiased;
}

/* 顶栏 */
.brand-subtitle,
.global-search kbd,
.sync-pill,
.avatar,
.online-avatar,
.notification-bell,
.notification-count,
.top-period-toolbar .period-tabs button,
.top-period-toolbar .period-today,
.top-period-toolbar .period-focus strong,
.top-period-toolbar .period-focus span,
.top-period-toolbar .period-arrow,
.head-new-task-button,
.more-metrics-button,
.report-button,
.icon-action {
  font-size: 11px;
}
.online-avatar { min-width: 24px; height: 24px; }

/* 侧栏 */
.side-label,
.sidebar .side-label,
.sidebar .side-cycle-card > .side-label {
  font-size: 11px;
  letter-spacing: .08em;
  color: #a7b6c9;
}
.sidebar .side-head-actions button { font-size: 11px; min-height: 28px; }
.sidebar .side-item,
.sidebar .side-item b,
.sidebar .cycle-meta,
.sidebar .cycle-foot,
.sidebar .cycle-foot strong,
.sidebar .cycle-date-view span,
.sidebar-footer .online-label,
.sidebar-footer .online-people,
.sidebar .team-subnav-head,
.sidebar .team-side-item,
.sidebar .team-empty,
.sidebar .team-subnav-head button {
  font-size: 11.5px;
}
.sidebar .side-item b { min-width: 24px; height: 21px; }
.sidebar .weekly-dispatch-btn strong { font-size: 13px; }
.sidebar .weekly-dispatch-btn small { font-size: 11px; color: #b6c3d4; }
.sidebar .weekly-tools-row button { font-size: 11.5px; min-height: 30px; }

/* 工作区头部 */
.breadcrumb,
.breadcrumb b { font-size: 11px; }
.count-pill { font-size: 11px; height: 23px; }
#resultSummary { font-size: 12px; color: var(--muted); }
.view-switch button { font-size: 11.5px; }

/* KPI */
.kpi-label {
  font-size: 11.5px;
  color: #5f6b7a;
  letter-spacing: .01em;
}
.kpi-value { font-size: 27px; }
.kpi-hint {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
  font-size: 11px;
  color: #64707e;
}
.kpi-hint-label { white-space: nowrap; }
button.kpi-card.active .kpi-hint::after { font-size: 11px; }

/* 趋势胶囊 */
.kpi-trend {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 5px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi-trend.up { color: #1a6f57; background: #e8f6f0; }
.kpi-trend.down { color: #b0464f; background: #fdeef0; }
.kpi-trend.flat { color: #5b6875; background: #eef1f5; }
.kpi-trend.up.warn { color: #b0464f; background: #fdeef0; }

/* 筛选区 */
.quick-chip { font-size: 11.5px; }
.filter-toggle-chip,
.view-manage-chip { font-size: 11.5px; }
.compact-field span,
.compact-field select { font-size: 11.5px; }
.active-filter-chip { font-size: 11px; }

/* 列表 */
.list-toolbar h2 { font-size: 13.5px; }
.list-toolbar-copy span,
.legend span { font-size: 11px; }
.task-title { font-size: 13px; }
.task-meta .mini-chip,
.mini-chip { font-size: 10.5px; }
.owner-cell { font-size: 12px; }
.priority { font-size: 10.5px; }
.status-select { font-size: 11px; }
.progress-num { font-size: 11px; }
.risk-badge { font-size: 10.5px; }
.clamp-2,
.next-cell { font-size: 12px; }
/* 下一步动作是每天最常读的一列，给足宽度并允许 3 行，避免半句截断 */
.next-cell {
  width: 210px;
  max-width: 210px;
  min-width: 190px;
}
.next-cell .clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
}
/* 行内操作：贴右固定，默认弱化，悬停/选中时显形，避免与正文抢宽度 */
th:last-child,
td:last-child {
  position: sticky;
  right: 0;
  width: 156px;
  min-width: 156px;
  max-width: 156px;
  padding-right: 12px;
  background: #fff;
  box-shadow: -8px 0 12px -10px rgba(24, 40, 60, .22);
}
thead th:last-child { background: #f6f7fb; }
tbody tr:hover td:last-child { background: #faf9ff; }
tbody tr.selected td:last-child { background: #f1efff; }
.row-actions { gap: 3px; }
.row-button { opacity: .78; padding: 0 7px; height: 27px; }
tbody tr:hover .row-button,
tbody tr.cursor-row .row-button,
.row-button:focus-visible { opacity: 1; }
.updated-cell { font-size: 11px; }
.row-button { font-size: 11px; min-height: 26px; }
.check-cell input { width: 15px; height: 15px; }

/* 看板 */
.pill { font-size: 10px; min-height: 20px; }
.card-title { font-size: 13px; }
.card-meta { font-size: 11px; }
.card-next { font-size: 11.5px; }
.card-side-meta { font-size: 10.5px; }
.column-title { font-size: 12px; }
.column-count { font-size: 11px; }
.focus-hint,
.column-empty { font-size: 11px; }
.card-quick-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  gap: 5px;
}
.card-quick-btn span.btn-icon { width: 12px; height: 12px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; }
.btn-icon svg { width: 100%; height: 100%; }

/* 右栏 */
.rail-heading h2 { font-size: 13px; }
.rail-heading p { font-size: 11px; }
.live-badge { font-size: 10px; }
.activity-title { font-size: 11.5px; }
.activity-summary { font-size: 11px; }
.activity-time { font-size: 10.5px; }
.activity-count {
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #5b4fd6;
  background: #f0eeff;
}
.activity-item[role="button"] { cursor: pointer; border-radius: 8px; transition: background .14s; }
.activity-item[role="button"]:hover { background: #f6f7fc; }
.activity-main { min-width: 0; }
.activity-more {
  width: 100%;
  height: 30px;
  margin-top: 8px;
  border: 1px dashed #d9dcef;
  border-radius: 8px;
  color: #5b6472;
  background: #fff;
  font-size: 11.5px;
}
.activity-more:hover { border-color: #b9b0f0; color: #4b40c4; background: #faf9ff; }
.rail-alert-text { font-size: 11.5px; }
.rail-alert-text strong { font-size: 12px; }

/* 升级队列（团队提醒内的点名列表） */
.rail-escalate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e6e9f1;
}
.rail-escalate-head {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #b0464f;
}
.rail-escalate-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid #eef0f6;
  border-radius: 9px;
  background: #fbfcfe;
  text-align: left;
  transition: border-color .14s, background .14s;
}
.rail-escalate-row:hover { border-color: #d9d2f7; background: #f8f6ff; }
.rail-escalate-title {
  font-size: 11.5px;
  line-height: 1.45;
  color: #26313e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-escalate-meta { display: flex; align-items: center; gap: 6px; font-size: 10.5px; }
.rail-escalate-owner { color: #574bd4; }
.rail-escalate-reason { padding: 0 4px; border-radius: 4px; color: #b0464f; background: #fcebe8; }

/* 仪表盘 */
.card-heading h2 { font-size: 13.5px; }
.card-heading p { font-size: 11px; }
.eyebrow-chip { display: none; }
.donut-legend-row { font-size: 11.5px; }
.donut-center strong { font-size: 22px; }
.donut-center span { font-size: 11px; }
.dept-bar-name { font-size: 11.5px; }
.dept-bar-rate { font-size: 11px; }
.risk-stat strong { font-size: 20px; }
.risk-stat span { font-size: 11px; }
.attention-title { font-size: 12px; }
.attention-meta { font-size: 10.5px; }
.attention-tag { font-size: 10.5px; }
.workload-name,
.workload-count { font-size: 11.5px; }
.schedule-stat span { font-size: 11px; }
.schedule-stat strong { font-size: 17px; }

/* 周期走势卡 */
.trend-card { grid-column: 1 / -1; }
.cycle-trend { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.trend-head { display: flex; align-items: baseline; gap: 8px; }
.trend-head strong {
  font-size: 26px;
  font-weight: 800;
  color: #121a32;
  font-variant-numeric: tabular-nums;
}
.trend-head span { font-size: 11.5px; color: var(--muted); }
.trend-delta { margin-left: 2px; font-style: normal; font-size: 11px; font-weight: 700; }
.trend-delta.up { color: #1a6f57; }
.trend-delta.down { color: #b0464f; }
.trend-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  height: 124px;
}
.trend-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
  min-width: 0;
}
.trend-rate { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trend-track {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 7px;
  background: #f1f3f8;
  overflow: hidden;
}
.trend-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #8578ee, #6758e5);
  transition: height .3s ease;
}
.trend-col.active .trend-fill { background: linear-gradient(180deg, #35b39d, #1f8c7e); }
.trend-col.active .trend-label { color: #121a32; font-weight: 800; }
.trend-label {
  font-size: 10.5px;
  color: #8b93a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 事项详情浮窗 */
.drawer-eyebrow { font-size: 10.5px; letter-spacing: .1em; }
.drawer-tab { font-size: 12px; }
.task-dialog .field span,
.task-dialog label.field > span { font-size: 11.5px; }
.task-dialog input,
.task-dialog select,
.task-dialog textarea { font-size: 12.5px; }
.summary-status,
.summary-risk,
.summary-label { font-size: 11px; }
.comment-text { font-size: 12.5px; }
.comment-top strong { font-size: 12px; }
.comment-top span { font-size: 10.5px; }
.history-item { font-size: 11.5px; }
.task-image-item { min-width: 0; }
.task-image-grid { gap: 8px; }
.task-image-thumb { border-radius: 7px; }

/* 列表底部工具条：把表格下方剩余空间变成可操作区 */
.list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px 11px;
  border-top: 1px solid var(--line-soft);
  background: #fbfcfe;
}
.list-foot-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-foot-copy strong { font-size: 11.5px; color: #3f4c5a; font-variant-numeric: tabular-nums; }
.list-foot-copy span { font-size: 10.5px; color: #8b95a3; }
.list-foot-actions { display: flex; align-items: center; gap: 6px; }
.list-foot-actions .text-button { font-size: 11.5px; padding: 0 8px; height: 28px; }
.list-foot-actions .primary-button.small { height: 28px; padding: 0 10px; font-size: 11.5px; }

/* 空态：改为纵向 flex，避免 grid 每行被拉伸导致元素散开 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 40px 20px 44px;
  text-align: center;
  color: var(--muted);
}
.empty-state > * { max-width: 440px; }
.empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #8f96a8;
  background: #f1f3f8;
}
.empty-icon svg { width: 24px; height: 24px; }
.empty-state h3 { font-size: 15px; margin: 14px 0 6px; }
.empty-state p { font-size: 12px; color: var(--muted); }
.empty-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.empty-actions button { min-height: 32px; font-size: 12px; }

/* 报告浮窗 */
.weekly-report-dialog .automation-card { width: min(760px, 94vw); }
.weekly-report-dialog { width: min(800px, calc(100vw - 24px)); height: min(760px, calc(100vh - 40px)); }
.weekly-report-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 18px 16px;
}
.weekly-report-text {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fbfcfe;
  color: #26313e;
  font-family: "Microsoft YaHei", "PingFang SC", ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.weekly-report-dialog .automation-footer > span { font-size: 11px; color: var(--muted); }

/* 键盘导航光标 */
#taskRows tr.cursor-row {
  outline: 2px solid #6758e5;
  outline-offset: -2px;
  background: #f7f5ff;
}
#taskRows tr.cursor-row > td:first-child { box-shadow: inset 3px 0 #6758e5; }

/* KPI 角标：把 emoji / 字符符号换成线性图标 */
.kpi-card:nth-child(2)::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231f9d7a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.4 3.1 3.1 6-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  color: transparent;
}
.kpi-card:nth-child(5)::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23de5361' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.6 14 13H2z'/%3E%3Cpath d='M8 6.6v3M8 11.4v.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
  color: transparent;
}
.sidebar .weekly-dispatch-btn > span svg { width: 17px; height: 17px; }
.user-menu-icon svg { width: 14px; height: 14px; }

/* ---------- 2. 毛玻璃收敛：去掉嵌套 blur 造成的文字重影 ---------- */
.sidebar {
  background:
    radial-gradient(circle at 20% 0%, rgba(120, 101, 239, .10), transparent 34%),
    linear-gradient(180deg, #121b2d 0%, #0e1626 58%, #0a111d 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sidebar::before { opacity: .32; }
.sidebar .weekly-dispatch-btn,
.sidebar .side-cycle-card,
.sidebar .side-panel,
.sidebar .side-item,
.sidebar .team-subnav {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.sidebar .side-cycle-card { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .09); }
.sidebar .side-item.active { background: rgba(255, 255, 255, .10); }
.sidebar .team-subnav { background: rgba(255, 255, 255, .03); }

/* ---------- 3. 布局均衡 ---------- */
/* 列表卡撑满可用高度：内容少时由空态与底部工具条填补，不留整块空洞 */
#listView { display: flex; flex-direction: column; }
.list-card {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 400px);
}
.table-wrap {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  max-height: none;
}
.table-wrap table { flex: 0 0 auto; }
.table-wrap .empty-state { flex: 1 1 auto; place-content: center; }
/* 侧栏：概览卡吸收剩余高度，不留整块空洞 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.sidebar #departmentsPanel {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 38vh;
  display: flex;
  flex-direction: column;
}
.sidebar #departmentsPanel .side-nav {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}
.sidebar-footer {
  margin-top: auto;
  flex: 0 0 auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.sidebar .side-nav::-webkit-scrollbar { width: 6px; }
.sidebar .side-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 3px; }

/* 周期概览（侧栏新块，填补空档并给出随时可见的状态分布） */
.side-overview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
  padding: 10px 9px 11px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.side-overview .side-label-row { padding: 0 2px 2px; }
.side-overview .side-head-actions button {
  min-height: 22px;
  padding: 0 6px;
  font-size: 10.5px;
  color: #b0a4fa;
  border-color: rgba(161, 148, 255, .14);
  background: rgba(255, 255, 255, .04);
}
.overview-rows { display: flex; flex-direction: column; gap: 3px; }
.overview-row {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) 44px 22px;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #cfdbe8;
  font-size: 11.5px;
  text-align: left;
}
.overview-row:hover { background: rgba(255, 255, 255, .07); }
.overview-dot { width: 7px; height: 7px; border-radius: 50%; }
.overview-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-track {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.overview-track i { display: block; height: 100%; border-radius: 3px; transition: width .25s ease; }
.overview-count {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.overview-flags { display: flex; gap: 6px; margin-top: 4px; }
.overview-flag {
  flex: 1 1 0;
  min-height: 27px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  color: #b9c7d8;
  background: rgba(255, 255, 255, .035);
  font-size: 11px;
}
.overview-flag:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.overview-flag b { margin-left: 3px; color: #fff; font-variant-numeric: tabular-nums; }
.overview-flag.danger { color: #f4b9bd; border-color: rgba(222, 83, 97, .28); background: rgba(222, 83, 97, .12); }
.overview-flag.warn { color: #f0cf9b; border-color: rgba(221, 153, 47, .26); background: rgba(221, 153, 47, .12); }

/* 滚动体验（企业微信 WebView / iOS） */
.workspace,
.table-wrap,
.activity-list,
.rail-alert-list,
.side-nav { -webkit-overflow-scrolling: touch; }

/* ---------- 4. 移动端 / 企业微信内嵌 ---------- */
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-card { grid-column: 1 / -1; }
  .trend-bars { height: 104px; }
}

/* 窄屏：顶栏可换行、周期切换横向滚动、内容区不溢出 */
@media (max-width: 620px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .topbar {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    padding: 8px 10px;
    overflow: hidden;
  }
  .brand { width: 100%; flex: 1 1 100%; order: 1; }
  .brand-mark { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
  .brand-title { font-size: 14px; }
  .brand-subtitle { display: none; }
  .top-actions {
    order: 5;
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
  }
  .global-search {
    order: 2;
    width: 100%;
    flex: 1 1 100%;
    height: 36px;
    min-width: 0;
  }
  .global-search kbd { display: none; }
  .top-period-toolbar {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .top-period-toolbar::-webkit-scrollbar { display: none; }
  .top-period-toolbar .period-tabs { flex: 0 0 auto; }
  .top-period-toolbar .period-tabs button small { display: none; }
  .top-period-toolbar .period-tabs button { padding: 0 9px; }
  .top-period-toolbar .period-nav { flex: 0 0 auto; }
  .top-period-toolbar .period-focus { min-width: 0; }
  .top-period-toolbar .period-focus span { display: none; }
  .online-wrap,
  .top-rollover-wrap { display: none; }
  .sync-pill { font-size: 10.5px; padding: 0 7px; flex: 0 0 auto; }
  .notification-wrap { flex: 0 0 auto; }
  .notification-button { padding: 0 8px; }
  .user-menu-wrap { flex: 0 0 auto; }
  .user-button { padding: 0 6px 0 3px; }
  #userNameLabel { display: none; }

  /* 主内容区铺满，侧栏与协作栏收起（筛选条里已有同等入口） */
  .app-frame { display: block; height: auto; }
  .sidebar,
  .right-rail { display: none; }
  .workspace { padding: 12px 12px 28px; overflow-x: hidden; }
  .workspace-head { flex-direction: column; gap: 10px; margin-bottom: 12px; }
  .title-line h1 { font-size: 21px; }
  .head-actions { flex-wrap: wrap; gap: 6px; width: 100%; }
  .head-new-task-button { flex: 1 1 auto; height: 36px; margin: 0; min-width: 120px; }
  .view-switch { flex: 0 0 auto; }
  .view-switch button { padding: 0 8px; white-space: nowrap; font-size: 11.5px; }
  .report-button,
  .more-metrics-button,
  #toggleRightRailBtn { display: none; }

  .filter-bar { padding: 8px; }
  .quick-filter-group { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .quick-filter-group::-webkit-scrollbar { display: none; }
  .quick-chip { flex: 0 0 auto; }
  .filter-controls { grid-template-columns: 1fr 1fr; }
  .list-toolbar { flex-wrap: wrap; gap: 6px; }
  .table-wrap { max-height: none; overflow-x: auto; }
  /* 列表横向滚动而不是压扁列 */
  .table-wrap table { min-width: 720px; }
  .bulk-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .bulk-controls { flex-wrap: wrap; }
  .kpi-card { min-height: 84px; padding: 12px 13px; }
  .kpi-value { font-size: 22px; }
  .kpi-hint { font-size: 10.5px; }
  .trend-bars { height: 96px; gap: 5px; }
  .trend-rate,
  .trend-label { font-size: 9.5px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .empty-state { padding: 36px 14px 44px; }
  .empty-actions { flex-direction: column; width: 100%; }
  .empty-actions button { width: 100%; }
  .weekly-report-dialog .automation-card { width: 100%; }
  .weekly-report-text { font-size: 12px; padding: 12px 13px; }
  /* 浮窗改为全屏，避免小屏双栏挤压 */
  .task-dialog {
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .task-dialog .drawer-head { padding: 14px 16px; }
  .task-dialog .drawer-body { padding: 14px 16px 22px; }
  .task-summary-rail { grid-column: 1; position: static; max-height: none; }
}
